/* ==========================================================================
   Conciliação de Faturas Aéreas — design system do módulo
   Hierarquia: clareza → hierarquia visual → análise → produtividade → estética.
   Cores com significado: marca (ação/navegação), status (ok/atenção/erro/neutro)
   e séries de dados (BSP/Gol/Azul). Status nunca aparece sem ícone + texto.
   ========================================================================== */
:root {
  /* marca */
  --brand: #c0182f; --brand-strong: #9b1325; --brand-soft: #fcecee; --brand-line: #f3c7ce;
  /* texto e superfícies */
  --ink: #1d2129; --ink-2: #454b57; --muted: #6a707c; --faint: #9aa0aa;
  --bg: #f4f5f7; --surface: #fff; --surface-2: #f8f9fa; --surface-3: #eff1f4;
  --line: #e4e6eb; --line-strong: #cfd3da;
  /* status (sempre com ícone + rótulo) */
  --ok: #157a3c; --ok-bg: #eaf7ef; --ok-line: #b8e2c7;
  --warn: #a15c07; --warn-bg: #fff6e5; --warn-line: #f2d49b;
  --err: #b42318; --err-bg: #fef1f0; --err-line: #f6c4be;
  --info: #1f5fbf; --info-bg: #edf3fd; --info-line: #c4d8f6;
  --neutral: #5f6571; --neutral-bg: #f0f1f3; --neutral-line: #dcdfe4;
  /* séries de dados — ordem fixa (a cor segue a entidade) */
  --s-bsp: #2a78d6; --s-gol: #eb6834; --s-azul: #1baf7a; --s-data: #2a78d6;
  /* forma */
  --r-sm: 6px; --r: 10px; --r-lg: 12px; --r-pill: 999px;
  --sh-sm: 0 1px 2px rgba(16, 24, 40, .05);
  --sh-md: 0 1px 3px rgba(16, 24, 40, .06), 0 4px 12px rgba(16, 24, 40, .06);
  --sh-lg: 0 12px 32px rgba(16, 24, 40, .16), 0 2px 6px rgba(16, 24, 40, .08);
  /* espaço */
  --s1: 4px; --s2: 8px; --s3: 12px; --s4: 16px; --s5: 20px; --s6: 24px; --s8: 32px;
  --wrap: 1600px; --pad-x: clamp(16px, 2.6vw, 32px);
  --topbar-h: 56px;
  --font: "Inter", "Segoe UI", system-ui, -apple-system, Roboto, Arial, sans-serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 140px; }
body {
  margin: 0; background: var(--bg); color: var(--ink); font-family: var(--font);
  font-size: 14px; line-height: 1.5; -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; }
:focus-visible { outline: 2px solid var(--info); outline-offset: 2px; border-radius: 4px; }
.ico { flex: none; vertical-align: -3px; }
.num, .tnum { font-variant-numeric: tabular-nums; }
.muted { color: var(--muted); }
.small { font-size: 12.5px; }
.nowrap { white-space: nowrap; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
[hidden] { display: none !important; }

/* ---- Topbar (sticky): marca + abas do módulo ---------------------------- */
.topbar {
  position: sticky; top: 0; z-index: 40; background: var(--surface);
  border-bottom: 1px solid var(--line); box-shadow: inset 0 3px 0 var(--brand);
}
.topbar .bar {
  max-width: var(--wrap); margin: 0 auto; padding: 0 var(--pad-x);
  height: var(--topbar-h); display: flex; align-items: center; gap: var(--s6);
}
.brand { display: flex; align-items: center; gap: 12px; min-width: 0; text-decoration: none !important; flex: none; }
.brand img { height: 30px; width: auto; display: block; }
.brand .sub { font-size: 13px; font-weight: 600; color: var(--ink-2); padding-left: 12px; border-left: 1px solid var(--line); white-space: nowrap; }
.topbar .back { margin-left: auto; font-size: 13px; color: var(--muted); display: inline-flex; gap: 6px; align-items: center; white-space: nowrap; }
.topbar .back:hover { color: var(--brand); text-decoration: none; }

.tabs { display: flex; align-self: stretch; gap: 2px; overflow-x: auto; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tabs a {
  display: inline-flex; align-items: center; gap: 8px; padding: 0 14px; white-space: nowrap;
  color: var(--ink-2); font-weight: 600; font-size: 14px; text-decoration: none;
  border-bottom: 2px solid transparent; margin-bottom: -1px; transition: color .15s, border-color .15s;
}
.tabs a:hover { color: var(--ink); border-bottom-color: var(--line-strong); }
.tabs a.active { color: var(--brand); border-bottom-color: var(--brand); }
.tabs .count {
  font-size: 11.5px; font-weight: 700; min-width: 22px; text-align: center; padding: 1px 7px;
  border-radius: var(--r-pill); background: var(--surface-3); color: var(--ink-2);
}
.tabs a.active .count { background: var(--brand-soft); color: var(--brand); }

/* ---- Barra de progresso de navegação (loading entre páginas) ------------ */
#nav-progress {
  position: fixed; top: 0; left: 0; height: 3px; width: 0; z-index: 100;
  background: var(--info); transition: width .4s ease; box-shadow: 0 0 6px rgba(31, 95, 191, .5);
}
#nav-progress.run { width: 75%; transition: width 8s cubic-bezier(.1, .7, .2, 1); }

/* ---- Layout ------------------------------------------------------------ */
main { max-width: var(--wrap); margin: 0 auto; padding: var(--s6) var(--pad-x) 56px; }
.stack > * + * { margin-top: var(--s5); }
.grid { display: grid; gap: var(--s4); }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3-2 { grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); }
@media (max-width: 1080px) { .grid-2, .grid-3-2 { grid-template-columns: minmax(0, 1fr); } }

