/* NDB Intranet — tema visual (sobre Bootstrap 5.3). Mesmo sistema visual do
   NDB Finanças (web/static/css/app.css de lá), com a identidade da NDB Connect:
   navy "ink" #0A1626 como cor principal e dourado #C9A227 como acento, usado
   com precisão (ver ROADMAP.md › Identidade visual). */

:root,
[data-bs-theme="light"] {
  --brand: #13294b;         /* navy (botões, links, ativo) */
  --brand-strong: #0a1626;  /* ink da marca */
  --brand-soft: #e7ecf4;
  --brand-ink: #0a1626;
  --accent: #b38f1d;        /* dourado legível sobre claro */
  --gold: #c9a227;
  --gold-2: #e8c766;
  --gold-soft: #f8f0d6;

  --surface-0: #f4f4f1;     /* neutro com um toque quente (não o paper inteiro) */
  --surface-1: #ffffff;
  --surface-2: #f6f6f3;
  --line: #e4e3dd;
  --ink: #0a1626;
  --ink-2: #4d5466;
  --ink-3: #868b96;

  --ok: #047857;   --ok-soft: #dcfce7;
  --warn: #b45309; --warn-soft: #fef3c7;
  --bad: #c2410c;  --bad-soft: #ffedd5;
  --neg: #b91c1c;  --neg-soft: #fee2e2;

  --radius: 16px;
  --shadow: 0 1px 2px rgba(10, 22, 38, .04), 0 4px 16px rgba(10, 22, 38, .04);

  --bs-body-bg: var(--surface-0);
  --bs-body-color: var(--ink);
  --bs-secondary-color: var(--ink-2);
  --bs-border-color: var(--line);
  --bs-primary: var(--brand);
  --bs-primary-rgb: 19, 41, 75;
  --bs-link-color: var(--brand);
  --bs-link-color-rgb: 19, 41, 75;
  --bs-link-hover-color: var(--accent);
  --bs-body-font-family: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --bs-border-radius: 12px;
  --bs-border-radius-lg: 16px;
  --bs-tertiary-bg: var(--surface-2);
  color-scheme: light;
}

[data-bs-theme="dark"] {
  --brand: #e8c766;         /* no escuro o dourado assume o papel de cor ativa */
  --brand-strong: #f3dc94;
  --brand-soft: rgba(232, 199, 102, .13);
  --brand-ink: #f3dc94;
  --accent: #e8c766;
  --gold: #e8c766;
  --gold-2: #f3dc94;
  --gold-soft: rgba(232, 199, 102, .13);

  --surface-0: #070d17;
  --surface-1: #0d1625;
  --surface-2: #142035;
  --line: #22304a;
  --ink: #eef1f6;
  --ink-2: #a8b1c2;
  --ink-3: #75809a;

  --ok: #34d399;   --ok-soft: rgba(52, 211, 153, .14);
  --warn: #fbbf24; --warn-soft: rgba(251, 191, 36, .14);
  --bad: #fb923c;  --bad-soft: rgba(251, 146, 60, .15);
  --neg: #f87171;  --neg-soft: rgba(248, 113, 113, .14);

  --shadow: 0 1px 2px rgba(0, 0, 0, .3);

  --bs-body-bg: var(--surface-0);
  --bs-body-color: var(--ink);
  --bs-secondary-color: var(--ink-2);
  --bs-border-color: var(--line);
  --bs-primary-rgb: 232, 199, 102;
  --bs-link-color: var(--brand);
  --bs-link-color-rgb: 232, 199, 102;
  --bs-link-hover-color: var(--brand-strong);
  --bs-tertiary-bg: var(--surface-2);
  color-scheme: dark;
}

html, body { background: var(--surface-0); }
body {
  font-feature-settings: "tnum" 1, "cv11" 1;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
}
.min-w-0 { min-width: 0; }
.flex-none { flex: none; }
.num { font-variant-numeric: tabular-nums; }
a { text-decoration: none; }
[hidden] { display: none !important; }
::selection { background: color-mix(in srgb, var(--gold-2) 55%, transparent); }

