/* Layout: barra lateral escura de navegação + área de trabalho clara; no celular a barra vira faixa no topo. */
:root {
  --bg: #F3EFE6; --surface: #FFFFFF; --surface-2: #F7F4EE; --ink: #1C1A16; --ink-2: #3D3830; --muted: #6B6455;
  --line: #E2DACB; --line-2: #EEE8DC; --side: #1C1A16; --side-fg: #FFFFFF; --side-muted: #CFC6B4; --side-line: #4A453C;
  --accent: #1F5B43; --accent-fg: #FFFFFF; --primary: #1C1A16; --primary-fg: #FFFFFF;
  --ok-bg: #E3F2EA; --ok-fg: #123A2A; --no-bg: #FBE3D6; --no-fg: #7A2A08; --mid-bg: #FFF4D6; --mid-fg: #5A4300; --info-bg: #DCEBFA; --info-fg: #10233A;
  --alert: #B4410E; --box: #9A917F; --seg-off: #DDD5C5; --in-line: #958C7A; --warn: #B07D00; --p2-line: #5E95D4; --gal-line: #C8731F;
  --p1: #1D4E89; --p1-fg: #FFFFFF; --p2: #B7D3F2; --p2-fg: #0F2742; --gal: #E3923A; --gal-fg: #2B1600; --cer: #6E2B5E; --cer-fg: #FFFFFF;
  --f-display: 'Bricolage Grotesque', 'Segoe UI', system-ui, sans-serif;
  --f-body: 'Public Sans', 'Segoe UI', system-ui, sans-serif;
}
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) {
  --bg: #171512; --surface: #22201B; --surface-2: #2A2721; --ink: #F1ECE2; --ink-2: #D8D0C2; --muted: #ABA291;
  --line: #3A362E; --line-2: #322E27; --side: #0E0D0B; --side-fg: #F1ECE2; --side-muted: #ABA291; --side-line: #3A362E;
  --accent: #5DBB8E; --accent-fg: #0E1F17; --primary: #F1ECE2; --primary-fg: #171512;
  --ok-bg: #173527; --ok-fg: #BFE8D2; --no-bg: #43231A; --no-fg: #F7C6AE; --mid-bg: #3D3214; --mid-fg: #F3DE9D; --info-bg: #182D45; --info-fg: #C3DAF3;
  --alert: #F08A5A; --box: #7D7566; --seg-off: #3A362E; --in-line: #776F60; --warn: #D9A100; --p2-line: #A9C9EC; --gal-line: #E3923A;
  --p1: #5B8FD0; --p1-fg: #0B1A2C; --p2: #A9C9EC; --p2-fg: #0F2742; --gal: #E3923A; --gal-fg: #2B1600; --cer: #B46AA3; --cer-fg: #1C0A18;
  color-scheme: dark;
} }
:root[data-theme="dark"] {
  --bg: #171512; --surface: #22201B; --surface-2: #2A2721; --ink: #F1ECE2; --ink-2: #D8D0C2; --muted: #ABA291;
  --line: #3A362E; --line-2: #322E27; --side: #0E0D0B; --side-fg: #F1ECE2; --side-muted: #ABA291; --side-line: #3A362E;
  --accent: #5DBB8E; --accent-fg: #0E1F17; --primary: #F1ECE2; --primary-fg: #171512;
  --ok-bg: #173527; --ok-fg: #BFE8D2; --no-bg: #43231A; --no-fg: #F7C6AE; --mid-bg: #3D3214; --mid-fg: #F3DE9D; --info-bg: #182D45; --info-fg: #C3DAF3;
  --alert: #F08A5A; --box: #7D7566; --seg-off: #3A362E; --in-line: #776F60; --warn: #D9A100; --p2-line: #A9C9EC; --gal-line: #E3923A;
  --p1: #5B8FD0; --p1-fg: #0B1A2C; --p2: #A9C9EC; --p2-fg: #0F2742; --gal: #E3923A; --gal-fg: #2B1600; --cer: #B46AA3; --cer-fg: #1C0A18;
  color-scheme: dark;
}
* { box-sizing: border-box; }
body { background: var(--bg); color: var(--ink); font-family: var(--f-body); font-size: 15px; line-height: 1.45; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
h1, h2, h3 { text-wrap: balance; margin: 0; }
.app { display: flex; flex-wrap: wrap; min-height: 100vh; }
.side { flex: 1 1 236px; max-width: 100%; background: var(--side); color: var(--side-fg); display: flex; flex-direction: column; gap: 20px;
  padding-block: 24px; padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: 16px; }
.brand { display: flex; flex-direction: column; gap: 2px; padding: 0 8px; }
.brand small { font-size: 12px; font-weight: 700; letter-spacing: .14em; color: var(--side-muted); }
.brand strong { font-family: var(--f-display); font-weight: 800; font-size: 24px; line-height: 1.1; }
.nav { display: flex; flex-direction: column; gap: 4px; }
.nav button { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-height: 46px; padding: 0 12px; border: 0; border-radius: 10px; background: transparent; color: var(--side-fg); font-weight: 700; text-align: left; }
.nav button[aria-current="page"] { background: var(--surface); color: var(--ink); }
.nav .outros { margin-top: 10px; border-top: 1px solid rgba(255,255,255,.14); border-radius: 0 0 10px 10px; padding-top: 4px; color: var(--side-muted); }
.nav .outros-r { display: flex; align-items: center; gap: 8px; } .nav .seta { font-size: 12px; }
.nav-grp { display: block; margin-top: 10px; padding: 10px 12px 4px; border-top: 1px solid rgba(255,255,255,.14); font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--side-muted); }
.nav-sub { display: flex; flex-direction: column; gap: 2px; } .nav button.sub { min-height: 40px; padding-left: 22px; font-weight: 600; font-size: 15px; }
.badge { font-size: 12px; font-weight: 700; padding: 2px 8px; border-radius: 999px; background: var(--gal); color: var(--gal-fg); }
.side-foot { margin-top: auto; display: flex; flex-direction: column; gap: 8px; padding: 0 8px; font-size: 14px; }
.side-foot .lbl { font-size: 12px; font-weight: 700; letter-spacing: .1em; color: var(--side-muted); }
.leg { display: flex; align-items: center; gap: 8px; }
.dot { width: 12px; height: 12px; border-radius: 3px; flex: none; }
.side-btn { min-height: 42px; border: 1.5px solid var(--side-line); border-radius: 10px; background: transparent; color: var(--side-fg); font-weight: 700; font-size: 14px; }
.side-note { font-size: 12px; color: var(--side-muted); line-height: 1.4; }
.main { flex: 999 1 560px; min-width: 0; display: flex; flex-direction: column; gap: 22px;
  padding-block: 28px 96px; padding-left: max(16px, min(36px, 4vw), env(safe-area-inset-left, 0px)); padding-right: max(16px, min(36px, 4vw), env(safe-area-inset-right, 0px)); }