/* ---- Cabeçalho da página ---------------------------------------------- */
.crumbs { display: flex; align-items: center; gap: 6px; font-size: 13px; color: var(--muted); margin-bottom: 6px; flex-wrap: wrap; }
.crumbs a { color: var(--muted); }
.crumbs a:hover { color: var(--brand); }
.crumbs .ico { opacity: .6; }
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: var(--s4); flex-wrap: wrap; margin-bottom: var(--s4); }
.page-head h1 { font-size: 24px; line-height: 1.2; font-weight: 700; margin: 0; letter-spacing: -.015em; }
.page-head .subtitle { margin: 4px 0 0; color: var(--ink-2); max-width: 78ch; }
.page-head .meta { display: flex; flex-wrap: wrap; gap: 6px 16px; margin-top: 8px; font-size: 12.5px; color: var(--muted); }
.page-head .meta span { display: inline-flex; align-items: center; gap: 6px; }
.actions { display: flex; gap: var(--s2); align-items: center; flex-wrap: wrap; }
.dot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; flex: none; background: var(--faint); }
.dot.ok { background: var(--ok); } .dot.warn { background: var(--warn); } .dot.err { background: var(--err); } .dot.info { background: var(--info); }
.dot.pulse { animation: pulse 1.4s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: .35; } }

/* ---- Botões ----------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 36px; padding: 0 14px; border-radius: 8px; border: 1px solid transparent;
  font: 600 13.5px/1 var(--font); cursor: pointer; white-space: nowrap; text-decoration: none !important;
  transition: background .15s, border-color .15s, color .15s, box-shadow .15s;
}
.btn-primary { background: var(--brand); color: #fff; }
.btn-primary:hover { background: var(--brand-strong); }
.btn-secondary { background: var(--surface); color: var(--ink); border-color: var(--line-strong); box-shadow: var(--sh-sm); }
.btn-secondary:hover { background: var(--surface-2); border-color: var(--faint); }
.btn-ghost { background: transparent; color: var(--ink-2); }
.btn-ghost:hover { background: var(--surface-3); color: var(--ink); }
.btn-danger { background: var(--surface); color: var(--err); border-color: var(--err-line); }
.btn-danger:hover { background: var(--err-bg); }
.btn-sm { height: 30px; padding: 0 10px; font-size: 12.5px; border-radius: 7px; }
.btn-icon { width: 32px; height: 32px; padding: 0; }
.btn[disabled], .btn.loading { opacity: .6; cursor: default; pointer-events: none; }
.btn .spin { width: 14px; height: 14px; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---- Menu (progressive disclosure) ------------------------------------ */
.menu { position: relative; }
.menu > summary { list-style: none; }
.menu > summary::-webkit-details-marker { display: none; }
.menu-pop {
  position: absolute; right: 0; top: calc(100% + 6px); z-index: 50; min-width: 280px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--sh-lg); padding: 6px;
}
.menu-pop form { margin: 0; }
.menu-item {
  display: flex; gap: 10px; align-items: flex-start; width: 100%; text-align: left; padding: 9px 10px;
  border: 0; background: none; border-radius: 7px; cursor: pointer; font: 500 13.5px/1.35 var(--font); color: var(--ink);
}
.menu-item:hover { background: var(--surface-2); }
.menu-item small { display: block; color: var(--muted); font-weight: 400; font-size: 12px; margin-top: 2px; }
.menu-item.danger { color: var(--err); }
.menu-sep { height: 1px; background: var(--line); margin: 6px 4px; }

/* ---- Cartões ---------------------------------------------------------- */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--sh-sm); }
.card-pad { padding: var(--s5); }
.card-head { display: flex; align-items: flex-start; justify-content: space-between; gap: var(--s3); padding: var(--s4) var(--s5) 0; flex-wrap: wrap; }
.card-head h2, .section-title { font-size: 15px; font-weight: 650; margin: 0; display: flex; align-items: center; gap: 6px; color: var(--ink); }
.card-head .sub { margin: 2px 0 0; font-size: 12.5px; color: var(--muted); max-width: 80ch; }
.card-body { padding: var(--s4) var(--s5) var(--s5); }
.section-label { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin: 0 0 var(--s2); }

/* ---- Tooltip de ajuda -------------------------------------------------- */
.hint {
  display: inline-grid; place-items: center; width: 18px; height: 18px; padding: 0; border: 0; border-radius: 50%;
  background: none; color: var(--faint); cursor: help; flex: none;
}
.hint:hover, .hint:focus-visible { color: var(--info); background: var(--info-bg); }
.hint .ico { vertical-align: 0; }
#tip {
  position: fixed; z-index: 120; max-width: 320px; pointer-events: none; opacity: 0; transform: translateY(2px);
  background: #1d2129; color: #fff; font-size: 12.5px; line-height: 1.45; padding: 8px 11px; border-radius: 8px;
  box-shadow: var(--sh-lg); transition: opacity .12s, transform .12s;
}
#tip.on { opacity: 1; transform: none; }
#tip b { font-weight: 650; }
#tip .t-row { display: flex; justify-content: space-between; gap: 16px; }
#tip .t-sw { display: inline-block; width: 9px; height: 9px; border-radius: 2px; margin-right: 6px; vertical-align: 0; }
#tip .t-muted { opacity: .72; }

