:root {
  --bg: #f5f3ef;
  --surface: #ffffff;
  --surface2: #eeeae3;
  --border: #ddd9d0;
  --ink: #1a1814;
  --ink2: #5a5650;
  --ink3: #9a9690;
  --gold: #c8960a;
  --gold-light: #fdf3d0;
  --blue: #1a4fa0;
  --blue-light: #e8eef8;
  --green: #1a7a4a;
  --green-light: #e2f4eb;
  --red: #b03020;
  --red-light: #faeae7;
  --sidebar-w: 230px;
  --radius: 12px;
}

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

body {
  background: var(--bg);
  color: var(--ink);
  font-family: 'IBM Plex Sans', sans-serif;
  min-height: 100vh;
}

/* ══ LOGIN ══ */
.login-screen {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  background: var(--ink);
}
.login-bg {
  position: absolute; inset: 0;
  background: radial-gradient(ellipse at 30% 50%, rgba(200,150,10,.12) 0%, transparent 60%),
              radial-gradient(ellipse at 80% 20%, rgba(26,79,160,.1) 0%, transparent 50%);
}
.login-grid {
  position: absolute; inset: 0;
  background-image: linear-gradient(rgba(255,255,255,.03) 1px, transparent 1px),
                    linear-gradient(90deg, rgba(255,255,255,.03) 1px, transparent 1px);
  background-size: 40px 40px;
}
.login-box {
  position: relative;
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 20px;
  padding: 40px;
  width: 100%;
  max-width: 420px;
  backdrop-filter: blur(20px);
  animation: fadeUp .5s ease;
}
.login-logo {
  display: flex; align-items: center; gap: 14px;
  margin-bottom: 36px;
}
.login-mark {
  width: 48px; height: 48px;
  background: var(--gold);
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-family: 'Syne', sans-serif;
  font-weight: 800; font-size: 20px;
  color: #000;
}
.login-brand {
  font-family: 'Syne', sans-serif;
  font-weight: 800; font-size: 22px;
  color: #fff; letter-spacing: 1px;
}
.login-tagline { font-size: 12px; color: rgba(255,255,255,.4); margin-top: 2px; }

.login-form { display: flex; flex-direction: column; gap: 16px; }
.form-group { display: flex; flex-direction: column; gap: 6px; }
.form-group label { font-size: 11px; text-transform: uppercase; letter-spacing: 1.2px; color: rgba(255,255,255,.4); }
.form-group input {
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 8px;
  padding: 11px 14px;
  color: #fff;
  font-family: 'IBM Plex Sans', sans-serif;
  font-size: 14px;
  outline: none;
  transition: border-color .2s;
}
.form-group input:focus { border-color: var(--gold); }
.form-group input::placeholder { color: rgba(255,255,255,.2); }

.login-error {
  font-size: 12px; color: #e84b4b;
  min-height: 16px;
  text-align: center;
}

#login-btn {
  background: var(--gold);
  color: #000;
  border: none;
  border-radius: 8px;
  padding: 13px;
  font-family: 'Syne', sans-serif;
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 1px;
  cursor: pointer;
  transition: opacity .2s;
  display: flex; align-items: center; justify-content: center; gap: 8px;
  margin-top: 4px;
}
#login-btn:hover { opacity: .85; }
#login-btn:disabled { opacity: .5; cursor: not-allowed; }

.login-footer { font-size: 11px; color: rgba(255,255,255,.2); text-align: center; margin-top: 24px; }

/* ══ APP LAYOUT ══ */
.app-screen { display: flex; min-height: 100vh; }

.sidebar {
  width: var(--sidebar-w);
  flex-shrink: 0;
  background: var(--ink);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 24px 0;
  position: sticky; top: 0; height: 100vh;
  overflow-y: auto;
}
.sidebar-top { display: flex; flex-direction: column; gap: 0; }

