/* Layout: faixa de empresas (68px) + menu da empresa (260px) + área de trabalho. A cor da empresa ativa tinge o menu. */
:root {
  --navy: #233163; --sky: #5087C7;
  --bg: #F5F4F0; --surface: #FEFEFC; --soft: #F0F3F9; --line: #E8ECF4; --field: #D0D5E8;
  --ink: #1E2440; --ink-2: #454C6B; --muted: #6E7489;
  --ok: #1D9E75; --ok-bg: #E6F4EE; --ok-ink: #0B5C44;
  --warn: #C98A06; --warn-bg: #FFF5DF; --warn-ink: #6F4E00;
  --err: #E24B4A; --err-bg: #FDEEEE; --err-ink: #9A2C22;
  --info-bg: #EAF0FA; --info-ink: #233163;
  --pri: #233163; --pri-ink: #F2F5FC;
  --rail: #10173A; --side: #19244F; --side-ink: #E8ECF7; --side-muted: rgba(232,236,247,.58);
  --side-line: rgba(255,255,255,.09); --side-hover: rgba(255,255,255,.06); --side-on: rgba(255,255,255,.11);
  --grid: #E4E8F1; --track: #E9EDF5;
  --c-grp: #5087C7; --c-sp: #3E5C8A; --c-bld: #D4A106; --c-wtr: #2563EB; --c-rot: #42BDDA; --c-amb: #7AB929; --c-hob: #B45309;
  --acc-l: #5087C7; --acc-d: #8DB0E3; --acc: var(--acc-l); --acc-raw: #5087C7;
  --f-ui: "Outfit", "Segoe UI", system-ui, sans-serif;
  --f-num: "JetBrains Mono", ui-monospace, "Cascadia Mono", Consolas, monospace;
  --shadow: 0 1px 2px rgba(20,30,70,.05), 0 6px 20px rgba(20,30,70,.05);
  --shadow-lg: 0 24px 64px rgba(10,16,40,.28);
}
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) {
  --bg: #0F1328; --surface: #171D38; --soft: #1E2547; --line: #283157; --field: #3A4470;
  --ink: #E8EBF7; --ink-2: #BBC2DB; --muted: #8E96B3;
  --ok-bg: #0F3A2E; --ok-ink: #7FDCBC; --warn-bg: #3A2F12; --warn-ink: #F2CF73;
  --err-bg: #3D1E1E; --err-ink: #F4A890; --info-bg: #1F2A50; --info-ink: #C5D3F2;
  --pri: #8DB0E3; --pri-ink: #0E1330;
  --rail: #090E23; --side: #10173A; --grid: #252E52; --track: #252E52;
  --c-sp: #7C97C9; --c-wtr: #5B8DF2; --c-hob: #D9782E;
  --acc: var(--acc-d);
  --shadow: 0 1px 2px rgba(0,0,0,.3), 0 6px 20px rgba(0,0,0,.25);
  color-scheme: dark; } }
:root[data-theme="dark"] {
  --bg: #0F1328; --surface: #171D38; --soft: #1E2547; --line: #283157; --field: #3A4470;
  --ink: #E8EBF7; --ink-2: #BBC2DB; --muted: #8E96B3;
  --ok-bg: #0F3A2E; --ok-ink: #7FDCBC; --warn-bg: #3A2F12; --warn-ink: #F2CF73;
  --err-bg: #3D1E1E; --err-ink: #F4A890; --info-bg: #1F2A50; --info-ink: #C5D3F2;
  --pri: #8DB0E3; --pri-ink: #0E1330;
  --rail: #090E23; --side: #10173A; --grid: #252E52; --track: #252E52;
  --c-sp: #7C97C9; --c-wtr: #5B8DF2; --c-hob: #D9782E;
  --acc: var(--acc-d);
  --shadow: 0 1px 2px rgba(0,0,0,.3), 0 6px 20px rgba(0,0,0,.25);
  color-scheme: dark; }

html, body { height: 100%; }
body { background: var(--bg); color: var(--ink); font-family: var(--f-ui); font-size: 14px; overflow: hidden; -webkit-font-smoothing: antialiased; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 2px solid var(--acc); outline-offset: 2px; }
input[type="checkbox"] { accent-color: var(--sky); }
.num { font-family: var(--f-num); font-variant-numeric: tabular-nums; letter-spacing: -.01em; }
.tab { font-variant-numeric: tabular-nums; }
svg.i { width: 18px; height: 18px; stroke: currentColor; fill: none; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.muted { color: var(--muted); }
.sm { font-size: 12px; }
.min0 { min-width: 0; }

.app { display: grid; grid-template-columns: 68px 260px minmax(0, 1fr); height: 100%; }

/* ---------- faixa de empresas ---------- */
.rail { background: var(--rail); display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 14px 0; padding-left: env(safe-area-inset-left, 0px); z-index: 2; }
.rail-logo { width: 40px; height: 40px; margin-bottom: 8px; box-shadow: 0 0 0 1px rgba(255,255,255,.18); flex: none; }
.rail-logo svg { display: block; width: 100%; height: 100%; }

.rail-sep { width: 28px; height: 1px; background: var(--side-line); margin: 2px 0; }
.rail-btn { position: relative; width: 44px; height: 44px; border-radius: 14px; border: 0; display: grid; place-items: center; font-weight: 700; font-size: 13px; letter-spacing: .02em;
  color: var(--side-ink); background: color-mix(in srgb, var(--c) 15%, rgba(255,255,255,.04)); transition: border-radius .22s cubic-bezier(.3,.7,.3,1.3), background .18s, transform .18s; }
.rail-btn:hover { border-radius: 17px; background: color-mix(in srgb, var(--c) 38%, rgba(255,255,255,.06)); }
.rail-btn:active { transform: scale(.94); }
.rail-btn.on { background: var(--c); color: var(--ci); border-radius: 17px; }
.rail-btn::before { content: ""; position: absolute; left: -12px; top: 50%; width: 4px; height: 0; border-radius: 0 4px 4px 0; background: var(--side-ink); transform: translateY(-50%); transition: height .22s cubic-bezier(.3,.7,.3,1.3); }
.rail-btn:hover::before { height: 12px; }
.rail-btn.on::before { height: 26px; }
.rail-btn .tip { position: absolute; left: 56px; top: 50%; transform: translate(-4px, -50%); background: var(--surface); color: var(--ink); font-size: 12.5px; font-weight: 600; letter-spacing: 0;
  white-space: nowrap; padding: 6px 10px; border-radius: 8px; box-shadow: var(--shadow); opacity: 0; pointer-events: none; transition: opacity .15s, transform .15s; z-index: 30; }
.rail-btn:hover .tip, .rail-btn:focus-visible .tip { opacity: 1; transform: translate(0, -50%); }
.rail-tri { display: grid; grid-template-columns: 8px 8px; gap: 3px; justify-content: center; }
.rail-tri i { width: 8px; height: 8px; border-radius: 50%; }
.rail-tri i:last-child { grid-column: 1 / 3; justify-self: center; }
.rail-btn svg.sym { width: 24px; height: 24px; }
.rail-h { font-size: 19px; font-weight: 700; letter-spacing: 0; line-height: 1; }
.rail-grp { width: 22px; height: 22px; display: grid; grid-template-columns: repeat(3, 6px); gap: 2px; place-content: center; }
.rail-grp i { width: 6px; height: 6px; border-radius: 50%; }

/* ---------- menu da empresa ---------- */
.side { color: var(--side-ink); display: flex; flex-direction: column; min-height: 0;
  background: linear-gradient(180deg, color-mix(in srgb, var(--acc-raw) 9%, var(--side)) 0, var(--side) 180px); }
.side-h { padding: 18px 18px 12px; display: flex; flex-direction: column; gap: 2px; }
.side-h small { font-size: 10px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--side-muted); }
.side-h b { font-size: 22px; font-weight: 700; letter-spacing: -.01em; line-height: 1.15; text-wrap: balance; }
.side-h span { font-size: 12px; color: var(--side-muted); }
.gp-link { display: flex; align-items: center; gap: 9px; margin: 2px 14px 6px; border: 1px solid rgba(66,189,218,.45); border-radius: 11px; padding: 8px 11px;
  background: rgba(66,189,218,.10); color: var(--side-ink); text-decoration: none; font-weight: 600; font-size: 13px; transition: background .15s; }
