/* Prumo — sistema visual. Claro por padrão; escuro automático ou escolhido. */
:root {
  /* Paleta da marca Cresci e Perdi: amarelo da girafa, ocre do "E", marrom das letras. */
  --bg: #fbf5e6; --surface: #fff; --surface-2: #fff9ec; --ink: #2b1a08; --muted: #7a6a55; --line: #eadfc6;
  --brand: #6b3a10; --brand-strong: #55300c; --brand-soft: #fff0c2; --on-brand: #fff;
  --accent: #d9382b; --accent-soft: #fde3df; --gold: #fdc113; --gold-soft: #fff0c2; --gold-ink: #7a5300; --ochre: #e3a024;
  --ok: #2e8b57; --ok-soft: #dff2e6; --warn: #c0392b; --warn-soft: #fde4e0;
  --side: #4a2a0c; --side-ink: #fff6dd; --side-muted: #d9c4a3;
  --radius: 16px; --shadow: 0 1px 2px rgba(74,42,12,.05), 0 8px 24px rgba(74,42,12,.07);
  --font: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #1a130a; --surface: #261c10; --surface-2: #2d2214; --ink: #f6efe0; --muted: #b3a389; --line: #41331e;
    --brand: #fdc113; --brand-strong: #ffd451; --brand-soft: #3b2e12; --on-brand: #2b1a08;
    --accent: #ff8a7a; --accent-soft: #46231e; --gold-soft: #3b2e12; --gold-ink: #ffd451;
    --ok: #6fcf97; --ok-soft: #1d3a2a; --warn: #ff8a80; --warn-soft: #45201d; --side: #120c05; --shadow: 0 1px 2px rgba(0,0,0,.3), 0 8px 24px rgba(0,0,0,.25);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #1a130a; --surface: #261c10; --surface-2: #2d2214; --ink: #f6efe0; --muted: #b3a389; --line: #41331e;
  --brand: #fdc113; --brand-strong: #ffd451; --brand-soft: #3b2e12; --on-brand: #2b1a08;
  --accent: #ff8a7a; --accent-soft: #46231e; --gold-soft: #3b2e12; --gold-ink: #ffd451;
  --ok: #6fcf97; --ok-soft: #1d3a2a; --warn: #ff8a80; --warn-soft: #45201d; --side: #120c05; --shadow: 0 1px 2px rgba(0,0,0,.3), 0 8px 24px rgba(0,0,0,.25);
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 15px/1.5 var(--font); -webkit-font-smoothing: antialiased; }
h1, h2, h3, p { margin: 0; } h1 { font-size: 1.7rem; line-height: 1.15; letter-spacing: -.02em; } h2 { font-size: 1.05rem; letter-spacing: -.01em; } h3 { font-size: .95rem; margin-top: 14px; }
button, input, select, textarea { font: inherit; color: inherit; }
a { color: inherit; }
.muted { color: var(--muted); } .small { font-size: .82rem; } .mt { margin-top: 14px; }
.eyebrow { font-size: .78rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--gold-ink); margin-bottom: 4px; }
.ico { flex: none; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; border-radius: 8px; }

