/* ==========================================================================
   CBOO UI — base visual única do Controle de Eventos
   Carregado depois do theme.css. Cor diz status, não módulo.
   Azul de ação vem do azul-marinho da logo; verde e amarelo só como significado.
   ========================================================================== */

/* ── Tokens ─────────────────────────────────────────────────────────────── */
:root {
  --bg: #0B1020;
  --surface: #121A2E;
  --surface-2: #18223A;
  --border: #243152;
  --border-strong: #34456B;
  --text: #E7ECF5;
  --text-2: #A9B6CC;
  --text-3: #8795AD;
  --brand: #152575;
  --accent: #3C5BDB;
  --accent-hover: #3350C8;
  --accent-text: #8FA2FF;
  --accent-soft: rgba(60, 91, 219, .16);
  --ok: #5FBF4E;
  --warn: #F0E030;
  --danger: #F2706B;
  --danger-solid: #C93A3A;
  --focus: #8FA2FF;

  --fs-xs: 12px; --fs-sm: 13px; --fs-md: 14px; --fs-lg: 16px; --fs-xl: 20px; --fs-kpi: 28px;
  --s1: 4px; --s2: 8px; --s3: 12px; --s4: 16px; --s5: 20px; --s6: 24px; --s8: 32px; --s10: 40px;
  --r-sm: 6px; --r-md: 10px;
  --sh-pop: 0 8px 24px rgba(0, 0, 0, .35);
  --ease: 120ms ease-out;

  --sidebar-w: 248px;
  --topbar-h: 56px;
  --bottombar-h: 64px;
  color-scheme: dark;
}

:root[data-theme="light"] {
  --bg: #F5F7FB; --surface: #FFFFFF; --surface-2: #EEF1F7;
  --border: #DCE1EA; --border-strong: #C3CAD8;
  --text: #1A2233; --text-2: #475069; --text-3: #5B6478;
  --accent: #2B45C4; --accent-hover: #22399F; --accent-text: #2B45C4; --accent-soft: #E7ECFF;
  --ok: #2F7D32; --warn: #8A6D00; --danger: #B42318; --danger-solid: #B42318; --focus: #2B45C4;
  --sh-pop: 0 8px 24px rgba(16, 24, 40, .12);
  color-scheme: light;
}

/* ── Base ───────────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body.app {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 var(--fs-md)/1.55 Inter, system-ui, -apple-system, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}
body.app a { color: var(--accent-text); }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
.num, td.num { font-variant-numeric: tabular-nums; text-align: right; white-space: nowrap; }
.muted { color: var(--text-2); }
.subtle { color: var(--text-3); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

/* ── Casca: sidebar ─────────────────────────────────────────────────────── */
body.app { display: block; min-height: 100vh; overflow-x: hidden; }