.gp-link:hover { background: rgba(66,189,218,.2); }
.gp-link span { flex: 1; min-width: 0; }
.gp-link .i { width: 16px; height: 16px; color: #42BDDA; }
.gp-link .x { width: 12px; height: 12px; color: var(--side-muted); }
.gp-link[hidden] { display: none; }
.nav { flex: 1; overflow-y: auto; padding: 4px 10px calc(18px + env(safe-area-inset-bottom, 0px)); min-height: 0; scrollbar-width: thin; scrollbar-color: rgba(255,255,255,.16) transparent; }
.grp { margin-top: 8px; }
.grp-h { width: 100%; display: flex; align-items: center; gap: 9px; border: 0; background: none; color: var(--side-muted); text-align: left;
  padding: 7px 8px; border-radius: 8px; font-size: 11px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; }
.grp-h:hover { color: var(--side-ink); }
.grp-h .i { width: 16px; height: 16px; }
.grp-h .chev { margin-left: auto; width: 13px; height: 13px; transition: transform .2s; }
.grp.closed .chev { transform: rotate(-90deg); }
.grp.closed .items { display: none; }
.live-dot { width: 7px; height: 7px; border-radius: 50%; background: #3DDC97; box-shadow: 0 0 0 0 rgba(61,220,151,.6); animation: pulso 2s infinite; flex: none; }
@keyframes pulso { 0% { box-shadow: 0 0 0 0 rgba(61,220,151,.55); } 70% { box-shadow: 0 0 0 7px rgba(61,220,151,0); } 100% { box-shadow: 0 0 0 0 rgba(61,220,151,0); } }
.items { display: flex; flex-direction: column; gap: 1px; }
.sub-h { font-size: 10.5px; font-weight: 600; color: var(--side-muted); padding: 10px 10px 3px 22px; letter-spacing: .02em; }
.it { position: relative; display: flex; align-items: center; gap: 8px; border: 0; background: none; color: var(--side-ink); text-align: left;
  padding: 7px 10px 7px 12px; border-radius: 9px; font-size: 13.5px; }
.grp .items { padding-left: 8px; }
.it .i { width: 16px; height: 16px; color: var(--side-muted); transition: color .15s; }
.it:hover .i { color: var(--side-ink); }
.it.on .i { color: var(--acc-raw); }
.it:hover { background: var(--side-hover); }
.it.on { background: var(--side-on); font-weight: 600; }
.it.on::before { display: none; content: ""; position: absolute; left: 14px; top: 50%; width: 6px; height: 6px; border-radius: 50%; background: var(--acc-raw); transform: translateY(-50%); }
.it.it0.on::before { display: none; }
.it.it0.on .i { color: var(--acc-raw); }
.it .nm { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.it .bd { font-size: 10.5px; font-weight: 700; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; display: grid; place-items: center; background: #E24B4A; color: #FFF6F6; }
.it svg.lock { width: 13px; height: 13px; color: var(--side-muted); }

/* ---------- coluna de trabalho ---------- */
.main { display: flex; flex-direction: column; min-width: 0; min-height: 0; }
.top { display: flex; align-items: center; gap: 12px; background: color-mix(in srgb, var(--surface) 86%, transparent); backdrop-filter: saturate(1.4) blur(12px); -webkit-backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid var(--line); padding-block: 10px; padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px));
  padding-top: calc(10px + env(safe-area-inset-top, 0px)); position: relative; z-index: 5; }
.burger { display: none; border: 1px solid var(--line); background: var(--soft); border-radius: 10px; padding: 7px; color: var(--ink); }
.crumb { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.crumb small { font-size: 10.5px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--acc); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.crumb strong { font-size: 16px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cmdk { display: flex; align-items: center; gap: 10px; border: 1px solid var(--line); background: var(--soft); color: var(--muted); border-radius: 11px; padding: 8px 10px 8px 12px; min-width: 300px; text-align: left; transition: border-color .15s; }
.cmdk:hover { border-color: var(--field); }
.cmdk span { flex: 1; font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cmdk .i { width: 16px; height: 16px; }
kbd { font-family: var(--f-num); font-size: 11px; padding: 2px 6px; border-radius: 6px; border: 1px solid var(--line); background: var(--surface); color: var(--muted); }
.demo { font-size: 11px; font-weight: 600; color: var(--warn-ink); background: var(--warn-bg); padding: 4px 10px; border-radius: 20px; white-space: nowrap; }
.live-pill { display: inline-flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 600; color: var(--ok-ink); background: var(--ok-bg); padding: 5px 11px; border-radius: 20px; white-space: nowrap; }
.live-pill[hidden] { display: none; }
.icon-btn { position: relative; border: 1px solid var(--line); background: var(--surface); width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center; color: var(--ink-2); }
.icon-btn:hover { background: var(--soft); }
.icon-btn .n { position: absolute; top: -5px; right: -5px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--err); color: #FFF6F6; font-size: 10.5px; font-weight: 700; display: grid; place-items: center; border: 2px solid var(--surface); }
button.me { display: flex; align-items: center; gap: 10px; border: 1px solid var(--line); background: var(--surface); border-radius: 12px; padding: 4px 10px 4px 4px; text-align: left; }
button.me:hover { background: var(--soft); }
.me .av { width: 30px; height: 30px; border-radius: 9px; background: var(--navy); color: #EEF2FA; display: grid; place-items: center; font-weight: 700; font-size: 11.5px; flex: none; }
.me .who { display: flex; flex-direction: column; line-height: 1.15; max-width: 170px; }
.me .who b { font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.me .who small { font-size: 11px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.scroll { flex: 1; overflow-y: auto; min-height: 0; scroll-behavior: smooth; }
.content { max-width: 1260px; margin: 0 auto; display: flex; flex-direction: column; gap: 18px;
  padding-block: 24px 48px; padding-left: max(20px, env(safe-area-inset-left, 0px)); padding-right: max(20px, env(safe-area-inset-right, 0px)); }
.content.entra > * { animation: sobe .38s cubic-bezier(.2,.8,.2,1) both; }
.content.entra > *:nth-child(2) { animation-delay: .03s; } .content.entra > *:nth-child(3) { animation-delay: .06s; }
.content.entra > *:nth-child(4) { animation-delay: .09s; } .content.entra > *:nth-child(n+5) { animation-delay: .12s; }
@keyframes sobe { from { transform: translateY(8px); opacity: .35; } }

/* ---------- cabeçalho de página ---------- */
.ph { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px 18px; flex-wrap: wrap; }
.ph .t { flex: 1 1 420px; min-width: 0; }
.ph .ey { font-size: 11px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--acc); display: flex; align-items: center; gap: 8px; }
.ph h1 { margin: 4px 0 0; font-size: 28px; font-weight: 700; letter-spacing: -.02em; line-height: 1.15; text-wrap: balance; }
.ph p { margin: 6px 0 0; color: var(--muted); max-width: 78ch; line-height: 1.5; }
.ph .acts { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.ro { display: inline-flex; align-items: center; gap: 7px; font-size: 12px; font-weight: 600; color: var(--muted); background: var(--soft); border: 1px solid var(--line); padding: 6px 11px; border-radius: 20px; }
.ro .i { width: 14px; height: 14px; }
.hello { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.hello h1 { margin: 0; font-size: 30px; font-weight: 700; letter-spacing: -.02em; }
.hello p { margin: 4px 0 0; color: var(--muted); }

/* ---------- botões, chips, campos ---------- */
.b { display: inline-flex; align-items: center; gap: 7px; border: 1px solid transparent; border-radius: 10px; padding: 8px 14px; font-weight: 600; font-size: 13px; line-height: 1.2;
  white-space: nowrap; text-decoration: none; transition: background .15s, border-color .15s, filter .15s, transform .12s; }
.b:active { transform: scale(.97); }
.b.sm { padding: 6px 11px; font-size: 12.5px; border-radius: 9px; }
.b .i { width: 15px; height: 15px; }
.b.pri { background: var(--pri); color: var(--pri-ink); }
.b.pri:hover { filter: brightness(1.12); }
.b.sec { background: var(--surface); border-color: var(--field); color: var(--ink); }
.b.sec:hover { background: var(--soft); }
.b.ghost { background: none; color: var(--muted); }
.b.ghost:hover { background: var(--soft); color: var(--ink); }
.b.ok { background: var(--ok); color: #F2FFF9; }
.b.perigo { background: var(--err); color: #FFF8F8; }
.b:disabled { opacity: .5; cursor: not-allowed; transform: none; }
.lnk { border: 0; background: none; padding: 0; color: var(--sky); font-weight: 600; font-size: 12.5px; text-decoration: none; }
.lnk:hover { text-decoration: underline; }
.chip { display: inline-flex; align-items: center; gap: 5px; font-size: 11.5px; font-weight: 600; padding: 2px 9px; border-radius: 20px; background: var(--soft); color: var(--ink-2); white-space: nowrap; }
.chip.ok { background: var(--ok-bg); color: var(--ok-ink); } .chip.warn { background: var(--warn-bg); color: var(--warn-ink); }
.chip.err { background: var(--err-bg); color: var(--err-ink); } .chip.info { background: var(--info-bg); color: var(--info-ink); }
.uc { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
.dot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; flex: none; }
.seg { display: inline-flex; background: var(--soft); border-radius: 11px; padding: 3px; gap: 2px; flex-wrap: wrap; }
.seg button { border: 0; background: none; padding: 5px 12px; border-radius: 8px; font-size: 13px; font-weight: 500; color: var(--muted); white-space: nowrap; }
.seg button:hover { color: var(--ink); }
.seg button.on { background: var(--surface); color: var(--ink); box-shadow: 0 1px 2px rgba(20,30,70,.08), 0 1px 6px rgba(20,30,70,.06); }
.seg button .n { font-size: 11px; color: var(--muted); margin-left: 3px; }
.sbox { display: flex; align-items: center; gap: 8px; border: 1px solid var(--field); background: var(--surface); border-radius: 10px; padding: 6px 10px; color: var(--muted); flex: 0 1 280px; min-width: 180px; }
.sbox input { border: 0; outline: 0; background: none; width: 100%; min-width: 0; color: var(--ink); }
.sbox .i { width: 15px; height: 15px; }
.hint { font-size: 11.5px; color: var(--muted); line-height: 1.45; margin: 0; }
.box { border-radius: 10px; padding: 10px 13px; font-size: 12.5px; line-height: 1.5; margin: 0; }
.box.warn { background: var(--warn-bg); color: var(--warn-ink); } .box.info { background: var(--info-bg); color: var(--info-ink); }
.box.soft { background: var(--soft); color: var(--muted); } .box.ok { background: var(--ok-bg); color: var(--ok-ink); }

/* ---------- indicadores e cartões ---------- */
.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 12px; }
.kpi { position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 14px 16px 13px; display: flex; flex-direction: column; gap: 3px; min-width: 0; overflow: hidden; }
.kpi.clk { cursor: pointer; transition: border-color .15s, transform .15s; } .kpi.clk:hover { border-color: var(--field); transform: translateY(-1px); }
.kpi small { font-size: 12.5px; color: var(--muted); display: flex; align-items: center; gap: 7px; }
.kpi small .i { width: 15px; height: 15px; }
.kpi .v { font-size: 27px; font-weight: 600; letter-spacing: -.02em; line-height: 1.15; font-variant-numeric: tabular-nums; }
.kpi .s { font-size: 12px; color: var(--muted); line-height: 1.35; }
.kpi .s.ok { color: var(--ok); } .kpi .s.warn { color: var(--warn-ink); } .kpi .s.err { color: var(--err); }
.kpi .sp { position: absolute; right: 14px; top: 42px; width: 74px; height: 26px; opacity: .9; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 18px 20px; min-width: 0; }
.card.flush { padding: 0; overflow: hidden; }
.card-h { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 14px; }
.card-h h2 { margin: 0; font-size: 15px; font-weight: 600; letter-spacing: -.005em; }
.card-h .aside { margin-left: auto; color: var(--muted); font-size: 12px; }
.card.flush .card-h { padding: 16px 18px 0; }
.cols { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 16px; }
.cols.even { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.cols.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.chart svg { width: 100%; height: auto; display: block; overflow: visible; }
.leg { display: flex; flex-wrap: wrap; gap: 6px 14px; margin-top: 10px; font-size: 12px; color: var(--muted); }
.leg span { display: inline-flex; align-items: center; gap: 6px; }
.list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.list li { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 9px 0; border-bottom: 1px solid var(--line); }
.list li:last-child { border-bottom: 0; }
.list .t { line-height: 1.35; } .list .t small { display: block; color: var(--muted); font-size: 12px; }
.list li.clk { cursor: pointer; } .list li.clk:hover .t { color: var(--acc); }
.sev { width: 8px; height: 8px; border-radius: 50%; }
.sev.err { background: var(--err); } .sev.warn { background: var(--warn); } .sev.info { background: var(--sky); } .sev.ok { background: var(--ok); }
.bar { height: 7px; border-radius: 7px; background: var(--track); overflow: hidden; min-width: 60px; }
.bar i { display: block; height: 100%; border-radius: 7px; background: var(--acc); transition: width .6s cubic-bezier(.2,.8,.2,1); }
.bar.ok i { background: var(--ok); } .bar.warn i { background: var(--warn); } .bar.err i { background: var(--err); }
.pbar { display: flex; align-items: center; gap: 8px; } .pbar .bar { flex: 1; }

/* ---------- tabelas ---------- */
.tbl-tools { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; padding: 14px 18px 12px; }
.tbl-tools .cnt { margin-left: auto; font-size: 12px; color: var(--muted); }
.tbl-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
th { text-align: left; font-size: 11px; font-weight: 600; letter-spacing: .07em; text-transform: uppercase; color: var(--muted); padding: 9px 12px; border-bottom: 1px solid var(--line); white-space: nowrap; background: var(--surface); }
th.so { cursor: pointer; user-select: none; } th.so:hover { color: var(--ink); }
th .ar { opacity: .5; margin-left: 3px; font-size: 10px; }
td { padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: middle; }
tbody tr:last-child td { border-bottom: 0; }
td.r, th.r { text-align: right; } td.c, th.c { text-align: center; }
tr.clk { cursor: pointer; } tr.clk:hover td { background: var(--soft); }
tr.tot td { font-weight: 700; border-top: 2px solid var(--line); background: var(--soft); }
tr.me td { background: var(--info-bg); }
td.nw, th.nw { white-space: nowrap; }
.code { font-family: var(--f-num); font-size: 12.5px; color: var(--ink-2); white-space: nowrap; }
.ver-mais { display: block; width: 100%; border: 0; border-top: 1px solid var(--line); background: none; padding: 12px; color: var(--sky); font-weight: 600; font-size: 13px; }
.ver-mais:hover { background: var(--soft); }
.empty { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 36px 16px; color: var(--muted); text-align: center; }
.empty b { color: var(--ink); font-size: 15px; }

/* ---------- departamentos ---------- */
.dept { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr) minmax(0, 1fr); gap: 12px; }
.dept .card h3 { margin: 0 0 8px; font-size: 13px; font-weight: 600; color: var(--muted); }
.dept ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 4px; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; }
.tag { font-size: 12px; padding: 3px 9px; border-radius: 7px; background: var(--soft); color: var(--ink-2); border: 0; }
button.tag { cursor: pointer; } button.tag:hover { background: var(--info-bg); color: var(--info-ink); }

/* ---------- produção ao vivo ---------- */
.unid { display: flex; flex-direction: column; gap: 10px; }
.unid-h { display: flex; align-items: baseline; gap: 10px; }
.unid-h h2 { margin: 0; font-size: 16px; font-weight: 600; }
.maqs { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 12px; }
.maq { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 14px 16px; display: flex; flex-direction: column; gap: 10px; cursor: pointer; transition: border-color .15s, transform .15s; }
.maq:hover { border-color: var(--field); transform: translateY(-1px); }
.maq-h { display: flex; align-items: center; gap: 10px; }
.maq-h b { font-family: var(--f-num); font-size: 20px; font-weight: 600; letter-spacing: -.02em; }
.maq-h .u { font-size: 12px; color: var(--muted); }
.maq-h .chip { margin-left: auto; }
.maq-m { display: grid; grid-template-columns: 58px minmax(0, 1fr); gap: 12px; align-items: center; }
.ring { width: 58px; height: 58px; position: relative; }
.ring svg { width: 58px; height: 58px; transform: rotate(-90deg); }
.ring span { position: absolute; inset: 0; display: grid; place-items: center; font-size: 12.5px; font-weight: 600; font-variant-numeric: tabular-nums; }
.maq-m .t > b { display: block; font-family: var(--f-num); font-size: 13px; }
.maq-m .t small span { display: inline; }
.maq-m .t span b { font-weight: 600; }
.maq-m .t span { display: block; font-size: 13px; line-height: 1.35; }
.maq-m .t small { display: block; font-size: 12px; color: var(--muted); }
.maq-f { display: flex; justify-content: space-between; gap: 8px; font-size: 11.5px; color: var(--muted); border-top: 1px solid var(--line); padding-top: 8px; }
.maq.parada .ring svg circle:last-child { stroke: var(--err); }
.kan { display: grid; grid-template-columns: repeat(5, minmax(184px, 1fr)); gap: 12px; overflow-x: auto; padding-bottom: 6px; }
.kan-col { background: var(--soft); border-radius: 16px; padding: 10px; display: flex; flex-direction: column; gap: 8px; min-width: 184px; }
.kan-col h3 { margin: 2px 4px 4px; font-size: 13px; font-weight: 600; display: flex; justify-content: space-between; }
.kan-card { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 9px 11px; display: flex; flex-direction: column; gap: 4px; cursor: pointer; font-size: 12.5px; }
.kan-card:hover { border-color: var(--field); }
.kan-card b { font-family: var(--f-num); font-size: 12px; }
.gantt { position: relative; }
.g-head { display: grid; grid-template-columns: 120px repeat(7, minmax(0, 1fr)); font-size: 11.5px; color: var(--muted); border-bottom: 1px solid var(--line); }
.g-head div { padding: 6px 4px; text-align: center; } .g-head div.hoje { color: var(--acc); font-weight: 700; }
.g-row { display: grid; grid-template-columns: 120px minmax(0, 1fr); border-bottom: 1px solid var(--line); min-height: 46px; }
.g-row .lbl { padding: 8px 6px; font-size: 12.5px; display: flex; flex-direction: column; justify-content: center; }
.g-row .lbl b { font-family: var(--f-num); font-size: 13px; }
.g-row .lbl small { color: var(--muted); font-size: 11px; }
.g-lane { position: relative; background-image: linear-gradient(to right, var(--line) 1px, transparent 1px); background-size: calc(100% / 7) 100%; }
.g-bar { position: absolute; top: 8px; bottom: 8px; border-radius: 8px; padding: 3px 8px; font-size: 11px; font-weight: 600; color: #0E1330; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; cursor: pointer;
  border: 1px solid rgba(0,0,0,.06); transition: filter .15s; }
.g-bar:hover { filter: brightness(1.07); }
.g-bar.risco { box-shadow: inset 0 0 0 2px var(--err); }
.g-now { position: absolute; top: 0; bottom: 0; width: 2px; background: var(--err); z-index: 2; pointer-events: none; }
.g-now.first::before { content: ""; position: absolute; top: -4px; left: -3px; width: 8px; height: 8px; border-radius: 50%; background: var(--err); }
.heat { display: grid; grid-template-columns: 150px repeat(7, minmax(0, 1fr)); gap: 4px; font-size: 12px; }
.heat .h { color: var(--muted); text-align: center; padding: 4px 0; } .heat .h.hoje { color: var(--acc); font-weight: 700; }
.heat .l { display: flex; flex-direction: column; justify-content: center; } .heat .l small { color: var(--muted); font-size: 11px; }
.heat .c { border-radius: 9px; padding: 8px 4px; text-align: center; font-weight: 600; font-variant-numeric: tabular-nums; }
.pessoas { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 12px; }
.pessoa { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 14px 16px; display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 12px; align-items: center; }
.pessoa .t b { display: block; font-size: 14.5px; } .pessoa .t small { display: block; color: var(--muted); font-size: 12px; }
.pessoa .t span { display: block; font-size: 12.5px; margin-top: 4px; }
.mtx { display: grid; gap: 4px; font-size: 12.5px; }
.mtx .c { border-radius: 8px; padding: 9px 6px; text-align: center; font-variant-numeric: tabular-nums; }
.tl { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 0; }
.tl li { display: grid; grid-template-columns: 18px minmax(0, 1fr); gap: 10px; padding-bottom: 12px; position: relative; }
.tl li::before { content: ""; position: absolute; left: 8px; top: 14px; bottom: 0; width: 2px; background: var(--line); }
.tl li:last-child::before { display: none; }
.tl i { width: 12px; height: 12px; border-radius: 50%; margin: 3px 0 0 3px; background: var(--line); }
.tl li.feito i { background: var(--ok); } .tl li.agora i { background: var(--acc); box-shadow: 0 0 0 4px color-mix(in srgb, var(--acc) 25%, transparent); }
.tl b { font-size: 13px; font-weight: 600; } .tl small { display: block; color: var(--muted); font-size: 12px; }
.tarefa { display: grid; grid-template-columns: 40px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 12px 16px; border-bottom: 1px solid var(--line); transition: opacity .3s, transform .3s; }
.tarefa:last-child { border-bottom: 0; }
.tarefa .ic { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: var(--soft); color: var(--acc); }
.tarefa .t b { display: block; font-size: 14px; } .tarefa .t small { display: block; color: var(--muted); font-size: 12.5px; margin-top: 2px; }
.tarefa .a { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; justify-content: flex-end; }
.tarefa.sai { opacity: 0; transform: translateX(24px); }

/* ---------- camadas: gaveta, janela, paleta, menus, aviso ---------- */
.scrim2 { position: fixed; inset: 0; background: rgba(15,20,45,.38); backdrop-filter: blur(3px); -webkit-backdrop-filter: blur(3px); z-index: 60; }
.scrim2.alto { z-index: 70; }
.dw { position: fixed; top: 0; right: 0; bottom: 0; width: min(760px, 100vw); background: var(--surface); border-left: 1px solid var(--line); box-shadow: -18px 0 48px rgba(10,16,40,.2);
  z-index: 61; display: flex; flex-direction: column; }
.anim.scrim2 { animation: aparece .2s ease; } .anim.dw { animation: dw-in .3s cubic-bezier(.2,.9,.25,1); } .anim.md { animation: md-in .24s cubic-bezier(.2,.9,.25,1); }
.anim.pal { animation: pal-in .2s cubic-bezier(.2,.9,.25,1); } .anim.menu { animation: menu-in .16s ease; }
@keyframes aparece { from { opacity: 0; } }
@keyframes dw-in { from { transform: translateX(48px); opacity: 0; } }
@keyframes md-in { from { opacity: 0; transform: translate(-50%, -46%) scale(.98); } }
@keyframes pal-in { from { opacity: 0; transform: translate(-50%, -8px) scale(.985); } }
@keyframes menu-in { from { opacity: 0; transform: translateY(-4px); } }
.dw-h, .md-h { display: flex; align-items: center; justify-content: space-between; gap: 10px; border-bottom: 1px solid var(--line); padding: 16px 20px; }
.dw-h { padding-top: calc(16px + env(safe-area-inset-top, 0px)); }
.dw-h .tt, .md-h .tt { min-width: 0; }
.dw-h h2, .md-h h2 { margin: 0; font-size: 18px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dw-h small { color: var(--muted); font-size: 12.5px; }
.dw-b { flex: 1; overflow-y: auto; padding: 20px; display: flex; flex-direction: column; gap: 20px; min-height: 0; }
.dw-f, .md-f { display: flex; justify-content: flex-end; gap: 8px; border-top: 1px solid var(--line); padding: 14px 20px; flex-wrap: wrap; }
.dw-f { padding-bottom: calc(14px + env(safe-area-inset-bottom, 0px)); }
.dw-f .esq { margin-right: auto; display: flex; gap: 8px; flex-wrap: wrap; }
.ico-btn { border: 0; background: none; color: var(--muted); padding: 6px; border-radius: 8px; display: inline-grid; place-items: center; }
.ico-btn:hover { background: var(--soft); color: var(--ink); }
.ico-btn .i { width: 17px; height: 17px; }
.fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 18px; }
.fv { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.fv small { font-size: 11.5px; color: var(--muted); }
.fv span { font-size: 14px; overflow-wrap: anywhere; }
section.sec { display: flex; flex-direction: column; gap: 10px; }
section.sec h3 { margin: 0; font-size: 10.5px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
section.sec h3 .cnt { text-transform: none; letter-spacing: 0; font-weight: 400; }
.sec-h { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
section.sec.sep { border-top: 1px solid var(--line); padding-top: 16px; }
section.sec.perigo h3 { color: var(--err); }
.fld { display: flex; flex-direction: column; gap: 5px; min-width: 0; }
.fld > label, .fld > .lb { font-size: 12px; font-weight: 600; }
.fld input[type="text"], .fld input[type="email"], .fld input[type="number"], .fld input[type="date"], .fld select, .fld textarea {
  border: 1px solid var(--field); border-radius: 9px; background: var(--surface); padding: 8px 10px; min-width: 0; width: 100%; }
.fld textarea { resize: vertical; min-height: 70px; }
.fld input:disabled { background: var(--soft); color: var(--muted); }
.g2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.chk { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; cursor: pointer; }
.chk input { width: 15px; height: 15px; margin: 0; }
.md { position: fixed; left: 50%; top: 50%; transform: translate(-50%, -50%); width: min(560px, calc(100vw - 32px)); max-height: calc(100dvh - 48px);
  background: var(--surface); border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--shadow-lg); z-index: 71; display: flex; flex-direction: column; }
.md-b { padding: 16px 20px; overflow-y: auto; display: flex; flex-direction: column; gap: 12px; min-height: 0; }
.pal { position: fixed; left: 50%; top: max(10vh, calc(16px + env(safe-area-inset-top, 0px))); transform: translateX(-50%); width: min(660px, calc(100vw - 32px)); max-height: 70dvh;
  background: var(--surface); border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--shadow-lg); z-index: 71; display: flex; flex-direction: column; overflow: hidden; }
.pal-in { display: flex; align-items: center; gap: 10px; padding: 14px 16px; border-bottom: 1px solid var(--line); }
.pal-in input { flex: 1; border: 0; outline: 0; background: none; font-size: 17px; color: var(--ink); min-width: 0; }
.pal-in .i { width: 20px; height: 20px; color: var(--muted); }
.pal-r { overflow-y: auto; padding: 6px; }
.pal-g { font-size: 11px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); padding: 10px 10px 4px; }
.pal-i { display: flex; align-items: center; gap: 10px; width: 100%; border: 0; background: none; text-align: left; padding: 9px 10px; border-radius: 10px; color: var(--ink); }
.pal-i .k { width: 30px; height: 30px; border-radius: 9px; background: var(--soft); display: grid; place-items: center; color: var(--muted); flex: none; }
.pal-i .k .i { width: 16px; height: 16px; }
.pal-i .t { flex: 1; min-width: 0; } .pal-i .t b { display: block; font-weight: 500; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pal-i .t small { display: block; color: var(--muted); font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pal-i.on { background: var(--info-bg); } .pal-i.on .k { background: var(--acc); color: #F4F7FD; }
.pal-f { display: flex; gap: 14px; padding: 9px 14px; border-top: 1px solid var(--line); font-size: 11.5px; color: var(--muted); }
.menu { position: fixed; z-index: 66; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow-lg); width: min(340px, calc(100vw - 24px)); max-height: 76dvh; overflow-y: auto; padding: 6px; }
.menu-h { padding: 10px 10px 6px; font-size: 11px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.menu-i { display: flex; align-items: center; gap: 10px; width: 100%; border: 0; background: none; text-align: left; padding: 8px 10px; border-radius: 10px; font-size: 13.5px; color: var(--ink); }
.menu-i:hover { background: var(--soft); } .menu-i.on { background: var(--info-bg); font-weight: 600; }
.menu-i small { display: block; font-size: 11.5px; color: var(--muted); font-weight: 400; }
.menu-i .av { width: 28px; height: 28px; border-radius: 8px; background: var(--soft); display: grid; place-items: center; font-size: 11px; font-weight: 700; flex: none; }
.menu-sep { height: 1px; background: var(--line); margin: 6px 4px; }
.menu .seg { margin: 4px 10px 8px; }
.menu-scrim { position: fixed; inset: 0; z-index: 65; }
.toast { position: fixed; left: 50%; bottom: calc(24px + env(safe-area-inset-bottom, 0px)); transform: translate(-50%, 16px); background: var(--navy); color: #EEF2FA; border: 1px solid rgba(255,255,255,.12);
  padding: 10px 12px 10px 16px; border-radius: 12px; font-size: 13px; font-weight: 500; box-shadow: var(--shadow-lg); opacity: 0; pointer-events: none;
  transition: opacity .2s, transform .25s cubic-bezier(.2,.9,.25,1.2); z-index: 80; max-width: calc(100vw - 32px); display: flex; align-items: center; gap: 12px; }
.toast.on { opacity: 1; transform: translate(-50%, 0); pointer-events: auto; }
.toast button { border: 0; background: rgba(255,255,255,.14); color: #EEF2FA; border-radius: 8px; padding: 5px 10px; font-weight: 600; font-size: 12.5px; }

/* ---------- perfis e acessos (desenho da Gestão de Utilizadores da GP) ---------- */
.banner { display: flex; align-items: center; gap: 9px; width: 100%; text-align: left; border: 1px solid rgba(80,135,199,.35); background: var(--info-bg); color: var(--info-ink); border-radius: 12px; padding: 11px 14px; font-size: 12.5px; }
.banner:hover { border-color: rgba(80,135,199,.7); } .banner .i { width: 16px; height: 16px; } .banner .go { margin-left: auto; font-weight: 600; text-decoration: underline; white-space: nowrap; }
.toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.pills { display: flex; flex-wrap: wrap; gap: 6px; }
.pill { border: 1px solid var(--line); background: none; color: var(--muted); border-radius: 20px; padding: 4px 12px; font-size: 12px; font-weight: 500; }
.pill:hover { background: var(--soft); } .pill.on { border-color: rgba(80,135,199,.45); background: var(--info-bg); color: var(--info-ink); } .pill.alarme { border-color: rgba(212,161,6,.55); color: var(--warn-ink); }
.lote { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; border: 1px solid rgba(80,135,199,.35); background: var(--info-bg); border-radius: 12px; padding: 8px 14px; margin-bottom: 12px; font-size: 13px; font-weight: 600; }
table.ut td { padding: 9px 8px; white-space: nowrap; } table.ut th { padding-inline: 8px; } table.ut th:first-child, table.ut td:first-child { padding-left: 16px; }
table.ut tr.off td { opacity: .6; } table.mx th { white-space: normal; vertical-align: bottom; line-height: 1.3; }
.avt { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; font-size: 11px; font-weight: 700; background: var(--soft); color: var(--ink); box-shadow: inset 0 0 0 2px var(--c, var(--line)); }
.nm-btn { display: inline-flex; align-items: center; gap: 6px; border: 0; background: none; padding: 0; font-weight: 600; color: var(--ink); text-align: left; }
.sd { width: 6px; height: 6px; border-radius: 50%; background: var(--muted); opacity: .5; flex: none; display: inline-block; } .sd.on { background: var(--ok); opacity: 1; }
.tg { display: inline-flex; align-items: center; gap: 4px; border-radius: 6px; padding: 2px 7px; font-size: 11.5px; font-weight: 600; background: var(--soft); color: var(--ink); }
.tg.admin { background: var(--info-bg); color: var(--info-ink); font-size: 10px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; } .tg.amb { background: var(--warn-bg); color: var(--warn-ink); }
.tg .i { width: 12px; height: 12px; }
.dv { display: inline-flex; gap: 4px; } .dv b { border-radius: 5px; padding: 2px 6px; font-size: 11px; } .dv .mais { background: var(--warn-bg); color: var(--warn-ink); } .dv .menos { background: var(--soft); color: var(--muted); }
.alt { margin-left: 6px; border-radius: 5px; padding: 1px 6px; font-size: 10.5px; font-weight: 600; background: var(--warn-bg); color: var(--warn-ink); white-space: nowrap; }
.adot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: #D4A106; vertical-align: middle; margin-left: 4px; }
.acts { display: inline-flex; align-items: center; gap: 2px; position: relative; }
.pop { position: absolute; right: 0; top: calc(100% + 4px); z-index: 15; display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow-lg); padding: 4px; min-width: 190px; }
.pop.up { top: auto; bottom: calc(100% + 4px); }
.pop button { display: flex; align-items: center; gap: 8px; width: 100%; border: 0; background: none; padding: 7px 10px; border-radius: 8px; text-align: left; font-size: 13px; }
.pop button:hover { background: var(--soft); } .pop button .i { width: 15px; height: 15px; } .pop .perigo { color: var(--err); }
.scope { display: grid; gap: 7px; } .scope-row { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; } .scope-row small { font-size: 11px; font-weight: 600; color: var(--muted); width: 92px; flex: none; }
.mk-chk { display: inline-flex; align-items: center; gap: 6px; border: 1px solid var(--line); border-radius: 20px; padding: 4px 10px 4px 8px; font-size: 12.5px; cursor: pointer; }
.mk-chk.on { border-color: rgba(80,135,199,.45); background: var(--info-bg); } .mk-chk input { margin: 0; width: 13px; height: 13px; }
.caps-g h4, .mn-g h4 { margin: 0 0 6px; font-size: 10.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.caps { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; }
.cap { display: flex; gap: 10px; border: 1px solid var(--line); border-radius: 10px; padding: 8px 12px; background: var(--surface); cursor: pointer; }
.cap:hover { background: var(--soft); } .cap.on { border-color: rgba(80,135,199,.45); background: color-mix(in srgb, var(--info-bg) 65%, var(--surface)); } .cap.dis { opacity: .5; cursor: not-allowed; }
.cap input { margin: 2px 0 0; width: 15px; height: 15px; flex: none; } .cap .l { display: block; font-size: 13.5px; color: var(--muted); } .cap.on .l { color: var(--ink); font-weight: 500; }
.cap .h { display: block; font-size: 11.5px; color: var(--muted); line-height: 1.4; margin-top: 2px; }
.mn { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 3px; }
.mi { display: flex; align-items: flex-start; gap: 7px; border-radius: 7px; padding: 4px 8px; font-size: 12.5px; color: var(--muted); cursor: pointer; min-width: 0; }
.mi:hover { background: var(--soft); } .mi.on { background: color-mix(in srgb, var(--info-bg) 65%, transparent); color: var(--ink); }
.mi input { margin: 2px 0 0; width: 13px; height: 13px; flex: none; } .mi .t { min-width: 0; flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mi .ad { width: 6px; height: 6px; border-radius: 50%; background: #D4A106; flex: none; margin-top: 6px; }
.lst { display: flex; flex-direction: column; gap: 6px; }
.lst-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; border: 1px solid var(--line); border-radius: 10px; padding: 8px 12px; background: none; text-align: left; width: 100%; color: var(--ink); }
.lst-row:hover { background: var(--info-bg); } .lst-row .t { display: block; font-weight: 600; font-size: 13.5px; } .lst-row .s { display: block; font-size: 11.5px; color: var(--muted); margin-top: 1px; }
.lst-row .go { font-size: 11.5px; font-weight: 600; color: var(--sky); white-space: nowrap; }
.lvl { font-size: 11px; font-weight: 700; padding: 2px 9px; border-radius: 20px; white-space: nowrap; }
.lvl.e { background: var(--ok-bg); color: var(--ok-ink); } .lvl.v { background: var(--info-bg); color: var(--info-ink); } .lvl.p { background: var(--warn-bg); color: var(--warn-ink); } .lvl.n { color: var(--muted); }

/* ---------- organograma do grupo ---------- */
.org { display: flex; flex-direction: column; align-items: center; }
.org-top { display: flex; align-items: center; gap: 12px; border: 1px solid var(--line); background: var(--surface); border-radius: 14px; padding: 10px 16px; position: relative; }
.org-top b { display: block; font-size: 15px; } .org-top small { color: var(--muted); font-size: 12px; }
.org-top::after { content: ""; position: absolute; left: 50%; bottom: -29px; width: 1.5px; height: 28px; background: var(--field); }
.org-sim { width: 38px; height: 38px; flex: none; } .org-sim svg { width: 100%; height: 100%; display: block; }
.org-ramos { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; width: 100%; margin-top: 28px; position: relative; padding-top: 18px; }
.org-ramos::before { content: ""; position: absolute; top: 0; left: 12.5%; right: 12.5%; height: 1.5px; background: var(--field); }
.org-soc { display: flex; flex-direction: column; gap: 8px; position: relative; min-width: 0; }
.org-soc::before { content: ""; position: absolute; top: -18px; left: 50%; width: 1.5px; height: 18px; background: var(--field); }
.org-no { border: 1.5px solid var(--c); border-radius: 14px; padding: 10px 12px; background: color-mix(in srgb, var(--c) 8%, var(--surface)); display: flex; flex-direction: column; gap: 2px; text-align: center; }
.org-no b { font-size: 14px; } .org-no small { color: var(--muted); font-size: 11.5px; } .org-no span { font-weight: 600; font-size: 13px; }
.org-marcas { display: flex; flex-wrap: wrap; gap: 4px; justify-content: center; }
.org-sp { margin-top: 16px; width: 100%; border: 1px dashed var(--field); border-radius: 12px; padding: 10px 14px; display: flex; flex-direction: column; gap: 2px; text-align: center; }
.org-sp b { font-size: 13px; } .org-sp span { font-size: 12px; color: var(--muted); }
@media (max-width: 760px) { .org-ramos { grid-template-columns: repeat(2, minmax(0, 1fr)); } .org-ramos::before, .org-soc::before { display: none; } }

.scrim { display: none; }

@media (max-width: 1100px) {
  .cols, .cols.even, .cols.three, .dept { grid-template-columns: minmax(0, 1fr); }
  .cmdk { min-width: 0; }
  .me .who { display: none; }
}
@media (max-width: 900px) {
  .app { grid-template-columns: minmax(0, 1fr); }
  .rail { position: fixed; inset: 0 auto 0 0; width: 68px; transform: translateX(-110%); transition: transform .26s cubic-bezier(.2,.9,.25,1); z-index: 41; padding-top: calc(14px + env(safe-area-inset-top, 0px)); }
  .side { position: fixed; top: 0; bottom: 0; left: 68px; width: min(280px, calc(100vw - 68px)); transform: translateX(calc(-100% - 68px)); transition: transform .26s cubic-bezier(.2,.9,.25,1); z-index: 40; padding-top: env(safe-area-inset-top, 0px); }
  .app.open .rail, .app.open .side { transform: none; }
  .app.open .side { box-shadow: 0 0 40px rgba(0,0,0,.35); }
  .app.open .scrim { display: block; position: fixed; inset: 0; background: rgba(10,14,32,.45); z-index: 30; }
  .burger { display: inline-grid; place-items: center; }
  .cmdk span, .cmdk kbd, .demo { display: none; }
  .cmdk { padding: 9px; border-radius: 11px; }
  .live-pill .txt { display: none; }
}
@media (max-width: 640px) {
  .g2, .caps, .fields { grid-template-columns: minmax(0, 1fr); }
  .mn { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .dw-b { padding: 16px; }
  .sbox { flex: 1 1 100%; }
  .ph h1, .hello h1 { font-size: 23px; }
  .kpi .v { font-size: 23px; }
  .kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .heat { grid-template-columns: 96px repeat(7, minmax(0, 1fr)); }
  .g-head { grid-template-columns: 70px repeat(7, minmax(0, 1fr)); } .g-row { grid-template-columns: 70px minmax(0, 1fr); }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; animation: none !important; } }