/* ---------- botões, campos ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 1.5px solid transparent; background: var(--brand); color: var(--on-brand); padding: 10px 18px; min-height: 42px; border-radius: 999px; font-weight: 650; cursor: pointer; text-decoration: none; transition: background .15s, transform .05s; white-space: nowrap; }
.btn:hover { background: var(--brand-strong); } .btn:active { transform: scale(.98); }
.btn.ghost { background: transparent; color: var(--brand-strong); border-color: var(--line); } .btn.ghost:hover { background: var(--brand-soft); }
.btn.accent { background: var(--accent); color: #fff; }
.btn.light { color: var(--side); } .btn.accent:hover { filter: brightness(.93); }
.btn.light { background: #fff; color: #4a2a0c; } .btn.sm { padding: 6px 14px; min-height: 34px; font-size: .86rem; } .btn.icon { padding: 0; width: 42px; }
.btn:disabled, select:disabled, input:disabled { opacity: .5; cursor: not-allowed; }
.field { display: block; margin-bottom: 12px; } .field > span { display: block; font-size: .82rem; font-weight: 650; margin-bottom: 5px; } .field small { color: var(--muted); }
input, select, textarea { width: 100%; padding: 10px 12px; min-height: 42px; border: 1.5px solid var(--line); border-radius: 12px; background: var(--surface); }
select.compact { min-height: 34px; padding: 4px 8px; width: auto; max-width: 150px; font-size: .86rem; }
textarea { resize: vertical; } input::placeholder, textarea::placeholder { color: var(--muted); opacity: .8; }
.error { color: var(--warn); background: var(--warn-soft); padding: 10px 14px; border-radius: 12px; margin-top: 10px; }
.row { display: flex; align-items: center; gap: 12px; } .row.tight { gap: 6px; } .row.between { justify-content: space-between; } .row.wrap { flex-wrap: wrap; }
.grid2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 0 12px; }

/* ---------- login (paleta da marca Cresci e Perdi) ---------- */
.login { --lb-yellow: #fdc113; --lb-ochre: #e3a024; --lb-brown: #6b3a10; --lb-cream: #fff8e6;
  min-height: 100vh; display: grid; grid-template-columns: 1.1fr 1fr; color-scheme: light; color: #2b1a08; }
.login-art { background: var(--lb-cream); padding: 48px 56px; display: flex; flex-direction: column; justify-content: center; gap: 20px; }
.login-logo { width: min(380px, 80%); height: auto; margin-bottom: 8px; }
.login-art h1 { font-size: 2.1rem; max-width: 460px; color: var(--lb-brown); } .login-art p { max-width: 430px; font-size: 1.05rem; color: #6f5a3d; }
.login-by { display: flex; align-items: center; gap: 10px; margin-top: 12px; font-size: .85rem; font-weight: 650; color: #8a6d3b; } .login-by img { width: 24px; height: 24px; }
.login-side { background: var(--lb-yellow); display: grid; place-items: center; padding: 32px 20px; position: relative; overflow: hidden; }
.login-side::before { content: ""; position: absolute; width: 520px; height: 520px; border-radius: 50%; background: var(--lb-ochre); opacity: .35; right: -180px; bottom: -200px; }
.login-card { position: relative; width: min(400px, 100%); background: #fff; border-radius: 24px; padding: 32px; box-shadow: 0 18px 50px rgba(107, 58, 16, .25); }
.login-card h2 { font-size: 1.5rem; margin-bottom: 4px; color: var(--lb-brown); } .login-card .muted { color: #7a6a55; } .login-card form { margin: 22px 0 14px; }
.login .field > span { color: #3a2610; } .login input { background: #fff; color: #2b1a08; border-color: #e6d9bf; } .login input:focus-visible { outline-color: var(--lb-yellow); border-color: var(--lb-ochre); }
.login .btn { width: 100%; background: var(--lb-brown); color: #fff; min-height: 46px; } .login .btn:hover { background: #55300c; }
.login .error { background: #fde4e0; color: #b3261e; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 1.25rem; letter-spacing: .01em; } .brand img { width: 34px; height: 34px; } .brand.light { color: #fff; }
@media (max-width: 800px) { .login { grid-template-columns: 1fr; } .login-art { padding: 24px 20px 20px; gap: 10px; } .login-logo { width: 180px; margin: 0; } .login-art h1 { font-size: 1.25rem; } .login-art p, .login-by { display: none; } .login-side { padding: 24px 16px 40px; } .login-card { padding: 24px; } }

/* ---------- shell ---------- */
.shell { display: grid; grid-template-columns: 252px 1fr; min-height: 100vh; }
.side { background: var(--side); color: var(--side-ink); padding: 20px 14px; display: flex; flex-direction: column; gap: 18px; position: sticky; top: 0; height: 100vh; }
.side .store-sel { background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.14); color: #fff; }
.side .store-sel option { color: #4a2a0c; }
.side-nav { display: flex; flex-direction: column; gap: 4px; flex: 1; }
.nav-i { display: flex; align-items: center; gap: 12px; padding: 11px 14px; border-radius: 12px; color: var(--side-muted); text-decoration: none; font-weight: 600; position: relative; }
.nav-i:hover { background: rgba(255,255,255,.07); color: #fff; }
.nav-i[aria-current="page"] { background: rgba(255,255,255,.13); color: #fff; }
.nav-i[aria-current="page"]::before { content: ""; position: absolute; left: -14px; top: 10px; bottom: 10px; width: 4px; border-radius: 0 4px 4px 0; background: #fdc113; }
.me { display: flex; align-items: center; gap: 10px; background: rgba(255,255,255,.07); border: 0; color: #fff; padding: 10px; border-radius: 14px; cursor: pointer; text-align: left; }
.me > div:not(.avatar) { flex: 1; min-width: 0; } .me b, .me small { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .me small { color: var(--side-muted); }
.stage { min-width: 0; } #main { max-width: 1120px; margin: 0 auto; padding: 28px 28px 60px; outline: 0; }
.mtop, .bnav { display: none; }
.viewas { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 12px; padding: 10px 20px; background: #fdc113; color: #3b2400; flex-wrap: wrap; }
.viewas span { flex: 1; min-width: 200px; }
@media (max-width: 960px) {
  .shell { display: block; } .side { display: none; }
  .mtop { display: flex; align-items: center; gap: 10px; padding: 10px 14px; background: var(--side); color: #fff; position: sticky; top: 0; z-index: 10; }
  .mtop .brand { font-size: 1.05rem; color: #fff; } .mtop .brand img { width: 28px; height: 28px; } .mtop select { flex: 1; min-height: 36px; padding: 4px 8px; background: rgba(255,255,255,.1); border-color: rgba(255,255,255,.2); color: #fff; }
  .mtop select option { color: #4a2a0c; } .mtop .btn.icon { color: #fff; border-color: rgba(255,255,255,.25); width: 38px; min-height: 36px; }
  #main { padding: 18px 16px 96px; }
  .bnav { display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 15; background: var(--surface); border-top: 1px solid var(--line); padding: 6px 4px calc(6px + env(safe-area-inset-bottom)); overflow-x: auto; }
  .bnav-i { flex: 1; min-width: 62px; display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 6px 4px; border-radius: 12px; text-decoration: none; color: var(--muted); font-size: .68rem; font-weight: 650; }
  .bnav-i[aria-current="page"] { color: var(--brand-strong); background: var(--brand-soft); }
}

/* ---------- páginas e cartões ---------- */
.page { display: flex; flex-direction: column; gap: 18px; }
.page-h { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow); }
.card.plain { padding: 14px; } .card-h { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 12px; }
.cols { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(280px, 1fr); gap: 18px; align-items: start; }
.col { display: flex; flex-direction: column; gap: 18px; min-width: 0; }
@media (max-width: 900px) { .cols { grid-template-columns: 1fr; } }
.hero { display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 26px; border-radius: 22px; background: linear-gradient(135deg, var(--brand-soft), var(--surface-2) 70%); border: 1px solid var(--line); flex-wrap: wrap; }
.hero-t { display: flex; flex-direction: column; gap: 8px; align-items: flex-start; } .hero-t.row { flex-direction: row; align-items: center; gap: 16px; }
.hero-r { display: flex; flex-direction: column; align-items: center; gap: 4px; color: var(--muted); }
.hero-card { background: linear-gradient(135deg, var(--brand-soft), var(--surface)); }
.back { display: inline-flex; gap: 6px; align-items: center; text-decoration: none; color: var(--muted); font-weight: 600; width: fit-content; } .back:hover { color: var(--brand-strong); }

.avatar { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; font-weight: 750; font-size: .85rem; background: color-mix(in srgb, var(--av, var(--brand)) 18%, var(--surface)); color: color-mix(in srgb, var(--av, var(--brand-strong)) 65%, var(--ink)); flex: none; overflow: hidden; }
.avatar.md { width: 46px; height: 46px; } .avatar.lg { width: 64px; height: 64px; font-size: 1.25rem; } .avatar img { width: 100%; height: 100%; object-fit: cover; }
.avatar.vacancy { border: 2px dashed var(--line); background: transparent; color: var(--muted); }
.chip { display: inline-flex; align-items: center; gap: 5px; padding: 3px 10px; border-radius: 999px; font-size: .76rem; font-weight: 700; background: var(--surface-2); color: var(--muted); border: 1px solid var(--line); }
.chip.brand { background: var(--brand-soft); color: var(--brand-strong); border-color: transparent; } .chip.gold { background: var(--gold-soft); color: var(--gold-ink); border-color: transparent; }
.chip.warn { background: var(--warn-soft); color: var(--warn); border-color: transparent; } .chip.ok { background: var(--ok-soft); color: var(--ok); border-color: transparent; } .chip.accent { background: var(--accent-soft); color: var(--accent); border-color: transparent; }
.bar { height: 8px; background: var(--line); border-radius: 99px; overflow: hidden; margin: 6px 0; } .bar i { display: block; height: 100%; background: var(--ochre); border-radius: 99px; transition: width .4s; } .bar.gold i { background: var(--ochre); }
.ring { position: relative; display: grid; place-items: center; } .ring-bg { stroke: var(--line); } .ring-fg { stroke: var(--ochre); transition: stroke-dashoffset .5s; } .ring-n { position: absolute; font-weight: 800; font-size: 1.1rem; }
.empty { text-align: center; color: var(--muted); padding: 22px 12px; display: flex; flex-direction: column; align-items: center; gap: 6px; } .empty b { color: var(--ink); }
.skeleton { display: grid; gap: 14px; } .skeleton i { display: block; height: 96px; border-radius: var(--radius); background: linear-gradient(90deg, var(--surface) 25%, var(--surface-2) 50%, var(--surface) 75%); background-size: 200% 100%; animation: sh 1.2s infinite; } @keyframes sh { to { background-position: -200% 0; } }
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; } }

/* ---------- checklist ---------- */
.checklist { display: flex; flex-direction: column; } .legend { margin-bottom: 6px; }
.ck { display: grid; grid-template-columns: 1fr auto; gap: 8px 12px; align-items: center; padding: 13px 0; border-top: 1px solid var(--line); }
.ck:first-of-type { border-top: 0; } .ck-l { display: flex; gap: 12px; align-items: center; min-width: 0; } .ck-t { font-weight: 550; }
.ck-mark { width: 26px; height: 26px; border-radius: 50%; border: 2px solid var(--line); display: grid; place-items: center; flex: none; color: #fff; font-weight: 800; }
.ck.s-F .ck-mark { background: var(--ok); border-color: var(--ok); } .ck.s-P .ck-mark { background: var(--gold); border-color: var(--gold); color: #3b2c00; } .ck.s-NA .ck-mark { background: var(--muted); border-color: var(--muted); }
.ck.s-F .ck-t, .ck.s-NA .ck-t { color: var(--muted); }
.seg { display: inline-flex; background: var(--surface-2); border: 1.5px solid var(--line); border-radius: 999px; padding: 3px; gap: 2px; }
.seg-b { border: 0; background: transparent; padding: 7px 14px; border-radius: 999px; font-weight: 650; font-size: .84rem; cursor: pointer; color: var(--muted); min-height: 34px; }
.seg-b:hover { background: var(--line); } .seg-b[aria-pressed="true"].F { background: var(--ok); color: #fff; } .seg-b[aria-pressed="true"].P { background: var(--gold); color: #3b2c00; } .seg-b[aria-pressed="true"].NA { background: var(--muted); color: #fff; }
.pform { grid-column: 1 / -1; background: var(--gold-soft); border-radius: 14px; padding: 14px 14px 4px; } .noteform { grid-column: 1 / -1; }
.linkish { grid-column: 1 / -1; justify-self: start; background: none; border: 0; color: var(--brand-strong); cursor: pointer; display: inline-flex; gap: 6px; align-items: center; padding: 0; margin-left: 38px; }
.ck.ro .ck-l { flex: 1; }
@media (max-width: 560px) { .ck { grid-template-columns: 1fr; } .seg { width: 100%; } .seg-b { flex: 1; } .hero { padding: 20px; } h1 { font-size: 1.4rem; } }

/* ---------- listas, feed, abas ---------- */
.li { display: flex; justify-content: space-between; gap: 12px; padding: 13px 0; border-top: 1px solid var(--line); align-items: flex-start; }
.card-h + .li, .card > .li:first-child, .card > div > .li:first-child { border-top: 0; padding-top: 0; }
.li.col-li { flex-direction: column; align-items: stretch; gap: 8px; } .li.is-late { }
.li-main { display: flex; flex-direction: column; gap: 4px; min-width: 0; } .li-side { display: flex; flex-direction: column; gap: 6px; align-items: flex-end; }
.msg { background: var(--surface-2); border-radius: 12px; padding: 10px 12px; } .reply { background: var(--brand-soft); color: var(--brand-strong); border-radius: 12px; padding: 10px 12px; font-size: .9rem; }
.feed { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 14px; } .feed li { display: flex; gap: 12px; }
.feed-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--brand); margin-top: 6px; flex: none; box-shadow: 0 0 0 4px var(--brand-soft); } .feed-dot.live { background: var(--ok); box-shadow: 0 0 0 4px var(--ok-soft); }
.bullets { padding-left: 20px; margin: 0; display: flex; flex-direction: column; gap: 4px; }
.tabs { display: flex; gap: 4px; border-bottom: 1.5px solid var(--line); overflow-x: auto; }
.tab { border: 0; background: none; padding: 10px 16px; font-weight: 650; color: var(--muted); cursor: pointer; border-bottom: 3px solid transparent; margin-bottom: -1.5px; display: inline-flex; gap: 8px; align-items: center; white-space: nowrap; }
.tab[aria-selected="true"] { color: var(--brand-strong); border-color: var(--brand); } .tab-n { background: var(--accent); color: #fff; border-radius: 99px; font-size: .7rem; padding: 1px 7px; }
.pills { display: flex; gap: 6px; flex-wrap: wrap; } .pill { border: 1.5px solid var(--line); background: var(--surface); border-radius: 999px; padding: 6px 14px; font-weight: 650; cursor: pointer; font-size: .85rem; }
.pill[aria-pressed="true"] { background: var(--brand); color: var(--on-brand); border-color: var(--brand); }
.alerts { display: flex; flex-direction: column; gap: 8px; } .alert { display: flex; align-items: center; gap: 10px; padding: 12px 16px; border-radius: 14px; border: 0; font-weight: 600; text-align: left; cursor: pointer; text-decoration: none; }
.alert .ico:last-child { margin-left: auto; } .alert.gold { background: var(--gold-soft); color: var(--gold-ink); } .alert.warn { background: var(--warn-soft); color: var(--warn); }
.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 12px; }
.kpi { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; box-shadow: var(--shadow); }
.kpi-i { color: var(--brand); margin-bottom: 6px; } .kpi.warn .kpi-i, .kpi.warn .kpi-v { color: var(--warn); } .kpi-l { font-size: .8rem; color: var(--muted); font-weight: 600; } .kpi-v { font-size: 1.9rem; font-weight: 800; letter-spacing: -.02em; line-height: 1.15; } .kpi-v.na { font-size: 1.15rem; color: var(--muted); padding: 8px 0; } .kpi-s { font-size: .78rem; color: var(--muted); }
.plist { display: flex; flex-direction: column; } .prow { display: flex; align-items: center; gap: 12px; padding: 11px 6px; border-radius: 12px; text-decoration: none; } .prow:hover { background: var(--surface-2); } .prow-m { flex: 1; min-width: 0; }
.search { display: flex; align-items: center; gap: 8px; background: var(--surface); border: 1.5px solid var(--line); border-radius: 999px; padding: 0 14px; min-width: 240px; } .search input { border: 0; background: transparent; padding-left: 0; } .search input:focus-visible { outline: 0; }
.team-grid, .store-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 14px; }
.pcard, .scard { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; display: flex; flex-direction: column; gap: 12px; text-decoration: none; box-shadow: var(--shadow); cursor: pointer; text-align: left; transition: transform .12s, border-color .12s; }
.pcard:hover, .scard:hover { transform: translateY(-2px); border-color: var(--brand); } .pcard.vacancy { border-style: dashed; background: transparent; box-shadow: none; } .pcard-t { min-width: 0; }
.wk { display: flex; gap: 5px; align-items: flex-end; height: 100px; } .wk-col { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 4px; height: 100%; } .wk-col span { font-size: .65rem; color: var(--muted); }
.wk-bar { flex: 1; width: 100%; display: flex; align-items: flex-end; background: var(--surface-2); border-radius: 6px; overflow: hidden; } .wk-bar i { display: block; width: 100%; background: var(--ochre); border-radius: 6px 6px 0 0; } .wk-col.today .wk-bar i { background: var(--brand); }

/* ---------- caixa ---------- */
.steps { display: flex; gap: 10px; flex-wrap: wrap; } .step { display: flex; align-items: center; gap: 10px; padding: 10px 16px 10px 10px; border-radius: 14px; border: 1.5px solid var(--line); background: var(--surface-2); }
.step.on { border-color: var(--ok); background: var(--ok-soft); } .step-n { width: 22px; height: 22px; border-radius: 50%; background: var(--line); font-size: .75rem; font-weight: 800; display: grid; place-items: center; } .step.on .step-n { background: var(--ok); color: #fff; }
.cash-now { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; } .cash-now h2 { font-size: 1.4rem; margin: 6px 0 2px; }
.big-ico { width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; background: var(--gold-soft); color: var(--gold-ink); }

/* ---------- organograma ---------- */
.org { position: relative; overflow-x: auto; padding: 8px 0 16px; }
.org-levels { position: relative; display: flex; flex-direction: column; gap: 52px; min-width: max-content; margin: 0 auto; padding: 4px 8px; }
.org-level { display: flex; gap: 14px; justify-content: center; }
.org-node { width: 140px; text-align: center; background: var(--surface); border: 1.5px solid var(--line); border-radius: var(--radius); padding: 12px 8px; cursor: pointer; box-shadow: var(--shadow); position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; gap: 4px; }
.org-node:hover, .org-node[aria-pressed="true"] { border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-soft); } .org-node.vacancy { border-style: dashed; background: transparent; box-shadow: none; }
.org-node b { display: block; } .org-node span { font-size: .74rem; color: var(--muted); line-height: 1.25; }
svg.links { position: absolute; inset: 0; pointer-events: none; z-index: 0; } svg.links path { fill: none; stroke: var(--brand); stroke-width: 1.8; opacity: .6; } svg.links path.support { stroke: var(--accent); stroke-dasharray: 5 5; }
.legend { display: flex; gap: 18px; font-size: .82rem; color: var(--muted); flex-wrap: wrap; }

/* ---------- modal, menu, toast ---------- */
dialog.modal { border: 0; padding: 0; border-radius: 20px; background: var(--surface); color: var(--ink); width: min(460px, calc(100vw - 24px)); box-shadow: 0 20px 60px rgba(0,0,0,.35); }
dialog.modal > :not(.modal-h) { padding: 4px 22px 22px; } dialog::backdrop { background: rgba(15, 25, 23, .55); backdrop-filter: blur(2px); }
.modal-h { display: flex; justify-content: space-between; align-items: center; padding: 18px 18px 8px 22px; } .modal-h h2 { font-size: 1.15rem; }
.menu { display: flex; flex-direction: column; gap: 16px; } .menu-s { display: flex; flex-direction: column; gap: 8px; }
.vlist { display: flex; flex-direction: column; gap: 4px; max-height: 340px; overflow: auto; margin-top: 10px; } .vrow { display: flex; align-items: center; gap: 12px; padding: 10px; border: 0; background: none; border-radius: 12px; cursor: pointer; text-align: left; } .vrow:hover { background: var(--brand-soft); } .vrow > div { flex: 1; }
#toasts { position: fixed; right: 16px; bottom: 84px; display: flex; flex-direction: column; gap: 8px; z-index: 100; }
@media (min-width: 961px) { #toasts { bottom: 24px; } }
.toast { background: var(--ink); color: var(--bg); padding: 12px 18px; border-radius: 14px; box-shadow: var(--shadow); font-weight: 600; max-width: 340px; } .toast.err { background: var(--warn); color: #fff; }
table { width: 100%; border-collapse: collapse; }
@media (max-width: 560px) { .kpis { grid-template-columns: 1fr 1fr; } .kpi { padding: 12px; } .kpi-v { font-size: 1.5rem; } .kpi-s { display: none; } .page-h .btn { width: 100%; } .search { min-width: 0; width: 100%; } }

/* ---------- checklist da colaboradora (um toque no círculo) ---------- */
.ck2 { display: grid; grid-template-columns: auto 1fr; gap: 6px 14px; align-items: start; padding: 14px 0; border-top: 1px solid var(--line); }
.ck2:first-child { border-top: 0; padding-top: 4px; } .ck2-m { min-width: 0; display: flex; flex-direction: column; gap: 4px; } .ck2 .ck-t { font-size: 1.02rem; }
.ck2-x { grid-column: 2; display: flex; flex-direction: column; gap: 8px; align-items: flex-start; }
.ck2-x.row { flex-direction: row; }
.ck-btn { width: 46px; height: 46px; border-radius: 50%; border: 2.5px solid var(--line); background: var(--surface); cursor: pointer; display: grid; place-items: center; color: #fff; font-weight: 800; font-size: 1.2rem; transition: transform .08s, border-color .15s, background .15s; flex: none; }
.ck-btn:hover { border-color: var(--ochre); background: var(--gold-soft); } .ck-btn:active { transform: scale(.92); }
.ck2.s-F .ck-btn { background: var(--ok); border-color: var(--ok); } .ck2.s-P .ck-btn { background: var(--gold); border-color: var(--gold); color: #3b2400; } .ck2.s-NA .ck-btn { background: var(--muted); border-color: var(--muted); }
.ck2.s-redo .ck-btn { border-color: var(--accent); background: var(--accent-soft); }
.ck2.s-F .ck-t, .ck2.s-NA .ck-t { color: var(--muted); }
.card-redo { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft), var(--shadow); } .card-redo .card-h h2 { color: var(--accent); }
.card-done { background: var(--surface-2); box-shadow: none; }
.reply.warn { background: var(--warn-soft); color: var(--warn); display: flex; gap: 8px; align-items: flex-start; }
.howto { display: flex; justify-content: space-between; gap: 16px; align-items: center; background: var(--brand); color: var(--on-brand); border-radius: var(--radius); padding: 16px 20px; flex-wrap: wrap; } .howto ol { margin: 6px 0 0; padding-left: 20px; } .howto .btn.light { color: #4a2a0c; }
.fab { position: fixed; right: 16px; bottom: 24px; z-index: 12; display: inline-flex; gap: 8px; align-items: center; border: 0; background: var(--accent); color: #fff; padding: 14px 20px; border-radius: 999px; font-weight: 700; box-shadow: 0 8px 24px rgba(0,0,0,.28); cursor: pointer; }
@media (max-width: 960px) { .fab { bottom: 84px; } } @media (min-width: 961px) { .fab { display: none; } }
.toast { display: flex; align-items: center; gap: 12px; } .toast-a { border: 0; background: rgba(255,255,255,.18); color: inherit; font-weight: 800; padding: 4px 10px; border-radius: 999px; cursor: pointer; }
.nav-badge { margin-left: auto; background: #fdc113; color: #3b2400; font-style: normal; font-size: .72rem; font-weight: 800; padding: 1px 8px; border-radius: 999px; }
.bnav-i { position: relative; } .bnav-i .nav-badge { position: absolute; top: 2px; right: 10px; margin: 0; font-size: .62rem; padding: 0 6px; }

/* ---------- conferência ---------- */
.arow { display: flex; flex-direction: column; gap: 8px; padding: 14px 0; border-top: 1px solid var(--line); } .arow:first-child { border-top: 0; }
.arow-main { display: flex; flex-direction: column; gap: 4px; } .arow.is-redo { background: linear-gradient(90deg, var(--warn-soft), transparent 40%); margin: 0 -12px; padding: 14px 12px; border-radius: 12px; }
.thread { display: flex; flex-direction: column; gap: 6px; } .redo-form { width: 100%; } .redo-form input { flex: 1; }
.small-kpis { grid-template-columns: repeat(auto-fit, minmax(200px, 260px)); } .mb { margin-bottom: 10px; }
.switch-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 10px 0; border-top: 1px solid var(--line); cursor: pointer; } .switch-row input { width: 22px; height: 22px; min-height: 0; accent-color: var(--brand); }
.hidden-box { display: none; } .pill.chk { display: inline-flex; gap: 6px; align-items: center; cursor: pointer; } .pill.chk input { width: 16px; height: 16px; min-height: 0; accent-color: var(--brand); } .field-l { display: block; font-size: .82rem; font-weight: 650; margin: 8px 0 6px; }
@media (max-width: 560px) { .ck2 { gap: 6px 12px; } .ck-btn { width: 50px; height: 50px; } }

@media (max-width: 960px) { .hero-help { display: none; } }
@media (max-width: 560px) {
  .hero { flex-wrap: nowrap; align-items: flex-start; padding: 16px; gap: 10px; } .hero-t { flex: 1; min-width: 0; gap: 4px; } .hero-t h1 { font-size: 1.3rem; }
  .hero-r { order: 2; } .hero-r .ring svg { width: 68px; height: 68px; } .ring-n { font-size: .85rem; } .hero-r small { display: none; }
  .howto { padding: 14px 16px; } .page { gap: 14px; } .card { padding: 16px; }
}
.ck2-x .btn.sm { padding: 4px 12px; min-height: 30px; font-size: .8rem; font-weight: 600; } .ck2-x { margin-top: -2px; }

/* ---------- avisos, escopo, anexos, clima ---------- */
.notice.is-unread { border-color: var(--ochre); box-shadow: 0 0 0 3px var(--gold-soft), var(--shadow); } .notice-t { font-size: 1.15rem; margin: 8px 0 4px; } .notice-b { white-space: pre-wrap; margin-bottom: 10px; }
.linkish2 { border: 0; background: none; color: var(--brand-strong); cursor: pointer; display: inline-flex; gap: 6px; align-items: center; font-weight: 600; padding: 6px 0; }
.files { list-style: none; margin: 8px 0; padding: 0; display: flex; flex-direction: column; } .files li { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-top: 1px solid var(--line); } .files li:first-child { border-top: 0; } .files-m { flex: 1; min-width: 0; } .files a { font-weight: 650; color: var(--brand-strong); word-break: break-word; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.sc-sec { margin-top: 12px; } .sc-sec h3 { margin: 0 0 4px; font-size: .8rem; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); }
.hist { border-top: 1px solid var(--line); padding: 8px 0; } .hist summary { cursor: pointer; font-weight: 600; }
.scale { display: flex; gap: 8px; margin: 8px 0 14px; } .scale-b { flex: 1; min-height: 46px; border-radius: 12px; border: 1.5px solid var(--line); background: var(--surface); font-weight: 800; font-size: 1.05rem; cursor: pointer; }
.scale-b:hover { border-color: var(--ochre); } .scale-b[aria-checked="true"] { background: var(--brand); color: var(--on-brand); border-color: var(--brand); }
.qres { margin: 12px 0; } dialog.modal.wide { width: min(560px, calc(100vw - 24px)); }
input[type="checkbox"], input[type="radio"] { width: 20px; height: 20px; min-height: 0; padding: 0; accent-color: var(--brand); flex: none; }
.readers-btn { display: inline-flex; align-items: center; gap: 8px; flex-wrap: wrap; border: 1.5px solid var(--line); background: var(--surface-2); border-radius: 999px; padding: 6px 14px; font-weight: 650; cursor: pointer; }
.readers-btn:hover { border-color: var(--ochre); }
.readers { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; margin-top: 12px; background: var(--surface-2); border-radius: 14px; padding: 14px 16px; }
.readers h3 { margin: 0 0 6px; font-size: .85rem; } .readers ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; } .readers li { display: flex; align-items: center; gap: 8px; } .readers li span { flex: 1; } .readers li .ico { color: var(--ok); } .readers div:last-child li .ico { color: var(--muted); }
.readers.hidden-box { display: none; } .readers-btn .chev { transition: transform .15s; } .readers-btn[aria-expanded="true"] .chev { transform: rotate(90deg); }
.qedit { display: flex; flex-direction: column; gap: 8px; margin-bottom: 10px; } .qrow { display: grid; grid-template-columns: 22px 1fr 120px auto auto; gap: 6px; align-items: center; } .qn { font-weight: 800; color: var(--muted); }
.qrow .btn.icon { width: 34px; min-height: 34px; padding: 0; } .qrow select { min-height: 38px; }
@media (max-width: 560px) { .qrow { grid-template-columns: 22px 1fr auto auto; } .qrow select { grid-column: 2 / -1; } }
.dist { display: flex; flex-direction: column; gap: 4px; margin-top: 10px; } .dist-r { display: grid; grid-template-columns: 18px 1fr 30px; gap: 10px; align-items: center; } .dist-r .bar { margin: 0; }

/* ---------- documentos ---------- */
.kpi-b { text-align: left; cursor: pointer; font: inherit; } .kpi-b[aria-pressed="true"] { border-color: var(--ochre); box-shadow: 0 0 0 3px var(--gold-soft), var(--shadow); } .kpi-b.warn .kpi-v { color: var(--warn); }
.docbar { display: flex; flex-direction: column; gap: 10px; } .gpills { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 4px; } .gpills .pill { white-space: nowrap; display: inline-flex; gap: 6px; align-items: center; }
.gdot { width: 10px; height: 10px; border-radius: 50%; background: var(--gc, var(--muted)); display: inline-block; flex: none; }
.pill[aria-pressed="true"] .gdot { box-shadow: 0 0 0 2px var(--on-brand); } .grow { flex: 1; min-width: 200px; }
.gchip { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 999px; font-size: .76rem; font-weight: 700; background: color-mix(in srgb, var(--gc) 14%, var(--surface)); color: color-mix(in srgb, var(--gc) 75%, var(--ink)); }
.doclist { display: flex; flex-direction: column; gap: 10px; }
.docrow { display: grid; grid-template-columns: auto auto 1fr auto; gap: 12px; align-items: center; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; box-shadow: var(--shadow); }
.docrow.is-exp { border-color: var(--warn); } .docic { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: color-mix(in srgb, var(--gc) 16%, var(--surface)); color: var(--gc); }
.docmain { min-width: 0; display: flex; flex-direction: column; gap: 4px; } .doctitle { border: 0; background: none; padding: 0; font: inherit; font-weight: 750; font-size: 1.02rem; text-align: left; cursor: pointer; color: var(--ink); } .doctitle:hover { color: var(--brand-strong); text-decoration: underline; }
.docact { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; } .gsel { border-color: var(--gc); max-width: 230px; }
.bulkbar { position: sticky; top: 8px; z-index: 6; display: flex; gap: 10px; align-items: center; flex-wrap: wrap; background: var(--brand); color: var(--on-brand); border-radius: 14px; padding: 10px 14px; box-shadow: var(--shadow); } .bulkbar select { width: auto; color: var(--ink); }
.bulkbar .btn.ghost { color: var(--on-brand); border-color: rgba(255,255,255,.35); } .bulkbar .btn { background: var(--surface); color: var(--ink); } .bulkbar .btn.ghost { background: transparent; color: var(--on-brand); }
.drop { display: flex; flex-direction: column; align-items: center; gap: 6px; border: 2px dashed var(--line); border-radius: 16px; padding: 22px 12px; text-align: center; cursor: pointer; background: var(--surface-2); } .drop:hover, .drop.over, .drop:focus-visible { border-color: var(--ochre); background: var(--gold-soft); }
.upl { display: flex; flex-direction: column; gap: 8px; margin-top: 12px; } .uprow { display: grid; grid-template-columns: minmax(120px, 1fr) minmax(140px, 1.2fr) minmax(120px, 1fr) minmax(110px, .9fr) 130px auto; gap: 8px; align-items: center; padding: 10px; border: 1px solid var(--line); border-radius: 12px; } .uprow.done { opacity: .55; } .small.err { color: var(--warn); }
.grow-row { display: grid; grid-template-columns: auto 1fr minmax(150px, 1fr) auto auto auto auto; gap: 8px; align-items: center; } .colorin { width: 42px; padding: 2px; min-height: 38px; }
@media (max-width: 900px) { .docrow { grid-template-columns: auto 1fr; } .docic { display: none; } .docact { grid-column: 1 / -1; justify-content: flex-start; } .uprow { grid-template-columns: 1fr; } .grow-row { grid-template-columns: 1fr 1fr; } }
.docbar select { width: auto; min-width: 160px; } .small-kpis .kpi-b { min-width: 0; }
@media (min-width: 900px) { .small-kpis { grid-template-columns: repeat(5, 1fr); } }
.hidden-box { display: none !important; }
.docrow select.gsel { max-width: 280px; min-width: 210px; }

.uprow { grid-template-columns: 1fr 1fr 150px; } .uprow .files-m { grid-column: 1 / 3; } .uprow > .btn { justify-self: end; } .uprow > input[aria-label="Título"] { grid-column: 1 / -1; }
dialog.modal.wide { width: min(720px, calc(100vw - 24px)); }
@media (max-width: 900px) { .uprow { grid-template-columns: 1fr; } .uprow .files-m { grid-column: 1; } .uprow > .btn { justify-self: start; } }

.ackrow { grid-column: 1 / -1; } .ackbox { margin: 14px 0; padding: 14px 16px; border-radius: 14px; background: var(--gold-soft); } .ackbox h3 { margin: 0 0 6px; }
.bset { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; } .bset select { width: auto; min-height: 36px; } .small-list { max-height: 180px; border: 1.5px solid var(--line); border-radius: 12px; padding: 8px 12px; }
/* pop-up de entrada */
dialog.popup { border: 0; border-radius: 24px; padding: 34px 30px 26px; width: min(480px, calc(100vw - 24px)); background: var(--surface); color: var(--ink); text-align: center; box-shadow: 0 30px 80px rgba(0,0,0,.45); animation: popin .22s ease-out; }
dialog.popup::backdrop { background: rgba(20, 12, 4, .65); backdrop-filter: blur(3px); } .popup-ic { width: 68px; height: 68px; border-radius: 50%; display: grid; place-items: center; margin: 0 auto 14px; background: var(--gold); color: #4a2a0c; }
dialog.popup h2 { font-size: 1.35rem; margin-bottom: 8px; } .popup-b { white-space: pre-wrap; color: var(--muted); margin-bottom: 18px; } .popup-act { display: flex; flex-direction: column; gap: 8px; } .popup-act .btn { width: 100%; min-height: 48px; }
@keyframes popin { from { opacity: 0; transform: translateY(14px) scale(.97); } to { opacity: 1; transform: none; } }

/* ---------- Hoje: hierarquia clara (tarefas no centro, resto compacto) ---------- */
.hero.compact { padding: 18px 22px; align-items: center; flex-wrap: nowrap; gap: 16px; } .hero.compact h1 { font-size: 1.5rem; } .hero-side { display: flex; align-items: center; gap: 18px; flex: none; } .hero.compact .hero-r small { font-size: .72rem; }
.tasks { padding: 0; overflow: hidden; } .tasks-h { display: flex; justify-content: space-between; align-items: flex-end; gap: 12px; padding: 18px 20px 10px; } .tasks-h h2 { font-size: 1.25rem; } .tasks-n { font-size: 1.05rem; color: var(--muted); } .tasks-n b { font-size: 1.5rem; color: var(--ink); }
.tasks > .bar { margin: 0 20px 6px; } .tasks .checklist { padding: 0 8px; } .tasks .ck2 { padding: 14px 12px; border-radius: 14px; border-top: 0; position: relative; } .tasks .ck2 + .ck2 { border-top: 1px solid var(--line); border-radius: 0; }
.ck2 { grid-template-columns: auto 1fr auto; align-items: center; } .ck2-x { grid-column: 2 / -1; } .ck2 .ck-t { font-size: 1.05rem; line-height: 1.3; }
.ck-more { width: 40px; height: 40px; border-radius: 50%; border: 0; background: transparent; font-size: 1.5rem; line-height: 1; color: var(--muted); cursor: pointer; } .ck-more:hover, .ck-more[aria-expanded="true"] { background: var(--surface-2); color: var(--ink); }
.menu-pop { position: absolute; right: 8px; top: 52px; z-index: 20; min-width: 200px; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 14px 40px rgba(0,0,0,.3); padding: 6px; display: flex; flex-direction: column; }
.menu-pop button { text-align: left; border: 0; background: none; padding: 11px 12px; border-radius: 10px; font-weight: 600; cursor: pointer; } .menu-pop button:hover, .menu-pop button:focus-visible { background: var(--gold-soft); }
.tasks .ck2.s-F { opacity: .85; } .tip { display: flex; gap: 10px; align-items: center; margin: 4px 20px 8px; padding: 10px 12px; background: var(--gold-soft); border-radius: 12px; font-size: .88rem; } .tip span { flex: 1; } .tip-x { border: 0; background: none; cursor: pointer; font-size: 1rem; color: var(--muted); }
.alldone { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 26px 12px; color: var(--ok); text-align: center; } .alldone b { color: var(--ink); font-size: 1.1rem; }
.doneBox { border-top: 1px solid var(--line); padding: 4px 8px 8px; } .doneBox summary { padding: 12px; cursor: pointer; font-weight: 700; color: var(--muted); list-style: none; } .doneBox summary::-webkit-details-marker { display: none; } .doneBox summary::before { content: '▸ '; } .doneBox[open] summary::before { content: '▾ '; }
.card-redo .ck2 { padding-left: 0; }
/* painel "Para você" */
.attn { padding: 16px 16px 8px; border-color: var(--ochre); } .attn-list { display: flex; flex-direction: column; } .attn-row { display: flex; align-items: center; gap: 12px; width: 100%; padding: 11px 6px; border: 0; border-top: 1px solid var(--line); background: none; text-align: left; cursor: pointer; text-decoration: none; color: inherit; border-radius: 0; font: inherit; }
.attn-row:first-child { border-top: 0; } .attn-row:hover { background: var(--surface-2); } .attn-ic { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: var(--gold-soft); color: var(--gold-ink); flex: none; } .attn-row.warn .attn-ic { background: var(--warn-soft); color: var(--warn); }
.attn-t { flex: 1; min-width: 0; display: flex; flex-direction: column; } .attn-t b { font-size: .92rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .attn-t small { color: var(--muted); } .attn-go { display: inline-flex; align-items: center; gap: 2px; font-weight: 700; font-size: .82rem; color: var(--brand-strong); flex: none; }
.attn-pill { display: none; align-items: center; gap: 8px; align-self: flex-start; border: 0; padding: 8px 14px; border-radius: 999px; background: var(--gold-soft); color: var(--gold-ink); font-weight: 700; cursor: pointer; }
@media (max-width: 900px) { .attn-pill { display: inline-flex; } .hero.compact { flex-wrap: wrap; } .hero-side { width: 100%; justify-content: space-between; } }
@media (max-width: 560px) { .hero.compact { padding: 14px 16px; } .hero.compact h1 { font-size: 1.25rem; } .hero-side .hero-r small { display: none; } .tasks-h { padding: 14px 14px 8px; } .tasks > .bar { margin: 0 14px 6px; } .tip { margin: 4px 14px 8px; } .menu-pop { right: 4px; } }

.hoje .cols { grid-template-columns: minmax(0, 1.5fr) minmax(320px, 1fr); } @media (max-width: 900px) { .hoje .cols { grid-template-columns: 1fr; } }
.attn-t b { white-space: normal; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; line-height: 1.25; } .attn-t small { line-height: 1.25; }
@media (max-width: 900px) { .hero.compact { flex-wrap: nowrap; } .hero-side { width: auto; } .hero-side .hero-r { align-items: center; } }

/* ---------- desempenho ---------- */
.perf-kpis { grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); } .perf-kpis .kpi.warn .kpi-v { color: var(--warn); }
.dchart { display: flex; gap: 6px; align-items: flex-end; overflow-x: auto; padding: 8px 2px 4px; min-height: 230px; margin-top: 8px; }
.dcol { flex: 1 0 26px; max-width: 64px; display: flex; flex-direction: column; align-items: center; gap: 4px; border: 0; background: none; padding: 0; cursor: pointer; font: inherit; color: var(--ink); } .dcol:disabled { cursor: default; opacity: .5; }
.dcol:hover:not(:disabled) .dbar { box-shadow: 0 0 0 2px var(--ochre); } .dbar { width: 100%; height: 150px; display: flex; flex-direction: column-reverse; background: var(--surface-2); border-radius: 8px; overflow: hidden; }
.dcol.off .dbar { background: repeating-linear-gradient(45deg, transparent 0 6px, var(--line) 6px 7px); } .dcol.today .dbar { outline: 2px dashed var(--ochre); outline-offset: 1px; }
.dpct { font-size: .7rem; font-weight: 700; height: 14px; color: var(--muted); } .dlbl { font-weight: 800; font-size: .85rem; } .dwd { font-size: .65rem; color: var(--muted); margin-top: -4px; }
.sg { display: block; } .sg-done { background: var(--ok); } .sg-na { background: var(--muted); opacity: .6; } .sg-notdone { background: var(--gold); } .sg-redo { background: var(--accent); } .sg-norecord { background: var(--warn); }
.sg-open { background: repeating-linear-gradient(45deg, var(--line) 0 4px, transparent 4px 8px); }
.legend { margin-top: 10px; } .lg { display: inline-flex; align-items: center; gap: 6px; font-size: .78rem; } .lg .sg { width: 12px; height: 12px; border-radius: 3px; display: inline-block; }
.ptable { min-width: 760px; } .ptable td { vertical-align: middle; } .clickrow { cursor: pointer; } .clickrow:hover { background: var(--surface-2); } .neg { color: var(--warn); font-weight: 700; } .pos { color: var(--ok); font-weight: 700; }
.gcell { display: flex; flex-direction: column; gap: 3px; min-width: 110px; } .gbar { position: relative; height: 8px; background: var(--line); border-radius: 99px; } .gbar > i { display: block; height: 100%; border-radius: 99px; } .g-ok { background: var(--ok); } .g-atencao { background: var(--gold); } .g-abaixo { background: var(--warn); } .g-none { background: var(--muted); }
.gtick { position: absolute; top: -3px; width: 2px; height: 14px; background: var(--ink); border-radius: 2px; }
.goals { display: flex; flex-direction: column; margin-top: 8px; } .grow-g { display: grid; grid-template-columns: 1.4fr auto .8fr; gap: 12px; align-items: center; padding: 10px 0; border-top: 1px solid var(--line); } .grow-g input { width: 90px; }
.card.is-mine { border-color: var(--ochre); box-shadow: 0 0 0 3px var(--gold-soft), var(--shadow); } .daylist { list-style: none; margin: 6px 0 10px; padding: 0 0 0 4px; } .daylist li { display: flex; justify-content: space-between; gap: 10px; padding: 6px 0; border-top: 1px solid var(--line); }
@media (max-width: 700px) { .grow-g { grid-template-columns: 1fr; } .dchart { min-height: 200px; } .dbar { height: 120px; } }
.docbar input[type="date"] { width: auto; min-width: 150px; }

/* ---------- resultados e revisões ---------- */
.monthbar { padding: 4px 0; } .mlabel { font-size: 1.3rem; margin: 0 8px; } .rgroup h2 { margin: 6px 0 10px; } .rgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 14px; }
.rcard { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; box-shadow: var(--shadow); display: flex; flex-direction: column; gap: 8px; }
.rval { display: flex; align-items: baseline; gap: 4px; flex-wrap: wrap; } .rv { font-size: 1.7rem; font-weight: 800; letter-spacing: -.02em; } .rt { color: var(--muted); font-weight: 600; }
.bar.rel { position: relative; overflow: visible; } .ptick { position: absolute; top: -3px; width: 2px; height: 14px; background: var(--ink); border-radius: 2px; } .bar.warn i { background: var(--warn); }
.how summary { cursor: pointer; font-weight: 650; color: var(--brand-strong); font-size: .85rem; } .how p { margin: 6px 0 0; }
.hv.ok { color: var(--ok); font-weight: 700; } .hv.atencao { color: var(--gold-ink); font-weight: 700; } .hv.abaixo { color: var(--warn); font-weight: 700; }
.arow3 { display: grid; grid-template-columns: 1.6fr 1fr 140px auto; gap: 8px; align-items: center; } @media (max-width: 700px) { .arow3 { grid-template-columns: 1fr; } }

/* ---------- página de apoio (dev) ---------- */
.devpage { padding: 28px 16px 48px; max-width: 920px; } .devlist { display: flex; flex-direction: column; gap: 10px; }
.devrow { display: grid; grid-template-columns: minmax(170px, 1fr) minmax(0, 2.2fr) auto; gap: 14px; align-items: center; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 12px 16px; box-shadow: var(--shadow); }
.devwho { display: flex; flex-direction: column; } .devcred { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; min-width: 0; } .devcred code, .pw { background: var(--surface-2); padding: 4px 8px; border-radius: 8px; font-size: .85rem; word-break: break-all; }
.lbl { font-size: .72rem; font-weight: 700; text-transform: uppercase; color: var(--muted); width: 48px; } .btn.copied { background: var(--ok); color: #fff; border-color: var(--ok); } .devact { display: flex; flex-direction: column; gap: 4px; align-items: flex-end; }
@media (max-width: 800px) { .devrow { grid-template-columns: 1fr; } .devact { align-items: flex-start; } }
.devcreds { display: flex; flex-direction: column; gap: 8px; min-width: 0; } .devcred { flex-wrap: nowrap; } .devcred .btn { flex: none; }
@media (max-width: 800px) { .devrow { grid-template-columns: 1fr; } .devcred { flex-wrap: wrap; } }

/* ---------- botões: tons e estados ---------- */
.btn.danger { background: var(--warn); color: #fff; } .btn.danger:hover { background: var(--warn); filter: brightness(.9); }
.btn.ghost.danger { background: transparent; color: var(--warn); border-color: color-mix(in srgb, var(--warn) 45%, transparent); } .btn.ghost.danger:hover { background: var(--warn-soft); filter: none; }
.btn.busy { position: relative; color: transparent !important; pointer-events: none; }
.btn.busy::after { content: ""; position: absolute; width: 16px; height: 16px; border-radius: 50%; border: 2.5px solid rgba(255,255,255,.45); border-top-color: #fff; animation: spin .7s linear infinite; }
.btn.ghost.busy::after, .btn.light.busy::after { border-color: color-mix(in srgb, var(--ink) 25%, transparent); border-top-color: var(--ink); } @keyframes spin { to { transform: rotate(360deg); } }
/* confirmação */
dialog.confirm { border: 0; border-radius: 22px; padding: 28px 26px 22px; width: min(420px, calc(100vw - 24px)); background: var(--surface); color: var(--ink); text-align: center; box-shadow: 0 30px 80px rgba(0,0,0,.45); animation: popin .18s ease-out; }
dialog.confirm::backdrop { background: rgba(20, 12, 4, .6); backdrop-filter: blur(2px); } dialog.confirm h2 { font-size: 1.2rem; margin: 6px 0 6px; } dialog.confirm p { margin: 0 0 4px; }
.cf-ic { width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; margin: 0 auto 8px; background: var(--gold); color: #4a2a0c; } .cf-ic.danger { background: var(--warn-soft); color: var(--warn); }
.cf-act { display: flex; gap: 10px; margin-top: 18px; } .cf-act .btn { flex: 1; min-height: 46px; }
@media (max-width: 420px) { .cf-act { flex-direction: column-reverse; } }

/* ---------- lista suspensa e calendário próprios ---------- */
.csel-native { position: absolute !important; opacity: 0 !important; pointer-events: none !important; width: 1px !important; height: 1px !important; min-height: 0 !important; padding: 0 !important; border: 0 !important; margin: 0 !important; overflow: hidden !important; }
.csel { position: relative; display: block; width: 100%; } .csel-btn { display: flex; align-items: center; justify-content: space-between; gap: 8px; width: 100%; min-height: 42px; padding: 10px 12px; border: 1.5px solid var(--line); border-radius: 12px; background: var(--surface); color: var(--ink); font: inherit; text-align: left; cursor: pointer; transition: border-color .12s, box-shadow .12s; }
.csel-btn:hover:not(:disabled) { border-color: var(--ochre); } .csel-btn[aria-expanded="true"] { border-color: var(--brand); box-shadow: 0 0 0 3px var(--gold-soft); } .csel-btn:disabled { opacity: .5; cursor: not-allowed; }
.csel-v { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .csel-v.ph { color: var(--muted); } .csel-btn .ico { transform: rotate(90deg); color: var(--muted); flex: none; transition: transform .15s; } .csel-btn[aria-expanded="true"] .ico { transform: rotate(-90deg); }
.csel.compact { width: auto; max-width: 150px; } .csel.compact .csel-btn { min-height: 34px; padding: 4px 10px; font-size: .86rem; }
.docbar .csel, .bulkbar .csel, .bset .csel { width: auto; min-width: 160px; } .docrow .csel.gsel { width: auto; min-width: 210px; max-width: 280px; } .csel.gsel .csel-btn { border-color: var(--gc, var(--line)); }
.side .csel .csel-btn { background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.14); color: #fff; } .side .csel .csel-btn .ico { color: var(--side-muted); }
.mtop .csel { flex: 1; } .mtop .csel .csel-btn { min-height: 36px; padding: 4px 10px; background: rgba(255,255,255,.1); border-color: rgba(255,255,255,.2); color: #fff; } .mtop .csel .csel-btn .ico { color: #d9c4a3; }
.bulkbar .csel .csel-btn { color: var(--ink); } .qrow .csel { min-width: 120px; }
[popover].csel-pop, .csel-pop.csel-fallback { position: fixed; inset: auto; margin: 0; padding: 6px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); color: var(--ink); box-shadow: 0 18px 50px rgba(0,0,0,.35); z-index: 1000; max-width: calc(100vw - 16px); overflow: visible; }
.csel-list { max-height: 280px; overflow-y: auto; display: flex; flex-direction: column; gap: 2px; } .csel-q { margin: 2px 2px 6px; width: calc(100% - 4px); min-height: 38px; }
.csel-opt { display: flex; align-items: center; justify-content: space-between; gap: 10px; width: 100%; padding: 10px 12px; border: 0; border-radius: 10px; background: none; color: inherit; font: inherit; text-align: left; cursor: pointer; }
.csel-opt.act, .csel-opt:hover:not(:disabled) { background: var(--gold-soft); } .csel-opt[aria-selected="true"] { font-weight: 700; } .csel-opt[aria-selected="true"] .ico { color: var(--brand); } .csel-opt:disabled { opacity: .45; cursor: not-allowed; }
.cdate { position: relative; display: block; width: 100%; } .cdate-in { padding-right: 46px; } .cdate-btn { position: absolute; right: 5px; top: 50%; transform: translateY(-50%); width: 34px; height: 34px; border: 0; border-radius: 9px; background: none; color: var(--muted); cursor: pointer; display: grid; place-items: center; }
.cdate-btn:hover:not(:disabled) { background: var(--gold-soft); color: var(--ink); } .cdate-btn:disabled { opacity: .5; cursor: not-allowed; }
.docbar .cdate { width: auto; min-width: 160px; } .docbar .cdate-in { width: 100%; }
.cal { width: 298px; padding: 8px; } .cal-h { display: flex; align-items: center; justify-content: space-between; gap: 2px; margin-bottom: 8px; } .cal-t { flex: 1; text-align: center; font-size: .95rem; }
.cal-nav { width: 32px; height: 32px; border: 0; border-radius: 9px; background: none; color: var(--ink); font-size: 1.1rem; cursor: pointer; } .cal-nav:hover { background: var(--gold-soft); }
.cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 2px; justify-items: center; } .cal-w { font-size: .72rem; font-weight: 800; color: var(--muted); padding: 4px 0; }
.cal-d { width: 36px; height: 36px; border: 0; border-radius: 50%; background: none; color: inherit; font: inherit; cursor: pointer; } .cal-d:hover:not(:disabled) { background: var(--gold-soft); } .cal-d.today { box-shadow: inset 0 0 0 2px var(--ochre); }
.cal-d.sel { background: var(--brand); color: var(--on-brand); font-weight: 800; } .cal-d:disabled { opacity: .3; cursor: not-allowed; } .cal-foot { display: flex; justify-content: space-between; margin-top: 8px; padding-top: 8px; border-top: 1px solid var(--line); }
@media (max-width: 420px) { .cal { width: min(298px, calc(100vw - 32px)); } }

/* ---------- central de checklists (busca + edição) ---------- */
.hub { display: grid; grid-template-columns: minmax(280px, 360px) minmax(0, 1fr); gap: 18px; align-items: start; } .hub-left { position: sticky; top: 16px; display: flex; flex-direction: column; gap: 10px; max-height: calc(100vh - 32px); }
.hub-list { display: flex; flex-direction: column; gap: 4px; overflow-y: auto; margin: 0 -6px; padding: 0 6px; } .hub-right { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.hub-row { display: flex; align-items: center; gap: 10px; padding: 10px; border-radius: 12px; text-decoration: none; color: inherit; border: 1.5px solid transparent; } .hub-row:hover { background: var(--surface-2); } .hub-row.on { background: var(--gold-soft); border-color: var(--ochre); }
.hub-m { flex: 1; min-width: 0; display: flex; flex-direction: column; } .hub-m b, .hub-m small { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .hub-ic { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: var(--brand-soft); color: var(--brand-strong); flex: none; }
.hub-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; } .fnlist { display: flex; flex-direction: column; gap: 6px; margin: 10px 0; } .fnrow { display: grid; grid-template-columns: 22px minmax(0, 1fr) auto; gap: 8px; align-items: center; }
@media (max-width: 1150px) { .hub { grid-template-columns: 1fr; } .hub-left { position: static; max-height: 340px; } .fnrow { grid-template-columns: 22px minmax(0, 1fr); } .fnrow .row { grid-column: 2; } }

/* =====================================================================
   Refinamento final: celular e tablet em primeiro lugar
   ===================================================================== */
/* campos com 16px: o iPhone não dá zoom ao tocar */
input, select, textarea, .csel-btn, .cdate-in { font-size: 16px; }
.side-g { margin: 14px 0 4px 14px; font-size: .68rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--side-muted); opacity: .75; }
.side-nav .nav-i { padding: 10px 14px; }
button.bnav-i { background: none; border: 0; font: inherit; cursor: pointer; }
.bnav-i.cur-more { color: var(--brand-strong); background: var(--brand-soft); }
.mtop-help { display: inline-flex; align-items: center; gap: 6px; flex: none; border: 0; border-radius: 999px; padding: 0 14px; min-height: 40px; background: var(--accent); color: #fff; font-weight: 800; cursor: pointer; }
.mtop .brand span, .mtop .brand { flex: none; }
/* menu "Mais" */
dialog.sheet { width: min(520px, 100vw); } .sheet-body { padding: 0 8px 12px !important; display: flex; flex-direction: column; }
.sheet-g { margin: 14px 12px 4px; font-size: .72rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.sheet-row { display: flex; align-items: center; gap: 14px; width: 100%; min-height: 58px; padding: 8px 12px; border: 0; border-radius: 14px; background: none; color: inherit; text-decoration: none; text-align: left; font: inherit; cursor: pointer; }
.sheet-row:hover, .sheet-row.on { background: var(--gold-soft); } .sheet-ic { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: var(--brand-soft); color: var(--brand-strong); flex: none; }
.sheet-t { flex: 1; min-width: 0; display: flex; flex-direction: column; } .sheet-t small { color: var(--muted); } .sheet-row > .ico:last-child { color: var(--muted); }

/* telas de toque: alvos de 44px */
@media (pointer: coarse) {
  .btn.sm { min-height: 44px; padding: 8px 18px; } .btn { min-height: 46px; } .pill { min-height: 44px; padding: 8px 16px; } .seg-b { min-height: 44px; }
  .ck-more { width: 46px; height: 46px; } .cal-d { width: 42px; height: 42px; } .cal-nav { width: 40px; height: 40px; } .csel-opt { min-height: 48px; }
  .menu-pop button { min-height: 48px; } .cdate-btn { width: 40px; height: 40px; } .attn-row { min-height: 56px; } .tab { min-height: 46px; }
  input[type="checkbox"], input[type="radio"] { width: 24px; height: 24px; }
}
/* janelas viram "folhas" que sobem de baixo, com rolagem própria */
@media (max-width: 640px) {
  dialog.modal { width: 100vw; max-width: 100vw; margin: auto 0 0; border-radius: 22px 22px 0 0; max-height: 92vh; overflow-y: auto; }
  dialog.modal.wide { width: 100vw; } .modal-h { position: sticky; top: 0; background: var(--surface); z-index: 2; }
  dialog.popup, dialog.confirm { width: calc(100vw - 20px); }
}
/* nunca estourar a largura da tela */
@media (max-width: 960px) { #main { overflow-x: clip; } .page > .card, .page > section { max-width: 100%; } }
@media (max-width: 560px) { .small-kpis { grid-template-columns: 1fr 1fr; } .small-kpis .kpi { padding: 12px; } .kpi-v { font-size: 1.5rem; } .page-h h1 { font-size: 1.4rem; } .page-h > div:first-child { min-width: 0; } }
/* tabelas viram cartões no celular */
@media (max-width: 900px) {
  .ptable { min-width: 0; } .ptable thead { display: none; } .ptable, .ptable tbody, .ptable tr, .ptable td { display: block; width: 100%; }
  .ptable tr { border: 1px solid var(--line); border-radius: 14px; padding: 12px; margin-bottom: 10px; background: var(--surface); } .ptable td { border: 0; padding: 6px 0; }
  .ptable td[data-label]::before { content: attr(data-label); display: block; font-size: .72rem; font-weight: 800; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); margin-bottom: 2px; }
  .gcell { min-width: 0; }
}
.selfsum { display: flex; gap: 16px; align-items: center; border-left: 6px solid var(--ok); } .selfsum.atencao { border-left-color: var(--gold); } .selfsum.abaixo { border-left-color: var(--warn); }
.selfsum-v { font-size: 2.2rem; font-weight: 800; letter-spacing: -.03em; flex: none; } .selfsum p { margin: 4px 0 8px; } .rsum { margin: -4px 0 4px; }
@media (max-width: 560px) { .selfsum { flex-direction: column; align-items: flex-start; gap: 6px; } }
/* equipe e organograma (lista) */
.grp { display: flex; flex-direction: column; gap: 10px; } .grp-t { font-size: .8rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin: 10px 0 0; }
.orgl { display: flex; flex-direction: column; gap: 8px; } .orgl h2 { font-size: .8rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin: 12px 0 2px; }
.orgl-row { display: flex; align-items: center; gap: 12px; width: 100%; padding: 12px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); color: inherit; font: inherit; text-align: left; cursor: pointer; min-height: 64px; }
.orgl-t { flex: 1; min-width: 0; display: flex; flex-direction: column; } .orgl-t small { line-height: 1.3; } .orgl-row > .ico { color: var(--muted); }
/* barra de cima do celular: cabe em telas de 360px */
@media (max-width: 560px) {
  .mtop { gap: 8px; padding: 8px 10px; } .mtop .brand { font-size: 0; gap: 0; } .mtop .brand img { width: 30px; height: 30px; }
  .mtop .csel { min-width: 0; } .mtop-help { padding: 0 12px; min-height: 40px; font-size: .88rem; } .mtop .btn.icon { width: 40px; min-height: 40px; flex: none; }
}
button.bnav-i { font-size: .68rem; font-weight: 650; line-height: 1.2; }
.cb-ph { width: 0; } .docrow:has(.cb-ph) { grid-template-columns: auto 1fr auto; } @media (max-width: 900px) { .docrow:has(.cb-ph) { grid-template-columns: 1fr; } }
.rv.na { font-size: 1.05rem; color: var(--muted); font-weight: 650; letter-spacing: 0; }

/* acessos e senha */
.login-side.solo { grid-column: 1 / -1; } .linklike { background: none; border: 0; padding: 0; color: inherit; text-decoration: underline; cursor: pointer; font: inherit; }
.btn.danger-text { color: var(--danger, #b3261e); } .row.wrap { flex-wrap: wrap; } .devcred .lbl { min-width: 110px; font-size: .8rem; color: var(--muted); }
.legal { max-width: 720px; margin: 0 auto; padding: 24px 16px 60px; line-height: 1.6; } .legal h2 { margin-top: 1.6em; font-size: 1.1rem; }
