/* ============================================================
   EAGLE BULLETS — MISSION CONTROL
   Design tokens + workstation layout
   ============================================================ */
:root {
  /* superfícies */
  --bg:        #070809;
  --surface:   #0d0f12;
  --surface-2: #111318;
  --surface-3: #171a20;
  --line:      rgba(255, 255, 255, .07);
  --line-2:    rgba(255, 255, 255, .12);

  /* texto */
  --txt:       #f5f5f2;
  --txt-2:     #8b8e94;
  --txt-dim:   #61646b;

  /* accent */
  --gold:      #c9a227;
  --gold-hi:   #e2bf4e;
  --gold-dim:  rgba(201, 162, 39, .13);
  --gold-line: rgba(201, 162, 39, .34);

  --ok:        #3fb950;
  --ok-dim:    rgba(63, 185, 80, .12);
  --wa:        #25d366;
  --err:       #e5534b;
  --err-dim:   rgba(229, 83, 75, .12);

  --radius:    10px;
  --radius-sm: 8px;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  --sans: "Inter", -apple-system, "Segoe UI", Roboto, sans-serif;

  --bar-h: 54px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

/* o atributo hidden precisa vencer os display:flex/grid dos componentes */
[hidden] { display: none !important; }

html { background: var(--bg); }

body {
  background: var(--bg);
  color: var(--txt);
  font-family: var(--sans);
  font-size: 13.5px;
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
  padding-top: var(--bar-h);
  min-height: 100vh;
}

.mono { font-family: var(--mono); font-variant-numeric: tabular-nums; letter-spacing: -.2px; }
.dim { color: var(--txt-2); }
.tiny { font-size: 11.5px; }
.neg { color: var(--gold-hi); }

/* ============ COMMAND BAR ============ */
.cmdbar {
  position: fixed; top: 0; left: 0; right: 0; height: var(--bar-h); z-index: 60;
  display: flex; align-items: center; gap: 20px;
  padding: 0 18px;
  background: rgba(9, 10, 12, .92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.cmd-brand { display: flex; align-items: center; gap: 11px; flex-shrink: 0; }
.cmd-logo { height: 28px; width: auto; opacity: .95; }
.cmd-brand-txt { display: flex; flex-direction: column; line-height: 1.15; }
.cmd-name { font-size: 12.5px; font-weight: 700; letter-spacing: 2.4px; color: var(--txt); }
.cmd-sub { font-size: 10px; letter-spacing: 1.6px; text-transform: uppercase; color: var(--gold); font-weight: 500; }

.cmd-center { flex: 1; display: flex; align-items: center; gap: 10px; justify-content: center; min-width: 0; }
.cmd-tag {
  font-size: 10.5px; letter-spacing: 1.6px; text-transform: uppercase;
  color: var(--txt-2); padding: 4px 10px; border: 1px solid var(--line); border-radius: 20px;
}
.cmd-num { font-family: var(--mono); font-size: 12.5px; color: var(--gold-hi); font-weight: 600; letter-spacing: .3px; }

.cmd-right { display: flex; align-items: center; gap: 16px; flex-shrink: 0; }
.cmd-meta { display: flex; flex-direction: column; line-height: 1.25; text-align: right; }
.cmd-meta-k { font-size: 9.5px; letter-spacing: 1.4px; text-transform: uppercase; color: var(--txt-dim); }
.cmd-meta-v { font-size: 11.5px; color: var(--txt-2); }
.cmd-status {
  display: flex; align-items: center; gap: 7px;
  font-size: 10.5px; letter-spacing: 1.3px; text-transform: uppercase; color: var(--txt-2);
}
.dot-live {
  width: 6px; height: 6px; border-radius: 50%; background: var(--ok);
  box-shadow: 0 0 0 3px var(--ok-dim); animation: pulso 2.6s ease-in-out infinite;
}
@keyframes pulso { 0%, 100% { opacity: 1; } 50% { opacity: .45; } }
.cmd-clock { font-size: 12px; color: var(--txt-2); min-width: 42px; text-align: right; }

.cmd-notice-btn {
  display: flex; align-items: center; gap: 7px;
  background: transparent; border: 1px solid var(--line); color: var(--txt-2);
  border-radius: 20px; padding: 4px 11px; cursor: pointer; font-family: inherit;
  font-size: 10.5px; letter-spacing: 1.2px; text-transform: uppercase; transition: all .15s;
}
.cmd-notice-btn:hover { border-color: var(--gold-line); color: var(--txt); }
.notice-ico {
  width: 14px; height: 14px; border-radius: 50%; background: var(--gold-dim); color: var(--gold-hi);
  display: inline-flex; align-items: center; justify-content: center; font-weight: 700; font-size: 10px;
}
.notice-count { font-family: var(--mono); color: var(--gold-hi); }

.notices-panel {
  position: absolute; top: calc(var(--bar-h) - 4px); right: 18px; width: min(560px, calc(100vw - 36px));
  background: var(--surface-2); border: 1px solid var(--line-2); border-radius: var(--radius);
  padding: 12px 14px; box-shadow: 0 18px 44px rgba(0, 0, 0, .6); z-index: 70;
}
.notices-head {
  font-size: 10px; letter-spacing: 1.6px; text-transform: uppercase; color: var(--txt-dim);
  margin-bottom: 8px;
}
.aviso {
  font-size: 12px; color: var(--txt-2); padding: 7px 0; border-top: 1px solid var(--line);
  display: flex; gap: 8px; line-height: 1.5;
}
.aviso::before { content: "▸"; color: var(--gold); flex-shrink: 0; }
.aviso:first-child { border-top: none; }

/* ============ WORKSPACE ============ */
.workspace {
  display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 16px;
  padding: 16px; max-width: 1780px; margin: 0 auto; align-items: start;
}
.main-col { display: flex; flex-direction: column; gap: 14px; min-width: 0; }

/* ---- módulo (card denso) ---- */
.mod {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden;
}
.mod-head {
  display: flex; align-items: center; gap: 11px; flex-wrap: wrap;
  padding: 11px 15px; border-bottom: 1px solid var(--line); background: var(--surface-2);
}
.mod-num {
  font-size: 10.5px; color: var(--gold); font-weight: 600;
  padding: 2px 7px; background: var(--gold-dim); border-radius: 5px; letter-spacing: .5px;
}
.mod-head h2 {
  font-size: 11.5px; font-weight: 600; letter-spacing: 1.8px; text-transform: uppercase; color: var(--txt);
}
.mod-hint { font-size: 11px; color: var(--txt-dim); margin-left: auto; }
.mod-body { padding: 14px 15px; }
.mod-foot {
  display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  padding: 11px 15px; border-top: 1px solid var(--line); background: var(--surface-2);
}
.mod-produtos > .tiny { padding: 0 15px 10px; }

/* ---- campos ---- */
.row-fields, .log-body { display: flex; gap: 12px; flex-wrap: wrap; align-items: flex-end; }
.field { display: flex; flex-direction: column; gap: 5px; min-width: 140px; flex: 0 1 auto; }
.field.grow { flex: 1 1 260px; }
.field-label {
  font-size: 9.5px; letter-spacing: 1.4px; text-transform: uppercase; color: var(--txt-dim);
}
.field input, textarea, .input-mini {
  background: var(--surface-2); border: 1px solid var(--line); color: var(--txt);
  border-radius: var(--radius-sm); padding: 8px 11px; font-size: 13.5px; font-family: inherit;
  width: 100%; transition: border-color .15s, background .15s;
}
.field input:hover { border-color: var(--line-2); }
.field input:focus, textarea:focus, .input-mini:focus {
  outline: none; border-color: var(--gold-line); background: var(--surface-3);
}
.field input::placeholder { color: #4a4d54; }
.input-mini { width: 74px; text-align: right; padding: 7px 9px; font-size: 12.5px; }

/* ---- documento do cliente ---- */
.doc-wrap { display: flex; gap: 6px; align-items: stretch; }
.doc-wrap input { flex: 1; min-width: 0; }
.doc-wrap .btn { white-space: nowrap; padding: 0 12px; }
.doc-status { padding: 0 15px 12px; min-height: 16px; }
.doc-status.ok { color: var(--ok); }
.doc-status.erro { color: var(--err); }
.doc-status.aviso { color: var(--gold-hi); }

/* ---- switch (modo unitário) ---- */
.switch { display: inline-flex; align-items: center; gap: 8px; cursor: pointer; user-select: none; }
.switch input { position: absolute; opacity: 0; pointer-events: none; }
.switch-track {
  width: 30px; height: 17px; border-radius: 10px; background: var(--surface-3);
  border: 1px solid var(--line-2); position: relative; transition: background .18s, border-color .18s;
}
.switch-thumb {
  position: absolute; top: 2px; left: 2px; width: 11px; height: 11px; border-radius: 50%;
  background: var(--txt-2); transition: transform .18s, background .18s;
}
.switch input:checked + .switch-track { background: var(--gold-dim); border-color: var(--gold-line); }
.switch input:checked + .switch-track .switch-thumb { transform: translateX(13px); background: var(--gold-hi); }
.switch-label { font-size: 10.5px; letter-spacing: 1.2px; text-transform: uppercase; color: var(--txt-2); }
.switch input:checked ~ .switch-label { color: var(--gold-hi); }

/* ============ DATA GRID — PRODUTOS ============ */
.grid-scroll { overflow-x: auto; }
.datagrid { width: 100%; border-collapse: collapse; }
.datagrid th {
  text-align: left; padding: 8px 12px; font-size: 9.5px; font-weight: 600;
  letter-spacing: 1.4px; text-transform: uppercase; color: var(--txt-dim);
  border-bottom: 1px solid var(--line); white-space: nowrap; background: var(--surface);
  position: sticky; top: 0;
}
.datagrid td {
  padding: 7px 12px; border-bottom: 1px solid rgba(255, 255, 255, .035); white-space: nowrap;
  color: var(--txt-2);
}
.datagrid tbody tr { transition: background .12s; position: relative; }
.datagrid tbody tr:hover { background: rgba(255, 255, 255, .022); }
.datagrid .num { text-align: right; font-family: var(--mono); font-variant-numeric: tabular-nums; }
.datagrid th.num { text-align: right; }
.datagrid .c-ref { width: 96px; }
.datagrid .c-qtd { width: 190px; text-align: right; }
.datagrid .c-sub { width: 118px; }
.cel-ref {
  font-family: var(--mono); font-size: 12.5px; font-weight: 600; color: var(--txt); letter-spacing: -.2px;
}
.cel-cal { color: var(--txt); }
.datagrid .cel-sub { color: var(--txt-dim); }

/* linha ativa: barra dourada discreta */
.datagrid tbody tr.selecionado { background: rgba(201, 162, 39, .045); }
.datagrid tbody tr.selecionado td:first-child { box-shadow: inset 2px 0 0 var(--gold); }
.datagrid tbody tr.selecionado .cel-sub { color: var(--gold-hi); font-weight: 600; }
.datagrid tbody tr.selecionado .cel-ref { color: var(--gold-hi); }

/* ---- stepper premium ---- */
.stepper {
  display: inline-flex; align-items: center; gap: 2px;
  background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--radius-sm);
  padding: 2px; transition: border-color .15s;
}
.stepper:focus-within { border-color: var(--gold-line); }
tr.selecionado .stepper { border-color: var(--line-2); }
.qtd-btn {
  width: 26px; height: 26px; border: none; background: transparent; color: var(--txt-2);
  font-size: 15px; line-height: 1; cursor: pointer; border-radius: 6px; font-family: inherit;
  transition: background .12s, color .12s;
}
.qtd-btn:hover { background: var(--gold-dim); color: var(--gold-hi); }
.qtd-btn:active { transform: scale(.94); }
input.qtd {
  width: 92px; border: none; background: transparent; color: var(--txt);
  font-family: var(--mono); font-variant-numeric: tabular-nums;
  font-size: 14px; font-weight: 600; text-align: center; padding: 3px 0;
  -moz-appearance: textfield;
}
input.qtd::-webkit-outer-spin-button, input.qtd::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
input.qtd:focus { outline: none; }
input.qtd::placeholder { color: #43464c; font-weight: 400; }
tr.selecionado input.qtd { color: var(--gold-hi); }
/* microinteração ~170ms ao alterar */
@keyframes bump { 0% { transform: scale(1); } 45% { transform: scale(1.11); } 100% { transform: scale(1); } }
input.qtd.bump { animation: bump .17s ease-out; }

/* ---- caixa de calibração (9mm: .355" ou .356") ---- */
.datagrid tr.tr-calibre td { padding: 0 12px 9px; border-bottom: 1px solid rgba(255, 255, 255, .035); }
.datagrid tr.tr-calibre:hover { background: transparent; }
.calibre-box {
  display: flex; align-items: center; gap: 11px; flex-wrap: wrap;
  background: var(--surface-2); border: 1px solid var(--line);
  border-left: 2px solid var(--gold); border-radius: var(--radius-sm); padding: 9px 13px;
}
tr.tr-calibre.pendente .calibre-box {
  border-color: var(--err-dim); border-left-color: var(--err); background: var(--err-dim);
}
.calibre-alerta {
  display: none; width: 17px; height: 17px; border-radius: 50%; flex-shrink: 0;
  background: var(--err); color: #fff; font-size: 11px; font-weight: 700;
  align-items: center; justify-content: center; line-height: 1;
}
tr.tr-calibre.pendente .calibre-alerta { display: inline-flex; }
.calibre-txt { font-size: 12px; color: var(--txt-2); white-space: normal; }
.calibre-txt strong { color: var(--txt); font-family: var(--mono); font-size: 11.5px; }
.calibre-ops { margin-left: auto; }
.calibre-btn { font-family: var(--mono); font-size: 12px; letter-spacing: -.2px; }
.calibre-btn:hover { color: var(--txt); background: rgba(255, 255, 255, .05); }
.calibre-btn.ativo {
  background: var(--gold-dim); color: var(--gold-hi); font-weight: 600;
  box-shadow: inset 0 0 0 1px var(--gold-line);
}
@keyframes piscar-cal {
  0%, 100% { box-shadow: 0 0 0 0 rgba(229, 83, 75, 0); }
  25%, 75%  { box-shadow: 0 0 0 3px rgba(229, 83, 75, .45); }
}
.calibre-box.piscar { animation: piscar-cal .9s ease-in-out 2; }
/* etiqueta da calibração no plano de caixas */
.cal-tag { color: var(--gold); font-family: var(--mono); font-size: 11px; }

/* ---- stepper por calibração ---- */
.stepper-linha { display: flex; align-items: center; justify-content: flex-end; gap: 7px; }
.stepper-linha + .stepper-linha { margin-top: 4px; }
.cal-tag {
  font-family: var(--mono); font-size: 10px; color: var(--txt-dim);
  background: var(--surface-3); border-radius: 4px; padding: 2px 5px; letter-spacing: -.2px;
  min-width: 42px; text-align: center;
}
tr.selecionado .cal-tag { color: var(--gold-hi); background: var(--gold-dim); }
.cal-unica { color: var(--txt-dim); font-family: var(--mono); font-size: 10.5px; margin-left: 7px; }
.tr-multi td { padding-top: 9px; padding-bottom: 9px; }

/* ---- desconto (segmented) ---- */
.seg-wrap, .seg-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.seg-row { margin-bottom: 12px; }
.seg-title {
  font-size: 9.5px; letter-spacing: 1.4px; text-transform: uppercase; color: var(--txt-dim);
  min-width: 122px;
}
.segmented {
  display: inline-flex; background: var(--surface-2); border: 1px solid var(--line);
  border-radius: var(--radius-sm); padding: 2px; gap: 2px; flex-wrap: wrap;
}
.segmented button, .desc-btn, .pill-btn {
  background: transparent; border: none; color: var(--txt-2); font-family: inherit;
  font-size: 12px; padding: 6px 13px; border-radius: 6px; cursor: pointer;
  transition: background .14s, color .14s; white-space: nowrap;
}
.segmented button:hover { color: var(--txt); background: rgba(255, 255, 255, .04); }
.segmented button.ativo {
  background: var(--gold-dim); color: var(--gold-hi); font-weight: 600;
  box-shadow: inset 0 0 0 1px var(--gold-line);
}
.foot-totais { display: flex; align-items: baseline; gap: 12px; margin-left: auto; }
.foot-sub { font-size: 12px; color: var(--txt-2); letter-spacing: .3px; }
.foot-sub strong { font-size: 15px; color: var(--txt); margin-left: 6px; font-weight: 600; }

/* ============ LOGÍSTICA ============ */
.btn {
  font-family: inherit; border-radius: var(--radius-sm); cursor: pointer; border: 1px solid transparent;
  transition: background .15s, border-color .15s, color .15s, opacity .15s;
  font-size: 12.5px; padding: 9px 16px;
}
.btn:disabled { opacity: .4; cursor: not-allowed; }
.btn-primary {
  background: var(--gold-dim); border-color: var(--gold-line); color: var(--gold-hi); font-weight: 600;
  display: inline-flex; flex-direction: column; align-items: center; line-height: 1.25;
}
.btn-primary:hover:not(:disabled) { background: rgba(201, 162, 39, .2); border-color: var(--gold); }
.btn-calc { min-width: 190px; padding: 7px 20px; }
.btn-label { font-size: 12.5px; letter-spacing: .6px; }
.btn-hint { font-size: 9.5px; letter-spacing: 1.1px; text-transform: uppercase; color: var(--txt-dim); }
.btn-ghost { background: transparent; border-color: var(--line); color: var(--txt-2); }
.btn-ghost:hover:not(:disabled) { border-color: var(--line-2); color: var(--txt); }
.btn-wa { background: rgba(37, 211, 102, .12); border-color: rgba(37, 211, 102, .32); color: var(--wa); font-weight: 600; }
.btn-wa:hover:not(:disabled) { background: rgba(37, 211, 102, .2); border-color: var(--wa); }

/* ---- plano de caixas ---- */
.boxplan { border-top: 1px solid var(--line); padding: 12px 15px; background: var(--surface-2); }
.boxplan-head { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; margin-bottom: 8px; }
.boxplan-title { font-size: 10px; letter-spacing: 1.4px; text-transform: uppercase; color: var(--txt-2); }
.boxplan-resumo { margin-left: auto; font-size: 12px; color: var(--gold-hi); }
.boxplan-list { display: flex; flex-direction: column; gap: 5px; }
.caixa-linha {
  display: flex; align-items: baseline; gap: 9px; flex-wrap: wrap;
  font-size: 12px; color: var(--txt-2);
  padding: 6px 10px; background: var(--surface); border: 1px solid var(--line); border-radius: 7px;
}
.caixa-linha strong {
  font-family: var(--mono); font-size: 11px; color: var(--txt); font-weight: 600;
  padding: 1px 6px; background: var(--surface-3); border-radius: 4px; letter-spacing: .3px;
}
.peso-caixa { color: var(--txt-dim); font-family: var(--mono); font-size: 11px; }

/* ============ COMPARATIVO DE FRETE ============ */
.fretes { padding: 4px 0 0; }
.gf-head, .gf-row {
  display: grid;
  grid-template-columns: 22px minmax(150px, 1.2fr) 96px minmax(180px, 2fr) 118px;
  align-items: center; gap: 12px; padding: 9px 15px;
}
.gf-head {
  font-size: 9.5px; letter-spacing: 1.4px; text-transform: uppercase; color: var(--txt-dim);
  border-bottom: 1px solid var(--line);
}
.gf-head .num, .gf-row .num { text-align: right; }
.gf-row {
  border-bottom: 1px solid rgba(255, 255, 255, .035); cursor: pointer;
  transition: background .13s, box-shadow .13s;
}
.gf-row:hover { background: rgba(255, 255, 255, .025); }
.gf-row.ativo { background: rgba(201, 162, 39, .06); box-shadow: inset 2px 0 0 var(--gold); }
.gf-row input[type=radio] { accent-color: var(--gold); width: 14px; height: 14px; cursor: pointer; }
.gf-nome { font-size: 13.5px; font-weight: 600; color: var(--txt); display: flex; align-items: center; gap: 7px; flex-wrap: wrap; }
.gf-prazo { font-family: var(--mono); font-size: 12px; color: var(--txt-2); }
.gf-comp { font-size: 11px; color: var(--txt-dim); line-height: 1.5; min-width: 0; }
.gf-comp .alerta { color: #a3853a; display: block; margin-top: 2px; }
.gf-total { font-family: var(--mono); font-variant-numeric: tabular-nums; font-size: 15.5px; font-weight: 600; color: var(--txt); }
.gf-row.ativo .gf-total { color: var(--gold-hi); }
.gf-melhor .gf-total { color: var(--gold-hi); }

.badge {
  font-size: 9px; letter-spacing: .9px; text-transform: uppercase; font-weight: 600;
  padding: 2px 7px; border-radius: 4px; white-space: nowrap;
}
.badge.melhor { background: var(--gold-dim); color: var(--gold-hi); box-shadow: inset 0 0 0 1px var(--gold-line); }
.badge.ok { background: var(--ok-dim); color: var(--ok); }
.badge.perigo { background: var(--err-dim); color: var(--err); }
.badge.atencao { background: rgba(255, 255, 255, .05); color: var(--txt-2); }

.gf-toggle {
  width: 100%; background: transparent; border: none; border-top: 1px solid var(--line);
  color: var(--txt-dim); font-family: inherit; font-size: 11px; padding: 9px; cursor: pointer;
  letter-spacing: .8px; transition: color .15s;
}
.gf-toggle:hover { color: var(--txt-2); }
.gf-indisp { border-top: 1px solid var(--line); }
.gf-off {
  display: grid; grid-template-columns: minmax(150px, 1fr) 2fr; gap: 12px; align-items: center;
  padding: 8px 15px; font-size: 12px; color: var(--txt-dim); border-bottom: 1px solid rgba(255, 255, 255, .03);
}
.gf-off .gf-nome { font-size: 12.5px; font-weight: 500; color: var(--txt-2); }

/* skeleton */
.sk-row { display: grid; grid-template-columns: 22px 1.2fr 96px 2fr 118px; gap: 12px; padding: 11px 15px; }
.sk { height: 11px; border-radius: 4px; background: linear-gradient(90deg, #14161b 25%, #1c1f26 50%, #14161b 75%); background-size: 200% 100%; animation: shimmer 1.15s linear infinite; }
@keyframes shimmer { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } }

/* ============ PAINÉIS (dicas / frases) ============ */
.painel { margin: 12px 15px 15px; border-radius: var(--radius); padding: 12px 14px; border: 1px solid var(--line); }
.painel-gold { background: rgba(201, 162, 39, .04); border-color: var(--gold-line); }
.painel-green { background: rgba(37, 211, 102, .035); border-color: rgba(37, 211, 102, .22); }
.painel h3 {
  font-size: 10px; letter-spacing: 1.5px; text-transform: uppercase; margin-bottom: 9px; font-weight: 600;
}
.painel-gold h3 { color: var(--gold-hi); }
.painel-green h3 { color: var(--wa); }
.dica, .frase {
  display: flex; align-items: center; gap: 12px; padding: 8px 0;
  border-top: 1px solid var(--line); font-size: 12.5px; line-height: 1.55;
}
.dica:first-of-type, .frase:first-of-type { border-top: none; }
.dica span, .frase p { flex: 1; min-width: 0; }
.dica strong { color: var(--gold-hi); font-weight: 600; }
.frase p { white-space: pre-wrap; color: var(--txt-2); }
.frase .rotulo {
  display: block; color: var(--txt-dim); font-size: 9.5px; text-transform: uppercase;
  letter-spacing: 1.3px; margin-bottom: 3px;
}
.dica-btn, .copiar-btn {
  background: transparent; border: 1px solid var(--line-2); color: var(--txt-2);
  border-radius: 7px; padding: 6px 13px; font-size: 11.5px; cursor: pointer; white-space: nowrap;
  font-family: inherit; font-weight: 500; transition: all .15s;
}
.dica-btn:hover { border-color: var(--gold); color: var(--gold-hi); background: var(--gold-dim); }
.copiar-btn:hover { border-color: var(--wa); color: var(--wa); background: rgba(37, 211, 102, .1); }
.copiar-btn.copiado { border-color: var(--wa); color: var(--wa); background: rgba(37, 211, 102, .16); }
.painel .dim { margin-top: 8px; display: block; }

/* ============ FATURAMENTO ============ */
.bank {
  display: flex; gap: 14px; align-items: flex-start; flex-wrap: wrap;
  background: var(--surface-2); border: 1px solid var(--line); border-left: 2px solid var(--wa);
  border-radius: var(--radius-sm); padding: 12px 14px; margin-bottom: 14px;
}
.bank pre { flex: 1; min-width: 240px; font-size: 11.5px; line-height: 1.65; color: var(--txt-2); white-space: pre-wrap; }
.msg-box { margin-bottom: 12px; }
.msg-box summary {
  cursor: pointer; font-size: 9.5px; letter-spacing: 1.4px; text-transform: uppercase;
  color: var(--txt-dim); padding: 6px 0; list-style: none;
}
.msg-box summary::-webkit-details-marker { display: none; }
.msg-box summary::before { content: "▸ "; color: var(--gold); }
.msg-box[open] summary::before { content: "▾ "; }
.msg-box textarea { font-size: 12px; line-height: 1.6; resize: vertical; margin-top: 6px; }
.acoes-envio { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.acoes-envio .btn-wa { flex: 1; min-width: 220px; padding: 11px 18px; font-size: 13px; }

/* ---- 05 empresa vendedora: tiles ---- */
.emp-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(168px, 1fr)); gap: 10px; }
.emp-card {
  display: flex; flex-direction: column; gap: 3px; text-align: left;
  background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--radius-sm);
  padding: 11px 13px; cursor: pointer; font-family: inherit; transition: all .15s;
}
.emp-card:hover { border-color: var(--line-2); background: var(--surface-3); }
.emp-card.ativo {
  border-color: var(--gold-line); background: var(--gold-dim);
  box-shadow: inset 2px 0 0 var(--gold);
}
.emp-nome { font-size: 13.5px; font-weight: 600; color: var(--txt); letter-spacing: .2px; }
.emp-card.ativo .emp-nome { color: var(--gold-hi); }
.emp-cnpj { font-family: var(--mono); font-size: 10.5px; color: var(--txt-dim); }
.emp-formas { font-size: 10px; letter-spacing: .8px; text-transform: uppercase; color: var(--txt-dim); margin-top: 3px; }

/* ============ SIDEBAR ============ */
.side-col { position: sticky; top: calc(var(--bar-h) + 16px); }
.side-inner {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden;
}
.side-head {
  padding: 11px 14px; border-bottom: 1px solid var(--line); background: var(--surface-2);
  display: flex; flex-direction: column; gap: 6px;
}
.side-title { font-size: 10.5px; letter-spacing: 1.7px; text-transform: uppercase; color: var(--txt); font-weight: 600; }
.quote-status {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 10px; letter-spacing: 1.2px; text-transform: uppercase; color: var(--txt-2);
}
.quote-status .dot { width: 5px; height: 5px; border-radius: 50%; background: var(--txt-dim); }
.quote-status.pronta { color: var(--ok); }
.quote-status.pronta .dot { background: var(--ok); box-shadow: 0 0 0 3px var(--ok-dim); }
.quote-status.travada { color: var(--err); }
.quote-status.travada .dot { background: var(--err); box-shadow: 0 0 0 3px var(--err-dim); }

.kpis { display: grid; grid-template-columns: 1fr 1fr; }
.kpi {
  padding: 10px 14px; border-bottom: 1px solid var(--line);
  display: flex; flex-direction: column; gap: 2px;
}
.kpi:nth-child(odd) { border-right: 1px solid var(--line); }
.kpi-k { font-size: 9px; letter-spacing: 1.3px; text-transform: uppercase; color: var(--txt-dim); }
.kpi-v { font-size: 15px; font-weight: 600; color: var(--txt); }

.side-lines { padding: 10px 14px; display: flex; flex-direction: column; gap: 7px; }
.sline { display: flex; justify-content: space-between; align-items: baseline; font-size: 12.5px; color: var(--txt-2); }
.sline .mono { color: var(--txt); font-size: 13px; }
.sline #sbEmpresa { font-size: 12.5px; color: var(--txt-dim); }
.sline #sbEmpresa.destaque { color: var(--gold-hi); font-weight: 600; }

.side-total {
  display: flex; justify-content: space-between; align-items: baseline;
  padding: 13px 14px; border-top: 1px solid var(--line-2); background: rgba(201, 162, 39, .04);
}
.total-k { font-size: 10.5px; letter-spacing: 1.7px; text-transform: uppercase; color: var(--txt-2); }
.total-v { font-size: 23px; font-weight: 700; color: var(--gold-hi); letter-spacing: -.5px; }

.side-actions { padding: 12px 14px; display: flex; flex-direction: column; gap: 8px; border-top: 1px solid var(--line); }
.side-actions .btn { width: 100%; justify-content: center; text-align: center; }
.side-actions .btn-primary { flex-direction: row; padding: 10px 16px; }

/* ============ FEED ============ */
.feed-wrap {
  max-width: 1780px; margin: 0 auto; padding: 6px 16px 24px;
}
.feed-wrap .mod-head {
  background: transparent; border-bottom: 1px solid var(--line); border-radius: 0; padding: 11px 2px;
}
.feed { display: flex; flex-direction: column; color: var(--txt-2); font-size: 12.5px; padding-top: 4px; }
.feed-item {
  display: grid;
  grid-template-columns: 62px 54px minmax(120px, 1fr) minmax(200px, 2.2fr) minmax(120px, 1fr) 118px 118px 100px;
  align-items: center; gap: 12px; padding: 10px 2px;
  border-bottom: 1px solid rgba(255, 255, 255, .035); transition: background .12s;
}
.feed-item:hover { background: rgba(255, 255, 255, .02); }
.fi-num { font-family: var(--mono); font-size: 11.5px; color: var(--gold); }
.fi-hora { font-family: var(--mono); font-size: 11.5px; color: var(--txt-dim); }
.fi-cliente { font-weight: 600; color: var(--txt); font-size: 13px; }
.fi-itens { color: var(--txt-dim); font-size: 11.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fi-transp { font-size: 11.5px; color: var(--txt-2); }
.fi-pag { font-size: 11px; color: var(--txt-dim); line-height: 1.45; }
.fi-emp { display: block; font-size: 10px; color: var(--gold); letter-spacing: .4px; }
.fi-total { font-family: var(--mono); font-variant-numeric: tabular-nums; text-align: right; font-size: 13.5px; font-weight: 600; color: var(--txt); }
.fi-acao { text-align: right; }
.fi-acao a {
  color: var(--txt-dim); text-decoration: none; font-size: 11px; border: 1px solid var(--line);
  padding: 4px 10px; border-radius: 6px; transition: all .15s; white-space: nowrap;
}
.fi-acao a:hover { color: var(--wa); border-color: rgba(37, 211, 102, .4); }
.fi-status {
  font-size: 8.5px; letter-spacing: 1px; text-transform: uppercase; color: var(--ok);
  background: var(--ok-dim); padding: 2px 7px; border-radius: 4px; justify-self: start;
}

footer {
  text-align: center; color: #3d3f45; font-size: 11px; padding: 4px 0 30px; letter-spacing: .3px;
}

/* ============ BARRA MOBILE ============ */
.mobilebar {
  display: none; position: fixed; bottom: 0; left: 0; right: 0; z-index: 55;
  padding: 10px 14px; gap: 12px; align-items: center;
  background: rgba(9, 10, 12, .95); backdrop-filter: blur(12px); border-top: 1px solid var(--line-2);
}
.mb-info { display: flex; flex-direction: column; flex: 1; line-height: 1.2; }
.mb-status { font-size: 9px; letter-spacing: 1.2px; text-transform: uppercase; color: var(--txt-dim); }
.mb-total { font-size: 17px; font-weight: 700; color: var(--gold-hi); }

/* ============ LOGIN ============ */
.tela-login {
  display: flex; align-items: center; justify-content: center; min-height: 100vh; padding: 24px 16px;
}
.login-caixa {
  width: 100%; max-width: 380px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px 26px; box-shadow: 0 24px 60px rgba(0, 0, 0, .5);
}
.login-marca { display: flex; align-items: center; gap: 13px; margin-bottom: 24px; }
.login-marca img { height: 40px; }
.login-marca div { display: flex; flex-direction: column; line-height: 1.2; }
.login-form { display: flex; flex-direction: column; gap: 14px; }
.login-form .btn-primary { margin-top: 4px; padding: 11px; }
.login-erro {
  background: var(--err-dim); border: 1px solid rgba(229, 83, 75, .3); color: #f0a9a4;
  border-radius: var(--radius-sm); padding: 8px 11px; font-size: 12.5px;
}
.login-rodape {
  margin-top: 20px; text-align: center; color: var(--txt-dim); font-size: 10.5px;
  letter-spacing: 1.2px; text-transform: uppercase;
}

/* ============ USUÁRIOS ============ */
.workspace-simples {
  max-width: 1100px; margin: 0 auto; padding: 16px;
  display: flex; flex-direction: column; gap: 14px;
}
.btn-mini { padding: 4px 11px; font-size: 11px; text-decoration: none; display: inline-flex; align-items: center; }
.usuario-chip {
  font-size: 11.5px; color: var(--txt-2); border: 1px solid var(--line);
  border-radius: 20px; padding: 5px 12px; white-space: nowrap;
}
.linha-inativa { opacity: .5; }
.acoes-linha { display: flex; gap: 6px; justify-content: flex-end; }
.acoes-linha .btn { padding: 5px 11px; font-size: 11.5px; }
.sel-papel {
  background: var(--surface-2); border: 1px solid var(--line); color: var(--txt);
  border-radius: 6px; padding: 5px 9px; font-family: inherit; font-size: 12.5px;
}
.sel-papel:focus { outline: none; border-color: var(--gold-line); }
#formNovo, #formSenha { align-items: flex-end; }

/* ============ PEDIDOS ============ */
.funil { display: flex; gap: 1px; background: var(--line); padding: 1px; overflow-x: auto; }
.funil-etapa {
  flex: 1; min-width: 104px; background: var(--surface); border: none; cursor: pointer;
  padding: 12px 10px; display: flex; flex-direction: column; gap: 3px; align-items: center;
  font-family: inherit; transition: background .15s;
}
.funil-etapa:hover { background: var(--surface-2); }
.funil-etapa.ativo { background: rgba(201, 162, 39, .1); box-shadow: inset 0 -2px 0 var(--gold); }
.funil-etapa.vazio { opacity: .45; }
.funil-n { font-size: 21px; font-weight: 700; color: var(--txt); }
.funil-etapa.ativo .funil-n { color: var(--gold-hi); }
.funil-rotulo {
  font-size: 9.5px; letter-spacing: 1.1px; text-transform: uppercase; color: var(--txt-dim);
  text-align: center; line-height: 1.3;
}
.filtro-etapas { padding: 0 2px; margin-bottom: 0; }

.lista-pedidos { display: flex; flex-direction: column; }
.vazio-fila { padding: 26px 15px; text-align: center; }
.pedido { border-bottom: 1px solid var(--line); }
.pedido:last-child { border-bottom: none; }
.pedido-topo {
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
  padding: 11px 15px; background: var(--surface-2);
}
.pedido-num { font-size: 13px; font-weight: 600; color: var(--gold); }
.pedido-cliente { font-weight: 600; font-size: 14px; }
.pedido-total { margin-left: auto; font-size: 16px; font-weight: 700; color: var(--txt); }
.pedido-corpo {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 18px; padding: 14px 15px;
}
.pedido-col { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.rotulo-mini {
  font-size: 9.5px; letter-spacing: 1.3px; text-transform: uppercase; color: var(--txt-dim);
  margin-bottom: 2px;
}
.pedido-item { font-size: 12.5px; color: var(--txt-2); }
.pedido-item strong { color: var(--txt); }
.caixa-check {
  display: flex; gap: 9px; align-items: flex-start; font-size: 12px; color: var(--txt-2);
  padding: 6px 9px; background: var(--surface-2); border: 1px solid var(--line);
  border-radius: 7px; cursor: pointer; line-height: 1.5;
}
.caixa-check input { accent-color: var(--gold); margin-top: 2px; flex-shrink: 0; }
.caixa-check input:checked + span { opacity: .5; text-decoration: line-through; }
.caixa-check strong { color: var(--txt); }
.linha-tempo { display: flex; flex-direction: column; gap: 4px; }
.evento { display: flex; gap: 8px; align-items: baseline; flex-wrap: wrap; font-size: 12px; }
.pedido-acoes {
  display: flex; gap: 8px; align-items: center; flex-wrap: wrap;
  padding: 11px 15px; border-top: 1px solid var(--line); background: var(--surface-2);
}
.pedido-acoes .espaco { flex: 1; }

.badge.etapa-confirmado   { background: rgba(255,255,255,.06); color: var(--txt-2); }
.badge.etapa-pago         { background: var(--ok-dim); color: var(--ok); }
.badge.etapa-em_separacao { background: var(--gold-dim); color: var(--gold-hi); }
.badge.etapa-conferido    { background: var(--gold-dim); color: var(--gold-hi); }
.badge.etapa-faturado     { background: rgba(88,166,255,.12); color: #79b8ff; }
.badge.etapa-despachado   { background: rgba(37,211,102,.12); color: var(--wa); }
.badge.etapa-entregue     { background: var(--ok-dim); color: var(--ok); }
.badge.etapa-cancelado    { background: var(--err-dim); color: var(--err); }

/* ---- modal ---- */
.modal-fundo {
  position: fixed; inset: 0; background: rgba(0,0,0,.7); z-index: 100;
  display: flex; align-items: center; justify-content: center; padding: 20px;
}
.modal {
  background: var(--surface); border: 1px solid var(--line-2); border-radius: var(--radius);
  padding: 20px; width: min(620px, 100%); box-shadow: 0 24px 60px rgba(0,0,0,.6);
}
.modal h3 {
  font-size: 11.5px; letter-spacing: 1.6px; text-transform: uppercase;
  color: var(--txt-2); margin-bottom: 12px;
}
.modal textarea { width: 100%; font-size: 12.5px; line-height: 1.6; resize: vertical; }
.modal .acoes-envio { margin-top: 12px; }

/* ---- ficha do cliente ---- */
.modal-ficha {
  width: min(860px, 100%);
  max-height: min(92vh, 980px);
  overflow-y: auto;
}
.modal-ficha .row-fields { margin-bottom: 6px; }
.modal-ficha select {
  background: var(--surface-2); color: var(--txt); border: 1px solid var(--line-2);
  border-radius: var(--radius-sm); padding: 8px 10px; font: inherit; font-size: 13px;
}
.ficha-bloco {
  border: 1px solid var(--line); border-radius: var(--radius-sm);
  padding: 10px 12px 12px; margin: 10px 0;
}
.ficha-bloco legend {
  padding: 0 6px; font-size: 10.5px; letter-spacing: 1.2px; text-transform: uppercase;
  color: var(--txt-2);
}
.anexo-slot {
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
  padding: 6px 4px; border-bottom: 1px dashed var(--line); font-size: 12.5px;
}
.anexo-slot:last-child { border-bottom: 0; }
.anexo-slot.falta .anexo-check { color: var(--err); }
.anexo-check { width: 14px; text-align: center; color: var(--ok); font-weight: 700; }
.anexo-rotulo { flex: 1 1 220px; }
.anexo-arquivos a { color: var(--gold-hi); text-decoration: none; }
.anexo-arquivos a:hover { text-decoration: underline; }
.fc-pend-titulo { color: var(--txt-2); margin: 8px 0 4px; }
.fc-pend { margin: 2px 4px 2px 0; display: inline-block; }
.fc-ok { color: var(--ok); }
.fc-erro { color: var(--err); }

/* ---- alerta de documento ---- */
.modal-alerta { max-width: 460px; border-left: 3px solid var(--err); }
.modal-alerta h3 { color: var(--err); }
.alerta-texto { font-size: 14px; line-height: 1.6; color: var(--txt); margin-bottom: 10px; }
.modal-alerta .acoes-envio { justify-content: flex-end; }

/* ============ CONFIGURAÇÕES ============ */
.integra-lista { display: flex; flex-direction: column; gap: 10px; }
.integra {
  display: flex; align-items: center; gap: 14px;
  padding: 12px 14px; background: var(--surface-2); border: 1px solid var(--line);
  border-radius: var(--radius-sm);
}
.integra > div { flex: 1; min-width: 0; }
.integra strong { font-size: 13.5px; }
.integra p { margin-top: 3px; }
.resultado-teste {
  margin-top: 14px; background: var(--surface-2); border: 1px solid var(--line);
  border-radius: var(--radius-sm); padding: 12px; font-family: var(--mono);
  font-size: 11.5px; line-height: 1.6; color: var(--txt-2);
  max-height: 320px; overflow: auto; white-space: pre-wrap;
}

/* ============ PORTAL DO CLIENTE ============ */
.tela-portal { padding-top: 0; }
.portal-topo {
  display: flex; align-items: center; gap: 13px; justify-content: center;
  padding: 22px 16px; border-bottom: 1px solid var(--line);
  background: linear-gradient(180deg, #000, var(--surface));
}
.portal-topo img { height: 38px; }
.portal-topo div { display: flex; flex-direction: column; line-height: 1.2; }
.portal-corpo {
  max-width: 620px; margin: 0 auto; padding: 20px 16px;
  display: flex; flex-direction: column; gap: 14px;
}
.portal-cartao {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 18px 20px;
}
.portal-cabecalho { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 10px; }
.portal-numero { font-size: 19px; font-weight: 700; color: var(--gold-hi); }
.portal-etapas { list-style: none; margin-top: 18px; }
.portal-etapas li {
  display: flex; align-items: center; gap: 12px; padding: 9px 0;
  position: relative; color: var(--txt-dim); font-size: 13.5px;
}
.portal-etapas li::before {
  content: ""; position: absolute; left: 5px; top: 22px; bottom: -9px; width: 1px; background: var(--line);
}
.portal-etapas li:last-child::before { display: none; }
.portal-etapas .ponto {
  width: 11px; height: 11px; border-radius: 50%; background: var(--surface-3);
  border: 1px solid var(--line-2); flex-shrink: 0; z-index: 1;
}
.portal-etapas li.feita { color: var(--txt); }
.portal-etapas li.feita .ponto { background: var(--ok); border-color: var(--ok); }
.portal-etapas li.atual .ponto { background: var(--gold); border-color: var(--gold); box-shadow: 0 0 0 4px var(--gold-dim); }
.portal-etapas li.atual .etapa-rotulo { color: var(--gold-hi); font-weight: 600; }
.etapa-rotulo { flex: 1; }
.etapa-data { font-size: 11.5px; color: var(--txt-dim); }
.portal-item {
  display: flex; justify-content: space-between; gap: 12px; align-items: baseline;
  padding: 8px 0; border-top: 1px solid var(--line); font-size: 13px;
}
.portal-item:first-of-type { border-top: none; }
.portal-total {
  display: flex; justify-content: space-between; align-items: baseline;
  margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--line-2);
}
.portal-total strong { font-size: 19px; color: var(--gold-hi); }
.portal-linha {
  display: flex; justify-content: space-between; gap: 12px;
  padding: 7px 0; font-size: 13px; color: var(--txt-2);
}
.portal-linha.destaque { color: var(--txt); }
.portal-cancelado {
  margin-top: 14px; background: var(--err-dim); border: 1px solid rgba(229,83,75,.3);
  color: #f0a9a4; border-radius: var(--radius-sm); padding: 10px 13px; font-size: 13px;
}
.portal-rodape {
  text-align: center; color: var(--txt-dim); font-size: 12px; padding: 20px 16px 34px;
}

/* ============ SCROLLBAR ============ */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: #22252b; border-radius: 6px; border: 2px solid var(--bg); }
::-webkit-scrollbar-thumb:hover { background: #2e323a; }

/* ============ RESPONSIVO ============ */
@media (max-width: 1240px) {
  .workspace { grid-template-columns: minmax(0, 1fr); }
  .side-col { position: static; }
  .side-actions { flex-direction: row; flex-wrap: wrap; }
  .side-actions .btn { flex: 1; min-width: 150px; }
  .kpis { grid-template-columns: repeat(4, 1fr); }
  .kpi:nth-child(odd) { border-right: none; }
  .kpi { border-right: 1px solid var(--line); }
}
@media (max-width: 900px) {
  .cmd-center, .cmd-meta { display: none; }
  .feed-item {
    grid-template-columns: 62px minmax(110px, 1fr) 110px;
    grid-template-areas: "num cliente total" "hora itens itens";
    row-gap: 4px;
  }
  .fi-num { grid-area: num; } .fi-hora { grid-area: hora; }
  .fi-cliente { grid-area: cliente; } .fi-itens { grid-area: itens; white-space: normal; }
  .fi-total { grid-area: total; }
  .fi-transp, .fi-pag, .fi-status, .fi-acao { display: none; }
  .gf-head { display: none; }
  .gf-row {
    grid-template-columns: 20px 1fr auto;
    grid-template-areas: "radio nome total" ". prazo prazo" ". comp comp";
    row-gap: 4px;
  }
  .gf-row input[type=radio] { grid-area: radio; }
  .gf-nome { grid-area: nome; } .gf-prazo { grid-area: prazo; }
  .gf-comp { grid-area: comp; } .gf-total { grid-area: total; }
  .mobilebar { display: flex; }
  body { padding-bottom: 70px; }
  .side-actions .btn-wa, .side-actions .btn-primary { min-width: 130px; }
}
@media (max-width: 620px) {
  .workspace, .feed-wrap { padding-left: 10px; padding-right: 10px; }
  .mod-hint { width: 100%; margin-left: 0; }
  .btn-calc { width: 100%; }
  .field { min-width: 120px; flex: 1 1 130px; }
}

/* ---------- imposto de entrada por estado (DIFAL / antecipação) ---------- */
/* âmbar = pode haver cobrança; vermelho = estado que comprovadamente cobra */
.painel-imposto { background: rgba(201, 162, 39, .04); border-color: var(--gold-line); }
.painel-imposto h3 { color: var(--gold-hi); display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.painel-imposto .imposto-valor strong { color: var(--gold-hi); }
.painel-imposto.grave { background: rgba(229, 83, 75, .07); border-color: rgba(229, 83, 75, .34); }
.painel-imposto.grave h3 { color: #f0857e; }
.painel-imposto.grave .imposto-valor strong { color: #f0857e; }
.imposto-valor { font-size: 13px; color: var(--txt); margin-top: 6px; line-height: 1.5; }
.imposto-acoes {
  display: flex; align-items: flex-end; gap: 14px;
  flex-wrap: wrap; margin-top: 11px; padding-top: 11px; border-top: 1px solid var(--line);
}
.imposto-campo { display: flex; flex-direction: column; gap: 4px; }
.imposto-input { display: flex; align-items: center; gap: 5px; }
.imposto-input .input-mini { width: 66px; }
.imposto-link { margin-left: auto; color: var(--txt-2); text-decoration: none; border-bottom: 1px dotted var(--line-2); }
.imposto-link:hover { color: var(--gold-hi); }
#impostoEfeito { align-self: center; }
.cel-preco.preco-ajustado { color: var(--gold-hi); }
.cel-preco.preco-ajustado::after { content: " ▲"; font-size: 9px; vertical-align: 1px; }
#sbLinhaImposto .mono { color: #f0857e; }

/* editor da tabela por estado (tela de Configurações) */
.tab-impostos { width: 100%; border-collapse: collapse; font-size: 12.5px; }
.tab-impostos th {
  text-align: left; padding: 7px 8px; color: var(--txt-2); font-weight: 600;
  font-size: 10.5px; letter-spacing: .06em; text-transform: uppercase;
  border-bottom: 1px solid var(--line-2); position: sticky; top: 0; background: var(--surface-2);
}
.tab-impostos td { padding: 5px 8px; border-bottom: 1px solid var(--line); }
.tab-impostos tr.cobra-sim { background: rgba(229, 83, 75, .05); }
.tab-impostos tr.cobra-nao { opacity: .55; }
.tab-impostos .uf { font-weight: 700; color: var(--txt); }
.tab-impostos input[type="number"] { width: 68px; }
.tab-impostos input[type="text"] { width: 100%; min-width: 140px; }
.tab-impostos select { padding: 6px 7px; }
.tab-impostos .efetivo { color: var(--gold-hi); font-weight: 600; white-space: nowrap; }
.impostos-scroll { max-height: 62vh; overflow: auto; border: 1px solid var(--line); border-radius: var(--radius-sm); }