/* ---------- botões ---------- */
.btn { font-weight: 600; border-radius: 12px; }
.btn-primary {
  --bs-btn-bg: var(--brand); --bs-btn-border-color: var(--brand);
  --bs-btn-hover-bg: var(--brand-strong); --bs-btn-hover-border-color: var(--brand-strong);
  --bs-btn-active-bg: var(--brand-strong); --bs-btn-active-border-color: var(--brand-strong);
  --bs-btn-disabled-bg: var(--brand); --bs-btn-disabled-border-color: var(--brand);
}
[data-bs-theme="dark"] .btn-primary { --bs-btn-color: #1a1404; --bs-btn-hover-color: #1a1404; --bs-btn-active-color: #1a1404; --bs-btn-disabled-color: #1a1404; }
.btn-light {
  --bs-btn-bg: var(--surface-2); --bs-btn-border-color: var(--line); --bs-btn-color: var(--ink);
  --bs-btn-hover-bg: var(--line); --bs-btn-hover-border-color: var(--line); --bs-btn-hover-color: var(--ink);
  --bs-btn-active-bg: var(--line); --bs-btn-active-color: var(--ink);
  --bs-btn-disabled-bg: var(--surface-2); --bs-btn-disabled-color: var(--ink-3); --bs-btn-disabled-border-color: var(--line);
}
.btn-soft { background: var(--brand-soft); color: var(--brand-ink); border: 1px solid transparent; }
.btn-soft:hover, .btn-soft:focus-visible { background: var(--brand); color: #fff; }
[data-bs-theme="dark"] .btn-soft:hover { color: #1a1404; }
.btn-ok { background: var(--ok-soft); color: var(--ok); border: 1px solid transparent; }
.btn-ok:hover { background: var(--ok); color: #fff; }
.btn-no { background: var(--neg-soft); color: var(--neg); border: 1px solid transparent; }
.btn-no:hover { background: var(--neg); color: #fff; }
.btn-icon {
  width: 38px; height: 38px; padding: 0; display: inline-grid; place-items: center;
  border-radius: 12px; color: var(--ink-2); background: transparent; border: 1px solid transparent;
}
.btn-icon:hover { background: var(--surface-2); color: var(--ink); border-color: var(--line); }
.btn-icon.btn-sm { width: 32px; height: 32px; }
.btn-icon.ok:hover { color: var(--ok); background: var(--ok-soft); border-color: transparent; }
.btn-icon.danger:hover { color: var(--neg); background: var(--neg-soft); border-color: transparent; }

/* ---------- formulário ---------- */
.form-control, .form-select {
  border-radius: 12px; border-color: var(--line); background-color: var(--surface-1);
}
.form-control:focus, .form-select:focus {
  border-color: var(--brand); box-shadow: 0 0 0 .2rem color-mix(in srgb, var(--brand) 18%, transparent);
}
.form-label { font-weight: 600; font-size: .85rem; color: var(--ink-2); margin-bottom: .3rem; }
.form-check-input:checked { background-color: var(--brand); border-color: var(--brand); }
.form-check-input:focus { box-shadow: 0 0 0 .2rem color-mix(in srgb, var(--brand) 18%, transparent); border-color: var(--brand); }
.form-hint { font-size: .78rem; color: var(--ink-3); margin-top: .3rem; }
.form-switch-x { display: flex; align-items: center; gap: .6rem; padding: .7rem .9rem; border: 1px solid var(--line); border-radius: 12px; background: var(--surface-2); cursor: pointer; margin: 0; }
.form-switch-x .form-check-input { margin: 0; width: 2.4em; height: 1.3em; flex: none; cursor: pointer; }
.form-switch-x span { font-weight: 600; font-size: .9rem; }
.form-switch-x small { display: block; font-weight: 500; color: var(--ink-3); font-size: .78rem; }
.input-group > .btn-light { border-color: var(--line); }

.chip-group { display: flex; flex-wrap: wrap; gap: .4rem; }
.chip {
  display: inline-flex; align-items: center; gap: .3rem; padding: .38rem .8rem; border-radius: 999px;
  border: 1px solid var(--line); background: var(--surface-1); color: var(--ink-2);
  font-weight: 600; font-size: .85rem; cursor: pointer; user-select: none; white-space: nowrap;
}
.chip:hover { border-color: var(--ink-3); color: var(--ink); }
.btn-check:checked + .chip, .chip.active { background: var(--brand); border-color: var(--brand); color: #fff; }
[data-bs-theme="dark"] .btn-check:checked + .chip, [data-bs-theme="dark"] .chip.active { color: #1a1404; }
.btn-check:focus-visible + .chip { outline: 2px solid var(--brand); outline-offset: 2px; }
.chip .count { background: rgba(0,0,0,.08); border-radius: 999px; padding: 0 .45rem; font-size: .75rem; }
.chip.active .count { background: rgba(255,255,255,.25); }

/* lista de escolha com caixas (participantes, permissões) */
.pick-list { border: 1px solid var(--line); border-radius: 12px; max-height: 260px; overflow-y: auto; background: var(--surface-1); }
.pick-list label { display: flex; align-items: center; gap: .65rem; padding: .5rem .8rem; border-top: 1px solid var(--line); cursor: pointer; margin: 0; font-weight: 500; }
.pick-list label:first-child { border-top: 0; }
.pick-list label:hover { background: var(--surface-2); }
.pick-list .form-check-input { margin: 0; flex: none; }
.pick-list .avatar { width: 28px; height: 28px; font-size: .68rem; }
.pick-head { display: flex; align-items: center; justify-content: space-between; gap: .5rem; margin-bottom: .4rem; }
.pick-head .form-label { margin: 0; }

/* ---------- estrutura ---------- */
.sidebar {
  --bs-offcanvas-width: 280px;
  background: var(--surface-1);
  border-right: 1px solid var(--line);
  display: flex; flex-direction: column;
}
@media (min-width: 992px) {
  .sidebar { position: fixed; inset: 0 auto 0 0; width: 264px; z-index: 1030; }
  .app-shell { margin-left: 264px; }
}
.sidebar-head { display: flex; align-items: center; justify-content: space-between; padding: 1.25rem 1.25rem 1rem; }
.brand { display: flex; align-items: center; gap: .7rem; color: var(--ink); }
.brand span { display: flex; flex-direction: column; line-height: 1.05; }
.brand strong { font-size: 1.05rem; font-weight: 800; letter-spacing: -.01em; }
.brand small { color: var(--accent); font-weight: 700; font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; }
.brand:hover { color: var(--ink); }
.brand-sm strong { font-size: 1rem; }
.brand-sm strong span { display: inline; color: var(--accent); }
.brand-mark { width: 36px; height: 36px; flex: none; filter: drop-shadow(0 2px 4px rgba(10, 22, 38, .25)); }
.brand-sm .brand-mark { width: 30px; height: 30px; }

.dropdown-menu { border-color: var(--line); border-radius: 14px; box-shadow: 0 12px 32px rgba(0,0,0,.12); padding: .35rem; background: var(--surface-1); }
.dropdown-item { border-radius: 9px; font-weight: 500; padding: .45rem .7rem; display: flex; align-items: center; gap: .55rem; }
.dropdown-item.active, .dropdown-item:active { background: var(--brand-soft); color: var(--brand-ink); }
.dropdown-item.text-danger:active { background: var(--neg-soft); }

.sidebar-nav { flex: 1; overflow-y: auto; padding: .25rem .75rem .75rem; display: flex; flex-direction: column; gap: 2px; }
.sidebar-nav a {
  position: relative; display: flex; align-items: center; gap: .75rem; padding: .55rem .8rem; border-radius: 12px;
  color: var(--ink-2); font-weight: 600; font-size: .92rem; transition: background-color .15s, color .15s;
}
.sidebar-nav a i { font-size: 1.1rem; width: 1.2rem; text-align: center; }
.sidebar-nav a:hover { background: var(--surface-2); color: var(--ink); }
.sidebar-nav a.active { background: var(--brand-soft); color: var(--brand-ink); }
.sidebar-nav a.active::before { content: ""; position: absolute; left: -.75rem; top: 22%; bottom: 22%; width: 3px; border-radius: 0 3px 3px 0; background: var(--gold); }
.sidebar-nav a .badge-x { margin-left: auto; }
.sidebar-label { font-size: .7rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); padding: .9rem .8rem .3rem; }
.sidebar-foot { border-top: 1px solid var(--line); padding: .9rem 1rem; display: flex; align-items: center; justify-content: space-between; gap: .5rem; }
.sidebar-foot .me { display: flex; align-items: center; gap: .6rem; min-width: 0; font-size: .88rem; }
.badge-x { display: inline-grid; place-items: center; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 999px; background: var(--gold); color: #1a1404; font-size: .7rem; font-weight: 800; }

.topbar {
  position: sticky; top: 0; z-index: 1020; display: flex; align-items: center; justify-content: space-between; gap: .5rem;
  padding: .6rem 1rem; background: color-mix(in srgb, var(--surface-0) 85%, transparent);
  backdrop-filter: blur(12px); border-bottom: 1px solid var(--line);
}
.app-main { padding: 1.5rem 1rem 6.5rem; max-width: 1320px; margin: 0 auto; }
@media (min-width: 768px) { .app-main { padding: 2rem 1.75rem 3rem; } }
@media (min-width: 992px) { .app-main { padding: 2rem 2.25rem 3rem; } }

.bottom-nav {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 1025; display: grid; grid-auto-columns: 1fr; grid-auto-flow: column;
  background: color-mix(in srgb, var(--surface-1) 92%, transparent); backdrop-filter: blur(14px);
  border-top: 1px solid var(--line); padding: .35rem .25rem calc(.35rem + env(safe-area-inset-bottom));
}
.bottom-nav a, .bottom-nav button {
  position: relative; display: flex; flex-direction: column; align-items: center; gap: 2px; padding: .35rem 0; border: 0; background: none;
  color: var(--ink-3); font-size: .7rem; font-weight: 600; border-radius: 12px;
}
.bottom-nav i { font-size: 1.25rem; }
.bottom-nav .active { color: var(--brand); }
.bottom-nav .badge-x { position: absolute; top: 0; left: calc(50% + 4px); min-width: 17px; height: 17px; font-size: .62rem; padding: 0 4px; }

/* ---------- cabeçalho de página ---------- */
.page-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 1rem; margin-bottom: 1.5rem; }
.page-head h1 { font-size: 1.6rem; font-weight: 800; letter-spacing: -.02em; margin: 0; }
.page-head p { margin: .25rem 0 0; color: var(--ink-2); }
.page-actions { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; }
@media (max-width: 575.98px) {
  .page-head h1 { font-size: 1.35rem; }
  .page-actions { width: 100%; }
  .page-actions > .btn { flex: 1; white-space: nowrap; }
}

.period-nav { display: inline-flex; align-items: center; gap: .15rem; background: var(--surface-1); border: 1px solid var(--line); border-radius: 14px; padding: 3px; }
.period-label { position: relative; min-width: 170px; text-align: center; font-weight: 700; cursor: pointer; padding: 0 .5rem; margin: 0; white-space: nowrap; }
.period-label input { position: absolute; inset: 0; opacity: 0; cursor: pointer; width: 100%; }

/* ---------- cards ---------- */
.card-x {
  background: var(--surface-1); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 1.25rem;
}
.card-title-x { display: flex; align-items: center; justify-content: space-between; gap: .5rem; margin-bottom: 1rem; }
.card-title-x h2, .card-title-x h3 { font-size: 1rem; font-weight: 700; margin: 0; display: flex; align-items: center; gap: .5rem; }
.card-title-x .link { font-size: .85rem; font-weight: 600; white-space: nowrap; }
.card-flush { padding: 0; overflow: hidden; }
.card-flush > .card-title-x { padding: 1.1rem 1.25rem 0; }
a.card-x { color: var(--ink); transition: border-color .15s, transform .15s; }
a.card-x:hover { border-color: var(--brand); }

.kpi-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .75rem; margin-bottom: 1.25rem; }
@media (min-width: 992px) { .kpi-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; } }
.kpi-grid.kpi-3 { grid-template-columns: repeat(1, minmax(0, 1fr)); }
@media (min-width: 576px) { .kpi-grid.kpi-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.kpi {
  display: flex; gap: .85rem; align-items: flex-start; background: var(--surface-1); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 1rem; box-shadow: var(--shadow); color: var(--ink);
}
a.kpi:hover { border-color: var(--brand); color: var(--ink); }
.kpi-icon { width: 40px; height: 40px; flex: none; border-radius: 12px; display: grid; place-items: center; background: var(--surface-2); color: var(--ink-2); font-size: 1.15rem; }
.kpi-label { font-size: .8rem; font-weight: 600; color: var(--ink-2); }
.kpi-value { font-size: 1.35rem; font-weight: 800; letter-spacing: -.02em; line-height: 1.25; white-space: nowrap; font-variant-numeric: tabular-nums; }
.kpi-sub { font-size: .78rem; color: var(--ink-3); margin-top: 2px; }
.kpi.ok .kpi-icon { background: var(--ok-soft); color: var(--ok); }
.kpi.bad .kpi-icon { background: var(--neg-soft); color: var(--neg); }
.kpi.warn .kpi-icon { background: var(--warn-soft); color: var(--warn); }
.kpi.brand .kpi-icon { background: var(--brand-soft); color: var(--brand); }
.kpi.gold .kpi-icon { background: var(--gold-soft); color: var(--accent); }
@media (max-width: 575.98px) {
  .kpi { flex-direction: column; gap: .5rem; padding: .85rem; }
  .kpi-icon { width: 34px; height: 34px; font-size: 1rem; }
  .kpi-value { font-size: 1.12rem; }
}

/* cartão de boas-vindas (início) */
.hero {
  position: relative; overflow: hidden; border-radius: 20px; padding: 1.6rem 1.5rem; color: #eef1f6; margin-bottom: 1.25rem;
  background: radial-gradient(120% 140% at 100% 0%, #24406b 0%, #13294b 40%, #0a1626 100%);
  box-shadow: 0 12px 32px -12px rgba(10, 22, 38, .55);
}
[data-bs-theme="dark"] .hero { background: radial-gradient(120% 140% at 100% 0%, #1d3459 0%, #101f38 45%, #060b14 100%); border: 1px solid var(--line); }
/* rede de pontos conectados — remete ao "Connect" da marca */
.hero::before {
  content: ""; position: absolute; right: 0; top: 0; bottom: 0; width: 60%; opacity: .22; pointer-events: none;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 300 160' preserveAspectRatio='xMaxYMid slice'%3E%3Cg stroke='%23E8C766' stroke-width='1.5' fill='none'%3E%3Cpath d='M40 120 L110 60 L180 100 L250 30 M110 60 L150 20 M180 100 L230 140 M250 30 L290 80'/%3E%3C/g%3E%3Cg fill='%23E8C766'%3E%3Ccircle cx='40' cy='120' r='4'/%3E%3Ccircle cx='110' cy='60' r='6'/%3E%3Ccircle cx='180' cy='100' r='5'/%3E%3Ccircle cx='250' cy='30' r='6'/%3E%3Ccircle cx='150' cy='20' r='3'/%3E%3Ccircle cx='230' cy='140' r='4'/%3E%3Ccircle cx='290' cy='80' r='3'/%3E%3C/g%3E%3C/svg%3E") no-repeat right center / cover;
}
.hero > * { position: relative; z-index: 1; }
.hero .lbl { font-size: .78rem; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; color: var(--gold-2); }
.hero h1 { font-size: 2rem; font-weight: 800; letter-spacing: -.03em; line-height: 1.1; margin: .35rem 0 .4rem; }
.hero p { margin: 0; opacity: .8; }
.hero .hero-actions { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1.1rem; }
.hero .btn-hero { background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.2); color: #fff; }
.hero .btn-hero:hover { background: rgba(255,255,255,.2); }
.hero .btn-gold { background: var(--gold); border: 1px solid var(--gold); color: #1a1404; }
.hero .btn-gold:hover { background: var(--gold-2); border-color: var(--gold-2); }
@media (max-width: 575.98px) { .hero h1 { font-size: 1.6rem; } .hero .hero-actions .btn { flex: 1; } }

.shortcut-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .75rem; }
.shortcut { display: flex; flex-direction: column; gap: .6rem; padding: 1rem; border: 1px solid var(--line); border-radius: 14px; background: var(--surface-2); color: var(--ink); transition: border-color .15s, background-color .15s; }
.shortcut:hover { border-color: var(--brand); background: var(--surface-1); color: var(--ink); }
.shortcut i { font-size: 1.3rem; color: var(--brand); }
.shortcut b { font-size: .92rem; }
.shortcut small { color: var(--ink-3); font-size: .78rem; line-height: 1.3; }

/* ---------- avatar / status ---------- */
.avatar {
  --h: 215; width: 38px; height: 38px; flex: none; border-radius: 50%; display: inline-grid; place-items: center;
  font-weight: 700; font-size: .82rem; letter-spacing: .02em;
  background: hsl(var(--h) 55% 91%); color: hsl(var(--h) 50% 28%);
}
[data-bs-theme="dark"] .avatar { background: hsl(var(--h) 30% 22%); color: hsl(var(--h) 65% 82%); }
.avatar i { font-size: 1.05rem; }
.avatar-sm { width: 32px; height: 32px; font-size: .72rem; }
.avatar-lg { width: 56px; height: 56px; font-size: 1.15rem; }
.avatar-stack { display: inline-flex; }
.avatar-stack .avatar { width: 28px; height: 28px; font-size: .64rem; border: 2px solid var(--surface-1); margin-left: -8px; }
.avatar-stack .avatar:first-child { margin-left: 0; }

.status { display: inline-flex; align-items: center; gap: .3rem; font-size: .76rem; font-weight: 700; padding: .2rem .6rem; border-radius: 999px; white-space: nowrap; }
.status-ok { background: var(--ok-soft); color: var(--ok); }
.status-warn { background: var(--warn-soft); color: var(--warn); }
.status-bad { background: var(--neg-soft); color: var(--neg); }
.status-brand { background: var(--brand-soft); color: var(--brand-ink); }
.status-gold { background: var(--gold-soft); color: var(--accent); }
.status-muted { background: var(--surface-2); color: var(--ink-3); }
.tag { display: inline-flex; align-items: center; gap: .25rem; font-size: .72rem; font-weight: 700; padding: .12rem .5rem; border-radius: 6px; background: var(--surface-2); color: var(--ink-2); border: 1px solid var(--line); white-space: nowrap; }

/* ---------- listas de itens ---------- */
.list-x { list-style: none; margin: 0; padding: 0; }
.list-row {
  display: flex; align-items: center; gap: .85rem; padding: .8rem 1.25rem; border-top: 1px solid var(--line);
}
.list-x > .list-row:first-child, .list-x > :first-child { border-top: 0; }
.list-row .info { flex: 1; min-width: 0; }
.list-row .nm { font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.list-row .meta { font-size: .8rem; color: var(--ink-3); display: flex; flex-wrap: wrap; align-items: center; gap: .15rem .6rem; }
.list-row .side { font-size: .8rem; color: var(--ink-3); white-space: nowrap; text-align: right; }
.list-row .acts { display: flex; gap: .25rem; align-items: center; flex: none; }
.list-row.is-clickable { cursor: pointer; transition: background-color .15s; }
.list-row.is-clickable:hover { background: var(--surface-2); }
.list-row.is-inativo .nm { text-decoration: line-through; color: var(--ink-3); }
.list-row.is-inativo .avatar { opacity: .5; }
.list-group-head { padding: .55rem 1.25rem; font-size: .72rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-3); background: var(--surface-2); border-top: 1px solid var(--line); display: flex; justify-content: space-between; gap: .5rem; }
.list-x > .list-group-head:first-child { border-top: 0; }
@media (max-width: 575.98px) {
  .list-row { padding: .75rem 1rem; gap: .65rem; }
  .list-row .side { display: none; }
  .list-group-head { padding: .55rem 1rem; }
}

/* toolbar de filtros */
.toolbar { display: flex; flex-wrap: wrap; gap: .6rem; align-items: center; margin-bottom: 1rem; }
.search-box { position: relative; flex: 1 1 220px; max-width: 360px; }
.search-box i { position: absolute; left: .85rem; top: 50%; transform: translateY(-50%); color: var(--ink-3); }
.search-box input { padding-left: 2.3rem; }
@media (max-width: 575.98px) { .search-box { max-width: none; flex-basis: 100%; } }

.segmented { display: inline-flex; flex-wrap: wrap; background: var(--surface-2); border: 1px solid var(--line); border-radius: 12px; padding: 3px; gap: 2px; }
.segmented a, .segmented button { padding: .35rem .85rem; border-radius: 9px; font-weight: 600; font-size: .85rem; color: var(--ink-2); border: 0; background: none; transition: background-color .15s, color .15s; display: inline-flex; align-items: center; gap: .35rem; }
.segmented a:hover, .segmented button:hover { color: var(--ink); }
.segmented .active { background: var(--surface-1); color: var(--ink); box-shadow: var(--shadow); }

/* estado vazio */
.empty { text-align: center; padding: 2.5rem 1rem; color: var(--ink-3); }
.empty i { font-size: 2rem; display: block; margin-bottom: .5rem; }
.empty p { margin: 0; }
.empty .btn { margin-top: 1rem; }
.empty-sm { padding: 1.25rem 1rem; }
.empty-sm i { font-size: 1.4rem; }

/* caixinha de data */
.date-box { width: 50px; flex: none; text-align: center; border-radius: 12px; background: var(--surface-2); padding: .3rem 0; line-height: 1.1; }
.date-box b { display: block; font-size: 1.1rem; font-weight: 800; }
.date-box small { font-size: .68rem; text-transform: uppercase; font-weight: 700; color: var(--ink-3); }
.date-box.today { background: var(--gold-soft); color: var(--accent); }
.date-box.today small { color: inherit; }
.time-box { width: 58px; flex: none; text-align: right; font-weight: 800; font-size: .92rem; line-height: 1.15; font-variant-numeric: tabular-nums; }
.time-box small { display: block; font-weight: 600; font-size: .74rem; color: var(--ink-3); }

/* ---------- agenda ---------- */
.agenda-bar { display: flex; flex-wrap: wrap; gap: .6rem; align-items: center; justify-content: space-between; margin-bottom: 1rem; }
.agenda-bar .left { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; }
@media (max-width: 575.98px) {
  .agenda-bar, .agenda-bar .left { width: 100%; }
  .agenda-bar .period-nav { flex: 1; justify-content: space-between; }
  .agenda-bar .segmented { width: 100%; }
  .agenda-bar .segmented > * { flex: 1; justify-content: center; }
}
.ev-c { --c: var(--brand); }
.cal { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); }
.cal-dow { padding: .6rem .5rem; font-size: .72rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-3); background: var(--surface-2); border-bottom: 1px solid var(--line); text-align: center; }
.cal-day {
  min-height: 118px; padding: .4rem .45rem .5rem; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line);
  display: flex; flex-direction: column; gap: 3px; cursor: pointer; transition: background-color .15s; min-width: 0;
}
.cal-day:nth-child(7n + 7) { border-right: 0; }
.cal-day:hover { background: var(--surface-2); }
.cal-day.out { background: color-mix(in srgb, var(--surface-2) 60%, transparent); }
.cal-day.out .cal-num { color: var(--ink-3); opacity: .6; }
.cal-num { font-weight: 700; font-size: .85rem; width: 28px; height: 28px; display: grid; place-items: center; border-radius: 50%; flex: none; }
.cal-day.today .cal-num { background: var(--gold); color: #1a1404; }
.cal-day.sel { box-shadow: inset 0 0 0 2px var(--brand); }
.cal-ev {
  display: block; width: 100%; text-align: left; font-size: .74rem; font-weight: 600; line-height: 1.25; padding: .14rem .4rem; border-radius: 6px; border: 0;
  background: color-mix(in srgb, var(--c) 14%, transparent); color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  border-left: 3px solid var(--c);
}
.cal-ev:hover { background: color-mix(in srgb, var(--c) 24%, transparent); }
.cal-ev .h { color: var(--ink-3); font-weight: 700; margin-right: .2rem; }
.cal-ev.pend { outline: 1px dashed var(--accent); outline-offset: -1px; }
.cal-more { font-size: .72rem; font-weight: 700; color: var(--ink-3); padding-left: .3rem; }
.cal-dots { display: none; gap: 3px; flex-wrap: wrap; justify-content: center; }
.cal-dots i { width: 6px; height: 6px; border-radius: 50%; background: var(--c); display: block; }
@media (max-width: 767.98px) {
  .cal-day { min-height: 62px; align-items: center; padding: .35rem .15rem; }
  .cal-day .cal-ev, .cal-day .cal-more { display: none; }
  .cal-dots { display: flex; }
  .cal-dow { font-size: .64rem; padding: .5rem 0; letter-spacing: .02em; }
}

.ev-card { display: flex; gap: .85rem; align-items: flex-start; padding: .85rem 1.25rem; border-top: 1px solid var(--line); cursor: pointer; transition: background-color .15s; }
.ev-card:first-child { border-top: 0; }
.ev-card:hover { background: var(--surface-2); }
.ev-card .bar { width: 4px; align-self: stretch; border-radius: 4px; background: var(--c); flex: none; }
.ev-card .info { flex: 1; min-width: 0; }
.ev-card .tt { font-weight: 700; }
.ev-card .meta { font-size: .8rem; color: var(--ink-3); display: flex; flex-wrap: wrap; gap: .15rem .75rem; margin-top: .15rem; }
.ev-card .meta i { margin-right: .2rem; }
.ev-card .rsvp { display: flex; gap: .35rem; flex-wrap: wrap; margin-top: .55rem; }
@media (max-width: 575.98px) { .ev-card { padding: .8rem 1rem; } }
.day-head { display: flex; align-items: center; gap: .6rem; padding: .6rem 1.25rem; background: var(--surface-2); border-top: 1px solid var(--line); font-weight: 700; font-size: .88rem; cursor: pointer; }
.day-head:first-child { border-top: 0; }
.day-head small { color: var(--ink-3); font-weight: 600; margin-left: auto; }
.day-head.today { color: var(--accent); }
.day-empty { padding: .65rem 1.25rem; font-size: .82rem; color: var(--ink-3); border-top: 1px solid var(--line); }

.det-row { display: flex; gap: .75rem; align-items: flex-start; padding: .45rem 0; }
.det-row > i { color: var(--ink-3); font-size: 1.05rem; width: 1.2rem; text-align: center; margin-top: .1rem; }
.det-desc { white-space: pre-wrap; background: var(--surface-2); border-radius: 12px; padding: .75rem .9rem; margin: .5rem 0; font-size: .92rem; }
.part-list { display: grid; gap: .4rem; margin-top: .35rem; }
.part-list > div { display: flex; align-items: center; gap: .6rem; }
.part-list .avatar { width: 30px; height: 30px; font-size: .68rem; }
.part-list .nm { flex: 1; min-width: 0; font-weight: 600; font-size: .9rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ---------- arquivos ---------- */
.crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: .15rem; font-size: .88rem; font-weight: 600; color: var(--ink-3); margin-bottom: .35rem; }
.crumbs a { color: var(--ink-3); padding: .1rem .3rem; border-radius: 6px; }
.crumbs a:hover { color: var(--brand); background: var(--brand-soft); }
.crumbs .sep { font-size: .7rem; opacity: .7; }
.crumbs .cur { color: var(--ink); padding: .1rem .3rem; }
.crumbs .lock { padding: .1rem .3rem; }
.file-ico { width: 40px; height: 40px; flex: none; border-radius: 11px; display: grid; place-items: center; font-size: 1.15rem; background: color-mix(in srgb, var(--c, var(--ink-3)) 13%, transparent); color: var(--c, var(--ink-2)); }
.file-ico.folder { --c: var(--accent); }
.dropzone { position: relative; }
.dropzone.drag::after {
  content: "Solte para enviar a esta pasta"; position: absolute; inset: 0; z-index: 5; display: grid; place-items: center;
  border: 2px dashed var(--brand); border-radius: var(--radius); background: color-mix(in srgb, var(--surface-1) 88%, transparent);
  font-weight: 800; color: var(--brand); font-size: 1.05rem;
}
.upload-panel { position: fixed; right: 1rem; bottom: 1rem; z-index: 1990; width: 320px; max-width: calc(100vw - 2rem); background: var(--surface-1); border: 1px solid var(--line); border-radius: 16px; box-shadow: 0 16px 40px rgba(0,0,0,.18); overflow: hidden; }
.upload-panel .hd { padding: .75rem 1rem; font-weight: 700; font-size: .9rem; display: flex; justify-content: space-between; align-items: center; border-bottom: 1px solid var(--line); }
.upload-panel .it { padding: .5rem 1rem; font-size: .82rem; display: flex; gap: .5rem; align-items: center; }
.upload-panel .it span { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
@media (max-width: 991.98px) { .upload-panel { bottom: 80px; } }
.perm-grant { display: flex; align-items: center; gap: .75rem; padding: .6rem 0; border-top: 1px solid var(--line); }
.perm-grant:first-child { border-top: 0; }
.perm-grant .info { flex: 1; min-width: 0; }
.perm-grant .segmented a, .perm-grant .segmented button { padding: .25rem .6rem; font-size: .8rem; }

/* visualizador / editores */
.viewer .modal-content { border-radius: 0; border: 0; background: var(--surface-0); }
.viewer .modal-header { background: var(--surface-1); border-bottom: 1px solid var(--line); padding: .75rem 1rem; gap: .75rem; }
.viewer .modal-header .ttl { flex: 1; min-width: 0; display: flex; align-items: center; gap: .75rem; }
.viewer .modal-header .ttl b { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.viewer .modal-header .ttl small { color: var(--ink-3); font-size: .78rem; }
.viewer .modal-body { padding: 0; display: flex; flex-direction: column; min-height: 0; }
.viewer .v-acts { display: flex; gap: .4rem; align-items: center; flex: none; }
.viewer .v-pdf { flex: 1; width: 100%; border: 0; background: #525659; }
.viewer .v-img { flex: 1; display: grid; place-items: center; overflow: auto; padding: 1rem; background: repeating-conic-gradient(var(--surface-2) 0% 25%, var(--surface-1) 0% 50%) 50% / 20px 20px; }
.viewer .v-img img { max-width: 100%; max-height: 100%; object-fit: contain; border-radius: 6px; box-shadow: 0 8px 30px rgba(0,0,0,.2); cursor: zoom-in; }
.viewer .v-img.zoom { place-items: start; }
.viewer .v-img.zoom img { max-width: none; max-height: none; cursor: zoom-out; }
.viewer .v-text { flex: 1; width: 100%; border: 0; resize: none; padding: 1.25rem 1.5rem; font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: .9rem; line-height: 1.6; background: var(--surface-1); color: var(--ink); outline: none; }
.viewer .v-doc { flex: 1; overflow: auto; padding: 2rem 1rem; }
.viewer .v-doc .page-doc { max-width: 820px; margin: 0 auto; background: #fff; color: #1b1b1b; padding: 3rem 3.25rem; border-radius: 6px; box-shadow: 0 8px 30px rgba(0,0,0,.12); font-family: Calibri, "Segoe UI", Arial, sans-serif; line-height: 1.5; }
.viewer .v-doc .page-doc img { max-width: 100%; height: auto; }
.viewer .v-doc .page-doc table { border-collapse: collapse; margin: .75rem 0; }
.viewer .v-doc .page-doc td, .viewer .v-doc .page-doc th { border: 1px solid #ccc; padding: .3rem .5rem; }
@media (max-width: 575.98px) { .viewer .v-doc { padding: .75rem .5rem; } .viewer .v-doc .page-doc { padding: 1.5rem 1.25rem; } }
.viewer .v-note { padding: .5rem 1rem; font-size: .8rem; color: var(--ink-3); background: var(--surface-2); border-bottom: 1px solid var(--line); display: flex; gap: .5rem; align-items: center; }
.viewer .v-center { flex: 1; display: grid; place-items: center; padding: 2rem 1rem; text-align: center; }
.viewer .v-center .file-ico { width: 80px; height: 80px; font-size: 2.2rem; border-radius: 22px; margin: 0 auto 1rem; }
.dirty-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); display: inline-block; }

.sheet-tabs { display: flex; gap: .3rem; padding: .5rem .75rem; background: var(--surface-1); border-top: 1px solid var(--line); overflow-x: auto; flex: none; align-items: center; }
.sheet-tabs button { border: 1px solid var(--line); background: var(--surface-2); color: var(--ink-2); border-radius: 9px; padding: .3rem .8rem; font-weight: 600; font-size: .82rem; white-space: nowrap; }
.sheet-tabs button.active { background: var(--brand); color: #fff; border-color: var(--brand); }
[data-bs-theme="dark"] .sheet-tabs button.active { color: #1a1404; }
.sheet-tools { display: flex; gap: .4rem; padding: .5rem .75rem; background: var(--surface-1); border-bottom: 1px solid var(--line); align-items: center; flex-wrap: wrap; flex: none; }
.sheet-tools .ref { font-family: ui-monospace, Consolas, monospace; font-weight: 700; font-size: .82rem; min-width: 56px; padding: .3rem .5rem; border-radius: 8px; background: var(--surface-2); text-align: center; }
.sheet-tools .fx { flex: 1; min-width: 160px; }
.sheet-wrap { flex: 1; overflow: auto; background: var(--surface-1); }
.sheet { border-collapse: separate; border-spacing: 0; font-size: .85rem; }
.sheet th { position: sticky; top: 0; z-index: 2; background: var(--surface-2); color: var(--ink-3); font-weight: 700; font-size: .74rem; text-align: center; padding: .3rem; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); min-width: 110px; }
.sheet th.rh, .sheet td.rh { position: sticky; left: 0; z-index: 1; min-width: 46px; width: 46px; background: var(--surface-2); color: var(--ink-3); font-weight: 700; font-size: .74rem; text-align: center; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.sheet th.rh { z-index: 3; }
.sheet td { border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 0; height: 30px; }
.sheet td input { width: 100%; min-width: 110px; height: 30px; border: 0; padding: 0 .45rem; background: transparent; color: var(--ink); outline: none; font: inherit; }
.sheet td input:focus { box-shadow: inset 0 0 0 2px var(--brand); background: var(--surface-1); }
.sheet td input.n { text-align: right; font-variant-numeric: tabular-nums; }
.sheet td input[readonly] { cursor: default; }

/* ---------- perfis ---------- */
.perfil-card { display: flex; flex-direction: column; gap: .8rem; height: 100%; }
.perfil-card .top { display: flex; gap: .75rem; align-items: flex-start; }
.perfil-card .nm { font-weight: 800; font-size: 1.02rem; line-height: 1.2; }
.perfil-card .ds { font-size: .85rem; color: var(--ink-2); margin-top: .15rem; }
.perfil-card .mods { display: flex; flex-wrap: wrap; gap: .35rem; }
.perfil-card .foot { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: .5rem; padding-top: .75rem; border-top: 1px solid var(--line); font-size: .82rem; color: var(--ink-3); }
.perfil-card.is-inativo { opacity: .65; }
.progress-x { height: 6px; border-radius: 999px; background: var(--surface-2); overflow: hidden; }
.progress-x > span { display: block; height: 100%; border-radius: 999px; background: var(--brand); }
.perm-group { border: 1px solid var(--line); border-radius: 14px; overflow: hidden; margin-bottom: .75rem; }
.perm-group .hd { display: flex; align-items: center; gap: .6rem; padding: .6rem .9rem; background: var(--surface-2); font-weight: 700; font-size: .9rem; cursor: pointer; margin: 0; }
.perm-group .hd i.bi { color: var(--brand); }
.perm-group .hd .form-check-input { margin: 0 0 0 auto; }
.perm-group label.it { display: flex; gap: .65rem; align-items: flex-start; padding: .55rem .9rem; border-top: 1px solid var(--line); cursor: pointer; margin: 0; }
.perm-group label.it:hover { background: var(--surface-2); }
.perm-group label.it .form-check-input { margin: .15rem 0 0; flex: none; }
.perm-group label.it b { display: block; font-size: .88rem; font-weight: 600; }
.perm-group label.it code { font-size: .72rem; color: var(--ink-3); }

/* ---------- modais ---------- */
.modal-content { border: 1px solid var(--line); border-radius: 20px; background: var(--surface-1); }
.modal-header { border-bottom: 0; padding: 1.25rem 1.5rem .5rem; }
.modal-title { font-weight: 800; font-size: 1.1rem; }
.modal-body { padding: .75rem 1.5rem; }
.modal-footer { border-top: 0; padding: .75rem 1.5rem 1.25rem; }
.modal-footer .me-auto { margin-right: auto; }
@media (max-width: 575.98px) {
  .modal-dialog:not(.modal-sm):not(.modal-fullscreen) { margin: 0; min-height: 100%; display: flex; align-items: flex-end; }
  .modal-dialog:not(.modal-sm):not(.modal-fullscreen) .modal-content { border-radius: 22px 22px 0 0; max-height: 92vh; overflow-y: auto; }
  .modal.fade .modal-dialog:not(.modal-sm):not(.modal-fullscreen) { transform: translateY(40px); }
  .modal.show .modal-dialog:not(.modal-sm):not(.modal-fullscreen) { transform: none; }
  .modal-footer > .btn { flex: 1; }
}
.modal-sub { font-size: .9rem; color: var(--ink-2); margin-top: -.25rem; }
.modal-alert { background: var(--neg-soft); color: var(--neg); border-radius: 12px; padding: .6rem .85rem; font-size: .88rem; font-weight: 600; }
.choice-list { display: grid; gap: .5rem; }
.choice-list .btn { text-align: left; display: flex; align-items: center; gap: .7rem; padding: .75rem 1rem; }
.choice-list .btn small { display: block; font-weight: 500; color: var(--ink-3); }

/* toasts */
.toast-container { top: 0; right: 0; z-index: 2000; }
@media (max-width: 575.98px) { .toast-container { left: 0; right: 0; top: auto; bottom: 70px; } }
.toast-x {
  display: flex; align-items: center; gap: .75rem; background: var(--ink); color: var(--surface-1);
  border-radius: 14px; padding: .8rem 1rem; box-shadow: 0 10px 30px rgba(0,0,0,.25); min-width: 280px; font-weight: 600; margin-bottom: .5rem;
  animation: toast-in .25s ease-out;
}
.toast-x .bi { font-size: 1.2rem; }
.toast-x.success .bi { color: #34d399; }
.toast-x.error .bi { color: #f87171; }
[data-bs-theme="dark"] .toast-x.success .bi { color: #15803d; }
[data-bs-theme="dark"] .toast-x.error .bi { color: #b91c1c; }
@keyframes toast-in { from { transform: translateY(-8px); opacity: 0; } to { transform: none; opacity: 1; } }

/* animações de página e carregamento */
.is-loading { opacity: .55; pointer-events: none; transition: opacity .15s; }
.page-enter > * > * { animation: page-in .35s cubic-bezier(.2,.8,.2,1) both; }
.page-enter > * > *:nth-child(2) { animation-delay: .03s; }
.page-enter > * > *:nth-child(3) { animation-delay: .06s; }
.page-enter > * > *:nth-child(n+4) { animation-delay: .09s; }
@keyframes page-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.skel { display: block; border-radius: 10px; background: linear-gradient(90deg, var(--surface-2) 25%, var(--line) 50%, var(--surface-2) 75%); background-size: 200% 100%; animation: skel 1.2s linear infinite; }
@keyframes skel { from { background-position: 200% 0; } to { background-position: -200% 0; } }
.boot { min-height: 100vh; display: grid; place-items: center; }
.boot .brand-mark { width: 64px; height: 64px; animation: pulse 1.2s ease-in-out infinite; }
@keyframes pulse { 50% { transform: scale(.92); opacity: .7; } }
.spin { display: inline-block; animation: spin 1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) {
  .toast-x, .page-enter > * > *, .skel, .boot .brand-mark { animation: none; }
}

/* login */
.login-body { min-height: 100vh; background:
  radial-gradient(55% 45% at 90% 100%, rgba(201, 162, 39, .28) 0%, transparent 70%),
  radial-gradient(100% 80% at 0% 0%, #1d3459 0%, #0f2140 50%, #060c17 100%); }
.login-body::before { content: ""; position: fixed; inset: 0; pointer-events: none; opacity: .14;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 600' preserveAspectRatio='xMidYMid slice'%3E%3Cg stroke='%23E8C766' stroke-width='1.5' fill='none'%3E%3Cpath d='M80 520 L260 380 L430 450 L610 260 L790 330 L960 150 L1130 220 M260 380 L330 210 L610 260 M790 330 L880 500 L1130 420 M960 150 L1060 60'/%3E%3C/g%3E%3Cg fill='%23E8C766'%3E%3Ccircle cx='80' cy='520' r='5'/%3E%3Ccircle cx='260' cy='380' r='8'/%3E%3Ccircle cx='430' cy='450' r='5'/%3E%3Ccircle cx='610' cy='260' r='9'/%3E%3Ccircle cx='790' cy='330' r='6'/%3E%3Ccircle cx='960' cy='150' r='8'/%3E%3Ccircle cx='1130' cy='220' r='5'/%3E%3Ccircle cx='330' cy='210' r='4'/%3E%3Ccircle cx='880' cy='500' r='5'/%3E%3Ccircle cx='1130' cy='420' r='4'/%3E%3Ccircle cx='1060' cy='60' r='4'/%3E%3C/g%3E%3C/svg%3E") no-repeat center / cover; }
.login-wrap { position: relative; min-height: 100vh; display: grid; grid-template-columns: 1fr; align-items: center; justify-items: center; gap: 2rem; padding: 2rem 1rem; max-width: 1000px; margin: 0 auto; }
@media (min-width: 900px) { .login-wrap { grid-template-columns: 1.1fr 1fr; } }
.login-hero { color: #eef1f6; max-width: 420px; }
.login-hero .brand-mark { width: 96px; height: 96px; filter: drop-shadow(0 8px 24px rgba(0, 0, 0, .4)); }
.login-hero h1 { font-size: 2.6rem; font-weight: 800; letter-spacing: -.03em; line-height: 1.02; margin: 1rem 0; }
.login-hero h1 span { color: var(--gold-2); }
.login-hero p { opacity: .8; font-size: 1.05rem; }
.login-hero ul { list-style: none; padding: 0; margin: 1.25rem 0 0; display: grid; gap: .5rem; opacity: .92; }
.login-hero li { display: flex; gap: .6rem; align-items: center; font-weight: 600; font-size: .95rem; }
.login-hero li i { color: var(--gold-2); }
@media (max-width: 899.98px) { .login-hero { text-align: center; } .login-hero h1 { font-size: 2rem; } .login-hero p, .login-hero ul { display: none; } }
.login-card { width: 100%; max-width: 400px; background: var(--surface-1); border-radius: 24px; padding: 2rem; box-shadow: 0 24px 60px rgba(0, 0, 0, .4); animation: page-in .4s cubic-bezier(.2,.8,.2,1) both; }
.login-card h2 { font-weight: 800; font-size: 1.4rem; margin-bottom: .25rem; }
.login-card .sub { color: var(--ink-3); font-size: .9rem; margin-bottom: 1.25rem; }

/* impressão */
@media print {
  .sidebar, .bottom-nav, .topbar, .page-actions, .btn, .toolbar { display: none !important; }
  .app-shell { margin: 0 !important; }
}

/* listas com menu suspenso não podem cortar o dropdown */
.card-flush.dropzone { overflow: visible; }
.card-flush.dropzone .list-x > .list-row:first-child { border-radius: var(--radius) var(--radius) 0 0; }
.card-flush.dropzone .list-x > .list-row:last-of-type { border-radius: 0 0 var(--radius) var(--radius); }
.viewer .modal-body { overflow: hidden; }
.note-x { display: flex; gap: .5rem; align-items: flex-start; padding: .65rem .85rem; border-radius: 12px; background: var(--gold-soft); color: var(--ink-2); font-size: .85rem; }
.note-x > i { color: var(--accent); margin-top: .1rem; }
.hero .btn { white-space: nowrap; }
@media (max-width: 575.98px) { .hero .hero-actions .btn-gold { flex-basis: 100%; } }
