/* RedeSeT Orçamentos — interface */
:root {
  --pri: #0B5394;
  --bg: #f3f5f8;
  --card: #ffffff;
  --ink: #17212c;
  --ink-2: #4b5664;
  --ink-3: #8691a0;
  --line: #e2e7ee;
  --line-2: #d3dae3;
  --side: #121c28;
  --ok: #1f8a5b;
  --warn: #b7791f;
  --bad: #c0392b;
  --info: #2f6fb5;
  --radius: 10px;
  --shadow: 0 1px 2px rgba(16, 28, 44, .05), 0 4px 16px rgba(16, 28, 44, .05);
  font-family: "Segoe UI", system-ui, -apple-system, Roboto, Arial, sans-serif;
  font-size: 14px;
  color: var(--ink);
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); }
a { color: var(--pri); }
h1, h2, h3 { margin: 0; letter-spacing: -.01em; }

/* ------------------------------------------------------------ layout */
.app { display: grid; grid-template-columns: 228px 1fr; min-height: 100vh; }
.side { background: var(--side); color: #c9d3df; display: flex; flex-direction: column; padding: 18px 12px; position: sticky; top: 0; height: 100vh; }
.brand { display: flex; align-items: center; gap: 11px; padding: 4px 8px 22px; }
.brand-mark { width: 36px; height: 36px; border-radius: 9px; background: var(--pri); color: #fff; display: grid; place-items: center; font-weight: 800; font-size: 18px; }
.brand-mark.big { width: 52px; height: 52px; font-size: 26px; border-radius: 13px; margin: 0 auto 14px; }
.brand-nome { color: #fff; font-weight: 700; font-size: 16px; }
.brand-sub { font-size: 12px; color: #8996a6; }
.side nav { display: flex; flex-direction: column; gap: 2px; }
.side nav a { display: flex; align-items: center; gap: 11px; padding: 9px 10px; border-radius: 8px; color: #c9d3df; text-decoration: none; font-weight: 500; }
.side nav a svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; opacity: .85; }
.side nav a:hover { background: rgba(255, 255, 255, .06); color: #fff; }
.side nav a.ativo { background: rgba(255, 255, 255, .1); color: #fff; }
.novo-side { margin-top: auto; justify-content: center; }
main { padding: 26px 32px 60px; min-width: 0; }

.topo { display: flex; align-items: center; gap: 14px; margin-bottom: 20px; flex-wrap: wrap; }
.topo h1 { font-size: 22px; }
.topo .sub { color: var(--ink-3); font-size: 13px; margin-top: 2px; }
.topo .esp { flex: 1; }

.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.card-pad { padding: 18px 20px; }
.card h2 { font-size: 15px; margin-bottom: 14px; }
.card + .card { margin-top: 16px; }

/* ------------------------------------------------------------ botões */
.btn { display: inline-flex; align-items: center; gap: 7px; border: 1px solid var(--line-2); background: #fff; color: var(--ink); padding: 8px 14px; border-radius: 8px; font: inherit; font-weight: 600; cursor: pointer; text-decoration: none; white-space: nowrap; line-height: 1.2; }
.btn:hover { background: #f6f8fb; border-color: #c4ccd7; }
.btn.pri { background: var(--pri); color: #fff; border-color: var(--pri); }
.btn.pri:hover { filter: brightness(1.08); }
.btn.perigo { color: var(--bad); }
.btn.perigo:hover { background: #fdf1ef; border-color: #f0c5bf; }
.btn.fantasma { border-color: transparent; background: transparent; }
.btn.fantasma:hover { background: #eef1f5; }
.btn.peq { padding: 5px 10px; font-size: 13px; }
.btn.bloco { width: 100%; justify-content: center; }
.btn:disabled { opacity: .5; cursor: default; }
.icone { width: 30px; height: 30px; padding: 0; justify-content: center; border-radius: 7px; color: var(--ink-3); }
.icone:hover { color: var(--bad); }

/* ------------------------------------------------------------ formulários */
label.campo { display: flex; flex-direction: column; gap: 5px; font-size: 12.5px; font-weight: 600; color: var(--ink-2); }
input, select, textarea { font: inherit; font-weight: 400; color: var(--ink); border: 1px solid var(--line-2); border-radius: 8px; padding: 8px 10px; background: #fff; width: 100%; outline: none; transition: border-color .12s, box-shadow .12s; }
textarea { resize: vertical; min-height: 64px; line-height: 1.45; }
input:focus, select:focus, textarea:focus { border-color: var(--pri); box-shadow: 0 0 0 3px color-mix(in srgb, var(--pri) 18%, transparent); }
.grade { display: grid; gap: 14px; }
.g2 { grid-template-columns: 1fr 1fr; }
.g3 { grid-template-columns: repeat(3, 1fr); }
.g4 { grid-template-columns: repeat(4, 1fr); }
.span2 { grid-column: span 2; }
.span3 { grid-column: span 3; }
.span4 { grid-column: 1 / -1; }
.com-botao { display: flex; gap: 6px; }
.com-botao input { flex: 1; }
.dica { font-size: 12px; color: var(--ink-3); font-weight: 400; }
.num { text-align: right; font-variant-numeric: tabular-nums; }

/* ------------------------------------------------------------ tabelas */
.tabela { width: 100%; border-collapse: collapse; }
.tabela th { text-align: left; font-size: 11.5px; text-transform: uppercase; letter-spacing: .05em; color: var(--ink-3); font-weight: 700; padding: 10px 14px; border-bottom: 1px solid var(--line); background: #fafbfd; }
.tabela td { padding: 11px 14px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.tabela tr:last-child td { border-bottom: 0; }
.tabela tbody tr.clicavel { cursor: pointer; }
.tabela tbody tr.clicavel:hover td { background: #f7f9fc; }
.tabela .num { white-space: nowrap; }
.tabela .acoes { text-align: right; white-space: nowrap; }
.forte { font-weight: 600; }
.fraco { color: var(--ink-3); font-size: 12.5px; }
.vazio { text-align: center; padding: 48px 20px; color: var(--ink-3); }
.vazio b { display: block; color: var(--ink-2); font-size: 15px; margin-bottom: 6px; }

/* ------------------------------------------------------------ status */
.badge { display: inline-flex; align-items: center; gap: 6px; padding: 3px 9px; border-radius: 99px; font-size: 12px; font-weight: 600; white-space: nowrap; }
.badge::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.st-rascunho { background: #eef1f5; color: #5c6876; }
.st-enviado { background: #e8f0fa; color: var(--info); }
.st-aprovado { background: #e5f4ec; color: var(--ok); }
.st-recusado { background: #fbeceb; color: var(--bad); }
.badge.vencido { background: #fdf3e1; color: var(--warn); }

.resumo { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 18px; }
.resumo .card { padding: 14px 16px; cursor: pointer; border-top: 3px solid transparent; }
.resumo .card:hover { border-color: var(--line-2); }
.resumo .card.sel { border-top-color: var(--pri); }
.resumo .rot { font-size: 12px; color: var(--ink-3); font-weight: 600; display: flex; justify-content: space-between; }
.resumo .val { font-size: 19px; font-weight: 700; margin-top: 6px; font-variant-numeric: tabular-nums; }

.filtros { display: flex; gap: 10px; padding: 12px 14px; border-bottom: 1px solid var(--line); align-items: center; }
.filtros input { max-width: 340px; }
.filtros .esp { flex: 1; }

/* ------------------------------------------------------------ editor */
.editor { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 18px; align-items: start; }
.lateral { position: sticky; top: 20px; display: flex; flex-direction: column; gap: 14px; }
.totais-box .linha { display: flex; justify-content: space-between; padding: 5px 0; font-variant-numeric: tabular-nums; }
.totais-box .linha.desc { color: var(--bad); }
.totais-box .linha.total { border-top: 1px solid var(--line); margin-top: 6px; padding-top: 12px; font-size: 20px; font-weight: 700; }
.acoes-col { display: flex; flex-direction: column; gap: 8px; }
.acoes-lin { display: flex; gap: 8px; }
.acoes-lin .btn { flex: 1; justify-content: center; }
.status-sel { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.status-sel button { border: 1px solid var(--line-2); background: #fff; border-radius: 8px; padding: 7px; font: inherit; font-size: 13px; font-weight: 600; cursor: pointer; color: var(--ink-2); }
.status-sel button.sel.st-rascunho { border-color: #9aa5b3; }
.status-sel button.sel { border-width: 2px; padding: 6px; }
.status-sel button.sel.st-enviado { border-color: var(--info); }
.status-sel button.sel.st-aprovado { border-color: var(--ok); }
.status-sel button.sel.st-recusado { border-color: var(--bad); }
.numero-orc { font-size: 12px; color: var(--ink-3); font-weight: 600; letter-spacing: .03em; }
.alterado { font-size: 12px; color: var(--warn); font-weight: 600; }

.itens-ed { width: 100%; border-collapse: collapse; }
.itens-ed th { font-size: 11.5px; text-transform: uppercase; letter-spacing: .05em; color: var(--ink-3); text-align: left; padding: 0 6px 8px; font-weight: 700; }
.itens-ed td { padding: 5px 4px; vertical-align: top; }
.itens-ed tr.item td { border-top: 1px solid var(--line); padding-top: 10px; }
.itens-ed tr.det td { padding-top: 0; padding-bottom: 10px; }
.itens-ed .c-n { width: 28px; color: var(--ink-3); text-align: center; padding-top: 18px; font-size: 12.5px; }
.itens-ed .c-q { width: 82px; }
.itens-ed .c-u { width: 88px; }
.itens-ed .c-v { width: 128px; }
.itens-ed .c-t { width: 122px; text-align: right; padding-top: 18px; font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; }
.itens-ed .c-x { width: 72px; text-align: right; white-space: nowrap; }
.itens-ed textarea { min-height: 38px; font-size: 13px; color: var(--ink-2); }
.itens-ed .mover { display: inline-flex; flex-direction: column; vertical-align: top; }
.itens-ed .mover button { border: 0; background: none; color: var(--ink-3); cursor: pointer; font-size: 10px; line-height: 1; padding: 2px 4px; }
.itens-ed .mover button:hover { color: var(--ink); }
.add-itens { display: flex; gap: 8px; margin-top: 12px; padding-top: 12px; border-top: 1px dashed var(--line-2); }

/* autocomplete do catálogo */
.ac { position: relative; }
.ac-lista { position: absolute; left: 0; right: 0; top: calc(100% + 4px); background: #fff; border: 1px solid var(--line-2); border-radius: 9px; box-shadow: 0 10px 30px rgba(16, 28, 44, .14); z-index: 30; max-height: 280px; overflow: auto; }
.ac-lista div { padding: 8px 11px; cursor: pointer; display: flex; justify-content: space-between; gap: 12px; }
.ac-lista div:hover, .ac-lista div.foco { background: #f1f5fa; }
.ac-lista small { color: var(--ink-3); white-space: nowrap; }

.cliente-sel { border: 1px solid var(--line); border-radius: 9px; padding: 12px 14px; background: #fafbfd; display: flex; gap: 12px; align-items: flex-start; }
.cliente-sel .info { flex: 1; min-width: 0; }
.cliente-sel .nome { font-weight: 700; }
.cliente-sel .fraco { margin-top: 2px; }

/* ------------------------------------------------------------ modal */
.fundo { position: fixed; inset: 0; background: rgba(12, 20, 32, .45); display: grid; place-items: start center; padding: 6vh 16px; z-index: 50; overflow: auto; animation: aparece .12s ease-out; }
.modal { background: #fff; border-radius: 12px; width: min(680px, 100%); box-shadow: 0 20px 60px rgba(0, 0, 0, .25); }
.modal.largo { width: min(860px, 100%); }
.modal-cab { display: flex; align-items: center; padding: 16px 20px; border-bottom: 1px solid var(--line); }
.modal-cab h2 { font-size: 17px; flex: 1; }
.modal-corpo { padding: 18px 20px; }
.modal-pe { display: flex; gap: 8px; justify-content: flex-end; padding: 14px 20px; border-top: 1px solid var(--line); background: #fafbfd; border-radius: 0 0 12px 12px; }
.modal-pe .esp { flex: 1; }
@keyframes aparece { from { opacity: 0; } }

#toast { position: fixed; bottom: 22px; left: 50%; transform: translateX(-50%); display: flex; flex-direction: column; gap: 8px; z-index: 80; }
#toast div { background: #17212c; color: #fff; padding: 10px 16px; border-radius: 9px; box-shadow: 0 8px 24px rgba(0, 0, 0, .2); font-weight: 500; animation: aparece .15s; }
#toast div.erro { background: var(--bad); }

.cfg-logo { display: flex; gap: 16px; align-items: center; }
.cfg-logo .prev { width: 180px; height: 80px; border: 1px dashed var(--line-2); border-radius: 9px; display: grid; place-items: center; background: #fafbfd; overflow: hidden; color: var(--ink-3); font-size: 12px; }
.cfg-logo .prev img { max-width: 92%; max-height: 92%; }
input[type=color] { width: 54px; height: 38px; padding: 3px; }

/* ------------------------------------------------------------ login */
.login { min-height: 100vh; display: grid; place-items: center; background: var(--side); }
.login-card { background: #fff; padding: 34px 30px; border-radius: 14px; width: 320px; text-align: center; display: flex; flex-direction: column; gap: 12px; }
.login-card h1 { font-size: 21px; }
.login-card p { margin: -8px 0 8px; color: var(--ink-3); }
.login-card .btn { justify-content: center; }
.login-erro { color: var(--bad); min-height: 18px; font-size: 13px; }

@media (max-width: 1100px) {
  .editor { grid-template-columns: 1fr; }
  .lateral { position: static; }
  .resumo { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 760px) {
  .app { grid-template-columns: 1fr; }
  .side { position: static; height: auto; flex-direction: row; align-items: center; flex-wrap: wrap; gap: 8px; padding: 10px; }
  .side nav { flex-direction: row; flex-wrap: wrap; }
  .brand { padding: 0 8px 0 0; }
  .novo-side { margin: 0; }
  main { padding: 18px 14px 40px; }
  .g2, .g3, .g4 { grid-template-columns: 1fr; }
  .span2, .span3 { grid-column: auto; }
}

/* ajustes */
.resumo .card + .card { margin-top: 0; }
.tabela th.num { text-align: right; }

/* cliente de contrato */
.contrato-box { border: 1px solid var(--line); border-radius: 9px; padding: 12px 14px; background: #fafbfd; display: flex; flex-direction: column; gap: 10px; }
.check { display: flex; align-items: flex-start; gap: 9px; font-size: 13.5px; cursor: pointer; color: var(--ink); }
.check input { width: auto; margin-top: 3px; }
.badge.st-contrato { background: #eef0fb; color: #4b4fb0; font-size: 11px; padding: 2px 8px; vertical-align: 1px; }
.badge.st-contrato::before { display: none; }
.selo-contrato { display: inline-grid; place-items: center; width: 17px; height: 17px; border-radius: 5px; background: #eef0fb; color: #4b4fb0; font-size: 10.5px; font-weight: 700; vertical-align: 1px; }
.totais-box .linha span:last-child { white-space: nowrap; padding-left: 10px; }
.itens-ed .c-u { width: 100px; }

/* opções de pagamento */
.pg-previa { margin-top: 12px; display: flex; flex-direction: column; gap: 6px; }
.pg-previa > div { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 8px; font-variant-numeric: tabular-nums; }
.pg-previa small { font-weight: 500; color: var(--ink-3); margin-left: 4px; }
.pg-av { background: #e9f6ef; color: #17734b; font-weight: 600; }
.pg-av b { font-size: 17px; }
.pg-pc { background: #f4f6f9; color: var(--ink-2); }
.pg-pc b { white-space: nowrap; }

/* marca */
.brand { flex-direction: column; align-items: flex-start; gap: 6px; padding: 6px 8px 22px; }
.brand-logo { width: 170px; height: auto; display: block; }
.brand .brand-sub { padding-left: 2px; letter-spacing: .12em; text-transform: uppercase; font-size: 10.5px; color: #7f8ca0; }
.cfg-logo .prev { position: relative; }
@media (max-width: 760px) { .brand-logo { width: 120px; } .brand { padding: 0 8px 0 0; } }

/* ---------- multiempresa ---------- */
.seletor { min-height: 100vh; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 40px 20px; background: radial-gradient(1200px 600px at 50% -10%, #263652 0%, #121c28 55%, #0c131c 100%); }
.seletor-cab { text-align: center; color: #fff; margin-bottom: 34px; }
.seletor-cab h1 { font-size: 28px; }
.seletor-cab p { color: #93a0b4; margin: 6px 0 0; font-size: 15px; }
.seletor-cards { display: grid; grid-template-columns: repeat(2, minmax(260px, 340px)); gap: 22px; }
.seletor-card { background: #fff; border-radius: 16px; padding: 26px 26px 22px; text-decoration: none; color: var(--ink); display: flex; flex-direction: column; gap: 14px; border-top: 5px solid var(--cor); box-shadow: 0 18px 50px rgba(0,0,0,.35); transition: transform .15s, box-shadow .15s; }
.seletor-card:hover { transform: translateY(-4px); box-shadow: 0 24px 60px rgba(0,0,0,.45); }
.seletor-logo { height: 64px; display: flex; align-items: center; }
.seletor-logo .logo-img, .seletor-logo .logo-chip img { max-height: 58px; max-width: 240px; }
.seletor-info b { display: block; font-size: 19px; }
.seletor-info span { color: var(--ink-3); }
.seletor-num { font-size: 13px; color: var(--ink-2); background: #f3f5f8; border-radius: 8px; padding: 8px 11px; }
.seletor-ir { color: var(--cor); font-weight: 700; }
.wordmark { font-weight: 800; font-size: 30px; letter-spacing: -.02em; color: var(--wm, var(--pri)); line-height: 1; }
.wordmark small { display: block; font-size: 10.5px; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: var(--ink-3); margin-top: 6px; }
.side .wordmark { color: #fff; font-size: 26px; }
.side .wordmark small { color: #8996a6; }
.side .logo-img { width: 170px; height: auto; display: block; }
.logo-chip { display: inline-flex; background: #fff; border-radius: 8px; padding: 6px 10px; }
.side .logo-chip img { max-width: 150px; max-height: 44px; }
.troca-empresa { display: grid; grid-template-columns: 1fr 1fr; background: rgba(255,255,255,.06); border-radius: 9px; padding: 3px; margin: 0 2px 18px; }
.troca-empresa a { text-align: center; padding: 6px 4px; border-radius: 7px; color: #8996a6; text-decoration: none; font-size: 12.5px; font-weight: 600; }
.troca-empresa a:hover { color: #fff; }
.troca-empresa a.ativa { background: var(--pri); color: #fff; }
.voltar-seletor { margin-top: auto; margin-bottom: 10px; color: #8996a6; font-size: 12.5px; text-decoration: none; padding: 6px 10px; }
.voltar-seletor:hover { color: #fff; }
.novo-side { margin-top: 0; }

/* etapas no editor */
.itens-ed tr.grupo-ed td { padding: 14px 4px 4px; border-top: 0; }
.grupo-linha { display: flex; align-items: center; gap: 8px; background: color-mix(in srgb, var(--pri) 8%, #fff); border: 1px solid color-mix(in srgb, var(--pri) 22%, #fff); border-radius: 9px; padding: 6px 8px 6px 10px; }
.grupo-nome { flex: 1; border: 1px solid transparent; background: transparent; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; font-size: 12.5px; color: var(--pri); padding: 5px 6px; }
.grupo-nome:hover { border-color: var(--line-2); background: #fff; }
.grupo-nome:focus { background: #fff; }
.grupo-sub { font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; min-width: 92px; text-align: right; }
.det-linha { display: flex; gap: 8px; align-items: flex-start; }
.det-linha textarea { flex: 1; }
.det-linha select { width: 150px; font-size: 12.5px; padding: 7px 8px; color: var(--ink-2); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { border: 1px solid var(--line-2); background: #fff; border-radius: 99px; padding: 7px 14px; font: inherit; font-weight: 600; cursor: pointer; }
.chip:hover { border-color: var(--pri); color: var(--pri); }
@media (max-width: 760px) { .seletor-cards { grid-template-columns: 1fr; } .troca-empresa { margin: 0; } .voltar-seletor { margin: 0; } }

/* ---------- Painel: navegação por seções, usuário, telas de acesso ---------- */
.side { overflow-y: auto; }
.nav-sec { font-size: 10.5px; text-transform: uppercase; letter-spacing: .12em; color: #66748a; font-weight: 700; padding: 14px 10px 5px; }
.nav-sec:first-child { padding-top: 0; }
.nav-breve { display: flex; align-items: center; gap: 11px; padding: 8px 10px; color: #5f6c7f; font-weight: 500; cursor: default; }
.nav-breve svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; opacity: .7; }
.nav-breve em { margin-left: auto; white-space: nowrap; font-style: normal; font-size: 9.5px; text-transform: uppercase; letter-spacing: .06em; border: 1px solid #3a4658; border-radius: 99px; padding: 1px 6px; }
.novo-side { margin-top: auto; margin-bottom: 12px; }
.usuario-box { display: flex; align-items: center; gap: 6px; border-top: 1px solid rgba(255,255,255,.08); padding-top: 12px; }
.usuario-link { flex: 1; min-width: 0; display: flex; align-items: center; gap: 10px; text-decoration: none; color: #c9d3df; padding: 6px; border-radius: 8px; }
.usuario-link:hover, .usuario-link.ativo { background: rgba(255,255,255,.07); color: #fff; }
.avatar { width: 32px; height: 32px; border-radius: 50%; background: var(--pri); color: #fff; display: grid; place-items: center; font-weight: 700; font-size: 12.5px; flex: none; box-shadow: 0 0 0 2px rgba(255,255,255,.15); }
body[data-empresa="redecine"] .avatar { background: #3a3f4b; }
.usuario-info { min-width: 0; display: flex; flex-direction: column; line-height: 1.25; }
.usuario-info b { font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: #fff; font-weight: 600; }
.usuario-info small { font-size: 11px; color: #7f8ca0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.usuario-sair { border: 0; background: none; color: #7f8ca0; cursor: pointer; padding: 7px; border-radius: 8px; }
.usuario-sair:hover { background: rgba(255,255,255,.07); color: #fff; }
.usuario-sair svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; display: block; }

.acesso { min-height: 100vh; display: grid; place-items: center; padding: 24px 16px; background: radial-gradient(1200px 600px at 50% -10%, #263652 0%, #121c28 55%, #0c131c 100%); }
.acesso-card { background: #fff; border-radius: 16px; width: min(380px, 100%); padding: 34px 30px 26px; box-shadow: 0 24px 70px rgba(0,0,0,.4); display: flex; flex-direction: column; gap: 14px; }
.acesso-logo { width: 190px; height: auto; display: block; margin: 0 auto 2px; }
.acesso-titulo { text-align: center; font-size: 12px; text-transform: uppercase; letter-spacing: .18em; color: var(--ink-3); font-weight: 700; margin-bottom: 6px; }
.acesso-form { display: flex; flex-direction: column; gap: 12px; }
.acesso-form[hidden] { display: none; }
.acesso-form label { display: flex; flex-direction: column; gap: 5px; font-size: 12.5px; font-weight: 600; color: var(--ink-2); }
.acesso-form label small { font-weight: 400; color: var(--ink-3); }
.acesso-form .btn { justify-content: center; padding: 10px 14px; margin-top: 4px; }
.acesso-texto { margin: 0; color: var(--ink-2); line-height: 1.5; text-align: center; }
.acesso-link { text-align: center; font-size: 13px; color: var(--ink-3); }
.acesso-rodape { margin: 4px 0 0; font-size: 12px; color: var(--ink-3); text-align: center; }
.acesso-erro { color: var(--bad); min-height: 18px; font-size: 13px; text-align: center; font-weight: 600; }
.acesso-erro:empty { min-height: 0; }
input.codigo { font-size: 22px; letter-spacing: .35em; text-align: center; font-variant-numeric: tabular-nums; font-weight: 600; }
.seletor-sair { margin-top: 26px; color: #93a0b4; font-size: 13px; text-decoration: none; }
.seletor-sair:hover { color: #fff; }

.dados { display: grid; grid-template-columns: 130px 1fr; gap: 8px 12px; margin: 0 0 12px; }
.dados dt { color: var(--ink-3); font-size: 12.5px; font-weight: 600; }
.dados dd { margin: 0; }
.passos { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 14px; line-height: 1.5; }
.passos input.codigo { margin-top: 8px; max-width: 220px; display: block; }
.qr { width: 190px; height: 190px; margin: 10px 0 6px; border: 1px solid var(--line); border-radius: 10px; padding: 6px; background: #fff; }
.qr svg { width: 100%; height: 100%; display: block; }
code.chave { background: #f3f5f8; padding: 2px 6px; border-radius: 5px; font-size: 12.5px; color: var(--ink); letter-spacing: .04em; user-select: all; }
.modal-acoes-extra { display: flex; gap: 8px; flex-wrap: wrap; padding: 0 20px 16px; }
.tabela.aud td { font-size: 13px; padding: 8px 14px; }
.tabela.aud tr.alerta td { background: #fff7f5; }
.card .check + .check { margin-top: 6px; }
.campo .check { margin-top: 6px; font-weight: 400; }
@media (max-width: 760px) {
  .side { overflow: visible; }
  .nav-sec, .nav-breve { display: none; }
  .usuario-box { border: 0; padding: 0; }
  .usuario-info { display: none; }
  .tabela.aud th:nth-child(5), .tabela.aud td:nth-child(5), .tabela.aud th:nth-child(6), .tabela.aud td:nth-child(6) { display: none; }
}

/* RedeCine: lateral preta neutra e destaques em branco (cor principal é quase preta) */
body[data-empresa="redecine"] .side { background: #0f1013; }
body[data-empresa="redecine"] .side .novo-side { background: #fff; border-color: #fff; color: #111318; }
body[data-empresa="redecine"] .side .novo-side:hover { background: #e9eaec; filter: none; }
body[data-empresa="redecine"] .troca-empresa a.ativa { background: #fff; color: #111318; }
body[data-empresa="redecine"] .side nav a.ativo { background: rgba(255,255,255,.12); }

/* ---------- Clientes: lista, ficha e abas ---------- */
[hidden] { display: none !important; }
.segmento { display: inline-flex; background: #eef1f5; border-radius: 9px; padding: 3px; gap: 2px; flex: none; }
.segmento button { border: 0; background: none; font: inherit; font-weight: 600; font-size: 13px; color: var(--ink-2); padding: 6px 12px; border-radius: 7px; cursor: pointer; }
.segmento button:hover { color: var(--ink); }
.segmento button.sel { background: #fff; color: var(--pri); box-shadow: 0 1px 3px rgba(16,28,44,.12); }
.segmento.grande button { padding: 9px 18px; font-size: 14px; }
.resumo-cli { grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); }
.resumo-cli .card { cursor: default; }
.voltar { display: inline-block; margin-bottom: 8px; color: var(--ink-3); text-decoration: none; font-size: 13px; font-weight: 600; }
.voltar:hover { color: var(--pri); }
.topo h1 .badge { font-size: 12px; vertical-align: 4px; margin-left: 4px; }
.abas { display: flex; gap: 2px; border-bottom: 1px solid var(--line-2); margin: -4px 0 18px; overflow-x: auto; }
.abas button { border: 0; background: none; font: inherit; font-weight: 600; color: var(--ink-3); padding: 10px 14px; cursor: pointer; border-bottom: 2px solid transparent; margin-bottom: -1px; white-space: nowrap; }
.abas button:hover { color: var(--ink); }
.abas button.sel { color: var(--pri); border-bottom-color: var(--pri); }
.abas .cont { display: inline-block; min-width: 18px; padding: 0 6px; border-radius: 99px; background: #eef1f5; color: var(--ink-2); font-size: 11.5px; line-height: 18px; text-align: center; }
.abas button.sel .cont { background: color-mix(in srgb, var(--pri) 12%, #fff); color: var(--pri); }
.dados dd.pre, .pre { white-space: pre-wrap; }
.chips-info { display: flex; flex-wrap: wrap; gap: 6px; }
.chips-info span { background: #f3f5f8; border: 1px solid var(--line); border-radius: 99px; padding: 4px 10px; font-size: 12.5px; }
.aviso { color: var(--warn); font-weight: 600; }
p.aviso { margin: 10px 0 0; font-size: 13px; }
.mono, input.mono, textarea.mono { font-family: ui-monospace, "Cascadia Mono", Consolas, monospace; font-size: 12.5px; }
textarea.mono { line-height: 1.5; }
.whats { font-size: 11.5px; font-weight: 600; color: #1f8a5b; text-decoration: none; margin-left: 4px; }
.whats:hover { text-decoration: underline; }
.tabela tr.inativo td { opacity: .5; }
.tabela.eq td { font-size: 13px; }
.filtros .check { font-size: 13px; color: var(--ink-2); }
.modal-pe .esp { flex: 1; }
@media (max-width: 760px) {
  .tabela.eq th:nth-child(n+5), .tabela.eq td:nth-child(n+5) { display: none; }
  .filtros { flex-wrap: wrap; }
}
.grade > .card + .card { margin-top: 0; }
td.mono { white-space: nowrap; }

/* ---------- Unidades e revisões ---------- */
.nav-alerta { margin-left: auto; background: #e5484d; color: #fff; font-size: 11px; font-weight: 700; border-radius: 99px; min-width: 19px; height: 19px; display: inline-grid; place-items: center; padding: 0 5px; }
.abas .cont.alerta { background: #fdecec; color: var(--bad); }
.rev-linha { display: flex; align-items: center; gap: 8px; padding: 5px 0; flex-wrap: wrap; }
.rev-linha .esp { flex: 1; }
.rev-status { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 10px; margin-top: 14px; }
.rev-item { border: 1px solid var(--line); border-left: 4px solid var(--line-2); border-radius: 9px; padding: 10px 12px; display: flex; flex-direction: column; gap: 5px; background: #fafbfd; }
.rev-item.st-atrasada { border-left-color: var(--bad); }
.rev-item.st-proxima { border-left-color: var(--warn); }
.rev-item.st-em_dia { border-left-color: var(--ok); }
.rev-card { border-top: 3px solid transparent; }
.rev-card.st-atrasada .val { color: var(--bad); }
.rev-card.st-proxima .val { color: var(--warn); }
.rev-card.st-em_dia .val { color: var(--ok); }
td.pre { white-space: pre-wrap; max-width: 420px; }