.sidebar {
  position: fixed; inset: 0 auto 0 0; z-index: 300;
  width: var(--sidebar-w);
  display: flex; flex-direction: column;
  background: var(--bg);
  border-right: 1px solid var(--border);
  transition: transform .2s ease-out;
}
.sidebar::before { /* faixa fina nas cores da marca */
  content: ""; display: block; height: 3px; flex-shrink: 0;
  background: linear-gradient(90deg, var(--brand) 0 60%, #5a9a3a 60% 80%, #f5d93a 80% 100%);
}
.sidebar-brand {
  display: flex; align-items: center; gap: var(--s3);
  padding: var(--s4) var(--s4) var(--s3);
  color: var(--text); text-decoration: none;
}
.sidebar-brand img { width: 32px; height: 32px; border-radius: 8px; flex-shrink: 0; }
.sidebar-brand strong { display: block; font-size: var(--fs-md); font-weight: 600; line-height: 1.2; color: var(--text); }
.sidebar-brand span { display: block; font-size: var(--fs-xs); color: var(--text-3); }

.sidebar-nav { flex: 1; overflow-y: auto; padding: 0 0 var(--s4); }
.sidebar-nav::-webkit-scrollbar { width: 6px; }
.sidebar-nav::-webkit-scrollbar-thumb { background: var(--border); border-radius: 3px; }

.nav-group {
  padding: var(--s4) var(--s5) var(--s1);
  font-size: 11px; font-weight: 600; color: var(--text-3);
  text-transform: uppercase; letter-spacing: .06em;
}
.nav-link {
  display: flex; align-items: center; gap: var(--s3);
  min-height: 36px; padding: 0 var(--s3); margin: 1px var(--s2);
  border-radius: var(--r-sm);
  color: var(--text-2) !important; text-decoration: none;
  font-size: var(--fs-sm); font-weight: 450;
  transition: background var(--ease), color var(--ease);
}
.nav-link i { width: 18px; text-align: center; font-size: 14px; color: var(--text-3); }
.nav-link:hover { background: var(--surface-2); color: var(--text) !important; }
.nav-link[aria-current="page"] { background: var(--accent-soft); color: var(--text) !important; font-weight: 550; }
.nav-link[aria-current="page"] i { color: var(--accent-text); }
.nav-link .nav-ext { margin-left: auto; font-size: 11px; color: var(--text-3); width: auto; }

.sidebar-user {
  display: flex; align-items: center; gap: var(--s3);
  padding: var(--s3) var(--s4);
  border-top: 1px solid var(--border);
}
.sidebar-avatar {
  width: 32px; height: 32px; border-radius: 999px; flex-shrink: 0;
  display: grid; place-items: center;
  background: var(--surface-2); color: var(--text-2);
  font-size: var(--fs-sm); font-weight: 600; text-transform: uppercase;
}
.sidebar-user .who { flex: 1; min-width: 0; }
.sidebar-user .who strong { display: block; font-size: var(--fs-sm); font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sidebar-user .who span { display: block; font-size: var(--fs-xs); color: var(--text-3); }
.sidebar-user form { margin: 0; }

/* ── Casca: conteúdo ────────────────────────────────────────────────────── */
.layout-main { margin-left: var(--sidebar-w); min-width: 0; min-height: 100vh; display: flex; flex-direction: column; }
.content-topbar {
  position: sticky; top: 0; z-index: 200;
  display: flex; align-items: center; gap: var(--s3);
  min-height: var(--topbar-h); padding: 0 var(--s8);
  background: color-mix(in srgb, var(--bg) 92%, transparent);
  border-bottom: 1px solid var(--border);
}
.crumbs { display: flex; align-items: center; gap: var(--s2); min-width: 0; font-size: var(--fs-sm); color: var(--text-3); }
.crumbs a { color: var(--text-2) !important; text-decoration: none; }
.crumbs a:hover { color: var(--text) !important; }
.crumbs .sep { color: var(--border-strong); }
.crumbs .current { color: var(--text); font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.topbar-right { margin-left: auto; display: flex; align-items: center; gap: var(--s3); color: var(--text-3); font-size: var(--fs-sm); }
.topbar-menu-btn { display: none; }

.content-body { flex: 1; min-width: 0; padding: var(--s6) var(--s8) var(--s10); }
body.app .container { max-width: 100%; margin: 0; padding: 0; }
.fade-in { animation: cbooFade .18s ease-out; }
@keyframes cbooFade { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }

.sidebar-overlay { display: none; }
.bottombar { display: none; }

@media (max-width: 640px) { .hide-sm { display: none !important; } }

@media (max-width: 1024px) {
  .sidebar { transform: translateX(-100%); box-shadow: var(--sh-pop); }
  .sidebar.open { transform: none; }
  .sidebar-overlay.open { display: block; position: fixed; inset: 0; z-index: 250; background: rgba(5, 8, 18, .6); }
  .layout-main { margin-left: 0; }
  .content-topbar { padding: 0 var(--s4); }
  .topbar-menu-btn { display: inline-grid; }
  .content-body { padding: var(--s4) var(--s4) calc(var(--bottombar-h) + var(--s6)); }
  .topbar-right .date { display: none; }

  .bottombar {
    display: grid; grid-template-columns: repeat(4, 1fr);
    position: fixed; inset: auto 0 0 0; z-index: 220;
    height: var(--bottombar-h); padding-bottom: env(safe-area-inset-bottom);
    background: var(--surface); border-top: 1px solid var(--border);
  }
  .bottombar a, .bottombar button {
    display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px;
    background: none; border: 0; font: inherit; cursor: pointer;
    color: var(--text-2) !important; text-decoration: none; font-size: 11px;
  }
  .bottombar i { font-size: 17px; }
  .bottombar [aria-current="page"] { color: var(--accent-text) !important; }
}

/* ── Cabeçalho de página ────────────────────────────────────────────────── */
.page-head { display: flex; flex-wrap: wrap; align-items: flex-end; gap: var(--s3) var(--s4); margin-bottom: var(--s6); }
.page-head h1 { font-size: var(--fs-xl); font-weight: 650; line-height: 28px; margin: 0; color: var(--text); letter-spacing: -.01em; }
.page-head p { color: var(--text-2); margin: var(--s1) 0 0; max-width: 70ch; font-size: var(--fs-md); }
.page-head .actions { margin-left: auto; display: flex; flex-wrap: wrap; gap: var(--s2); }
.back-link { display: inline-flex; align-items: center; gap: 6px; color: var(--text-2) !important; font-size: var(--fs-sm); text-decoration: none; margin-bottom: var(--s2); }
.back-link:hover { color: var(--text) !important; }
@media (max-width: 640px) {
  .page-head .actions { margin-left: 0; width: 100%; }
  .page-head .actions .btn { flex: 1; }
}

/* ── Card / seção ───────────────────────────────────────────────────────── */
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-md); padding: 0; box-shadow: none; backdrop-filter: none; }
.card:has(> .body), .card:has(> header), .card:has(> .card-body) { padding: 0; }
.card + .card { margin-top: var(--s4); }
.card > header, .card-head { display: flex; align-items: center; gap: var(--s2); padding: var(--s4) var(--s5); border-bottom: 1px solid var(--border); }
.card > header h2, .card-head h2 { font-size: var(--fs-lg); font-weight: 600; margin: 0; color: var(--text); }
.card > header .actions, .card-head .actions { margin-left: auto; display: flex; gap: var(--s2); }
.card > .body, .card-body { padding: var(--s5); }
.stack > * + * { margin-top: var(--s4); }
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s4); }
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s4); }
@media (max-width: 900px) { .grid-2, .grid-3 { grid-template-columns: minmax(0, 1fr); } }

