@font-face { font-family: 'Poppins'; font-style: normal; font-weight: 300; font-display: swap; src: url('assets/fonts/pop-300.woff2') format('woff2'); }
@font-face { font-family: 'Poppins'; font-style: italic; font-weight: 300; font-display: swap; src: url('assets/fonts/pop-300-i.woff2') format('woff2'); }
@font-face { font-family: 'Poppins'; font-style: normal; font-weight: 400; font-display: swap; src: url('assets/fonts/pop-400.woff2') format('woff2'); }
@font-face { font-family: 'Poppins'; font-style: italic; font-weight: 400; font-display: swap; src: url('assets/fonts/pop-400-i.woff2') format('woff2'); }
@font-face { font-family: 'Poppins'; font-style: normal; font-weight: 500; font-display: swap; src: url('assets/fonts/pop-500.woff2') format('woff2'); }
@font-face { font-family: 'Poppins'; font-style: italic; font-weight: 500; font-display: swap; src: url('assets/fonts/pop-500-i.woff2') format('woff2'); }
@font-face { font-family: 'Poppins'; font-style: normal; font-weight: 600; font-display: swap; src: url('assets/fonts/pop-600.woff2') format('woff2'); }
@font-face { font-family: 'Poppins'; font-style: italic; font-weight: 600; font-display: swap; src: url('assets/fonts/pop-600-i.woff2') format('woff2'); }
@font-face { font-family: 'Poppins'; font-style: normal; font-weight: 700; font-display: swap; src: url('assets/fonts/pop-700.woff2') format('woff2'); }
@font-face { font-family: 'Poppins'; font-style: italic; font-weight: 700; font-display: swap; src: url('assets/fonts/pop-700-i.woff2') format('woff2'); }
@font-face { font-family: 'Poppins'; font-style: normal; font-weight: 800; font-display: swap; src: url('assets/fonts/pop-800.woff2') format('woff2'); }
@font-face { font-family: 'Poppins'; font-style: italic; font-weight: 800; font-display: swap; src: url('assets/fonts/pop-800-i.woff2') format('woff2'); }
@font-face { font-family: 'Poppins'; font-style: normal; font-weight: 900; font-display: swap; src: url('assets/fonts/pop-900.woff2') format('woff2'); }
@font-face { font-family: 'Poppins'; font-style: italic; font-weight: 900; font-display: swap; src: url('assets/fonts/pop-900-i.woff2') format('woff2'); }
:root {
  --orange: #ee4d2d;
  --orange-deep: #c9361b;
  --orange-soft: #fff1ec;
  --ink: #1d1d25;
  --ink-2: #555a66;
  --ink-3: #8b909c;
  --bg: #f3f4f7;
  --surface: #ffffff;
  --line: #e7e8ee;
  --good: #0e9f6e;
  --good-soft: #e7f6ef;
  --warn: #c98500;
  --warn-soft: #fff6df;
  --bad: #d93025;
  --bad-soft: #fdecea;
  --info: #2a78d6;
  --info-soft: #eaf2fd;
  --r-lg: 18px;
  --r-md: 12px;
  --r-sm: 8px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; animation: none !important; } }
body { margin: 0; background: var(--bg); color: var(--ink); font: 14px/1.45 "Poppins", system-ui, "Segoe UI", sans-serif; font-variant-numeric: tabular-nums; }
svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }
a { color: inherit; text-decoration: none; }
button, input, select { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--orange); outline-offset: 2px; }

/* ---------- shell ---------- */
.shell { display: grid; grid-template-columns: 236px 1fr; min-height: 100vh; }
.side { position: sticky; top: 0; height: 100vh; overflow: auto; background: #f8f9fb; border-right: 1px solid var(--line);
  padding: 22px 16px; display: flex; flex-direction: column; gap: 22px; }
