/* =========================================================
   Grupo Tranger — área interna (protótipo)
   Estrutura inspirada no template Bankzai (Webflow)
   ========================================================= */
:root {
  --navy-950: #061535;
  --navy-900: #0a1f4a;
  --navy-800: #0f2d66;
  --navy-700: #123f8c;
  --blue-500: #2f6fe0;
  --green-600: #1f9e3a;
  --green-300: #7ee2a0;

  --bg: #eef2f7;
  --surface: #fff;
  --ink: #0d1830;
  --ink-2: #4a5873;
  --ink-3: #7a879e;
  --line: #e4e9f1;
  --line-2: #eef1f6;

  --danger: #b42318; --danger-bg: #fde8e8; --danger-line: #f6c4c4;
  --warn: #b45309;   --warn-bg: #fff1db;   --warn-line: #fbd9a5;
  --soon: #7a4d06;   --soon-bg: #fdf6cf;   --soon-line: #f2e39a;
  --ok: #15803d;     --ok-bg: #e4f6ea;     --ok-line: #b9e6c7;
  --info: #1d4ed8;   --info-bg: #e6eefc;   --info-line: #c4d5f7;
  --neutral: #475569; --neutral-bg: #eef1f5;

  --f-head: "DM Sans", system-ui, sans-serif;
  --f-body: "Inter", system-ui, sans-serif;
  --r-sm: 8px; --r: 12px; --r-lg: 16px; --r-xl: 20px;
  --shadow: 0 1px 2px rgba(13, 24, 48, .04), 0 8px 24px -12px rgba(13, 24, 48, .12);
  --shadow-lg: 0 24px 60px -20px rgba(6, 21, 53, .35);
  --side-w: 260px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font: 15px/1.5 var(--f-body); color: var(--ink); background: var(--bg); -webkit-font-smoothing: antialiased; }