/* ── KPIs ───────────────────────────────────────────────────────────────── */
.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: var(--s3); margin-bottom: var(--s6); }
@media (max-width: 640px) { .kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); } .kpi .value { font-size: 22px; line-height: 28px; } }
.kpi { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-md); padding: var(--s4); min-width: 0; }
.kpi .label { font-size: var(--fs-sm); color: var(--text-2); }
.kpi .value { font-size: var(--fs-kpi); font-weight: 600; line-height: 32px; font-variant-numeric: tabular-nums; margin-top: var(--s1); color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.kpi .value small { font-size: var(--fs-md); font-weight: 500; color: var(--text-2); }
.kpi .scope { font-size: var(--fs-xs); color: var(--text-3); margin-top: var(--s1); }
.kpi[data-tone="ok"] .value { color: var(--ok); }
.kpi[data-tone="warn"] .value { color: var(--warn); }
.kpi[data-tone="danger"] .value { color: var(--danger); }
.meter { height: 6px; border-radius: 999px; background: var(--surface-2); overflow: hidden; margin-top: var(--s2); }
.meter > span { display: block; height: 100%; background: var(--accent); border-radius: inherit; }
.meter[data-tone="ok"] > span { background: var(--ok); }
.meter[data-tone="warn"] > span { background: var(--warn); }
.meter[data-tone="danger"] > span { background: var(--danger); }

/* ── Botões ─────────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--s2);
  min-height: 36px; padding: 0 14px;
  border-radius: var(--r-sm); border: 1px solid var(--border-strong);
  background: var(--surface-2); color: var(--text) !important;
  font: 500 var(--fs-md)/1 Inter, system-ui, sans-serif;
  text-decoration: none; white-space: nowrap; cursor: pointer;
  transition: background var(--ease), border-color var(--ease);
  box-shadow: none; transform: none;
}
.btn:hover { background: var(--border); transform: none; box-shadow: none; }
.btn i { font-size: 13px; }
.btn-primary { background: var(--accent); border-color: var(--accent); color: #fff !important; }
.btn-primary:hover { background: var(--accent-hover); border-color: var(--accent-hover); }
.btn-ghost { background: transparent; border-color: transparent; color: var(--text-2) !important; }
.btn-ghost:hover { background: var(--surface-2); color: var(--text) !important; }
.btn-danger { background: transparent; border-color: transparent; color: var(--danger) !important; }
.btn-danger:hover { background: color-mix(in srgb, var(--danger) 12%, transparent); }
.btn-danger.solid { background: var(--danger-solid); border-color: var(--danger-solid); color: #fff !important; }
.btn-ok { background: transparent; border-color: color-mix(in srgb, var(--ok) 45%, transparent); color: var(--ok) !important; }
.btn-sm { min-height: 30px; padding: 0 10px; font-size: var(--fs-sm); }
.btn-lg { min-height: 44px; padding: 0 18px; font-size: var(--fs-lg); }
.btn-icon { width: 36px; padding: 0; }
.btn-sm.btn-icon { width: 30px; }
.btn[disabled], .btn[aria-disabled="true"] { opacity: .5; cursor: not-allowed; }
@media (pointer: coarse) { .btn { min-height: 44px; } .btn-icon { width: 44px; } .btn-sm { min-height: 38px; } }

/* menu "⋯" sem JavaScript (details/summary) */
.menu { position: relative; display: inline-block; }
.menu > summary { list-style: none; }
.menu > summary::-webkit-details-marker { display: none; }
.menu-list {
  position: absolute; right: 0; top: calc(100% + 4px); z-index: 150; min-width: 180px;
  padding: var(--s1); background: var(--surface); border: 1px solid var(--border-strong);
  border-radius: var(--r-md); box-shadow: var(--sh-pop);
}
.menu-list a, .menu-list button {
  display: flex; align-items: center; gap: var(--s2); width: 100%;
  padding: 8px 10px; border: 0; border-radius: var(--r-sm); background: none;
  color: var(--text) !important; font: 400 var(--fs-sm)/1.3 inherit; text-align: left; text-decoration: none; cursor: pointer;
}
.menu-list a:hover, .menu-list button:hover { background: var(--surface-2); }
.menu-list .danger { color: var(--danger) !important; }
.menu-list hr { border: 0; border-top: 1px solid var(--border); margin: var(--s1) 0; }

/* ── Badges ─────────────────────────────────────────────────────────────── */
.badge {
  --c: var(--text-2);
  display: inline-flex; align-items: center; gap: 6px; height: 22px; padding: 0 8px;
  border-radius: 999px; font-size: var(--fs-xs); font-weight: 500; line-height: 1;
  color: var(--c); background: color-mix(in srgb, var(--c) 14%, transparent); white-space: nowrap;
}
.badge::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.badge[data-tone="ok"] { --c: var(--ok); }
.badge[data-tone="warn"] { --c: var(--warn); }
.badge[data-tone="danger"] { --c: var(--danger); }
.badge[data-tone="accent"] { --c: var(--accent-text); }
.badge.plain::before { display: none; }

/* ── Filtros ────────────────────────────────────────────────────────────── */
.filters { display: flex; flex-wrap: wrap; gap: var(--s2); align-items: flex-end; margin-bottom: var(--s4); }
.filters .search { flex: 1 1 280px; }
.filters .field { min-width: 150px; }
.filters details { flex-basis: 100%; }
.filters details > summary { color: var(--text-2); cursor: pointer; font-size: var(--fs-sm); padding: var(--s1) 0; }
.chips { display: flex; flex-wrap: wrap; gap: var(--s2); margin: calc(var(--s2) * -1) 0 var(--s4); }
.chip { display: inline-flex; align-items: center; gap: 6px; height: 26px; padding: 0 10px; border-radius: 999px; background: var(--surface-2); color: var(--text-2) !important; font-size: var(--fs-xs); text-decoration: none; }
.chip:hover { color: var(--text) !important; }

/* ── Formulários ────────────────────────────────────────────────────────── */
.field { display: grid; gap: 6px; align-content: start; min-width: 0; }
.field > label, .label { font-size: var(--fs-sm); font-weight: 500; color: var(--text); }
.field span.req, .field .req { color: var(--danger); }
.field > label .req, .label .req { color: var(--danger); }
.field > label .opt, .label .opt { color: var(--text-3); font-weight: 400; }
.input,
.field input:not([type=checkbox]):not([type=radio]):not([type=hidden]),
.field select,
.field textarea {
  width: 100%; min-height: 38px; padding: 8px 12px;
  border-radius: var(--r-sm); border: 1px solid var(--border-strong);
  background: var(--bg); color: var(--text); font: inherit;
}
.field textarea { min-height: 88px; resize: vertical; }
.field input::placeholder, .field textarea::placeholder, .input::placeholder { color: var(--text-3); }
.field input:focus, .field select:focus, .field textarea:focus, .input:focus { outline: 2px solid var(--focus); outline-offset: 0; border-color: transparent; }
.field .hint { font-size: var(--fs-xs); color: var(--text-3); }
.field.has-error input, .field.has-error select, .field.has-error textarea { border-color: var(--danger); }
.field .error { font-size: var(--fs-xs); color: var(--danger); }
.input-group { display: flex; align-items: stretch; }
.input-group > .prefix { display: grid; place-items: center; padding: 0 10px; border: 1px solid var(--border-strong); border-right: 0; border-radius: var(--r-sm) 0 0 var(--r-sm); background: var(--surface-2); color: var(--text-2); }
.input-group > .prefix + input { border-top-left-radius: 0 !important; border-bottom-left-radius: 0 !important; }
.check { display: inline-flex; align-items: center; gap: var(--s2); font-size: var(--fs-sm); color: var(--text); cursor: pointer; }
.check input { width: 16px; height: 16px; accent-color: var(--accent); }
.form-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: var(--s4); }
.form-narrow { max-width: 760px; }
.form-wide { max-width: 1040px; }
.form-actions { display: flex; justify-content: flex-end; flex-wrap: wrap; gap: var(--s2); margin-top: var(--s6); }
@media (max-width: 640px) {
  .form-actions { position: sticky; bottom: var(--bottombar-h); z-index: 50; margin-left: calc(var(--s4) * -1); margin-right: calc(var(--s4) * -1); padding: var(--s3) var(--s4); background: var(--bg); border-top: 1px solid var(--border); }
  .form-actions .btn { flex: 1; }
}