.logo {
  display: flex; align-items: center; gap: 12px;
  padding: 0 20px 24px;
  border-bottom: 1px solid rgba(255,255,255,.07);
  margin-bottom: 20px;
}
.logo-mark {
  width: 40px; height: 40px;
  background: var(--gold);
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-family: 'Syne', sans-serif;
  font-weight: 800; font-size: 16px; color: #000;
  flex-shrink: 0;
}
.logo-brand { font-family: 'Syne', sans-serif; font-weight: 800; font-size: 17px; color: #fff; letter-spacing: 1px; }
.logo-sub { font-size: 9px; color: rgba(255,255,255,.3); text-transform: uppercase; letter-spacing: 2px; margin-top: 2px; }

.nav { padding: 0 12px; display: flex; flex-direction: column; gap: 3px; }
.nav-label { font-size: 9px; text-transform: uppercase; letter-spacing: 2px; color: rgba(255,255,255,.2); padding: 0 8px; margin-bottom: 6px; }
.nav-btn {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 12px;
  border: none; background: none;
  color: rgba(255,255,255,.45);
  font-family: 'IBM Plex Sans', sans-serif;
  font-size: 13px;
  border-radius: 8px;
  cursor: pointer;
  transition: all .15s;
  text-align: left; width: 100%;
}
.nav-btn:hover { color: rgba(255,255,255,.85); background: rgba(255,255,255,.05); }
.nav-btn.active { color: #fff; background: rgba(200,150,10,.18); }

.sidebar-bottom { padding: 16px 20px 0; border-top: 1px solid rgba(255,255,255,.07); }
.user-info { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.user-avatar {
  width: 34px; height: 34px;
  background: var(--gold);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-family: 'Syne', sans-serif;
  font-weight: 700; font-size: 13px; color: #000;
  flex-shrink: 0;
}
.user-name { font-size: 12px; color: #fff; font-weight: 500; }
.user-role { font-size: 10px; color: rgba(255,255,255,.3); text-transform: uppercase; letter-spacing: 1px; margin-top: 1px; }
.logout-btn {
  width: 100%; padding: 8px;
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 6px;
  color: rgba(255,255,255,.35);
  font-size: 11px; font-family: 'IBM Plex Sans', sans-serif;
  cursor: pointer; transition: all .15s;
}
.logout-btn:hover { background: rgba(255,255,255,.1); color: rgba(255,255,255,.7); }

/* ══ MAIN ══ */
.main-content { flex: 1; padding: 32px 28px; overflow-x: hidden; }

.page { display: none; }
.page.active { display: block; animation: fadeUp .3s ease; }

.page-header {
  display: flex; align-items: flex-start; justify-content: space-between;
  margin-bottom: 28px;
  flex-wrap: wrap; gap: 12px;
}
.page-header h1 { font-family: 'Syne', sans-serif; font-weight: 800; font-size: 28px; color: var(--ink); line-height: 1; }
.page-header h1 span { color: var(--gold); }
.page-header p { font-size: 13px; color: var(--ink3); margin-top: 5px; }

.header-controls { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }

/* Store Pills */
.store-pill {
  padding: 6px 14px; border-radius: 20px; font-size: 12px; font-weight: 500;
  cursor: pointer; border: 1.5px solid var(--border); background: var(--surface);
  color: var(--ink2); transition: all 0.15s; font-family: inherit; white-space: nowrap;
}
.store-pill:hover { border-color: var(--gold); color: var(--gold); background: var(--gold-light); }
.store-pill.active {
  background: var(--brand); border-color: var(--brand); color: white; font-weight: 600;
}
.store-pill.all.active { background: var(--ink); border-color: var(--ink); color: white; }
.store-pill[data-store="trevo"].active  { background: #cc0000; border-color: #cc0000; }
.store-pill[data-store="orozimbo"].active { background: #b30000; border-color: #b30000; }
.store-pill[data-store="audi"].active   { background: #444; border-color: #444; }
.ctrl-select {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 8px 12px;
  font-family: 'IBM Plex Sans', sans-serif;
  font-size: 13px;
  color: var(--ink);
  cursor: pointer; outline: none;
  transition: border-color .15s;
}
.ctrl-select:focus { border-color: var(--gold); }

/* ══ EMPTY STATE ══ */
.empty-state {
  text-align: center; padding: 60px 20px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.empty-icon { font-size: 40px; margin-bottom: 16px; }
.empty-state h3 { font-family: 'Syne', sans-serif; font-weight: 700; font-size: 18px; margin-bottom: 8px; }
.empty-state p { font-size: 13px; color: var(--ink3); }

/* ══ KPI ══ */
.kpi-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; margin-bottom: 24px; }
.kpi {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 16px;
  animation: fadeUp .35s ease both;
}
.kpi-top { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 8px; }
.kpi-icon { width: 30px; height: 30px; border-radius: 7px; display: flex; align-items: center; justify-content: center; font-size: 14px; }
.kpi-label { font-size: 9px; text-transform: uppercase; letter-spacing: 1.2px; color: var(--ink3); }
.kpi-value { font-family: 'Syne', sans-serif; font-weight: 700; font-size: 20px; color: var(--ink); line-height: 1; }
.kpi-sub { font-size: 10px; color: var(--ink3); margin-top: 4px; font-family: 'IBM Plex Mono', monospace; }
.tag {
  display: inline-block; border-radius: 4px;
  padding: 2px 6px; font-size: 9px;
  font-family: 'IBM Plex Mono', monospace; margin-top: 4px;
}
.tag.green { background: var(--green-light); color: var(--green); }
.tag.gold  { background: var(--gold-light);  color: var(--gold);  }
.tag.blue  { background: var(--blue-light);  color: var(--blue);  }
.tag.red   { background: var(--red-light);   color: var(--red);   }

/* ══ SECTION HEAD ══ */
.section-head { display: flex; align-items: center; gap: 12px; margin: 24px 0 14px; }
.section-head h2 { font-family: 'Syne', sans-serif; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 2px; color: var(--ink2); white-space: nowrap; }
.section-head::after { content: ''; flex: 1; height: 1px; background: var(--border); }
.section-badge { font-size: 9px; font-family: 'IBM Plex Mono', monospace; background: var(--surface2); border: 1px solid var(--border); border-radius: 4px; padding: 2px 7px; color: var(--ink3); white-space: nowrap; }

/* ══ GRID LAYOUTS ══ */
.two-col { display: grid; grid-template-columns: 1.3fr 1fr; gap: 16px; margin-bottom: 16px; }
.three-col { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-bottom: 16px; }
.pecas-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 12px; margin-bottom: 16px; }

/* ══ CARD ══ */
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px; }
.full-card { grid-column: 1 / -1; }
.card-title { font-size: 10px; text-transform: uppercase; letter-spacing: 1.5px; color: var(--ink3); margin-bottom: 14px; font-weight: 500; }

/* ══ OS TABLE ══ */
.os-tbl { width: 100%; border-collapse: collapse; }
.os-tbl th {
  font-size: 10px; text-transform: uppercase; letter-spacing: .6px;
  color: var(--ink3); text-align: right;
  padding: 6px 10px 8px; border-bottom: 1px solid var(--border); font-weight: 600;
  white-space: nowrap;
}
.os-tbl th:first-child { text-align: left; min-width: 180px; }
.os-tbl td {
  padding: 9px 10px; font-size: 12px;
  border-bottom: 1px solid var(--surface2);
  text-align: right; font-family: 'IBM Plex Mono', monospace;
  color: var(--ink2); white-space: nowrap;
}
.os-tbl td:first-child {
  text-align: left; font-family: 'IBM Plex Sans', sans-serif;
  font-size: 12px; min-width: 180px; padding-left: 4px;
}
.os-tbl tr:last-child td { border-bottom: none; }
.os-tbl tr.group-total td {
  font-weight: 600; background: var(--surface2); color: var(--ink);
  padding: 9px 10px; border-bottom: 2px solid var(--border); font-size: 12px;
}
.os-tbl tr.group-total td:first-child { border-radius: 6px 0 0 6px; padding-left: 8px; }
.os-tbl tr.group-total td:last-child  { border-radius: 0 6px 6px 0; padding-right: 10px; }
.os-tbl tr.subtotal-row td { font-size: 11px; background: var(--ink-bg); }
.os-code-pill { display: inline-block; background: var(--gold-light); color: var(--gold); border-radius: 3px; padding: 1px 4px; font-family: 'IBM Plex Mono', monospace; font-size: 9px; margin-right: 4px; }
.os-code-pill.blue { background: var(--blue-light); color: var(--blue); }
.os-name { font-size: 11px; color: var(--ink); }

/* ══ PEÇAS CARDS ══ */
.pcard { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 14px; }
.pcard .lbl { font-size: 9px; text-transform: uppercase; letter-spacing: 1.2px; color: var(--ink3); margin-bottom: 5px; }
.pcard .val { font-family: 'Syne', sans-serif; font-weight: 700; font-size: 18px; color: var(--ink); }
.pcard .sub { font-size: 9px; color: var(--ink3); font-family: 'IBM Plex Mono', monospace; margin-top: 3px; }

/* ══ INDICADORES ══ */
.ind-list { display: flex; flex-direction: column; gap: 10px; }
.ind-item { display: flex; justify-content: space-between; align-items: center; padding-bottom: 10px; border-bottom: 1px solid var(--surface2); }
.ind-item:last-child { border-bottom: none; padding-bottom: 0; }
.ind-label { font-size: 12px; color: var(--ink2); }
.ind-val { font-family: 'Syne', sans-serif; font-weight: 700; font-size: 18px; color: var(--ink); }

/* ══ RESULT ITEMS ══ */
.result-item { display: flex; justify-content: space-between; align-items: center; padding: 7px 0; border-bottom: 1px solid var(--surface2); font-size: 12px; }
.result-item:last-child { border-bottom: none; }
.result-item .rl { color: var(--ink2); }
.result-item .rv { font-family: 'IBM Plex Mono', monospace; font-size: 11px; }
.result-item .rv.pos { color: var(--green); }
.result-item .rv.neg { color: var(--red); }
.result-item .rv.bold { color: var(--ink); font-size: 13px; font-weight: 700; }

/* ══ CHART ══ */
.chart-wrap { height: 190px; position: relative; }
.chart-wrap-lg { height: 260px; position: relative; }

/* ══ UPLOAD ══ */
.upload-form { margin-bottom: 18px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 20px; }
.dropzone {
  border: 2px dashed var(--border);
  border-radius: 12px;
  padding: 40px;
  text-align: center;
  cursor: pointer;
  transition: all .2s;
  background: var(--surface2);
}
.dropzone:hover { border-color: var(--gold); background: var(--gold-light); }
.dropzone.drag-over { border-color: var(--gold); background: var(--gold-light); }
.dz-icon { font-size: 32px; margin-bottom: 10px; }
.dz-text { font-size: 14px; font-weight: 500; color: var(--ink2); margin-bottom: 4px; }
.dz-sub { font-size: 11px; color: var(--ink3); font-family: 'IBM Plex Mono', monospace; }

.save-btn {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  margin-top: 20px;
  background: var(--green);
  color: #fff; border: none;
  border-radius: 8px; padding: 13px 24px;
  font-family: 'Syne', sans-serif; font-weight: 700; font-size: 14px;
  cursor: pointer; transition: opacity .2s;
  width: 100%;
}
.save-btn:hover { opacity: .85; }
.save-btn:disabled { opacity: .5; cursor: not-allowed; }

.success-msg {
  background: var(--green-light); border: 1px solid var(--green);
  border-radius: 8px; padding: 14px 16px;
  font-size: 13px; color: var(--green);
  margin-top: 12px;
}

/* ══ SAVED LIST ══ */
.saved-item {
  display: flex; align-items: center; justify-content: space-between;
  padding: 10px 0; border-bottom: 1px solid var(--surface2);
  font-size: 12px;
}
.saved-item:last-child { border-bottom: none; }
.saved-store { font-weight: 600; color: var(--ink); }
.saved-period { font-family: 'IBM Plex Mono', monospace; color: var(--gold); font-size: 11px; }
.del-btn {
  background: none; border: none; color: var(--ink3);
  cursor: pointer; font-size: 12px;
  padding: 3px 7px; border-radius: 4px;
  transition: all .15s;
}
.del-btn:hover { background: var(--red-light); color: var(--red); }

/* ══ COMPARATIVO ══ */
.ranking-item {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 0; border-bottom: 1px solid var(--surface2);
}
.ranking-item:last-child { border-bottom: none; }
.rank-num { font-family: 'Syne', sans-serif; font-weight: 800; font-size: 22px; color: var(--border); width: 28px; flex-shrink: 0; }
.rank-num.gold { color: var(--gold); }
.rank-store { font-weight: 600; font-size: 13px; color: var(--ink); }
.rank-val { font-family: 'IBM Plex Mono', monospace; font-size: 12px; color: var(--ink2); margin-top: 2px; }
.rank-bar-wrap { flex: 1; }
.rank-bar { height: 6px; border-radius: 3px; background: var(--gold); transition: width .5s ease; }

.delta-item {
  display: flex; justify-content: space-between; align-items: center;
  padding: 8px 0; border-bottom: 1px solid var(--surface2); font-size: 12px;
}
.delta-item:last-child { border-bottom: none; }
.delta-label { color: var(--ink2); }
.delta-val { display: flex; align-items: center; gap: 6px; font-family: 'IBM Plex Mono', monospace; font-size: 11px; }
.delta-arrow { font-size: 10px; }
.delta-arrow.up { color: var(--green); }
.delta-arrow.down { color: var(--red); }
.delta-pct { font-size: 10px; font-weight: 600; }
.delta-pct.up { color: var(--green); }
.delta-pct.down { color: var(--red); }

/* ══ SPINNER ══ */
.spinner {
  width: 16px; height: 16px;
  border: 2px solid rgba(0,0,0,.2);
  border-top-color: #000;
  border-radius: 50%;
  animation: spin .7s linear infinite;
  display: inline-block;
}

/* ══ ANIMATIONS ══ */
@keyframes fadeUp { from { opacity:0; transform:translateY(12px); } to { opacity:1; transform:translateY(0); } }
@keyframes spin   { to { transform: rotate(360deg); } }

.kpi:nth-child(1){animation-delay:.04s}
.kpi:nth-child(2){animation-delay:.08s}
.kpi:nth-child(3){animation-delay:.12s}
.kpi:nth-child(4){animation-delay:.16s}
.kpi:nth-child(5){animation-delay:.20s}

/* ── v2.0 ADDITIONS ─────────────────────────────────────── */

/* Meta bar nos KPIs */
.meta-bar-wrap { height:5px; background:var(--surface2); border-radius:3px; margin:8px 0 4px; overflow:hidden; }
.meta-bar-fill { height:5px; border-radius:3px; transition:width .6s ease; }
.meta-label { font-size:9px; color:var(--ink3); font-family:'IBM Plex Mono',monospace; }

/* PDF button */
.pdf-btn {
  display:inline-flex; align-items:center; gap:6px;
  padding:7px 14px; border-radius:6px; border:1px solid var(--border);
  background:var(--surface); color:var(--ink2); font-size:12px; font-weight:600;
  cursor:pointer; transition:all .15s;
}
.pdf-btn:hover { background:var(--surface2); color:var(--ink); }

/* Gráfico de barras wrap */
.chart-wrap-lg { height:260px; }

/* Result-total com linha separadora */
.result-total { border-top:1px solid var(--border); margin-top:4px; padding-top:8px; }

/* Metas page */
.meta-card { padding:20px; }
.meta-card-header { display:flex; justify-content:space-between; align-items:center; margin-bottom:16px; }
.meta-store-label { font-size:14px; font-weight:700; color:var(--ink); }
.meta-save-btn {
  padding:6px 14px; border-radius:6px; border:none;
  background:var(--gold); color:#fff; font-size:11px; font-weight:700;
  cursor:pointer; transition:opacity .15s;
}
.meta-save-btn:hover { opacity:.85; }
.meta-fields { display:grid; grid-template-columns:1fr 1fr; gap:12px; }
.meta-field label { display:block; font-size:10px; font-weight:600; text-transform:uppercase; letter-spacing:.4px; color:var(--ink3); margin-bottom:4px; }
.meta-field input { width:100%; }
.meta-saved-msg { margin-top:12px; font-size:12px; color:var(--green); font-weight:600; }

/* Garantia two-col */
#section-garantia .two-col { align-items:start; }

/* ── METAS + SIMULADOR ───────────────────────────────────── */
.metas-full-col { display:flex; flex-direction:column; gap:18px; }

.meta-full-card { display:grid; grid-template-columns:380px 1fr; gap:16px; align-items:start; }
@media(max-width:900px){ .meta-full-card { grid-template-columns:1fr; } }

.trim-badge {
  font-size:10px; font-family:'IBM Plex Mono',monospace; color:var(--ink3);
  background:var(--surface2); border-radius:5px; padding:6px 10px;
  margin-bottom:12px; line-height:1.5;
}

/* Simulador card */
.sim-card { padding:20px; border-left:3px solid var(--gold); }
.sim-title { font-size:14px; font-weight:700; color:var(--ink); margin-bottom:6px; }
.sim-desc  { font-size:11px; color:var(--ink3); margin-bottom:14px; line-height:1.5; }
.sim-input-row { display:flex; gap:12px; align-items:flex-end; margin-bottom:16px; }
.sim-hint { font-size:12px; color:var(--ink3); font-style:italic; padding:12px 0; }

.sim-result-grid {
  display:grid; grid-template-columns:1fr 1fr;
  gap:10px; margin-bottom:12px;
}
.sim-kpi {
  background:var(--surface2); border-radius:8px; padding:12px 14px;
  border:1px solid var(--border);
}
.sim-kpi.main {
  grid-column:1/-1;
  background:linear-gradient(135deg,#fdf3d0,#fff8e8);
  border-color:var(--gold);
}
.sim-kpi-label { font-size:9px; text-transform:uppercase; letter-spacing:.5px; color:var(--ink3); margin-bottom:4px; }
.sim-kpi-val   { font-size:18px; font-weight:800; color:var(--ink); font-family:'Syne',sans-serif; }
.sim-kpi.main .sim-kpi-val { font-size:22px; color:var(--gold); }
.sim-kpi-sub   { font-size:10px; margin-top:3px; color:var(--ink3); }
.sim-kpi-sub.neg { color:var(--red); }
.sim-kpi-sub.pos { color:var(--green); }

.sim-base {
  font-size:10px; color:var(--ink3); font-family:'IBM Plex Mono',monospace;
  background:var(--surface2); border-radius:5px; padding:8px 10px; line-height:1.6;
}

/* ── TABELA COM GARANTIA EMBUTIDA ────────────────────────── */
.garantia-separator td { padding: 0 !important; }
.gar-sep-label {
  display: flex; align-items: center; gap: 8px;
  background: linear-gradient(90deg, #fff0ee, #fff8f7);
  border-top: 2px dashed #e0b0a8;
  border-bottom: 1px solid #f0d0cc;
  padding: 7px 10px;
  font-size: 10px; font-weight: 700; letter-spacing: .5px;
  text-transform: uppercase; color: #b03020;
}
.subtotal-row td {
  background: var(--surface2);
  border-top: 1px solid var(--border);
  font-size: 11px;
}
.gar-subtotal td { background: #fff4f3; }

/* ══ ACOMPANHAMENTO DIÁRIO ══ */
.config-bar {
  display: flex; align-items: center; gap: 12px;
  background: var(--gold-light); border: 1px solid var(--gold);
  border-radius: var(--radius); padding: 10px 16px; margin-bottom: 18px;
  flex-wrap: wrap;
}
.config-label { font-size: 11px; font-weight: 600; color: var(--ink2); text-transform: uppercase; letter-spacing: .5px; }
.ctrl-input-sm {
  width: 64px; padding: 5px 8px; border: 1px solid var(--border);
  border-radius: 6px; font-size: 13px; background: var(--surface);
  color: var(--ink); text-align: center;
}
.btn-sm {
  padding: 5px 14px; border: 1px solid var(--gold); border-radius: 6px;
  background: var(--gold); color: #fff; font-size: 12px; font-weight: 600; cursor: pointer;
}
.btn-sm:hover { background: #a07a08; }

/* Progresso bar */
.progresso-wrap { padding: 8px 0; }
.progresso-label { display: flex; justify-content: space-between; font-size: 11px; color: var(--ink3); margin-bottom: 6px; font-family: 'IBM Plex Mono', monospace; }
.progresso-bar-bg { background: var(--surface2); border-radius: 6px; height: 12px; overflow: hidden; }
.progresso-bar-fill { height: 12px; border-radius: 6px; transition: width .6s ease; }
.progresso-info { display: flex; gap: 24px; margin-top: 10px; flex-wrap: wrap; }
.progresso-item { font-size: 12px; color: var(--ink2); }
.progresso-item strong { color: var(--ink); font-weight: 600; }

/* Previsão destaque */
.previsao-card {
  background: var(--surface); border: 2px solid var(--gold);
  border-radius: var(--radius); padding: 14px 18px; margin-top: 12px;
  display: flex; align-items: center; gap: 16px; flex-wrap: wrap;
}
.previsao-icon { font-size: 28px; }
.previsao-label { font-size: 10px; text-transform: uppercase; letter-spacing: 1px; color: var(--ink3); }
.previsao-val { font-family: 'Syne', sans-serif; font-weight: 800; font-size: 22px; color: var(--gold); }
.previsao-sub { font-size: 11px; color: var(--ink3); margin-top: 2px; font-family: 'IBM Plex Mono', monospace; }

/* Full table */
.full-tbl { width: 100%; }
.full-card { grid-column: 1 / -1; }

/* Chassi KPIs extras */
.ticket-destaque {
  background: var(--blue-light); border: 1px solid var(--blue);
  border-radius: var(--radius); padding: 12px 16px; margin-top: 12px;
}
.ticket-destaque .lbl { font-size: 10px; text-transform: uppercase; letter-spacing: 1px; color: var(--blue); }
.ticket-destaque .val { font-family: 'Syne', sans-serif; font-size: 24px; font-weight: 800; color: var(--blue); }

/* Nav active colors por página */
#nav-diario.active { color: var(--gold); border-left-color: var(--gold); }
#nav-chassi.active { color: var(--blue); border-left-color: var(--blue); }
