/* =====================================================================
   DIA A DIA — identidade "Ritmo"
   Grafite-berinjela + violeta elétrico; Bricolage Grotesque (display) + Geist (interface).
   Dados: série 1 = violeta (vendido), série 2 = laranja (meta) — validado para daltonismo
   e contraste nos dois temas. Verde/âmbar/vermelho são exclusivos de status, sempre com forma + rótulo.
   ===================================================================== */
@font-face { font-family: 'Bricolage Grotesque'; src: url('../fonts/bricolage-grotesque.woff2') format('woff2-variations'); font-weight: 200 800; font-display: swap; }
@font-face { font-family: 'Geist'; src: url('../fonts/geist.woff2') format('woff2-variations'); font-weight: 100 900; font-display: swap; }

:root {
  color-scheme: light;
  --font: 'Geist', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --display: 'Bricolage Grotesque', 'Geist', system-ui, sans-serif;
  --mono: ui-monospace, 'Cascadia Mono', Consolas, monospace;

  --ink: #16131f;            /* grafite-berinjela da marca */
  --ink-2: #221d30;
  --violet: #5b3df5;         /* violeta elétrico */
  --magenta: #c13be0;
  --brand-grad: linear-gradient(135deg, #5b3df5 0%, #8b3cf0 50%, #c13be0 100%);

  --canvas: #f4f3f8;
  --surface: #ffffff;
  --surface-2: #f7f6fb;
  --surface-3: #ecebf3;
  --line: #e7e5ee;
  --line-strong: #d5d2e0;
  --grid: #ebe9f1;
  --baseline: #c9c5d6;
  --text: #16131f;
  --text-2: #55516a;
  --text-3: #8b879c;

  --accent: #5b3df5;
  --accent-2: #4a2fe0;
  --accent-soft: #efecfe;
  --accent-wash: rgba(91, 61, 245, .08);
  --accent-wash-2: rgba(91, 61, 245, .16);
  --on-accent: #ffffff;

  --series-1: #5b3df5;
  --series-2: #eb6834;

  --good: #0ca30c; --warning: #fab219; --critical: #d03b3b;
  --warning-ico: #c98500;
  --good-text: #00702b; --warning-text: #8a5a00; --critical-text: #b42f2f;
  --good-wash: rgba(12, 163, 12, .10); --warning-wash: rgba(250, 178, 25, .18); --critical-wash: rgba(208, 59, 59, .10);
  --hm-n3: #c63b3b; --hm-n2: #e8857e; --hm-n1: #f5c9c4; --hm-0: #e6e4ec; --hm-p1: #b7d3f6; --hm-p2: #6da7ec; --hm-p3: #2a78d6;

  --side-bg: #16131f; --side-text: #b9b5c9; --side-muted: #77728a; --side-hover: rgba(255, 255, 255, .06); --side-active: rgba(139, 123, 255, .18); --side-line: rgba(255, 255, 255, .08);

  --strong-bg: #16131f; --strong-fg: #ffffff; --strong-sub: rgba(255, 255, 255, .65);
  --r-sm: 8px; --r: 10px; --r-lg: 16px; --r-xl: 20px;
  --shadow-sm: 0 1px 2px rgba(22, 19, 31, .04);
  --shadow: 0 1px 2px rgba(22, 19, 31, .04), 0 6px 24px -8px rgba(22, 19, 31, .08);
  --shadow-lg: 0 24px 60px -12px rgba(22, 19, 31, .28), 0 2px 8px rgba(22, 19, 31, .06);
}
@media (prefers-color-scheme: dark) {
  :root:where(:not([data-theme="light"])) {
    color-scheme: dark;
    --canvas: #0e0c14; --surface: #17141f; --surface-2: #1d1928; --surface-3: #2a2538;
    --line: #262133; --line-strong: #3a3449; --grid: #262133; --baseline: #3a3449;
    --text: #f2f0f7; --text-2: #c3bfd3; --text-3: #8b879c;
    --accent: #8b7bff; --accent-2: #a193ff; --accent-soft: #241f3d; --accent-wash: rgba(139, 123, 255, .12); --accent-wash-2: rgba(139, 123, 255, .22); --on-accent: #120f1c;
    --series-1: #8b7bff; --series-2: #d95926;
    --good-text: #3ccf5a; --warning-text: #fab219; --critical-text: #ff7b7b;
    --good-wash: rgba(12, 163, 12, .16); --warning-wash: rgba(250, 178, 25, .14); --critical-wash: rgba(208, 59, 59, .2);
    --hm-n3: #d03b3b; --hm-n2: #9e3a37; --hm-n1: #5a2f2c; --hm-0: #322c40; --hm-p1: #1f3f66; --hm-p2: #2a62a8; --hm-p3: #3987e5;
    --side-bg: #0b0a10; --side-line: rgba(255, 255, 255, .06);
    --strong-bg: #8b7bff; --strong-fg: #120f1c; --strong-sub: rgba(18, 15, 28, .65);
    --shadow-sm: none; --shadow: none; --shadow-lg: 0 24px 60px -12px rgba(0, 0, 0, .7);
  }
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --canvas: #0e0c14; --surface: #17141f; --surface-2: #1d1928; --surface-3: #2a2538;
  --line: #262133; --line-strong: #3a3449; --grid: #262133; --baseline: #3a3449;
  --text: #f2f0f7; --text-2: #c3bfd3; --text-3: #8b879c;
  --accent: #8b7bff; --accent-2: #a193ff; --accent-soft: #241f3d; --accent-wash: rgba(139, 123, 255, .12); --accent-wash-2: rgba(139, 123, 255, .22); --on-accent: #120f1c;
  --series-1: #8b7bff; --series-2: #d95926;
  --good-text: #3ccf5a; --warning-text: #fab219; --critical-text: #ff7b7b;
  --good-wash: rgba(12, 163, 12, .16); --warning-wash: rgba(250, 178, 25, .14); --critical-wash: rgba(208, 59, 59, .2);
  --hm-n3: #d03b3b; --hm-n2: #9e3a37; --hm-n1: #5a2f2c; --hm-0: #322c40; --hm-p1: #1f3f66; --hm-p2: #2a62a8; --hm-p3: #3987e5;
  --side-bg: #0b0a10; --side-line: rgba(255, 255, 255, .06);
  --strong-bg: #8b7bff; --strong-fg: #120f1c; --strong-sub: rgba(18, 15, 28, .65);
  --shadow-sm: none; --shadow: none; --shadow-lg: 0 24px 60px -12px rgba(0, 0, 0, .7);
}

/* ---------- base ---------- */
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { margin: 0; min-height: 100%; }
body { font: 14px/1.5 var(--font); color: var(--text); background: var(--canvas); -webkit-font-smoothing: antialiased; font-feature-settings: 'ss01' on; }
button, input, select, textarea { font: inherit; color: inherit; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, p { margin: 0; }
h1 { font-family: var(--display); font-size: 30px; font-weight: 700; letter-spacing: -.025em; line-height: 1.1; }
h2 { font-family: var(--display); font-size: 17px; font-weight: 650; letter-spacing: -.01em; }
h3 { font-size: 13px; font-weight: 600; }
.text-2 { color: var(--text-2); } .text-3 { color: var(--text-3); }
.num, .tbl td.num, .tbl th.num { font-variant-numeric: tabular-nums; text-align: right; white-space: nowrap; }
.nowrap { white-space: nowrap; }
.r { text-align: right; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.ico { flex: none; }
kbd { font: 11px var(--mono); padding: 1px 6px; border-radius: 5px; border: 1px solid var(--line-strong); background: var(--surface-2); color: var(--text-3); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
::selection { background: var(--accent-wash-2); }
.note { font-size: 12px; color: var(--text-3); }
.up { color: var(--good-text); } .down { color: var(--critical-text); }
.t-good { color: var(--good-text); font-weight: 600; } .t-warning { color: var(--warning-text); font-weight: 600; } .t-critical { color: var(--critical-text); font-weight: 600; }

/* ---------- marca ---------- */
.logo { display: inline-flex; align-items: center; gap: 10px; }
.logo-mark { width: 34px; height: 34px; flex: none; border-radius: 10px; background: var(--brand-grad); display: grid; place-items: center; box-shadow: 0 6px 16px -6px rgba(91, 61, 245, .7), inset 0 0 0 1px rgba(255, 255, 255, .14); }
.logo-mark svg { display: block; }
.logo-word { font-family: var(--display); font-weight: 750; font-size: 19px; letter-spacing: -.035em; line-height: 1; }
.logo-word i { font-style: normal; color: #a99cff; }
.logo-tag { display: block; font-family: var(--font); font-size: 11px; letter-spacing: .02em; color: var(--side-muted); margin-top: 3px; font-weight: 500; }

/* ---------- layout ---------- */
.app { display: grid; grid-template-columns: 252px minmax(0, 1fr); min-height: 100vh; }
.sidebar { position: sticky; top: 0; height: 100vh; z-index: 30; display: flex; flex-direction: column; padding: 18px 14px; background: var(--side-bg); color: var(--side-text); border-right: 1px solid var(--side-line); }
.sidebar .brand { display: flex; flex-direction: column; align-items: flex-start; gap: 14px; padding: 6px 10px 22px; margin-bottom: 6px; border-bottom: 1px solid var(--side-line); color: #fff; }
.inovar { display: block; width: auto; max-width: 100%; align-self: flex-start; object-fit: contain; flex: none; }
.inovar-auto { display: inline-flex; }
.inovar-auto .on-dark { display: none; }
:root[data-theme="dark"] .inovar-auto .on-light { display: none; }
:root[data-theme="dark"] .inovar-auto .on-dark { display: block; }
@media (prefers-color-scheme: dark) { :root:where(:not([data-theme="light"])) .inovar-auto .on-light { display: none; } :root:where(:not([data-theme="light"])) .inovar-auto .on-dark { display: block; } }
.app-tag { display: inline-flex; align-items: center; gap: 8px; font-size: 12px; color: var(--text-3); line-height: 1.2; }
.app-tag b { font-family: var(--display); font-weight: 750; font-size: 14px; letter-spacing: -.03em; color: var(--text); }
.sidebar .app-tag { color: var(--side-muted); }
.sidebar .app-tag b { color: #fff; }
.app-tag .logo-mark { box-shadow: 0 4px 10px -4px rgba(91, 61, 245, .7); }
.login-brand { display: flex; flex-direction: column; align-items: flex-start; gap: 16px; padding-bottom: 6px; }
.nav { display: flex; flex-direction: column; gap: 2px; overflow-y: auto; }
.nav-sec { font-size: 10.5px; font-weight: 600; letter-spacing: .09em; text-transform: uppercase; color: var(--side-muted); padding: 18px 12px 8px; }
.nav-item { position: relative; display: flex; align-items: center; gap: 11px; height: 38px; padding: 0 12px; border-radius: 10px; color: var(--side-text); font-weight: 500; transition: background .12s, color .12s; }
.nav-item:hover { background: var(--side-hover); color: #fff; }
.nav-item.active { background: var(--side-active); color: #fff; }
.nav-item.active::after { content: ""; position: absolute; right: 10px; width: 6px; height: 6px; border-radius: 50%; background: #a99cff; box-shadow: 0 0 0 4px rgba(169, 156, 255, .18); }
.nav-item .ico { opacity: .85; }
.nav-item.active .ico { color: #b9adff; opacity: 1; }
.side-foot { margin-top: auto; display: flex; flex-direction: column; gap: 10px; padding: 14px 4px 0; }
.side-card { border-radius: 12px; padding: 12px; font-size: 12px; line-height: 1.45; color: var(--side-text); background: rgba(255, 255, 255, .04); border: 1px solid var(--side-line); }
.side-card b { display: flex; align-items: center; gap: 6px; color: #fff; font-size: 12px; margin-bottom: 3px; font-weight: 600; }
.side-card b .ico { color: #ffc75f; }
.mock-tag { align-self: flex-start; font-size: 10.5px; font-weight: 700; letter-spacing: .08em; padding: 3px 8px; border-radius: 6px; color: #16131f; background: #ffc75f; }

.main { min-width: 0; display: flex; flex-direction: column; }
.topbar { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 10px; height: 64px; padding: 0 32px; background: color-mix(in srgb, var(--canvas) 82%, transparent); backdrop-filter: saturate(1.6) blur(14px); border-bottom: 1px solid var(--line); }
.topbar .spacer { flex: 1; }
.menu-btn { display: none; }
.tb-label { font-size: 12px; color: var(--text-3); margin-right: -2px; }
.topbar > .select { font-weight: 650; font-family: var(--display); letter-spacing: -.01em; }
.stepper { display: inline-flex; align-items: center; height: 36px; border: 1px solid var(--line-strong); border-radius: var(--r); background: var(--surface); }
.stepper button { border: 0; background: transparent; width: 32px; height: 34px; display: grid; place-items: center; color: var(--text-2); cursor: pointer; border-radius: var(--r); }
.stepper button:hover { color: var(--text); background: var(--surface-2); }
.stepper input[type=date], .stepper select { border: 0 !important; background: transparent !important; height: 34px; padding: 0 2px; min-width: 0; width: 128px; font-variant-numeric: tabular-nums; box-shadow: none !important; }
.stepper select { width: auto; }
.stepper input:focus, .stepper select:focus { outline: none; }
.search-btn { display: inline-flex; align-items: center; gap: 8px; height: 36px; padding: 0 8px 0 12px; min-width: 260px; border: 1px solid var(--line-strong); border-radius: var(--r); background: var(--surface); color: var(--text-3); cursor: pointer; }
.search-btn span { flex: 1; text-align: left; }
.search-btn:hover { border-color: var(--text-3); color: var(--text-2); }
.user-chip { display: inline-flex; align-items: center; gap: 8px; padding-left: 6px; font-weight: 550; }
.avatar { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; flex: none; font-size: 11.5px; font-weight: 700; letter-spacing: .02em; color: var(--accent); background: var(--accent-soft); box-shadow: inset 0 0 0 1px var(--accent-wash-2); }
.avatar.lg { width: 38px; height: 38px; font-size: 13px; }
.view { width: 100%; max-width: 1440px; margin: 0 auto; padding: 32px 32px 96px; display: flex; flex-direction: column; gap: 26px; }
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.crumbs { display: flex; align-items: center; gap: 6px; font-size: 12.5px; color: var(--text-3); margin-bottom: 8px; }
.crumbs a:hover { color: var(--accent); }
.page-sub { color: var(--text-2); margin-top: 6px; }
.page-actions { display: flex; flex-wrap: wrap; gap: 8px; }

/* ---------- cartões e grades ---------- */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--shadow); padding: 22px; min-width: 0; }
.card.flush { padding: 0; overflow: hidden; }
.card.flush > .card-head { padding: 18px 22px 0; }
.card-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.card-head p { color: var(--text-3); font-size: 12.5px; margin-top: 3px; }
.card-actions { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.grid { display: grid; gap: 18px; }
.g-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.g-2-1 { grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); }
.g-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.stack { display: flex; flex-direction: column; gap: 12px; }
.row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.row.between { justify-content: space-between; }
.section { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.section-head h2 { font-size: 19px; }
.section-head p { color: var(--text-3); font-size: 13px; margin-top: 3px; }

/* ---------- controles ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 7px; height: 36px; padding: 0 14px; border-radius: var(--r); border: 1px solid var(--line-strong); background: var(--surface); color: var(--text); font-weight: 600; cursor: pointer; white-space: nowrap; transition: background .12s, border-color .12s, transform .06s; }
.btn:hover { background: var(--surface-2); border-color: var(--text-3); }
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--accent); border-color: transparent; color: var(--on-accent); box-shadow: 0 6px 16px -8px var(--accent); }
.btn-primary:hover { background: var(--accent-2); border-color: transparent; }
.btn-danger { background: var(--critical); border-color: transparent; color: #fff; }
.btn-danger:hover { background: #b93232; border-color: transparent; }
.btn-ghost { border-color: transparent; background: transparent; color: var(--text-2); box-shadow: none; }
.btn-ghost:hover { color: var(--text); background: var(--surface-2); border-color: transparent; }
.btn-sm { height: 30px; padding: 0 11px; font-size: 13px; border-radius: 8px; }
.btn[disabled] { opacity: .5; cursor: not-allowed; }
.icon-btn { width: 36px; height: 36px; display: inline-grid; place-items: center; border: 0; border-radius: var(--r); background: transparent; color: var(--text-2); cursor: pointer; flex: none; }
.icon-btn:hover { background: var(--surface-3); color: var(--text); }
.icon-btn.sm { width: 28px; height: 28px; border-radius: 8px; }
.field { display: flex; flex-direction: column; gap: 6px; font-size: 12.5px; font-weight: 600; color: var(--text-2); min-width: 0; }
.field .hint { font-weight: 400; color: var(--text-3); }
.input, .select, textarea.input { height: 38px; padding: 0 12px; border: 1px solid var(--line-strong); border-radius: var(--r); background: var(--surface); color: var(--text); min-width: 0; font-weight: 450; transition: border-color .12s, box-shadow .12s; }
textarea.input { height: auto; padding: 10px 12px; resize: vertical; }
.input:hover, .select:hover { border-color: var(--text-3); }
.input:focus, .select:focus, textarea.input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-wash-2); }
.input.num { text-align: right; }
.input-money { position: relative; display: flex; align-items: center; }
.input-money span { position: absolute; left: 12px; color: var(--text-3); font-size: 13px; pointer-events: none; }
.input-money .input { padding-left: 36px; width: 100%; text-align: right; font-variant-numeric: tabular-nums; }
.toolbar { display: flex; align-items: flex-end; gap: 10px; flex-wrap: wrap; }
.toolbar .grow, .grow { flex: 1; }
.search { position: relative; display: flex; align-items: center; }
.search .ico { position: absolute; left: 12px; color: var(--text-3); pointer-events: none; }
.search .input { padding-left: 38px; width: 260px; }
.seg { display: inline-flex; padding: 3px; gap: 2px; border-radius: 12px; background: var(--surface-3); }
.modal .seg { flex-wrap: wrap; }
.seg button { display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 12px; border: 0; border-radius: 9px; background: transparent; color: var(--text-2); cursor: pointer; font-weight: 600; font-size: 13px; white-space: nowrap; }
.seg button:hover { color: var(--text); }
.seg button.on { background: var(--surface); color: var(--text); box-shadow: 0 1px 3px rgba(22, 19, 31, .12); }
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); overflow-x: auto; }
.tabs a, .tabs button { display: inline-flex; align-items: center; gap: 8px; padding: 11px 14px; border: 0; background: none; color: var(--text-2); font-weight: 600; border-bottom: 2px solid transparent; margin-bottom: -1px; cursor: pointer; white-space: nowrap; }
.tabs a:hover { color: var(--text); }
.tabs .on { color: var(--text); border-bottom-color: var(--accent); }
.tabs .count { font-size: 11px; padding: 1px 7px; border-radius: 99px; background: var(--surface-3); color: var(--text-2); }
.switch { display: inline-flex; align-items: center; gap: 9px; cursor: pointer; font-size: 13px; color: var(--text-2); font-weight: 550; user-select: none; }
.switch input { appearance: none; width: 34px; height: 20px; border-radius: 99px; background: var(--surface-3); border: 1px solid var(--line-strong); position: relative; cursor: pointer; margin: 0; transition: background .15s; }
.switch input::after { content: ""; position: absolute; top: 2px; left: 2px; width: 14px; height: 14px; border-radius: 50%; background: #fff; box-shadow: 0 1px 2px rgba(0, 0, 0, .25); transition: transform .15s; }
.switch input:checked { background: var(--accent); border-color: var(--accent); }
.switch input:checked::after { transform: translateX(14px); }
.check-list { display: flex; flex-direction: column; max-height: 300px; overflow: auto; border: 1px solid var(--line); border-radius: var(--r); }
.check-list label { display: flex; align-items: center; gap: 10px; padding: 8px 12px; border-bottom: 1px solid var(--line); cursor: pointer; font-size: 13px; }
.check-list label:last-child { border-bottom: 0; }
.check-list label:hover { background: var(--surface-2); }
.check-list input, .radio-card input { accent-color: var(--accent); }
.radio-cards { display: grid; gap: 8px; }
.radio-card { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border: 1px solid var(--line-strong); border-radius: 12px; cursor: pointer; transition: border-color .12s, background .12s; }
.radio-card:has(input:checked) { border-color: var(--accent); background: var(--accent-wash); }
.radio-card input { margin-top: 3px; }
.radio-card b { display: block; font-weight: 650; font-size: 13.5px; }
.radio-card small { color: var(--text-2); font-size: 12.5px; }

/* ---------- status (forma + rótulo) ---------- */
.status { display: inline-flex; align-items: center; gap: 6px; font-weight: 650; color: var(--text); white-space: nowrap; font-variant-numeric: tabular-nums; }
.status i { font-style: normal; font-size: 9px; line-height: 1; }
.status.good i { color: var(--good); } .status.warning i { color: var(--warning-ico); } .status.critical i { color: var(--critical); }
.status .lbl { font-weight: 450; color: var(--text-2); }
.pill { display: inline-flex; align-items: center; gap: 5px; height: 24px; padding: 0 9px; border-radius: 99px; font-size: 12px; font-weight: 650; white-space: nowrap; font-variant-numeric: tabular-nums; color: var(--text); background: var(--surface-3); }
.pill i { font-style: normal; font-size: 9px; }
.pill.good { background: var(--good-wash); } .pill.good i { color: var(--good); }
.pill.warning { background: var(--warning-wash); } .pill.warning i { color: var(--warning-ico); }
.pill.critical { background: var(--critical-wash); } .pill.critical i { color: var(--critical); }
.badge { display: inline-flex; align-items: center; gap: 4px; height: 22px; padding: 0 8px; border-radius: 6px; font-size: 11.5px; font-weight: 650; background: var(--surface-3); color: var(--text-2); white-space: nowrap; }
.badge.accent { background: var(--accent-soft); color: var(--accent); }
.badge.good { background: var(--good-wash); color: var(--good-text); }
.badge.warn { background: var(--warning-wash); color: var(--warning-text); }
.bullet { position: relative; height: 10px; border-radius: 99px; background: var(--surface-3); margin: 6px 0 2px; }
.bullet > span { position: absolute; inset: 0 auto 0 0; border-radius: 99px; background: var(--accent); }
.bullet.good > span { background: var(--good); } .bullet.warning > span { background: var(--warning); } .bullet.critical > span { background: var(--critical); }
.bullet > i { position: absolute; top: -4px; bottom: -4px; width: 3px; margin-left: -1.5px; border-radius: 2px; background: var(--text); box-shadow: 0 0 0 2px var(--surface); }
.bullet.sm { height: 6px; margin: 0; }
.bullet.sm > i { top: -3px; bottom: -3px; width: 2px; box-shadow: none; }
.meter { position: relative; height: 8px; border-radius: 99px; background: var(--accent-wash-2); }
.meter > span { position: absolute; inset: 0 auto 0 0; border-radius: 99px; background: var(--accent); max-width: 100%; }
.meter.good > span { background: var(--good); } .meter.warning > span { background: var(--warning); } .meter.critical > span { background: var(--critical); }
.meter .mark { position: absolute; top: -4px; bottom: -4px; width: 2px; background: var(--text); opacity: .5; }
.meter.thin { height: 6px; }
.help { display: inline-grid; place-items: center; width: 16px; height: 16px; color: var(--text-3); cursor: help; }
.help:hover { color: var(--accent); }

/* ---------- escopo + frase ---------- */
.scope { display: flex; flex-wrap: wrap; gap: 8px; }
.scope a { display: inline-flex; align-items: center; gap: 8px; height: 38px; padding: 0 16px 0 6px; border-radius: 99px; border: 1px solid var(--line-strong); background: var(--surface); color: var(--text-2); font-weight: 600; transition: all .12s; }
.scope a.plain { padding-left: 16px; }
.scope a:hover { color: var(--text); border-color: var(--text-3); }
.scope a.on { background: var(--strong-bg); border-color: var(--strong-bg); color: var(--strong-fg); }
.scope a .avatar { width: 26px; height: 26px; font-size: 10px; }
.scope a.on .avatar { background: rgba(127, 127, 127, .25); color: inherit; box-shadow: none; }
.headline { font-family: var(--display); font-size: 22px; font-weight: 450; line-height: 1.4; letter-spacing: -.015em; color: var(--text-2); max-width: 1000px; }
.headline b { color: var(--text); font-weight: 700; }
.headline .t-good, .headline .t-warning, .headline .t-critical { font-weight: 650; }

/* ---------- indicadores ---------- */
.kpis { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.kpi { display: flex; flex-direction: column; gap: 6px; padding: 22px 24px; }
.kpi-label { display: flex; align-items: center; gap: 6px; font-size: 13px; color: var(--text-2); font-weight: 600; }
.kpi-value { font-family: var(--display); font-size: 40px; font-weight: 700; letter-spacing: -.035em; line-height: 1.05; margin-top: 4px; }
.kpi-line { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: 13px; color: var(--text-2); }
.kpi-foot { margin-top: auto; padding-top: 12px; font-size: 12.5px; color: var(--text-3); }
/* cartão assinatura (primeiro indicador) */
.kpi.ink { position: relative; overflow: hidden; background: var(--ink); border-color: var(--ink); color: #fff;
  --text: #ffffff; --text-2: rgba(255, 255, 255, .74); --text-3: rgba(255, 255, 255, .55); --surface: var(--ink); --surface-3: rgba(255, 255, 255, .14);
  --good-text: #5ee38a; --critical-text: #ff9a9a; --warning-text: #ffd36b; --accent: #a99cff; }
.kpi.ink::before { content: ""; position: absolute; right: -60px; top: -80px; width: 240px; height: 240px; border-radius: 50%; background: radial-gradient(closest-side, rgba(139, 60, 240, .55), transparent); pointer-events: none; }
.kpi.ink > * { position: relative; }
:root[data-theme="dark"] .kpi.ink { background: linear-gradient(160deg, #2a1f5c, #1a1530 70%); border-color: #3a2f72; }
@media (prefers-color-scheme: dark) { :root:where(:not([data-theme="light"])) .kpi.ink { background: linear-gradient(160deg, #2a1f5c, #1a1530 70%); border-color: #3a2f72; } }

/* ---------- gráficos ---------- */
.chart { width: 100%; position: relative; }
.chart svg { display: block; width: 100%; overflow: visible; font-family: var(--font); }
.chart .gridline { stroke: var(--grid); stroke-width: 1; }
.chart .baseline { stroke: var(--baseline); stroke-width: 1; }
.chart .tick { fill: var(--text-3); font-size: 11px; font-variant-numeric: tabular-nums; }
.chart .tick.strong { fill: var(--accent); font-weight: 700; }
.chart .endlabel { fill: var(--text); font-size: 13px; font-weight: 700; font-family: var(--display); }
.chart .bar { fill: var(--series-1); }
.chart .metatick { stroke: var(--series-2); stroke-width: 2; stroke-linecap: round; }
.chart .future { fill: var(--surface-2); }
.chart .band-hl { fill: var(--text); opacity: 0; }
.chart .band-hl.on { opacity: .06; }
.chart .hit { fill: transparent; cursor: crosshair; outline: none; }
.chart .line-meta { stroke: var(--series-2); stroke-width: 2; fill: none; stroke-linejoin: round; stroke-linecap: round; }
.chart .line-real { stroke: var(--series-1); stroke-width: 2.5; fill: none; stroke-linejoin: round; stroke-linecap: round; }
.chart .line-proj { stroke: var(--series-1); stroke-width: 2; fill: none; stroke-dasharray: 5 5; stroke-linecap: round; }
.chart .area-real { fill: var(--series-1); opacity: .12; }
.chart .dot { stroke: var(--surface); stroke-width: 2; }
.chart .dot-real { fill: var(--series-1); } .chart .dot-meta { fill: var(--series-2); }
.chart .crosshair { stroke: var(--text-3); stroke-width: 1; }
.legend { display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: 12.5px; color: var(--text-2); margin-bottom: 10px; font-weight: 500; }
.legend span { display: inline-flex; align-items: center; gap: 7px; }
.key-rect { width: 10px; height: 10px; border-radius: 3px; background: var(--series-1); display: inline-block; }
.key-line { width: 16px; height: 2.5px; border-radius: 2px; display: inline-block; flex: none; }
.key-line.meta { background: var(--series-2); } .key-line.real { background: var(--series-1); }
.key-line.proj { background: repeating-linear-gradient(90deg, var(--series-1) 0 5px, transparent 5px 9px); }
.chart-note { font-size: 12.5px; color: var(--text-3); margin-top: 10px; }
.tooltip { position: fixed; z-index: 100; pointer-events: none; min-width: 180px; padding: 10px 12px; border-radius: 12px; background: var(--ink); color: #fff; box-shadow: var(--shadow-lg); font-size: 12px; border: 1px solid rgba(255, 255, 255, .08); }
.tt-title { color: rgba(255, 255, 255, .6); margin-bottom: 6px; font-weight: 500; }
.tt-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; line-height: 1.75; }
.tt-row span { display: inline-flex; align-items: center; gap: 7px; color: rgba(255, 255, 255, .75); }
.tt-row b { font-size: 13px; font-variant-numeric: tabular-nums; font-weight: 650; }
.tooltip .key-line.real, .tooltip .key-rect { background: #a99cff; }

/* ---------- tabelas ---------- */
.tbl-wrap { overflow: auto; }
.tbl { width: 100%; border-collapse: separate; border-spacing: 0; font-size: 13px; }
.tbl th, .tbl td { padding: 0 14px; height: 46px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: middle; }
.tbl th { height: 40px; font-size: 11.5px; font-weight: 650; letter-spacing: .04em; text-transform: uppercase; color: var(--text-3); background: var(--surface); position: sticky; top: 0; z-index: 2; white-space: nowrap; }
.tbl th.sortable { cursor: pointer; user-select: none; }
.tbl th.sortable:hover { color: var(--text); }
.tbl th .arrow { font-size: 9px; margin-left: 4px; color: var(--accent); }
.tbl th:first-child, .tbl td:first-child { padding-left: 22px; }
.tbl th:last-child, .tbl td:last-child { padding-right: 22px; }
.tbl tbody tr:hover td { background: var(--surface-2); }
.tbl tr.click { cursor: pointer; }
.tbl tfoot td { font-weight: 700; background: var(--surface-2); border-bottom: 0; position: sticky; bottom: 0; }
.tbl .sub { display: block; font-size: 12px; color: var(--text-3); font-weight: 450; }
.tbl .row-strong td { font-weight: 650; background: var(--surface-2); }
/* vendedores: faixa de cada loja (modo "Por loja") e linha "sem vendedor(a)" */
.tbl .grp-row td { height: 40px; background: var(--surface-2); font-family: var(--display); font-weight: 650; font-size: 13px; }
.tbl .grp-row a { color: var(--text); text-decoration: none; display: inline-flex; align-items: center; gap: 8px; }
.tbl .grp-row a:hover { color: var(--accent); }
.tbl tr.muted-row td { color: var(--text-2); }
.tbl tr.muted-row td b { font-weight: 500; font-style: italic; }
.tbl .canal-tag { height: 18px; padding: 0 6px; font-size: 10.5px; margin-left: 6px; vertical-align: 1px; }
.tbl.dense th, .tbl.dense td { height: 38px; padding: 0 12px; }
.tbl.dense th:first-child, .tbl.dense td:first-child { padding-left: 18px; }
.cell-name { display: flex; align-items: center; gap: 10px; min-width: 180px; }
.cod { display: inline-grid; place-items: center; min-width: 30px; height: 22px; padding: 0 6px; border-radius: 6px; background: var(--surface-3); color: var(--text-2); font-size: 11px; font-weight: 700; font-variant-numeric: tabular-nums; }
tr.changed td { background: var(--accent-wash) !important; }
tr.inactive td { color: var(--text-3); }

/* ---------- listas ---------- */
.lst { display: flex; flex-direction: column; }
.lst-head, .lrow { display: grid; grid-template-columns: minmax(180px, 2fr) minmax(120px, 1.4fr) 180px 150px 20px; align-items: center; gap: 20px; padding: 0 22px; }
.lst-head { height: 40px; font-size: 11.5px; font-weight: 650; letter-spacing: .04em; text-transform: uppercase; color: var(--text-3); border-bottom: 1px solid var(--line); }
.lrow { min-height: 64px; border-bottom: 1px solid var(--line); color: inherit; transition: background .1s; }
.lrow:last-child { border-bottom: 0; }
.lrow:hover { background: var(--surface-2); }
.lrow:hover .chev { color: var(--accent); transform: translateX(2px); }
.lrow b { display: block; font-weight: 650; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lrow small { display: block; font-size: 12px; color: var(--text-3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lrow small .warn { color: var(--warning-text); font-weight: 650; }
.lrow .chev { color: var(--text-3); transition: transform .12s, color .12s; }
.lst-more { padding: 12px 22px; border-top: 1px solid var(--line); }
.focus-list { display: flex; flex-direction: column; }
.focus-item { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-top: 1px solid var(--line); color: inherit; }
.focus-item:first-child { border-top: 0; padding-top: 2px; }
.focus-item:hover b { color: var(--accent); }
.fi-ico { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; flex: none; background: var(--surface-3); color: var(--text-2); }
.fi-ico.crit { background: var(--critical-wash); color: var(--critical); }
.fi-ico.warn { background: var(--warning-wash); color: var(--warning-ico); }
.fi-ico.good { background: var(--good-wash); color: var(--good); }
.fi-body { flex: 1; min-width: 0; }
.focus-item b { display: block; font-weight: 650; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.focus-item small { display: block; font-size: 12px; color: var(--text-3); }
.sup-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 18px; }
.sup-card { display: flex; flex-direction: column; gap: 14px; padding: 20px 22px; color: inherit; transition: border-color .15s, transform .15s, box-shadow .15s; }
.sup-card:hover { border-color: var(--accent); transform: translateY(-2px); box-shadow: 0 16px 32px -18px rgba(91, 61, 245, .45); }
.sup-card .big { font-family: var(--display); font-size: 34px; font-weight: 700; letter-spacing: -.03em; line-height: 1; }
.sup-card .muted { font-size: 12.5px; color: var(--text-3); }
.sup-card b { font-weight: 650; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { display: inline-flex; align-items: center; gap: 8px; height: 36px; padding: 0 14px; border-radius: 99px; border: 1px solid var(--line-strong); background: var(--surface); color: var(--text-2); font-weight: 600; cursor: pointer; font-size: 13px; transition: all .12s; }
.chip:hover { color: var(--text); border-color: var(--text-3); }
.chip .n { font-size: 12px; color: var(--text-3); font-variant-numeric: tabular-nums; font-weight: 650; }
.chip.on { background: var(--strong-bg); color: var(--strong-fg); border-color: var(--strong-bg); }
.chip.on .n { color: var(--strong-sub); }
.chip i { font-style: normal; font-size: 9px; }
.chip.good i { color: var(--good); } .chip.warning i { color: var(--warning-ico); } .chip.critical i { color: var(--critical); }

/* ---------- recolhíveis ---------- */
details.disc { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--shadow-sm); }
details.disc > summary { list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 18px 22px; cursor: pointer; user-select: none; border-radius: var(--r-lg); }
details.disc > summary::-webkit-details-marker { display: none; }
details.disc > summary p { color: var(--text-3); font-size: 13px; margin-top: 3px; }
details.disc > summary > .ico { color: var(--text-3); transition: transform .18s; width: 30px; height: 30px; padding: 6px; border-radius: 50%; background: var(--surface-3); }
details.disc[open] > summary > .ico { transform: rotate(180deg); }
details.disc[open] > summary { border-bottom: 1px solid var(--line); border-radius: var(--r-lg) var(--r-lg) 0 0; }
details.disc > summary:hover h2 { color: var(--accent); }
.disc-body { padding: 20px 22px; display: flex; flex-direction: column; gap: 22px; }
.disc-body.flush { padding: 0; }
.sub-title { font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--text-3); margin-bottom: 10px; }
.kv-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 18px 28px; }
.kv-item span { display: block; font-size: 12.5px; color: var(--text-3); }
.kv-item b { display: block; font-family: var(--display); font-size: 19px; font-weight: 650; margin-top: 3px; letter-spacing: -.01em; }
.kv-item small { display: block; font-size: 12px; color: var(--text-3); margin-top: 3px; }
.kv { display: grid; grid-template-columns: auto 1fr; gap: 6px 16px; font-size: 13px; margin: 0; }
.kv dt { color: var(--text-2); } .kv dd { margin: 0; text-align: right; font-variant-numeric: tabular-nums; }

/* ---------- menu suspenso ---------- */
.menu-wrap { position: relative; display: inline-flex; }
.menu { position: absolute; right: 0; top: calc(100% + 8px); z-index: 60; min-width: 250px; padding: 6px; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow-lg); animation: pop .14s ease-out; }
.menu-item { width: 100%; display: flex; align-items: center; gap: 10px; padding: 9px 10px; border: 0; background: transparent; border-radius: 9px; cursor: pointer; text-align: left; color: var(--text); font-weight: 550; }
.menu-item:hover, .menu-item:focus-visible { background: var(--accent-wash); outline: none; }
.menu-item .ico { color: var(--accent); }
.menu-item small { margin-left: auto; color: var(--text-3); font-size: 11px; }
.menu-item[disabled] { opacity: .45; cursor: not-allowed; }
.menu-sep { height: 1px; background: var(--line); margin: 6px 4px; }

/* ---------- calendário da loja ---------- */
.days { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 8px; }
.days-h { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .07em; color: var(--text-3); text-align: center; padding-bottom: 2px; }
.day { border: 1px solid var(--line); border-radius: 12px; padding: 9px 11px; min-height: 82px; display: flex; flex-direction: column; gap: 2px; background: var(--surface); }
.day .dn { display: flex; justify-content: space-between; align-items: center; font-size: 12px; color: var(--text-3); }
.day .dn b { color: var(--text); font-weight: 700; font-family: var(--display); font-size: 14px; }
.day .dv { font-family: var(--display); font-size: 15px; font-weight: 650; letter-spacing: -.01em; margin-top: auto; }
.day .dm { font-size: 11px; color: var(--text-3); font-variant-numeric: tabular-nums; }
.day .st { font-style: normal; font-size: 9px; }
.day .st.good { color: var(--good); } .day .st.warning { color: var(--warning-ico); } .day .st.critical { color: var(--critical); }
.day.closed { background: repeating-linear-gradient(135deg, var(--surface-2) 0 6px, var(--surface) 6px 12px); }
.day.today { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-wash-2); }
.day.today .dn span { color: var(--accent); font-weight: 700; }
.day.missing { border-style: dashed; border-color: var(--warning); }

/* ---------- metas ---------- */
.mrow { display: grid; grid-template-columns: minmax(200px, 2fr) 140px minmax(140px, 1.6fr) 100px 100px; align-items: center; gap: 20px; padding: 0 22px; min-height: 62px; border-bottom: 1px solid var(--line); }
.mrow:last-child { border-bottom: 0; }
.mrow.head { min-height: 40px; font-size: 11.5px; font-weight: 650; letter-spacing: .04em; text-transform: uppercase; color: var(--text-3); }
.mrow b { display: block; font-weight: 650; } .mrow small { display: block; font-size: 12px; color: var(--text-3); }
.mrow .r { font-variant-numeric: tabular-nums; }
.spark { display: block; width: 100%; height: 28px; }
.spark rect { fill: var(--series-1); opacity: .85; }
.spark rect.off { fill: var(--line-strong); opacity: 1; }
.stat-strip { display: flex; flex-wrap: wrap; gap: 12px 40px; align-items: baseline; }
.stat-strip span { font-size: 12.5px; color: var(--text-3); display: block; }
.stat-strip b { font-family: var(--display); font-size: 24px; font-weight: 700; letter-spacing: -.02em; }
.matrix { border-collapse: separate; border-spacing: 0; font-size: 12px; }
.matrix th, .matrix td { height: 36px; padding: 0 8px; border-bottom: 1px solid var(--line); text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.matrix th { position: sticky; top: 0; z-index: 3; height: 44px; background: var(--surface); font-weight: 700; color: var(--text-2); }
.matrix th .wd { display: block; font-size: 10px; font-weight: 500; color: var(--text-3); line-height: 1; margin-top: 2px; }
.matrix .c-act { position: sticky; left: 0; z-index: 2; background: var(--surface); text-align: center; width: 40px; min-width: 40px; max-width: 40px; padding: 0 4px; }
.matrix .c-name { position: sticky; left: 40px; z-index: 2; background: var(--surface); text-align: left; width: 250px; min-width: 250px; max-width: 250px; overflow: hidden; text-overflow: ellipsis; }
.matrix .c-tot { position: sticky; left: 290px; z-index: 2; background: var(--surface); font-weight: 700; border-right: 1px solid var(--line-strong); min-width: 104px; }
.matrix th.c-act, .matrix th.c-name, .matrix th.c-tot { z-index: 4; }
.matrix td.cell { cursor: text; min-width: 64px; }
.matrix td.cell:hover { background: var(--accent-wash); }
.matrix td.cell.zero { color: var(--text-3); }
.matrix .wk { background: var(--surface-2); }
.matrix td.editing { padding: 0 2px; background: var(--surface) !important; }
.matrix td.editing input { width: 86px; height: 28px; text-align: right; border: 2px solid var(--accent); border-radius: 7px; padding: 0 6px; background: var(--surface); font-variant-numeric: tabular-nums; outline: none; }
.matrix tfoot td { position: sticky; bottom: 0; background: var(--surface-2); font-weight: 700; z-index: 2; border-bottom: 0; }
.matrix tfoot td.c-act, .matrix tfoot td.c-name, .matrix tfoot td.c-tot { z-index: 4; background: var(--surface-2); }
.matrix tr:hover td.c-name, .matrix tr:hover td.c-act, .matrix tr:hover td.c-tot { background: var(--surface-2); }
.matrix tr.no-meta td { color: var(--text-3); }

/* editor de metas */
.cal { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; }
.cal-h { font-size: 11px; font-weight: 700; color: var(--text-3); text-align: center; text-transform: uppercase; letter-spacing: .06em; }
.cal-d { border: 1px solid var(--line); border-radius: 10px; padding: 6px; display: flex; flex-direction: column; gap: 4px; background: var(--surface); min-width: 0; }
.cal-d .cal-top { display: flex; align-items: center; justify-content: space-between; font-size: 12px; font-weight: 700; }
.cal-d .cal-toggle { border: 0; background: transparent; cursor: pointer; font-size: 10px; font-weight: 650; color: var(--text-3); padding: 2px 5px; border-radius: 5px; }
.cal-d .cal-toggle:hover { background: var(--accent-wash); color: var(--accent); }
.cal-d input { width: 100%; height: 28px; border: 1px solid var(--line); border-radius: 6px; padding: 0 6px; text-align: right; font-size: 12px; font-variant-numeric: tabular-nums; background: var(--surface); }
.cal-d input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-wash-2); }
.cal-d.closed { background: repeating-linear-gradient(135deg, var(--surface-2) 0 6px, var(--surface) 6px 12px); }
.cal-d.closed input { visibility: hidden; }
.cal-d.peak { border-color: var(--series-2); }
.weights { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; }
.weights label { display: flex; flex-direction: column; gap: 4px; font-size: 11px; color: var(--text-3); font-weight: 700; text-transform: uppercase; text-align: center; }
.weights input { height: 32px; text-align: center; border: 1px solid var(--line-strong); border-radius: 8px; background: var(--surface); }
.sum-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 20px; padding: 12px 14px; border-radius: 12px; background: var(--accent-wash); font-size: 13px; color: var(--text-2); }
.sum-bar b { color: var(--text); font-variant-numeric: tabular-nums; }

/* ---------- mapa de calor ---------- */
.hm-wrap { overflow: auto; }
.hm { border-collapse: separate; border-spacing: 3px; font-size: 12px; }
.hm th { font-weight: 600; color: var(--text-3); font-size: 11px; text-align: center; padding: 0 0 4px; position: sticky; top: 0; background: var(--surface); z-index: 1; }
.hm th.wk { color: var(--accent); }
.hm td.name { position: sticky; left: 0; background: var(--surface); padding-right: 12px; white-space: nowrap; max-width: 240px; overflow: hidden; text-overflow: ellipsis; z-index: 1; }
.hm td.name a:hover { color: var(--accent); }
.hm td.sup-row { padding: 12px 0 4px; font-family: var(--display); font-weight: 650; color: var(--text); font-size: 13px; position: sticky; left: 0; background: var(--surface); }
.hm-c { width: 22px; min-width: 22px; height: 22px; border-radius: 5px; background: var(--surface-2); }
.hm-c.n3 { background: var(--hm-n3); } .hm-c.n2 { background: var(--hm-n2); } .hm-c.n1 { background: var(--hm-n1); }
.hm-c.z { background: var(--hm-0); }
.hm-c.p1 { background: var(--hm-p1); } .hm-c.p2 { background: var(--hm-p2); } .hm-c.p3 { background: var(--hm-p3); }
.hm-c.closed { background: repeating-linear-gradient(135deg, transparent 0 3px, var(--line-strong) 3px 4px); }
.hm-c.future { background: transparent; box-shadow: inset 0 0 0 1px var(--line); }
.hm-c.missing { background: transparent; box-shadow: inset 0 0 0 1.5px var(--warning); }
.hm-c:hover { outline: 2px solid var(--text); outline-offset: 1px; }
.hm-legend { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 16px; font-size: 12px; color: var(--text-2); margin-top: 16px; }
.hm-legend .scale { display: inline-flex; align-items: center; gap: 3px; }
.hm-legend .hm-c { width: 16px; min-width: 16px; height: 16px; display: inline-block; }

/* ---------- lançamento / hora ---------- */
.progress-line { display: flex; align-items: center; gap: 12px; font-size: 13px; color: var(--text-2); }
.progress-line .meter { flex: 1; min-width: 140px; max-width: 260px; }
.st-ico { display: inline-grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; }
.st-ico.ok { background: var(--good-wash); color: var(--good); }
.st-ico.pend { background: var(--warning-wash); color: var(--warning-ico); }
.st-ico.off { color: var(--text-3); }
.tbl td.input-cell input { width: 160px; height: 34px; text-align: right; font-variant-numeric: tabular-nums; }
.hh-list { display: flex; flex-direction: column; }
.hh-row { display: grid; grid-template-columns: minmax(180px, 1.2fr) 190px minmax(170px, 1.4fr) 190px; align-items: center; gap: 20px; padding: 16px 22px; border-bottom: 1px solid var(--line); }
.hh-row:last-child { border-bottom: 0; }
.hh-row.head { padding-top: 11px; padding-bottom: 11px; font-size: 11.5px; font-weight: 650; letter-spacing: .04em; text-transform: uppercase; color: var(--text-3); }
.hh-row.total { background: var(--accent-wash); }
.hh-row .big { font-family: var(--display); font-size: 22px; font-weight: 700; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.hh-row small { display: block; font-size: 12px; color: var(--text-3); }
.hh-row b { font-weight: 650; }

/* ---------- modal / busca / toasts ---------- */
.modal-back { position: fixed; inset: 0; z-index: 80; background: rgba(14, 12, 20, .5); backdrop-filter: blur(3px); display: grid; place-items: center; padding: 20px; animation: fade .14s ease-out; }
.modal { width: 100%; max-height: calc(100vh - 40px); display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-xl); box-shadow: var(--shadow-lg); animation: pop .16s ease-out; }
.modal-sm { max-width: 440px; } .modal-md { max-width: 580px; } .modal-lg { max-width: 880px; } .modal-xl { max-width: 1060px; }
.modal-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; padding: 22px 24px 12px; }
.modal-head h2 { font-size: 21px; }
.modal-head p { color: var(--text-2); font-size: 13px; margin-top: 4px; }
.modal-body { padding: 6px 24px 18px; overflow: auto; display: flex; flex-direction: column; gap: 16px; }
.modal-foot { display: flex; justify-content: flex-end; align-items: center; gap: 8px; padding: 16px 24px; border-top: 1px solid var(--line); background: var(--surface-2); border-radius: 0 0 var(--r-xl) var(--r-xl); }
.modal-foot .left { margin-right: auto; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 16px; }
.form-grid .full { grid-column: 1 / -1; }
.form-error { color: var(--critical-text); font-size: 13px; }
pre.code { margin: 0; padding: 14px 16px; border-radius: 12px; background: var(--ink); color: #e6e1ff; font: 12.5px/1.7 var(--mono); overflow: auto; }
.palette { position: fixed; inset: 0; z-index: 90; background: rgba(14, 12, 20, .45); backdrop-filter: blur(3px); display: flex; justify-content: center; align-items: flex-start; padding-top: 12vh; animation: fade .12s; }
.palette-box { width: min(580px, 92vw); background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-xl); box-shadow: var(--shadow-lg); overflow: hidden; }
.palette-input { display: flex; align-items: center; gap: 10px; padding: 0 18px; border-bottom: 1px solid var(--line); color: var(--accent); }
.palette-input input { flex: 1; height: 58px; border: 0; background: transparent; font-size: 16px; outline: none; color: var(--text); }
.palette-list { max-height: 380px; overflow: auto; padding: 8px; }
.palette-item { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 10px; cursor: pointer; color: var(--text-2); }
.palette-item b { color: var(--text); font-weight: 600; }
.palette-item small { margin-left: auto; color: var(--text-3); font-size: 12px; }
.palette-item.sel { background: var(--accent-wash-2); }
.palette-item.sel .ico { color: var(--accent); }
.palette-group { font-size: 10.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--text-3); padding: 10px 12px 4px; }
.toasts { position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%); z-index: 120; display: flex; flex-direction: column; gap: 8px; align-items: center; }
.toast { display: flex; align-items: center; gap: 9px; padding: 11px 16px; border-radius: 12px; background: var(--ink); color: #fff; font-weight: 600; box-shadow: var(--shadow-lg); animation: pop .16s ease-out; }
.toast .ico { color: #a99cff; }
.toast.error { background: var(--critical); } .toast.error .ico { color: #fff; }
.toast.out { opacity: 0; transform: translateY(6px); transition: all .25s; }
.savebar { position: fixed; bottom: 22px; left: calc(50% + 126px); transform: translateX(-50%); z-index: 40; display: flex; align-items: center; gap: 12px; padding: 8px 8px 8px 18px; border-radius: 14px; background: var(--ink); color: #fff; box-shadow: var(--shadow-lg); animation: fade .15s ease-out; font-weight: 550; }
.savebar .btn { height: 34px; }
.savebar .btn-ghost { color: rgba(255, 255, 255, .8); }
.savebar .btn-ghost:hover { background: rgba(255, 255, 255, .1); color: #fff; }
.savebar .btn-primary { background: #8b7bff; color: #120f1c; }
@keyframes fade { from { opacity: 0; } }
@keyframes pop { from { opacity: 0; transform: translateY(8px) scale(.98); } }

/* ---------- vazio ---------- */
.empty { padding: 44px 20px; text-align: center; color: var(--text-2); display: flex; flex-direction: column; align-items: center; gap: 10px; }
.empty .ico { color: var(--accent); width: 44px; height: 44px; padding: 10px; border-radius: 14px; background: var(--accent-soft); }
.empty b { color: var(--text); font-family: var(--display); font-size: 18px; font-weight: 650; }

/* ---------- login ---------- */
.login { min-height: 100vh; display: grid; grid-template-columns: 1.15fr 1fr; background: var(--surface); }
.login-art { position: relative; overflow: hidden; background: #16131f; color: #fff; padding: 44px 52px; display: flex; flex-direction: column; justify-content: space-between; }
.login-art::before { content: ""; position: absolute; width: 620px; height: 620px; right: -180px; top: -220px; border-radius: 50%; background: radial-gradient(closest-side, rgba(139, 60, 240, .55), transparent 70%); }
.login-art::after { content: ""; position: absolute; width: 520px; height: 520px; left: -200px; bottom: -260px; border-radius: 50%; background: radial-gradient(closest-side, rgba(91, 61, 245, .5), transparent 70%); }
.login-art > * { position: relative; z-index: 1; }
.login-art h2 { font-family: var(--display); font-size: 52px; line-height: 1.02; letter-spacing: -.04em; font-weight: 750; max-width: 560px; }
.login-art h2 em { font-style: normal; background: linear-gradient(90deg, #a99cff, #e08cff); -webkit-background-clip: text; background-clip: text; color: transparent; }
.login-art p { color: rgba(255, 255, 255, .72); max-width: 470px; margin-top: 18px; font-size: 16px; line-height: 1.55; }
.login-art .rhythm { width: 100%; max-width: 560px; height: auto; margin-top: 34px; }
.login-art small { color: rgba(255, 255, 255, .5); }
.login-form { display: grid; place-items: center; padding: 32px; }
.login-form form { width: 100%; max-width: 380px; display: flex; flex-direction: column; gap: 18px; }
.login-form h1 { font-size: 34px; }
.login-form .logo-word { color: var(--text); }
.login-form .logo-word i { color: var(--accent); }
.login-hint { font-size: 12.5px; color: var(--text-2); background: var(--accent-wash); border-radius: 12px; padding: 12px 14px; }
.login-form .btn-primary { height: 44px; font-size: 15px; border-radius: 12px; }
.login-form .input { height: 44px; border-radius: 12px; }

/* ---------- responsivo ---------- */
@media (max-width: 1280px) { .g-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 1080px) {
  .g-2, .g-2-1, .g-3, .kpis { grid-template-columns: 1fr; }
  .search-btn { min-width: 0; } .search-btn span, .search-btn kbd { display: none; }
  .lst-head { display: none; }
  .lrow { grid-template-columns: minmax(0, 1fr) auto; gap: 8px 12px; padding: 14px 18px; }
  .lrow > :nth-child(2) { grid-column: 1; grid-row: 2; }
  .lrow > :nth-child(3) { grid-column: 2; grid-row: 1; }
  .lrow > :nth-child(4) { grid-column: 2; grid-row: 2; }
  .lrow > :nth-child(5) { display: none; }
  .mrow { grid-template-columns: minmax(0, 1fr) auto auto; gap: 6px 12px; padding: 12px 18px; }
  .mrow > :nth-child(3), .mrow > :nth-child(4), .mrow.head { display: none; }
  .hh-row { grid-template-columns: 1fr 1fr; } .hh-row.head { display: none; }
  .login-art h2 { font-size: 40px; }
}
@media (max-width: 900px) {
  .app { grid-template-columns: 1fr; }
  .sidebar { position: fixed; left: 0; top: 0; bottom: 0; width: 272px; transform: translateX(-102%); transition: transform .22s ease; box-shadow: var(--shadow-lg); }
  .app.nav-open .sidebar { transform: none; }
  .app.nav-open::after { content: ""; position: fixed; inset: 0; background: rgba(14, 12, 20, .45); z-index: 25; }
  .menu-btn { display: inline-grid; }
  .topbar { height: auto; flex-wrap: wrap; padding: 10px 12px; gap: 8px 6px; }
  .topbar > .select { flex: 1 1 auto; min-width: 0; }
  .topbar .spacer, .tb-label, .user-chip { display: none; }
  .topbar .stepper { order: 10; flex: 1 1 100%; }
  .topbar .stepper input[type=date] { flex: 1; width: auto; text-align: center; }
  .view { padding: 20px 14px 96px; gap: 20px; }
  h1 { font-size: 26px; }
  .headline { font-size: 18px; }
  .kpi-value { font-size: 34px; }
  .login { grid-template-columns: 1fr; } .login-art { display: none; }
  .savebar { left: 50%; }
  .form-grid { grid-template-columns: 1fr; }
  .search .input { width: 100%; }
  .days { gap: 3px; } .day { padding: 5px; min-height: 60px; border-radius: 8px; } .day .dv { font-size: 12px; } .day .dm { display: none; }
  .cal { gap: 3px; } .cal-d { padding: 3px; } .cal-d input { font-size: 11px; padding: 0 3px; }
}
@media print {
  .sidebar, .topbar, .page-actions, .savebar { display: none !important; }
  .app { display: block; } .card { break-inside: avoid; box-shadow: none; }
}

/* status do WinThor no menu */
.side-card { display: block; color: var(--side-text); transition: border-color .15s; }
.side-card:hover { border-color: rgba(255, 255, 255, .2); }
.side-card b .ico { display: none; }
.wt-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--side-muted); display: inline-block; flex: none; }
.wt-ok .wt-dot { background: #3ccf5a; box-shadow: 0 0 0 3px rgba(60, 207, 90, .2); }
.wt-sync .wt-dot { background: #ffc75f; animation: pulso 1.2s ease-in-out infinite; }
.wt-erro .wt-dot { background: #ff6b6b; box-shadow: 0 0 0 3px rgba(255, 107, 107, .2); }
.wt-erro { border-color: rgba(255, 107, 107, .35); }
@keyframes pulso { 50% { opacity: .35; } }

/* "Atualizado há X min" + atualizar agora (topo) */
.sync-btn { display: inline-flex; align-items: center; gap: 8px; height: 36px; padding: 0 10px 0 12px; border: 1px solid var(--line-strong); border-radius: var(--r); background: var(--surface); color: var(--text-2); font-size: 12.5px; font-weight: 550; white-space: nowrap; cursor: pointer; flex: none; }
.sync-btn:hover:not(:disabled) { border-color: var(--text-3); color: var(--text); }
.sync-btn:disabled { cursor: progress; }
.sync-btn .ico { color: var(--text-3); }
.sync-btn .wt-dot { background: var(--text-3); }
.sync-btn.wt-ok .wt-dot { background: var(--good); box-shadow: 0 0 0 3px var(--good-wash); }
.sync-btn.wt-sync .ico { animation: girar 1s linear infinite; color: var(--accent); }
.sync-btn.wt-velho { border-color: color-mix(in srgb, var(--warning) 60%, var(--line-strong)); color: var(--warning-text); }
.sync-btn.wt-velho .wt-dot { background: var(--warning); box-shadow: 0 0 0 3px var(--warning-wash); }
.sync-btn.wt-erro { border-color: color-mix(in srgb, var(--critical) 55%, var(--line-strong)); color: var(--critical-text); }
.sync-btn.wt-erro .wt-dot { background: var(--critical); box-shadow: 0 0 0 3px var(--critical-wash); }
@keyframes girar { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .sync-btn.wt-sync .ico, .wt-sync .wt-dot { animation: none; } }
@media (max-width: 900px) { .sync-btn { padding: 0 10px; } .sync-btn .sync-txt { display: none; } }

/* total faturado (Lojas) e valor de cada loja na lista */
.totbar { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 10px 36px; padding: 16px 22px; }
.tot-item { display: flex; flex-direction: column; gap: 2px; min-width: 140px; }
.tot-item span { font-size: 12px; font-weight: 600; color: var(--text-2); }
.tot-item b { font-family: var(--display); font-size: 20px; font-weight: 650; letter-spacing: -.02em; font-variant-numeric: tabular-nums; white-space: nowrap; }
.tot-item.main b { font-size: 28px; }
.tot-item small { font-size: 12px; color: var(--text-3); }
.lrow .lv-num { display: flex; align-items: baseline; gap: 6px; flex-wrap: wrap; margin-bottom: 5px; font-variant-numeric: tabular-nums; }
.lrow .lv-num b { font-weight: 600; }
.lrow .lv-num small { font-size: 12px; color: var(--text-3); }
.kpi-sub { font-size: 13px; opacity: .85; margin-top: -2px; font-variant-numeric: tabular-nums; }
.kpi-sub b { font-weight: 650; }

/* ---------- seletor de período (dia / semana / mês / ano / personalizado) ---------- */
.per-picker { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.per-nav { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.per-campos { display: flex; align-items: center; gap: 6px; }
.per-nav .input, .per-nav .select { height: 36px; }
.per-nav input[type=date].input { width: 150px; }
.note.carregando { display: flex; align-items: center; gap: 6px; color: var(--text-2); }
.note.carregando svg { animation: girar 1.2s linear infinite; flex: none; }

/* ---------- estoque parado ---------- */
.est-status { display: inline-flex; align-items: center; flex-wrap: wrap; gap: 4px 12px; }
.est-status b { color: var(--text); font-weight: 650; }
.est-lendo { display: inline-flex; align-items: center; gap: 5px; color: var(--accent); font-weight: 600; }
.est-lendo svg, .btn.est-girando svg { animation: girar 1.2s linear infinite; }
@media (prefers-reduced-motion: reduce) { .est-lendo svg, .btn.est-girando svg { animation: none; } }
.est-corpo { display: flex; flex-direction: column; gap: 14px; }
.est-tabs { overflow-x: auto; padding-bottom: 2px; }
.est-tabs .seg { min-width: max-content; }
.est-aviso { display: flex; align-items: center; gap: 4px; color: var(--warning-text); }
.est-como { margin: 0; padding-left: 18px; display: flex; flex-direction: column; gap: 10px; color: var(--text-2); line-height: 1.55; }
.est-como b { color: var(--text); font-weight: 650; }

/* etiqueta da ação: ícone + texto (a cor só reforça) */
.est-acao { display: inline-flex; align-items: center; gap: 5px; height: 24px; padding: 0 9px; border-radius: 99px; font-size: 12px; font-weight: 650; white-space: nowrap; background: var(--surface-3); color: var(--text-2); }
.est-acao.aguardar { background: var(--good-wash); color: var(--good-text); }
.est-acao.liquidar { background: var(--critical-wash); color: var(--critical-text); }
.est-acao.transferir { background: var(--accent-soft); color: var(--accent); }
.est-acao.zerar { background: var(--surface-3); color: var(--text-2); }

/* resumo */
.est-resumo { gap: 22px; }
.est-kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 18px; }
.est-kpis .kpi { padding: 20px 22px; }
.est-kpis .kpi-value { font-size: 30px; }
.est-split { display: flex; height: 8px; border-radius: 99px; overflow: hidden; background: var(--accent); }
.est-split i { display: block; height: 100%; }
.est-split i.b { background: repeating-linear-gradient(135deg, var(--critical) 0 3px, color-mix(in srgb, var(--critical) 55%, var(--surface)) 3px 6px); }
.est-split i.d { flex: 1; }
.est-pir { display: flex; flex-direction: column; gap: 4px; }
.est-pir-row { display: grid; grid-template-columns: 110px minmax(80px, 1fr) 110px 110px; align-items: center; gap: 16px; width: 100%; padding: 10px 12px; border: 0; border-radius: 10px; background: transparent; color: inherit; text-align: left; cursor: pointer; }
.est-pir-row:hover { background: var(--surface-2); }
.est-pir-t { font-weight: 650; }
.est-track { display: block; height: 18px; border-radius: 6px; background: var(--surface-3); overflow: hidden; }
.est-track > i { display: block; height: 100%; border-radius: 6px; background: var(--series-1); }
.est-track > i.sv { background: repeating-linear-gradient(135deg, var(--series-1) 0 5px, color-mix(in srgb, var(--series-1) 40%, var(--surface)) 5px 10px); }
.est-pir-v { text-align: right; font-variant-numeric: tabular-nums; }
.est-pir-v b { display: block; font-weight: 650; }
.est-pir-v small { display: block; font-size: 12px; color: var(--text-3); }
.est-pir-n { text-align: right; color: var(--text-2); font-size: 13px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.est-acoes { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 14px; }
.est-acao-card { display: flex; flex-direction: column; gap: 6px; padding: 16px 18px; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--surface); box-shadow: var(--shadow-sm); text-align: left; color: inherit; cursor: pointer; transition: border-color .12s, transform .12s; }
.est-acao-card:hover { border-color: var(--accent); transform: translateY(-1px); }
.est-acao-card .ico { color: var(--text-3); }
.est-acao-card .est-acao .ico { color: inherit; }
.est-acao-n { font-family: var(--display); font-size: 30px; font-weight: 700; letter-spacing: -.03em; line-height: 1.1; margin-top: 6px; }
.est-acao-n small { font-family: var(--font); font-size: 13px; font-weight: 500; letter-spacing: 0; color: var(--text-3); }
.est-acao-v { font-weight: 600; font-variant-numeric: tabular-nums; }
.est-acao-card p { font-size: 12.5px; color: var(--text-3); }
.est-atalho { display: block; padding: 12px 14px; margin: -12px -14px; border-radius: 12px; }
.est-atalho:hover { background: var(--accent-wash); }
.est-atalho:hover span { color: var(--accent); }
.est-mini { display: block; height: 8px; border-radius: 99px; background: var(--surface-3); overflow: hidden; }
.est-mini i { display: block; height: 100%; background: var(--series-1); border-radius: 99px; }

/* listas */
.est-tot { padding: 14px 22px; }
.est-lista { scroll-margin-top: 80px; transition: opacity .15s; }
.est-lista.est-carregando { opacity: .55; }
.est-wrap { max-height: 72vh; }
.est-tbl th { white-space: normal; line-height: 1.2; height: 48px; min-width: 96px; vertical-align: middle; }
.est-tbl th.num { text-align: right; }
.est-tbl th.est-prod, .est-tbl td.est-prod { position: sticky; left: 0; background-color: var(--surface); box-shadow: 1px 0 0 var(--line); text-align: left; }
.est-tbl td.est-prod { z-index: 1; min-width: 300px; max-width: 380px; }
.est-tbl th.est-prod { z-index: 4; min-width: 300px; }
.est-tbl tbody tr:hover td.est-prod { background-color: var(--surface-2); }
.est-ord { cursor: pointer; }
.est-ord:hover { color: var(--text); }
.est-prodc { display: flex; align-items: center; gap: 10px; min-width: 0; }
.est-seq { flex: none; min-width: 26px; font-size: 11px; color: var(--text-3); font-variant-numeric: tabular-nums; text-align: right; }
.est-prodc .cod { flex: none; }
.est-desc { display: block; min-width: 0; max-width: 270px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 550; }
.est-desc small { display: block; font-size: 11.5px; color: var(--text-3); font-weight: 450; }
.est-tbl tbody tr.est-promo td { background-image: linear-gradient(var(--warning-wash), var(--warning-wash)); }
.est-tbl tbody tr.est-promo:hover td { background-image: linear-gradient(color-mix(in srgb, var(--warning) 26%, transparent), color-mix(in srgb, var(--warning) 26%, transparent)); }
.est-tbl tbody tr.est-promo td.est-prod { box-shadow: 1px 0 0 var(--line), inset 3px 0 0 var(--warning); }
.est-promo-tag { gap: 5px; }
.est-dif { color: var(--warning-text); font-weight: 600; }
.est-nunca { color: var(--critical-text); font-weight: 600; }
.est-loja { display: inline-flex; align-items: center; gap: 8px; white-space: nowrap; }
.est-pager { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 10px 16px; padding: 12px 22px; border-top: 1px solid var(--line); font-size: 13px; color: var(--text-2); }
.est-pager .row { gap: 8px; flex-wrap: nowrap; }
.est-pag { font-variant-numeric: tabular-nums; min-width: 110px; text-align: center; }

/* detalhe do produto */
.modal-back.est-modal { grid-template-columns: minmax(0, 1fr); } /* a tabela por filial rola sozinha em vez de alargar o modal no celular */
.est-det { display: flex; flex-direction: column; gap: 22px; min-width: 0; }
.est-det > * { min-width: 0; }
.est-det-topo { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 10px; }
.est-det-topo p { flex-basis: 100%; color: var(--text-2); }
.est-kv .kv-item b { font-size: 17px; }
.est-relogios { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.est-relogio { display: flex; flex-direction: column; gap: 2px; padding: 14px 16px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface-2); }
.est-rel-t { display: inline-flex; align-items: center; gap: 7px; font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--text-3); }
.est-relogio b { font-family: var(--display); font-size: 20px; font-weight: 650; margin-top: 4px; letter-spacing: -.01em; }
.est-relogio small { font-size: 12px; color: var(--text-3); font-variant-numeric: tabular-nums; }
.est-relogio p { margin-top: 8px; font-size: 12.5px; color: var(--text-2); line-height: 1.5; }
.est-filiais { border: 1px solid var(--line); border-radius: 10px; }
.est-esp { margin-left: 8px; height: 18px; font-size: 10.5px; }
.est-sit { display: inline-flex; align-items: center; gap: 5px; height: 22px; padding: 0 8px; border-radius: 6px; font-size: 11.5px; font-weight: 650; white-space: nowrap; background: var(--surface-3); color: var(--text-2); }
.est-sit.parada { background: var(--critical-wash); color: var(--critical-text); }
.est-sit.vendendo { background: var(--good-wash); color: var(--good-text); }

@media (max-width: 900px) {
  .est-pir-row { grid-template-columns: minmax(0, 1fr) auto; gap: 6px 12px; }
  .est-pir-row .est-track { grid-column: 1 / -1; grid-row: 2; }
  .est-pir-n { grid-column: 1; grid-row: 3; text-align: left; }
  .est-pir-v { grid-column: 2; grid-row: 1; }
  .est-pir-v b { display: inline; }
  .est-pir-v small { display: none; }
  .est-relogios { grid-template-columns: 1fr; }
  .est-tbl td.est-prod { min-width: 210px; max-width: 230px; }
  .est-tbl th.est-prod { min-width: 210px; }
  .est-desc { max-width: 140px; }
  .est-seq { display: none; }
  .est-tot { flex-wrap: nowrap; align-items: flex-start; gap: 12px; padding: 14px 16px; }
  .est-tot .tot-item { min-width: 0; flex: 1 1 0; }
  .est-tot .tot-item b { font-size: 16px; }
  .est-tot .tot-item small { display: none; }
  .est-toolbar > .field, .est-toolbar > .search { flex: 1 1 100%; }
  .est-toolbar .select { width: 100%; }
  .est-pager { justify-content: center; }
}