/* ── Tabelas ────────────────────────────────────────────────────────────── */
.table-wrap { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-md); overflow: auto; }
.table { width: 100%; border-collapse: collapse; font-size: var(--fs-sm); color: var(--text); }
.table th, .table thead th {
  position: sticky; top: 0; z-index: 1;
  background: var(--surface-2); color: var(--text-2);
  font-weight: 500; font-size: var(--fs-xs); text-transform: none; letter-spacing: 0;
  text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--border); white-space: nowrap;
}
.table thead th a, .table th a { color: inherit !important; text-decoration: none; }
.table th a:hover { color: var(--text) !important; }
.table th.num, .table thead th.num { text-align: right; }
.table td, .table tbody td { padding: 10px 12px; border-bottom: 1px solid var(--border); vertical-align: middle; }
.table tr:last-child td { border-bottom: 0; }
.table tbody tr:hover td { background: color-mix(in srgb, var(--surface-2) 55%, transparent); }
.table .actions { text-align: right; white-space: nowrap; }
.table .primary a, .table a.row-link { color: var(--text) !important; font-weight: 500; text-decoration: none; }
.table .primary a:hover, .table a.row-link:hover { color: var(--accent-text) !important; }
.table-foot { display: flex; flex-wrap: wrap; gap: var(--s3); justify-content: space-between; align-items: center; padding: var(--s3) var(--s4); color: var(--text-2); font-size: var(--fs-sm); border-top: 1px solid var(--border); }
.pager { display: flex; gap: var(--s1); }
@media (max-width: 720px) {
  .table.stack thead { display: none; }
  .table.stack, .table.stack tbody { display: block; }
  .table.stack tr { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2px var(--s3); padding: var(--s3) var(--s4); border-bottom: 1px solid var(--border); }
  .table.stack tr:last-child { border-bottom: 0; }
  .table.stack td { display: block; padding: 0; border: 0; text-align: left; background: none !important; }
  .table.stack td[data-label]:not(.primary):not(.actions)::before { content: attr(data-label) ": "; color: var(--text-3); }
  .table.stack td.primary { grid-column: 1; font-weight: 600; }
  .table.stack td.actions { grid-column: 2; grid-row: 1 / span 4; align-self: center; }
  .table.stack td.hide-sm { display: none; }
  .table.stack td.num { text-align: left; }
}