h1, h2, h3 { font-family: var(--f-head); margin: 0; letter-spacing: -.01em; }
p { margin: 0; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; }
img { display: block; max-width: 100%; }
.i { width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
:focus-visible { outline: 3px solid #7aa6ff; outline-offset: 2px; border-radius: 6px; }
.skip { position: absolute; left: -999px; top: 8px; z-index: 100; background: #fff; padding: 10px 16px; border-radius: 8px; }
.skip:focus { left: 8px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.muted { color: var(--ink-3); }
.small { font-size: 13px; }
.center { text-align: center; margin-top: 16px; }
.mono { font-family: ui-monospace, "SF Mono", Menlo, monospace; font-size: 12px; color: var(--ink-3); }
.txt-danger { color: var(--danger); } .txt-warn { color: var(--warn); } .txt-ok { color: var(--ok); } .txt-info { color: var(--info); } .txt-soon { color: var(--soon); }
.txt-danger .i, .txt-warn .i { width: 15px; height: 15px; vertical-align: -3px; margin-right: 4px; }

/* =========================================================
   MENU LATERAL
   ========================================================= */
.side {
  position: fixed; z-index: 30; top: 16px; left: 16px; bottom: 16px; width: var(--side-w);
  display: flex; flex-direction: column; padding: 22px 14px 16px;
  border-radius: var(--r-xl); color: #fff;
  background:
    radial-gradient(120% 60% at 0% 100%, rgba(47, 111, 224, .35), transparent 60%),
    radial-gradient(80% 40% at 100% 0%, rgba(31, 158, 58, .18), transparent 60%),
    linear-gradient(180deg, var(--navy-800), var(--navy-950));
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}
.side::after { /* textura sutil de linhas, como no template */
  content: ""; position: absolute; inset: auto -40px -60px -40px; height: 260px; pointer-events: none; opacity: .12;
  background: repeating-radial-gradient(circle at 30% 120%, transparent 0 14px, rgba(255, 255, 255, .5) 15px 16px);
}
.side__brand { display: flex; align-items: center; gap: 12px; padding: 0 8px 22px; margin-bottom: 10px; border-bottom: 1px solid rgba(255, 255, 255, .1); }
.side__brand img { border-radius: 11px; box-shadow: 0 6px 16px -6px rgba(0, 0, 0, .5); }
.side__brand b { display: block; font: 700 17px/1.15 var(--f-head); }
.side__brand small { color: rgba(255, 255, 255, .6); font-size: 12px; }
.side__nav { display: flex; flex-direction: column; gap: 4px; position: relative; z-index: 1; }
.side__link {
  position: relative; display: flex; align-items: center; gap: 12px;
  padding: 12px 14px; border-radius: 12px; font-weight: 500; font-size: 15px;
  color: rgba(255, 255, 255, .72); transition: background .2s, color .2s;
}
.side__link:hover { background: rgba(255, 255, 255, .07); color: #fff; }
.side__link.is-on { background: rgba(255, 255, 255, .13); color: #fff; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .08); }
.side__link.is-on::before { content: ""; position: absolute; left: -14px; top: 10px; bottom: 10px; width: 4px; border-radius: 0 4px 4px 0; background: var(--green-300); }
.side__link span { flex: 1; }
.side__badge { font-style: normal; font-size: 12px; font-weight: 600; min-width: 22px; height: 22px; padding: 0 7px; border-radius: 11px; display: grid; place-items: center; }
.side__badge--danger { background: #ff6b6b; color: #fff; }
.side__badge--warn { background: #ffc861; color: #3b2400; }
.side__new { font-style: normal; font-size: 10px; font-weight: 700; letter-spacing: .06em; padding: 3px 7px; border-radius: 6px; background: var(--green-300); color: var(--navy-950); }
.side__foot { margin-top: auto; position: relative; z-index: 1; }
.side__help { padding: 16px; border-radius: 14px; background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .1); }
.side__help p { font-size: 13px; color: rgba(255, 255, 255, .7); margin-bottom: 12px; }
.side__help b { display: block; color: #fff; font-size: 14px; margin-bottom: 2px; }
.side__help-btn { display: block; text-align: center; padding: 9px; border-radius: 10px; background: #fff; color: var(--navy-900); font-weight: 600; font-size: 14px; }
.side__credit { font-size: 11px; color: rgba(255, 255, 255, .4); text-align: center; margin-top: 12px; }
.side-scrim { display: none; }

/* =========================================================
   BARRA SUPERIOR
   ========================================================= */
.top {
  position: sticky; top: 0; z-index: 20;
  margin-left: calc(var(--side-w) + 32px); padding: 16px 32px 16px 0;
  display: flex; align-items: center; gap: 16px;
  background: linear-gradient(var(--bg) 70%, rgba(238, 242, 247, 0));
}
.top .top__menu { display: none; }
.top__company { position: relative; }
.company-btn {
  display: flex; align-items: center; gap: 10px; min-height: 52px; padding: 6px 14px 6px 6px;
  border: 1px solid var(--line); border-radius: 14px; background: var(--surface); box-shadow: var(--shadow);
  text-align: left;
}
.company-btn:hover { border-color: #cfd8e6; }
.company-btn__dot { width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center; overflow: hidden; background: var(--c); color: #fff; font: 700 15px var(--f-head); flex: none; }
.company-btn__dot img { width: 100%; height: 100%; object-fit: cover; }
.company-btn__txt small { display: block; font-size: 11px; color: var(--ink-3); text-transform: uppercase; letter-spacing: .06em; }
.company-btn__txt b { font: 600 15px var(--f-head); }
.top__search { position: relative; flex: 1; max-width: 460px; }
.search { display: flex; align-items: center; gap: 10px; height: 52px; padding: 0 14px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); color: var(--ink-3); }
.search:focus-within { border-color: var(--blue-500); box-shadow: 0 0 0 4px rgba(47, 111, 224, .12); }
.search input { flex: 1; border: 0; outline: 0; font: inherit; color: var(--ink); background: transparent; min-width: 0; }
.search kbd { font: 12px var(--f-body); border: 1px solid var(--line); border-radius: 6px; padding: 1px 7px; color: var(--ink-3); }
.search--inline { height: 46px; box-shadow: none; max-width: 380px; flex: 1; }
.top__right { margin-left: auto; display: flex; align-items: center; gap: 12px; }
.top__pop { position: relative; }
.icon-btn { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface); color: var(--ink-2); position: relative; transition: background .2s; }
.icon-btn:hover { background: #f6f8fb; }
.icon-btn--sm { width: 36px; height: 36px; border-radius: 10px; }
.icon-btn--sm .i { width: 17px; height: 17px; }
.icon-btn--bell { width: 52px; height: 52px; border-radius: 14px; box-shadow: var(--shadow); }
.bell-count { position: absolute; top: 9px; right: 9px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: #e5484d; color: #fff; font-size: 11px; font-weight: 700; display: grid; place-items: center; box-shadow: 0 0 0 2px #fff; }
.user { display: flex; align-items: center; gap: 10px; height: 52px; padding: 6px 12px 6px 6px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); box-shadow: var(--shadow); text-align: left; }
.user__txt small { display: block; font-size: 11px; color: var(--ink-3); }
.user__txt b { font: 600 15px var(--f-head); }

.menu { position: absolute; top: calc(100% + 8px); left: 0; z-index: 40; min-width: 300px; margin: 0; padding: 8px; list-style: none; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow-lg); animation: pop .18s var(--ease); }
.menu--right { left: auto; right: 0; }
.menu--search { right: 0; }
.menu--alerts { width: 360px; }
.menu ul { list-style: none; margin: 0; padding: 0; }
.menu [role=option], .menu a, .menu__btn { display: flex; align-items: center; gap: 12px; width: 100%; padding: 10px 12px; border-radius: 10px; border: 0; background: none; text-align: left; font-size: 14px; }
.menu [role=option] { cursor: pointer; }
.menu [role=option]:hover, .menu a:hover, .menu__btn:hover { background: #f3f6fa; }
.menu [aria-selected=true] { background: #eef3fd; }
.menu [role=option] > span:nth-child(2), .menu a > span { flex: 1; }
.menu b { display: block; font-weight: 600; }
.menu small { display: block; color: var(--ink-3); font-size: 12px; }
.menu__title { padding: 8px 12px 6px; font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; color: var(--ink-3); }
.menu__empty { display: flex; gap: 8px; align-items: center; padding: 14px 12px; color: var(--ink-3); font-size: 14px; }
.menu .i { color: var(--ink-3); }
.alert .i { margin-top: 2px; align-self: flex-start; }
.alert--danger .i { color: var(--danger); } .alert--warn .i { color: var(--warn); } .alert--info .i { color: var(--info); }
@keyframes pop { from { opacity: 0; transform: translateY(-6px); } }

/* =========================================================
   CONTEÚDO
   ========================================================= */
.main { margin-left: calc(var(--side-w) + 32px); padding: 8px 32px 48px 0; max-width: 1480px; outline: 0; }
.view--enter > * { animation: rise .45s var(--ease) both; }
.view--enter > *:nth-child(2) { animation-delay: 40ms; } .view--enter > *:nth-child(3) { animation-delay: 80ms; }
.view--enter > *:nth-child(4) { animation-delay: 120ms; } .view--enter > *:nth-child(5) { animation-delay: 160ms; }
.view--enter > *:nth-child(n+6) { animation-delay: 200ms; }
@keyframes rise { from { opacity: 0; transform: translateY(10px); } }

.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin: 8px 0 22px; }
.page-head h1 { font-size: 28px; font-weight: 700; }
.page-head p { color: var(--ink-2); margin-top: 4px; }
.page-head p::first-letter { text-transform: uppercase; }
.page-head__actions { display: flex; gap: 10px; }

.card { background: var(--surface); border-radius: var(--r-lg); box-shadow: var(--shadow); padding: 22px; margin-bottom: 20px; }
.card--flush { padding: 0; overflow: hidden; }
.card__head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; margin-bottom: 18px; }
.card__head--pad { padding: 22px 22px 0; }
.card__head h2 { font-size: 18px; font-weight: 600; }
.card__head p { color: var(--ink-3); font-size: 14px; margin-top: 2px; }
.grid { display: grid; gap: 20px; }
.grid > .card { margin-bottom: 0; }
.grid--2-1 { grid-template-columns: 1.6fr 1fr; margin-bottom: 20px; }
.count-pill { min-width: 28px; height: 28px; border-radius: 14px; padding: 0 9px; display: grid; place-items: center; background: var(--danger-bg); color: var(--danger); font-weight: 700; font-size: 14px; }

/* ---------- Botões ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 44px; padding: 0 18px; border-radius: 12px; border: 1px solid transparent; font-weight: 600; font-size: 14px; white-space: nowrap; transition: background .2s, transform .15s, box-shadow .2s; }
.btn:active { transform: translateY(1px); }
.btn .i { width: 18px; height: 18px; }
.btn--sm { height: 38px; padding: 0 14px; font-size: 14px; border-radius: 10px; }
.btn--lg { height: 52px; padding: 0 26px; font-size: 15px; border-radius: 14px; }
.btn--primary { background: var(--navy-700); color: #fff; box-shadow: 0 6px 16px -8px rgba(18, 63, 140, .7); }
.btn--primary:hover { background: var(--navy-900); }
.btn--primary:disabled { background: #9fb0cc; box-shadow: none; cursor: default; }
.btn--ghost { background: var(--surface); border-color: var(--line); color: var(--ink); }
.btn--ghost:hover { background: #f4f7fb; border-color: #d3dbe8; }
.btn--light { background: #fff; color: var(--navy-900); }
.btn--light:hover { background: #e9f0ff; }

/* ---------- Selos ---------- */
.badge { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px 4px 8px; border-radius: 999px; font-size: 13px; font-weight: 600; white-space: nowrap; border: 1px solid; }
.badge .i { width: 15px; height: 15px; stroke-width: 2.2; }
.badge--danger { color: var(--danger); background: var(--danger-bg); border-color: var(--danger-line); }
.badge--warn { color: var(--warn); background: var(--warn-bg); border-color: var(--warn-line); }
.badge--soon { color: var(--soon); background: var(--soon-bg); border-color: var(--soon-line); }
.badge--ok { color: var(--ok); background: var(--ok-bg); border-color: var(--ok-line); }
.badge--info { color: var(--info); background: var(--info-bg); border-color: var(--info-line); }
.badge--neutral { color: var(--neutral); background: var(--neutral-bg); border-color: var(--line); }
.ctag { display: inline-flex; align-items: center; gap: 6px; padding: 2px 9px 2px 7px; border-radius: 6px; font-size: 12px; font-weight: 700; letter-spacing: .03em; color: var(--c); background: color-mix(in srgb, var(--c) 10%, #fff); margin-right: 6px; vertical-align: 1px; }
.ctag i { width: 7px; height: 7px; border-radius: 2px; background: var(--c); }
.avatar { width: 36px; height: 36px; border-radius: 50%; display: inline-grid; place-items: center; flex: none; background: linear-gradient(135deg, #dfe8fb, #c9d8f6); color: var(--navy-700); font: 600 13px var(--f-head); }
.avatar--sm { width: 26px; height: 26px; font-size: 11px; }
.avatar--lg { width: 44px; height: 44px; font-size: 15px; }
.avatar--sq { border-radius: 10px; background: #eef2f8; color: var(--ink-2); }
.avatar--sq .i { width: 18px; height: 18px; }
.avatar--user { width: 40px; height: 40px; border-radius: 11px; background: linear-gradient(135deg, var(--navy-700), var(--navy-950)); color: #fff; }

/* Termo com explicação */
.term { position: relative; display: inline-flex; align-items: center; gap: 4px; cursor: help; border-bottom: 1px dashed currentColor; }
.term .i { width: 14px; height: 14px; color: var(--ink-3); }
.term::after {
  content: attr(data-tip); position: absolute; z-index: 50; bottom: calc(100% + 10px); left: 50%; transform: translate(-50%, 4px);
  width: 260px; padding: 10px 12px; border-radius: 10px; background: var(--navy-950); color: #fff;
  font: 400 13px/1.45 var(--f-body); text-transform: none; letter-spacing: 0; text-align: left; white-space: normal;
  opacity: 0; pointer-events: none; transition: opacity .15s, transform .15s; box-shadow: var(--shadow-lg);
}
.term:hover::after, .term:focus::after, .term.is-open::after { opacity: 1; transform: translate(-50%, 0); }
th .term::after { left: auto; right: -20px; transform: translate(0, 4px); }
th .term:hover::after, th .term:focus::after { transform: none; }

/* =========================================================
   PAINEL
   ========================================================= */
.hero-card {
  position: relative; overflow: hidden; display: flex; align-items: center; justify-content: space-between; gap: 32px;
  padding: 30px 34px; margin-bottom: 20px; border-radius: var(--r-xl); color: #fff;
  background:
    radial-gradient(70% 120% at 100% 0%, rgba(31, 158, 58, .35), transparent 60%),
    radial-gradient(60% 120% at 0% 100%, rgba(47, 111, 224, .45), transparent 60%),
    linear-gradient(120deg, var(--navy-800), var(--navy-950));
  box-shadow: var(--shadow-lg);
}
.hero-card::before { content: ""; position: absolute; right: 18%; top: -80px; width: 340px; height: 340px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .08); box-shadow: 0 0 0 40px rgba(255, 255, 255, .025), 0 0 0 80px rgba(255, 255, 255, .02); }
.hero-card__text { position: relative; max-width: 620px; }
.hero-card__hello { font-size: 14px; color: rgba(255, 255, 255, .7); margin-bottom: 6px; }
.hero-card__lead { font: 500 25px/1.35 var(--f-head); letter-spacing: -.01em; margin-bottom: 22px; }
.hero-card__lead b { font-weight: 700; }
.hl-danger { color: #ffb3b3; }
.hero-card__ok { display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px; border-radius: 12px; background: rgba(126, 226, 160, .15); color: var(--green-300); font-weight: 600; }
.hero-card__ring { position: relative; display: flex; align-items: center; gap: 24px; }
.hero-card .donut { width: 170px; }
.hero-card .donut svg circle:first-child { stroke: rgba(255, 255, 255, .1); }
.hero-card .donut__c b { color: #fff; font-size: 30px; }
.hero-card .donut__c span { color: rgba(255, 255, 255, .65); }
.ring-legend { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; font-size: 14px; color: rgba(255, 255, 255, .85); }
.ring-legend i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 8px; }
.donut { position: relative; }
.donut svg { width: 100%; display: block; }
.donut__arc { transition: stroke-dasharray .8s var(--ease); }
.donut__c { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; }
.donut__c b { font: 700 26px var(--f-head); }
.donut__c span { font-size: 12px; color: var(--ink-3); }

.kpi-strip { display: grid; grid-template-columns: repeat(4, 1fr); background: var(--surface); border-radius: var(--r-lg); box-shadow: var(--shadow); margin-bottom: 20px; }
.kpi-strip--soft { background: rgba(255, 255, 255, .6); box-shadow: none; border: 1px solid var(--line); }
.kpi { display: flex; align-items: center; gap: 16px; padding: 22px; position: relative; transition: background .2s; border-radius: var(--r-lg); }
.kpi + .kpi::before { content: ""; position: absolute; left: 0; top: 22px; bottom: 22px; width: 1px; background: var(--line); }
.kpi:hover { background: #f7f9fc; }
.kpi__icon { width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; background: var(--tint); color: var(--ink); flex: none; }
.kpi__icon .i { width: 24px; height: 24px; }
.kpi__label { display: block; font-size: 13px; color: var(--ink-2); }
.kpi__value { display: block; font: 700 26px/1.15 var(--f-head); letter-spacing: -.02em; }
.kpi__sub { display: block; font-size: 12px; color: var(--ink-3); }
.kpi--alert .kpi__value { color: var(--danger); }
.kpi--alert .kpi__icon { animation: pulse 2s infinite; }
@keyframes pulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(229, 72, 77, .35); } 50% { box-shadow: 0 0 0 8px rgba(229, 72, 77, 0); } }

.actions { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.action { display: flex; align-items: center; gap: 14px; padding: 14px 14px 14px 16px; border-radius: 14px; border: 1px solid var(--line); background: #fbfcfe; position: relative; overflow: hidden; }
.action::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; }
.action--danger::before { background: #e5484d; } .action--warn::before { background: #f59e0b; } .action--soon::before { background: #eab308; }
.action__icon { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; flex: none; }
.action--danger .action__icon { background: var(--danger-bg); color: var(--danger); }
.action--warn .action__icon { background: var(--warn-bg); color: var(--warn); }
.action--soon .action__icon { background: var(--soon-bg); color: var(--soon); }
.action__body { flex: 1; min-width: 0; }
.action__title { font-weight: 600; }
.action__sub { font-size: 13px; color: var(--ink-3); margin-top: 2px; }
.action .btn .i { width: 16px; height: 16px; }

.bars { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 18px; }
.bars__row { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.bars__row small { color: var(--ink-3); font-size: 13px; }
.bars__row b { font: 700 16px var(--f-head); }
.bars__track { height: 10px; border-radius: 5px; background: #eef2f7; overflow: hidden; }
.bars__track span { display: block; height: 100%; border-radius: 5px; animation: grow .9s var(--ease) both; transform-origin: left; }
@keyframes grow { from { transform: scaleX(0); } }

.legend { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 16px; font-size: 13px; color: var(--ink-2); }
.legend li { display: flex; align-items: center; gap: 6px; }
.legend i { width: 10px; height: 10px; border-radius: 3px; }
.legend b { color: var(--ink); }
.chart { position: relative; }
.chart svg { width: 100%; height: auto; display: block; overflow: visible; }
.chart__grid { stroke: #edf1f6; stroke-dasharray: 4 4; }
.chart__axis { font: 11px var(--f-body); fill: var(--ink-3); }
.chart__line { stroke-dasharray: 2400; stroke-dashoffset: 2400; animation: draw 1.4s var(--ease) forwards; animation-delay: var(--d); }
@keyframes draw { to { stroke-dashoffset: 0; } }
.chart__hit { fill: transparent; }
.chart__cursor { stroke: #c4cfdf; stroke-width: 1; opacity: 0; }
.chart__tip { position: absolute; top: 0; transform: translateX(-50%); min-width: 160px; padding: 10px 12px; border-radius: 10px; background: var(--navy-950); color: #fff; font-size: 13px; pointer-events: none; box-shadow: var(--shadow-lg); }
.chart__tip b { display: block; margin-bottom: 4px; }
.chart__tip span { display: flex; align-items: center; gap: 6px; }
.chart__tip i { width: 8px; height: 8px; border-radius: 2px; }
.chart__tip em { margin-left: auto; font-style: normal; font-weight: 600; padding-left: 12px; }

/* ---------- Tabelas ---------- */
.table-wrap { overflow-x: auto; }
.table { width: 100%; border-collapse: collapse; font-size: 14px; }
.table th, .table td { padding: 13px 11px; text-align: left; border-bottom: 1px solid var(--line-2); vertical-align: middle; }
.table thead th { font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: .05em; color: var(--ink-3); background: #fafbfd; border-bottom: 1px solid var(--line); white-space: nowrap; }
.table tbody th { font-weight: 400; }
.table th:first-child, .table td:first-child { padding-left: 20px; }
.table th:last-child, .table td:last-child { padding-right: 18px; }
.table .num { text-align: right; white-space: nowrap; }
.table tbody tr:last-child > * { border-bottom: 0; }
.row-link { cursor: pointer; transition: background .15s; }
.row-link:hover, .row-link:focus { background: #f6f9fd; outline: 0; }
.table tr.is-done > * { opacity: .55; }
.company-cell, .client-cell { display: flex; align-items: center; gap: 12px; }
.company-cell small { color: var(--ink-3); font-size: 13px; }
.client-cell b { font-weight: 600; display: block; }
.client-cell small { display: block; font-size: 12px; color: var(--ink-3); }
.mini-meter { display: inline-block; width: 38px; height: 6px; border-radius: 3px; background: #edf1f6; margin-right: 8px; vertical-align: 2px; overflow: hidden; }
.mini-meter span { display: block; height: 100%; background: var(--green-600); border-radius: 3px; }
.table-foot { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 14px 22px; border-top: 1px solid var(--line); font-size: 14px; color: var(--ink-2); }
.pager { display: flex; gap: 6px; }
.pager button { width: 36px; height: 36px; border-radius: 10px; border: 1px solid var(--line); background: #fff; font-size: 14px; }
.pager .is-on { background: var(--navy-700); color: #fff; border-color: var(--navy-700); }
.row-actions { display: flex; gap: 6px; justify-content: flex-end; align-items: center; white-space: nowrap; }
.nowrap { white-space: nowrap; }
.svc { display: block; font-size: 13px; color: var(--ink-3); margin-top: 4px; }
.table--rows tbody th { min-width: 230px; }
.os-card__foot { flex-wrap: wrap; }
.bars__total { display: flex; justify-content: space-between; align-items: center; margin-top: 22px; padding-top: 16px; border-top: 1px solid var(--line); font-size: 14px; color: var(--ink-2); }
.bars__total b { font: 700 22px var(--f-head); color: var(--ink); }
.sent { display: inline-flex; align-items: center; gap: 6px; color: var(--ok); font-weight: 600; font-size: 13px; }
.sent .i { width: 16px; height: 16px; }

.toolbar { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 16px 22px; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.seg { display: inline-flex; padding: 4px; border-radius: 12px; background: #f1f4f9; gap: 2px; }
.seg__item { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 9px; font-size: 14px; font-weight: 500; color: var(--ink-2); }
.seg__item span { font-size: 12px; color: var(--ink-3); background: rgba(13, 24, 48, .06); padding: 1px 7px; border-radius: 8px; }
.seg__item.is-on { background: #fff; color: var(--ink); box-shadow: 0 1px 3px rgba(13, 24, 48, .1); }
.seg--sm { margin-left: auto; }
.seg--sm .seg__item { padding: 7px 12px; font-size: 13px; }
.select { display: inline-flex; align-items: center; gap: 8px; height: 44px; padding: 0 12px; border-radius: 12px; border: 1px solid var(--line); background: #fff; color: var(--ink-3); }
.select select { border: 0; outline: 0; background: transparent; font: inherit; color: var(--ink); padding-right: 4px; cursor: pointer; }
.select--block { display: flex; width: 100%; }
.select--block select { flex: 1; }
.select .i { width: 18px; height: 18px; }

.tabs { display: flex; gap: 6px; margin-bottom: 18px; border-bottom: 1px solid #dde3ec; }
.tabs__item { display: inline-flex; align-items: center; gap: 8px; padding: 12px 16px; margin-bottom: -1px; border-bottom: 3px solid transparent; font-weight: 600; color: var(--ink-3); font-size: 15px; }
.tabs__item:hover { color: var(--ink); }
.tabs__item.is-on { color: var(--navy-700); border-bottom-color: var(--navy-700); }
.tabs__item span { font-size: 12px; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 10px; display: grid; place-items: center; background: var(--danger-bg); color: var(--danger); }
.tabs__key { background: var(--navy-700) !important; color: #fff !important; border-radius: 6px !important; }

/* ---------- Vazio ---------- */
.empty { text-align: center; padding: 48px 24px; display: flex; flex-direction: column; align-items: center; gap: 8px; }
.empty__icon { width: 64px; height: 64px; border-radius: 20px; display: grid; place-items: center; background: var(--ok-bg); color: var(--ok); margin-bottom: 8px; }
.empty__icon .i { width: 30px; height: 30px; }
.empty h3 { font-size: 18px; }
.empty p { color: var(--ink-3); max-width: 380px; margin-bottom: 8px; }

/* =========================================================
   ESCALAS
   ========================================================= */
.cover-summary { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 18px; }
.chip { display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 14px; border-radius: 12px; background: #fff; border: 1px solid var(--line); font-size: 14px; font-weight: 500; color: var(--ink-2); }
.chip b { font-size: 13px; min-width: 22px; height: 22px; display: grid; place-items: center; border-radius: 11px; padding: 0 6px; }
.chip--danger b { background: var(--danger-bg); color: var(--danger); }
.chip--warn b { background: var(--warn-bg); color: var(--warn); }
.chip--info b { background: var(--info-bg); color: var(--info); }
.chip--ok b { background: var(--ok-bg); color: var(--ok); }
.chip--neutral b { background: var(--neutral-bg); color: var(--neutral); }
.chip.is-on { background: var(--navy-900); border-color: var(--navy-900); color: #fff; }
.client-group { margin-bottom: 16px; }
.client-group__head { display: flex; align-items: center; gap: 12px; padding: 16px 22px; border-bottom: 1px solid var(--line); background: #fafbfd; }
.client-group__head h2 { font-size: 16px; font-weight: 600; flex: 1; }
.client-group__head .muted { font-size: 13px; }
.postos { list-style: none; margin: 0; padding: 0; }
.posto { display: grid; grid-template-columns: 1fr 170px 230px; gap: 16px; align-items: center; padding: 16px 22px; border-bottom: 1px solid var(--line-2); position: relative; }
.posto:last-child { border-bottom: 0; }
.posto--danger { background: linear-gradient(90deg, #fff6f6, #fff 50%); }
.posto--danger::before, .posto--warn::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; }
.posto--danger::before { background: #e5484d; } .posto--warn::before { background: #f59e0b; }
.posto--info { background: linear-gradient(90deg, #f3f7ff, #fff 50%); }
.posto__main { display: grid; grid-template-columns: 1.1fr 1fr; gap: 16px; align-items: center; }
.posto__name b, .posto__who b { display: block; font-weight: 600; }
.posto__name small, .posto__who small { display: block; font-size: 13px; color: var(--ink-3); }
.posto__who { display: flex; align-items: center; gap: 10px; min-width: 0; }
.posto__act { display: flex; justify-content: flex-end; }
.waiting { display: inline-flex; align-items: center; gap: 8px; color: var(--info); font-size: 13px; font-weight: 600; }
.presence { display: inline-flex; align-items: center; gap: 6px; color: var(--ok); font-size: 13px; font-weight: 600; }
.presence .i, .waiting .i { width: 16px; height: 16px; }
.dots { display: inline-flex; gap: 3px; }
.dots i { width: 5px; height: 5px; border-radius: 50%; background: currentColor; animation: blink 1.2s infinite; }
.dots i:nth-child(2) { animation-delay: .2s; } .dots i:nth-child(3) { animation-delay: .4s; }
@keyframes blink { 0%, 80%, 100% { opacity: .25; } 40% { opacity: 1; } }

.scale-wrap { overflow-x: auto; padding: 18px 22px; }
.scale { border-collapse: separate; border-spacing: 2px; font-size: 12px; }
.scale thead th { font-weight: 600; color: var(--ink-3); width: 28px; text-align: center; padding: 4px 0; border-radius: 8px; }
.scale thead th small { display: block; font-weight: 400; text-transform: uppercase; font-size: 10px; }
.scale thead th.is-weekend { color: #9aa5b8; }
.scale thead th.is-today { background: var(--navy-700); color: #fff; }
.scale thead th.is-today small { color: rgba(255, 255, 255, .8); }
.scale__who { text-align: left !important; width: auto !important; min-width: 166px; padding-right: 10px !important; position: sticky; left: 0; background: #fff; z-index: 1; }
.scale tbody th.scale__who { display: flex; align-items: center; gap: 10px; font-weight: 400; }
.scale__who b { display: block; font-size: 14px; } .scale__who small { color: var(--ink-3); font-size: 12px; }
.cell { height: 40px; min-width: 28px; text-align: center; border-radius: 8px; font-weight: 700; }
.cell .i { width: 14px; height: 14px; display: block; margin: 0 auto 1px; stroke-width: 2.4; }
.cell span { font-size: 10px; }
.cell--d { background: #e5edfd; color: #1f47b8; }
.cell--n { background: #2a3b63; color: #fff; }
.cell--off { background: #f5f7fa; color: #b5bfcf; }
.cell--falta { background: var(--danger-bg); color: var(--danger); box-shadow: inset 0 0 0 1.5px var(--danger-line); }
.cell--cob { background: var(--ok-bg); color: var(--ok); box-shadow: inset 0 0 0 1.5px var(--ok-line); }
.cell--wait { background: var(--info-bg); color: var(--info); }
.cell span:only-child { font-size: 13px; }
.scale-legend { display: flex; flex-wrap: wrap; align-items: center; gap: 18px; padding: 16px 22px; border-top: 1px solid var(--line); font-size: 13px; color: var(--ink-2); }
.scale-legend span { display: inline-flex; align-items: center; gap: 8px; }
.scale-legend i { width: 26px; height: 22px; border-radius: 6px; display: grid; place-items: center; font-style: normal; font-weight: 700; font-size: 11px; }
.scale-legend i .i { width: 13px; height: 13px; }
.scale-legend .btn { margin-left: auto; }

/* =========================================================
   VENCIMENTOS
   ========================================================= */
.counters { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 18px; }
.counter { display: flex; align-items: center; gap: 14px; padding: 18px; border-radius: var(--r-lg); background: #fff; border: 2px solid transparent; box-shadow: var(--shadow); transition: border-color .2s, transform .2s; }
.counter:hover { transform: translateY(-2px); }
.counter b { display: block; font: 700 28px/1 var(--f-head); }
.counter > span:last-child { font-size: 14px; color: var(--ink-2); }
.counter__icon { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; }
.counter__icon .i { width: 24px; height: 24px; }
.counter--danger .counter__icon { background: var(--danger-bg); color: var(--danger); } .counter--danger b { color: var(--danger); }
.counter--warn .counter__icon { background: var(--warn-bg); color: var(--warn); } .counter--warn b { color: var(--warn); }
.counter--soon .counter__icon { background: var(--soon-bg); color: var(--soon); } .counter--soon b { color: var(--soon); }
.counter--ok .counter__icon { background: var(--ok-bg); color: var(--ok); } .counter--ok b { color: var(--ok); }
.counter.is-on { border-color: var(--navy-700); }
.filter-note { display: flex; align-items: center; gap: 8px; padding: 12px 22px; background: #f6f9ff; border-bottom: 1px solid var(--line); font-size: 14px; color: var(--ink-2); }
.filter-note .i { width: 16px; height: 16px; }
.filter-note a { margin-left: auto; color: var(--navy-700); font-weight: 600; }
.hint { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; color: var(--ink-2); padding: 14px 16px; border-radius: 12px; background: #e9eef6; }
.hint .i { color: var(--navy-700); margin-top: 1px; }

/* =========================================================
   ORDENS DE SERVIÇO
   ========================================================= */
.kanban { display: grid; grid-template-columns: repeat(4, minmax(250px, 1fr)); gap: 16px; overflow-x: auto; align-items: start; }
.kcol { background: #e6ebf3; border-radius: var(--r-lg); padding: 12px; }
.kcol header { display: flex; align-items: center; justify-content: space-between; padding: 4px 6px 12px; }
.kcol h2 { font-size: 15px; font-weight: 600; display: flex; align-items: center; gap: 8px; }
.kcol h2::before { content: ""; width: 10px; height: 10px; border-radius: 3px; background: var(--k); }
.kcol--aberta { --k: #2f6fe0; } .kcol--atendimento { --k: #f59e0b; } .kcol--material { --k: #8b3fd9; } .kcol--concluida { --k: #1f9e3a; }
.kcol header span { font-size: 13px; font-weight: 600; color: var(--ink-2); background: #fff; border-radius: 8px; padding: 1px 9px; }
.kcol__list { display: flex; flex-direction: column; gap: 10px; }
.kcol__empty { text-align: center; color: var(--ink-3); font-size: 13px; padding: 24px 0; border: 2px dashed #cdd6e4; border-radius: 12px; }
.os-card { display: flex; flex-direction: column; gap: 8px; text-align: left; width: 100%; padding: 14px; border-radius: 14px; background: #fff; border: 1px solid transparent; box-shadow: 0 1px 2px rgba(13, 24, 48, .06); transition: transform .2s, box-shadow .2s; }
.os-card:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.os-card--late { border-color: var(--danger-line); }
.os-card__top { display: flex; justify-content: space-between; align-items: center; }
.os-card__top .badge { font-size: 12px; padding: 2px 8px 2px 6px; }
.os-card__title { font-weight: 600; font-size: 14px; line-height: 1.4; }
.os-card__meta { display: flex; gap: 6px; align-items: center; font-size: 13px; color: var(--ink-2); }
.os-card__meta .i { width: 15px; height: 15px; color: var(--ink-3); }
.os-card__tags { display: flex; gap: 6px; }
.spec { font-size: 12px; font-weight: 600; padding: 2px 8px; border-radius: 6px; background: #e0f3f1; color: #0f766e; }
.spec--light { background: #f1f4f9; color: var(--ink-2); }
.os-card__foot { display: flex; align-items: center; gap: 8px; padding-top: 8px; margin-top: 2px; border-top: 1px solid var(--line-2); font-size: 12px; }
.tech { display: inline-flex; align-items: center; gap: 6px; color: var(--ink-2); flex: 1; min-width: 0; }
.tech--none { color: var(--warn); font-weight: 600; }
.tech--none .i { width: 15px; height: 15px; }
.due { display: inline-flex; align-items: center; gap: 4px; color: var(--ink-3); white-space: nowrap; }
.due .i { width: 14px; height: 14px; }
.due--late { color: var(--danger); font-weight: 600; }
.origin { color: var(--ink-3); }
.origin .i { width: 16px; height: 16px; }
.ai-seal { align-self: flex-start; display: inline-flex; align-items: center; gap: 5px; font-size: 11px; font-weight: 700; padding: 3px 8px; border-radius: 6px; color: #fff; background: linear-gradient(90deg, var(--navy-700), #1f9e3a); }
.ai-seal .i { width: 13px; height: 13px; }

/* =========================================================
   DRAWER
   ========================================================= */
.drawer { position: fixed; inset: 0; z-index: 60; }
.drawer__scrim { position: absolute; inset: 0; background: rgba(6, 21, 53, .35); backdrop-filter: blur(2px); opacity: 0; transition: opacity .25s; }
.drawer__panel { position: absolute; top: 12px; right: 12px; bottom: 12px; width: min(520px, calc(100vw - 24px)); display: flex; flex-direction: column; background: #fff; border-radius: var(--r-xl); box-shadow: var(--shadow-lg); transform: translateX(105%); transition: transform .3s var(--ease); outline: 0; }
.drawer--wide .drawer__panel { width: min(640px, calc(100vw - 24px)); }
.drawer.is-open .drawer__scrim { opacity: 1; }
.drawer.is-open .drawer__panel { transform: none; }
.drawer__head { display: flex; justify-content: space-between; gap: 16px; padding: 22px 24px 18px; border-bottom: 1px solid var(--line); }
.drawer__head h2 { font-size: 21px; font-weight: 700; }
.drawer__head p { color: var(--ink-2); font-size: 14px; margin-top: 4px; }
.drawer__body { flex: 1; overflow-y: auto; padding: 20px 24px 28px; display: flex; flex-direction: column; gap: 14px; }
.drawer__foot { display: flex; justify-content: flex-end; gap: 10px; padding: 16px 24px; border-top: 1px solid var(--line); background: #fafbfd; border-radius: 0 0 var(--r-xl) var(--r-xl); }
.drawer__h { font-size: 15px; font-weight: 600; margin-top: 10px; }
.lead { font-size: 16px; }

.banner { display: flex; gap: 12px; padding: 14px 16px; border-radius: 12px; border: 1px solid; font-size: 14px; }
.banner > .i { margin-top: 1px; }
.banner b { display: block; }
.banner p { color: inherit; opacity: .9; margin-top: 2px; }
.banner--danger { background: var(--danger-bg); border-color: var(--danger-line); color: #7f1d1d; } .banner--danger > .i { color: var(--danger); }
.banner--warn { background: var(--warn-bg); border-color: var(--warn-line); color: #6b3a05; } .banner--warn > .i { color: var(--warn); }
.banner--soon { background: var(--soon-bg); border-color: var(--soon-line); color: #5b3a05; }
.banner--info { background: var(--info-bg); border-color: var(--info-line); color: #1e3a8a; }

.facts { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 0; }
.facts div { padding: 12px 14px; border-radius: 12px; background: #f6f8fb; }
.facts dt { font-size: 12px; color: var(--ink-3); margin-bottom: 2px; }
.facts dd { margin: 0; font-weight: 600; display: flex; align-items: center; gap: 6px; }
.facts dd .i { width: 16px; height: 16px; }
.list { list-style: none; margin: 0; padding: 0; border: 1px solid var(--line); border-radius: 12px; }
.list li { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-bottom: 1px solid var(--line-2); }
.list li:last-child { border-bottom: 0; }
.list li > div { flex: 1; }
.list b { display: block; font-weight: 600; font-size: 14px; }
.list small { font-size: 13px; color: var(--ink-3); }
.list .i { color: var(--ink-3); }
.ok-line { display: flex; align-items: center; gap: 8px; color: var(--ok); font-weight: 600; }
.margin__bar { display: flex; height: 34px; border-radius: 10px; overflow: hidden; margin-bottom: 8px; }
.margin__cost { background: #dfe6f1; color: var(--ink-2); font-size: 12px; font-weight: 600; display: flex; align-items: center; padding-left: 12px; white-space: nowrap; }
.margin__profit { background: linear-gradient(90deg, #22b04a, #1f9e3a); }
.margin p { font-size: 14px; color: var(--ink-2); }
.margin .txt-warn { display: inline-flex; align-items: center; gap: 4px; }
.meas { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.meas div { padding: 12px 14px; border-radius: 12px; border: 1px solid var(--line); }
.meas span { display: block; font-size: 12px; color: var(--ink-3); }
.meas b { font: 700 20px var(--f-head); }
.meas--danger { background: var(--danger-bg); border-color: var(--danger-line) !important; }
.meas--danger b { color: var(--danger); }
.timeline { list-style: none; margin: 0; padding: 0; }
.timeline li { display: flex; gap: 12px; padding-bottom: 14px; position: relative; }
.timeline li:not(:last-child)::before { content: ""; position: absolute; left: 5px; top: 14px; bottom: 0; width: 2px; background: var(--line); }
.timeline__dot { width: 12px; height: 12px; border-radius: 50%; border: 2px solid var(--navy-700); background: #fff; margin-top: 4px; flex: none; }
.timeline__dot--ok { border-color: var(--ok); background: var(--ok); }
.timeline small { color: var(--ink-3); font-size: 12px; }
.timeline p { font-size: 14px; }
.doc-preview { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 32px; border-radius: 14px; background: repeating-linear-gradient(45deg, #f7f9fc 0 10px, #f1f4f9 10px 20px); border: 1px solid var(--line); text-align: center; }
.doc-preview .i { width: 40px; height: 40px; color: var(--navy-700); margin-bottom: 6px; }
.doc-preview small { color: var(--ink-3); }
.photos { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.photos figure { margin: 0; }
.photo { aspect-ratio: 4/3; border-radius: 12px; display: grid; place-items: center; color: #fff; background: linear-gradient(135deg, #5b7bb5, #22385f); }
.photo .i { width: 34px; height: 34px; opacity: .8; }
.photo--empty { background: #f1f4f9; color: #b5bfcf; border: 2px dashed #d6deea; }
.photos figcaption { font-size: 12px; color: var(--ink-3); margin-top: 6px; }
.field { display: flex; flex-direction: column; gap: 6px; font-size: 14px; font-weight: 600; }

/* Cobertura */
.steps-mini { display: flex; gap: 6px; font-size: 12px; }
.steps-mini span { flex: 1; padding: 8px 10px; border-radius: 8px; background: #f1f4f9; color: var(--ink-3); font-weight: 600; }
.steps-mini .is-on { background: var(--navy-700); color: #fff; }
.loading { display: flex; align-items: center; gap: 8px; color: var(--ink-2); font-weight: 500; margin-bottom: 12px; }
.loading .i { color: var(--green-600); animation: spin 1.4s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.skel { height: 78px; border-radius: 14px; margin-bottom: 10px; background: linear-gradient(90deg, #f1f4f9 25%, #e7ecf3 50%, #f1f4f9 75%); background-size: 200% 100%; animation: shimmer 1.2s infinite; }
@keyframes shimmer { to { background-position: -200% 0; } }
.cands__title { font-weight: 600; margin: 4px 0 10px; }
.cands__title--muted { margin-top: 18px; }
.cands { display: flex; flex-direction: column; gap: 10px; }
.cand { display: flex; align-items: center; gap: 14px; padding: 14px; border-radius: 14px; border: 2px solid var(--line); background: #fff; cursor: pointer; text-align: left; width: 100%; transition: border-color .2s, background .2s; animation: rise .35s var(--ease) both; }
.cand:nth-child(2) { animation-delay: 60ms; } .cand:nth-child(3) { animation-delay: 120ms; }
.cand input { position: absolute; opacity: 0; pointer-events: none; }
.cand:has(input:checked) { border-color: var(--navy-700); background: #f4f8ff; box-shadow: 0 0 0 4px rgba(18, 63, 140, .08); }
.cand:has(input:focus-visible) { outline: 3px solid #7aa6ff; }
.cand__body { flex: 1; min-width: 0; }
.cand__body b { display: flex; align-items: center; gap: 8px; font-weight: 600; }
.cand__body b em { font-style: normal; display: inline-flex; align-items: center; gap: 4px; font-size: 11px; font-weight: 700; padding: 2px 8px; border-radius: 6px; background: var(--ok-bg); color: var(--ok); }
.cand__body b em .i { width: 12px; height: 12px; }
.cand__body small { display: block; color: var(--ink-3); font-size: 13px; }
.cand__tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.cand__tags span { display: inline-flex; align-items: center; gap: 4px; font-size: 12px; font-weight: 500; padding: 3px 8px; border-radius: 6px; background: var(--ok-bg); color: var(--ok); }
.cand__tags .i { width: 12px; height: 12px; stroke-width: 2.6; }
.cand__cost { font-size: 13px; font-weight: 600; text-align: right; max-width: 120px; }
.cand--off { background: #f8f9fb; border-style: dashed; cursor: pointer; }
.cand--off .avatar { filter: grayscale(1); opacity: .6; }
.cand--off b { color: var(--ink-2); }
.cand__why { display: flex; align-items: flex-start; gap: 6px; margin-top: 6px; font-size: 13px; color: var(--danger); font-weight: 500; }
.cand__why .i { width: 14px; height: 14px; margin-top: 2px; }
.block-msg { display: flex; gap: 12px; padding: 14px 16px; border-radius: 12px; background: var(--danger-bg); border: 1px solid var(--danger-line); color: #7f1d1d; font-size: 14px; margin-top: 12px; }
.block-msg > .i { color: var(--danger); }
.block-msg b { display: block; }
.shake { animation: shake .4s; }
@keyframes shake { 20%, 60% { transform: translateX(-6px); } 40%, 80% { transform: translateX(6px); } }

/* =========================================================
   ASSISTENTE
   ========================================================= */
.seal { display: inline-flex; align-items: center; gap: 8px; padding: 10px 14px; border-radius: 12px; background: #e3f7e9; color: #146c2e; font-weight: 600; font-size: 14px; border: 1px solid #bfe8cb; }
.assist { display: grid; grid-template-columns: 1fr 380px; gap: 20px; align-items: start; }
.assist__stage { background: radial-gradient(80% 60% at 50% 0%, #fff, transparent), linear-gradient(180deg, #e3e9f2, #edf1f7); border-radius: var(--r-xl); padding: 22px; }
.assist__desc { text-align: center; color: var(--ink-2); margin-bottom: 18px; }
.phones { display: flex; justify-content: center; gap: 28px; }
.phone { position: relative; width: 300px; height: 590px; border-radius: 40px; background: #0b0f17; padding: 10px; box-shadow: 0 30px 60px -24px rgba(6, 21, 53, .55), inset 0 0 0 2px #2a3140; display: flex; flex-direction: column; transition: transform .35s var(--ease), box-shadow .35s; }
.phone.is-active { transform: translateY(-6px); box-shadow: 0 40px 70px -24px rgba(6, 21, 53, .6), 0 0 0 4px rgba(31, 158, 58, .45), inset 0 0 0 2px #2a3140; }
.phone > * { position: relative; }
.phone__notch { position: absolute; top: 16px; left: 50%; transform: translateX(-50%); width: 92px; height: 24px; border-radius: 14px; background: #0b0f17; z-index: 3; }
.phone__bar { display: flex; justify-content: space-between; padding: 12px 22px 6px; background: #075e54; color: #fff; font-size: 11px; font-weight: 600; border-radius: 30px 30px 0 0; }
.phone__sig { letter-spacing: -1px; }
.wa-head { display: flex; align-items: center; gap: 10px; padding: 8px 12px 10px; background: #075e54; color: #fff; }
.wa-head__av { width: 34px; height: 34px; border-radius: 50%; overflow: hidden; background: #fff; }
.wa-head b { display: flex; align-items: center; gap: 4px; font-size: 14px; }
.wa-head small { font-size: 11px; opacity: .8; }
.verified { width: 14px !important; height: 14px !important; fill: #25d366; stroke: #fff; }
.wa-chat { flex: 1; overflow-y: auto; padding: 10px 10px 6px; display: flex; flex-direction: column; gap: 6px; background-color: #efe7dd; background-image: radial-gradient(rgba(0, 0, 0, .035) 1px, transparent 1px); background-size: 14px 14px; scrollbar-width: none; }
.wa-day { align-self: center; font-size: 10px; font-weight: 600; color: #54656f; background: #fff; padding: 3px 8px; border-radius: 6px; box-shadow: 0 1px 1px rgba(0, 0, 0, .06); }
.wa-sys { align-self: center; display: flex; gap: 4px; align-items: flex-start; text-align: center; font-size: 10px; color: #54656f; background: #fff6c4; padding: 5px 8px; border-radius: 6px; max-width: 90%; }
.wa-sys .i { width: 11px; height: 11px; flex: none; margin-top: 1px; }
.bubble { position: relative; max-width: 84%; padding: 6px 8px 16px; border-radius: 10px; font-size: 13px; line-height: 1.4; box-shadow: 0 1px 1px rgba(0, 0, 0, .1); animation: msg .3s var(--ease) both; }
@keyframes msg { from { opacity: 0; transform: translateY(6px) scale(.98); } }
.bubble--bot { align-self: flex-start; background: #fff; border-top-left-radius: 2px; }
.bubble--me { align-self: flex-end; background: #d9fdd3; border-top-right-radius: 2px; }
.bubble--typing { padding: 10px 14px; color: #8696a0; }
.bubble__time { position: absolute; right: 8px; bottom: 3px; font-size: 10px; color: #667781; display: flex; align-items: center; gap: 2px; }
.bubble__time .read { width: 13px; height: 13px; color: #53bdeb; stroke-width: 2.4; }
.bubble__img { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; width: 200px; height: 120px; border-radius: 6px; margin-bottom: 4px; background: linear-gradient(135deg, #cfd8e3, #9fb0c4); color: #fff; }
.bubble__img .i { width: 28px; height: 28px; }
.bubble__img small { font-size: 10px; }
.bubble__link { display: flex; align-items: center; gap: 6px; margin-top: 8px; padding: 8px 10px; border-radius: 8px; background: #f0f5ff; color: #1d4ed8; font-weight: 600; font-size: 12px; }
.bubble__link .i { width: 14px; height: 14px; }
.wa-input { display: flex; align-items: center; justify-content: space-between; margin: 6px; padding: 9px 12px; border-radius: 20px; background: #fff; color: #8696a0; font-size: 12px; }
.wa-input .i { width: 16px; height: 16px; color: #075e54; }
.phone > .wa-input { margin-bottom: 0; }
.phone .wa-chat + .wa-input { border-radius: 20px; }
.phone__label { position: absolute; bottom: -46px; left: 0; right: 0; text-align: center; font-size: 12px; color: var(--ink-3); }
.phone__label b { display: block; color: var(--ink); font-size: 14px; }
.phone { margin-bottom: 52px; }
.phone .wa-input { border-radius: 0 0 30px 30px; margin: 0; padding: 12px 16px 16px; background: #f0f2f5; }
.assist__controls { display: flex; justify-content: center; align-items: center; gap: 16px; margin-top: 6px; }
.assist__progress { font-size: 14px; color: var(--ink-2); font-weight: 600; min-width: 70px; text-align: center; }
.assist__note { display: flex; justify-content: center; align-items: center; gap: 8px; margin-top: 16px; font-size: 13px; color: var(--ink-2); text-align: center; }
.assist__note .i { width: 15px; height: 15px; }
.log { position: sticky; top: 96px; margin: 0; }
.log__list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.log__empty { display: flex; gap: 8px; align-items: flex-start; color: var(--ink-3); font-size: 14px; padding: 20px 0; }
.log__item { display: flex; gap: 12px; padding: 12px; border-radius: 12px; background: #f7f9fc; animation: rise .35s var(--ease) both; }
.log__item b { font-size: 14px; }
.log__item p { font-size: 13px; color: var(--ink-2); }
.log__item small { font-size: 11px; color: var(--ink-3); }
.log__icon { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; flex: none; }
.log__icon .i { width: 18px; height: 18px; }
.log__item--danger .log__icon { background: var(--danger-bg); color: var(--danger); }
.log__item--lock .log__icon { background: #efe7fb; color: #7b2fc9; }
.log__item--sparkle .log__icon { background: #e6eefc; color: var(--info); }
.log__item--check .log__icon, .log__item--search .log__icon { background: #e6eefc; color: var(--navy-700); }
.log__item--ok .log__icon { background: var(--ok-bg); color: var(--ok); }
.log__item--warn .log__icon { background: var(--warn-bg); color: var(--warn); }

/* =========================================================
   FORMULÁRIOS (login e chamados)
   ========================================================= */
.input { width: 100%; font: inherit; color: var(--ink); padding: 12px 14px; border-radius: 12px; border: 1px solid var(--line); background: #fff; transition: border-color .2s, box-shadow .2s; }
.input:focus { outline: 0; border-color: var(--blue-500); box-shadow: 0 0 0 4px rgba(47, 111, 224, .12); }
textarea.input { resize: vertical; }
.field { display: flex; flex-direction: column; gap: 6px; font-size: 14px; font-weight: 600; color: var(--ink); }
.field--radio { border: 0; padding: 0; margin: 0; flex-direction: row; flex-wrap: wrap; align-items: center; gap: 8px; }
.field--radio legend { width: 100%; margin-bottom: 6px; padding: 0; }
.pill-radio input { position: absolute; opacity: 0; }
.pill-radio span { display: inline-flex; align-items: center; gap: 6px; padding: 9px 16px; border-radius: 999px; border: 1px solid var(--line); font-weight: 500; cursor: pointer; }
.pill-radio span .i { width: 16px; height: 16px; color: var(--warn); }
.pill-radio input:checked + span { border-color: var(--navy-700); background: #eef3fd; color: var(--navy-700); font-weight: 600; }
.pill-radio input:focus-visible + span { outline: 3px solid #7aa6ff; }
.upload { display: flex; align-items: center; gap: 14px; padding: 14px; border-radius: 12px; border: 2px dashed #cdd6e4; background: #fafbfd; text-align: left; }
.upload > .i { width: 28px; height: 28px; color: var(--ink-3); }
.upload b { display: block; font-size: 14px; }
.upload small { color: var(--ink-3); font-size: 12px; }
.upload.is-done { border-style: solid; border-color: var(--ok-line); background: var(--ok-bg); }
.upload.is-done > .i { color: var(--ok); }
.form-err { color: var(--danger); font-size: 14px; font-weight: 500; }
.link { border: 0; background: none; padding: 0; color: var(--navy-700); font-weight: 600; text-decoration: underline; text-underline-offset: 2px; }
.check { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; color: var(--ink-2); }
.check input { width: 18px; height: 18px; accent-color: var(--navy-700); }
.btn--full, .btn--block { width: 100%; }
.input-pass { position: relative; display: block; }
.input-pass .input { padding-right: 48px; }
.input-pass__btn { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); border: 0; background: none; padding: 8px; color: var(--ink-3); display: grid; }

/* =========================================================
   LOGIN
   ========================================================= */
.login-page { background: #fff; }
.login { display: grid; grid-template-columns: 1.05fr 1fr; min-height: 100vh; }
.login__brand {
  position: relative; overflow: hidden; display: flex; flex-direction: column; justify-content: space-between; padding: 48px 56px; color: #fff;
  background:
    radial-gradient(70% 50% at 100% 0%, rgba(31, 158, 58, .35), transparent 60%),
    radial-gradient(70% 60% at 0% 100%, rgba(47, 111, 224, .45), transparent 60%),
    linear-gradient(150deg, var(--navy-800), var(--navy-950));
}
.login__brand::after { content: ""; position: absolute; right: -120px; bottom: -120px; width: 520px; height: 520px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .08); box-shadow: 0 0 0 60px rgba(255, 255, 255, .025), 0 0 0 120px rgba(255, 255, 255, .02); }
.login__logo { position: relative; z-index: 1; }
.login__pitch { position: relative; z-index: 1; max-width: 480px; }
.login__eyebrow { font-size: 13px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--green-300); margin-bottom: 14px; }
.login__pitch h1 { font-size: clamp(30px, 3.2vw, 44px); line-height: 1.1; font-weight: 700; margin-bottom: 28px; }
.login__pitch ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 14px; font-size: 16px; color: rgba(255, 255, 255, .85); }
.login__pitch li { display: flex; align-items: center; gap: 12px; }
.login__pitch li .i { width: 22px; height: 22px; padding: 3px; border-radius: 7px; background: rgba(126, 226, 160, .18); color: var(--green-300); stroke-width: 2.4; }
.login__foot { position: relative; z-index: 1; font-size: 13px; color: rgba(255, 255, 255, .5); }
.login__form-wrap { display: grid; place-items: center; padding: 40px 24px; background: var(--bg); }
.login__card { width: 100%; max-width: 440px; display: flex; flex-direction: column; gap: 16px; padding: 36px; border-radius: var(--r-xl); background: #fff; box-shadow: var(--shadow); }
.login__card h2 { font-size: 28px; font-weight: 700; }
.login__sub { color: var(--ink-2); margin-top: -10px; }
.login__who { display: grid; gap: 10px; }
.who { display: flex; align-items: center; gap: 14px; padding: 14px; border-radius: 14px; border: 2px solid var(--line); cursor: pointer; transition: border-color .2s, background .2s; }
.who input { position: absolute; opacity: 0; }
.who__icon { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: #eef2f8; color: var(--navy-700); flex: none; }
.who b { display: block; }
.who small { color: var(--ink-3); font-size: 13px; }
.who:has(input:checked) { border-color: var(--navy-700); background: #f4f8ff; }
.who:has(input:checked) .who__icon { background: var(--navy-700); color: #fff; }
.who:has(input:focus-visible) { outline: 3px solid #7aa6ff; }
.login__row { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.login__msg { font-size: 14px; color: var(--ink-2); min-height: 1em; }
.login__demo { display: flex; gap: 8px; align-items: flex-start; font-size: 13px; color: var(--ink-2); padding: 12px 14px; border-radius: 12px; background: var(--info-bg); }
.login__demo .i { width: 18px; height: 18px; color: var(--info); }
.login__back { text-align: center; font-size: 14px; color: var(--ink-3); }
.login__back:hover { color: var(--navy-700); }
@media (max-width: 900px) { .login { grid-template-columns: 1fr; } .login__brand { padding: 32px 24px; gap: 32px; } }

/* =========================================================
   PORTAL DO CLIENTE
   ========================================================= */
.portal .side { background: radial-gradient(120% 60% at 0% 100%, rgba(31, 158, 58, .3), transparent 60%), linear-gradient(180deg, #123a7a, var(--navy-950)); }
.client-chip { display: flex; align-items: center; gap: 12px; min-height: 52px; padding: 6px 16px 6px 6px; border-radius: 14px; background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow); }
.client-chip__icon { width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center; background: var(--navy-700); color: #fff; }
.client-chip small { display: block; font-size: 11px; color: var(--ink-3); text-transform: uppercase; letter-spacing: .06em; }
.client-chip b { font: 600 15px var(--f-head); }
.client-chip__tags { display: flex; margin-left: 6px; }
.avatar--client { background: linear-gradient(135deg, #1f9e3a, #0f6b27); }
.hero-card--client { background: radial-gradient(70% 120% at 100% 0%, rgba(31, 158, 58, .45), transparent 60%), linear-gradient(120deg, #13407f, var(--navy-950)); }
.ccards { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.ccard { padding: 18px; border-radius: 14px; border: 1px solid var(--line); border-top: 4px solid var(--c); }
.ccard header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; }
.ccard h3 { font-size: 17px; margin-bottom: 14px; }
.ccard dl { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 0; }
.ccard dt { font-size: 12px; color: var(--ink-3); }
.ccard dd { margin: 0; font-weight: 600; font-size: 14px; }
.team-ok { display: flex; align-items: center; gap: 14px; padding: 16px; border-radius: 14px; background: var(--ok-bg); margin-bottom: 14px; }
.team-ok p { font-size: 15px; color: #14532d; }
.team-ok__icon { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; background: #fff; color: var(--ok); flex: none; }
.team-ok__icon .i { width: 24px; height: 24px; }
.card .hint { margin-bottom: 14px; }
.report-teaser { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; background: linear-gradient(160deg, #fff 40%, #eef4ff); }
.report-teaser h2 { font-size: 22px; }
.report-teaser p { color: var(--ink-2); }
.tickets { display: flex; flex-direction: column; gap: 14px; }
.ticket { padding: 20px 22px; border-radius: var(--r-lg); background: #fff; box-shadow: var(--shadow); display: flex; flex-direction: column; gap: 10px; }
.ticket--new { box-shadow: var(--shadow), 0 0 0 2px var(--blue-500); animation: rise .4s var(--ease); }
.ticket header { display: flex; align-items: center; gap: 10px; }
.ticket header .badge { margin-left: auto; }
.ticket h3 { font-size: 18px; }
.ticket__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font-size: 13px; color: var(--ink-3); }
.ticket__meta .i { width: 15px; height: 15px; }
.ticket__answer { display: flex; gap: 10px; padding: 12px 14px; border-radius: 12px; background: var(--ok-bg); color: #14532d; font-size: 14px; }
.ticket__answer .i { color: var(--ok); margin-top: 1px; }
.ticket footer { display: flex; align-items: center; gap: 8px; padding-top: 10px; border-top: 1px solid var(--line-2); font-size: 14px; color: var(--ink-2); }
.ticket footer .i { width: 17px; height: 17px; color: var(--ink-3); }
.ticket footer .muted { margin-left: auto; }
.reports { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.report { padding: 22px; border-radius: var(--r-lg); background: #fff; box-shadow: var(--shadow); display: flex; flex-direction: column; gap: 18px; }
.report--new { box-shadow: var(--shadow), 0 0 0 2px var(--info-line); }
.report header { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.report h2 { font-size: 19px; }
.report__nums { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.report__nums div { padding: 10px 12px; border-radius: 10px; background: #f6f8fb; }
.report__nums span { display: block; font-size: 12px; color: var(--ink-3); }
.report__nums b { font: 700 18px var(--f-head); }
.report footer { display: flex; gap: 8px; margin-top: auto; }
.ai-note { display: flex; gap: 8px; align-items: center; font-size: 13px; color: var(--info); padding: 10px 12px; border-radius: 10px; background: var(--info-bg); }
.ai-note .i { width: 16px; height: 16px; }
.plan { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; font-size: 14px; }
.plan li { display: flex; gap: 10px; }
.plan .i { width: 18px; height: 18px; color: var(--ok); stroke-width: 2.4; }
.team-docs { display: flex; align-items: center; gap: 18px; }
.team-docs .team-ok__icon { background: var(--ok-bg); }
.team-docs > div { flex: 1; }
.team-docs h2 { font-size: 17px; }
.team-docs p { color: var(--ink-2); font-size: 14px; }
.ai-seal--client { background: linear-gradient(90deg, #0f8f86, #1f9e3a); }
@media (max-width: 1280px) { .reports { grid-template-columns: 1fr 1fr; } .ccards { grid-template-columns: 1fr; } }
@media (max-width: 1024px) { .client-chip__tags { display: none; } .team-docs { flex-wrap: wrap; } }

/* =========================================================
   TOASTS
   ========================================================= */
.toasts { position: fixed; z-index: 80; right: 20px; bottom: 20px; display: flex; flex-direction: column; gap: 10px; align-items: flex-end; }
.toast { display: flex; align-items: center; gap: 12px; max-width: 440px; padding: 14px 14px 14px 16px; border-radius: 14px; background: var(--navy-950); color: #fff; box-shadow: var(--shadow-lg); font-size: 14px; opacity: 0; transform: translateY(12px); transition: opacity .25s, transform .3s var(--ease); }
.toast.is-in { opacity: 1; transform: none; }
.toast > .i { color: var(--green-300); }
.toast--info > .i { color: #9cc0ff; } .toast--warn > .i { color: #ffc861; }
.toast p { flex: 1; }
.toast__action { border: 0; background: rgba(255, 255, 255, .14); color: #fff; padding: 6px 12px; border-radius: 8px; font-weight: 600; font-size: 13px; }
.toast__x { border: 0; background: none; color: rgba(255, 255, 255, .6); padding: 2px; display: grid; }
.toast__x .i { width: 16px; height: 16px; }

/* =========================================================
   RESPONSIVO (tablet)
   ========================================================= */
@media (max-width: 1280px) {
  .kpi-strip { grid-template-columns: repeat(2, 1fr); }
  .kpi:nth-child(3)::before { display: none; }
  .kpi:nth-child(n+3) { border-top: 1px solid var(--line); border-radius: 0; }
  .grid--2-1 { grid-template-columns: 1fr; }
  .posto { grid-template-columns: 1fr auto; }
  .posto__status { grid-row: 1; grid-column: 2; }
  .posto__act { grid-column: 1 / -1; justify-content: flex-start; }
  .assist { grid-template-columns: 1fr; }
  .log { position: static; }
  .counters { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 1024px) {
  :root { --side-w: 0px; }
  .side { transform: translateX(-120%); transition: transform .3s var(--ease); width: 260px; }
  body.side-open .side { transform: none; }
  body.side-open .side-scrim { display: block; position: fixed; inset: 0; z-index: 25; background: rgba(6, 21, 53, .35); }
  .top { margin-left: 0; padding: 12px 20px; }
  .top .top__menu { display: grid; }
  .main { margin-left: 0; padding: 8px 20px 40px; }
  .user__txt, .search kbd { display: none; }
  .hero-card { flex-direction: column; align-items: flex-start; }
  .posto__main { grid-template-columns: 1fr; gap: 8px; }
  .phones--2 { flex-direction: column; align-items: center; }
}
/* =========================================================
   NOTAS FISCAIS (NFS-e)
   ========================================================= */
.txt-ok .i { width: 15px; height: 15px; vertical-align: -3px; margin-right: 4px; }
.grow { flex: 1; }
.btn-row { display: flex; flex-wrap: wrap; gap: 8px; }
.btn--danger { background: var(--danger); color: #fff; }
.btn--danger:hover { background: #8f1b12; }
.btn--danger-txt { color: var(--danger); }
.btn--danger-txt:hover { background: var(--danger-bg); border-color: var(--danger-line); }

/* lista "prontas para emitir" */
.list--bill li > div small { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; margin-top: 2px; }
.list--bill li > div small .i { width: 14px; height: 14px; color: var(--danger); margin-right: -2px; }
.list--bill .list__val { font: 600 15px var(--f-head); white-space: nowrap; }
.list--bill li.is-danger { background: var(--danger-bg); }
.list--bill li.is-danger:first-child { border-radius: 12px 12px 0 0; }

/* prévia da nota */
.nf { position: relative; flex: none; border: 1px solid var(--line); border-radius: 16px; overflow: hidden; background: #fff; box-shadow: 0 1px 2px rgba(13, 24, 48, .04); }
.nf small { display: block; font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: .05em; color: var(--ink-3); }
.nf__head { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 18px 20px; color: #fff; background: radial-gradient(120% 140% at 100% 0, #1d4fa8 0, transparent 55%), linear-gradient(135deg, var(--navy-950), var(--navy-800)); }
.nf__head small { color: rgba(255, 255, 255, .65); text-transform: none; letter-spacing: 0; font-weight: 500; font-size: 12px; }
.nf__brand { display: flex; align-items: center; gap: 12px; }
.nf__brand b { font: 700 16px var(--f-head); }
.nf__logo { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: var(--c); color: #fff; font: 700 18px var(--f-head); box-shadow: 0 0 0 3px rgba(255, 255, 255, .15); flex: none; }
.nf__num { text-align: right; }
.nf__num b { display: block; font: 700 26px/1.1 var(--f-head); letter-spacing: -.02em; }
.nf__grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr; border-bottom: 1px solid var(--line-2); }
.nf__grid > div { padding: 14px 20px; }
.nf__grid > div + div { border-left: 1px solid var(--line-2); }
.nf__grid b { display: block; font-weight: 600; font-size: 14px; margin-top: 3px; }
.nf__grid span { display: block; font-size: 12px; color: var(--ink-3); }
.nf__code { font-family: ui-monospace, "SF Mono", Menlo, monospace; letter-spacing: .06em; color: var(--navy-700); }
.nf__svc { padding: 14px 20px; border-bottom: 1px solid var(--line-2); background: #fafbfd; }
.nf__svc b { display: block; font-weight: 600; font-size: 14px; margin: 3px 0 4px; }
.nf__svc p { font-size: 13px; color: var(--ink-2); }
.nf__vals { width: 100%; border-collapse: collapse; font-size: 14px; }
.nf__vals td { padding: 9px 20px; border-bottom: 1px solid var(--line-2); color: var(--ink-2); }
.nf__vals .num { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.nf__muted td { color: var(--ink-3); font-size: 13px; }
.nf__strong td { color: var(--ink); font-weight: 600; background: #f6f8fb; }
.nf__total td { color: var(--ok); font: 700 17px var(--f-head); background: var(--ok-bg); border-bottom: 0; }
.drawer__body > .nf__vals { border: 1px solid var(--line); border-radius: 12px; overflow: hidden; border-collapse: separate; border-spacing: 0; }
.drawer__body > .nf__vals td { padding: 10px 16px; }
.nf__foot { padding: 12px 20px; font-size: 12px; color: var(--ink-3); border-top: 1px solid var(--line-2); }
.nf__foot .term .i { width: 12px; height: 12px; }
.nf--cancel > *:not(.nf__head) { opacity: .5; }
.nf--cancel::after { content: "CANCELADA"; position: absolute; top: 52%; left: 50%; transform: translate(-50%, -50%) rotate(-12deg); font: 800 42px var(--f-head); letter-spacing: .08em; color: rgba(180, 35, 24, .55); border: 4px solid rgba(180, 35, 24, .45); padding: 2px 18px; border-radius: 12px; pointer-events: none; }

/* passos da emissão */
.steps-mini--nf span { display: inline-flex; align-items: center; gap: 4px; }
.steps-mini .is-done { background: var(--ok-bg); color: var(--ok); }
.steps-mini .i { width: 14px; height: 14px; }
.facts--fixed { background: var(--ok-bg) !important; box-shadow: inset 0 0 0 1px var(--ok-line); }
.facts__note { display: flex; align-items: center; gap: 4px; margin-top: 4px; font-size: 12px; color: var(--ok); font-weight: 600; }
.facts__note .i { width: 14px; height: 14px; }
.facts dd s { font-weight: 400; }
.nf-sum { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.nf-sum div { padding: 14px 16px; border-radius: 14px; background: linear-gradient(160deg, #f4f7fd, #eef3fc); border: 1px solid var(--info-line); }
.nf-sum small { display: block; font-size: 12px; color: var(--ink-3); }
.nf-sum b { font: 700 20px var(--f-head); letter-spacing: -.01em; white-space: nowrap; }
.check--box { align-items: flex-start; padding: 14px 16px; border-radius: 12px; border: 1px solid var(--line); background: #fafbfd; color: var(--ink); cursor: pointer; }
.check--box input { margin-top: 1px; flex: none; }

/* emitindo */
.proc { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.proc li { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-radius: 12px; border: 1px solid var(--line); color: var(--ink-3); font-weight: 500; transition: background .25s, border-color .25s, color .25s; }
.proc li.is-run { color: var(--info); background: var(--info-bg); border-color: var(--info-line); }
.proc li.is-done { color: var(--ok); background: var(--ok-bg); border-color: var(--ok-line); }
.proc__ic { display: grid; place-items: center; width: 22px; height: 22px; flex: none; }
.proc__txt { flex: 1; }
.proc__txt b { display: block; color: var(--ink); font-weight: 600; font-size: 14px; }
.proc__txt small { font-size: 12px; color: var(--ink-3); }
.proc__val { font: 600 14px var(--f-head); color: var(--ink); white-space: nowrap; }
.proc em { font-style: normal; font-size: 12px; font-weight: 600; min-width: 96px; text-align: right; }
.spin { width: 18px; height: 18px; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.nf-ok { text-align: center; padding: 6px 0 4px; display: flex; flex-direction: column; align-items: center; gap: 6px; }
.nf-ok__icon { width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; background: var(--ok-bg); color: var(--ok); box-shadow: 0 0 0 8px rgba(31, 158, 58, .08); animation: pop .4s var(--ease); }
.nf-ok__icon .i { width: 32px; height: 32px; }
.nf-ok h3 { font-size: 20px; }
.nf-ok p { color: var(--ink-2); max-width: 440px; }
@keyframes pop { from { transform: scale(.6); opacity: 0; } }

/* cancelar */
.cancel-box { padding: 16px; border-radius: 14px; border: 1px solid var(--danger-line); background: #fff8f7; display: flex; flex-direction: column; gap: 12px; }
.cancel-box .drawer__h { margin-top: 0; color: var(--danger); }
.cancel-box__btns { display: flex; justify-content: flex-end; gap: 8px; }

/* portal: resumo para o financeiro */
.nf-wait { margin-bottom: 20px; }
.meas--fin { grid-template-columns: repeat(6, 1fr); }
.meas--hl { background: var(--ok-bg); border-color: var(--ok-line) !important; }
.meas--hl b { color: var(--ok); }
.meas--fin b { font-size: 18px; white-space: nowrap; }

@media (max-width: 1280px) { .meas--fin { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 640px) {
  .nf__grid, .nf-sum { grid-template-columns: 1fr; }
  .nf__grid > div + div { border-left: 0; border-top: 1px solid var(--line-2); }
  .meas--fin { grid-template-columns: 1fr 1fr; }
  .list--bill li { flex-wrap: wrap; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
.nf-client { font-weight: 600; }

/* =========================================================
   REFORMA TRIBUTÁRIA (IBS e CBS)
   ========================================================= */
.nf__ref td { color: var(--info); }
.ibscbs { padding: 14px 20px; border-top: 1px solid var(--line-2); background: linear-gradient(180deg, #f3f6ff, #fff); }
.ibscbs--box { border: 1px solid var(--info-line); border-radius: 14px; padding: 14px 16px; }
.ibscbs header { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 10px; }
.ibscbs header b { font: 600 14px var(--f-head); margin-right: auto; }
.ibscbs__tag { display: inline-flex; align-items: center; gap: 5px; padding: 3px 9px; border-radius: 999px; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: #fff; background: linear-gradient(135deg, var(--navy-700), var(--blue-500)); }
.ibscbs__tag .i { width: 13px; height: 13px; }
.ibscbs dl { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 0; }
.ibscbs dl div { padding: 8px 10px; border-radius: 10px; background: #fff; border: 1px solid var(--line); }
.ibscbs dt { font-size: 11px; color: var(--ink-3); }
.ibscbs dt .term .i { width: 12px; height: 12px; }
.ibscbs dd { margin: 0; font-weight: 600; font-size: 14px; font-variant-numeric: tabular-nums; }
.ibscbs > p { margin-top: 10px; font-size: 12px; color: var(--ink-2); }

.cmp27 { flex: none; border: 1px solid var(--line); border-radius: 14px; background: #fff; overflow: hidden; }
.cmp27 summary { display: flex; align-items: center; gap: 12px; padding: 14px 16px; cursor: pointer; list-style: none; background: linear-gradient(135deg, #f4f7fd, #eef6f0); }
.cmp27 summary::-webkit-details-marker { display: none; }
.cmp27 summary > .i:first-child { color: var(--navy-700); }
.cmp27 summary span { flex: 1; }
.cmp27 summary b { display: block; font-size: 14px; }
.cmp27 summary small { font-size: 12px; color: var(--ink-3); }
.cmp27 summary > .i:last-child { transition: transform .2s; color: var(--ink-3); }
.cmp27[open] summary > .i:last-child { transform: rotate(180deg); }
.cmp27__t { width: 100%; border-collapse: collapse; font-size: 13px; }
.cmp27__t th, .cmp27__t td { padding: 9px 16px; border-top: 1px solid var(--line-2); text-align: left; }
.cmp27__t th { font-size: 11px; text-transform: uppercase; letter-spacing: .05em; color: var(--ink-3); font-weight: 600; }
.cmp27__t .num { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.cmp27__t td:last-child { font-weight: 600; }
.cmp27__t .is-up td:last-child { color: var(--info); }
.cmp27__t .is-down td:last-child { color: var(--ok); }
.cmp27__t .is-strong td { font-weight: 600; background: #f6f8fb; }
.cmp27__t .is-total td { font: 700 15px var(--f-head); color: var(--ok); background: var(--ok-bg); }
.cmp27__notes { list-style: none; margin: 0; padding: 12px 16px 14px; display: flex; flex-direction: column; gap: 6px; font-size: 13px; color: var(--ink-2); border-top: 1px solid var(--line-2); }
.cmp27__notes li { display: flex; gap: 8px; align-items: flex-start; }
.cmp27__notes .i { width: 16px; height: 16px; color: var(--ok); margin-top: 1px; }
.cmp27__notes .is-warn { color: #6b3a05; background: var(--warn-bg); padding: 8px 10px; border-radius: 10px; }
.cmp27__notes .is-warn .i { color: var(--warn); }

.reform-band { display: flex; align-items: center; gap: 16px; width: 100%; margin-bottom: 20px; padding: 16px 20px; border: 0; border-radius: var(--r-lg); text-align: left; color: #fff; background: radial-gradient(120% 160% at 100% 0, #1f9e3a55 0, transparent 50%), linear-gradient(120deg, var(--navy-900), var(--navy-700)); box-shadow: var(--shadow); transition: transform .2s; }
.reform-band:hover { transform: translateY(-1px); }
.reform-band__icon { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: rgba(255, 255, 255, .12); color: var(--green-300); flex: none; }
.reform-band b { display: block; font: 600 16px var(--f-head); }
.reform-band small { font-size: 13px; color: rgba(255, 255, 255, .75); }
.reform-band > span:nth-child(2) { flex: 1; }
.reform-band__cta { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; font-size: 14px; padding: 9px 14px; border-radius: 10px; background: #fff; color: var(--navy-900); white-space: nowrap; }
.reform-band__cta .i { width: 16px; height: 16px; }
.reform { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 0; counter-reset: r; }
.reform li { position: relative; padding: 0 0 16px 34px; }
.reform li::before { content: ""; position: absolute; left: 7px; top: 4px; width: 12px; height: 12px; border-radius: 50%; background: var(--navy-700); box-shadow: 0 0 0 4px #e6eefc; }
.reform li::after { content: ""; position: absolute; left: 12px; top: 20px; bottom: 0; width: 2px; background: var(--line); }
.reform li:last-child::after { display: none; }
.reform li:nth-child(2)::before { background: var(--green-600); box-shadow: 0 0 0 4px var(--ok-bg); }
.reform b { display: block; font-size: 14px; }
.reform span { font-size: 14px; color: var(--ink-2); }
.plan--warn .i { color: var(--warn) !important; }
@media (max-width: 640px) {
  .ibscbs dl { grid-template-columns: 1fr 1fr; }
  .reform-band { flex-wrap: wrap; }
}