@media (max-width: 820px) {
  .side { flex-basis: 100%; gap: 12px; padding-block: 14px; padding-right: max(16px, env(safe-area-inset-right, 0px)); }
  .nav { flex-direction: row; flex-wrap: wrap; gap: 6px; }
  .nav button { flex: none; min-height: 40px; }
  .side-foot { display: none; }
}
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.h1 { font-family: var(--f-display); font-weight: 800; font-size: clamp(28px, 3.4vw, 36px); line-height: 1.05; }
.h2 { font-family: var(--f-display); font-weight: 800; font-size: 22px; }
.eyebrow { font-size: 13px; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; color: var(--muted); }
.sub { color: var(--ink-2); max-width: 70ch; }
.muted { color: var(--muted); }
.row { display: flex; flex-wrap: wrap; gap: 20px; align-items: flex-start; }
.col-main { flex: 3 1 480px; min-width: 0; display: flex; flex-direction: column; gap: 14px; }
.col-side { flex: 2 1 320px; min-width: 0; display: flex; flex-direction: column; gap: 14px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; }
.pad { padding: 16px; display: flex; flex-direction: column; gap: 10px; }
.ct { font-size: 13px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.btn { min-height: 46px; padding: 0 18px; border: 0; border-radius: 12px; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; gap: 6px; }
.btn-ok { background: var(--accent); color: var(--accent-fg); }
.btn-dark { background: var(--primary); color: var(--primary-fg); }
.btn-line { background: var(--surface); border: 1.5px solid var(--ink); }
.btn-text { background: transparent; color: var(--accent); padding: 0 4px; }
.btn-danger { background: transparent; color: var(--alert); }
.mot-opts { display: flex; flex-wrap: wrap; gap: 8px; }
.mot-opts button { min-height: 42px; padding: 0 14px; border-radius: 999px; border: 1.5px solid var(--line); background: var(--surface); font-weight: 600; }
.mot-opts button[aria-checked="true"] { border-color: var(--ink); background: var(--primary); color: var(--primary-fg); }
.mot { gap: 12px; border: 1.5px solid var(--alert); }
.funil { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; }
.mbar { display: grid; grid-template-columns: minmax(150px, 220px) 1fr 32px; gap: 10px; align-items: center; font-size: 14px; }
.mbar i { display: block; height: 12px; border-radius: 6px; background: var(--ink-2); }
.pill { font-size: 12.5px; font-weight: 700; padding: 4px 10px; border-radius: 999px; white-space: nowrap; }
.ok { background: var(--ok-bg); color: var(--ok-fg); } .no { background: var(--no-bg); color: var(--no-fg); } .mid { background: var(--mid-bg); color: var(--mid-fg); } .info { background: var(--info-bg); color: var(--info-fg); }
.chip { font-size: 12px; font-weight: 700; padding: 3px 9px; border-radius: 999px; }
.sp-p1 { background: var(--p1); color: var(--p1-fg); } .sp-p2 { background: var(--p2); color: var(--p2-fg); } .sp-gal { background: var(--gal); color: var(--gal-fg); } .sp-cer { background: var(--cer); color: var(--cer-fg); }
.chips { display: flex; gap: 5px; flex-wrap: wrap; }
.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 12px; }
.kpi { padding: 16px; display: flex; flex-direction: column; gap: 4px; }
.kpi b { font-family: var(--f-display); font-weight: 800; font-size: 34px; line-height: 1; font-variant-numeric: tabular-nums; }
.kpi b.alert { color: var(--alert); }
.banner { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; padding: 16px 18px; border: 0; border-radius: 16px; background: var(--mid-bg); color: var(--mid-fg); text-align: left; width: 100%; }
.tbl-wrap { overflow-x: auto; }
.tbl { min-width: 0; }
.tr { display: grid; grid-template-columns: 78px minmax(0,2fr) minmax(0,1.1fr) minmax(130px,1.2fr); gap: 12px; align-items: center; padding: 10px 18px; }
.th { background: var(--surface-2); font-size: 12px; font-weight: 700; letter-spacing: .08em; color: var(--muted); }
button.tr { width: 100%; min-height: 62px; border: 0; border-top: 1px solid var(--line-2); background: transparent; text-align: left; }
button.tr:hover, .li:hover { background: var(--surface-2); }
.date b { font-family: var(--f-display); font-weight: 800; font-size: 18px; display: block; line-height: 1.1; font-variant-numeric: tabular-nums; }
.bar { flex: 1; height: 6px; border-radius: 99px; background: var(--line-2); overflow: hidden; }
.bar i { display: block; height: 100%; background: var(--accent); }
.barw { display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 700; font-variant-numeric: tabular-nums; }
.li { display: flex; gap: 12px; align-items: center; width: 100%; min-height: 58px; padding: 10px 18px; border: 0; border-top: 1px solid var(--line-2); background: transparent; text-align: left; }
.li .d { flex: none; width: 46px; text-align: center; line-height: 1; }
.li .d b { font-family: var(--f-display); font-weight: 800; font-size: 19px; display: block; }
.li .d small { font-size: 12px; font-weight: 700; color: var(--muted); text-transform: uppercase; }
.stack { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.ttl { font-weight: 700; }
.note { border-radius: 14px; padding: 12px 16px; }
.fields { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 10px; }
.field { padding: 10px 12px; background: var(--surface-2); border-radius: 10px; display: flex; flex-direction: column; gap: 2px; }
.field small { font-size: 12px; font-weight: 700; color: var(--muted); letter-spacing: .06em; }
.quote { padding: 12px 14px; border-left: 4px solid var(--line); background: var(--surface-2); color: var(--ink-2); }
.actions { display: flex; flex-wrap: wrap; gap: 10px; }
.sol-item { display: flex; flex-direction: column; gap: 4px; width: 100%; padding: 14px 18px; border: 0; border-bottom: 1px solid var(--line-2); background: var(--surface); text-align: left; }
.sol-item[aria-current="true"] { background: var(--surface-2); box-shadow: inset 4px 0 0 var(--accent); }
.cal-wrap { overflow-x: auto; }
.cal { min-width: 760px; display: grid; grid-template-columns: repeat(7, minmax(0,1fr)); }
.cal .dw { padding: 10px 12px; font-size: 12px; font-weight: 700; letter-spacing: .08em; color: var(--muted); background: var(--surface-2); }
.cell { min-height: 112px; padding: 8px; border-top: 1px solid var(--line-2); border-right: 1px solid var(--line-2); display: flex; flex-direction: column; gap: 4px; }
.cell.out { background: var(--surface-2); }
.cell.today { background: var(--mid-bg); }
.cell .n { font-size: 14px; font-weight: 700; color: var(--muted); }
.cell .n.has { color: var(--ink); }
.cev { display: flex; flex-direction: column; gap: 4px; padding: 6px 8px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); text-align: left; font-size: 13px; font-weight: 700; line-height: 1.2; }
.cev.pre { border-style: dashed; border-color: var(--box); }
.cev .bars { display: flex; gap: 3px; } .cev .bars span { width: 18px; height: 6px; border-radius: 3px; }
.segs { display: grid; grid-template-columns: repeat(9, minmax(76px,1fr)); gap: 6px; min-width: 720px; }
.seg { display: flex; flex-direction: column; gap: 6px; font-size: 12px; color: var(--muted); }
.seg i { height: 6px; border-radius: 99px; background: var(--seg-off); }
.seg.on i { background: var(--ink); } .seg.cur { color: var(--ink); font-weight: 700; }
.grp-h { display: flex; justify-content: space-between; align-items: baseline; padding: 12px 16px 10px; }
.item { display: flex; gap: 12px; align-items: center; width: 100%; min-height: 52px; padding: 10px 16px; border: 0; border-top: 1px solid var(--line-2); background: transparent; text-align: left; }
.box { flex: none; width: 24px; height: 24px; border-radius: 6px; border: 2px solid var(--box); background: var(--surface); display: flex; align-items: center; justify-content: center; }
.item[aria-pressed="true"] .box { background: var(--accent); border-color: var(--accent); }
.item[aria-pressed="true"] .lab { color: var(--muted); text-decoration: line-through; }
.item .txt { flex: 1; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 2px 12px; }
.lab { font-weight: 600; }
.kv { display: flex; justify-content: space-between; gap: 12px; border-top: 1px solid var(--line-2); padding-top: 7px; font-size: 14px; }
.kv b { text-align: right; }
.parc { display: flex; justify-content: space-between; align-items: center; gap: 10px; min-height: 46px; padding: 6px 0 0; border: 0; border-top: 1px solid var(--line-2); background: transparent; text-align: left; width: 100%; }
label.f { display: flex; flex-direction: column; gap: 6px; font-size: 14px; font-weight: 700; }
input.in, select.in, textarea.in { min-height: 48px; padding: 0 14px; border: 1.5px solid var(--in-line); border-radius: 12px; background: var(--surface); font-size: 16px; font-weight: 400; color: var(--ink); width: 100%; }
textarea.in { padding: 12px 14px; line-height: 1.5; resize: vertical; }
.grid-f { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 14px; }
.sp-btns { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 8px; }
.sp-btn { min-height: 60px; border-radius: 12px; border: 2px solid var(--line); background: var(--surface); font-weight: 700; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; padding: 6px; }
.sp-btn small { font-weight: 600; font-size: 12px; opacity: .85; }
.sp-btn.sp-p1 { background: var(--p1); color: var(--p1-fg); } .sp-btn.sp-p2 { background: var(--p2); color: var(--p2-fg); } .sp-btn.sp-gal { background: var(--gal); color: var(--gal-fg); } .sp-btn.sp-cer { background: var(--cer); color: var(--cer-fg); }
.sp-btn[aria-pressed="true"]::before { content: '✓ Selecionado'; font-size: 11px; font-weight: 800; letter-spacing: .04em; }
.q .stack { flex: 1 1 260px; }
.q { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 10px; padding: 12px 14px; }
.yn { display: flex; gap: 8px; }
.yn button { min-width: 78px; min-height: 44px; border-radius: 10px; border: 1.5px solid var(--line); background: var(--surface); font-weight: 700; }
.yn button[aria-pressed="true"] { background: var(--primary); color: var(--primary-fg); border-color: var(--primary); }
.prev h3 { font-size: 13px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--ink-2); }
.prev li { font-size: 14px; }
.prev ul { margin: 4px 0 0; padding-left: 18px; }
.toast { display: flex; justify-content: space-between; align-items: center; gap: 12px; background: var(--primary); color: var(--primary-fg); border-radius: 12px; padding: 10px 10px 10px 16px; }
.toast button { min-width: 40px; min-height: 40px; border: 0; border-radius: 8px; background: transparent; color: inherit; font-weight: 700; }
.fab { position: fixed; right: calc(18px + env(safe-area-inset-right, 0px)); bottom: calc(18px + env(safe-area-inset-bottom, 0px)); z-index: 20; display: flex; flex-direction: column; align-items: flex-end; gap: 10px; }
.fab-btn { min-height: 44px; padding: 0 18px; font-size: 14px; border: 0; border-radius: 999px; background: var(--primary); color: var(--primary-fg); font-weight: 700; box-shadow: 0 6px 20px rgba(0,0,0,.25); }
.fb { width: min(380px, calc(100vw - 32px)); background: var(--surface); border: 1px solid var(--line); border-radius: 16px; box-shadow: 0 12px 40px rgba(0,0,0,.25); padding: 16px; display: flex; flex-direction: column; gap: 10px; }
.fb-list { max-height: 180px; overflow-y: auto; display: flex; flex-direction: column; gap: 6px; font-size: 14px; }
.fb-list div { padding: 8px 10px; background: var(--surface-2); border-radius: 8px; }
.modal-bg { position: fixed; inset: 0; z-index: 30; background: rgba(10,9,7,.55); display: flex; align-items: flex-start; justify-content: center; overflow-y: auto; padding: 24px 16px; }
.modal { width: min(720px, 100%); background: var(--surface); border-radius: 18px; padding: 22px; display: flex; flex-direction: column; gap: 16px; }
.tipo-btns { display: flex; flex-wrap: wrap; gap: 8px; }
.tipo-btns button { min-height: 44px; padding: 0 14px; border-radius: 999px; border: 1.5px solid var(--line); background: var(--surface); font-weight: 700; }
.tipo-btns button[aria-pressed="true"] { background: var(--primary); color: var(--primary-fg); border-color: var(--primary); }
.filt { display: flex; flex-wrap: wrap; gap: 6px; }
.filt button { min-height: 36px; padding: 0 12px; border-radius: 999px; border: 1.5px solid var(--line); background: var(--surface); font-weight: 700; font-size: 13px; display: inline-flex; align-items: center; gap: 6px; }
.filt button[aria-pressed="true"] { background: var(--primary); color: var(--primary-fg); border-color: var(--primary); }
@media (pointer: coarse) { .filt button { min-height: 44px; } }
.cev.mont { background: repeating-linear-gradient(135deg, var(--surface-2), var(--surface-2) 6px, var(--surface) 6px, var(--surface) 12px); border-style: dotted; font-weight: 500; color: var(--muted); }
.cev.ev { border-left-width: 5px; border-left-style: solid; }
.cev .bars .sp-p2 { box-shadow: inset 0 0 0 1px var(--p2-line); } .cev .bars .sp-gal { box-shadow: inset 0 0 0 1px var(--gal-line); }
.leg-ag { display: flex; flex-wrap: wrap; gap: 6px 14px; align-items: center; font-size: 13px; color: var(--ink-2); }
.leg-ag .cev { display: inline-flex; padding: 2px 8px; font-size: 12px; pointer-events: none; }
.cev.fora { border-left: 4px solid var(--box); }
.cev.vis { border: 1.5px solid var(--accent); color: var(--ink); font-weight: 700; }
.cev.vis em { font-style: normal; font-size: 11.5px; font-weight: 600; color: var(--ink-2); }
.cev.sol { background: var(--mid-bg); color: var(--mid-fg); border: 1.5px dashed var(--mid-fg); font-weight: 700; }
.cev.sol.bate { background: var(--no-bg); color: var(--no-fg); border-color: var(--alert); }
.cev.sol em { font-style: normal; font-size: 11.5px; font-weight: 600; }
.cev.sol small { font-size: 10.5px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.cev.sol .bars span { background: transparent !important; border: 1.5px solid currentColor; height: 7px; }
.modelos { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 12px; }
.modelo { display: flex; flex-direction: column; gap: 4px; padding: 14px 16px; text-decoration: none; color: var(--ink); }
.modelo:hover { border-color: var(--ink); }
.leitura .kv b { text-align: right; }
.item-row { display: flex; align-items: stretch; border-top: 1px solid var(--line-2); }
.item-row .item { border-top: 0; }
.item-row { box-shadow: inset 4px 0 0 transparent; }
.item-row.st-atr { box-shadow: inset 4px 0 0 var(--alert); }
.item-row.st-vence { box-shadow: inset 4px 0 0 var(--warn); }
.pz.data { background: transparent; color: var(--muted); font-weight: 600; padding-inline: 4px; }
.pill.neu { background: var(--surface-2); color: var(--ink-2); border: 1px solid var(--line); }
.item .pills { display: flex; gap: 6px; align-items: center; justify-content: flex-end; flex: none; }
.item .txt:has(.pills) { flex-wrap: nowrap; align-items: center; } .item .txt > .stack { flex: 1 1 auto; min-width: 0; }
.pz { font-size: 12px; font-weight: 700; padding: 3px 10px; border-radius: 999px; white-space: nowrap; font-variant-numeric: tabular-nums; }
.pz.atr { background: var(--no-bg); color: var(--no-fg); } .pz.vence { background: var(--mid-bg); color: var(--mid-fg); } .pz.ok { background: var(--ok-bg); color: var(--ok-fg); }
.pz.agu { background: var(--info-bg); color: var(--info-fg); } .pz.sem { background: transparent; color: var(--muted); border: 1px dashed var(--line); } .pz.feito { background: var(--surface-2); color: var(--muted); }
.resp { font-size: 12px; font-weight: 700; padding: 3px 10px; border-radius: 999px; border: 1px solid var(--line); color: var(--ink-2); white-space: nowrap; }
.rm { flex: none; width: 40px; border: 0; background: transparent; color: var(--muted); font-size: 18px; }
.rm:hover { color: var(--alert); }
.addt { display: flex; gap: 8px; padding: 10px 16px; border-top: 1px solid var(--line-2); }
.addt input { flex: 1; min-width: 0; min-height: 40px; padding: 0 12px; border: 1.5px solid var(--in-line); border-radius: 10px; background: var(--surface); }
.orc-src { display: inline-flex; font-size: 12px; font-weight: 700; padding: 2px 8px; border-radius: 999px; background: var(--info-bg); color: var(--info-fg); }
.notas { display: flex; flex-direction: column; gap: 8px; }
.nota { padding: 10px 12px; background: var(--surface-2); border-radius: 10px; display: flex; justify-content: space-between; gap: 10px; align-items: flex-start; }
.nota small { display: block; color: var(--muted); font-size: 12px; margin-top: 2px; }
.pls { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 14px; }
.pl { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; display: flex; flex-direction: column; text-decoration: none; color: var(--ink); }
.pl img { width: 100%; aspect-ratio: 4 / 3; object-fit: contain; background: #FFFFFF; border-bottom: 1px solid var(--line); }
.pl span { padding: 10px 12px; display: flex; justify-content: space-between; align-items: center; gap: 8px; font-weight: 600; font-size: 14px; }
.pl small { color: var(--accent); font-weight: 700; font-size: 12px; }
.pl:hover { border-color: var(--accent); }
.quadros { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 16px; }
.quadro { gap: 0; overflow: hidden; display: flex; flex-direction: column; }
.quadro-h { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; padding: 14px 16px; border-bottom: 1px solid var(--line-2); }
.evc { display: flex; gap: 14px; align-items: flex-start; width: 100%; padding: 14px 16px; border: 0; border-bottom: 1px solid var(--line-2); background: transparent; text-align: left; }
.evc:hover, .solc:hover { background: var(--surface-2); }
.evc-d { flex: none; width: 44px; text-align: center; line-height: 1; }
.evc-d b { display: block; font-family: var(--f-display); font-weight: 800; font-size: 24px; font-variant-numeric: tabular-nums; }
.evc-d small { font-size: 12px; font-weight: 700; color: var(--muted); text-transform: uppercase; }
.evc .bar { max-width: 220px; }
.kanban { display: grid; grid-template-columns: repeat(4, minmax(220px, 1fr)); gap: 12px; overflow-x: auto; align-items: start; }
@media (max-width: 1100px) { .kanban { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .kanban { grid-template-columns: 1fr; } }
.coluna { gap: 0; overflow: hidden; display: flex; flex-direction: column; background: var(--surface-2); }
.coluna .quadro-h { background: var(--surface); }
.solc { display: flex; flex-direction: column; gap: 6px; margin: 8px 8px 0; padding: 12px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); text-align: left; }
.solc:last-child { margin-bottom: 8px; }
.solc[aria-current="true"] { border-color: var(--accent); box-shadow: inset 4px 0 0 var(--accent); }
.solc.bate { border-color: var(--alert); }
.orc-tr { grid-template-columns: 120px minmax(0,2fr) 90px minmax(150px,1fr) 150px; }
@media (max-width: 700px) { .orc-tr { grid-template-columns: 1fr; } }
.quadro-h { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 10px 14px; background: var(--surface-2); }
.sec-nome { font-weight: 700; font-size: 16px; min-height: 40px; max-width: 420px; }
.rm { min-width: 32px; min-height: 38px; border: 0; background: transparent; color: var(--muted); font-size: 18px; border-radius: 8px; } .rm:hover { background: var(--surface-2); color: var(--ink); }
.prev-wrap { overflow-x: auto; background: #E9E6DF; border-radius: 8px; padding: clamp(8px, 2vw, 20px); }
.pt, .pc { background: #FFFFFF; color: #000000; font-family: Arial, Helvetica, sans-serif; margin: 0 auto; max-width: 760px; min-width: 560px; padding: 24px 26px; box-shadow: 0 1px 4px rgba(0,0,0,.15); }
.pt { font-size: 11px; } .pt-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; } .pt-top img { width: 110px; height: auto; }
.pt-cab { border-collapse: collapse; min-width: 300px; } .pt-cab td { border: 1px solid #000; padding: 2px 5px; }
.pt-tit { color: #660066; font-size: 17px; text-align: center; margin: 14px 0 8px; }
.pt-tab { width: 100%; border-collapse: collapse; } .pt-tab td { border: 1px solid #000; padding: 4px 5px; text-align: center; vertical-align: middle; }
.pt-tab td.pt-i { text-align: left; } .pt-desc { font-size: 10px; }
.pt-h td { background: #33CCCC; color: #FFFFFF; font-weight: 700; }
.pt-cat { width: 26px; color: #660066; font-weight: 700; } .pt-cat span { writing-mode: vertical-rl; transform: rotate(180deg); white-space: nowrap; }
.pt-sub td { background: #33CCCC; color: #FFFFFF; font-weight: 700; text-align: left !important; } .pt-sub td:last-child, .pt-tl td:last-child { text-align: right !important; }
.pt-tl td { font-weight: 700; text-align: right !important; }
.pt-rod { width: 100%; border-collapse: collapse; margin-top: 18px; } .pt-rod td { background: #CCFFFF; border: 1px solid #000; padding: 8px; text-align: center; width: 33%; }
.pc { font-size: 13px; line-height: 1.5; padding: 20px 56px; } .pc-cab { display: block; width: 300px; margin: 0 auto 6px; } .pc-rod { display: block; width: 92%; margin: 22px auto 0; }
.pc-tit { color: #31849B; font-size: 19px; text-align: center; margin: 4px 0 14px; } .pc-l { color: #31849B; } .pc p { margin: 0 0 9px; } .pc ul { margin: 0 0 9px; padding-left: 20px; }
.fila-h { padding: 10px 18px 6px; font-size: 12px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; border-top: 1px solid var(--line-2); }
.fila-h.no { color: var(--no-fg); } .fila-h.mid { color: var(--ink-2); } .fila-h.info { color: var(--ink-2); }
.li.fila { align-items: flex-start; } .fila-it { font-size: 14px; } .fila-it.din { font-weight: 700; }
.tn { display: grid; grid-template-columns: 14px minmax(0,1fr); gap: 4px; align-items: start; border-top: 1px dashed var(--line-2); padding-top: 3px; min-height: 22px; }
.tn i { font-style: normal; font-size: 10.5px; font-weight: 800; color: var(--muted); line-height: 18px; }
.tn-c { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.cev.t { display: block; font-size: 12px; line-height: 1.25; padding: 3px 6px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.cev.t .bars { display: flex; margin-top: 3px; }
.in:disabled, select.in:disabled, textarea.in:disabled { background: transparent; border-color: transparent; color: var(--ink); opacity: 1; cursor: default; }
.cat { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 0 24px; }
.cat > div { display: flex; justify-content: space-between; gap: 12px; align-items: center; padding: 9px 0; border-bottom: 1px solid var(--line-2); font-size: 14px; }
.versoes { display: flex; flex-wrap: wrap; gap: 8px; }
.vers { display: flex; flex-direction: column; gap: 4px; align-items: flex-start; min-width: 170px; padding: 10px 12px; border: 1.5px solid var(--line); border-radius: 12px; background: var(--surface); text-align: left; }
.vers[aria-current="true"] { border-color: var(--accent); box-shadow: inset 0 3px 0 var(--accent); }
.it { display: grid; grid-template-columns: minmax(0,1fr) 62px 62px 104px 100px 108px 96px 32px; gap: 8px; align-items: start; padding: 10px 14px; border-top: 1px solid var(--line-2); }
.it-h { font-size: 11.5px; font-weight: 700; letter-spacing: .06em; color: var(--muted); background: var(--surface-2); padding-block: 8px; }
.it .in { min-height: 38px; font-size: 14px; } .it .in.sm { min-height: 34px; font-size: 13px; color: var(--ink-2); } .it .num { text-align: right; } .it b { padding-top: 9px; }
.it .in.falta { border-color: var(--mid-fg); background: var(--mid-bg); }
.it .mg { padding-top: 9px; text-align: right; font-variant-numeric: tabular-nums; font-size: 14px; color: var(--ink-2); }
.it .mg.neg { color: var(--alert); font-weight: 700; }
.it-h .int, .it .int { color: var(--muted); }
.interno { border-top: 1px dashed var(--line); padding-top: 12px; margin-top: 4px; display: flex; flex-direction: column; gap: 8px; }
.it .in:disabled { background: transparent; border-color: transparent; color: var(--ink); opacity: 1; padding-left: 0; }
@media (max-width: 700px) { .it { grid-template-columns: 1fr 1fr 1fr; } .it > :first-child { grid-column: 1 / -1; } .it-h { display: none; } }
.tot .kv b { font-variant-numeric: tabular-nums; } .tot .big { padding-top: 10px; border-top: 2px solid var(--ink); font-size: 17px; }
.prev-doc { background: #FFFFFF; color: #1C1A16; border: 1px solid var(--line); border-radius: 6px; padding: clamp(14px, 3vw, 32px); font-size: 13px; overflow-x: auto; }
.pd-top { display: flex; justify-content: space-between; gap: 12px; align-items: center; background: #1C1A16; color: #FFFFFF; padding: 14px 16px; margin: calc(-1 * clamp(14px, 3vw, 32px)) calc(-1 * clamp(14px, 3vw, 32px)) 16px; border-radius: 6px 6px 0 0; }
.pd-top b { font-size: 18px; letter-spacing: .02em; } .pd-top span { text-align: right; font-size: 12px; }
.prev-doc table { width: 100%; border-collapse: collapse; margin-bottom: 14px; min-width: 480px; }
.prev-doc td { padding: 6px 8px; border-bottom: 1px solid #E5DFD3; vertical-align: top; }
.pd-cli td:nth-child(odd) { font-weight: 700; color: #6B6455; width: 70px; }
.pd-it td:nth-child(n+2) { text-align: right; white-space: nowrap; width: 70px; } .pd-it td:last-child { width: 100px; }
.pd-it .sec td { background: #1C1A16; color: #FFFFFF; font-weight: 700; text-align: left; letter-spacing: .04em; }
.pd-it .hd td { background: #EFEAE0; font-weight: 700; font-size: 12px; }
.pd-it .st td { font-weight: 700; background: #F7F4EE; }
.pd-it small { color: #6B6455; }
.pd-tot { max-width: 460px; margin-left: auto; } .pd-tot td:last-child { text-align: right; font-weight: 700; white-space: nowrap; }
.pd-tot .fim td { background: #1C1A16; color: #FFFFFF; font-size: 14px; }
.pd-cond { line-height: 1.6; } .pd-rod { font-size: 11px; color: #6B6455; margin-top: 12px; }
.andam { display: flex; flex-direction: column; gap: 4px; font-size: 13px; }
@media (max-width: 700px) { .th { display: none; } .tr { grid-template-columns: 64px minmax(0,1fr); row-gap: 6px; } .tr > :nth-child(n+3) { grid-column: 2; } }
.busca { position: relative; padding: 0 4px; }
.busca input { width: 100%; min-height: 40px; border-radius: 10px; border: 1.5px solid #958C7A; background: transparent; color: var(--side-fg); padding: 0 10px; font-size: 13px; }
.busca input::placeholder { color: var(--side-muted); }
.res { position: absolute; left: 4px; right: 4px; top: 46px; z-index: 30; background: var(--surface); color: var(--ink); border-radius: 12px; box-shadow: 0 10px 30px rgba(0,0,0,.25); overflow: hidden; }
.res button { display: flex; flex-direction: column; gap: 2px; width: 100%; padding: 10px 12px; border: 0; border-top: 1px solid var(--line-2); background: transparent; text-align: left; font-size: 14px; }
.res button:hover { background: var(--surface-2); }
.agl { display: flex; flex-direction: column; gap: 10px; }
.agl .dia { display: grid; grid-template-columns: 52px minmax(0,1fr); gap: 10px; align-items: start; }
.agl .dia > div { display: flex; flex-direction: column; gap: 6px; }
.doc { max-width: 820px; background: #FFFFFF; color: #1A1A1A; padding: clamp(18px,4vw,48px); border-radius: 6px; box-shadow: 0 2px 12px rgba(0,0,0,.08); font: 16px/1.6 Georgia, 'Times New Roman', serif; }
.doc h1 { font-size: 21px; text-align: center; margin: 0 0 4px; } .doc .sub { text-align: center; font: 14px system-ui, sans-serif; color: #555; margin: 0 0 22px; }
.doc h2 { font-size: 16px; margin: 26px 0 8px; } .doc p { margin: 0 0 12px; text-align: justify; } .doc mark { background: #FFF1B8; color: #1A1A1A; padding: 0 2px; }
.doc table { width: 100%; border-collapse: collapse; margin: 0 0 18px; font-size: 15px; } .doc td { border: 1px solid #CFC8BA; padding: 6px 8px; vertical-align: top; } .doc td:first-child { width: 34%; font-weight: 700; }
.lb { position: fixed; inset: 0; z-index: 60; background: rgba(10,10,10,.92); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; padding: 16px; color: #FFFFFF; }
.lb .btn-line { color: var(--ink); }
.campo { display: flex; flex-direction: column; gap: 2px; padding: 8px 10px; border-radius: 10px; background: var(--surface-2); }
.campo.mid { background: var(--mid-bg); color: var(--mid-fg); }
.campo small { font-size: 12.5px; color: var(--muted); font-style: italic; }
.campo.mid small { color: var(--mid-fg); }
.lb img { max-width: 100%; max-height: 74vh; object-fit: contain; background: #FFFFFF; border-radius: 4px; }
.chip.sp-fora { background: var(--surface-2); color: var(--ink-2); border: 1px solid var(--line); }
@media (prefers-reduced-motion: no-preference) { .toast, .fb, .modal { animation: up .18s ease-out; } @keyframes up { from { transform: translateY(6px); opacity: .6 } to { transform: none; opacity: 1 } } }

/* Sistema Aldente (versão real): acréscimos ao estilo do protótipo v28 */
.login { min-height: 100vh; display: grid; place-items: center; padding: 16px; }
.login .card { max-width: 420px; width: 100%; padding: 28px; display: flex; flex-direction: column; gap: 14px; }
.cal { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; }
.cal .dow { font-size: 11.5px; font-weight: 700; letter-spacing: .06em; color: var(--muted); padding: 4px 6px; }
.cal .dia { min-height: 92px; background: var(--surface); border: 1px solid var(--line-2); border-radius: 8px; padding: 6px; display: flex; flex-direction: column; gap: 4px; font-size: 12.5px; }
.cal .dia.fora-mes { background: transparent; border-style: dashed; color: var(--muted); }
.cal .dia.hoje { border-color: var(--accent); box-shadow: inset 0 0 0 1px var(--accent); }
.cal .dia > b { font-size: 12px; }
.cal .ev { border: 0; text-align: left; border-radius: 6px; padding: 3px 6px; background: var(--surface-2); font-size: 12px; line-height: 1.25; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cal .ev.trap { background: var(--cer); color: var(--cer-fg); }
.cal .ev.gal { background: var(--gal); color: var(--gal-fg); }
.cal .ev.p1 { background: var(--p1); color: var(--p1-fg); }
.cal .ev.mont { opacity: .55; }
.cal .ev.vis, .ev.vis { background: var(--info-bg); color: var(--info-fg); }
.regua { display: flex; flex-wrap: wrap; gap: 4px; }
.regua span { font-size: 12px; padding: 3px 9px; border-radius: 999px; background: var(--surface-2); color: var(--muted); }
.regua span.feita { background: var(--ok-bg); color: var(--ok-fg); }
.regua span.atual { background: var(--accent); color: var(--accent-fg); font-weight: 700; }
.choque { border-left: 4px solid var(--alert); background: var(--no-bg); color: var(--no-fg); padding: 10px 14px; border-radius: 8px; }
.choque.aperto { border-color: var(--warn); background: var(--mid-bg); color: var(--mid-fg); }
.choque.negociacao { border-color: var(--p2-line); background: var(--info-bg); color: var(--info-fg); }
.grade2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 10px; }
.carregando { color: var(--muted); padding: 24px 0; }
details.rot > summary { cursor: pointer; padding: 14px 16px; font-weight: 700; list-style: none; display: flex; justify-content: space-between; }
details.rot > summary::-webkit-details-marker { display: none; }
@media (max-width: 720px) { .cal { grid-template-columns: 1fr; } .cal .dow, .cal .dia.fora-mes { display: none; } .cal .dia { min-height: 0; } }
.btn:disabled { opacity: .45; cursor: not-allowed; }
.cal { min-width: 0; }
.cal .ev.pre { background: transparent !important; color: var(--ink) !important; outline: 1.5px dashed var(--cer); outline-offset: -1.5px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
a.btn { color: inherit; } a.btn.btn-ok { color: var(--accent-fg); }
.lnk { background: none; border: 0; padding: 0; font: inherit; color: var(--ink, inherit); font-weight: 700; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
b.alert { color: var(--alert); }

.quote { white-space: pre-line; }