/* ── Descrições (detalhe) ───────────────────────────────────────────────── */
.dl { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: var(--s4) var(--s6); margin: 0; }
.dl dt { font-size: var(--fs-xs); color: var(--text-3); margin-bottom: 2px; }
.dl dd { margin: 0; color: var(--text); font-weight: 500; overflow-wrap: anywhere; }

/* ── Diálogo ────────────────────────────────────────────────────────────── */
dialog.dialog { margin: auto; }
.dialog { border: 1px solid var(--border); border-radius: var(--r-md); background: var(--surface); color: var(--text); width: min(440px, calc(100vw - 32px)); padding: var(--s6); box-shadow: var(--sh-pop); }
.dialog::backdrop { background: rgba(5, 8, 18, .6); }
.dialog h2 { font-size: var(--fs-lg); margin: 0 0 var(--s2); }
.dialog p { color: var(--text-2); margin: 0; }
.dialog .form-actions { margin-top: var(--s5); position: static; margin-left: 0; margin-right: 0; padding: 0; border: 0; background: none; }

/* ── Avisos e toast ─────────────────────────────────────────────────────── */
.notice {
  --c: var(--accent-text);
  display: flex; gap: var(--s3); align-items: flex-start;
  padding: var(--s3) var(--s4); margin-bottom: var(--s4);
  border-radius: var(--r-sm); border: 1px solid color-mix(in srgb, var(--c) 35%, transparent);
  background: color-mix(in srgb, var(--c) 10%, transparent); color: var(--text);
}
.notice[data-tone="ok"] { --c: var(--ok); }
.notice[data-tone="warn"] { --c: var(--warn); }
.notice[data-tone="danger"] { --c: var(--danger); }
.notice > i { color: var(--c); margin-top: 3px; }
.toasts { position: fixed; right: var(--s4); bottom: var(--s4); display: grid; gap: var(--s2); z-index: 400; }
.toast { --c: var(--accent); background: var(--surface-2); border: 1px solid var(--border-strong); border-left: 3px solid var(--c); border-radius: var(--r-sm); padding: var(--s3) var(--s4); box-shadow: var(--sh-pop); font-size: var(--fs-sm); color: var(--text); }
@media (max-width: 1024px) { .toasts { bottom: calc(var(--bottombar-h) + var(--s3)); left: var(--s4); } }

/* ── Estado vazio ───────────────────────────────────────────────────────── */
.empty { text-align: center; padding: var(--s10) var(--s4); color: var(--text-2); }
.empty > i { font-size: 24px; color: var(--text-3); }
.empty h3 { font-size: var(--fs-lg); color: var(--text); margin: var(--s3) 0 var(--s1); }
.empty .btn { margin-top: var(--s4); }
[aria-busy="true"] { pointer-events: none; opacity: .6; }

/* ── Impressão ──────────────────────────────────────────────────────────── */
@media print {
  .sidebar, .content-topbar, .bottombar, .page-head .actions, .filters, .form-actions { display: none !important; }
  .layout-main { margin: 0; }
  .content-body { padding: 0; }
  body.app { background: #fff; color: #000; }
}