/* ---- Barra de filtros (sticky) ---------------------------------------- */
.filterbar {
  position: sticky; top: var(--topbar-h); z-index: 30; margin: 0 0 var(--s5);
  background: rgba(244, 245, 247, .92); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  padding: 10px 0; transition: box-shadow .2s;
}
.filterbar.stuck { box-shadow: 0 8px 12px -10px rgba(16, 24, 40, .25); }
.filterbar .row { display: flex; align-items: center; gap: var(--s2); flex-wrap: wrap; }
.filterbar .result { margin-left: auto; font-size: 12.5px; color: var(--muted); white-space: nowrap; }
.filterbar .result b { color: var(--ink); font-weight: 650; }
.filterbar .chips { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; margin-top: 8px; font-size: 12.5px; color: var(--muted); }
.fctl {
  display: inline-flex; align-items: center; gap: 8px; height: 36px; padding: 0 12px; border-radius: 8px;
  background: var(--surface); border: 1px solid var(--line-strong); box-shadow: var(--sh-sm); color: var(--ink);
  font: 500 13.5px/1 var(--font); cursor: pointer; white-space: nowrap;
}
.fctl:hover { border-color: var(--faint); }
.fctl.active { border-color: var(--info); background: var(--info-bg); color: var(--info); }
.fctl .k { color: var(--muted); font-weight: 500; }
.fctl.active .k { color: var(--info); opacity: .8; }
.fctl .ico { color: var(--muted); }
.fctl.active .ico { color: var(--info); }
.fsearch { position: relative; flex: 1 1 220px; max-width: 340px; min-width: 180px; }
.fsearch .ico { position: absolute; left: 11px; top: 11px; color: var(--muted); pointer-events: none; }
.fsearch input[type=search] { width: 100%; padding-left: 34px; }
.fselect { position: relative; }
.fselect select { appearance: none; -webkit-appearance: none; padding-right: 30px; cursor: pointer; }
.fselect .ico { position: absolute; right: 9px; top: 11px; color: var(--muted); pointer-events: none; }
.fselect.active select { border-color: var(--info); background-color: var(--info-bg); color: var(--info); }
.chip {
  display: inline-flex; align-items: center; gap: 4px; height: 26px; padding: 0 4px 0 10px; border-radius: var(--r-pill);
  background: var(--info-bg); color: var(--info); border: 1px solid var(--info-line); font-weight: 600; font-size: 12.5px;
}
.chip .k { font-weight: 500; opacity: .8; }
.chip button { display: inline-grid; place-items: center; width: 20px; height: 20px; border: 0; border-radius: 50%; background: none; color: inherit; cursor: pointer; }
.chip button:hover { background: rgba(31, 95, 191, .14); }
.linkbtn { border: 0; background: none; color: var(--brand); font: 600 12.5px var(--font); cursor: pointer; padding: 4px 6px; border-radius: 6px; }
.linkbtn:hover { background: var(--brand-soft); }

/* ---- Inputs ------------------------------------------------------------ */
input[type=text], input[type=password], input[type=search], input[type=date], input[type=number], select {
  height: 36px; padding: 0 11px; border: 1px solid var(--line-strong); border-radius: 8px; background: var(--surface);
  font: 400 13.5px var(--font); color: var(--ink); box-shadow: var(--sh-sm); min-width: 0;
}
input:focus, select:focus { outline: none; border-color: var(--info); box-shadow: 0 0 0 3px rgba(31, 95, 191, .15); }
.field { display: flex; flex-direction: column; gap: 6px; }
.field > label, .field > .label { font-size: 13px; font-weight: 600; color: var(--ink); margin: 0; }
.field .help { font-size: 12px; color: var(--muted); }
.field .errorlist, .errorlist { list-style: none; margin: 0; padding: 0; color: var(--err); font-size: 12.5px; }

/* Dropzone para <input type=file> */
.dropzone {
  position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; text-align: center;
  padding: 28px 16px; border: 1.5px dashed var(--line-strong); border-radius: var(--r); background: var(--surface-2);
  color: var(--ink-2); transition: border-color .15s, background .15s; cursor: pointer;
}
.dropzone:hover, .dropzone.over { border-color: var(--info); background: var(--info-bg); }
.dropzone input[type=file] { position: absolute; inset: 0; opacity: 0; cursor: pointer; width: 100%; }
.dropzone .dz-ico { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: var(--surface); color: var(--info); box-shadow: var(--sh-sm); }
.dropzone strong { color: var(--ink); font-weight: 600; }
.dropzone .files { font-size: 12.5px; color: var(--info); font-weight: 600; word-break: break-all; }

/* ---- Popover (date range, mais filtros) -------------------------------- */
.pop {
  position: absolute; z-index: 60; margin-top: 6px; background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r-lg); box-shadow: var(--sh-lg); padding: var(--s3);
}
.pop-wrap { position: relative; }
.pop .pop-foot { display: flex; align-items: center; justify-content: flex-end; gap: var(--s2); border-top: 1px solid var(--line); margin: var(--s3) calc(-1 * var(--s3)) 0; padding: var(--s3) var(--s3) 0; }
.pop .pop-foot .hint { margin-right: auto; font-size: 12.5px; color: var(--muted); }
.more-pop { min-width: 260px; display: grid; gap: var(--s3); }

