/* ============================================================
   JuriTotal V3.4C.3 - UX Base
   Ajuste visual não destrutivo.
   ============================================================ */

:root {
  --jt-bg: #f4f6f9;
  --jt-surface: #ffffff;
  --jt-surface-soft: #f8fafc;
  --jt-text: #17213a;
  --jt-text-soft: #60708a;
  --jt-border: #dbe3ee;
  --jt-border-strong: #c9d3e1;
  --jt-navy: #132443;
  --jt-navy-2: #1b3158;
  --jt-success: #0f8a4b;
  --jt-danger: #c9332b;
  --jt-warning: #b26a00;
  --jt-radius: 10px;
  --jt-radius-sm: 8px;
  --jt-shadow: 0 2px 8px rgba(17, 34, 68, 0.06);
}

body.jt-v34c3 {
  background: var(--jt-bg);
  color: var(--jt-text);
}

body.jt-v34c3 h1,
body.jt-v34c3 h2,
body.jt-v34c3 h3 {
  letter-spacing: -0.015em;
}

body.jt-v34c3 .jt-campo,
body.jt-v34c3 input:not([type="hidden"]),
body.jt-v34c3 select {
  min-height: 36px;
  border-radius: var(--jt-radius-sm);
  border: 1px solid var(--jt-border-strong);
  background: #fff;
  transition: border-color .15s ease, box-shadow .15s ease;
}

body.jt-v34c3 input:not([type="hidden"]):focus,
body.jt-v34c3 select:focus {
  outline: none;
  border-color: #8aa3c8;
  box-shadow: 0 0 0 3px rgba(44, 88, 150, 0.10);
}

body.jt-v34c3 button,
body.jt-v34c3 .jt-botao {
  min-height: 36px;
  border-radius: var(--jt-radius-sm);
  transition:
    transform .08s ease,
    box-shadow .15s ease,
    filter .15s ease;
}

body.jt-v34c3 button:hover {
  filter: brightness(0.98);
}

body.jt-v34c3 button:active {
  transform: translateY(1px);
}

/* Atalho operacional solicitado */
body.jt-v34c3 .jt-periodo-anterior {
  white-space: nowrap;
}

body.jt-v34c3 .jt-periodo-ativo {
  box-shadow: 0 0 0 2px rgba(19, 36, 67, 0.15);
  font-weight: 700;
}

/* Cartões e painéis: aplica apenas quando a própria aplicação já usa
   nomes semânticos, sem impor estrutura nova. */
body.jt-v34c3 [class*="card"],
body.jt-v34c3 [class*="painel"],
body.jt-v34c3 [class*="kpi"],
body.jt-v34c3 [class*="filtro"] {
  border-radius: var(--jt-radius);
}

body.jt-v34c3 [class*="card"],
body.jt-v34c3 [class*="kpi"] {
  box-shadow: var(--jt-shadow);
}

/* Tabelas */
body.jt-v34c3 table,
body.jt-v34c3 .jt-tabela {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
}

body.jt-v34c3 table thead th {
  position: sticky;
  top: 0;
  z-index: 2;
  background: var(--jt-surface-soft);
  color: var(--jt-text-soft);
  font-weight: 700;
  border-bottom: 1px solid var(--jt-border-strong);
}

body.jt-v34c3 table tbody td {
  border-bottom: 1px solid #e7edf4;
}

body.jt-v34c3 table tbody tr:hover td {
  background: #fafcff;
}

/* Status visuais já existentes */
body.jt-v34c3 [class*="status"][class*="ok"],
body.jt-v34c3 [class*="status"][class*="sucesso"] {
  color: var(--jt-success);
}

body.jt-v34c3 [class*="status"][class*="erro"] {
  color: var(--jt-danger);
}

body.jt-v34c3 [class*="status"][class*="process"] {
  color: var(--jt-warning);
}

/* Scroll horizontal de tabelas e modais em telas menores */
body.jt-v34c3 .table-responsive,
body.jt-v34c3 [class*="table-wrap"],
body.jt-v34c3 [class*="tabela-wrap"] {
  overflow-x: auto;
}

/* Melhor leitura em notebooks */
@media (max-width: 1366px) {
  body.jt-v34c3 {
    font-size: 14px;
  }

  body.jt-v34c3 input:not([type="hidden"]),
  body.jt-v34c3 select,
  body.jt-v34c3 button {
    min-height: 34px;
  }

  body.jt-v34c3 table th,
  body.jt-v34c3 table td {
    padding-top: 8px;
    padding-bottom: 8px;
  }
}

@media (max-width: 900px) {
  body.jt-v34c3 table {
    min-width: 760px;
  }
}