.logo { display: flex; align-items: center; gap: 10px; padding: 0 6px; }
.logo img { height: 40px; width: auto; max-width: 120px; object-fit: contain; }
.logo-fallback .mark { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 10px; background: var(--orange); color: #fff; font-weight: 800; font-size: 12px; letter-spacing: .02em; }
.logo-txt b { display: block; font-size: 17px; font-weight: 800; color: var(--orange); line-height: 1.1; }
.logo-txt small { color: var(--ink-3); font-size: 12px; }
.nav-h { margin: 0 0 8px 10px; font-size: 12px; font-weight: 600; color: var(--ink-3); }
nav { display: grid; gap: 2px; }
nav a { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: var(--r-md); color: var(--ink-2); font-weight: 500; }
nav a:hover { background: #eef0f4; color: var(--ink); }
nav a.on { background: var(--surface); color: var(--orange); font-weight: 700; box-shadow: 0 1px 2px rgba(29,29,37,.06), 0 0 0 1px var(--line); }
.settings { display: grid; gap: 10px; }
.settings label { display: flex; white-space: nowrap; justify-content: space-between; align-items: center; gap: 8px; padding: 0 10px; color: var(--ink-2); font-size: 13px; }
.settings span { display: inline-flex; align-items: center; gap: 4px; }
.settings input, .settings select { width: 50px; padding: 5px 6px; border: 1px solid var(--line); border-radius: var(--r-sm); background: var(--surface); text-align: right; }
.settings select { width: 76px; text-align: left; }
.ws { margin-top: auto; display: flex; gap: 10px; align-items: center; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); padding: 12px; }
.ws-ic { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 10px; background: var(--ink); color: #fff; flex: none; }
.ws b { display: block; font-size: 13px; line-height: 1.25; }
.ws small { color: var(--ink-3); font-size: 12px; }

.main { min-width: 0; padding: 0 28px 48px; }
.top { position: sticky; top: 0; z-index: 10; display: flex; gap: 12px; align-items: center; padding: 16px 0 14px; background: var(--bg); }
.search { flex: 1; max-width: 380px; display: flex; align-items: center; gap: 8px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); padding: 0 12px; color: var(--ink-3); }
.search input { flex: 1; border: 0; outline: 0; background: transparent; padding: 10px 0; color: var(--ink); }
.vt { margin-left: auto; max-width: 340px; padding: 9px 10px; border: 1px solid var(--line); border-radius: var(--r-md); background: var(--surface); }
.sync { display: inline-flex; align-items: center; gap: 7px; padding: 7px 12px; border-radius: 999px; font-size: 12px; font-weight: 700; background: #eceef2; color: var(--ink-2); white-space: nowrap; }
.sync::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.sync.live { background: var(--good-soft); color: var(--good); }
.sync.live::before { animation: pulse 2s infinite; }
.sync.err { background: var(--bad-soft); color: var(--bad); }
@keyframes pulse { 50% { opacity: .3; } }

.empty { margin-top: 80px; text-align: center; color: var(--ink-2); }
.empty b { font-size: 18px; color: var(--ink); }
.empty p { max-width: 460px; margin: 8px auto; }

/* ---------- hero ---------- */
.hero { position: relative; overflow: hidden; border-radius: var(--r-lg); color: #fff; padding: 26px 28px;
  background: linear-gradient(120deg, #d73211 0%, #ee4d2d 45%, #ff7337 100%); display: grid; grid-template-columns: 1fr auto; gap: 18px 32px; align-items: end; }
.hero::after { content: ""; position: absolute; right: -60px; top: -80px; width: 380px; height: 380px; border-radius: 50%;
  background: repeating-linear-gradient(135deg, rgba(255,255,255,.09) 0 14px, transparent 14px 28px); pointer-events: none; }
.hero h1 { margin: 0; font-size: 26px; font-weight: 800; letter-spacing: -.01em; }
.hero p { margin: 4px 0 0; opacity: .9; }
.hero-prog { grid-column: 1 / -1; position: relative; z-index: 1; display: grid; grid-template-columns: 1fr auto; gap: 8px 20px; align-items: center; }
.hero-prog .track { height: 12px; border-radius: 999px; background: rgba(255,255,255,.25); overflow: hidden; }
.hero-prog .track i { display: block; height: 100%; background: #fff; border-radius: 999px; transition: width .6s ease; }
.hero-prog .big { font-size: 15px; font-weight: 600; }
.hero-prog .big b { font-size: 22px; font-weight: 800; }
.hero-actions { position: relative; z-index: 1; display: flex; gap: 10px; align-self: start; }
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 9px 14px; border-radius: var(--r-sm); border: 0; font-weight: 700; cursor: pointer; }
.btn.white { background: #fff; color: var(--ink); }
.btn.dark { background: rgba(0,0,0,.22); color: #fff; }
.btn:hover { filter: brightness(.96); }

/* ---------- KPI ---------- */
.kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 18px; }
.kpi { background: var(--surface); border-radius: var(--r-lg); padding: 18px 18px 16px; box-shadow: 0 0 0 1px var(--line); display: grid; gap: 4px; }
.kpi-h { display: flex; justify-content: space-between; align-items: center; color: var(--ink-2); font-weight: 600; font-size: 13px; }
.kpi-ic { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 10px; background: var(--orange-soft); color: var(--orange); }
.kpi-v { font-size: 34px; font-weight: 800; letter-spacing: -.02em; line-height: 1.15; margin-top: 6px; }
.kpi-v small { font-size: 16px; font-weight: 600; color: var(--ink-3); letter-spacing: 0; }
.kpi-v.bad { color: var(--bad); }
.kpi-v.good { color: var(--good); }
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.chip { font-size: 12px; font-weight: 600; padding: 3px 10px; border-radius: 999px; background: #f1f2f5; color: var(--ink-2); }
.chip.good { background: var(--good-soft); color: var(--good); }
.chip.bad { background: var(--bad-soft); color: var(--bad); }
.chip.warn { background: var(--warn-soft); color: var(--warn); }
.chip.info { background: var(--info-soft); color: var(--info); }

/* ---------- sections ---------- */
.row { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 18px; margin-top: 26px; }
.row.even { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); }
.sec-h { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 10px; margin-bottom: 12px; }
.sec-h h2 { margin: 0; font-size: 18px; font-weight: 800; }
.sec-h p { margin: 2px 0 0; color: var(--ink-3); font-size: 13px; }
.pills { display: flex; gap: 4px; background: var(--surface); padding: 4px; border-radius: 999px; box-shadow: 0 0 0 1px var(--line); }
.pills button { border: 0; background: transparent; padding: 6px 12px; border-radius: 999px; font-size: 13px; font-weight: 600; color: var(--ink-2); cursor: pointer; white-space: nowrap; }
.pills button span { color: var(--ink-3); font-weight: 500; margin-left: 3px; }
.pills button.on { background: var(--orange-soft); color: var(--orange); box-shadow: inset 0 0 0 1px #ffc9b8; }
.pills button.on span { color: var(--orange); }
.panel { background: var(--surface); border-radius: var(--r-lg); box-shadow: 0 0 0 1px var(--line); padding: 18px; min-width: 0; }

/* ---------- route board (peça principal) ---------- */
.board-wrap { background: #1f2028; border-radius: var(--r-lg); padding: 14px; max-height: 720px; overflow: auto; }
.board { display: grid; grid-template-columns: repeat(auto-fill, minmax(196px, 1fr)); gap: 10px; }
.rc { display: grid; gap: 9px; background: #2a2b35; border-radius: var(--r-md); padding: 13px 14px; color: #f2f2f5; border: 1px solid transparent; }
.rc:hover { border-color: #4a4b58; }
.rc.live { border-color: var(--orange); box-shadow: 0 0 0 1px var(--orange) inset; }
.rc.over { border-color: #b3261e; }
.rc-h { display: flex; justify-content: space-between; align-items: center; gap: 6px; }
.rc-id { font-size: 20px; font-weight: 800; letter-spacing: -.01em; }
.tag { font-size: 11px; font-weight: 700; padding: 2px 8px; border-radius: 999px; white-space: nowrap; }
.tag.pend { background: #3a3b47; color: #b9bbc7; }
.tag.live { background: var(--orange); color: #fff; }
.tag.ok { background: #13392c; color: #5fdcab; }
.tag.over { background: #4a1d1a; color: #ff8a80; }
.tag.dev { background: #4a3a12; color: #ffcf5c; }
.pk { font-size: 13px; color: #b9bbc7; }
.pk b { color: #fff; font-size: 16px; font-weight: 800; }
.pbar { height: 6px; border-radius: 999px; background: #3a3b47; overflow: hidden; }
.pbar i { display: block; height: 100%; border-radius: 999px; background: #fff; }
.rc.ok-c .pbar i { background: #5fdcab; }
.rc.live .pbar i { background: var(--orange); }
.tm { display: grid; grid-template-columns: auto 1fr; gap: 8px; align-items: center; font-size: 13px; }
.tm .clock { display: inline-flex; align-items: center; gap: 5px; font-weight: 800; font-size: 15px; }
.tm .clock svg { width: 15px; height: 15px; }
.tm .clock.ok { color: #5fdcab; }
.tm .clock.over { color: #ff8a80; }
.tm .clock.idle { color: #7d7f8c; font-weight: 600; font-size: 13px; }
.tbar { position: relative; height: 6px; border-radius: 999px; background: #3a3b47; }
.tbar i { position: absolute; left: 0; top: 0; bottom: 0; border-radius: 999px; }
.tbar i.ok { background: #5fdcab; }
.tbar i.over { background: #ff6b5e; }
.tbar::after { content: ""; position: absolute; left: 50%; top: -3px; bottom: -3px; width: 2px; background: #fff; border-radius: 1px; opacity: .8; }
.rc-f { display: flex; justify-content: space-between; gap: 6px; font-size: 12px; color: #9a9cab; }
.rc-f .op { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rc-f .miss { color: #ff8a80; font-weight: 700; white-space: nowrap; }
.board-legend { display: flex; gap: 16px; color: var(--ink-3); font-size: 12px; margin-top: 10px; }
.board-legend span::before { content: ""; display: inline-block; width: 2px; height: 10px; background: var(--ink-2); margin-right: 6px; vertical-align: -1px; }
.board-empty { color: #b9bbc7; padding: 40px; text-align: center; grid-column: 1 / -1; }

/* ---------- attention ---------- */
.att { display: grid; gap: 10px; max-height: 760px; overflow: auto; padding: 2px; }
.ac { background: var(--surface); border-radius: var(--r-md); box-shadow: 0 0 0 1px var(--line); padding: 14px; display: grid; gap: 6px; }
.ac-h { display: flex; justify-content: space-between; align-items: center; }
.ac-h small { color: var(--ink-3); font-size: 12px; }
.ac b { font-size: 15px; }
.ac p { margin: 0; color: var(--ink-2); font-size: 13px; }
.ac-f { display: flex; justify-content: space-between; align-items: center; font-size: 12px; color: var(--ink-3); }
.ac-f a { color: var(--ink); font-weight: 700; display: inline-flex; gap: 4px; align-items: center; }
.ac-f a:hover { color: var(--orange); }
.ac-f a svg { width: 14px; height: 14px; }

/* ---------- ranking ---------- */
.rank { display: grid; gap: 4px; }
.rk { display: grid; grid-template-columns: 34px minmax(0, 1fr) 70px 66px; gap: 10px; align-items: center; padding: 9px 6px; border-radius: var(--r-sm); }
.rk:hover { background: #f7f8fa; }
.rk-pos { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: #f1f2f5; font-weight: 800; font-size: 13px; color: var(--ink-2); }
.rk:nth-child(1) .rk-pos { background: var(--orange); color: #fff; }
.rk:nth-child(2) .rk-pos { background: #ff8a65; color: #fff; }
.rk:nth-child(3) .rk-pos { background: #ffc2ad; color: var(--orange-deep); }
.rk-name b { display: block; font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rk-name small { color: var(--ink-3); font-size: 12px; }
.rk-bar { height: 6px; background: #f1f2f5; border-radius: 999px; margin-top: 6px; overflow: hidden; }
.rk-bar i { display: block; height: 100%; background: var(--orange); border-radius: 999px; }
.rk-n { text-align: right; font-weight: 800; font-size: 18px; }
.rk-n small { display: block; font-size: 11px; font-weight: 500; color: var(--ink-3); }
.rk-p { text-align: right; font-weight: 700; color: var(--ink-2); }
.rk-p small { display: block; font-size: 11px; font-weight: 500; color: var(--ink-3); }
.rank-head { display: grid; grid-template-columns: 34px minmax(0, 1fr) 70px 66px; gap: 10px; padding: 0 6px 6px; color: var(--ink-3); font-size: 12px; font-weight: 600; border-bottom: 1px solid var(--line); margin-bottom: 4px; }
.rank-head span:nth-child(n+3) { text-align: right; }

/* ---------- chart / tables ---------- */
#chart svg { width: 100%; height: auto; display: block; }
#chart text { fill: var(--ink-3); font-size: 11px; font-family: inherit; stroke: none; }
#chart .grid line { stroke: var(--line); stroke-width: 1; }
#chart .meta-line { stroke: var(--ink); stroke-dasharray: 4 4; stroke-width: 1.5; }
.tbl-wrap { overflow: auto; max-height: 420px; }
table { width: 100%; border-collapse: collapse; }
th, td { padding: 10px 10px; text-align: right; border-bottom: 1px solid var(--line); white-space: nowrap; }
th { color: var(--ink-3); font-size: 12px; font-weight: 600; position: sticky; top: 0; background: var(--surface); }
th:first-child, td:first-child { text-align: left; }
tr.cur td { background: var(--orange-soft); }
td a { color: var(--orange); font-weight: 700; }
.mt { margin-top: 26px; }

.tip { position: fixed; pointer-events: none; background: var(--ink); color: #fff; padding: 6px 10px; border-radius: 6px; font-size: 12px; z-index: 50; }
.err-t { color: var(--bad); }

@media (max-width: 1280px) { .kpis { grid-template-columns: repeat(2, 1fr); } .row, .row.even { grid-template-columns: 1fr; } }
@media (max-width: 860px) {
  .shell { grid-template-columns: 1fr; }
  .side { position: static; height: auto; }
  .ws { margin-top: 0; }
  .main { padding: 0 14px 40px; }
  .kpis { grid-template-columns: 1fr; }
  .hero { grid-template-columns: 1fr; }
  .top { flex-wrap: wrap; }
}
[hidden] { display: none !important; }
.dock { display: flex; align-items: center; gap: 6px; font-size: 12px; color: #9a9cab; background: #23242d; border-radius: 6px; padding: 5px 8px; }
.dock svg { width: 14px; height: 14px; }
.dock b { color: #c9cbd6; font-weight: 700; }
.dock.on { background: #3a2018; color: #ffb59e; }
.dock.on b { color: #fff; }
.pill-row { display: flex; flex-wrap: wrap; gap: 8px; }
.shift { display: inline-grid; place-items: center; margin-left: 8px; padding: 1px 7px; border-radius: 999px; font-size: 11px; font-weight: 800; vertical-align: 3px; letter-spacing: .02em; }
.shift.am { background: #fff3c4; color: #7a5200; }
.shift.pm { background: #dcd6ff; color: #3b2aa8; }
.shift-l { padding: 2px 8px; border-radius: 999px; font-size: 11px; font-weight: 800; }
.shift-l.am { background: #fff3c4; color: #7a5200; }
.shift-l.pm { background: #e6e2ff; color: #3b2aa8; }
.rc.exc { border-color: #ffb020; box-shadow: 0 0 0 1px #ffb020 inset; }
.excess { display: flex; gap: 7px; align-items: flex-start; background: #4a3510; color: #ffd27a; border-radius: 6px; padding: 6px 8px; font-size: 12px; line-height: 1.35; }
.excess svg { width: 15px; height: 15px; margin-top: 1px; }
.excess b { color: #ffe2a3; }

/* ---------- ordem de carregamento (substitui o banner) ---------- */
.btn.solid { background: var(--orange); color: #fff; }
.btn.ghost-o { background: var(--surface); color: var(--ink); box-shadow: 0 0 0 1px var(--line); }
.lq { border-radius: var(--r-lg); overflow: hidden; background: var(--surface); box-shadow: 0 0 0 1px var(--line); }
.lq-top { position: relative; overflow: hidden; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 16px 28px;
  padding: 22px 26px; color: #fff; background: linear-gradient(120deg, #d73211 0%, #ee4d2d 50%, #ff7337 100%); }
.lq-top::after { content: ""; position: absolute; right: -60px; top: -90px; width: 360px; height: 360px; border-radius: 50%;
  background: repeating-linear-gradient(135deg, rgba(255,255,255,.09) 0 14px, transparent 14px 28px); pointer-events: none; }
.lq-top h1 { margin: 0; font-size: 24px; font-weight: 800; position: relative; z-index: 1; }
.lq-top p { margin: 4px 0 0; opacity: .92; max-width: 560px; position: relative; z-index: 1; }
.lq-stats { display: flex; gap: 22px; position: relative; z-index: 1; }
.lq-stats div { display: grid; text-align: right; }
.lq-stats b { font-size: 26px; font-weight: 800; line-height: 1.1; }
.lq-stats span { font-size: 12px; opacity: .9; }
.lq-body { display: grid; grid-template-columns: 340px minmax(0, 1fr); gap: 0; }
.lq-col { padding: 16px 18px; min-width: 0; }
.lq-col + .lq-col { border-left: 1px solid var(--line); }
.lq-col h3 { margin: 0 0 10px; font-size: 14px; font-weight: 800; color: var(--ink-2); }
.lq-nowlist { display: grid; gap: 8px; max-height: 420px; overflow: auto; }
.lq-now { position: relative; border-radius: var(--r-md); padding: 11px 12px; background: #fff8f5; box-shadow: inset 3px 0 0 var(--orange), 0 0 0 1px #ffd9cc; }
.lq-now.load { background: #f2faf6; box-shadow: inset 3px 0 0 var(--good), 0 0 0 1px #cdebdc; }
.lq-now-h { display: flex; align-items: center; gap: 6px; }
.lq-now-h b { font-size: 18px; font-weight: 800; }
.lq-now-h .tag { margin-left: auto; }
.lq-now .tag.ok { background: var(--good-soft); color: var(--good); }
.lq-drv { font-weight: 700; margin-top: 2px; }
.lq-meta { font-size: 12px; color: var(--ink-2); }
.lq-time { position: absolute; right: 12px; bottom: 10px; font-size: 12px; font-weight: 700; color: var(--ink-3); }
.lq-list { display: grid; gap: 2px; max-height: 440px; overflow: auto; }
.lq-row { display: grid; grid-template-columns: 32px minmax(90px, 1fr) minmax(130px, 1.4fr) 64px 64px 110px 124px; gap: 12px; align-items: center; padding: 8px 8px; border-radius: var(--r-sm); }
.lq-row:hover { background: #f7f8fa; }
.lq-row.next { background: var(--orange-soft); }
.lq-pos { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: #f1f2f5; font-weight: 800; font-size: 13px; color: var(--ink-2); }
.lq-row.next .lq-pos { background: var(--orange); color: #fff; }
.lq-route b { font-size: 16px; font-weight: 800; }
.lq-route small, .lq-who small, .lq-num small, .lq-wait small { display: block; font-size: 11px; color: var(--ink-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lq-who { font-weight: 600; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.lq-num, .lq-wait { text-align: right; }
.lq-num b, .lq-wait b { font-weight: 800; }
.nodrv { color: var(--bad); font-weight: 700; }
.lq-empty { color: var(--ink-3); margin: 6px 0; }
@media (max-width: 1100px) { .lq-body { grid-template-columns: 1fr; } .lq-col + .lq-col { border-left: 0; border-top: 1px solid var(--line); } .lq-row { grid-template-columns: 28px 1fr 1fr 60px 90px; } .lq-row .lq-num:nth-of-type(2), .lq-st { display: none; } }
.lq-st { text-align: right; }
.kpi .bar { height: 6px; background: #f1f2f5; border-radius: 999px; overflow: hidden; margin-top: 6px; }
.kpi .bar i { display: block; height: 100%; background: var(--orange); border-radius: 999px; }
.shift.ns { background: #e9eaee; color: #6b6f7b; }
.lq-stats .ns { opacity: .85; }
.lq-ns { margin-top: 10px; border-top: 1px dashed var(--line); padding-top: 8px; }
.lq-ns summary { cursor: pointer; color: var(--ink-3); font-size: 13px; font-weight: 600; padding: 4px 0; }
.lq-ns-list { display: grid; gap: 2px; margin-top: 6px; max-height: 220px; overflow: auto; }
.lq-ns-row { display: grid; grid-template-columns: 70px 40px 1fr 100px 150px; white-space: nowrap; gap: 10px; align-items: center; padding: 6px 8px; font-size: 13px; color: var(--ink-3); }
.lq-ns-row b { color: var(--ink-2); }
.lq-h3 { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 10px; flex-wrap: wrap; }
.lq-h3 h3 { margin: 0; }
.pills.sm button { padding: 4px 10px; font-size: 12px; }

/* ---------- cards de rota: tudo dentro do card ---------- */
.board { grid-template-columns: repeat(auto-fill, minmax(212px, 1fr)); }
.rc { min-width: 0; overflow: hidden; }
.rc > * { min-width: 0; }
.rc-h { flex-wrap: nowrap; }
.rc-idg { display: inline-flex; align-items: center; gap: 6px; min-width: 0; flex: 1 1 auto; overflow: hidden; }
.rc-id { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.rc-idg .shift { margin-left: 0; flex: none; vertical-align: 0; }
.rc .tag { flex: 0 1 auto; min-width: 0; max-width: 58%; overflow: hidden; text-overflow: ellipsis; }
.pk { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tm { grid-template-columns: auto minmax(0, 1fr); }
.tm .clock { white-space: nowrap; }
.dock { min-width: 0; overflow: hidden; }
.dock svg { flex: none; }
.dock-t { min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.excess span { min-width: 0; overflow-wrap: anywhere; }
.rc-f { align-items: baseline; min-width: 0; }
.rc-f .op { flex: 1 1 auto; min-width: 0; }
.rc-f .miss { flex: none; max-width: 60%; overflow: hidden; text-overflow: ellipsis; }

/* ---------- ondas ---------- */
.waves { padding: 14px 18px 12px; border-bottom: 1px solid var(--line); background: #fcfcfd; }
.waves-h { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 18px; margin-bottom: 10px; font-size: 13px; color: var(--ink-2); }
.waves-h > b { font-size: 14px; color: var(--ink); font-weight: 800; }
.waves-h .adh { margin-left: auto; padding: 3px 10px; border-radius: 999px; background: #f1f2f5; }
.waves-h .adh.good { background: var(--good-soft); color: var(--good); }
.waves-h .adh.warn { background: var(--warn-soft); color: var(--warn); }
.waves-h .adh.bad { background: var(--bad-soft); color: var(--bad); }
.waves-strip { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(64px, 120px); gap: 8px; overflow-x: auto; padding-bottom: 4px; }
.wv { border-radius: 10px; padding: 8px 9px; background: #f1f2f5; display: grid; gap: 5px; min-width: 0; }
.wv-l { font-size: 18px; font-weight: 800; line-height: 1; color: var(--ink-2); }
.wv-bar { height: 5px; border-radius: 999px; background: rgba(0,0,0,.08); overflow: hidden; }
.wv-bar i { display: block; height: 100%; border-radius: 999px; background: var(--ink-3); }
.wv-n { font-size: 11px; font-weight: 700; color: var(--ink-3); }
.wv.done { background: var(--good-soft); }
.wv.done .wv-l, .wv.done .wv-n { color: var(--good); }
.wv.done .wv-bar i { background: var(--good); }
.wv.cur { background: var(--orange); box-shadow: 0 4px 12px rgba(238,77,45,.3); }
.wv.cur .wv-l, .wv.cur .wv-n { color: #fff; }
.wv.cur .wv-bar { background: rgba(255,255,255,.3); }
.wv.cur .wv-bar i { background: #fff; }
.wv.early { background: var(--warn-soft); box-shadow: inset 0 0 0 1px #f3d48a; }
.wv.early .wv-l { color: var(--warn); }
.wv.early .wv-bar i { background: var(--warn); }
.lq-wave-h { position: sticky; top: 0; z-index: 1; background: var(--surface); padding: 8px 8px 4px; font-size: 12px; font-weight: 800; color: var(--ink-3); border-bottom: 1px solid var(--line); }
.lq-wave-h.cur { color: var(--orange); }
.lq-wave-h span { font-weight: 700; background: var(--orange-soft); color: var(--orange); padding: 1px 8px; border-radius: 999px; margin-left: 6px; }
.lq-stats { flex-wrap: wrap; }

/* ---------- chamada da onda (liderança) ---------- */
.wave-call { display: flex; gap: 18px; align-items: flex-start; padding: 16px 20px; background: #1d1d25; color: #fff; }
.wave-call.ok { display: block; background: var(--good-soft); color: var(--good); }
.wave-call.ok .wc-big { color: var(--good); }
.wc-letter { flex: none; display: grid; place-items: center; width: 76px; height: 76px; border-radius: 18px; background: var(--orange); font-size: 46px; font-weight: 800; line-height: 1; box-shadow: 0 6px 18px rgba(238,77,45,.45); }
.wc-main { min-width: 0; flex: 1; }
.wc-big { font-size: 22px; font-weight: 800; letter-spacing: -.01em; }
.wc-msg { color: #c9cbd6; margin-top: 2px; }
.wc-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.wc-chip { font-size: 12px; padding: 3px 9px; border-radius: 999px; background: #33343f; color: #c9cbd6; white-space: nowrap; }
.wc-chip b { color: #fff; }
.wc-chip.live { background: var(--orange); color: #fff; }
.wc-chip.bad { background: #4a1d1a; color: #ff8a80; }
.wc-alert { margin-top: 10px; padding: 7px 10px; border-radius: 8px; background: #4a3510; color: #ffd27a; font-size: 13px; }
.wc-alert b { color: #fff; }

/* ---------- filtro global de turno ---------- */
.shiftbar { display: flex; align-items: center; gap: 12px; margin: 0 0 14px; }
.shiftbar .sb-l { font-weight: 800; color: var(--ink-2); }
.shiftbar .pills button { display: inline-flex; align-items: center; gap: 6px; }
.shiftbar .pills button .shift { margin-left: 0; }
.ac-tags { display: inline-flex; align-items: center; gap: 6px; }
.ac-tags .shift { margin-left: 0; }
.rk-sh { display: inline-flex; gap: 4px; margin-left: 6px; vertical-align: 2px; }
.rk-sh .shift { margin-left: 0; font-size: 10px; padding: 0 6px; }
.rank-sort { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin: -2px 0 12px; }
.rank-sort > span { font-size: 12px; font-weight: 600; color: var(--ink-3); }
.rk .hl { color: var(--orange) !important; font-weight: 800; }
.rk-name small.hl { font-weight: 700; }
.sign { padding: 0 8px; font-size: 11px; line-height: 1.45; color: var(--ink-3); }
.sign b { display: block; font-size: 12px; color: var(--ink-2); font-weight: 700; }
.sign span { display: block; }

/* ---------- filtros dinâmicos ---------- */
[data-wave], [data-op], [data-route], [data-bf] { cursor: pointer; }
.wv { transition: transform .12s ease, box-shadow .12s ease; }
.wv:hover { transform: translateY(-2px); }
.wv.sel { outline: 3px solid var(--ink); outline-offset: 2px; }
.lq-wave-h[data-wave]:hover { color: var(--orange); }
.rk.click:hover { background: #f7f8fa; }
.rk.sel { background: var(--orange-soft); box-shadow: inset 3px 0 0 var(--orange); }
.chip[data-bf]:hover, .kpi-v[data-bf]:hover { filter: brightness(.95); text-decoration: underline; text-underline-offset: 3px; }
.shiftbar { flex-wrap: wrap; }
.sb-sep { width: 1px; height: 24px; background: var(--line); margin: 0 4px; }
.fchip { border: 0; cursor: pointer; padding: 6px 12px; border-radius: 999px; background: var(--ink); color: #fff; font-weight: 700; font-size: 13px; }
.fchip b { margin-left: 4px; opacity: .7; }
.fchip:hover b { opacity: 1; }
.fclear { border: 0; background: transparent; color: var(--orange); font-weight: 700; cursor: pointer; font-size: 13px; }
@media (prefers-reduced-motion: reduce) { .wv { transition: none; } .wv:hover { transform: none; } }

/* ---------- sem cortes em áreas com rolagem ---------- */
.waves-strip { padding: 6px 6px 10px; margin: -6px -6px -4px; }
.wv.sel { outline: none; box-shadow: inset 0 0 0 3px var(--ink); }
.wv.cur.sel { box-shadow: inset 0 0 0 3px #fff, 0 4px 12px rgba(238,77,45,.3); }
.wv:hover { transform: none; filter: brightness(.97); }
.lq-nowlist { padding: 2px; margin: -2px; }
.lq-list { padding: 2px; margin: -2px; }
.att { padding: 2px 2px 4px; }
.lq-wave-h { padding-left: 10px; }

/* ---------- página Carretas (LH) ---------- */
.nav-h2 { margin-top: 14px; }
body[data-page="lh"] #vtSel { display: none; }
.lh-list { display: grid; gap: 4px; max-height: 620px; overflow: auto; padding: 2px; }
.lh-row { display: grid; grid-template-columns: 108px minmax(172px, 1.4fr) minmax(96px, 1fr) minmax(96px, 1fr) 96px 100px 58px 92px 92px 64px; gap: 10px; align-items: center;
  padding: 10px 12px; border-radius: var(--r-md); background: #fafbfc; box-shadow: inset 3px 0 0 var(--line); min-width: 0; }
.lh-row.out { grid-template-columns: 118px minmax(170px, 1.6fr) minmax(120px, 1fr) minmax(130px, 1fr) 96px 86px 104px 100px; }
.lh-row > * { min-width: 0; }
.lh-row.st-yard { box-shadow: inset 3px 0 0 var(--warn); background: #fffaf0; }
.lh-row.st-unl, .lh-row.st-loading { box-shadow: inset 3px 0 0 var(--orange); background: #fff8f5; }
.lh-row.st-done, .lh-row.st-sealed { box-shadow: inset 3px 0 0 var(--good); }
.lh-st { justify-self: start; font-size: 12px; font-weight: 700; padding: 3px 10px; border-radius: 999px; background: #eceef2; color: var(--ink-2); white-space: nowrap; }
.lh-st.yard { background: var(--warn-soft); color: var(--warn); }
.lh-st.unl, .lh-st.loading { background: var(--orange); color: #fff; }
.lh-st.done, .lh-st.sealed { background: var(--good-soft); color: var(--good); }
.lh-st.transit, .lh-st.await { background: var(--info-soft); color: var(--info); }
.lh-trip b { display: block; font-size: 14px; font-weight: 800; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lh-trip small, .lh-col small { display: block; font-size: 11px; color: var(--ink-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lh-col b { display: block; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lh-col.r { text-align: right; }
.lh-col .chip { font-size: 10px; padding: 1px 7px; }
.lh-col .of { color: var(--ink-3); font-weight: 600; }
.plate { font-size: 11px; font-weight: 700; padding: 1px 6px; border-radius: 4px; background: #fff; box-shadow: 0 0 0 1px var(--line); color: var(--ink-2); }
.bad-t { color: var(--bad) !important; }
.tag-rev, .tag-tr { font-size: 10px; font-weight: 800; padding: 1px 7px; border-radius: 999px; }
.tag-rev { background: #f3e8ff; color: #7a2fbf; }
.tag-tr { background: var(--info-soft); color: var(--info); }
.lh-att { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 10px; }
@media (max-width: 1280px) { .lh-row, .lh-row.out { grid-template-columns: 110px 1.5fr 1fr 90px 90px; } .lh-row > :nth-child(4), .lh-row > :nth-child(5), .lh-row > :nth-child(9) { display: none; } .lh-row:not(.out) { grid-template-columns: 110px 1.5fr 1fr 90px 64px 96px 90px; } .lh-row:not(.out) > :nth-child(9) { display: block; } .lh-row:not(.out) > :nth-child(10) { display: none; } }
.lh-att .ac { min-width: 0; }
.lh-att .ac b { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lh-att .ac p { overflow-wrap: anywhere; }
.seg { display: inline-block; font-size: 10px; font-weight: 800; padding: 1px 6px; border-radius: 4px; margin-right: 6px; vertical-align: 1px; letter-spacing: .02em; }
.seg.soc { background: #1d1d25; color: #fff; }
.seg.xpt { background: #dff3ff; color: #0b5c8a; }
.seg.out { background: #eceef2; color: var(--ink-2); }
.shiftbar .pills button .seg { margin-right: 2px; }
.h1-seg { font-size: 14px; font-weight: 700; background: rgba(255,255,255,.2); padding: 3px 10px; border-radius: 999px; vertical-align: 4px; margin-left: 8px; }
.lh-row.lh-head { position: sticky; top: 0; z-index: 2; background: var(--surface); box-shadow: inset 0 -1px 0 var(--line); border-radius: 0; padding-top: 6px; padding-bottom: 8px;
  font-size: 12px; font-weight: 600; color: var(--ink-3); }
.lh-row.lh-head span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lh-row.lh-head .r { text-align: right; }

/* ---------- placa em destaque / por placa ---------- */
.plate.big { font-size: 13px; font-weight: 800; padding: 2px 8px; letter-spacing: .04em; color: var(--ink); box-shadow: 0 0 0 1.5px var(--ink-3); border-radius: 5px; background: #fff; }
.lh-plate b { display: flex; align-items: center; gap: 0; }
.view-sw { display: flex; }
.pl-list { gap: 6px; }
.pl-row { border-radius: var(--r-md); background: #fafbfc; box-shadow: inset 3px 0 0 var(--line); padding: 10px 12px; display: grid; gap: 8px; }
.pl-row.late { box-shadow: inset 3px 0 0 var(--bad); background: #fff7f6; }
.pl-main { display: grid; grid-template-columns: minmax(150px, 1fr) minmax(150px, 1.2fr) 190px 110px 150px 100px 120px; gap: 12px; align-items: center; min-width: 0; }
.pl-main > * { min-width: 0; }
.pl-main.lh-head { position: sticky; top: 0; z-index: 2; background: var(--surface); padding: 6px 12px 8px; box-shadow: inset 0 -1px 0 var(--line); font-size: 12px; font-weight: 600; color: var(--ink-3); }
.pl-main.lh-head .r { text-align: right; }
.pl-trips { display: flex; flex-wrap: wrap; gap: 6px; }
.ptrip { font-size: 11px; padding: 2px 8px; border-radius: 999px; background: #eef0f4; color: var(--ink-2); white-space: nowrap; max-width: 100%; overflow: hidden; text-overflow: ellipsis; }
.ptrip.in { background: var(--info-soft); color: #1f5fa8; }
.ptrip.out { background: #f3e8ff; color: #6b2aa8; }
.ptrip.st-yard, .ptrip.st-unl, .ptrip.st-loading { box-shadow: inset 0 0 0 1px currentColor; font-weight: 700; }
@media (max-width: 1280px) { .pl-main { grid-template-columns: 1fr 1fr 170px 90px 100px; } .pl-main > :nth-child(5), .pl-main > :nth-child(7) { display: none; } }
.plate.big { display: inline-block; box-shadow: none; border: 1.5px solid var(--ink-3); line-height: 1.3; }
.lh-plate b { gap: 6px; }
.lh-plate b .seg { margin-right: 0; }
.lh-plate b .tag-rev, .lh-plate b .tag-tr { flex: none; }
.plate.lhno { font-size: 12px; letter-spacing: .02em; }
.pl-sub { color: var(--ink-3); }
.pl-sub b { display: inline !important; font-size: 12px; font-weight: 800; color: var(--ink); letter-spacing: .04em; }

/* ---------- números grandes da página LH ---------- */
.lh-big { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; padding: 16px 18px 18px; background: linear-gradient(180deg, #fff5f2, var(--surface)); border-top: 1px solid #ffe0d6; }
.lhb { position: relative; border: 0; cursor: pointer; text-align: left; display: grid; gap: 2px; padding: 16px 18px; border-radius: 14px;
  background: var(--surface); box-shadow: 0 0 0 1px var(--line), 0 2px 6px rgba(29,29,37,.05); font: inherit; color: var(--ink); }
.lhb::before { content: ""; position: absolute; left: 0; top: 14px; bottom: 14px; width: 4px; border-radius: 0 4px 4px 0; background: var(--ink-3); }
.lhb b { font-size: 46px; font-weight: 800; line-height: 1; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.lhb span { font-size: 14px; font-weight: 700; color: var(--ink-2); }
.lhb em { font-style: normal; font-size: 12px; font-weight: 700; color: var(--bad); }
.lhb.transit::before { background: var(--info); }   .lhb.transit b { color: var(--info); }
.lhb.yard::before { background: var(--warn); }      .lhb.yard b { color: var(--warn); }
.lhb.unl::before { background: var(--orange); }     .lhb.unl b { color: var(--orange); }
.lhb.out::before { background: #7a2fbf; }           .lhb.out b { color: #7a2fbf; }
.lhb.gone::before { background: var(--good); }      .lhb.gone b { color: var(--good); }
.lhb.hot { box-shadow: 0 0 0 2px var(--bad), 0 4px 12px rgba(217,48,37,.15); }
.lhb.sel { box-shadow: 0 0 0 2.5px var(--ink); }
.lhb:hover { transform: translateY(-1px); }
@media (prefers-reduced-motion: reduce) { .lhb:hover { transform: none; } }
@media (max-width: 1100px) { .lh-big { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 700px) { .lh-big { grid-template-columns: repeat(2, 1fr); } }

/* Prévia de recebimento */
.fc-total { text-align: right; }
.fc-total b { display: block; font-size: 34px; font-weight: 800; color: var(--orange); line-height: 1; font-variant-numeric: tabular-nums; }
.fc-total span { font-size: 12px; font-weight: 700; color: var(--ink-3); }
.fc-list { display: grid; gap: 6px; }
.fc-row { display: grid; grid-template-columns: minmax(170px, 220px) 1fr 110px; grid-template-areas: "l bar v" "l t t"; column-gap: 14px; row-gap: 6px; align-items: center; padding: 10px 12px; border-radius: 10px; background: var(--bg); }
.fc-row > * { min-width: 0; }
.fc-l { grid-area: l; } .fc-bar { grid-area: bar; } .fc-v { grid-area: v; text-align: right; } .fc-t { grid-area: t; display: flex; flex-wrap: wrap; gap: 6px; }
.fc-l b { display: block; font-weight: 800; } .fc-l small, .fc-v small { display: block; font-size: 11px; color: var(--ink-3); }
.fc-v b { font-size: 20px; font-weight: 800; font-variant-numeric: tabular-nums; }
.fc-bar { height: 12px; border-radius: 6px; background: #e8e9ee; overflow: hidden; }
.fc-bar i { display: block; height: 100%; border-radius: 6px; background: var(--info); }
.fc-row.now { background: #fff8f5; box-shadow: inset 3px 0 0 var(--orange); } .fc-row.now .fc-bar i { background: var(--orange); }
.fc-row.late { background: #fff4f3; box-shadow: inset 3px 0 0 var(--bad); } .fc-row.late .fc-bar i { background: var(--bad); }
.fc-t .plate { font-size: 11px; padding: 2px 7px; }
.fc-t .plate em { font-style: normal; font-weight: 800; color: var(--orange-deep); margin-left: 4px; }
@media (max-width: 900px) { .fc-row { grid-template-columns: 1fr 90px; grid-template-areas: "l v" "bar bar" "t t"; } }

/* Prévia por dia */
.fd-list { display: grid; align-items: start; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; }
.fd { display: grid; gap: 8px; padding: 14px 16px; border-radius: 12px; background: var(--bg); min-width: 0; }
.fd.today { background: #fff8f5; box-shadow: inset 0 0 0 1.5px #ffd2c4; }
.fd-h { display: flex; align-items: baseline; gap: 8px; } .fd-h b { font-size: 16px; font-weight: 800; text-transform: capitalize; } .fd-h span { font-size: 13px; font-weight: 700; color: var(--ink-3); }
.fd-v { display: flex; align-items: baseline; gap: 6px; } .fd-v b { font-size: 34px; font-weight: 800; line-height: 1; font-variant-numeric: tabular-nums; } .fd-v small { font-size: 13px; font-weight: 700; color: var(--ink-3); }
.fd.today .fd-v b { color: var(--orange); }
.fd-bar { height: 8px; border-radius: 4px; background: #e3e4ea; overflow: hidden; } .fd-bar i { display: block; height: 100%; background: var(--good); border-radius: 4px; }
.fd-s { font-size: 12px; color: var(--ink-3); } .fd-s b { color: var(--ink); }
.fd-cs { display: flex; flex-wrap: wrap; gap: 6px; }
.fd-c { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; font-weight: 600; padding: 3px 9px 3px 7px; border-radius: 999px; background: var(--surface); color: var(--ink-2); box-shadow: inset 0 0 0 1px var(--line); }
.fd-c::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--ink-3); }
.fd-c b { font-weight: 800; color: var(--ink); }
.fd-c.tot::before { display: none; }
.fd-c.done::before { background: var(--good); } .fd-c.unl::before { background: var(--orange); } .fd-c.yard::before { background: var(--warn); }
.fd-c.transit::before { background: var(--info); } .fd-c.late { background: #fff1f0; box-shadow: inset 0 0 0 1px #ffd0cc; } .fd-c.late::before { background: var(--bad); }

/* Próximo ciclo */
.lhb .lhb-pk { font-style: normal; font-size: 13px; font-weight: 800; color: var(--warn); }
.nc { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; padding: 20px 24px; border-radius: 16px;
  background: linear-gradient(120deg, var(--ink) 0%, #2c2c38 100%); color: #fff; }
.nc-l span { display: block; font-size: 13px; font-weight: 800; color: #ffb199; }
.nc-l b { display: block; font-size: 56px; font-weight: 800; line-height: 1.05; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.nc-l small { font-size: 14px; color: rgba(255,255,255,.7); font-weight: 600; }
.nc-r { display: flex; align-items: center; gap: 28px; flex-wrap: wrap; }
.nc-r div b { display: block; font-size: 26px; font-weight: 800; font-variant-numeric: tabular-nums; }
.nc-r div small { font-size: 12px; color: rgba(255,255,255,.65); font-weight: 600; }
.nc-go { border: 0; cursor: pointer; padding: 10px 16px; border-radius: 10px; background: var(--orange); color: #fff; font: inherit; font-weight: 700; }
.nc-go:hover { background: var(--orange-deep); }

.lh-stc { display: grid; gap: 4px; justify-items: start; min-width: 0; } .lh-stc small { font-size: 11px; white-space: nowrap; }
.fd-h { flex-wrap: wrap; } .fd-live { font-style: normal; font-size: 11px; font-weight: 800; color: var(--orange); margin-left: auto; }
.fd.past { opacity: .7; }
.nc-l .shift-l { font-style: normal; vertical-align: 1px; }

.shift-l.carried { box-shadow: inset 0 0 0 1.5px var(--bad); }
#lhFc .sec-h > div:first-child { min-width: 0; flex: 1; }

.fd-cap { font-size: 12px; color: var(--ink-2); padding: 5px 8px; border-radius: 8px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); }
.fd-cap b { color: var(--ink); } .fd-cap.full { color: var(--bad); box-shadow: inset 0 0 0 1px #ffd0cc; background: #fff6f5; }
.nc-cap { display: grid; gap: 2px; } .nc-cap small { font-size: 12px; color: rgba(255,255,255,.65); font-weight: 600; }
.nc-cap input { width: 96px; padding: 7px 9px; border-radius: 8px; border: 1px solid rgba(255,255,255,.25); background: rgba(255,255,255,.08); color: #fff; font: inherit; font-weight: 800; font-size: 16px; }

/* ================= Inventário ================= */
body[data-page="inv"] #vtSel { display: none; }
.inv-grid { display: grid; grid-template-columns: 1fr 230px; gap: 14px; }
.inv-grid textarea { width: 100%; min-height: 150px; resize: vertical; box-sizing: border-box; padding: 12px 14px; border-radius: var(--r-md); border: 1px solid var(--line); background: var(--bg);
  font: 13px/1.5 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; color: var(--ink); }
.inv-grid textarea:focus { outline: 2px solid var(--orange); outline-offset: -1px; background: #fff; }
.inv-side { display: flex; flex-direction: column; gap: 8px; }
.inv-count { padding: 10px 14px; border-radius: var(--r-md); background: var(--orange-soft); }
.inv-count b { display: block; font-size: 30px; font-weight: 800; color: var(--orange); line-height: 1.1; font-variant-numeric: tabular-nums; }
.inv-count span { font-size: 12px; font-weight: 700; color: var(--orange-deep); }
.btn-pri, .btn-sec, .btn-ghost { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 10px 14px; border-radius: var(--r-sm); font: inherit; font-weight: 700; cursor: pointer; border: 0; }
.btn-pri svg, .btn-sec svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.btn-pri { background: var(--orange); color: #fff; } .btn-pri:hover { background: var(--orange-deep); }
.btn-sec { background: #fff; color: var(--ink); box-shadow: inset 0 0 0 1px var(--line); } .btn-sec:hover { box-shadow: inset 0 0 0 1px var(--ink-3); }
.btn-ghost { background: transparent; color: var(--ink-3); } .btn-ghost:hover { color: var(--ink); }
.btn-pri:disabled, .btn-sec:disabled { opacity: .45; cursor: default; }
.btn-link { border: 0; background: none; color: var(--orange-deep); font: inherit; font-weight: 700; cursor: pointer; padding: 0 4px; }
.btn-icon { border: 0; background: var(--bg); width: 32px; height: 32px; border-radius: 8px; cursor: pointer; display: grid; place-items: center; }
.btn-icon svg { width: 16px; height: 16px; fill: none; stroke: var(--ink); stroke-width: 2; stroke-linecap: round; }
.btn-pri:focus-visible, .btn-sec:focus-visible, .ichip:focus-visible, .inv-row:focus-visible { outline: 2px solid var(--orange); outline-offset: 2px; }
.inv-prog { display: flex; align-items: center; gap: 12px; margin-top: 12px; font-size: 13px; font-weight: 600; color: var(--ink-2); }
.inv-bar { flex: 1; height: 8px; border-radius: 4px; background: var(--bg); overflow: hidden; }
.inv-bar i { display: block; height: 100%; background: var(--orange); border-radius: 4px; transition: width .25s; }
.inv-kpis .kpi.warn .kpi-v { color: var(--warn); }
.inv-facets { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.inv-facets h3 { margin: 0 0 8px; font-size: 13px; font-weight: 800; color: var(--ink-2); }
.ichips { display: flex; flex-wrap: wrap; gap: 6px; }
.ichip { display: inline-flex; align-items: center; gap: 6px; border: 0; cursor: pointer; padding: 5px 11px; border-radius: 999px; background: var(--bg); color: var(--ink-2); font: inherit; font-size: 12px; font-weight: 600; max-width: 100%; }
.ichip b { color: var(--ink); font-weight: 800; }
.ichip:hover { background: #e9eaf0; }
.ichip.on { background: var(--ink); color: #fff; } .ichip.on b { color: #fff; }
.ichips .more { font-size: 12px; color: var(--ink-3); align-self: center; }
.dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--ink-3); margin-right: 6px; flex: none; }
.dot.good { background: var(--good); } .dot.bad { background: var(--bad); } .dot.info { background: var(--info); } .dot.neutral { background: var(--ink-3); }
.inv-active { margin-top: 12px; font-size: 13px; color: var(--ink-2); }
.inv-row { display: grid; grid-template-columns: 170px 150px minmax(140px, 1.3fr) minmax(120px, 1fr) 140px minmax(120px, 1fr) 118px; gap: 10px; align-items: center;
  padding: 9px 12px; border-radius: 10px; font-size: 13px; cursor: pointer; }
.inv-row > * { min-width: 0; }
.inv-row:not(.inv-head):hover { background: var(--bg); }
.inv-row.sel { background: var(--orange-soft); box-shadow: inset 3px 0 0 var(--orange); }
.inv-row.hub:not(.sel) { box-shadow: inset 3px 0 0 var(--good); }
.inv-head { cursor: default; font-size: 11px; font-weight: 800; color: var(--ink-3); border-bottom: 1px solid var(--line); border-radius: 0; position: sticky; top: 0; background: var(--surface); z-index: 1; }
.inv-row .r { text-align: right; }
.inv-row small { display: block; font-size: 11px; color: var(--ink-3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.inv-row span { display: block; }
.inv-row span:nth-child(2) { display: flex; align-items: center; }
.ell { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mono { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 12px; }
.inv-more, .inv-none { padding: 14px; text-align: center; color: var(--ink-3); }
.inv-nf { font-size: 12px; color: var(--ink-2); line-height: 1.8; word-break: break-all; }
.inv-empty, .inv-err { text-align: center; padding: 34px 20px; } .inv-empty p, .inv-err p { color: var(--ink-3); margin: 6px 0 0; }
.inv-err b { color: var(--bad); }
/* gaveta do histórico */
.inv-drawer { position: fixed; top: 0; right: 0; bottom: 0; width: min(460px, 100vw); background: var(--surface); box-shadow: -12px 0 40px rgba(20,20,30,.16); z-index: 50; overflow: auto; padding: 18px 20px 30px; }
.dr-h { display: flex; justify-content: space-between; align-items: start; gap: 12px; position: sticky; top: -18px; background: var(--surface); padding: 18px 0 10px; margin-top: -18px; }
.dr-h b { display: block; font-size: 16px; } .dr-h span { display: flex; align-items: center; font-size: 13px; color: var(--ink-2); margin-top: 4px; }
.dr-note { margin: 0 0 8px; font-size: 12px; color: var(--ink-3); }
.inv-load { padding: 30px 0; color: var(--ink-3); }
.tl { list-style: none; margin: 0; padding: 0; }
.tl-st { font-size: 12px; font-weight: 800; color: var(--ink-2); padding: 14px 0 6px; border-bottom: 1px solid var(--line); margin-bottom: 4px; }
.tl-ev { display: grid; grid-template-columns: 82px 1fr; gap: 10px; padding: 8px 0 8px 10px; border-left: 2px solid var(--line); margin-left: 4px; }
.tl-ev.cur { border-left-color: var(--orange); }
.tl-ev time { font-size: 12px; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.tl-ev b { font-size: 13px; } .tl-ev p { margin: 2px 0; font-size: 13px; color: var(--ink-2); word-break: break-word; } .tl-ev small { font-size: 11px; color: var(--ink-3); }
@media (max-width: 1100px) {
  .inv-grid, .inv-facets { grid-template-columns: 1fr; }
  .inv-row { grid-template-columns: 150px 130px 1fr 110px; } .inv-row > :nth-child(4), .inv-row > :nth-child(5), .inv-row > :nth-child(6) { display: none; }
}

/* ---- abas do Inventário + AutoAdd ---- */
.inv-tabs { display: inline-flex; gap: 4px; padding: 4px; border-radius: 12px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); margin-bottom: 14px; }
.inv-tabs button { border: 0; background: none; padding: 8px 16px; border-radius: 9px; font: inherit; font-weight: 700; color: var(--ink-2); cursor: pointer; }
.inv-tabs button.on { background: var(--ink); color: #fff; }
.inv-tabs button:focus-visible { outline: 2px solid var(--orange); outline-offset: 2px; }
.aa-sum { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 10px; }
.aa-card { display: grid; grid-template-columns: auto 1fr; grid-template-areas: "n p" "l l"; align-items: baseline; gap: 2px 8px; text-align: left; border: 0; cursor: pointer;
  padding: 12px 14px; border-radius: 12px; background: var(--bg); font: inherit; box-shadow: inset 3px 0 0 var(--ink-3); }
.aa-card b { grid-area: n; font-size: 26px; font-weight: 800; font-variant-numeric: tabular-nums; color: var(--ink); }
.aa-card small { grid-area: p; justify-self: end; font-size: 12px; font-weight: 700; color: var(--ink-3); }
.aa-card span { grid-area: l; font-size: 12px; font-weight: 700; color: var(--ink-2); line-height: 1.3; }
.aa-card.warn { box-shadow: inset 3px 0 0 var(--warn); } .aa-card.bad { box-shadow: inset 3px 0 0 var(--bad); } .aa-card.good { box-shadow: inset 3px 0 0 var(--good); }
.aa-card.info { box-shadow: inset 3px 0 0 var(--info); } .aa-card.diag { box-shadow: inset 3px 0 0 #b9bcc6; background: #f7f7f9; }
.aa-card:hover { filter: brightness(.97); } .aa-card.on { background: var(--ink); } .aa-card.on b, .aa-card.on span, .aa-card.on small { color: #fff; }
.aa-row { display: grid; grid-template-columns: 50px 150px 150px 86px minmax(200px, 1fr) minmax(260px, 1.6fr); gap: 10px; align-items: center; padding: 9px 12px; border-radius: 10px; font-size: 13px; }
.aa-row > * { min-width: 0; }
.aa-row[data-invbr] { cursor: pointer; } .aa-row[data-invbr]:hover { background: var(--bg); }
.aa-row.sel { background: var(--orange-soft); box-shadow: inset 3px 0 0 var(--orange); }
.aa-row .muted { color: var(--ink-3); font-size: 12px; }
.aa-row small { display: block; font-size: 11px; color: var(--ink-3); margin-top: 2px; }
.aa-tag { font-style: normal; display: inline-block; padding: 3px 8px; border-radius: 6px; font-size: 11px; font-weight: 800; background: var(--bg); color: var(--ink-2); }
.aa-tag.warn { background: var(--warn-soft); color: var(--warn); } .aa-tag.bad { background: var(--bad-soft); color: var(--bad); } .aa-tag.good { background: var(--good-soft); color: var(--good); }
.aa-tag.info { background: var(--info-soft); color: var(--info); } .aa-tag.diag { background: #f0f0f3; color: var(--ink-3); }
.aa-seq { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; font-size: 12px; }
.aa-seq i { font-style: normal; padding: 2px 7px; border-radius: 6px; background: var(--bg); white-space: nowrap; } .aa-seq i.ref { background: #ececf2; font-weight: 700; }
.aa-seq i small { display: inline; color: var(--ink-3); } .aa-seq b { color: var(--ink-3); font-weight: 400; }
.bad-t { color: var(--bad); font-style: normal; font-weight: 700; }
@media (max-width: 1100px) { .aa-row { grid-template-columns: 40px 140px 1fr; } .aa-row > :nth-child(3), .aa-row > :nth-child(4), .aa-row > :nth-child(6) { display: none; } }

/* ================= Painel da Análise AutoAdd ================= */
#aaOut { --c-exp: var(--good); --c-ret: var(--info); --c-ns: var(--bad); --c-nsh: #c98500; --c-oth: #8b909c; --c-diag: #c9ccd4; }
.sw { display: inline-block; width: 10px; height: 10px; border-radius: 3px; flex: none; }
.sw.exp { background: var(--c-exp); } .sw.ret { background: var(--c-ret); } .sw.ns { background: var(--c-ns); }
.sw.nsh { background: var(--c-nsh); } .sw.oth { background: var(--c-oth); } .sw.diag { background: var(--c-diag); } .sw.base { background: #d5d7df; }
.aa-views { display: inline-flex; gap: 2px; padding: 3px; border-radius: 10px; background: #e9eaef; }
.aa-views button { border: 0; background: none; padding: 7px 16px; border-radius: 8px; font: inherit; font-size: 13px; font-weight: 700; color: var(--ink-2); cursor: pointer; }
.aa-views button.on { background: #fff; color: var(--ink); box-shadow: 0 1px 2px rgba(20,20,30,.08); }

/* faixa de destino — o elemento principal */
.aa-hero { padding-bottom: 18px; }
.aa-hero-h { display: flex; justify-content: space-between; align-items: end; gap: 24px; flex-wrap: wrap; margin-bottom: 18px; }
.aa-hero-h h2 { margin: 0; font-size: 22px; font-weight: 800; letter-spacing: -.01em; }
.aa-hero-h p { margin: 4px 0 0; color: var(--ink-3); font-size: 13px; }
.aa-eff { text-align: right; } .aa-eff b { display: block; font-size: 40px; line-height: 1; font-weight: 800; color: var(--good); letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.aa-eff span { font-size: 12px; font-weight: 700; color: var(--ink-3); }
.aa-band { display: flex; gap: 3px; height: 56px; }
.aa-seg { flex: 1 1 0; min-width: 6px; border: 0; padding: 0 10px; cursor: pointer; display: flex; align-items: center; color: #fff; font: inherit; font-weight: 800; font-size: 15px; transition: filter .15s; }
.aa-seg:first-child { border-radius: 12px 4px 4px 12px; } .aa-seg:last-child { border-radius: 4px 12px 12px 4px; } .aa-seg:only-child { border-radius: 12px; }
.aa-seg.exp { background: var(--c-exp); } .aa-seg.ret { background: var(--c-ret); } .aa-seg.ns { background: var(--c-ns); }
.aa-seg.nsh { background: var(--c-nsh); } .aa-seg.oth { background: var(--c-oth); } .aa-seg.diag { background: var(--c-diag); color: var(--ink-2); }
.aa-seg:hover { filter: brightness(1.08); } .aa-seg:focus-visible { outline: 3px solid var(--ink); outline-offset: 2px; }
.aa-legend { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 6px 16px; margin-top: 14px; }
.aa-lg { display: grid; grid-template-columns: 10px auto 1fr auto; align-items: baseline; gap: 8px; border: 0; background: none; text-align: left; padding: 6px 8px; border-radius: 8px; cursor: pointer; font: inherit; }
.aa-lg:hover { background: var(--bg); } .aa-lg .sw { align-self: center; }
.aa-lg b { font-size: 18px; font-weight: 800; font-variant-numeric: tabular-nums; } .aa-lg span { font-size: 13px; color: var(--ink-2); font-weight: 600; } .aa-lg small { color: var(--ink-3); font-weight: 700; }

/* indicadores */
.aa-kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.aa-kpi { background: var(--surface); border-radius: var(--r-lg); padding: 16px 18px; display: grid; gap: 4px; }
.aa-kpi span { font-size: 13px; font-weight: 700; color: var(--ink-2); }
.aa-kpi b { font-size: 30px; font-weight: 800; letter-spacing: -.02em; font-variant-numeric: tabular-nums; line-height: 1.1; }
.aa-kpi small { font-size: 12px; color: var(--ink-3); }
.aa-kpi.alert { box-shadow: inset 0 0 0 1.5px #f5c2bd; } .aa-kpi.alert b { color: var(--bad); }

.aa-two { display: grid; grid-template-columns: 1.55fr 1fr; gap: 14px; align-items: start; } .aa-two.even { grid-template-columns: 1fr 1fr; }
.aa-two > .panel { min-width: 0; }
.aa-none { color: var(--ink-3); font-size: 13px; margin: 6px 0; }
.aa-foot { margin: 10px 0 0; font-size: 12px; color: var(--ink-3); }

/* matriz aging × resultado */
.aa-mx { display: grid; gap: 4px; align-items: center; font-size: 13px; }
.mx-h { font-size: 11px; font-weight: 700; color: var(--ink-3); text-align: center; padding-bottom: 2px; } .mx-h.r { text-align: right; }
.mx-r { display: flex; align-items: center; gap: 8px; font-weight: 600; color: var(--ink-2); min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mx-c { height: 40px; border: 0; border-radius: 8px; font: inherit; font-weight: 800; font-variant-numeric: tabular-nums; cursor: pointer;
  background: color-mix(in srgb, var(--orange) calc(var(--h, 0) * 100%), #f6f6f9); color: var(--ink); }
.mx-c[style*="--h:0.9"], .mx-c[style*="--h:1"], .mx-c[style*="--h:0.8"], .mx-c[style*="--h:0.7"], .mx-c[style*="--h:0.6"] { color: #fff; }
.mx-c.z { background: #f6f6f9; color: #c3c5cd; cursor: default; font-weight: 600; }
.mx-c.hot { box-shadow: inset 0 0 0 2px var(--bad); }
.mx-c:not(.z):hover { filter: brightness(.95); } .mx-c:focus-visible { outline: 2px solid var(--ink); outline-offset: 1px; }
.mx-t { text-align: right; font-weight: 800; font-variant-numeric: tabular-nums; }

/* por hora */
.aa-hours { display: flex; align-items: flex-end; gap: 4px; height: 190px; padding-top: 8px; }
.hb { flex: 1; min-width: 0; height: 100%; display: grid; grid-template-rows: 1fr auto auto; justify-items: center; gap: 3px; }
.hb-bar { align-self: end; width: 100%; max-width: 30px; background: #d5d7df; border-radius: 4px 4px 2px 2px; display: flex; flex-direction: column; justify-content: flex-end; overflow: hidden; min-height: 2px; }
.hb-bar i { display: block; background: var(--c-ns); }
.hb b { font-size: 11px; font-weight: 800; font-variant-numeric: tabular-nums; } .hb span { font-size: 10px; color: var(--ink-3); }
.aa-hk { display: flex; gap: 16px; margin-top: 12px; font-size: 12px; color: var(--ink-2); } .aa-hk span { display: flex; align-items: center; gap: 6px; }

/* barras por rota / operador */
.aa-bar { display: grid; grid-template-columns: minmax(90px, 150px) 1fr 70px; gap: 12px; align-items: center; width: 100%; border: 0; background: none; padding: 6px 6px; border-radius: 8px; cursor: pointer; font: inherit; text-align: left; }
.aa-bar:hover { background: var(--bg); } .aa-bar:focus-visible { outline: 2px solid var(--orange); }
.aa-bar .lbl { font-size: 13px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.aa-bar .trk { display: flex; gap: 2px; height: 12px; }
.aa-bar .trk i { display: block; height: 100%; border-radius: 3px; } .aa-bar .trk i:empty[style*="width:0"] { display: none; }
.aa-bar .trk .ns { background: var(--c-ns); } .aa-bar .trk .nsh { background: var(--c-nsh); } .aa-bar .trk .ok { background: #d5d7df; }
.aa-bar .val { font-size: 12px; color: var(--ink-3); text-align: right; } .aa-bar .val b { font-size: 14px; color: var(--ink); }

/* fila de tratativa */
.aa-q { display: grid; grid-template-columns: 160px 110px minmax(170px, 1fr) minmax(130px, 1fr) 90px minmax(160px, 1.2fr); gap: 10px; align-items: center; padding: 9px 12px; border-radius: 10px; font-size: 13px; cursor: pointer; }
.aa-q > * { min-width: 0; } .aa-q:not(.aa-q-h):hover { background: var(--bg); }
.aa-q-h { cursor: default; font-size: 11px; font-weight: 800; color: var(--ink-3); border-bottom: 1px solid var(--line); border-radius: 0; }
.aa-q.sel { background: var(--orange-soft); box-shadow: inset 3px 0 0 var(--orange); }
.aa-q .r { text-align: right; } .aa-q small { color: var(--ink-3); font-size: 11px; }
.aa-q .in { color: var(--good); }
.aa-q .age { font-weight: 800; font-variant-numeric: tabular-nums; } .aa-q .age.mid { color: var(--warn); } .aa-q .age.old { color: var(--bad); }

@media (max-width: 1150px) { .aa-two, .aa-two.even { grid-template-columns: 1fr; } .aa-kpis { grid-template-columns: 1fr 1fr; }
  .aa-q { grid-template-columns: 150px 1fr 80px; } .aa-q > :nth-child(2), .aa-q > :nth-child(4), .aa-q > :nth-child(6) { display: none; } }
@media (prefers-reduced-motion: reduce) { .aa-seg { transition: none; } }

/* saiu no mesmo dia / outras justificativas */
#aaOut { --c-ok: #0e9f6e; --c-exp: #2bb3a3; --c-oj: #9aa6c4; }
.sw.ok { background: var(--c-ok); } .sw.oj { background: var(--c-oj); }
.aa-seg.ok { background: var(--c-ok); }
.aa-bar .trk .oj { background: var(--c-oj); }
.aa-eff.low b { color: var(--bad); }
.aa-hk-top { margin: -4px 0 10px; flex-wrap: wrap; }
.aa-q .age.done { color: var(--ink-3); font-weight: 600; }

.aa-hero-h > div:first-child { flex: 1 1 420px; max-width: 760px; }
.aa-hero-h .aa-eff { flex: none; }

/* ================= Painel AutoAdd — visual aprovado (cartões arredondados) ================= */
.ad { display: flex; flex-direction: column; gap: 16px; margin-top: 16px; }
.ad-head { background: #fff; border-radius: 22px; padding: 22px 24px 0; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 16px; }
.ad-head h2 { margin: 0; font-size: 32px; font-weight: 800; letter-spacing: -.03em; }
.ad-head p { margin: 6px 0 0; color: #6b6f7b; }
.ad-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.ad-btn { height: 44px; padding: 0 20px; border-radius: 999px; font: inherit; font-weight: 700; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; gap: 8px; }
.ad-btn svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.ad-btn.pri { border: 0; background: var(--orange); color: #fff; } .ad-btn.pri:hover { background: var(--orange-deep); }
.ad-btn.out { border: 1.5px solid var(--ink); background: #fff; color: var(--ink); } .ad-btn.out:hover { background: #f4f4f6; }
.ad-btn.sm { height: 32px; padding: 0 12px; font-size: 12px; } .ad-btn.wide { width: 100%; margin-top: auto; }
.ad-kpis { background: #fff; border-radius: 0 0 22px 22px; margin-top: -16px; padding: 20px 24px 24px; display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 14px; }
.ad-kpi { border: 0; text-align: left; font: inherit; cursor: pointer; border-radius: 20px; padding: 18px 18px 16px; display: flex; flex-direction: column; gap: 10px; background: #fff; color: var(--ink); box-shadow: inset 0 0 0 1px #ececf0; }
.ad-kpi:hover { box-shadow: inset 0 0 0 1.5px #d4d5dc; } .ad-kpi.on { box-shadow: inset 0 0 0 2px var(--ink); }
.ad-kpi-h { display: flex; justify-content: space-between; align-items: flex-start; gap: 8px; font-size: 16px; font-weight: 700; }
.ad-arrow { width: 34px; height: 34px; flex: none; border-radius: 50%; border: 1.5px solid var(--ink); display: flex; align-items: center; justify-content: center; }
.ad-arrow svg, .ad-round svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.ad-kpi b { font-size: 46px; font-weight: 800; letter-spacing: -.03em; line-height: 1; font-variant-numeric: tabular-nums; }
.ad-kpi small { display: flex; align-items: center; gap: 6px; font-size: 12px; color: #6b6f7b; }
.ad-kpi small em { font-style: normal; padding: 1px 6px; border-radius: 6px; font-weight: 700; background: #f0f0f3; color: var(--ink); }
.ad-kpi.is-main { color: #fff; box-shadow: none; background: radial-gradient(circle at 90% 0%, #ff8a63 0%, transparent 55%), linear-gradient(150deg, #ee4d2d 0%, #b8321a 100%); }
.ad-kpi.is-main .ad-arrow { background: #fff; border-color: #fff; color: #c9361b; }
.ad-kpi.is-main small { color: #ffe1d8; } .ad-kpi.is-main small em { background: rgba(255,255,255,.22); color: #fff; }
.ad-kpi.is-main.on { box-shadow: 0 0 0 3px var(--ink); }
.ad-row { display: flex; flex-wrap: wrap; gap: 16px; }
.ad-card { flex: 1 1 260px; min-width: 0; background: #fff; border-radius: 22px; padding: 20px 22px; display: flex; flex-direction: column; gap: 10px; }
.ad-card.grow2 { flex: 2 1 380px; } .ad-card.grow15 { flex: 1.5 1 360px; }
.ad-card h3 { margin: 0; font-size: 18px; font-weight: 700; } .ad-card > p, .ad-card-h p { margin: 0; font-size: 12px; color: #6b6f7b; }
.ad-card-h { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.ad-bars { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 14px; align-items: end; height: 220px; margin-top: 4px; }
.ad-col { height: 100%; border: 0; background: none; font: inherit; cursor: pointer; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; gap: 8px; padding: 0; }
.ad-pill { display: block; width: 100%; max-width: 54px; border-radius: 999px; }
.ad-pill.top { background: var(--orange); } .ad-pill.old { background: #b8321a; }
.ad-pill.new { background: repeating-linear-gradient(45deg, #d8d9df 0 3px, #f4f4f6 3px 8px); box-shadow: inset 0 0 0 1px #d8d9df; }
.ad-col:hover .ad-pill { filter: brightness(.94); }
.ad-tip { font-size: 12px; font-weight: 700; padding: 3px 8px; border-radius: 8px; background: var(--ink); color: #fff; white-space: nowrap; }
.ad-val { font-size: 12px; font-weight: 700; color: #4a4e59; min-height: 16px; } .ad-lbl { font-size: 12px; color: #6b6f7b; white-space: nowrap; }
.ad-prio { font-size: 22px; font-weight: 800; letter-spacing: -.02em; color: #c9361b; }
.ad-prio-t { margin: 0; font-size: 13px; color: #6b6f7b; line-height: 1.5; }
.ad-li { display: flex; align-items: center; gap: 12px; width: 100%; border: 0; background: none; font: inherit; text-align: left; padding: 6px; margin: 0 -6px; border-radius: 12px; cursor: pointer; color: var(--ink); }
.ad-li:hover { background: #f6f6f8; }
.ad-ic { width: 32px; height: 32px; flex: none; border-radius: 10px; display: flex; align-items: center; justify-content: center; } .ad-ic span { width: 10px; height: 10px; border-radius: 50%; }
.ad-li-t { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; } .ad-li-t b { font-size: 13px; } .ad-li-t small { font-size: 11px; color: #6b6f7b; }
.ad-li-t small strong { color: var(--ink); } .ad-li > strong { font-weight: 800; font-variant-numeric: tabular-nums; }
.ad-av { width: 38px; height: 38px; flex: none; border-radius: 50%; background: #f0f0f3; color: #4a4e59; font-style: normal; font-weight: 800; font-size: 12px; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.ad-av.crit { background: var(--orange); color: #fff; } .ad-av.warn { background: #ffe3da; color: #b8321a; }
.ad-tag { font-style: normal; font-size: 11px; font-weight: 700; padding: 3px 8px; border-radius: 6px; background: #f0f0f3; color: #4a4e59; white-space: nowrap; }
.ad-tag.crit { background: #fdecea; color: #b3261e; } .ad-tag.warn { background: #fff6df; color: #8a5b00; } .ad-tag.ok { background: #e7f6ef; color: #0b7a55; }
.ad-tag.g-ns { background: #fdecea; color: #b3261e; } .ad-tag.g-nsh { background: #fff6df; color: #8a5b00; } .ad-tag.g-ret { background: #eaf2fd; color: #1d5fae; }
.ad-tag.g-exp { background: #e3f6f3; color: #0f6f65; } .ad-tag.g-oth { background: #f0f0f3; color: #4a4e59; }
.ad-meter { display: block; height: 6px; border-radius: 3px; background: #f0f0f3; overflow: hidden; } .ad-meter span { display: block; height: 100%; background: var(--orange); border-radius: 3px; }
.ad-gauge { position: relative; width: 100%; max-width: 260px; margin: 6px auto 0; }
.ad-gauge > div { position: absolute; left: 0; right: 0; bottom: 4px; text-align: center; display: flex; flex-direction: column; }
.ad-gauge b { font-size: 40px; font-weight: 800; letter-spacing: -.03em; line-height: 1; } .ad-gauge span { font-size: 12px; color: #6b6f7b; }
.ad-legend { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; font-size: 12px; color: #4a4e59; margin-top: 6px; }
.ad-legend span { display: flex; align-items: center; gap: 6px; } .ad-legend i { width: 10px; height: 10px; border-radius: 50%; }
.ad-legend i.h { background: repeating-linear-gradient(45deg, #d8d9df 0 2px, #f4f4f6 2px 4px); }
.ad-card.dark { color: #fff; background: repeating-radial-gradient(circle at 110% 120%, rgba(255,122,82,.22) 0 2px, transparent 2px 18px), linear-gradient(150deg, #3a1a12 0%, #140a08 70%); }
.ad-card.dark > p { color: #e2d6d3; }
.ad-timer { margin-top: auto; font-size: 42px; font-weight: 800; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.ad-round { display: flex; gap: 10px; margin-top: 4px; }
.ad-round button { width: 46px; height: 46px; border-radius: 50%; border: 0; background: #fff; color: var(--ink); display: flex; align-items: center; justify-content: center; cursor: pointer; }
.ad-round button.o { background: var(--orange); color: #fff; }
.ad-hours { display: flex; align-items: flex-end; gap: 6px; height: 170px; }
.ad-hcol { flex: 1; min-width: 0; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; gap: 4px; height: 100%; }
.ad-hbar { width: 100%; max-width: 28px; border-radius: 999px; background: repeating-linear-gradient(45deg, #d8d9df 0 3px, #f4f4f6 3px 8px); display: flex; flex-direction: column; justify-content: flex-end; overflow: hidden; }
.ad-hbar i { display: block; background: var(--orange); }
.ad-tr { display: grid; grid-template-columns: 160px 100px minmax(160px, 1fr) minmax(140px, 1fr) 90px minmax(160px, 1.2fr); gap: 10px; align-items: center; padding: 10px 12px; border-radius: 12px; font-size: 13px; cursor: pointer; }
.ad-tr > * { min-width: 0; } .ad-tr:not(.ad-th):hover { background: #f6f6f8; } .ad-tr.sel { background: var(--orange-soft); }
.ad-th { cursor: default; font-size: 12px; font-weight: 700; color: #6b6f7b; background: #f6f6f8; }
.ad-tr .r { text-align: right; } .ad-tr small { color: #6b6f7b; font-size: 11px; } .ad-tr .in { color: var(--good); }
.ad-tr .age { font-weight: 800; font-variant-numeric: tabular-nums; } .ad-tr .age.mid { color: var(--warn); } .ad-tr .age.old { color: var(--bad); } .ad-tr .age.done { color: #6b6f7b; font-weight: 600; }
.ad button:focus-visible, .ad [tabindex]:focus-visible { outline: 2px solid var(--orange); outline-offset: 2px; }
@media (max-width: 1100px) { .ad-tr { grid-template-columns: 150px 1fr 80px; } .ad-tr > :nth-child(2), .ad-tr > :nth-child(4), .ad-tr > :nth-child(6) { display: none; } }
.ad-gauge svg { display: block; width: 100%; height: auto; }
.ad-kpi > b { align-self: flex-start; text-align: left; }
.ad-kpi.is-main::before, .ad-kpi.is-main::after { content: none; }
.ad-head { border-radius: 22px 22px 0 0; padding-bottom: 16px; } .ad-kpis { margin-top: -16px; padding-top: 4px; }

/* ---- Justificativas em destaque ---- */
.ad-just { gap: 16px; padding: 24px; }
.ad-just h3 { font-size: 22px; font-weight: 800; letter-spacing: -.02em; }
.ad-just .ad-card-h p { font-size: 13px; margin-top: 4px; }
.ad-jband { display: flex; gap: 4px; height: 40px; }
.ad-jseg { flex: 1 1 0; min-width: 8px; border: 0; cursor: pointer; color: #fff; font: inherit; font-weight: 800; font-size: 14px; text-align: left; padding: 0 12px; }
.ad-jseg:first-child { border-radius: 999px 6px 6px 999px; } .ad-jseg:last-child { border-radius: 6px 999px 999px 6px; } .ad-jseg:only-child { border-radius: 999px; }
.ad-jseg:hover { filter: brightness(1.08); }
.ad-jgrid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 14px; }
.ad-jt { border: 0; text-align: left; font: inherit; color: var(--ink); cursor: pointer; border-radius: 20px; padding: 18px; background: var(--js); display: flex; flex-direction: column; gap: 10px; }
.ad-jt:hover { box-shadow: inset 0 0 0 1.5px var(--jc); } .ad-jt.on { box-shadow: inset 0 0 0 2.5px var(--jc); }
.ad-jt-h { display: flex; align-items: center; gap: 8px; font-size: 15px; font-weight: 800; }
.ad-jt-h i { width: 12px; height: 12px; border-radius: 50%; background: var(--jc); flex: none; }
.ad-jt-h em { margin-left: auto; font-style: normal; font-size: 11px; font-weight: 800; padding: 3px 8px; border-radius: 999px; background: var(--jc); color: #fff; white-space: nowrap; }
.ad-jt-n { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.ad-jt-n b { font-size: 48px; font-weight: 800; letter-spacing: -.03em; line-height: 1; color: var(--jc); font-variant-numeric: tabular-nums; filter: brightness(.85); }
.ad-jt-n small { font-size: 13px; font-weight: 700; color: #4a4e59; }
.ad-jt-bar { height: 8px; border-radius: 999px; background: rgba(255,255,255,.8); overflow: hidden; } .ad-jt-bar span { display: block; height: 100%; border-radius: 999px; background: var(--jc); }
.ad-jt-d { font-size: 12px; color: #4a4e59; line-height: 1.45; }
.ad-jt-f { display: flex; flex-wrap: wrap; gap: 6px; margin-top: auto; }
.ad-jt-f span { font-size: 12px; color: #4a4e59; background: rgba(255,255,255,.75); border-radius: 999px; padding: 4px 10px; } .ad-jt-f b { color: var(--ink); font-weight: 800; }
.ad-jt-r { font-size: 11px; color: #6b6f7b; }
.ad-jt.lead { background: linear-gradient(160deg, var(--js) 0%, #fff 140%); box-shadow: inset 0 0 0 1.5px var(--jc); }
.ad-jt:focus-visible, .ad-jseg:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
.ad-jgrid { grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); }

.ad-head p.ad-speed { margin-top: 4px; font-size: 12px; color: #4a4e59; }

/* ---- turno AM/PM na Análise AutoAdd ---- */
.aa-cuts { display: grid; gap: 6px; padding: 10px 12px; border-radius: var(--r-md); background: var(--bg); font-size: 12px; color: var(--ink-2); }
.aa-cuts > span { font-weight: 700; }
.aa-cuts label { display: flex; align-items: center; gap: 6px; } .aa-cuts .shift { margin-left: 0; font-style: normal; }
.aa-cuts input { margin-left: auto; border: 1px solid var(--line); border-radius: 6px; padding: 3px 6px; font: inherit; background: #fff; }
.ad-seg3 { display: inline-flex; gap: 2px; padding: 3px; border-radius: 999px; background: #f0f0f3; }
.ad-seg3 button { border: 0; background: none; height: 38px; padding: 0 14px; border-radius: 999px; font: inherit; font-weight: 700; color: #4a4e59; cursor: pointer; display: inline-flex; align-items: center; gap: 6px; }
.ad-seg3 button.on { background: #fff; color: var(--ink); box-shadow: 0 1px 3px rgba(20,20,30,.12); }
.ad-seg3 .shift { margin-left: 0; font-style: normal; vertical-align: 0; } .ad-seg3 small { color: #6b6f7b; font-weight: 700; }
.ad-shs { display: flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 700; } .ad-shs .shift { margin-left: 0; font-style: normal; vertical-align: 0; }
.ad-kpi.is-main .ad-shs { color: #fff; }
.ad-jt-sh { display: flex; gap: 8px; } .ad-jt-sh > span { display: flex; align-items: center; gap: 6px; background: #fff; border-radius: 999px; padding: 4px 10px 4px 4px; }
.ad-jt-sh .shift { margin-left: 0; font-style: normal; vertical-align: 0; } .ad-jt-sh b { font-weight: 800; font-variant-numeric: tabular-nums; }
.ad-tr { grid-template-columns: 160px 90px 90px minmax(150px, 1fr) minmax(130px, 1fr) 80px minmax(150px, 1.2fr); }
.ad-tr .shift, .aa-row .shift { margin-left: 0; font-style: normal; vertical-align: 0; }
.aa-row { grid-template-columns: 50px 150px 150px 86px 70px minmax(200px, 1fr) minmax(260px, 1.6fr); }
@media (max-width: 1100px) { .ad-tr { grid-template-columns: 150px 70px 1fr 80px; } .ad-tr > :nth-child(2), .ad-tr > :nth-child(5), .ad-tr > :nth-child(7) { display: none; } }

.ad-shgrid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 14px; }
.ad-sh { border: 0; text-align: left; font: inherit; color: var(--ink); cursor: pointer; border-radius: 20px; padding: 18px; background: #f6f6f8; display: flex; flex-direction: column; gap: 10px; }
.ad-sh:hover { box-shadow: inset 0 0 0 1.5px #d4d5dc; }
.ad-sh.worst { background: #fff1ec; box-shadow: inset 0 0 0 1.5px var(--orange); }
.ad-sh-h { display: flex; align-items: center; gap: 8px; } .ad-sh-h .shift { margin-left: 0; font-style: normal; vertical-align: 0; font-size: 13px; padding: 3px 10px; }
.ad-sh-h em { margin-left: auto; font-style: normal; font-size: 11px; font-weight: 800; padding: 3px 8px; border-radius: 999px; background: var(--orange); color: #fff; }
.ad-sh-n { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; } .ad-sh-n b { font-size: 42px; font-weight: 800; letter-spacing: -.03em; line-height: 1; font-variant-numeric: tabular-nums; }
.ad-sh.worst .ad-sh-n b { color: #c9361b; } .ad-sh-n small { font-size: 13px; color: #4a4e59; } .ad-sh-n strong { color: var(--ink); }
.ad-sh-bar { height: 8px; border-radius: 999px; background: #e6e7ec; overflow: hidden; } .ad-sh-bar span { display: block; height: 100%; border-radius: 999px; background: var(--orange); }
.ad-sh-f { display: flex; flex-wrap: wrap; gap: 6px; } .ad-sh-f span { font-size: 12px; color: #4a4e59; background: #fff; border-radius: 999px; padding: 4px 10px; } .ad-sh-f b { color: var(--ink); }

/* ================= Enquadramento dos cartões principais ================= */
.ad-jt, .ad-sh { position: relative; }
.ad-flag { position: absolute; top: -11px; left: 18px; font-style: normal; font-size: 11px; font-weight: 800; padding: 4px 10px; border-radius: 999px; color: #fff; background: var(--jc, var(--orange)); box-shadow: 0 0 0 3px #fff; white-space: nowrap; }
.ad-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-radius: 14px; background: rgba(255,255,255,.85); overflow: hidden; }
.ad-stats > span { display: flex; flex-direction: column; gap: 2px; padding: 10px 12px; min-width: 0; }
.ad-stats > span + span { box-shadow: inset 1px 0 0 rgba(20,20,30,.08); }
.ad-stats b { font-size: 16px; font-weight: 800; font-variant-numeric: tabular-nums; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: var(--ink); }
.ad-stats small { font-size: 11px; color: #5b5f6b; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ad-kpi { display: grid; grid-template-rows: auto auto auto 22px; align-content: start; gap: 10px; }
.ad-kpi-h { align-items: center; }
.ad-kpi-h .t { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ad-kpi .v { font-size: 44px; }
.ad-kpi-n { display: flex; align-items: center; gap: 6px; min-width: 0; font-size: 12px; color: #6b6f7b; }
.ad-kpi-n em { flex: none; font-style: normal; padding: 1px 6px; border-radius: 6px; font-weight: 700; background: #f0f0f3; color: var(--ink); }
.ad-kpi-n span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ad-kpi.is-main .ad-kpi-n { color: #ffe1d8; } .ad-kpi.is-main .ad-kpi-n em { background: rgba(255,255,255,.22); color: #fff; }
.ad-kpi-s { display: flex; align-items: center; min-height: 22px; }
.ad-jgrid { display: grid; grid-template-columns: minmax(0, 1.25fr) repeat(2, minmax(0, 1fr)); gap: 18px 14px; padding-top: 10px; align-items: stretch; }
.ad-jt { display: grid; grid-template-rows: auto auto 8px auto auto; align-content: start; gap: 12px; padding: 20px; }
.ad-jt.lead { grid-row: span 2; align-content: center; gap: 16px; padding: 26px; }
.ad-jt-h { min-width: 0; font-size: 15px; } .ad-jt-h .t { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ad-jt.lead .ad-jt-h { font-size: 18px; }
.ad-jt-n { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: nowrap; }
.ad-jt-n b { font-size: 44px; }
.ad-jt.lead .ad-jt-n b { font-size: 72px; }
.ad-jt-n .pc { display: flex; flex-direction: column; align-items: flex-end; text-align: right; line-height: 1.15; }
.ad-jt-n .pc strong { font-size: 22px; font-weight: 800; color: var(--ink); font-variant-numeric: tabular-nums; }
.ad-jt.lead .ad-jt-n .pc strong { font-size: 30px; }
.ad-jt-n .pc small { font-size: 11px; color: #5b5f6b; font-weight: 600; }
.ad-jt-d { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 2.9em; line-height: 1.45; }
.ad-jt.lead .ad-jt-d { font-size: 13px; -webkit-line-clamp: 3; }
.ad-jt-sh { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.ad-jt-sh > span { justify-content: space-between; padding: 5px 12px 5px 5px; }
.ad-shgrid { padding-top: 10px; gap: 18px 14px; }
.ad-sh { display: grid; gap: 12px; padding: 22px 20px 20px; align-content: start; }
.ad-sh-h { display: flex; align-items: center; gap: 10px; }
.ad-sh-h .t { font-size: 15px; font-weight: 800; }
.ad-sh-h .rt { margin-left: auto; display: flex; flex-direction: column; align-items: flex-end; font-size: 22px; font-weight: 800; line-height: 1.1; font-variant-numeric: tabular-nums; }
.ad-sh-h .rt small { font-size: 11px; font-weight: 600; color: #5b5f6b; }
.ad-sh.worst .ad-sh-h .rt { color: #c9361b; }
.ad-sh-n b { font-size: 44px; }
.ad-sh .ad-stats { background: #fff; }
@media (max-width: 1200px) { .ad-jgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .ad-jt.lead { grid-row: auto; grid-column: 1 / -1; } }
@media (max-width: 640px) { .ad-jgrid { grid-template-columns: 1fr; } .ad-jt.lead .ad-jt-n b { font-size: 56px; } }
/* ajustes finos de enquadramento */
.ad-kpis > *, .ad-jgrid > *, .ad-shgrid > * { min-width: 0; }
.ad-kpi-h .t { flex: 1 1 auto; } .ad-arrow { flex: none; }
.ad-jt { grid-template-rows: auto auto 8px auto auto; }
.ad-jt.lead { align-content: stretch; grid-template-rows: auto auto 10px 1fr auto auto auto; }
.ad-jt.lead .ad-jt-d { align-self: start; }
.ad-sh .ad-stats { grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr) minmax(0, 1fr); }
.ad-stats small { white-space: normal; line-height: 1.2; }
.ad-kpi, .ad-jt, .ad-sh { grid-template-columns: minmax(0, 1fr); }

.ad-kpi-h { align-items: flex-start; min-height: 2.7em; }
.ad-kpi-h .t { white-space: normal; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; line-height: 1.3; }
.ad-kpi-n span { white-space: normal; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; line-height: 1.3; }
.ad-kpi-n { align-items: flex-start; min-height: 2.6em; }
.ad-kpi { grid-template-rows: auto auto auto 22px; }
.ad-jt.lead { grid-template-rows: auto auto 10px auto 1fr auto auto auto; }
.ad-how { display: flex; flex-direction: column; gap: 8px; padding: 14px; border-radius: 14px; background: rgba(255,255,255,.7); align-self: start; }
.ad-how-t { font-size: 12px; font-weight: 800; color: #4a4e59; }
.ad-how-r { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(40px, 1fr) 34px; gap: 10px; align-items: center; font-size: 12px; }
.ad-how-r .l { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: #33363f; }
.ad-how-r .m { height: 6px; border-radius: 999px; background: rgba(20,20,30,.08); overflow: hidden; } .ad-how-r .m span { display: block; height: 100%; border-radius: 999px; background: var(--jc); }
.ad-how-r b { text-align: right; font-weight: 800; font-variant-numeric: tabular-nums; }
.ad-how { align-self: stretch; justify-content: center; gap: 12px; } .ad-how-r { grid-template-columns: minmax(0, 2.4fr) minmax(40px, 1fr) 34px; }
.ad-how { justify-content: flex-start; }

/* ================= Escala tipográfica fixa dos cartões principais =================
   número principal 56 (maior causa 72) · valores 24 · títulos 18 · apoio 14 · mínimo 13 */
.ad-kpi-h, .ad-sh-h .t, .ad-jt-h { font-size: 18px; }
.ad-kpi .v, .ad-sh-n b, .ad-jt-n b { font-size: 56px; }
.ad-jt.lead .ad-jt-n b { font-size: 72px; }
.ad-jt.lead .ad-jt-h { font-size: 20px; }
.ad-sh-h .rt, .ad-jt-n .pc strong, .ad-stats b, .ad-jt-sh b { font-size: 24px; }
.ad-jt.lead .ad-jt-n .pc strong { font-size: 32px; }
.ad-kpi-n, .ad-sh-n small, .ad-jt-d, .ad-jt.lead .ad-jt-d, .ad-how-r, .ad-how-t { font-size: 14px; }
.ad-sh-h .rt small, .ad-jt-n .pc small, .ad-stats small, .ad-jt-r, .ad-shs, .ad-kpi-n em, .ad-flag { font-size: 13px; }
.ad-sh-h .shift, .ad-jt-sh .shift, .ad-shs .shift { font-size: 13px; padding: 3px 10px; }
.ad-sh-bar { height: 10px; }
.ad-sh { padding: 24px; gap: 16px; } .ad-jt { padding: 22px; gap: 14px; } .ad-jt.lead { padding: 28px; }
.ad-stats > span { padding: 12px 14px; gap: 4px; }
.ad-jt-h i { width: 14px; height: 14px; }
.ad-jt-d { line-height: 1.45; min-height: 2.9em; }
.ad-kpi-n { min-height: 2.6em; }
.ad-shift h3, .ad-just h3 { font-size: 22px; } .ad-shift .ad-card-h p, .ad-just .ad-card-h p { font-size: 14px; }
.ad-sh .ad-stats > span:first-child b { white-space: normal; line-height: 1.15; }

/* ordenação dos cartões de rota */
.sortbox { display: inline-flex; align-items: center; gap: 4px; padding: 3px; border-radius: 999px; background: #e9eaef; }
.sortbox > span { font-size: 12px; font-weight: 700; color: var(--ink-2); padding: 0 8px 0 10px; }
.sortbox button { border: 0; background: none; padding: 6px 12px; border-radius: 999px; font: inherit; font-size: 12px; font-weight: 700; color: var(--ink-2); cursor: pointer; }
.sortbox button.on { background: #fff; color: var(--ink); box-shadow: 0 1px 2px rgba(20,20,30,.12); }
.sortbox button:focus-visible { outline: 2px solid var(--orange); outline-offset: 1px; }
.rc { position: relative; }
.rc-pos { position: absolute; top: -8px; left: -8px; min-width: 26px; height: 26px; padding: 0 6px; box-sizing: border-box; border-radius: 999px; background: var(--orange); color: #fff; font-size: 12px; font-weight: 800; display: flex; align-items: center; justify-content: center; box-shadow: 0 0 0 2px #fff; z-index: 1; }
.rc-pos { position: static; min-width: 24px; height: 22px; box-shadow: none; margin-right: 6px; flex: none; }

.aa-tag.ap, .ad-tag.g-ap { background: #efeafc; color: #5a3fb8; } .aa-card.ap { box-shadow: inset 3px 0 0 #7b5cd6; } .sw.ap { background: #7b5cd6; }

/* ---- Motivos por turno (espelhado) ---- */
.ad-mot { gap: 6px; }
.ad-mot h3 { font-size: 22px; } .ad-mot .ad-card-h p { font-size: 14px; margin-bottom: 8px; }
.ad-mrow { display: grid; grid-template-columns: minmax(220px, 1.25fr) minmax(0, 1fr) minmax(0, 1fr) 110px; align-items: center; gap: 0 4px; border-radius: 12px; }
.ad-mrow > * { min-width: 0; }
.ad-mhead { font-size: 13px; font-weight: 700; color: #4a4e59; padding: 6px 0 10px; border-bottom: 1px solid #ececf0; margin-bottom: 6px; }
.ad-mhead > .am { text-align: right; padding-right: 14px; } .ad-mhead > .pm { padding-left: 14px; } .ad-mhead .c { text-align: center; }
.ad-mhead .shift, .ad-mrow .shift { margin-left: 0; font-style: normal; vertical-align: 0; font-size: 13px; padding: 2px 9px; }
.ad-mlab { display: flex; align-items: center; gap: 10px; border: 0; background: none; font: inherit; text-align: left; padding: 10px 12px 10px 6px; border-radius: 10px; cursor: pointer; color: var(--ink); }
.ad-mlab i { width: 12px; height: 12px; border-radius: 50%; background: var(--mc); flex: none; }
.ad-mlab .t { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 16px; font-weight: 800; }
.ad-mlab b { font-size: 16px; font-weight: 800; font-variant-numeric: tabular-nums; }
.ad-mrow.sub .ad-mlab { padding: 6px 12px 6px 6px; } .ad-mrow.sub .ad-mlab .t { font-size: 14px; font-weight: 600; color: #33363f; } .ad-mrow.sub .ad-mlab b { font-size: 14px; font-weight: 700; color: #4a4e59; }
.ad-mrow .tree { width: 12px; height: 12px; flex: none; margin-left: 4px; border-left: 2px solid #d8d9df; border-bottom: 2px solid #d8d9df; border-radius: 0 0 0 4px; transform: translateY(-4px); }
.ad-mlab:hover, .ad-mside:hover { background: #f6f6f8; }
.ad-mside { display: flex; align-items: center; gap: 10px; border: 0; background: none; font: inherit; cursor: pointer; padding: 8px 12px; border-radius: 10px; color: var(--ink); }
.ad-mside .bar { flex: 1; height: 16px; display: flex; }
.ad-mside.am .bar { justify-content: flex-end; } .ad-mside.am { border-right: 2px solid #d8d9df; border-radius: 10px 0 0 10px; }
.ad-mside.pm { border-radius: 0 10px 10px 0; }
.ad-mside .bar span { display: block; height: 100%; min-width: 3px; background: var(--mc); opacity: .45; }
.ad-mside.am .bar span { border-radius: 999px 4px 4px 999px; } .ad-mside.pm .bar span { border-radius: 4px 999px 999px 4px; }
.ad-mside.hi .bar span { opacity: 1; }
.ad-mside .v { display: flex; flex-direction: column; align-items: center; min-width: 48px; line-height: 1.15; }
.ad-mside .v b { font-size: 18px; font-weight: 800; font-variant-numeric: tabular-nums; } .ad-mside .v small { font-size: 13px; color: #5b5f6b; font-weight: 600; }
.ad-mside:not(.hi) .v b { color: #4a4e59; }
.ad-mrow.sub .ad-mside .bar { height: 10px; } .ad-mrow.sub .ad-mside .v b { font-size: 15px; } .ad-mrow.sub .ad-mside { padding-top: 4px; padding-bottom: 4px; }
.ad-mrow > .c { display: flex; flex-direction: column; align-items: center; gap: 2px; } .ad-mrow > .c small { font-size: 13px; color: #5b5f6b; font-weight: 700; }
.ad-mrow:not(.sub):not(.ad-mhead) { margin-top: 8px; border-top: 1px solid #f0f0f3; padding-top: 6px; }
.ad-mrow:not(.sub):not(.ad-mhead):nth-child(3) { border-top: 0; margin-top: 0; }
@media (max-width: 1000px) { .ad-mrow { grid-template-columns: minmax(150px, 1fr) minmax(0, 1fr) minmax(0, 1fr) 70px; } .ad-mlab .t { font-size: 14px; } }
.ad-mhead > .am { padding-right: 70px; } .ad-mhead > .pm { padding-left: 70px; }
.ad-mhead .shift { display: inline-block; width: auto; margin-right: 6px; }
/* nome da rota nunca corta; o chip de status é quem encolhe */
.rc-h .rc-id { overflow: visible; text-overflow: clip; flex: none; }
.rc-h .rc-idg { flex: 0 0 auto; overflow: visible; }
.rc-h > .tag { min-width: 0; flex: 0 1 auto; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
/* v5.8 — AM/PM dentro de cada justificativa */
.ad-how { justify-content: flex-start; }
.ad-how .ad-how-r { grid-template-columns: minmax(0, 2.2fr) minmax(30px, .9fr) 40px 40px 40px; gap: 8px; font-size: 14px; }
.ad-how-r.hd { font-size: 12px; color: #6b6f7a; } .ad-how-r.hd b { font-weight: 700; }
.ad-how-r b.am, .ad-how-r b.pm { font-weight: 700; color: #4a4e59; }
.ad-how-r.hd b.am { color: #8a6a00; } .ad-how-r.hd b.pm { color: #5b45b0; }
.ad-mx { display: flex; flex-direction: column; border-radius: 14px; background: rgba(255,255,255,.88); padding: 6px 12px; }
.ad-mx-r { display: grid; grid-template-columns: minmax(0, 1fr) 62px 56px 56px; gap: 6px; align-items: center; padding: 6px 0; font-size: 14px; }
.ad-mx-r + .ad-mx-r { border-top: 1px solid rgba(20,20,30,.06); }
.ad-mx-r .l { min-width: 0; color: #33363f; display: flex; flex-direction: column; line-height: 1.25; }
.ad-mx-r .l small { font-size: 12px; color: #6b6f7a; }
.ad-mx-r b { text-align: right; font-weight: 700; font-variant-numeric: tabular-nums; color: var(--ink); white-space: nowrap; }
.ad-mx-r b.z { color: #b3b6be; font-weight: 600; }
.ad-mx-r b.hi { color: var(--jc); font-weight: 800; }
.ad-mx-r.hd { padding: 2px 0 6px; } .ad-mx-r.hd b { font-size: 12px; color: #6b6f7a; }
.ad-mx-r.hd .shift { margin: 0; font-style: normal; vertical-align: 0; font-size: 12px; padding: 1px 8px; }
.ad-mx-r.main .l { font-weight: 800; color: var(--ink); } .ad-mx-r.main b { font-size: 16px; font-weight: 800; }
.ad-mx-r.ok { margin-top: 2px; } .ad-mx-r.ok .l, .ad-mx-r.ok b:not(.z) { color: #1f8a5b; }
/* layout: maior causa em largura total, demais em 2 colunas */
.ad-jgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.ad-jt.lead { grid-column: 1 / -1; grid-row: auto; display: grid; grid-template-columns: minmax(0, 1fr); align-content: start; }
.ad-jt-body { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; align-items: start; }
.ad-jt.lead .ad-jt-body { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; }
.ad-jt.lead .ad-how { align-self: stretch; justify-content: flex-start; }
.ad-mx-r .l { flex-direction: row; align-items: baseline; gap: 6px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: block; }
.ad-mx-r .l small { margin-left: 6px; }
@media (max-width: 1100px) { .ad-jgrid { grid-template-columns: minmax(0, 1fr); } .ad-jt.lead .ad-jt-body { grid-template-columns: minmax(0, 1fr); } }
.aa-cuts small { color: var(--ink-3, #6b6f7a); font-size: 12px; line-height: 1.35; }
/* v5.10 — bloco de justificativas compacto (cabe num print) */
.ad-just { padding-bottom: 18px; }
.ad-just .ad-card-h { margin-bottom: 10px; }
.ad-jact { display: flex; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
.ad-jact .ad-btn svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 2; margin-right: 6px; vertical-align: -3px; }
.ad-just .ad-jband { height: 26px; margin-bottom: 12px; }
.ad-jgrid { grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); gap: 12px; padding-top: 10px; }
.ad-jt { padding: 14px 14px 12px; gap: 8px; border-radius: 16px; grid-template-rows: none; }
.ad-jt .ad-jt-h { font-size: 15px; }
.ad-jt .ad-jt-n { align-items: center; }
.ad-jt .ad-jt-n b { font-size: 40px; line-height: 1; }
.ad-jt .ad-jt-n .pc strong { font-size: 20px; }
.ad-jt .ad-jt-n .pc small { font-size: 12px; }
.ad-jt .ad-jt-bar { height: 6px; }
.ad-jt .ad-jt-d { font-size: 12px; line-height: 1.3; }
.ad-jt .ad-jt-r { font-size: 12px; }
.ad-mx { padding: 2px 10px; border-radius: 12px; }
.ad-mx-r { grid-template-columns: minmax(0, 1fr) 46px 40px 40px; gap: 4px; padding: 3px 0; font-size: 13px; }
.ad-mx-r.hd { padding: 4px 0 3px; } .ad-mx-r.hd .shift { padding: 0 6px; font-size: 11px; }
.ad-mx-r.main b { font-size: 14px; }
.ad-mx-r .l small { font-size: 11px; }
/* maior causa: identificação à esquerda, Como aconteceu e tabela lado a lado */
.ad-jt.lead { grid-column: 1 / -1; padding: 18px; display: grid; gap: 8px 18px; align-content: start;
  grid-template-columns: minmax(200px, 250px) minmax(0, 1fr);
  grid-template-areas: "h body" "n body" "bar body" "d body" "r body"; position: relative; }
.ad-jt.lead > .ad-jt-h { grid-area: h; } .ad-jt.lead > .ad-jt-n { grid-area: n; }
.ad-jt.lead > .ad-jt-bar { grid-area: bar; } .ad-jt.lead > .ad-jt-d { grid-area: d; } .ad-jt.lead > .ad-jt-r { grid-area: r; align-self: end; }
.ad-jt.lead > .ad-jt-body { grid-area: body; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 12px; align-self: start; }
.ad-jt.lead .ad-jt-h { font-size: 17px; }
.ad-jt.lead .ad-jt-n { flex-direction: column; align-items: flex-start; gap: 4px; }
.ad-jt.lead .ad-jt-n b { font-size: 56px; }
.ad-jt.lead .ad-jt-n .pc { text-align: left; align-items: flex-start; }
.ad-jt.lead .ad-jt-n .pc strong { font-size: 22px; }
.ad-jt.lead .ad-how { padding: 10px 12px; gap: 6px; border-radius: 12px; }
.ad-jt.lead .ad-how .ad-how-r { font-size: 13px; grid-template-columns: minmax(0, 2fr) minmax(24px, .8fr) 40px 34px 34px; gap: 6px; }
@media (max-width: 1100px) { .ad-jt.lead { grid-template-columns: minmax(0, 1fr); grid-template-areas: "h" "n" "bar" "d" "body" "r"; } .ad-jt.lead > .ad-jt-body { grid-template-columns: minmax(0, 1fr); } }
/* durante o print */
.ad-shooting { box-shadow: none !important; }
.ad-shot-foot { margin-top: 12px; font-size: 12px; color: #6b6f7a; text-align: right; }
.ad-jgrid { grid-template-columns: repeat(var(--jn, 3), minmax(0, 1fr)); }
.ad-mx-r { grid-template-columns: minmax(0, 1fr) 50px 46px 46px; }
@media (max-width: 1250px) { .ad-jgrid { grid-template-columns: repeat(min(var(--jn, 2), 2), minmax(0, 1fr)); } }
@media (max-width: 760px) { .ad-jgrid { grid-template-columns: minmax(0, 1fr); } }
.ad-mx-r .l .ls { display: none; }
.ad-jt:not(.lead) .ad-mx-r .l .lf { display: none; } .ad-jt:not(.lead) .ad-mx-r .l .ls { display: inline; }
.ad-jt:not(.lead) .ad-mx { padding: 2px 8px; }
.ad-jt:not(.lead) .ad-mx-r { grid-template-columns: minmax(0, 1fr) 46px 44px 44px; }
/* planejamento da planilha (LH) */
.plan-p { padding: 14px 18px; }
.plan-h { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; font-size: 14px; }
.plan-h > b { font-size: 16px; } .plan-h > span { color: var(--ink-2, #4a4e59); flex: 1 1 260px; } .plan-h em { color: #c0392b; font-style: normal; }
.plan-h .btn-ghost { text-decoration: none; }
.plan-cs { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 10px; }
.plan-c { padding: 6px 12px; border-radius: 999px; font-size: 13px; background: #f0f0f3; cursor: help; }
.plan-c b { font-weight: 800; }
.plan-c.ok { background: #e6f5ee; color: #1f6b48; } .plan-c.warn { background: #fff4d6; color: #7a5800; }
.plan-c.info { background: #eaf2fd; color: #1d4f99; } .plan-c.bad { background: #fdecea; color: #a52a1e; }
.plan-c.zero { opacity: .55; }
.plan-p.err .plan-h > span { color: #a52a1e; }
/* barra lateral: nunca rola para o lado; campos longos empilhados */
.side { overflow-x: hidden; }
.settings label.stack { display: flex; flex-direction: column; align-items: stretch; gap: 4px; }
.settings label.stack input { width: 100%; min-width: 0; box-sizing: border-box; text-overflow: ellipsis; }
.shift-l.late { box-shadow: inset 0 0 0 1.5px var(--bad); }
/* LH: coluna Destino nas chegadas + filtro junto da lista */
.lh-row:not(.out) { grid-template-columns: 108px minmax(160px, 1.4fr) minmax(90px, 1fr) minmax(90px, 1fr) minmax(90px, 1fr) 92px 96px 56px 92px 92px 64px; }
.rev-t { color: #7b3fbf; }
.view-sw { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.lh-fbar { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.lh-fbar .sb-l { font-size: 13px; font-weight: 700; color: var(--ink-2, #4a4e59); }
.lh-fbar .pills button.rev .tag-rev { margin-right: 4px; }
.lh-row:not(.out) { grid-template-columns: 100px minmax(150px, 1.3fr) minmax(80px, 1fr) minmax(76px, .8fr) minmax(80px, .9fr) 84px 96px 48px 84px 84px 58px; gap: 8px; }
.aa-cuts label { display: flex; align-items: center; gap: 6px; flex-wrap: nowrap; }
.aa-cuts label input[type="time"] { width: 84px; min-width: 0; padding-left: 6px; padding-right: 4px; }
.aa-cuts small { display: block; margin-top: 4px; }
.lh-row:not(.out) { grid-template-columns: 108px minmax(172px, 1.4fr) minmax(96px, 1fr) minmax(90px, .9fr) 96px 100px 58px 92px 92px 64px; gap: 10px; }
@media (max-width: 1280px) {
  .lh-row:not(.out) { grid-template-columns: 110px 1.5fr 1fr 1fr 96px 90px 64px; }
  .lh-row:not(.out) > :nth-child(n+5):nth-child(-n+7) { display: none; }
  .lh-row:not(.out) > :nth-child(4), .lh-row:not(.out) > :nth-child(8), .lh-row:not(.out) > :nth-child(9), .lh-row:not(.out) > :nth-child(10) { display: revert; }
}
.aa-cuts label input[type="time"] { width: 90px; }
/* ===== v5.14 — barra lateral em grupos + painel de configurações ===== */
nav { display: grid; gap: 4px; }
.nav-g { border-radius: var(--r-md); }
.nav-gh { all: unset; box-sizing: border-box; width: 100%; display: flex; align-items: center; gap: 10px; padding: 9px 10px; border-radius: var(--r-md); cursor: pointer;
  font-size: 13px; font-weight: 700; color: var(--ink-2); }
.nav-gh:hover { background: #eef0f4; color: var(--ink); }
.nav-gh:focus-visible { outline: 2px solid var(--orange); outline-offset: 1px; }
.nav-gh > svg:first-child { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; flex: none; }
.nav-gh span { flex: 1; }
.nav-gh .chev { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; transition: transform .15s; }
.nav-g.open .nav-gh .chev { transform: rotate(180deg); }
.nav-g.cur > .nav-gh { color: var(--orange); }
.nav-gi { display: none; padding: 2px 0 6px 10px; margin-left: 18px; border-left: 1px solid var(--line); }
.nav-g.open .nav-gi { display: grid; gap: 2px; }
.nav-gi a { padding: 8px 10px; font-size: 14px; }
.nav-gi a svg { width: 17px; height: 17px; }
.cfg-btn { all: unset; box-sizing: border-box; margin-top: auto; display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: var(--r-md);
  border: 1px solid var(--line); background: var(--surface); font-size: 14px; font-weight: 700; color: var(--ink-2); cursor: pointer; }
.cfg-btn:hover { color: var(--orange); border-color: #f6c2b4; }
.cfg-btn:focus-visible { outline: 2px solid var(--orange); }
.cfg-btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; }
.side { display: flex; flex-direction: column; }
.cfg-modal { position: fixed; inset: 0; z-index: 100; background: rgba(20, 20, 30, .38); display: grid; place-items: center; padding: 24px; }
.cfg-modal[hidden] { display: none; }
.cfg-box { width: min(760px, 100%); max-height: min(640px, 100%); display: flex; flex-direction: column; background: var(--surface); border-radius: 20px; box-shadow: 0 20px 60px rgba(20,20,30,.25); overflow: hidden; }
.cfg-hd { display: flex; align-items: center; justify-content: space-between; padding: 18px 22px 12px; }
.cfg-hd h2 { margin: 0; font-size: 20px; }
.cfg-x { all: unset; cursor: pointer; width: 34px; height: 34px; display: grid; place-items: center; border-radius: 50%; font-size: 24px; color: var(--ink-2); }
.cfg-x:hover { background: #f0f1f4; }
.cfg-body { flex: 1; min-height: 0; display: grid; grid-template-columns: 180px minmax(0, 1fr); border-top: 1px solid var(--line); }
.cfg-tabs { display: grid; align-content: start; gap: 4px; padding: 14px 10px; background: #f8f9fb; border-right: 1px solid var(--line); }
.cfg-tabs button { all: unset; cursor: pointer; padding: 10px 12px; border-radius: 10px; font-size: 14px; font-weight: 600; color: var(--ink-2); }
.cfg-tabs button:hover { background: #eef0f4; }
.cfg-tabs button.on { background: var(--surface); color: var(--orange); font-weight: 800; box-shadow: 0 0 0 1px var(--line); }
.cfg-tabs button:focus-visible { outline: 2px solid var(--orange); }
.cfg-panes { overflow: auto; padding: 18px 22px; }
.cfg-pane { display: none; } .cfg-pane.on { display: grid; gap: 4px; }
.cfg-pane h3 { margin: 0; font-size: 17px; } .cfg-pane > p { margin: 2px 0 10px; color: var(--ink-3); font-size: 13px; }
.cfg-f { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 12px 0; border-top: 1px solid var(--line); font-size: 14px; font-weight: 600; color: var(--ink); }
.cfg-f > span:first-child { display: grid; gap: 2px; }
.cfg-f small { font-size: 12px; font-weight: 500; color: var(--ink-3); }
.cfg-f input, .cfg-f select { width: 110px; padding: 8px 10px; border: 1px solid var(--line); border-radius: 10px; background: #fff; font: inherit; font-weight: 600; text-align: right; }
.cfg-f input[type="time"] { width: 104px; text-align: left; }
.cfg-f select { text-align: left; }
.cfg-f.wide { flex-direction: column; align-items: stretch; gap: 8px; }
.cfg-f.wide input { width: 100%; box-sizing: border-box; text-align: left; font-weight: 500; }
.cfg-u { display: inline-flex; align-items: center; gap: 6px; font-weight: 500; color: var(--ink-2); white-space: nowrap; }
.cfg-u input { width: 70px; }
.cfg-note { margin: 8px 0 0; padding: 10px 12px; border-radius: 10px; background: #f8f9fb; font-size: 13px; color: var(--ink-2); }
.cfg-ft { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 22px; border-top: 1px solid var(--line); color: var(--ink-3); }
@media (max-width: 620px) { .cfg-body { grid-template-columns: minmax(0, 1fr); } .cfg-tabs { grid-auto-flow: column; overflow-x: auto; border-right: 0; border-bottom: 1px solid var(--line); } }
/* resumo do processamento na tela AutoAdd */
.aa-cuts { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.aa-cuts > b { font-weight: 700; color: var(--ink); }
.aa-cuts-ed { all: unset; cursor: pointer; margin-left: auto; color: var(--orange); font-weight: 700; }
.aa-cuts-ed:hover { text-decoration: underline; }
/* filtros sempre perto dos dados: barra de turno acompanha a rolagem */
.shiftbar { position: sticky; top: 70px; z-index: 9; background: var(--bg); padding: 8px 0; margin-bottom: 6px; }
.view-sw { position: sticky; top: 70px; z-index: 8; background: var(--bg); padding: 8px 0; }
.side .ws { margin-top: 10px; }
/* saídas: Origem + chegada no hub (ETA) */
.lh-row.out { grid-template-columns: 132px minmax(160px, 1.3fr) minmax(100px, 1fr) minmax(100px, 1fr) minmax(100px, 1fr) 104px 76px 92px 92px; gap: 10px; }
.lh-row.out .lh-st { white-space: nowrap; }
.lh-col small.bad-t { color: var(--bad); font-weight: 700; }
@media (max-width: 1280px) {
  .lh-row.out { grid-template-columns: 124px 1.4fr 1fr 1fr 100px 88px 88px; }
  .lh-row.out > :nth-child(n) { }
  .lh-row.out > :nth-child(5), .lh-row.out > :nth-child(7) { display: none; }
  .lh-row.out > :nth-child(4), .lh-row.out > :nth-child(9) { display: revert; }
}
.lh-row.out { grid-template-columns: 132px minmax(176px, 1.3fr) minmax(96px, .9fr) minmax(128px, 1.2fr) minmax(84px, .8fr) 104px 76px 88px 88px; }
.pl-sub .tag-rev, .pl-sub .tag-tr { margin-left: 6px; vertical-align: 1px; }
.lh-trip .pl-sub { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
@media (max-width: 1280px) { .lh-row.out { grid-template-columns: 124px minmax(170px, 1.4fr) 1fr minmax(120px, 1.2fr) 100px 84px 84px; } }
/* nomes de estação (Origem / Destino) quebram linha em vez de cortar */
.lh-row > :nth-child(3) b, .lh-row > :nth-child(4) b { white-space: normal; line-height: 1.2; overflow: visible; text-overflow: clip; }
#lhIn, #lhOut, #lhGone, #lhFc, #rotas, #ranking, #ritmo, #historico { scroll-margin-top: 130px; }
/* ===== Sem padrão (AutoAdd) ===== */
.aa-tag.sp, .ad-tag.g-sp { background: #e2f2f7; color: #0b6e8a; } .aa-card.sp { box-shadow: inset 3px 0 0 #0b6e8a; } .sw.sp { background: #0b6e8a; }
.ad-sp { border: 1px solid #bfe0ea; }
.ad-sp h3 { display: flex; align-items: center; gap: 8px; }
.sp-badge { background: #0b6e8a; color: #fff; border-radius: 999px; padding: 2px 10px; font-size: 14px; }
.sp-list { display: grid; gap: 10px; margin-top: 6px; }
.sp-g { border-radius: 14px; background: #f5fafc; padding: 12px 14px; border: 1px solid #dcebf0; }
.sp-gh { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; font-size: 14px; }
.sp-gh > b { font-size: 16px; } .sp-gh > small { color: var(--ink-2); font-size: 13px; }
.sp-gh .shift { font-style: normal; margin: 0 2px 0 6px; }
.sp-n { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: #0b6e8a; color: #fff; font-weight: 800; font-size: 13px; flex: none; }
.sp-act { margin-left: auto; display: flex; gap: 6px; }
.sp-seq { display: flex; align-items: stretch; gap: 6px; flex-wrap: wrap; margin: 10px 0 6px; }
.sp-st { display: flex; flex-direction: column; gap: 1px; min-width: 0; max-width: 230px; background: #fff; border: 1px solid #dcebf0; border-radius: 10px; padding: 6px 10px; font-size: 13px; }
.sp-st b { font-weight: 800; color: var(--ink); } .sp-st small { color: #0b6e8a; font-weight: 700; font-size: 12px; }
.sp-st em { font-style: normal; font-size: 12px; color: var(--ink-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sp-st.a { background: #0b6e8a; border-color: #0b6e8a; } .sp-st.a b, .sp-st.a small { color: #fff; }
.sp-ar { align-self: center; color: #7fb3c4; font-weight: 800; }
.sp-ex { margin: 0; font-size: 12px; color: var(--ink-3); }
/* base de justificativas cadastradas */
.ad-tag.g-cus, .aa-tag.cus { background: #fbeee4; color: #8a3d12; }
.sp-form { display: grid; grid-template-columns: minmax(220px, 2fr) minmax(170px, 1fr) minmax(170px, 1fr) auto; gap: 10px; align-items: end; margin-top: 10px; padding-top: 10px; border-top: 1px dashed #c9e0e8; }
.sp-form label { display: grid; gap: 4px; font-size: 12px; font-weight: 700; color: var(--ink-2); min-width: 0; }
.sp-form input, .sp-form select { width: 100%; box-sizing: border-box; padding: 8px 10px; border: 1px solid #c9e0e8; border-radius: 10px; background: #fff; font: inherit; font-size: 14px; font-weight: 600; color: var(--ink); }
.sp-form input:focus, .sp-form select:focus { outline: 2px solid #0b6e8a; outline-offset: 0; }
.sp-form .ad-btn { height: 38px; background: #0b6e8a; border-color: #0b6e8a; color: #fff; white-space: nowrap; }
@media (max-width: 1100px) { .sp-form { grid-template-columns: 1fr 1fr; } .sp-form .sp-fj { grid-column: 1 / -1; } }
.sp-base { margin-top: 14px; padding-top: 14px; border-top: 1px solid #dcebf0; }
.sp-bh { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; } .sp-bh > b { font-size: 16px; } .sp-bh > small { color: var(--ink-3); }
.sp-imp { cursor: pointer; }
.sp-rules { display: grid; gap: 8px; margin-top: 10px; }
.sp-rule { display: grid; grid-template-columns: minmax(200px, 1fr) minmax(0, 2fr) auto; gap: 12px; align-items: center; padding: 10px 12px; border-radius: 12px; background: #fffaf6; border: 1px solid #f1dccb; }
.sp-rl { display: grid; gap: 2px; min-width: 0; } .sp-rl b { color: #8a3d12; } .sp-rl small { color: var(--ink-3); font-size: 12px; }
.sp-seq.sm { margin: 0; } .sp-seq.sm .sp-st { padding: 4px 8px; } .sp-seq.sm .sp-st i { font-style: normal; color: #b4531f; font-size: 11px; }
.ad-btn.danger { color: #b3261e; border-color: #efc4c0; }
@media (max-width: 1100px) { .sp-rule { grid-template-columns: 1fr; } }
/* ===== Exceções: Não coube ===== */
.nc-bar { padding: 14px 18px; position: sticky; top: 70px; z-index: 8; }
.nc-filt { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.nc-filt .sb-l { font-weight: 800; color: var(--ink-2); }
.nc-filt .pills button span { margin-left: 6px; }
.nc-rs { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 700; color: var(--ink-2); }
.nc-rs input { width: 70px; padding: 7px 8px; border: 1px solid var(--line); border-radius: 10px; font: inherit; font-weight: 700; }
.nc-sp { flex: 1; }
.nc-auto { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 600; color: var(--ink-2); }
.nc-stop { background: #b3261e !important; border-color: #b3261e !important; }
.nc-err { margin: 10px 0 0; padding: 10px 12px; border-radius: 10px; background: #fdecea; color: #a52a1e; font-weight: 600; }
.nc-prog { display: flex; align-items: center; gap: 12px; margin-top: 12px; font-size: 13px; color: var(--ink-2); }
.nc-pbar { flex: 1; height: 10px; border-radius: 999px; background: #eef0f4; overflow: hidden; }
.nc-pbar i { display: block; height: 100%; background: var(--orange); border-radius: 999px; transition: width .2s; }
.nc-kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.nc-k { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 14px 16px; display: grid; gap: 2px; }
.nc-k b { font-size: 32px; line-height: 1.1; } .nc-k span { font-weight: 700; } .nc-k small { color: var(--ink-3); font-size: 12px; }
.nc-k.ok b { color: #1f8a5b; } .nc-k.bad b { color: #c0392b; }
.nc-act { display: flex; gap: 8px; flex-wrap: wrap; }
.nc-t td, .nc-t th { white-space: nowrap; } .nc-t td small { color: var(--ink-3); white-space: normal; }
.nc-r { font-weight: 700; color: var(--ink-3); } .nc-r.ok { color: #1f8a5b; } .nc-r.bad { color: #c0392b; }
.nc-log { margin: 0; max-height: 240px; overflow: auto; font-size: 12px; line-height: 1.5; background: #f8f9fb; border-radius: 10px; padding: 10px 12px; }
@media (max-width: 900px) { .nc-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.nc-t th, .nc-t td { text-align: left; } .nc-t td small { display: block; margin-top: 2px; }
/* motivos (dropdown) e velocidade */
.nc-rdd { position: relative; }
.nc-rbtn { all: unset; box-sizing: border-box; cursor: pointer; display: inline-flex; align-items: center; gap: 8px; padding: 8px 12px; border: 1px solid var(--line); border-radius: 12px; background: #fff; font-size: 14px; max-width: 360px; }
.nc-rbtn b { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .nc-rbtn i { font-style: normal; color: var(--ink-3); }
.nc-rbtn:focus-visible { outline: 2px solid var(--orange); }
.nc-pop { position: absolute; top: calc(100% + 6px); left: 0; z-index: 30; width: min(520px, 90vw); background: #fff; border: 1px solid var(--line); border-radius: 16px; box-shadow: 0 16px 40px rgba(20,20,30,.18); padding: 12px; display: grid; gap: 8px; }
.nc-pt { margin: 4px 2px 0; font-size: 12px; font-weight: 800; color: var(--ink-3); }
.nc-rl { display: grid; gap: 4px; max-height: 260px; overflow: auto; }
.nc-ri { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 10px; cursor: pointer; } .nc-ri:hover { background: #f6f7f9; }
.nc-ri span { flex: 1; display: grid; } .nc-ri small, .nc-radd small { color: var(--ink-3); font-size: 12px; }
.nc-rx { all: unset; cursor: pointer; width: 24px; height: 24px; display: grid; place-items: center; border-radius: 50%; color: var(--ink-3); font-size: 18px; } .nc-rx:hover { background: #fdecea; color: #b3261e; }
.nc-radd { all: unset; box-sizing: border-box; cursor: pointer; display: grid; padding: 8px 10px; border: 1px dashed #f3b9a8; border-radius: 10px; } .nc-radd:hover { background: #fff6f3; } .nc-radd b { color: var(--orange); }
.nc-pf { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; padding-top: 8px; border-top: 1px solid var(--line); }
.nc-man { display: inline-flex; gap: 6px; margin-left: auto; } .nc-man input { padding: 7px 8px; border: 1px solid var(--line); border-radius: 10px; font: inherit; width: 70px; } .nc-man input[type="text"] { width: 150px; }
.nc-spd { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 700; color: var(--ink-2); }
.nc-spd select { padding: 7px 8px; border: 1px solid var(--line); border-radius: 10px; font: inherit; font-weight: 600; background: #fff; }
.nc-filt .btn:disabled { opacity: .45; cursor: not-allowed; }
.nc-er { display: inline-block; padding: 1px 8px; border-radius: 999px; font-size: 12px; font-weight: 700; font-style: normal; background: #f0f0f3; color: #4a4e59; }
.nc-er.s1 { background: #fff4d6; color: #7a5800; } .nc-er.s2 { background: #e6f5ee; color: #1f6b48; }
.nc-oth span { display: block; font-size: 12px; color: var(--ink-2); white-space: nowrap; }
.nc-t tr.done td { color: var(--ink-3); } .nc-t tr.done td b { color: var(--ink-2); }
/* modo automático */
.nc-gh { padding: 14px 18px; border: 1px solid var(--line); }
.nc-gh.on { border-color: #b7e4cc; background: linear-gradient(0deg, #fff, #f3fbf6); }
.nc-gh-h { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.nc-gh-t { flex: 1; display: grid; gap: 2px; min-width: 260px; } .nc-gh-t b { font-size: 15px; } .nc-gh-t small { color: var(--ink-2); font-size: 13px; }
.nc-gh.on .nc-gh-t b { color: #1f6b48; }
.nc-sw { position: relative; width: 44px; height: 24px; flex: none; cursor: pointer; } .nc-sw input { opacity: 0; width: 0; height: 0; position: absolute; }
.nc-sw i { position: absolute; inset: 0; border-radius: 999px; background: #c9ccd3; transition: background .15s; }
.nc-sw i::after { content: ''; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; transition: transform .15s; box-shadow: 0 1px 3px rgba(0,0,0,.2); }
.nc-sw input:checked + i { background: #1f9e62; } .nc-sw input:checked + i::after { transform: translateX(20px); }
.nc-sw input:focus-visible + i { outline: 2px solid var(--orange); outline-offset: 2px; }
.nc-gh-b { margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--line); display: grid; gap: 10px; }
.nc-gh-f { display: flex; gap: 16px; flex-wrap: wrap; align-items: center; font-size: 13px; font-weight: 600; color: var(--ink-2); }
.nc-gh-f label { display: inline-flex; align-items: center; gap: 6px; }
.nc-gh-f input[type="time"], .nc-gh-f input[type="number"], .nc-gh-f select { padding: 6px 8px; border: 1px solid var(--line); border-radius: 10px; font: inherit; background: #fff; }
.nc-gh-f input[type="number"] { width: 80px; }
.nc-gh-s { margin: 0; font-size: 13px; color: var(--ink-2); display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.nc-gh-n { margin: 0; font-size: 12px; color: var(--ink-3); }
.btn.sm { padding: 5px 10px; font-size: 12px; }
.nc-gl td small { display: inline; color: var(--ink-3); }
.inv-prog .btn.sm { margin-left: 10px; } .inv-prog.ready { background: #e6f5ee; color: #1f6b48; padding: 10px 12px; border-radius: 12px; display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.nc-run { color: #1f6b48; } .nc-gprog { margin-top: 10px; } .nc-gstop { color: #b3261e; border-color: #efc4c0; }

.ad-diag { border: 0; background: #f0f0f3; color: var(--ink-2); font: inherit; font-size: 12.5px; font-weight: 700; padding: 2px 8px; border-radius: 999px; cursor: pointer; }
.ad-diag:hover { background: #e4e5ea; color: var(--ink); }

.sp-old { align-self: center; margin-left: 6px; font-size: 11.5px; font-weight: 700; color: #9a5b00; }

/* sincronização com a planilha AUTOADD */
.sp-sync { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin: 8px 0 10px; padding: 8px 12px; border-radius: 10px; font-size: 12.5px; font-weight: 600; background: #f0f0f3; color: var(--ink-2); }
.sp-sync span { flex: 1; min-width: 220px; }
.sp-sync.ok { background: #e7f5ec; color: #1d6b3a; }
.sp-sync.err { background: #fdecea; color: #a8261b; }
.sp-sync.busy { background: #fff6df; color: #8a5a00; }
.cfg-note.sp-sync { display: block; }
.cfg-steps { margin: 0 0 14px; padding-left: 20px; display: grid; gap: 8px; font-size: 13px; line-height: 1.5; color: var(--ink-2); }
.cfg-steps .ad-btn { margin-left: 6px; vertical-align: middle; }

/* conta das linhas da Análise AutoAdd */
.ad-recon { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 6px 0 2px; font-size: 13.5px; }
.ad-recon > span { color: var(--ink-3, #8a8f98); font-weight: 700; }
.ad-recon button { border: 0; background: #f0f0f3; color: var(--ink); font: inherit; font-weight: 700; padding: 3px 10px; border-radius: 999px; cursor: pointer; }
.ad-recon button:hover { background: #e4e5ea; }
.ad-recon button small { font-weight: 600; color: var(--ink-2); }
.ad-recon2 { font-size: 12.5px; color: var(--ink-2); margin: 4px 0 0; }
.ad-recon2 button { border: 0; background: none; padding: 0; font: inherit; font-weight: 700; color: var(--ink); text-decoration: underline; cursor: pointer; }

.oat { color: #b4531f; font-weight: 700; }
.ok-t { color: #1d6b3a; font-weight: 700; }
.aa-row small.oat, .aa-row small.ok-t { display: block; }

/* total de pacotes da Análise AutoAdd — primeiro bloco do painel */
.ad-tot { background: #fff; margin-top: -16px; padding: 14px 24px 18px; display: grid; grid-template-columns: minmax(180px, 220px) 1fr; gap: 22px; align-items: center; border-top: 1px solid #f0f0f3; }
.ad-tot-n { display: flex; flex-direction: column; gap: 2px; padding: 16px 18px; border-radius: 18px; background: #1f2229; color: #fff; }
.ad-tot-n span { font-size: 13px; font-weight: 700; color: #c9ccd3; }
.ad-tot-n b { font-size: 54px; line-height: 1; font-weight: 800; letter-spacing: -.03em; }
.ad-tot-n small { margin-top: 8px; font-size: 13px; font-weight: 700; color: #e6e7ea; display: flex; align-items: center; gap: 12px; white-space: nowrap; }
.ad-tot-n small span { display: inline-flex; align-items: center; gap: 5px; }
.ad-tot-n small.nt { margin-top: 4px; font-size: 11.5px; color: #b9bcc4; white-space: normal; }
.ad-tot-r { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.ad-tot-bar { display: flex; gap: 3px; height: 30px; border-radius: 10px; overflow: hidden; }
.ad-tot-bar button { border: 0; min-width: 6px; color: #fff; font: inherit; font-size: 12.5px; font-weight: 800; cursor: pointer; padding: 0 8px; text-align: left; }
.ad-tot-bar button:hover { filter: brightness(1.08); }
.ad-tot-leg { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 8px; }
.ad-tot-leg button { border: 0; background: #f6f6f8; border-radius: 14px; padding: 11px 13px; font: inherit; text-align: left; cursor: pointer; display: grid; grid-template-columns: 12px 1fr auto; column-gap: 8px; row-gap: 5px; align-items: center; color: var(--ink); }
.ad-tot-leg button:hover { background: #eeeff2; }
.ad-tot-leg button.on { box-shadow: 0 0 0 2px var(--ink); }
.ad-tot-leg i { width: 12px; height: 12px; border-radius: 4px; }
.ad-tot-leg .t { font-size: 13.5px; font-weight: 700; }
.ad-tot-leg b { font-size: 24px; font-weight: 800; line-height: 1; }
.ad-tot-leg .m { grid-column: 2 / 4; display: flex; flex-wrap: wrap; gap: 6px; align-items: center; font-size: 11.5px; font-weight: 700; color: var(--ink-2); }
.ad-tot-leg .m strong { color: var(--ink); }
.ad-tot-leg .m span { background: #fff; padding: 1px 7px; border-radius: 999px; }
.ad-tot-leg .m em { font-style: normal; font-size: 10.5px; font-weight: 800; color: #b8321a; background: #fdecea; padding: 1px 7px; border-radius: 999px; }
.ad-tot-leg .d { grid-column: 2 / 4; font-size: 11.5px; color: var(--ink-2); line-height: 1.35; }
.ad-tot-sum { margin: 0; font-size: 13px; color: var(--ink-2); }
.ad-tot-sum b { color: var(--ink); }
.ad-tot-sum button { border: 0; background: none; padding: 0; font: inherit; font-weight: 700; color: var(--ink); text-decoration: underline; cursor: pointer; }
.ad-tot + .ad-kpis { margin-top: 0; }
@media (max-width: 760px) { .ad-tot { grid-template-columns: 1fr; } }

/* Não analisadas: justificativa manual por BR */
.sp-diag { margin-top: 14px; padding-top: 14px; border-top: 1px dashed #e1e2e7; display: flex; flex-direction: column; gap: 10px; }
.sp-diag .sp-n { background: #a4a8b1; }
.sp-diag .sp-ex b[data-invbr] { cursor: pointer; text-decoration: underline dotted; }
.sp-man { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; font-size: 12.5px; }
.sp-man span { background: #f0f0f3; border-radius: 999px; padding: 3px 4px 3px 10px; font-weight: 700; display: inline-flex; gap: 6px; align-items: center; }
.sp-man button { border: 0; background: #fff; border-radius: 999px; padding: 2px 8px; font: inherit; font-size: 11px; cursor: pointer; color: #a8261b; }

/* ---------- Rastreio de Não coube ---------- */
.ncb-at { font-size: 12.5px; color: var(--ink-2); font-weight: 600; }
.ncb-kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 12px; }
.ncb-k { border: 0; text-align: left; font: inherit; cursor: pointer; background: var(--surface); border-radius: var(--r-lg); padding: 16px 18px; box-shadow: 0 0 0 1px var(--line); display: grid; gap: 3px; color: var(--ink); }
.ncb-k b { font-size: 34px; font-weight: 800; line-height: 1; letter-spacing: -.02em; }
.ncb-k span { font-size: 13.5px; font-weight: 700; }
.ncb-k small { font-size: 12px; color: var(--ink-2); }
.ncb-k:hover { box-shadow: 0 0 0 1px var(--ink-3, #b9bcc4); }
.ncb-k.on { box-shadow: 0 0 0 2px var(--ink); }
.ncb-k.main { background: #1f2229; color: #fff; } .ncb-k.main small { color: #c9ccd3; }
.ncb-k.hub b { color: #d4381c; }
.ncb-grid { display: grid; grid-template-columns: minmax(280px, 1fr) minmax(320px, 1.4fr); gap: 16px; }
@media (max-width: 1000px) { .ncb-grid { grid-template-columns: 1fr; } }
.ncb-grid > .panel { margin: 0; }
.ncb-days { display: flex; gap: 10px; align-items: flex-end; height: 210px; padding: 22px 4px 0; }
.ncb-day { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 4px; height: 100%; min-width: 0; }
.ncb-col { flex: 1; width: 100%; max-width: 38px; display: flex; align-items: flex-end; }
.ncb-col i { width: 100%; background: #dfe1e6; border-radius: 6px 6px 2px 2px; display: flex; align-items: flex-end; overflow: hidden; }
.ncb-col em { width: 100%; background: #ee4d2d; }
.ncb-day b { font-size: 13px; } .ncb-day small { font-size: 11px; color: var(--ink-2); }
.ncb-areas { display: flex; flex-direction: column; gap: 4px; }
.ncb-ar { border: 0; background: none; font: inherit; color: var(--ink); cursor: pointer; display: grid; grid-template-columns: minmax(120px, 1.1fr) 2fr 44px 80px; gap: 10px; align-items: center; padding: 6px 8px; border-radius: 10px; text-align: left; }
.ncb-ar:hover { background: #f4f5f7; } .ncb-ar.on { background: #fdecea; }
.ncb-ar .t { font-size: 13px; font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ncb-ar .t small { font-weight: 500; color: var(--ink-2); }
.ncb-ar .b { height: 10px; background: #f0f0f3; border-radius: 999px; overflow: hidden; }
.ncb-ar .b i { display: block; height: 100%; background: #dfe1e6; border-radius: 999px; overflow: hidden; }
.ncb-ar .b em { display: block; height: 100%; background: #ee4d2d; }
.ncb-ar > b { text-align: right; font-size: 14px; } .ncb-ar > small { font-size: 11.5px; color: #b8321a; font-weight: 700; }
.ncb-cap { display: flex; flex-wrap: wrap; gap: 10px; padding: 12px; margin-bottom: 12px; background: #f6f6f8; border-radius: 12px; align-items: flex-end; }
.ncb-cap label { display: grid; gap: 3px; font-size: 12px; font-weight: 700; color: var(--ink-2); }
.ncb-cap input { width: 110px; padding: 6px 8px; border: 1px solid var(--line); border-radius: 8px; font: inherit; }
.ncb-capn { flex-basis: 100%; font-size: 12px; color: var(--ink-2); margin: 4px 0 0; }
.ncb-rg { border: 1px solid var(--line); border-radius: 14px; padding: 12px 14px; }
.ncb-rh { display: flex; align-items: baseline; gap: 8px; margin-bottom: 8px; flex-wrap: wrap; }
.ncb-rh b { font-size: 15px; } .ncb-rh small { color: var(--ink-2); }
.ncb-rh .ncb-n { margin-left: auto; font-size: 12px; font-weight: 800; color: #b8321a; background: #fdecea; padding: 2px 9px; border-radius: 999px; }
.ncb-ct { width: 100%; border-collapse: collapse; font-size: 12.5px; }
.ncb-ct th { text-align: left; font-size: 11px; color: var(--ink-2); font-weight: 700; padding: 4px 6px; border-bottom: 1px solid var(--line); }
.ncb-ct td { padding: 6px; border-bottom: 1px solid #f2f2f4; }
.ncb-ct .r { text-align: right; }
.ncb-ct tr.best td { background: #f2faf5; }
.ncb-best { display: block; width: fit-content; margin-top: 2px; font-family: inherit; font-size: 10.5px; font-weight: 800; color: #1d6b3a; background: #dff3e7; padding: 1px 6px; border-radius: 999px; }
.ncb-ld { font-weight: 700; color: #1d6b3a; }
.ncb-ct b.ok { color: #1d6b3a; } .ncb-ct b.mid { color: #9a5b00; } .ncb-ct b.bad { color: #a8261b; }
.ncb-none { font-size: 12.5px; color: var(--ink-2); margin: 4px 0; }
.ncb-sit { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 700; white-space: nowrap; }
.ncb-sit::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--c); }
.ncb-sub { display: block; font-size: 11px; color: var(--ink-2); font-family: inherit; }
.ncb-old { color: #b8321a; font-weight: 800; }
.ncb-last { max-width: 260px; font-size: 12px; }
.ncb-br { cursor: copy; } .ncb-br.cp { color: #1d6b3a; }
.ncb-ct td, .ncb-ct th { text-align: left; }
.ncb-ct td.r, .ncb-ct th.r { text-align: right; }
.ncb-t td { white-space: normal; vertical-align: top; }
.ncb-t td.mono, .ncb-t .mono { white-space: nowrap; }
.ncb-sub { font-family: 'Poppins', system-ui, sans-serif !important; white-space: normal; }
.ncb-last { white-space: normal !important; max-width: 240px; word-break: break-word; }

/* ---- Realocação: tickets de rota (prefixo como a placa do corredor) ---- */
.ncb-rel { display: flex; flex-direction: column; gap: 14px; }
.ncb-area { background: #f6f6f8; border-radius: 18px; padding: 14px 16px 16px; }
.ncb-ah { display: flex; align-items: center; gap: 14px; margin-bottom: 12px; flex-wrap: wrap; }
.ncb-an { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; min-width: 0; flex: 1; }
.ncb-an h3 { margin: 0; font-size: 17px; font-weight: 800; letter-spacing: -.01em; }
.ncb-an span { font-size: 13px; color: var(--ink-2); font-weight: 600; }
.ncb-pile { display: flex; align-items: baseline; gap: 6px; color: #b8321a; }
.ncb-pile b { font-size: 24px; font-weight: 800; line-height: 1; }
.ncb-pile span { font-size: 12.5px; font-weight: 700; }
.ncb-tix { display: grid; grid-template-columns: repeat(auto-fill, minmax(215px, 1fr)); gap: 10px; }
.ncb-tk { position: relative; background: #fff; border-radius: 14px; padding: 12px 14px 12px; display: flex; flex-direction: column; gap: 4px; box-shadow: 0 0 0 1px #e6e7eb; min-width: 0; }
.ncb-tk.best { box-shadow: 0 0 0 2px #ee4d2d; padding-top: 18px; }
.ncb-tk-best { position: absolute; top: -9px; left: 12px; background: #ee4d2d; color: #fff; font-size: 11px; font-weight: 800; padding: 2px 9px; border-radius: 999px; }
.ncb-tk-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 2px; }
.ncb-plate { display: inline-flex; align-items: center; justify-content: center; min-width: 58px; padding: 5px 10px; border-radius: 8px; background: #1f2229; color: #fff; font-weight: 800; font-size: 20px; letter-spacing: .02em; line-height: 1; font-variant-numeric: tabular-nums; }
.ncb-plate.sm { min-width: 0; font-size: 12px; padding: 3px 7px; border-radius: 6px; vertical-align: 1px; }
.ncb-tk-st { font-size: 12px; font-weight: 800; padding: 3px 9px; border-radius: 999px; background: #f0f0f3; color: var(--ink-2); }
.ncb-tk.ld .ncb-tk-st { background: #dff3e7; color: #1d6b3a; }
.ncb-tk-at { font-size: 11.5px; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.ncb-tk-drv { font-size: 13.5px; font-weight: 700; line-height: 1.25; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ncb-tk-meta { font-size: 12.5px; color: var(--ink-2); display: flex; align-items: center; gap: 6px; }
.ncb-tk-meta i { width: 3px; height: 3px; border-radius: 50%; background: currentColor; }
.ncb-tk-cap { margin-top: 6px; padding-top: 8px; border-top: 1px solid #f0f0f3; display: grid; gap: 6px; }
.ncb-tk-n { display: flex; align-items: baseline; gap: 5px; }
.ncb-tk-n b { font-size: 20px; font-weight: 800; line-height: 1; font-variant-numeric: tabular-nums; }
.ncb-tk-n span { font-size: 12px; color: var(--ink-2); }
.ncb-tk-n em { margin-left: auto; font-style: normal; font-size: 12px; font-weight: 800; }
.ncb-tk-n em.ok { color: #1d6b3a; } .ncb-tk-n em.mid { color: #9a5b00; } .ncb-tk-n em.bad { color: #a8261b; } .ncb-tk-n em.na { color: var(--ink-3, #9a9ea6); font-weight: 600; }
.ncb-tk-bar { height: 6px; border-radius: 999px; background: #f0f0f3; overflow: hidden; }
.ncb-tk-bar i { display: block; height: 100%; border-radius: 999px; background: #1f9d6b; }
.ncb-tk-bar i.hi { background: #e8a23a; }

.cfg-cols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px 12px; padding: 14px 0 4px; border-top: 1px solid var(--line); margin-top: 4px; }
.cfg-cols-t { grid-column: 1 / -1; margin: 0; font-size: 12.5px; color: var(--ink-2); line-height: 1.45; }
.cfg-cols-t b { display: block; color: var(--ink); font-size: 13.5px; margin-bottom: 2px; }
.cfg-cols label { display: grid; gap: 4px; font-size: 12.5px; font-weight: 700; color: var(--ink-2); }
.cfg-cols input { padding: 8px 10px; border: 1px solid var(--line); border-radius: 10px; font: inherit; font-size: 14px; font-weight: 700; text-transform: uppercase; width: 100%; }
.cfg-cols .cfg-note { grid-column: 1 / -1; margin: 0; line-height: 1.55; }

.ncb-adh { display: flex; align-items: center; gap: 8px; text-align: right; }
.ncb-adh b { font-size: 28px; font-weight: 800; line-height: 1; }
.ncb-adh span { font-size: 11.5px; color: var(--ink-2); line-height: 1.3; text-align: left; }
.ncb-leg { display: flex; gap: 14px; font-size: 12px; color: var(--ink-2); font-weight: 600; margin: -4px 0 4px; }
.ncb-leg span { display: inline-flex; align-items: center; gap: 6px; }
.ncb-leg i { width: 10px; height: 10px; border-radius: 3px; } .ncb-leg i.t { background: #dfe1e6; } .ncb-leg i.h { background: #ee4d2d; }
.ncb-col i { position: relative; overflow: visible; flex-direction: column; justify-content: flex-end; }
.ncb-col em { position: relative; border-radius: 0 0 2px 2px; display: flex; justify-content: center; align-items: flex-start; }
.ncb-vt { position: absolute; top: -18px; left: 0; right: 0; text-align: center; font-size: 12.5px; font-weight: 800; color: var(--ink); }
.ncb-vh { font-size: 11.5px; font-weight: 800; color: #fff; padding-top: 3px; }
.ncb-ad { font-size: 12.5px; font-weight: 800; } .ncb-ad.ok { color: #1d6b3a; } .ncb-ad.mid { color: #9a5b00; } .ncb-ad.bad { color: #b8321a; }
.ncb-col em:not(:empty) { min-height: 17px; }
.ncb-col i, .ncb-col em, .ncb-vt, .ncb-vh { font-style: normal; }

/* ---------- AutoAdd do dia ---------- */
.aad-day { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 700; color: var(--ink-2); }
.aad-day input { padding: 7px 10px; border: 1px solid var(--line); border-radius: 10px; font: inherit; color: var(--ink); }
.aad-bad { color: #b8321a !important; font-weight: 800; }
.aad-alert { background: #fff1ee; border: 2px solid #ee4d2d; border-radius: var(--r-lg); padding: 16px 18px; }
.aad-al-h { display: flex; align-items: center; gap: 14px; }
.aad-al-h > b { font-size: 40px; font-weight: 800; color: #d4381c; line-height: 1; }
.aad-al-h > div { flex: 1; display: grid; gap: 2px; }
.aad-al-h strong { font-size: 16px; } .aad-al-h span { font-size: 13px; color: var(--ink-2); }
.aad-al-l { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.aad-al-l > span { background: #fff; border-radius: 10px; padding: 6px 10px; display: inline-flex; align-items: center; gap: 8px; font-size: 12.5px; box-shadow: 0 0 0 1px #f6c8bd; }
.aad-al-l i.ncb-plate { font-style: normal; }
.aad-al-l small { color: var(--ink-2); }
.aad-us, .aad-rt { display: flex; flex-direction: column; gap: 4px; }
.aad-u { border: 0; background: none; font: inherit; color: var(--ink); cursor: pointer; display: grid; grid-template-columns: minmax(150px, 1.3fr) 1.5fr 44px 90px; gap: 10px; align-items: center; padding: 7px 8px; border-radius: 10px; text-align: left; }
.aad-u:hover, .aad-r:hover { background: #f4f5f7; } .aad-u.on, .aad-r.on { background: #fdecea; }
.aad-u .t { font-size: 13px; font-weight: 700; display: grid; } .aad-u .t small { font-weight: 500; font-size: 11.5px; color: var(--ink-2); }
.aad-u .b { height: 10px; background: #f0f0f3; border-radius: 999px; overflow: hidden; }
.aad-u .b i { display: block; height: 100%; background: #dfe1e6; border-radius: 999px; overflow: hidden; }
.aad-u .b em { display: block; height: 100%; background: #ee4d2d; }
.aad-u > b { text-align: right; font-size: 15px; } .aad-u > small { font-size: 11.5px; color: var(--ink-2); font-weight: 700; }
.aad-r { border: 0; background: none; font: inherit; color: var(--ink); cursor: pointer; display: grid; grid-template-columns: 70px 1fr auto 70px; gap: 10px; align-items: center; padding: 7px 8px; border-radius: 10px; text-align: left; }
.aad-r.bad { background: #fff1ee; }
.aad-r .ncb-plate { font-size: 15px; min-width: 0; padding: 5px 8px; }
.aad-r .m { display: grid; min-width: 0; } .aad-r .m b { font-size: 12.5px; font-variant-numeric: tabular-nums; } .aad-r .m small { font-size: 11.5px; color: var(--ink-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.aad-r .n { display: grid; text-align: right; } .aad-r .n b { font-size: 16px; } .aad-r .n small { font-size: 11px; color: var(--ink-2); } .aad-r .n em { font-style: normal; color: #b8321a; font-weight: 800; }
.aad-st { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 700; white-space: nowrap; }
.aad-st::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--c); }
.aad-ppl { display: flex; flex-wrap: wrap; gap: 8px; }
.aad-ppl label { display: inline-flex; align-items: center; gap: 8px; padding: 7px 12px; border-radius: 999px; background: #f4f5f7; cursor: pointer; font-size: 13px; font-weight: 700; }
.aad-ppl label.on { background: #fdecea; box-shadow: 0 0 0 1px #ee4d2d; }
.aad-ppl small { font-weight: 600; color: var(--ink-2); font-size: 11.5px; }
.aad-ppl input { accent-color: #ee4d2d; }
tr.aad-left td { background: #fff6f3; }
.ncb-k small em { font-style: normal; }
.aad-al-h .btn + .btn { margin-left: -6px; }
.aad-al-l > span.more { background: none; box-shadow: none; }

.aad-live { display: inline-flex; align-items: center; gap: 7px; font-size: 12.5px; font-weight: 700; color: var(--ink-2); padding: 5px 11px; border-radius: 999px; background: #f0f0f3; cursor: pointer; }
.aad-live.on { background: #e7f5ec; color: #1d6b3a; }
.aad-live input { accent-color: #1f9d6b; }
.aad-pre { background: #1f2229; color: #e8e9ec; border-radius: 12px; padding: 14px; font-size: 12px; max-height: 320px; overflow: auto; white-space: pre-wrap; }

/* ---------- Expedição: troca de visão + Missing por conferente (gerencial) ---------- */
.xv-bar { display: flex; align-items: flex-start; gap: 14px; flex-wrap: wrap; }
.xv-bar > :last-child { flex: 1; min-width: 0; }
.viewsw { display: inline-flex; background: #e9eaee; border-radius: 12px; padding: 3px; flex: none; }
.viewsw button { border: 0; background: none; font: inherit; font-size: 13px; font-weight: 700; color: var(--ink-2); padding: 7px 14px; border-radius: 9px; cursor: pointer; }
.viewsw button.on { background: #fff; color: var(--ink); box-shadow: 0 1px 2px rgba(20, 22, 28, .12); }
.viewsw button:focus-visible { outline: 2px solid #ee4d2d; outline-offset: 1px; }
.mg-load { color: var(--ink-2); font-size: 13px; }
.mg-h { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.mg-h h2 { margin: 0 0 2px; font-size: 20px; letter-spacing: -.01em; }
.mg-h p { margin: 0; font-size: 13px; color: var(--ink-2); max-width: 70ch; }
.mg-act { display: flex; gap: 6px; }
.mg-sum { display: grid; grid-template-columns: auto 1fr; gap: 28px; align-items: center; margin: 18px 0 20px; padding: 18px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.mg-big { display: flex; align-items: center; gap: 14px; }
.mg-big b { font-size: 46px; font-weight: 800; letter-spacing: -.03em; line-height: 1; font-variant-numeric: tabular-nums; }
.mg-big span { font-size: 13px; color: var(--ink-2); line-height: 1.45; }
.mg-big em { display: block; font-style: normal; font-weight: 700; margin-top: 2px; }
.mg-big em.up { color: #c2331a; } .mg-big em.dn { color: #1f8a5b; }
.mg-lead { margin: 0; font-size: 16px; line-height: 1.5; font-weight: 600; color: var(--ink); max-width: 68ch; }
.mg-lead span { display: block; font-size: 13.5px; font-weight: 500; color: var(--ink-2); margin-top: 4px; }
.mg-grid { display: grid; grid-template-columns: 1fr; gap: 22px; }
.mg-side { overflow-x: auto; }
.mg-fig { margin: 0; }
.mg-fun { width: 100%; height: auto; display: block; }
.mg-fun .g { stroke: #eef0f3; } .mg-fun .ax { font-size: 12px; fill: #8a8f98; }
.mg-fun .l95 { fill: none; stroke: #d98a12; stroke-width: 1.5; stroke-dasharray: 5 4; }
.mg-fun .l998 { fill: none; stroke: #c2331a; stroke-width: 1.5; }
.mg-fun .avg { stroke: #1f2229; stroke-width: 1.5; }
.mg-fun .avgt { font-size: 12.5px; font-weight: 700; fill: #1f2229; }
.mg-fun .pt { cursor: pointer; } .mg-fun .pt circle { stroke: #fff; stroke-width: 1.5; }
.mg-fun .pt.sel circle { stroke: #1f2229; stroke-width: 2.5; }
.mg-fun .pl { font-size: 12.5px; font-weight: 700; fill: #1f2229; paint-order: stroke; stroke: #fff; stroke-width: 3px; }
.mg-fig figcaption { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: 12px; color: var(--ink-2); margin-top: 6px; }
.mg-fig figcaption span { display: inline-flex; align-items: center; gap: 6px; }
.mg-fig figcaption i { width: 9px; height: 9px; border-radius: 50%; }
.mg-fig .mg-lg i { width: 16px; height: 0; border-radius: 0; border-top: 1.5px solid #c2331a; }
.mg-fig .mg-lg i.l1 { border-top: 1.5px dashed #d98a12; }
.mg-side h3 { margin: 0; font-size: 15px; } .mg-side > p { margin: 2px 0 10px; font-size: 12.5px; color: var(--ink-2); }
.mg-t { width: 100%; border-collapse: collapse; font-size: 12.5px; font-variant-numeric: tabular-nums; }
.mg-t th { text-align: left; font-size: 11.5px; font-weight: 700; color: var(--ink-2); padding: 0 6px 6px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.mg-t td { padding: 8px 6px; border-bottom: 1px solid #f1f2f4; vertical-align: middle; }
.mg-t .r { text-align: right; }
.mg-t td b { font-weight: 700; } .mg-t td small { display: block; font-size: 11px; color: var(--ink-2); }
.mg-t tr { cursor: pointer; } .mg-t tbody tr:hover td { background: #f7f7f9; } .mg-t tr.sel td { background: #fff3ef; }
.mg-t .pos { color: #c2331a; font-weight: 800; } .mg-t .neg { color: var(--ink-2); }
.mg-c { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; white-space: nowrap; }
.mg-c::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--c); }
.mg-rec { display: flex; align-items: center; gap: 8px; white-space: nowrap; }
.mg-rec span { font-weight: 700; color: var(--ink-2); } .mg-rec span.hot { color: #c2331a; }
.mg-sp { width: 70px; height: 20px; } .mg-sp polyline { fill: none; stroke: #1f2229; stroke-width: 1.5; } .mg-sp .spa { stroke: #c9ccd3; stroke-dasharray: 2 2; }
.mg-na { font-size: 11px; color: var(--ink-3, #9a9ea6); }

.mg-t td, .mg-t th { text-align: left; }
.mg-t td.r, .mg-t th.r { text-align: right; }
.mg-fun text { font-weight: 500; }
.mg-fun .avgt, .mg-fun .pl { font-weight: 700; }
.mg-fun .ax { fill: #8a8f98 !important; }

/* ---- Gerencial em cards (sem gráfico de linhas) ---- */
#mgmt.mg { border-radius: 22px; padding: 22px 24px 20px; }
.mg-top { display: grid; grid-template-columns: minmax(260px, 1.35fr) repeat(3, minmax(150px, 1fr)); gap: 12px; margin: 18px 0 24px; }
.mg-hero { grid-row: span 2; background: #1f2229; color: #fff; border-radius: 20px; padding: 20px 22px; display: flex; flex-direction: column; gap: 4px; justify-content: center; }
.mg-hero span { font-size: 13px; font-weight: 600; color: #c4c7ce; }
.mg-hero b { font-size: 54px; font-weight: 800; letter-spacing: -.035em; line-height: 1.02; font-variant-numeric: tabular-nums; }
.mg-hero small { font-size: 13px; color: #c4c7ce; }
.mg-hero em { margin-top: 10px; font-style: normal; font-size: 12.5px; font-weight: 700; padding: 5px 10px; border-radius: 999px; width: fit-content; }
.mg-hero em.up { background: rgba(238, 77, 45, .22); color: #ffb7a6; } .mg-hero em.dn { background: rgba(31, 138, 91, .25); color: #9fe0bf; }
.mg-tile { background: #f6f6f8; border-radius: 18px; padding: 16px 18px; display: flex; flex-direction: column; justify-content: space-between; gap: 6px; min-height: 92px; }
.mg-tile b { font-size: 32px; font-weight: 800; letter-spacing: -.02em; line-height: 1; font-variant-numeric: tabular-nums; }
.mg-tile b small { font-size: 14px; font-weight: 600; color: var(--ink-2); letter-spacing: 0; }
.mg-tile span { font-size: 12.5px; font-weight: 600; color: var(--ink-2); line-height: 1.35; }
.mg-tile.t-out { background: #fdebe6; } .mg-tile.t-out b { color: #c2331a; }
.mg-tile.t-warn { background: #fdf3e0; } .mg-tile.t-warn b { color: #a86300; }
.mg-top .mg-lead { grid-column: 2 / -1; margin: 0; background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 14px 18px; font-size: 15px; font-weight: 600; line-height: 1.5; max-width: none; align-self: stretch; display: flex; align-items: center; }
@media (max-width: 1000px) { .mg-top { grid-template-columns: 1fr 1fr; } .mg-hero { grid-row: auto; grid-column: 1 / -1; } .mg-top .mg-lead { grid-column: 1 / -1; } }
.mg-sh { margin: 6px 0 12px; font-size: 16px; font-weight: 800; letter-spacing: -.01em; display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.mg-sh small { font-size: 12.5px; font-weight: 500; color: var(--ink-2); }
.mg-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(330px, 1fr)); gap: 12px; margin-bottom: 22px; }
.mg-cards.sm { grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 10px; }
.mg-card { background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 16px 18px; display: flex; flex-direction: column; gap: 12px; cursor: pointer; position: relative; overflow: hidden; }
.mg-card.sm, .mg-cards.sm .mg-card { border-radius: 14px; padding: 12px 14px; gap: 8px; }
.mg-card::before { content: ''; position: absolute; inset: 0 auto 0 0; width: 4px; background: transparent; }
.mg-card.c-out::before { background: #c2331a; } .mg-card.c-warn::before { background: #d98a12; } .mg-card.c-good::before { background: #1f8a5b; }
.mg-card:hover { border-color: #d5d7dd; } .mg-card.sel { border-color: #1f2229; box-shadow: 0 0 0 1px #1f2229; }
.mg-card:focus-visible { outline: 2px solid #ee4d2d; outline-offset: 2px; }
.mg-card header { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.mg-card .who { display: grid; min-width: 0; } .mg-card .who b { font-size: 14px; font-weight: 800; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mg-card .who small { font-size: 11.5px; color: var(--ink-2); }
.mg-badge { flex: none; font-size: 11.5px; font-weight: 800; padding: 4px 9px; border-radius: 999px; color: var(--c); background: color-mix(in srgb, var(--c) 12%, #fff); }
.mg-rate { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.mg-rate b { font-size: 30px; font-weight: 800; letter-spacing: -.02em; line-height: 1; font-variant-numeric: tabular-nums; }
.mg-cards.sm .mg-rate b { font-size: 22px; }
.mg-rate span { font-size: 12.5px; color: var(--ink-2); }
.mg-card.c-out .mg-rate b { color: #c2331a; } .mg-card.c-warn .mg-rate b { color: #a86300; }
.mg-stats { display: grid; grid-template-columns: auto auto 1fr; gap: 6px 18px; align-items: end; }
.mg-cards.sm .mg-stats { grid-template-columns: 1fr 1fr; }
.mg-stats > div { display: grid; gap: 2px; } .mg-stats span { font-size: 11.5px; font-weight: 600; color: var(--ink-2); }
.mg-stats b { font-size: 15px; font-weight: 800; font-variant-numeric: tabular-nums; } .mg-stats b.pos { color: #c2331a; }
.mg-stats .rec { justify-self: end; text-align: right; } .mg-stats .rec small { font-size: 11px; color: var(--ink-2); }
.mg-blk { display: flex; gap: 4px; justify-content: flex-end; }
.mg-blk i { width: 14px; height: 14px; border-radius: 4px; background: #e9eaee; }
.mg-blk i.ok { background: #cfe9db; } .mg-blk i.over { background: #c2331a; } .mg-blk i.na { background: repeating-linear-gradient(45deg, #eef0f3 0 3px, #fff 3px 6px); }
/* régua */
.mg-ru { position: relative; padding: 6px 0 18px; }
.mg-ru-t { display: flex; height: 12px; border-radius: 999px; overflow: hidden; }
.mg-ru-t i { height: 100%; } .mg-ru-t .zg { background: #cfe9db; } .mg-ru-t .zn { background: #e6e7eb; } .mg-ru-t .zw { background: #f6d9a3; } .mg-ru-t .zo { background: #f3b6a6; }
.mg-ru-avg { position: absolute; top: 2px; width: 2px; height: 20px; background: #1f2229; border-radius: 2px; transform: translateX(-1px); }
.mg-ru-pin { position: absolute; top: 0; width: 22px; height: 22px; border-radius: 50%; background: var(--c); border: 3px solid #fff; box-shadow: 0 0 0 1px rgba(31, 34, 41, .18); transform: translateX(-11px); }
.mg-ru-l { position: relative; height: 14px; margin-top: 4px; font-size: 10.5px; color: var(--ink-2); font-weight: 600; }
.mg-ru-l span { position: absolute; transform: translateX(-50%); white-space: nowrap; } .mg-ru-l span:first-child { left: 0; transform: none; }
.mg-empty { background: #eaf6ef; color: #1d6b3a; font-weight: 700; border-radius: 14px; padding: 14px 16px; margin: 0 0 20px; }
.mg-foot { margin: 0; font-size: 12px; color: var(--ink-2); max-width: 90ch; line-height: 1.5; }

.mg-cards.sm .mg-card header { flex-direction: column; gap: 6px; }
.mg-cards.sm .mg-badge { font-size: 11px; padding: 3px 8px; }
.mg-cards.sm .mg-card .who small { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.mg-ru-up { position: relative; height: 14px; font-size: 10.5px; font-weight: 700; color: #a86300; margin-bottom: -4px; }
.mg-ru-up span { position: absolute; transform: translateX(-50%); white-space: nowrap; }

/* ---------- Modo TV (Expedição) ---------- */
body.tv-on { overflow: hidden; }
#tv { position: fixed; inset: 0; z-index: 9999; background: #ee4d2d; overflow: hidden; font-family: 'Poppins', system-ui, sans-serif; color: #fff; cursor: none; }
#tv.cur { cursor: default; }
#tv .n { font-variant-numeric: tabular-nums; letter-spacing: -.02em; }
#tv .ell { display: block; min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.tv-exit { position: absolute; right: 18px; bottom: 18px; z-index: 2; border: 0; border-radius: 999px; padding: 10px 18px; background: #fff; color: #c63b1f; font: 600 14px 'Poppins', sans-serif; cursor: pointer; opacity: 0; transition: opacity .2s; }
#tv.cur .tv-exit, .tv-exit:focus-visible { opacity: 1; }
.tv-stage { position: absolute; left: 50%; top: 50%; width: 1920px; height: 1080px; transform-origin: center; box-sizing: border-box; padding: 34px 44px 26px; display: grid; grid-template-rows: 78px 150px minmax(0, 1fr) 22px; gap: 22px; overflow: hidden; }
.tv-empty { grid-row: 1 / -1; align-self: center; text-align: center; font-size: 40px; font-weight: 700; }
.tv-card { background: #fff; color: #1f2229; border-radius: 26px; box-sizing: border-box; min-width: 0; min-height: 0; overflow: hidden; }
.tv-none { flex: 1; display: flex; align-items: center; justify-content: center; text-align: center; color: #5b5f68; font-size: 20px; font-weight: 600; background: #fff4f0; border-radius: 18px; padding: 20px; }

.tv-h { display: grid; grid-template-columns: 540px minmax(0, 1fr) 190px; align-items: center; gap: 28px; min-width: 0; }
.tv-brand { display: flex; align-items: center; gap: 16px; min-width: 0; }
.tv-logo { width: 62px; height: 62px; flex: none; border-radius: 18px; background: #fff; display: flex; align-items: center; justify-content: center; }
.tv-tt { min-width: 0; display: flex; flex-direction: column; }
.tv-tt b { font-size: 36px; font-weight: 800; line-height: 1.1; white-space: nowrap; }
.tv-tt span { font-size: 16px; font-weight: 500; opacity: .95; }
.tv-goal { min-width: 0; height: 78px; box-sizing: border-box; background: rgba(255,255,255,.16); border-radius: 22px; padding: 0 22px; display: grid; grid-template-columns: auto minmax(120px, 1fr) auto; align-items: center; gap: 20px; }
.tv-goal-t { font-size: 14px; font-weight: 600; line-height: 1.3; white-space: nowrap; display: flex; flex-direction: column; }
.tv-goal-t b { font-size: 19px; font-weight: 800; }
.tv-goal-bar { position: relative; height: 22px; border-radius: 999px; background: rgba(0,0,0,.18); }
.tv-goal-bar i { position: absolute; inset: 0 auto 0 0; border-radius: 999px; background: #fff; }
.tv-goal-bar span { position: absolute; top: -6px; width: 4px; height: 34px; margin-left: -2px; border-radius: 2px; background: #1f2229; }
.tv-goal-v { font-size: 32px; font-weight: 800; white-space: nowrap; display: flex; flex-direction: column; line-height: 1.05; text-align: right; }
.tv-goal-v small { font-size: 14px; font-weight: 600; opacity: .95; letter-spacing: 0; }
.tv-goal:not(:has(.tv-goal-bar)) { grid-template-columns: auto minmax(0, 1fr); }
.tv-clock { text-align: right; }
.tv-clock b { display: block; font-size: 50px; font-weight: 800; line-height: 1; }
.tv-clock span { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 700; margin-top: 6px; white-space: nowrap; }
.tv-clock i { width: 10px; height: 10px; border-radius: 50%; background: #fff; animation: tvPulse 2s ease-in-out infinite; }
@keyframes tvPulse { 50% { opacity: .35; } }
@media (prefers-reduced-motion: reduce) { .tv-clock i { animation: none; } }

.tv-kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; min-height: 0; }
.tv-kpi { padding: 20px 24px; display: flex; flex-direction: column; justify-content: space-between; }
.tv-kpi > span { font-size: 16px; font-weight: 600; color: #5b5f68; }
.tv-kpi > div { display: flex; align-items: baseline; gap: 10px; min-width: 0; white-space: nowrap; }
.tv-kpi > div b { font-size: 54px; font-weight: 800; line-height: 1; }
.tv-kpi > div small { font-size: 21px; font-weight: 600; color: #5b5f68; }
.tv-kpi p { margin: 0; display: flex; align-items: center; gap: 10px; font-size: 15px; font-weight: 600; color: #5b5f68; min-width: 0; }
.tv-kpi p em { flex: none; font-style: normal; font-weight: 700; padding: 4px 12px; border-radius: 999px; }

.tv-main { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 18px; min-height: 0; }
.tv-left { padding: 22px 26px; display: flex; flex-direction: column; gap: 16px; }
.tv-sh { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; flex: none; min-width: 0; }
.tv-sh h2 { margin: 0; font-size: 30px; font-weight: 800; white-space: nowrap; }
.tv-sh span { font-size: 15px; font-weight: 500; color: #5b5f68; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.tv-podium { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; align-items: end; flex: none; }
.tv-pod { display: flex; flex-direction: column; align-items: center; gap: 10px; min-width: 0; }
.tv-av { position: relative; width: 72px; height: 72px; border-radius: 50%; background: #fff1ec; display: flex; align-items: center; justify-content: center; }
.tv-av > span { font-size: 25px; font-weight: 800; color: #ee4d2d; }
.tv-pod.p1 .tv-av { width: 84px; height: 84px; box-shadow: 0 0 0 4px #f5b301; }
.tv-pod.p2 .tv-av { box-shadow: 0 0 0 4px #b4bac4; }
.tv-pod.p3 .tv-av { box-shadow: 0 0 0 4px #cd8a52; }
.tv-av .tv-medal { position: absolute; right: -16px; bottom: -12px; }
.tv-pod-n { text-align: center; width: 100%; min-width: 0; }
.tv-pod-n b { font-size: 19px; font-weight: 700; }
.tv-pod-n small { display: block; font-size: 13.5px; color: #5b5f68; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tv-pod-b { width: 100%; box-sizing: border-box; border-radius: 20px 20px 12px 12px; display: flex; flex-direction: column; align-items: center; padding-top: 12px; background: #fff1ec; color: #c63b1f; overflow: hidden; }
.tv-pod.p1 .tv-pod-b { background: #ee4d2d; color: #fff; }
.tv-pod.p2 .tv-pod-b { background: #ffd9cd; }
.tv-pod-b span { font-size: 44px; font-weight: 900; line-height: 1; }
.tv-pod-b em { font-style: normal; font-size: 23px; font-weight: 700; }
.tv-board { display: flex; flex-direction: column; gap: 8px; flex: 1; min-height: 0; overflow: hidden; }
.tv-row { flex: none; height: 50px; box-sizing: border-box; display: grid; grid-template-columns: 46px minmax(0, 1fr) 150px 110px 64px; align-items: center; gap: 12px; background: #fff4f0; border-radius: 16px; padding: 0 18px; }
.tv-row .p { font-size: 25px; font-weight: 800; color: #ee4d2d; }
.tv-row b { font-size: 18px; font-weight: 600; }
.tv-row small { font-size: 14px; font-weight: 500; color: #5b5f68; text-align: right; }
.tv-row .r { font-size: 23px; font-weight: 800; text-align: right; white-space: nowrap; }
.tv-row .m { font-size: 18px; font-weight: 800; text-align: right; }

.tv-right { display: grid; grid-template-rows: minmax(0, 1fr) 104px; gap: 18px; min-height: 0; min-width: 0; }
.tv-teams { padding: 22px 26px; display: flex; flex-direction: column; gap: 11px; }
.tv-team { flex: none; height: 66px; box-sizing: border-box; border-radius: 18px; padding: 0 14px; display: grid; grid-template-columns: 50px minmax(0, 1fr) 110px; align-items: center; gap: 14px; background: #f7f7f9; }
.tv-team.lead { background: #fff1ec; }
.tv-chip { width: 50px; height: 50px; border-radius: 14px; background: #fff; color: #1f2229; box-shadow: inset 0 0 0 2px #ececf0; display: flex !important; align-items: center; justify-content: center; font-size: 24px; font-weight: 800; }
.tv-team.lead .tv-chip { background: #ee4d2d; color: #fff; box-shadow: none; }
.tv-team-m { display: flex; flex-direction: column; gap: 7px; min-width: 0; }
.tv-team-l { display: flex; justify-content: space-between; gap: 10px; font-size: 14.5px; font-weight: 600; color: #5b5f68; min-width: 0; }
.tv-team-l em { flex: none; font-style: normal; font-weight: 800; color: #ee4d2d; }
.tv-team-l em.g { color: #17784c; }
.tv-team-bar { height: 12px; border-radius: 999px; background: #ececf0; overflow: hidden; }
.tv-team-bar i { display: block; height: 100%; border-radius: 999px; background: #ee4d2d; }
.tv-team-v { font-size: 28px; font-weight: 800; text-align: right; white-space: nowrap; }
.tv-best { padding: 0 24px; display: flex; align-items: center; gap: 18px; }
.tv-star { width: 56px; height: 56px; flex: none; border-radius: 16px; background: #ee4d2d; display: flex; align-items: center; justify-content: center; }
.tv-best-t { min-width: 0; display: flex; flex-direction: column; }
.tv-best-t > span { font-size: 15px; font-weight: 600; color: #5b5f68; }
.tv-best-t b { font-size: 26px; font-weight: 800; line-height: 1.2; }
.tv-best-t small { font-size: 14.5px; font-weight: 500; color: #5b5f68; }
.tv-f { display: flex; justify-content: space-between; gap: 24px; font-size: 14px; font-weight: 500; opacity: .95; align-items: center; min-width: 0; white-space: nowrap; }
.xv-tv { display: inline-flex; align-items: center; gap: 8px; flex: none; }
.tv-logo svg { width: 34px; height: 34px; stroke: #ee4d2d; stroke-width: 2.2; }
.tv-star svg { width: 30px; height: 30px; stroke: #fff; stroke-width: 2; }
#tv svg.tv-medal { width: 46px; height: 46px; stroke: none; filter: drop-shadow(0 2px 3px rgba(0,0,0,.18)); }
.tv-pod.p1 svg.tv-medal { width: 54px; height: 54px; }
.xv-tv svg { width: 16px; height: 16px; }

/* Modo TV: animações */
.tv-pod, .tv-row, .tv-team { position: relative; }
.tv-av { animation: tvFloat 4.2s ease-in-out infinite; z-index: 1; }
.tv-pod.p2 .tv-av { animation-delay: -1.4s; }
.tv-pod.p3 .tv-av { animation-delay: -2.8s; }
@keyframes tvFloat { 50% { transform: translateY(-7px); } }
.tv-pod-b { position: relative; }
.tv-pod-b > span, .tv-pod-b > em { position: relative; z-index: 1; }
.tv-shine { position: absolute; top: 0; bottom: 0; left: -60%; width: 45%; background: linear-gradient(105deg, transparent, rgba(255,255,255,.55), transparent); transform: skewX(-18deg); animation: tvShine 5.5s ease-in-out infinite; }
@keyframes tvShine { 0%, 62% { left: -60%; } 100% { left: 130%; } }
.tv-pass { box-shadow: 0 10px 28px rgba(238,77,45,.35), 0 0 0 3px #ee4d2d; }
.tv-pass::before { content: ''; position: absolute; inset: 8px auto 8px -70px; width: 60px; background: repeating-linear-gradient(180deg, transparent 0 7px, rgba(238,77,45,.55) 7px 10px); border-radius: 6px; animation: tvSpeed 1.2s ease-out forwards; }
@keyframes tvSpeed { from { opacity: 1; transform: translateX(40px); } to { opacity: 0; transform: translateX(-30px); } }
.tv-pass-tag { position: absolute; right: 10px; top: -12px; z-index: 4; padding: 3px 12px; border-radius: 999px; background: #1f2229; color: #fff; font-size: 13px; font-weight: 800; white-space: nowrap; animation: tvTag 3.6s ease forwards; }
@keyframes tvTag { 0% { transform: translateY(10px) scale(.7); opacity: 0; } 12% { transform: none; opacity: 1; } 85% { opacity: 1; } 100% { opacity: 0; transform: translateY(-6px); } }
.tv-board, .tv-teams { overflow: visible; }
.tv-left, .tv-teams { overflow: hidden; }
@media (prefers-reduced-motion: reduce) { .tv-av, .tv-shine, .tv-pass::before, .tv-pass-tag { animation: none !important; } .tv-shine { display: none; } }

/* Modo TV: 1º lugar em chamas (anel em volta do avatar, brilho dourado, brasas) */
/* Modo TV: 1º lugar em chamas (fogo de partículas no canvas) */
.tv-fcv { position: absolute; left: 50%; top: -88px; width: 240px; height: 220px; margin-left: -120px; pointer-events: none; z-index: 0; animation: tvFloat 4.2s ease-in-out infinite; }
.tv-pod.p1 .tv-av { animation: tvFloat 4.2s ease-in-out infinite, tvGlow 1.6s ease-in-out infinite alternate; }
@keyframes tvGlow { from { box-shadow: 0 0 0 4px #f5b301, 0 0 18px 4px rgba(255,179,0,.55); } to { box-shadow: 0 0 0 5px #ffd34d, 0 0 34px 12px rgba(255,140,0,.75); } }
.tv-pod.p1 .tv-pod-b > span { color: #ffe27a; text-shadow: 0 0 10px rgba(255,210,80,.95), 0 0 22px rgba(255,140,0,.7); }
.tv-pod.p1 .tv-av { background: radial-gradient(circle at 50% 35%, #4a1d0c, #1c0b05 72%); }
.tv-pod.p1 .tv-av > span { color: #ffd34d; text-shadow: 0 0 10px rgba(255,170,40,.8); }
.tv-logo img { width: 40px; height: 46px; object-fit: contain; }
.ad-shot-foot { display: flex; align-items: center; justify-content: flex-end; gap: 8px; }
.ad-shot-foot img { width: 16px; height: 18px; object-fit: contain; }

/* ---------- Gerencial: todas as áreas numa tela ---------- */
body[data-page="ger"] #vtSel, body[data-page="ger"] #btnCsv { display: none; }
.gq { --o: #ee4d2d; --ink: #1f2229; --mut: #5b5f68; background: #f3f4f7; border-radius: 28px; padding: 16px 18px 12px; display: flex; flex-direction: column; gap: 10px; font-family: 'Poppins', system-ui, sans-serif; color: var(--ink); }
.gq .n { font-variant-numeric: tabular-nums; letter-spacing: -.02em; }
.gq .ell { display: block; min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.gq svg { width: 18px; height: 18px; }
.gq-top { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.gq-per { display: flex; align-items: center; gap: 7px; height: 42px; background: #fff; border-radius: 999px; padding: 0 16px; font-size: 13.5px; font-weight: 600; white-space: nowrap; }
.gq-per small { color: #7a7f89; font-weight: 500; }
.gq-per > span { color: #7a7f89; font-weight: 500; margin: 0 4px; }
.gq-per i, .gq-cus i, .gq-foot i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; background: #b9bec9; }
.gq-per i.b, .gq-cus i.b { background: var(--o); }
.gq-pre { display: flex; flex-wrap: wrap; gap: 3px; background: #e6e7eb; border-radius: 999px; padding: 4px; }
.gq-pre button { height: 34px; border: 0; border-radius: 999px; padding: 0 13px; font: 600 12.5px 'Poppins', sans-serif; background: transparent; color: var(--mut); cursor: pointer; }
.gq-pre button.on { background: #fff; color: var(--ink); box-shadow: 0 1px 3px rgba(31,34,41,.12); }
.gq-dark { margin-left: auto; height: 42px; border: 0; border-radius: 999px; background: var(--ink); color: #fff; padding: 0 18px; font: 600 13px 'Poppins', sans-serif; cursor: pointer; }
.gq-cus { display: flex; flex-wrap: wrap; gap: 10px; }
.gq-cus label { display: flex; align-items: center; gap: 6px; background: #fff; border-radius: 999px; padding: 5px 8px 5px 12px; font-size: 12.5px; font-weight: 700; color: var(--mut); }
.gq-cus input { font: 500 12.5px 'Poppins', sans-serif; border: 0; background: #f3f4f7; border-radius: 999px; padding: 6px 9px; color: var(--ink); }
.gq-msg { background: #fff; border-radius: 22px; padding: 36px; text-align: center; font-weight: 600; display: flex; flex-direction: column; gap: 4px; }
.gq-msg small { font-weight: 500; color: var(--mut); }
.gq-msg.bad { color: #c2331a; }
.gq-row { display: grid; grid-template-columns: 136px minmax(0, 1.35fr) repeat(5, minmax(0, 1fr)) minmax(0, 1.4fr); gap: 9px; min-height: 148px; }
.gq-row > * { min-width: 0; border-radius: 20px; box-sizing: border-box; }
.gq-lbl { background: var(--ink); color: #fff; padding: 14px; display: flex; flex-direction: column; justify-content: space-between; gap: 8px; }
.gq-ic { width: 36px; height: 36px; border-radius: 11px; background: rgba(255,255,255,.12); display: flex; align-items: center; justify-content: center; }
.gq-ic svg { stroke: #fff; }
.gq-lbl b { display: block; font-size: 15.5px; font-weight: 700; line-height: 1.2; }
.gq-lbl em { display: inline-block; margin-top: 5px; font-style: normal; font-size: 11.5px; font-weight: 700; padding: 2px 9px; border-radius: 999px; background: rgba(255,255,255,.14); }
.gq-lbl em.b { background: #fde8e3; color: #c2331a; }
.gq-lbl em.g { background: #e5f5ec; color: #17784c; }
.gq-hero { position: relative; overflow: hidden; background: var(--o); color: #fff; padding: 13px 15px; display: flex; flex-direction: column; justify-content: space-between; gap: 6px; }
.gq-hero::before { content: ''; position: absolute; right: -36px; top: -46px; width: 150px; height: 150px; border-radius: 50%; background: rgba(255,255,255,.1); }
.gq-hero > * { position: relative; }
.gq-ht, .gq-hb { display: flex; justify-content: space-between; align-items: center; gap: 8px; font-size: 12px; font-weight: 600; }
.gq-hb { font-weight: 500; opacity: .92; }
.gq-ht em { flex: none; font-style: normal; padding: 2px 9px; border-radius: 999px; background: #fff; font-size: 11.5px; font-weight: 800; color: var(--ink); }
.gq-ht em.g { color: #17784c; } .gq-ht em.b { color: #c2331a; }
.gq-hero strong { font-size: 34px; font-weight: 700; line-height: 1; white-space: nowrap; }
.gq-hero strong small { font-size: 15px; opacity: .85; }
.gq-k { background: #fff; padding: 11px 13px; display: flex; flex-direction: column; justify-content: space-between; gap: 5px; }
.gq-k > span { font-size: 11.5px; font-weight: 600; color: var(--mut); }
.gq-k strong { font-size: 22px; font-weight: 700; line-height: 1.1; }
.gq-bars { display: grid; gap: 3px; }
.gq-bars i { display: block; height: 5px; border-radius: 999px; background: #b9bec9; min-width: 3px; }
.gq-bars i.b { background: var(--o); }
.gq-k.crit { box-shadow: inset 0 0 0 2px #e8a493; }
.gq-k.crit .gq-bars i.b { background: #c2331a; }
.gq-kb { display: flex; align-items: center; justify-content: space-between; gap: 5px; }
.gq-kb span { font-size: 11px; color: #7a7f89; }
.gq-kb em, .gq-ht em { font-style: normal; }
.gq-kb em { flex: none; padding: 2px 7px; border-radius: 999px; font-size: 11px; font-weight: 800; background: #f1f1f3; color: var(--ink); }
.gq-kb em.g { background: #e5f5ec; color: #17784c; } .gq-kb em.b { background: #fde8e3; color: #c2331a; }
.gq-off { background: #fff; box-shadow: inset 0 0 0 2px #fde0d8; padding: 11px 13px; display: flex; flex-direction: column; justify-content: space-between; gap: 6px; }
.gq-ot { display: flex; justify-content: space-between; align-items: center; gap: 8px; font-size: 11.5px; color: #7a7f89; }
.gq-ot b { font-size: 12px; color: #c2331a; white-space: nowrap; }
.gq-ow { display: flex; align-items: center; gap: 10px; min-width: 0; }
.gq-ow > div { min-width: 0; }
.gq-ow b { font-size: 14px; font-weight: 700; }
.gq-ow strong { display: block; font-size: 12.5px; font-weight: 700; color: #c2331a; }
.gq-av { width: 36px; height: 36px; flex: none; border-radius: 50%; background: #fde8e3; color: #c2331a; box-shadow: 0 0 0 3px #fff, 0 0 0 5px #c2331a; display: flex; align-items: center; justify-content: center; font-size: 12.5px; font-weight: 800; }
.gq-off p { margin: 0; font-size: 11px; color: #3a3d44; background: #fdf3f0; border-radius: 9px; padding: 4px 8px; }
.gq-off p.gq-none { background: none; padding: 0; color: var(--mut); white-space: normal; }
.gq-foot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; margin: 0; font-size: 11px; color: #7a7f89; }
.gq-foot i { width: 9px; height: 9px; background: none; box-shadow: inset 0 0 0 2px #e8a493; vertical-align: -1px; margin-right: 5px; }
.gq-lbl em { white-space: nowrap; }
.gq-hb span:first-child { flex: none; white-space: nowrap; }
@media (max-width: 1680px) {
  .gq-row { grid-template-columns: 118px minmax(0, 1.25fr) repeat(5, minmax(0, 1fr)); min-height: 0; }
  .gq-lbl { grid-row: span 2; padding: 12px; }
  .gq-lbl b { font-size: 13.5px; overflow-wrap: anywhere; }
  .gq-off { grid-column: 2 / -1; flex-direction: row; align-items: center; gap: 14px; padding: 7px 14px; border-radius: 14px; }
  .gq-off .gq-ot { flex-direction: column; align-items: flex-start; gap: 0; flex: none; }
  .gq-off .gq-ow { flex: none; }
  .gq-off .gq-ow strong { display: inline; margin-left: 8px; }
  .gq-off .gq-ow > div { display: flex; align-items: baseline; }
  .gq-off p { flex: 1; }
  .gq-av { width: 30px; height: 30px; font-size: 11px; }
  .gq-hero strong { font-size: 30px; }
  .gq-k strong { font-size: 20px; }
  .gq-hero, .gq-k { min-height: 128px; }
}
@media (max-width: 1100px) { .gq-row { grid-template-columns: repeat(3, minmax(0, 1fr)); } .gq-lbl { grid-row: auto; } .gq-hero { grid-column: span 2; } .gq-off { grid-column: 1 / -1; } }
.tv-row.rtv { grid-template-columns: 46px minmax(0, 1fr) 130px 100px 160px; }
.rtv-st { justify-self: end; padding: 4px 12px; border-radius: 999px; font-size: 13.5px; font-weight: 700; white-space: nowrap; }

/* ---------- Modo TV Expedição: modelo "Auditoria LMHub" (claro, cards de vidro, laranja Shopee) ---------- */
#tv.tvx-on { background: radial-gradient(1200px 700px at 10% 0%, #ffe9e1 0%, transparent 60%), radial-gradient(1000px 800px at 100% 100%, #ffe3d6 0%, transparent 55%), linear-gradient(160deg, #fff7f3, #fdebe3); color: #2a1d18; }
#tv.tvx-on .tv-exit { background: #2a1d18; color: #fff; }
.tvx { position: absolute; inset: 0; box-sizing: border-box; padding: 20px 22px; display: grid; grid-template-rows: 84px 134px 66px minmax(0, 1fr); gap: 14px; }
.tvx .n { font-variant-numeric: tabular-nums; letter-spacing: -.02em; }
.tvx .ell { display: block; min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.tvx svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; }
.tvx-card { background: rgba(255,255,255,.72); border: 1px solid rgba(238,77,45,.14); border-radius: 22px; box-shadow: 0 10px 30px -18px rgba(190,80,40,.35), inset 0 1px 0 rgba(255,255,255,.9); backdrop-filter: blur(8px); min-width: 0; min-height: 0; box-sizing: border-box; position: relative; overflow: hidden; }
.tvx .pill { display: inline-flex; align-items: center; gap: 4px; font-style: normal; padding: 2px 10px; border-radius: 999px; font-size: 12.5px; font-weight: 700; white-space: nowrap; background: #e6f6ee; color: #17784c; }
.tvx .pill.alert { background: #fde3dd; color: #c2331a; }
.tvx .pill.warn { background: #fff1d6; color: #a15c00; }
.tvx .pill.soft { background: #fde6dd; color: #c63b1f; }
.tvx-h { display: flex; align-items: center; justify-content: space-between; padding: 0 22px; }
.tvx-brand { display: flex; align-items: center; gap: 14px; min-width: 0; }
.tvx-logo { width: 54px; height: 54px; border-radius: 16px; background: #fff; display: flex; align-items: center; justify-content: center; box-shadow: 0 4px 14px rgba(238,77,45,.18); }
.tvx-logo img { width: 32px; height: 37px; object-fit: contain; }
.tvx-h h1 { margin: 0; font-size: 26px; font-weight: 700; line-height: 1.15; }
.tvx-h h1 em { font-style: normal; color: #ee4d2d; }
.tvx-meta { display: flex; align-items: center; gap: 10px; margin-top: 4px; font-size: 13.5px; color: #6a5a53; }
.tvx-live { display: inline-flex; align-items: center; gap: 7px; }
.tvx-live i { width: 9px; height: 9px; border-radius: 50%; background: #1f9d6b; box-shadow: 0 0 0 4px rgba(31,157,107,.18); animation: tvPulse 2s infinite; }
.tvx-clock { font-size: 46px; font-weight: 800; color: #2a1d18; }
.tvx-kpis { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 14px; }
.tvx-kpi { padding: 14px 18px; display: flex; flex-direction: column; gap: 4px; animation: tvxFloat 8s ease-in-out infinite; }
.tvx-kpi:nth-child(2) { animation-delay: -1.3s; } .tvx-kpi:nth-child(3) { animation-delay: -2.6s; } .tvx-kpi:nth-child(4) { animation-delay: -3.9s; } .tvx-kpi:nth-child(5) { animation-delay: -5.2s; } .tvx-kpi:nth-child(6) { animation-delay: -6.5s; }
@keyframes tvxFloat { 50% { transform: translateY(-3px); } }
.tvx-kpi::after { content: ''; position: absolute; inset: 0; background: linear-gradient(112deg, transparent 35%, rgba(255,255,255,.55) 50%, transparent 65%); transform: translateX(-120%); animation: tvxSheen 8s ease-in-out infinite; pointer-events: none; }
@keyframes tvxSheen { 0%, 70% { transform: translateX(-120%); } 100% { transform: translateX(120%); } }
.tvx-kpi.key { background: linear-gradient(135deg, rgba(255,255,255,.92), rgba(255,205,185,.55)); border-color: rgba(238,77,45,.35); }
.tvx-kt { display: flex; align-items: center; gap: 9px; font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: #6a5a53; }
.tvx-ic { width: 30px; height: 30px; flex: none; border-radius: 9px; background: #fff1ec; color: #ee4d2d; display: inline-flex; align-items: center; justify-content: center; }
.tvx-ic svg { width: 16px; height: 16px; }
.tvx-num { font-size: 36px; font-weight: 800; line-height: 1.1; color: #c63b1f; white-space: nowrap; }
.tvx-num small { font-size: 18px; color: #6a5a53; font-weight: 600; }
.tvx-kpi.lead .tvx-num, .tvx-kpi:nth-child(4) .tvx-num { color: #2a1d18; }
.tvx-kpi.lead .tvx-num { color: #c63b1f; }
.tvx-kpi.bad .tvx-num, .tvx-kpi.alert .tvx-num { color: #c2331a; }
.tvx-kpi.ok .tvx-num { color: #17784c; } .tvx-kpi.warn .tvx-num { color: #a15c00; }
.tvx-sub { display: flex; align-items: center; gap: 8px; font-size: 13px; color: #6a5a53; min-width: 0; }
.tvx-sub.b { font-weight: 700; color: #2a1d18; text-transform: uppercase; font-size: 13px; }
.tvx-gauge { position: relative; height: 8px; border-radius: 999px; background: rgba(42,29,24,.08); margin-top: auto; }
.tvx-gauge i { display: block; height: 100%; border-radius: 999px; background: linear-gradient(90deg, #ee4d2d, #c2331a); }
.tvx-gauge.s.ok i { background: linear-gradient(90deg, #4cc38a, #1f9d6b); } .tvx-gauge.s.warn i { background: linear-gradient(90deg, #ffb84d, #e08a00); }
.tvx-gauge b { position: absolute; top: -4px; width: 2px; height: 16px; background: #2a1d18; border-radius: 2px; }
.tvx-hls { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.tvx-hl { display: flex; align-items: center; gap: 14px; padding: 0 18px; }
.tvx-hl > div { flex: 1; }
.tvx-hl small { display: block; font-size: 11.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: #6a5a53; }
.tvx-hl b { font-size: 17px; font-weight: 800; text-transform: uppercase; }
.tvx-hl strong { font-size: 24px; font-weight: 800; color: #c63b1f; white-space: nowrap; }
.tvx-main { display: grid; grid-template-columns: 730px minmax(0, 1fr); gap: 14px; min-height: 0; }
.tvx-stage, .tvx-board { padding: 16px 18px; display: flex; flex-direction: column; gap: 12px; }
.tvx-ph { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex: none; }
.tvx-ph h2 { margin: 0; display: flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.tvx-ph h2 svg { color: #ee4d2d; }
.tvx-ph span { font-size: 13.5px; color: #6a5a53; } .tvx-ph b { color: #ee4d2d; }
.tvx-tabs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; flex: none; }
.tvx-tab { font-size: 13.5px; font-weight: 600; color: #8a7a73; display: flex; flex-direction: column; gap: 6px; }
.tvx-tab.on { color: #2a1d18; }
.tvx-tbar { height: 5px; border-radius: 999px; background: rgba(42,29,24,.1); overflow: hidden; }
.tvx-tbar i { display: block; height: 100%; background: #ee4d2d; border-radius: 999px; width: 0; animation: tvxFill linear forwards; }
@keyframes tvxFill { from { width: 0; } to { width: 100%; } }
.tvx-p1 { position: relative; flex: 1 1 0; min-height: 0; display: flex; align-items: center; gap: 26px; padding: 0 26px; border-radius: 20px; background: linear-gradient(135deg, #fffaf0, #ffeccf); border: 2px solid rgba(245,179,1,.55); box-shadow: 0 0 0 6px rgba(245,179,1,.12), 0 18px 40px -20px rgba(214,140,0,.55); overflow: hidden; }
.tvx-ghost { position: absolute; right: 22px; top: -18px; font-size: 170px; font-weight: 900; font-style: italic; color: rgba(245,179,1,.22); line-height: 1; pointer-events: none; }
.tvx-pn .tvx-ghost { font-size: 110px; top: -10px; color: rgba(238,77,45,.08); }
.tvx-p1av { position: relative; width: 250px; height: 250px; flex: none; display: flex; align-items: center; justify-content: center; }
.tvx-fire { position: absolute; left: 50%; top: 50%; width: 420px; height: 420px; margin: -235px 0 0 -210px; pointer-events: none; z-index: 0; }
.tvx-p1av .tv-medal { position: absolute; right: 6px; bottom: 10px; width: 64px !important; height: 64px !important; z-index: 2; }
.tvx-av { --c: #ee4d2d; width: 46px; height: 46px; flex: none; border-radius: 50%; background: radial-gradient(circle at 35% 30%, color-mix(in srgb, var(--c) 70%, #fff), var(--c)); color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 800; box-shadow: 0 0 0 3px #fff, 0 6px 14px -6px var(--c); position: relative; z-index: 1; }
.tvx-av span { font-size: 16px; }
.tvx-av.big { width: 230px; height: 230px; box-shadow: 0 0 0 7px #fff, 0 0 0 12px #f5b301, 0 0 46px 10px rgba(255,150,20,.5); animation: tvFloat 4.2s ease-in-out infinite; }
.tvx-av.big span { font-size: 92px; }
.tvx-av.mid { width: 96px; height: 96px; box-shadow: 0 0 0 5px #fff, 0 0 0 8px var(--ring, #c9ccd3); animation: tvFloat 4.2s ease-in-out infinite; }
.tvx-av.mid span { font-size: 36px; }
.tvx-p1t { position: relative; z-index: 1; min-width: 0; flex: 1; display: flex; flex-direction: column; gap: 4px; }
.tvx-p1t b { font-size: 34px; font-weight: 800; text-transform: uppercase; color: #2a1d18; }
.tvx-p1t strong { font-size: 76px; font-weight: 800; line-height: 1; color: #ee4d2d; white-space: nowrap; }
.tvx-p1t small, .tvx-pn small { font-size: 15px; color: #6a5a53; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.tvx-p23 { flex: 0 0 236px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; min-height: 0; }
.tvx-pn { position: relative; border-radius: 20px; background: rgba(255,255,255,.75); border: 1px solid rgba(238,77,45,.12); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; padding: 10px 14px; overflow: hidden; min-width: 0; text-align: center; }
.tvx-pn.p2 .tvx-av { --ring: #b4bac4; } .tvx-pn.p3 .tvx-av { --ring: #cd8a52; }
.tvx-pn b { font-size: 19px; font-weight: 800; text-transform: uppercase; max-width: 100%; }
.tvx-pn strong { font-size: 34px; font-weight: 800; color: #ee4d2d; line-height: 1; }
.tvx-pn small { justify-content: center; font-size: 13px; }
.tvx-place { position: absolute; left: 12px; top: 10px; display: inline-flex; align-items: center; gap: 5px; font-style: normal; font-size: 11.5px; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; padding: 3px 10px 3px 5px; border-radius: 999px; background: #eef0f3; color: #4b5059; }
.tvx-pn.p3 .tvx-place { background: #f7e3d3; color: #8a4f22; }
.tvx-place .tv-medal { width: 22px !important; height: 22px !important; }
.tvx-rows { flex: 1; min-height: 0; display: flex; flex-direction: column; gap: 9px; overflow: hidden; }
.tvx-row { position: relative; flex: none; height: 68px; box-sizing: border-box; display: grid; grid-template-columns: 34px 52px minmax(0, 1fr) 140px 190px 110px; align-items: center; gap: 14px; padding: 0 18px 0 16px; border-radius: 18px; background: rgba(255,255,255,.8); border: 1px solid rgba(238,77,45,.12); box-shadow: 0 4px 14px -10px rgba(190,80,40,.3); overflow: hidden; }
.tvx-row::before { content: ''; position: absolute; left: 0; top: 12px; bottom: 12px; width: 4px; border-radius: 0 4px 4px 0; background: rgba(238,77,45,.45); }
.tvx-row::after { content: ''; position: absolute; left: 0; bottom: 0; height: 4px; width: var(--w, 0%); background: linear-gradient(90deg, rgba(238,77,45,.08), rgba(238,77,45,.6)); border-radius: 0 3px 0 0; }
.tvx-pos { width: 30px; height: 30px; border-radius: 50%; background: #fff1ec; color: #c63b1f; font-weight: 800; font-size: 15px; display: flex; align-items: center; justify-content: center; }
.tvx-row .tvx-av { width: 50px; height: 50px; }
.tvx-who { min-width: 0; }
.tvx-who b { font-size: 18px; font-weight: 800; text-transform: uppercase; }
.tvx-who small { font-size: 13px; color: #6a5a53; }
.tvx-col { display: flex; flex-direction: column; align-items: flex-end; gap: 2px; min-width: 0; }
.tvx-col small { font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: #8a7a73; }
.tvx-col strong { font-size: 22px; font-weight: 800; color: #c63b1f; white-space: nowrap; }
.tvx-col strong.v { color: #2a1d18; }
.tvx-col .pill { font-size: 14px; padding: 3px 11px; }
.tvx-foot { flex: none; display: flex; justify-content: space-between; gap: 10px; font-size: 12.5px; color: #8a7a73; }
.tvx .tv-none { color: #6a5a53; background: rgba(255,255,255,.6); }
@media (prefers-reduced-motion: reduce) { .tvx-kpi, .tvx-kpi::after, .tvx-av.big, .tvx-av.mid { animation: none !important; } }
.tvx-kpi { padding: 12px 16px; gap: 3px; }
.tvx-gauge { flex: none; margin-top: 4px; }
.tvx-ic { width: 26px; height: 26px; border-radius: 8px; }
.tvx-num { font-size: 33px; }
.tvx-p1av { width: 220px; height: 220px; }
.tvx-av.big { width: 200px; height: 200px; }
.tvx-av.big span { font-size: 80px; }
.tvx-fire { margin: -225px 0 0 -210px; }
.tvx .tv-pass-tag { top: 10px; right: 16px; }
.tvx .tv-pass::before { display: none; }
.tvx-p1t strong small { font-size: 28px; color: #c63b1f; font-weight: 700; }
.tvx-pn strong small { font-size: 15px; font-weight: 700; }
.tvx-p1t strong small, .tvx-pn strong small { display: inline; }
/* LH: coluna "Previsão GPS" (planilha de monitoramento) */
.lh-row:not(.out) { grid-template-columns: 108px minmax(172px, 1.4fr) minmax(96px, 1fr) minmax(90px, .9fr) 92px 124px 100px 58px 92px 92px 64px; gap: 10px; }
.lh-prev small { white-space: nowrap; }
.good-t { color: var(--good); font-weight: 700; }
.warn-t { color: #b7791f; font-weight: 700; }
.ac.ac-off { box-shadow: inset 3px 0 0 var(--bad); }
@media (max-width: 1280px) {
  .lh-row:not(.out) { grid-template-columns: 104px 1.4fr 1fr 118px 92px 84px 58px; }
  .lh-row:not(.out) > :nth-child(n) { display: revert; }
  .lh-row:not(.out) > :nth-child(4), .lh-row:not(.out) > :nth-child(5), .lh-row:not(.out) > :nth-child(7), .lh-row:not(.out) > :nth-child(8) { display: none; }
}
/* TV Ranking de Missing */
.tvm-row { grid-template-columns: 34px 52px minmax(0, 1fr) 120px 170px 176px; }
.tvm-row.c-out::before { background: #c2331a; } .tvm-row.c-warn::before { background: #e08a00; } .tvm-row.c-good::before { background: #1f9d6b; }
.tvm-row.c-out { background: rgba(253,236,232,.85); }
.tvm-blk { display: inline-grid; grid-template-columns: repeat(7, 18px); gap: 4px; }
.tvm-blk i { height: 18px; border-radius: 5px; background: #d9f2e5; }
.tvm-blk i.over { background: #c2331a; } .tvm-blk i.na { background: rgba(42,29,24,.07); }
.tvx-hl.hl-bad { box-shadow: inset 0 0 0 2px #f3b5a6; }
.tvx-hl.hl-bad strong { color: #c2331a; }
.tvx-foot > span:last-child { white-space: nowrap; flex: none; }
/* TVs: fotos de perfil e filtro de turno */
.tvx-av { cursor: pointer; overflow: visible; }
.tvx-av .av-img { position: absolute; inset: 0; width: 100%; height: 100%; border-radius: 50%; object-fit: cover; z-index: 1; }
.tvx-shift { display: flex; gap: 4px; background: rgba(42,29,24,.07); border-radius: 999px; padding: 4px; margin-left: auto; margin-right: 26px; }
.tvx-shift button { height: 40px; border: 0; border-radius: 999px; padding: 0 18px; font: 700 15px 'Poppins', sans-serif; color: #6a5a53; background: transparent; cursor: pointer; }
.tvx-shift button.on { background: #ee4d2d; color: #fff; box-shadow: 0 4px 12px -4px rgba(238,77,45,.6); }
.foto-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); gap: 10px; margin-top: 10px; }
.foto-it { position: relative; display: flex; flex-direction: column; align-items: center; gap: 4px; font-size: 11.5px; text-align: center; color: var(--muted); }
.foto-it img { width: 64px; height: 64px; border-radius: 50%; object-fit: cover; box-shadow: 0 0 0 2px #fff, 0 0 0 3px var(--line); }
.foto-it span { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.foto-it button { position: absolute; top: 0; right: 14px; width: 22px; height: 22px; border: 0; border-radius: 50%; background: #c2331a; color: #fff; font-weight: 800; cursor: pointer; }
/* XPT atrasados: justificativas (espelho da planilha) */
#lhXpt .sec-h { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.xj-kpis { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.xj-kpis > span { background: #fff4f1; border: 1px solid #fbd5ca; border-radius: 10px; padding: 6px 10px; font-size: 12px; }
.xj-kpis > span b { font-size: 15px; margin-right: 3px; }
.xj-pend td { background: #fffaf0; }
.xj-just { max-width: 360px; white-space: normal; line-height: 1.35; }
.lh-col small.ell { display: block; max-width: 180px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
/* filtros na barra superior (cabeçalho fixo): valem para a tela aberta; o turno vale para todas */
.top { flex-wrap: wrap; row-gap: 10px; }
.topf { flex: 1 1 100%; display: flex; flex-wrap: wrap; align-items: center; gap: 8px 18px; padding: 10px 14px; background: #fff; border: 1px solid var(--line, #ececf1); border-radius: 14px; box-shadow: 0 6px 18px -16px rgba(238,77,45,.6); }
.topf[hidden] { display: none; }
.pgf-g { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.pgf-l { font-size: 12px; font-weight: 700; color: var(--ink-2, #666); }
.topf .pills button { display: inline-flex; align-items: center; gap: 5px; }
.topf .pills button .shift { margin-left: 0; }
.pgf-act { margin-left: auto; }
.pgf-n { font-size: 12px; color: var(--ink-2, #666); }
.pgf-sel { font: inherit; font-size: 13px; padding: 6px 28px 6px 10px; border: 1px solid var(--line, #e3e3ea); border-radius: 10px; background: #fff; max-width: 260px; }
/* barras antigas que ficavam presas no meio da página não grudam mais (o filtro está no topo) */
.view-sw { position: static; }
.top .search { flex: 1 1 220px; min-width: 200px; }
.top .vt { flex: 0 1 300px; min-width: 0; }
.top > .btn, .top > .sync { flex: none; }