/* Date range picker */
.dr { display: flex; gap: var(--s3); }
.dr-presets { display: flex; flex-direction: column; gap: 2px; min-width: 150px; border-right: 1px solid var(--line); padding-right: var(--s3); }
.dr-presets button { text-align: left; border: 0; background: none; padding: 7px 10px; border-radius: 7px; cursor: pointer; font: 500 13px var(--font); color: var(--ink-2); }
.dr-presets button:hover { background: var(--surface-2); color: var(--ink); }
.dr-presets button.on { background: var(--info-bg); color: var(--info); font-weight: 600; }
.dr-cals { display: flex; gap: var(--s5); }
.cal { width: 238px; }
.cal-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 6px; }
.cal-head b { font-size: 13.5px; font-weight: 650; text-transform: capitalize; }
.cal-head button { width: 28px; height: 28px; border: 0; background: none; border-radius: 7px; cursor: pointer; color: var(--ink-2); display: grid; place-items: center; }
.cal-head button:hover { background: var(--surface-3); }
.cal-head button[disabled] { visibility: hidden; }
.cal-grid { display: grid; grid-template-columns: repeat(7, 34px); gap: 0; }
.cal-grid .wd { font-size: 11px; font-weight: 600; color: var(--faint); text-align: center; height: 26px; line-height: 26px; text-transform: uppercase; }
.cal-grid button {
  height: 34px; border: 0; background: none; font: 500 13px var(--font); color: var(--ink); cursor: pointer; border-radius: 0;
  font-variant-numeric: tabular-nums; position: relative;
}
.cal-grid button:hover { background: var(--surface-3); border-radius: 7px; }
.cal-grid button.out { visibility: hidden; }
.cal-grid button.today::after { content: ""; position: absolute; left: 50%; bottom: 5px; width: 4px; height: 4px; margin-left: -2px; border-radius: 50%; background: var(--brand); }
.cal-grid button.in { background: var(--info-bg); color: var(--info); border-radius: 0; }
.cal-grid button.start, .cal-grid button.end { background: var(--info); color: #fff; border-radius: 7px; }
.cal-grid button.start.has-end { border-radius: 7px 0 0 7px; }
.cal-grid button.end.has-start { border-radius: 0 7px 7px 0; }
.cal-grid button.start.end { border-radius: 7px; }
.dr-manual { display: flex; gap: var(--s2); align-items: center; margin-top: var(--s3); font-size: 12.5px; color: var(--muted); }
.dr-manual input { height: 32px; width: 140px; font-size: 13px; }

/* ---- KPIs -------------------------------------------------------------- */
.kpis { display: grid; gap: var(--s3); grid-template-columns: repeat(4, minmax(0, 1fr)); }
.kpis.k3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.kpis.k5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.kpis.k6 { grid-template-columns: repeat(6, minmax(0, 1fr)); }
.kpis.k6 .kpi { padding-left: var(--s4); padding-right: var(--s4); }
.kpis.k6 .kpi.hero .kpi-value { font-size: 26px; }
@media (max-width: 1500px) { .kpis.k6 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 1180px) { .kpis, .kpis.k5, .kpis.k6 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .kpis, .kpis.k3, .kpis.k5, .kpis.k6 { grid-template-columns: minmax(0, 1fr); } }
.kpi { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: var(--s4) var(--s5); box-shadow: var(--sh-sm); min-width: 0; display: flex; flex-direction: column; }
.kpi-head { display: flex; align-items: center; gap: 4px; font-size: 13px; color: var(--ink-2); font-weight: 550; }
.kpi-head .ico-wrap { width: 26px; height: 26px; border-radius: 7px; display: grid; place-items: center; margin-right: 6px; background: var(--surface-3); color: var(--ink-2); }
.kpi-value { font-size: 26px; line-height: 1.15; font-weight: 700; letter-spacing: -.02em; margin-top: 10px; font-variant-numeric: tabular-nums; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.kpi-value .unit { font-size: 15px; font-weight: 600; color: var(--muted); letter-spacing: 0; margin-right: 3px; }
.kpi-value .of { font-size: 15px; font-weight: 500; color: var(--muted); letter-spacing: 0; }
.kpi-foot { margin-top: 6px; font-size: 12.5px; color: var(--muted); display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.kpi-foot .st { display: inline-flex; align-items: center; gap: 4px; font-weight: 600; }
.kpi-foot .st.ok { color: var(--ok); } .kpi-foot .st.err { color: var(--err); } .kpi.is-err { border-color: var(--err-line); }
.kpi.is-err .kpi-value { color: var(--err); }
.kpi.is-ok .kpi-value { color: var(--ink); }
.kpi.hero .kpi-value { font-size: 30px; }
.kpis.sm .kpi { padding: var(--s3) var(--s4); box-shadow: none; background: var(--surface); }
.kpis.sm .kpi-value { font-size: 19px; margin-top: 4px; }
/* cards lado a lado: título com 2 linhas reservadas -> números na mesma altura;
   legenda (cálculo) separada por uma linha logo abaixo do número; a barra
   (meter), quando houver, vai para o fim do card */
.kpis:not(.sm) .kpi-head { min-height: 36px; line-height: 1.3; }
.kpis:not(.sm) .kpi-value { height: 36px; line-height: 36px; margin-bottom: 8px; }
.kpis:not(.sm) .kpi-foot { margin-top: 0; padding-top: 10px; border-top: 1px solid var(--line); }
.kpis:not(.sm) .kpi:has(.meter) .kpi-foot { margin-bottom: 10px; }
.kpis:not(.sm) .meter { margin-top: auto; }
.meter { height: 6px; border-radius: var(--r-pill); background: var(--surface-3); overflow: hidden; margin-top: 10px; }
.meter > span { display: block; height: 100%; background: var(--s-data); border-radius: var(--r-pill); transition: width .3s; }
.meter.ok > span { background: var(--ok); }
@media (max-width: 1400px) { .kpi-value { font-size: 23px; } .kpi.hero .kpi-value { font-size: 26px; } }

/* ---- Badges de status (ícone + texto) --------------------------------- */
.badge {
  display: inline-flex; align-items: center; gap: 5px; height: 22px; padding: 0 9px 0 7px; border-radius: var(--r-pill);
  font-size: 12px; font-weight: 600; white-space: nowrap; border: 1px solid transparent; line-height: 1;
}
.badge .ico { vertical-align: 0; }
.badge.ok { background: var(--ok-bg); color: var(--ok); border-color: var(--ok-line); }
.badge.err { background: var(--err-bg); color: var(--err); border-color: var(--err-line); }
.badge.warn { background: var(--warn-bg); color: var(--warn); border-color: var(--warn-line); }
.badge.info { background: var(--info-bg); color: var(--info); border-color: var(--info-line); }
.badge.neutral { background: var(--neutral-bg); color: var(--neutral); border-color: var(--neutral-line); }
.src { display: inline-flex; align-items: center; gap: 7px; font-weight: 600; }
.src::before { content: ""; width: 9px; height: 9px; border-radius: 3px; background: var(--c, var(--faint)); }
.src.bsp { --c: var(--s-bsp); } .src.gol { --c: var(--s-gol); } .src.azul { --c: var(--s-azul); }

/* ---- Alertas ----------------------------------------------------------- */
.alert { display: flex; gap: 12px; align-items: flex-start; padding: 12px 16px; border-radius: var(--r); border: 1px solid; font-size: 13.5px; margin-bottom: var(--s4); }
.alert > .ico { margin-top: 2px; }
.alert .a-body { flex: 1; min-width: 0; }
.alert .a-title { font-weight: 650; }
.alert p { margin: 2px 0 0; }
.alert details { margin-top: 6px; font-size: 12.5px; }
.alert details summary { cursor: pointer; color: inherit; opacity: .85; font-weight: 600; }
.alert details code { display: block; margin-top: 6px; white-space: pre-wrap; word-break: break-word; font-size: 12px; background: rgba(255, 255, 255, .6); padding: 8px; border-radius: 6px; color: var(--ink-2); }
.alert.warn { background: var(--warn-bg); border-color: var(--warn-line); color: #6d3f05; }
.alert.warn > .ico { color: var(--warn); }
.alert.err { background: var(--err-bg); border-color: var(--err-line); color: #7a1a12; }
.alert.err > .ico { color: var(--err); }
.alert.info { background: var(--info-bg); border-color: var(--info-line); color: #173f7d; }
.alert.info > .ico { color: var(--info); }
.alert.ok { background: var(--ok-bg); border-color: var(--ok-line); color: #0f5129; }
.alert.ok > .ico { color: var(--ok); }

/* ---- Toasts (feedback de ação) ---------------------------------------- */
#toasts { position: fixed; right: 20px; bottom: 20px; z-index: 130; display: grid; gap: 8px; max-width: min(420px, calc(100vw - 32px)); }
.toast {
  display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border-radius: var(--r); background: #1d2129; color: #fff;
  box-shadow: var(--sh-lg); font-size: 13.5px; animation: toast-in .2s ease-out;
}
.toast .ico { margin-top: 2px; }
.toast.ok .ico { color: #6ee7a0; } .toast.err .ico { color: #ff9b91; } .toast.warn .ico { color: #ffd48a; } .toast.info .ico { color: #9cc3ff; }
.toast button { margin-left: auto; border: 0; background: none; color: #fff; opacity: .6; cursor: pointer; padding: 0 0 0 8px; }
.toast.out { opacity: 0; transform: translateY(6px); transition: .25s; }
@keyframes toast-in { from { opacity: 0; transform: translateY(8px); } }

/* ---- Tabelas ----------------------------------------------------------- */
.table-wrap { overflow: auto; max-height: min(72vh, 760px); border-top: 1px solid var(--line); -webkit-overflow-scrolling: touch; }
.card > .table-wrap:last-child { border-radius: 0 0 var(--r-lg) var(--r-lg); }
.table-wrap.free { max-height: none; }
table.dt { width: 100%; border-collapse: separate; border-spacing: 0; font-size: 13px; }
.dt th, .dt td { padding: 10px 14px; text-align: left; white-space: nowrap; border-bottom: 1px solid var(--line); vertical-align: middle; }
.dt thead th {
  position: sticky; top: 0; z-index: 3; background: var(--surface-2); color: var(--ink-2);
  font-size: 12px; font-weight: 650; letter-spacing: .01em; border-bottom: 1px solid var(--line-strong); user-select: none;
}
.dt th.sortable { cursor: pointer; }
.dt th.sortable:hover { color: var(--ink); background: var(--surface-3); }
.dt th .th { display: inline-flex; align-items: center; gap: 4px; }
.dt th .sort-ico { width: 10px; opacity: .35; font-size: 10px; }
.dt th[aria-sort] .sort-ico { opacity: 1; color: var(--info); }
.dt th.r, .dt td.r { text-align: right; }
.dt th.r .th { flex-direction: row-reverse; }
.dt th.c, .dt td.c { text-align: center; }
.dt td.r, .dt td.num { font-variant-numeric: tabular-nums; }
.dt tbody tr { transition: background .1s; }
.dt tbody tr:hover { background: #f6f8fb; }
.dt tbody tr:last-child td { border-bottom: 0; }
.dt td .sub { display: block; font-size: 12px; color: var(--muted); margin-top: 1px; }
.dt td.strong, .dt .strong { font-weight: 650; }
.dt td.neg { color: var(--err); }
.dt .dim { color: var(--faint); }
.dt tr.row-div td:first-child { box-shadow: inset 3px 0 0 var(--err); }
.dt tr.row-div { background: #fffafa; }
.dt tr.row-div:hover { background: #fdf3f3; }
.dt td.sticky-col, .dt th.sticky-col { position: sticky; left: 0; z-index: 2; background: inherit; }
.dt thead th.sticky-col { z-index: 4; background: var(--surface-2); }
.dt tbody td.sticky-col { background: var(--surface); }
.dt tbody tr:hover td.sticky-col { background: #f6f8fb; }
.dt tbody tr.row-div td.sticky-col { background: #fffafa; }
.dt td.actions-cell { text-align: right; width: 1%; }
.dt td.actions-cell .actions { justify-content: flex-end; flex-wrap: nowrap; gap: 4px; }
.dt a.cell-link { color: var(--ink); font-weight: 600; }
.dt a.cell-link:hover { color: var(--brand); }
table.kv { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.kv th, .kv td { text-align: left; padding: 9px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.kv th { color: var(--muted); font-weight: 500; width: 42%; padding-right: 16px; }
.kv tr:last-child th, .kv tr:last-child td { border-bottom: 0; }

.tfoot { display: flex; align-items: center; justify-content: space-between; gap: var(--s3); flex-wrap: wrap; padding: 10px var(--s5); border-top: 1px solid var(--line); font-size: 12.5px; color: var(--muted); }
.pager { display: flex; align-items: center; gap: 4px; }
.pager button { min-width: 30px; height: 30px; padding: 0 8px; border: 1px solid transparent; background: none; border-radius: 7px; cursor: pointer; font: 500 12.5px var(--font); color: var(--ink-2); font-variant-numeric: tabular-nums; }
.pager button:hover:not([disabled]) { background: var(--surface-3); }
.pager button.on { border-color: var(--line-strong); background: var(--surface); color: var(--ink); font-weight: 650; box-shadow: var(--sh-sm); }
.pager button[disabled] { opacity: .35; cursor: default; }
.pager .gap { padding: 0 4px; color: var(--faint); }
.tfoot select { height: 30px; font-size: 12.5px; padding: 0 8px; }
.toolbar { display: flex; gap: var(--s2); align-items: center; flex-wrap: wrap; padding: 0 var(--s5) var(--s3); }

/* ---- Estados: vazio / erro / loading ---------------------------------- */
.empty { text-align: center; padding: 40px 20px; color: var(--muted); }
.empty .e-ico { width: 44px; height: 44px; margin: 0 auto 10px; border-radius: 50%; display: grid; place-items: center; background: var(--surface-3); color: var(--muted); }
.empty .e-title { font-weight: 650; color: var(--ink); font-size: 14.5px; }
.empty p { margin: 4px auto 0; max-width: 52ch; font-size: 13px; }
.empty .e-chips { display: flex; gap: 6px; justify-content: center; flex-wrap: wrap; margin-top: 10px; }
.empty .btn { margin-top: 14px; }
.dt td.empty-cell { padding: 0; white-space: normal; }
.skel { background: linear-gradient(90deg, var(--surface-3) 25%, #f7f8fa 37%, var(--surface-3) 63%); background-size: 400% 100%; animation: skel 1.3s ease infinite; border-radius: 8px; }
@keyframes skel { 0% { background-position: 100% 50%; } 100% { background-position: 0 50%; } }
#page-skeleton { display: none; }
body.navigating main > :not(#page-skeleton) { display: none; }
body.navigating #page-skeleton { display: block; }
.skel-kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin: 16px 0 20px; }
.skel-kpis .skel { height: 104px; border-radius: 12px; }
@media (max-width: 800px) { .skel-kpis { grid-template-columns: 1fr 1fr; } }

/* ---- Gráficos ---------------------------------------------------------- */
.chart { position: relative; width: 100%; }
.chart svg { display: block; width: 100%; height: auto; overflow: visible; }
.chart .grid-line { stroke: var(--line); stroke-width: 1; }
.chart .axis-line { stroke: var(--line-strong); stroke-width: 1; }
.chart text { fill: var(--muted); font-family: var(--font); font-size: 11px; font-variant-numeric: tabular-nums; }
.chart .hit { fill: transparent; cursor: pointer; }
.chart .bar { transition: opacity .12s; }
.chart.hovering .bar { opacity: .45; }
.chart.hovering .col-on .bar { opacity: 1; }
.chart .col-bg { fill: transparent; }
.chart .col-on .col-bg { fill: rgba(16, 24, 40, .04); }
.chart-empty { padding: 36px 12px; text-align: center; color: var(--muted); font-size: 13px; }
.legend { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: 12.5px; color: var(--ink-2); }
.legend span { display: inline-flex; align-items: center; gap: 6px; }
.legend i { width: 10px; height: 10px; border-radius: 3px; display: inline-block; background: var(--c); }
.legend i.line { height: 2px; border-radius: 1px; width: 16px; }

/* barra empilhada de status + lista */
.stackbar { display: flex; height: 14px; border-radius: 4px; overflow: hidden; gap: 2px; background: var(--surface); }
.stackbar span { display: block; height: 100%; min-width: 3px; transition: width .3s; }
.stackbar span:first-child { border-radius: 4px 0 0 4px; }
.stackbar span:last-child { border-radius: 0 4px 4px 0; }
.stackbar span:only-child { border-radius: 4px; }
.st-ok { background: var(--ok); } .st-div { background: var(--err); } .st-sem { background: #b5bac3; }
.status-list { margin-top: var(--s4); display: grid; gap: 2px; }
.status-row { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: 16px; align-items: center; padding: 9px 10px; border-radius: 8px; font-size: 13px; cursor: pointer; border: 0; background: none; text-align: left; font-family: var(--font); color: var(--ink); width: 100%; }
.status-row:hover { background: var(--surface-2); }
.status-row.on { background: var(--info-bg); }
.status-row .v { font-variant-numeric: tabular-nums; font-weight: 650; text-align: right; }
.status-row .p { font-variant-numeric: tabular-nums; color: var(--muted); width: 52px; text-align: right; }

/* ranking horizontal */
.rank { display: grid; gap: 4px; }
.rank-row { display: grid; grid-template-columns: minmax(96px, 150px) minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 6px 8px; border-radius: 8px; font-size: 13px; color: var(--ink); text-decoration: none !important; }
.rank-row:hover { background: var(--surface-2); }
.rank-row .lbl { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rank-row .lbl small { display: block; color: var(--muted); font-size: 11.5px; }
.rank-row .track { height: 10px; background: var(--surface-3); border-radius: 0 4px 4px 0; overflow: hidden; }
.rank-row .track span { display: block; height: 100%; background: var(--c, var(--s-data)); border-radius: 0 4px 4px 0; }
.rank-row .v { font-variant-numeric: tabular-nums; font-weight: 650; text-align: right; white-space: nowrap; }

/* ---- Diálogo (enviar fatura) ------------------------------------------ */
dialog.modal { border: 0; padding: 0; border-radius: 14px; width: min(560px, calc(100vw - 32px)); box-shadow: var(--sh-lg); color: var(--ink); }
dialog.modal::backdrop { background: rgba(16, 24, 40, .45); }
.modal-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; padding: 18px 20px 0; }
.modal-head h2 { font-size: 17px; margin: 0; }
.modal-head p { margin: 4px 0 0; color: var(--muted); font-size: 13px; }
.modal-body { padding: 16px 20px; display: grid; gap: 14px; }
.modal-foot { display: flex; justify-content: flex-end; gap: 8px; padding: 14px 20px; border-top: 1px solid var(--line); background: var(--surface-2); border-radius: 0 0 14px 14px; }

/* ---- Log de sincronização --------------------------------------------- */
.synclog { margin: 12px 0 0; max-height: 240px; overflow: auto; background: #111827; color: #d1fae5; padding: 12px 14px; border-radius: 8px; font: 12px/1.55 ui-monospace, Consolas, monospace; white-space: pre-wrap; }
.note-box { white-space: pre-line; background: var(--surface-2); border: 1px solid var(--line); border-radius: 8px; padding: 12px 14px; font-size: 13px; }

/* ==========================================================================
   Controles Financeiros (home + abas de dados do Benner)
   ========================================================================== */
.topbar .user-menu { margin-left: auto; }
.topbar .user-menu summary { gap: 6px; }
.topbar .user-menu .uname { max-width: 160px; overflow: hidden; text-overflow: ellipsis; }

/* cards de navegação da home */
.sec-head { display: flex; align-items: baseline; gap: 10px; margin-bottom: var(--s3); }
.hcards { display: grid; gap: var(--s3); grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); }
.hcard {
  position: relative; display: flex; gap: 14px; align-items: flex-start; padding: var(--s4) var(--s5) var(--s4) var(--s4);
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--sh-sm);
  color: inherit; text-decoration: none !important; transition: border-color .15s, box-shadow .15s, transform .15s;
}
a.hcard:hover { border-color: var(--line-strong); box-shadow: var(--sh-md); transform: translateY(-1px); }
a.hcard:hover .hcard-title { color: var(--brand); }
.hcard-ico { flex: none; width: 40px; height: 40px; border-radius: 10px; display: grid; place-items: center; background: var(--surface-3); color: var(--ink-2); }
.hcard-ico.t-aba { background: var(--info-bg); color: var(--info); }
.hcard-ico.t-conc { background: var(--brand-soft); color: var(--brand); }
.hcard-body { display: flex; flex-direction: column; gap: 2px; min-width: 0; flex: 1; }
.hcard-title { font-weight: 650; font-size: 14.5px; color: var(--ink); transition: color .15s; }
.hcard-desc { font-size: 12.5px; color: var(--muted); line-height: 1.45; }
.hcard-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 6px; margin-top: 8px; font-size: 12px; color: var(--ink-2); }
.hcard-go { position: absolute; right: 14px; top: 50%; transform: translateY(-50%); color: var(--faint); opacity: 0; transition: opacity .15s, right .15s; }
a.hcard:hover .hcard-go { opacity: 1; right: 10px; }
.item-card { cursor: grab; list-style: none; }
.item-card:active { cursor: grabbing; }

/* etapas de progresso (atualização do Benner) */
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.steps li { display: flex; align-items: center; gap: 10px; color: var(--faint); font-size: 13.5px; }
.steps li::before { content: ""; width: 18px; height: 18px; flex: none; border-radius: 50%; border: 2px solid var(--line-strong); box-sizing: border-box; }
.steps li.on { color: var(--ink); font-weight: 600; }
.steps li.on::before { border-color: var(--info); border-right-color: transparent; animation: spin .8s linear infinite; }
.steps li.done { color: var(--ink-2); }
.steps li.done::before { border-color: var(--ok); background: var(--ok) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center/11px no-repeat; }

/* ---- DataTables (abas de dados) no padrão das tabelas do sistema -------- */
.dt-card .dataTables_wrapper { position: relative; }
.dt-card .dataTables_scroll { border-top: 1px solid var(--line); }
.dt-card .dataTables_scrollHead { background: var(--surface-2); }
.dt-card .dataTables_scrollBody { border-bottom: 1px solid var(--line); cursor: grab; }
.dt-card .dataTables_scrollBody:active { cursor: grabbing; }
.dt-card table.dataTable { margin: 0 !important; border-collapse: separate !important; border-spacing: 0; width: 100%; font-size: 13px; }
.dt-card table.dataTable thead th {
  position: relative; background: var(--surface-2); color: var(--ink-2); font-size: 12px; font-weight: 650; text-align: left;
  padding: 10px 26px 8px 12px; border-bottom: 1px solid var(--line-strong); white-space: nowrap; vertical-align: top; min-width: 140px; cursor: pointer;
}
.dt-card table.dataTable thead th.r { text-align: right; }
.dt-card table.dataTable thead th:hover { background: var(--surface-3); color: var(--ink); }
.dt-card table.dataTable thead th::after { content: "↕"; position: absolute; right: 9px; top: 10px; font-size: 10px; opacity: .35; }
.dt-card table.dataTable thead th.sorting_asc::after { content: "↑"; opacity: 1; color: var(--info); }
.dt-card table.dataTable thead th.sorting_desc::after { content: "↓"; opacity: 1; color: var(--info); }
.dt-card table.dataTable thead th.sorting_disabled::after { content: none; }
/* cabeçalho duplicado (oculto) que o DataTables mantém dentro do corpo rolável */
.dt-card .dataTables_scrollBody table.dataTable thead th::after { content: none; }
.dt-card .dataTables_scrollBody table.dataTable thead th { border-bottom: 0; }
/* mensagem de vazio visível mesmo com a tabela muito larga */
.dt-card td.dataTables_empty .empty { position: sticky; left: 0; width: min(100%, calc(min(100vw, var(--wrap)) - 2 * var(--pad-x) - 24px)); }
.dt-card table.dataTable tbody td { padding: 9px 12px; border-bottom: 1px solid var(--line); white-space: nowrap; vertical-align: middle; }
.dt-card table.dataTable tbody td.r { text-align: right; font-variant-numeric: tabular-nums; }
.dt-card table.dataTable tbody tr:hover { background: #f6f8fb; }
.dt-card table.dataTable tbody td.dataTables_empty { padding: 0; white-space: normal; }
.dt-card .dataTables_processing {
  position: absolute; top: 60px; left: 50%; transform: translateX(-50%); z-index: 5; display: flex; align-items: center; gap: 8px;
  background: var(--surface); border: 1px solid var(--line); box-shadow: var(--sh-md); border-radius: 999px; padding: 8px 16px; font-size: 13px; color: var(--ink-2);
}
.dt-card .dataTables_processing::before { content: ""; width: 14px; height: 14px; border: 2px solid var(--info); border-right-color: transparent; border-radius: 50%; animation: spin .7s linear infinite; }
.dt-card .dataTables_processing > div { display: none; }
.dt-card .dt-foot { display: flex; align-items: center; justify-content: space-between; gap: var(--s3); flex-wrap: wrap; padding: 10px var(--s5); font-size: 12.5px; color: var(--muted); }
.dt-card .dataTables_length label { display: inline-flex; align-items: center; gap: 6px; font-weight: 400; margin: 0; }
.dt-card .dataTables_length select { height: 30px; font-size: 12.5px; padding: 0 8px; }
.dt-card .dataTables_paginate { display: flex; align-items: center; gap: 4px; }
.dt-card .dataTables_paginate .paginate_button {
  min-width: 30px; height: 30px; padding: 0 9px; display: inline-flex; align-items: center; justify-content: center; border-radius: 7px;
  border: 1px solid transparent; color: var(--ink-2) !important; cursor: pointer; font-variant-numeric: tabular-nums; text-decoration: none !important;
}
.dt-card .dataTables_paginate .paginate_button:hover { background: var(--surface-3); }
.dt-card .dataTables_paginate .paginate_button.current { border-color: var(--line-strong); background: var(--surface); color: var(--ink) !important; font-weight: 650; box-shadow: var(--sh-sm); }
.dt-card .dataTables_paginate .paginate_button.disabled { opacity: .35; cursor: default; background: none; }
.dt-card .dataTables_paginate .ellipsis { padding: 0 4px; color: var(--faint); }
/* filtros por coluna (Select2) no cabeçalho */
.dt-card thead .select2-container { display: block; margin-top: 6px; font-weight: 400; min-width: 110px; }
.dt-card thead .select2-container--default .select2-selection--single { height: 28px; border: 1px solid var(--line-strong); border-radius: 6px; background: var(--surface); }
.dt-card thead .select2-container--default .select2-selection--single .select2-selection__rendered { line-height: 26px; font-size: 12px; color: var(--ink); padding-left: 8px; }
.dt-card thead .select2-container--default .select2-selection--single .select2-selection__placeholder { color: var(--faint); }
.dt-card thead .select2-container--default .select2-selection--single .select2-selection__arrow { height: 26px; }
.dt-card thead .has-filter .select2-selection--single { border-color: var(--info) !important; background: var(--info-bg) !important; }
.select2-dropdown { border-color: var(--line-strong) !important; border-radius: 8px !important; box-shadow: var(--sh-lg); font-size: 13px; overflow: hidden; }
.select2-container--default .select2-results__option--highlighted[aria-selected] { background: var(--info) !important; }
.colmenu { max-height: 360px; overflow: auto; min-width: 260px; }
.colmenu label { display: flex; align-items: center; gap: 8px; padding: 6px 10px; border-radius: 6px; font-size: 13px; cursor: pointer; margin: 0; font-weight: 400; }
.colmenu label:hover { background: var(--surface-2); }
.colmenu label small { color: var(--faint); margin-left: auto; font-size: 11px; }

/* ---- Responsivo -------------------------------------------------------- */
@media (max-width: 1100px) { .brand .sub { display: none; } }
@media (max-width: 760px) {
  :root { --topbar-h: 0px; }
  .topbar { position: static; }
  .topbar .bar { height: auto; flex-wrap: wrap; row-gap: 0; padding-top: 10px; }
  .tabs { order: 3; width: 100%; height: 44px; margin: 0 calc(-1 * var(--pad-x)); padding: 0 var(--pad-x); }
  .tabs a { padding: 0 12px; }
  .brand img { height: 26px; }
  main { padding-top: var(--s4); }
  .page-head h1 { font-size: 20px; }
  /* no celular a barra quebra em várias linhas: fixá-la ocuparia tela demais */
  .filterbar { position: static; margin-left: calc(-1 * var(--pad-x)); margin-right: calc(-1 * var(--pad-x)); padding-left: var(--pad-x); padding-right: var(--pad-x); }
  .filterbar .result { width: 100%; margin-left: 0; order: 10; }
  .fsearch { max-width: none; flex-basis: 100%; }
  .dr { flex-direction: column; }
  .dr-presets { flex-direction: row; flex-wrap: wrap; border-right: 0; border-bottom: 1px solid var(--line); padding: 0 0 var(--s2); min-width: 0; }
  .dr-cals .cal + .cal { display: none; }
  .pop { position: fixed; left: 12px !important; right: 12px; top: auto !important; bottom: 12px; max-height: 80vh; overflow: auto; }
  .card-head, .card-body, .toolbar { padding-left: var(--s4); padding-right: var(--s4); }
  .tfoot { padding: 10px var(--s4); }
  .page-head .actions { width: 100%; }
  .kpi-value { font-size: 22px; }
  .rank-row { grid-template-columns: 90px minmax(0, 1fr) auto; }
}
@media (max-width: 480px) {
  .tabs .count { display: none; }
  .tabs a { padding: 0 10px; }
  .topbar .back { font-size: 12px; }
  .page-head .actions .btn { flex: 1; }
  .fselect, .pop-wrap[data-more] { flex: 1; }
  .fselect select { width: 100%; }
  .filterbar .hint { display: none; }   /* tooltip é hover: no toque, o texto já está no placeholder/rótulo */
  .fselect:has(#filtro-coluna-data), #dr-wrap { flex: 1 1 100%; }
  #dr-wrap .fctl { width: 100%; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }
@media print { .topbar, .filterbar, .tfoot, .actions, #toasts { display: none !important; } .table-wrap { max-height: none; overflow: visible; } }
