:root {
  font-family: "DM Sans", sans-serif;
  color: #1a2b3c;
  background: #f3f5f6;
  --sidebar-width: 248px;
}
* { box-sizing: border-box; }
body { margin: 0; min-height: 100vh; }
a { color: #e31e24; }
.hub-shell { min-height: 100vh; display: flex; }
.hub-main { flex: 1; min-width: 0; }
.hub-shell--nav .hub-main { margin-left: var(--sidebar-width); }
.nav-toggle {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
}
.hub-topbar { display: none; }
.nav-backdrop { display: none; }
.hub-sidebar {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 40;
  width: var(--sidebar-width);
  height: 100vh;
  display: flex;
  flex-direction: column;
  background: #fff;
  border-right: 1px solid #e0e4e7;
}
.brand {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
  color: inherit;
  text-decoration: none;
  padding: 20px 18px 16px;
  border-bottom: 1px solid #eef1ea;
}
.brand-logo { height: 32px; width: auto; display: block; }
.brand small { color: #89939b; font-size: 0.72rem; }
.logo-mark {
  width: 42px; height: 42px; border-radius: 10px;
  display: grid; place-items: center;
  background: #e31e24; color: #fff; font-family: Outfit, sans-serif; font-weight: 700;
}
.logo-mark--lg { width: 64px; height: 64px; margin: 0 auto 24px; font-size: 1.4rem; }
.nav {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 12px 10px;
  overflow-y: auto;
  flex: 1;
}
.nav a {
  text-decoration: none; color: #263847; font-weight: 700; font-size: 0.82rem;
  padding: 8px 10px; border-radius: 6px; display: block;
}
.nav a.is-on { color: #e31e24; background: rgb(227 30 36 / 8%); }
.nav a:hover { color: #e31e24; }
.nav-group { display: flex; flex-direction: column; }
.nav details.nav-group,
.nav details.nav-branch {
  display: flex;
  flex-direction: column;
}
.nav details > summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  gap: 2px;
}
.nav details > summary::-webkit-details-marker,
.nav details > summary::marker { display: none; content: ""; }
.nav details.nav-group > summary::before,
.nav details.nav-branch > summary::before {
  content: "▸";
  flex-shrink: 0;
  width: 0.9rem;
  color: #89939b;
  font-size: 0.68rem;
  font-weight: 700;
}
.nav details[open] > summary::before { content: "▾"; }
.nav details.nav-group > summary > a {
  flex: 1;
  min-width: 0;
}
.nav details.nav-branch > summary {
  font-size: 0.75rem;
  font-weight: 600;
  color: #263847;
  padding: 6px 10px;
  border-radius: 6px;
  text-transform: none;
  letter-spacing: 0;
}
.nav details.nav-branch > summary:hover { color: #e31e24; }
.nav-sub {
  display: flex;
  flex-direction: column;
  gap: 1px;
  padding: 2px 0 8px 12px;
}
.nav-sub a {
  font-size: 0.75rem;
  font-weight: 600;
  padding: 6px 10px;
}
.nav-sub--tree { padding-left: 6px; }
.nav-sub-label {
  font-size: 0.65rem;
  font-weight: 700;
  color: #89939b;
  padding: 8px 10px 2px;
}
.nav-sub a.is-planned { color: #89939b; font-weight: 500; }
.filters-tabs { display: flex; gap: 6px; align-items: end; padding-bottom: 0; }
.filters-tabs a {
  text-decoration: none; color: #263847; font-weight: 700; font-size: 0.82rem;
  height: 44px; padding: 0 14px; border-radius: 7px; border: 1px solid #e2e5e7; background: #fff;
  display: inline-flex; align-items: center; white-space: nowrap;
}
.filters-tabs a.is-on,
.view-toggle button.is-on { color: #fff; background: #e31e24; border-color: #e31e24; }
.view-toggle button {
  font: inherit; font-weight: 700; font-size: 0.82rem;
  height: 44px; padding: 0 14px; border-radius: 7px; border: 1px solid #e2e5e7;
  background: #fff; color: #263847; cursor: pointer; white-space: nowrap;
}
.view-toggle button:hover { color: #e31e24; border-color: #e31e24; }
.user-menu {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 10px;
  padding: 14px 16px 18px;
  border-top: 1px solid #eef1ea;
}
.user-menu div { display: grid; text-align: left; min-width: 0; }
.user-menu span { color: #89939b; font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.09em; }
.user-menu form { display: flex; }
.user-menu button { width: 100%; }
.user-menu button, .ghost-button {
  border: 1px solid #d8dde0; background: #fff; color: #263847;
  padding: 9px 16px; border-radius: 6px; font-weight: 700; cursor: pointer;
  text-decoration: none; display: inline-flex; align-items: center;
  justify-content: center;
}
.user-menu button:hover, .ghost-button:hover { border-color: #e31e24; color: #e31e24; }
.page { width: min(1400px, calc(100% - 32px)); margin: 0 auto; padding: 40px 0 80px; }
.hub-intro { margin-bottom: 28px; }
.hub-intro h1 {
  font-family: Outfit, sans-serif;
  font-size: clamp(1.6rem, 3vw, 2.6rem);
  letter-spacing: -0.04em; margin: 10px 0 8px;
}
.hub-intro p { color: #687680; margin: 0; }
.eyebrow {
  color: #e31e24; font-size: 0.72rem; font-weight: 700;
  letter-spacing: 0.15em; text-transform: uppercase;
}
.eyebrow .chip {
  margin-left: 8px;
  letter-spacing: 0.04em;
  vertical-align: middle;
}
.eyebrow .chip-papel { text-transform: none; }
.filters {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(8.5rem, 1fr));
  gap: 12px;
  align-items: end;
  background: #fff; padding: 16px 18px; border-radius: 12px;
  border: 1px solid #e2e5e7; margin-bottom: 22px;
}
.filters-consulta,
.filters-report {
  display: flex;
  flex-wrap: wrap;
  width: 100%;
  align-items: end;
}
.filters-consulta > label,
.filters-report > label {
  flex: 1 1 8rem;
}
.filters-consulta .filters-busca,
.filters-report .filters-busca {
  flex: 2 1 16rem;
}
.filters-consulta .filters-tabs,
.filters-consulta .filters-actions,
.filters-report .filters-tabs,
.filters-report .filters-actions {
  flex: 0 0 auto;
}
.filters label { display: grid; gap: 6px; font-size: 0.78rem; font-weight: 700; min-width: 0; }
.filters input, .filters select, .login-content input, .user-form input, .user-form select, .user-pass input {
  height: 44px; width: 100%; border: 1px solid #d8dde1; border-radius: 7px; padding: 0 12px; font: inherit;
}
.filters-busca { min-width: 0; }
.filters-actions {
  display: flex; gap: 8px; align-items: end; flex-wrap: wrap;
}
.view-toolbar { margin-bottom: 18px; }
.filters-actions .primary-button,
.filters-actions .ghost-button { height: 44px; white-space: nowrap; }
.filters input:focus, .login-content input:focus, .user-form input:focus, .user-form select:focus, .user-pass input:focus {
  outline: none; border-color: #e31e24; box-shadow: 0 0 0 4px rgb(227 30 36 / 10%);
}
.primary-button {
  height: 44px; border: 0; border-radius: 7px; padding: 0 18px;
  color: #fff; background: #e31e24; font-weight: 700; cursor: pointer;
  text-decoration: none; display: inline-flex; align-items: center;
}
.primary-button:hover { background: #c9161c; }
.primary-button:disabled { opacity: 0.65; }
.secondary-button {
  border: 1px solid #d8dde0;
  background: #fff;
  color: #263847;
  padding: 8px 12px;
  border-radius: 6px;
  font-weight: 700;
  cursor: pointer;
}
.secondary-button:hover {
  border-color: #e31e24;
  color: #e31e24;
}
.table-wrap {
  overflow: auto; background: #fff; border-radius: 12px;
  border: 1px solid #e2e5e7;
}
table { width: 100%; border-collapse: collapse; }
.dfe-table { table-layout: fixed; }
th, td { padding: 12px 14px; text-align: left; border-bottom: 1px solid #eef1ea; font-size: 0.88rem; }
th { font-size: 0.72rem; letter-spacing: 0.06em; text-transform: uppercase; color: #89939b; }
.dfe-table th, .dfe-table td {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
table.rastreio-table { table-layout: fixed; }
table.rastreio-table th,
table.rastreio-table td {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
table.rastreio-table .col-status { width: 8.4rem; }
table.rastreio-table .col-nf { width: 5.6rem; }
table.rastreio-table .col-cte { width: 5.4rem; }
table.rastreio-table .col-emp { width: 12%; }
table.rastreio-table .col-dest { width: 18%; }
table.rastreio-table .col-transp { width: 14%; }
table.rastreio-table .col-emi { width: 6.4rem; }
table.rastreio-table .col-ocor { width: 16%; }
table.rastreio-table .col-ent { width: 6.4rem; }
table.rastreio-table .chip {
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  display: inline-block;
  vertical-align: bottom;
}
.muted-link { color: #687680; font-size: 0.75rem; font-weight: 600; }
.data-table .col-codigo { width: 7.5rem; white-space: nowrap; }
.data-table .col-desc {
  max-width: 22rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.data-table .col-ncm { width: 6.5rem; white-space: nowrap; }
.data-table .col-uf { width: 3.6rem; white-space: nowrap; }
.data-table .col-un { width: 3.4rem; white-space: nowrap; }
.col-data { width: 7.5rem; white-space: nowrap; }
.col-tipo { width: 4.6rem; }
.col-valor { width: 8.6rem; text-align: right; }
.col-chave { width: 11.5rem; font-size: 0.78rem; }
.col-xml { width: 4.8rem; }
.col-papel { width: 9.2rem; }
.nome-com-chip {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
}
.nome-com-chip .nome-txt {
  overflow: hidden;
  text-overflow: ellipsis;
}
.nome-com-chip .chip { flex-shrink: 0; }
.chip-ml { background: #fff3c4; color: #9a6700; }
.chip-papel { background: #f3f5f6; color: #334155; text-transform: none; font-weight: 600; }
html[data-vista="graficos"] .vista-tabela { display: none; }
html:not([data-vista="graficos"]) .vista-graficos { display: none; }
html[data-vista="graficos"] .page { overflow-x: clip; max-width: 100%; }
.charts-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 16px;
  margin-bottom: 18px;
  width: 100%;
  max-width: 100%;
}
.chart-card {
  margin-bottom: 0;
  min-width: 0;
  overflow: hidden;
}
.chart-card-wide { grid-column: 1 / -1; }
.chart-frame {
  position: relative;
  width: 100%;
  max-width: 100%;
  overflow: hidden;
}
.chart-frame canvas { display: block; max-width: 100%; }
.charts-grid .chart-card:only-child { grid-column: 1 / -1; }
@media (max-width: 900px) {
  .charts-grid { grid-template-columns: minmax(0, 1fr); }
}
.th-sort { cursor: pointer; user-select: none; color: inherit; text-decoration: none; }
a.th-sort { display: block; }
table.sortable thead th.th-sort { font-size: 0.72rem; }
.th-sort:hover, .th-sort.is-on { color: #e31e24; }
.xml-link { font-weight: 700; white-space: nowrap; }
.num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.mono { font-family: ui-monospace, monospace; font-size: 0.9rem; word-break: break-all; }
.empty { color: #687680; padding: 24px; }
.chip { font-size: 0.7rem; font-weight: 700; text-transform: uppercase; padding: 4px 8px; border-radius: 20px; }
.chip-nfe { background: #e7f7ef; color: #167449; }
.chip-nfce { background: #fff4e5; color: #9a5b00; }
.chip-cte { background: #eef2ff; color: #334155; }
.chip-alert { background: #fde8ea; color: #b42318; }
.pager {
  display: flex;
  gap: 12px;
  margin-top: 20px;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  background: #fff;
  border: 1px solid #e2e5e7;
  border-radius: 12px;
  padding: 10px 14px;
}
.pager-pages {
  display: flex;
  gap: 4px;
  list-style: none;
  margin: 0;
  padding: 0;
  align-items: center;
}
.pager-btn, .pager-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  padding: 0 12px;
  border-radius: 8px;
  border: 1px solid #d8dde0;
  background: #fff;
  color: #263847;
  font-weight: 700;
  font-size: 0.84rem;
  text-decoration: none;
}
.pager-num { min-width: 36px; padding: 0 8px; }
.pager-num.is-on {
  background: #e31e24;
  border-color: #e31e24;
  color: #fff;
}
.pager-btn:hover, .pager-num:hover { border-color: #e31e24; color: #e31e24; }
.pager-num.is-on:hover { color: #fff; }
.pager-btn.is-off {
  opacity: 0.4;
  pointer-events: none;
  color: #687680;
}
.pager-gap { color: #89939b; padding: 0 4px; font-weight: 700; }
.panel {
  background: #fff; border: 1px solid #e2e5e7; border-radius: 12px;
  padding: 22px; margin-bottom: 18px;
}
.live-actions { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.panel h2 { margin: 0 0 14px; font-family: Outfit, sans-serif; font-size: 1.15rem; }
.panel h2:has(+ .chart-hint) { margin-bottom: 6px; }
.chart-hint {
  color: #687680;
  font-size: 0.82rem;
  line-height: 1.45;
  margin: 0 0 12px;
}
.bar-index {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 4rem 3.2rem 9.2rem;
  gap: 4px 10px;
  align-items: end;
  margin: 0 0 4px;
  padding-bottom: 6px;
  border-bottom: 1px solid #eef1ea;
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #89939b;
  white-space: nowrap;
}
.bar-index.no-count { grid-template-columns: minmax(0, 1fr) 4.6rem 9.2rem; }
.bar-index-num { text-align: right; }
.cards-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.bar-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 4rem 3.2rem 9.2rem;
  grid-template-areas:
    "label n pct value"
    "bar bar bar bar";
  gap: 4px 10px;
  align-items: center;
  margin: 14px 0;
  font-size: 0.88rem;
}
.bar-row.no-count {
  grid-template-columns: minmax(0, 1fr) 4.6rem 9.2rem;
  grid-template-areas:
    "label pct value"
    "bar bar bar";
}
.bar-row > .bar-label,
.bar-row > span.bar-label {
  grid-area: label;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.bar-row > .bar-n { grid-area: n; text-align: right; color: #687680; font-variant-numeric: tabular-nums; }
.bar-row > strong {
  grid-area: value;
  text-align: right;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.bar-row > .bar { grid-area: bar; }
.bar-row > .bar-pct {
  grid-area: pct;
  font-size: 0.75rem;
  font-weight: 700;
  color: #89939b;
  min-width: 2.6rem;
  text-align: right;
  font-variant-numeric: tabular-nums;
}
.bar { height: 18px; background: #f1edef; border-radius: 8px; overflow: hidden; }
.bar i { display: block; height: 100%; background: #e31e24; border-radius: inherit; }
.bar-nfe i { background: #167449; }
.bar-nfce i { background: #9a5b00; }
.bar-cte i { background: #334155; }
.bar-cif i { background: #167449; }
.bar-fob i { background: #9a5b00; }
.section-title { font-family: Outfit, sans-serif; margin: 28px 0 12px; }
.actions { display: flex; gap: 10px; margin-bottom: 22px; }
.big { font-size: 1.6rem; font-family: Outfit, sans-serif; margin: 0; }
.events { list-style: none; padding: 0; }
.events li { background: #fff; border: 1px solid #e2e5e7; border-radius: 8px; padding: 12px; margin: 8px 0; }
.rastreio-anexos { display: grid; gap: 12px; }
.rastreio-anexos img { width: 100%; max-height: 420px; object-fit: contain; background: #f4f5f6; border-radius: 8px; }
.rastreio-anexos figcaption { font-size: 0.8rem; color: #5b6166; margin-top: 6px; }
.form-error {
  padding: 10px 12px; border-left: 3px solid #e31e24; background: #fff1f1;
  color: #a31217; font-size: 0.84rem; margin-bottom: 16px;
}
.form-ok {
  padding: 10px 12px; border-left: 3px solid #1b7f4e; background: #eef8f2;
  color: #14663e; font-size: 0.84rem; margin-bottom: 16px;
}
.login-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: minmax(400px, 42%) 1fr;
  background: #fff;
}
.login-panel {
  display: grid;
  place-items: center;
  padding: 48px;
}
.login-content {
  width: min(100%, 410px);
  text-align: center;
}
.login-logo {
  display: block;
  width: 150px;
  max-height: 100px;
  object-fit: contain;
  object-position: center;
  margin: 0 auto 58px;
}
.login-content .eyebrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  color: #e31e24;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}
.login-content .eyebrow:before {
  content: "";
  width: 22px;
  height: 2px;
  background: currentColor;
}
.login-heading h1 {
  font-family: Outfit, sans-serif;
  margin: 12px 0 10px;
  font-size: clamp(2rem, 3vw, 2.75rem);
  line-height: 1.05;
  letter-spacing: -0.035em;
}
.login-heading p {
  color: #687581;
  line-height: 1.6;
  margin: 0 0 30px;
}
.login-content form {
  display: grid;
  gap: 10px;
  text-align: left;
}
.login-content label {
  font-size: 0.82rem;
  font-weight: 700;
  margin-top: 7px;
  text-align: center;
}
.login-content input {
  height: 54px;
  border: 1px solid #d8dde1;
  border-radius: 7px;
  padding: 0 16px;
  color: #1a2b3c;
  outline: none;
  transition: 0.2s;
  text-align: center;
}
.login-content input:focus {
  border-color: #e31e24;
  box-shadow: 0 0 0 4px rgb(227 30 36 / 10%);
}
.login-content .primary-button {
  height: 54px;
  border: 0;
  border-radius: 7px;
  margin-top: 16px;
  color: #fff;
  background: #e31e24;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 12px 25px rgb(227 30 36 / 22%);
  justify-content: center;
}
.login-content .primary-button:hover { background: #c9161c; }
.login-content .form-error {
  text-align: left;
  margin: 8px 0 0;
}
.login-content .support-text {
  margin-top: 28px;
  color: #8a949c;
  font-size: 0.78rem;
  text-align: center;
}
.login-hero {
  position: relative;
  overflow: hidden;
  min-height: 100vh;
  display: flex;
  align-items: flex-end;
  padding: clamp(48px, 7vw, 96px);
  color: #fff;
  background: linear-gradient(140deg, rgb(75 7 12 / 25%), rgb(15 22 28 / 65%)),
    linear-gradient(135deg, #e31e24, #aa1017 43%, #1a2b3c);
}
.login-hero:before {
  content: "";
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
      112deg,
      transparent 0 80px,
      rgb(255 255 255 / 5%) 81px 82px
    ),
    radial-gradient(circle at 70% 25%, rgb(255 255 255 / 17%), transparent 25%);
}
.hero-copy {
  position: relative;
  z-index: 1;
  max-width: 100%;
}
.hero-copy > span,
.hero-copy > h2,
.hero-copy > p {
  white-space: nowrap;
}
.hero-copy > span {
  display: block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  opacity: 0.72;
}
.hero-copy h2 {
  font-family: Outfit, sans-serif;
  margin: 18px 0 15px;
  font-size: clamp(1.8rem, 4.2vw, 4.2rem);
  line-height: 1.05;
  letter-spacing: -0.05em;
}
.hero-copy p {
  margin: 0;
  font-size: clamp(0.95rem, 1.4vw, 1.15rem);
  line-height: 1.5;
  opacity: 0.82;
}
.sat-hist-alert {
  padding: 10px 12px; border-left: 3px solid #e31e24; background: #fff1f1;
  color: #a31217; border-radius: 8px;
}
.support-text { color: #8a949c; font-size: 0.78rem; margin-top: 24px; }
.mod-tree { list-style: none; padding: 0; margin: 0 0 24px; }
.mod-tree ul { list-style: none; padding-left: 18px; margin: 8px 0; }
.mod-tree li { margin: 6px 0; }
.mod-row {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  padding: 8px 10px; background: #fff; border: 1px solid #e2e5e7; border-radius: 8px;
}
.mod-row label { font-weight: 700; }
.mod-row small { color: #687680; }
.users-pick { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0 20px; }
.users-pick a {
  text-decoration: none; color: #263847; font-weight: 700; font-size: 0.82rem;
  padding: 8px 12px; border: 1px solid #d8dde0; border-radius: 6px; background: #fff;
}
.users-pick a.is-on { color: #e31e24; border-color: #e31e24; background: rgb(227 30 36 / 8%); }
@media (max-width: 760px) {
  .login-shell {
    display: flex;
    flex-direction: column;
  }
  .login-panel {
    min-height: 100vh;
    padding: 34px 24px;
  }
  .login-logo { margin-bottom: 40px; }
  .login-hero {
    min-height: 320px;
    padding: 40px 24px;
    overflow-x: auto;
  }
  .hero-copy h2 { font-size: 1.6rem; }
  .hero-copy p { font-size: 0.9rem; }
}
@media (max-width: 1100px) {
  .filters-consulta .filters-tabs,
  .filters-consulta .filters-busca,
  .filters-consulta .filters-actions,
  .filters-report .filters-tabs,
  .filters-report .filters-busca,
  .filters-report .filters-actions { flex-basis: 100%; }
}
.kpis {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 12px;
  margin-bottom: 18px;
}
.kpi {
  background: #fff;
  border: 1px solid #e2e5e7;
  border-radius: 12px;
  padding: 16px;
}
.kpi span {
  color: #89939b;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.kpi strong {
  display: block;
  font-family: Outfit, sans-serif;
  font-size: 1.2rem;
  margin-top: 6px;
}
.kpi small {
  display: block;
  margin-top: 6px;
  font-size: 0.78rem;
  color: #687680;
  font-weight: 600;
}
a.kpi { text-decoration: none; color: inherit; }
a.kpi:hover { border-color: #e31e24; }
.kpi-placeholder { opacity: 0.78; background: #fafbfc; }
.kpi-placeholder strong { color: #89939b; }
.admin-home-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 12px;
  margin-bottom: 28px;
}
.user-form {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 14px;
  align-items: end;
}
.user-form label {
  display: grid;
  gap: 6px;
  font-size: 0.78rem;
  font-weight: 700;
}
.user-form .primary-button { justify-self: start; }
.user-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}
.user-pass {
  display: flex;
  gap: 6px;
  align-items: center;
}
.user-pass input {
  width: 9.5rem;
  height: 36px;
}
.user-actions .secondary-button { height: 36px; }
.hub-intro .eyebrow a { color: inherit; text-decoration: none; }
.hub-intro .eyebrow a:hover { color: #e31e24; }
.report-hub-group h2 {
  font-family: Outfit, sans-serif;
  font-size: 1.15rem;
  margin: 0 0 8px;
  display: flex;
  gap: 8px;
  align-items: baseline;
}
.report-hub-group h2 small { color: #89939b; font-size: 0.8rem; font-weight: 600; }
.report-hub-group h3 {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #687680;
  margin: 16px 0 8px;
}
.report-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 10px;
}
.report-card {
  display: flex;
  flex-direction: column;
  gap: 6px;
  background: #fff;
  border: 1px solid #e0e4e7;
  border-radius: 10px;
  padding: 12px 14px;
  text-decoration: none;
  color: inherit;
  min-height: 92px;
}
.report-card:hover { border-color: #e31e24; }
.report-card strong { font-size: 0.88rem; }
.report-card small { color: #687680; font-size: 0.75rem; line-height: 1.35; }
.report-badge {
  align-self: flex-start;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 2px 6px;
  border-radius: 999px;
  background: #eef1ea;
  color: #687680;
}
.status-live .report-badge { background: rgb(46 125 50 / 12%); color: #2e7d32; }
.status-dfe .report-badge { background: rgb(21 101 192 / 12%); color: #1565c0; }
.status-planned .report-badge { background: #fff4e5; color: #b26a00; }
.placeholder-banner {
  background: #fff8e6;
  border: 1px solid #f0d78c;
  border-radius: 10px;
  padding: 12px 16px;
  margin-bottom: 16px;
}
.placeholder-banner p { margin: 6px 0 0; color: #687680; }
.filters-cols {
  border: 0;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 12px;
  align-items: center;
  flex-basis: 100%;
}
.filters-cols legend {
  font-size: 0.7rem;
  font-weight: 700;
  color: #89939b;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 0;
  margin-right: 8px;
}
.filters-cols .check {
  display: inline-flex;
  gap: 6px;
  align-items: center;
  font-size: 0.8rem;
  font-weight: 600;
}
.ghost-button.is-disabled {
  pointer-events: none;
  opacity: 0.5;
}
.panel h2 a { color: inherit; text-decoration: none; }
.panel h2 a:hover { color: #e31e24; }
.delta-up { color: #a31217; }
.delta-down { color: #167449; }
.note { color: #687680; font-size: 0.84rem; line-height: 1.5; }
.legal-note {
  background: #fff;
  border: 1px solid #e2e5e7;
  border-left: 3px solid #e31e24;
  border-radius: 8px;
  padding: 14px 16px;
  margin: 0 0 22px;
}
.chip-cif { background: #e7f7ef; color: #167449; }
.chip-fob { background: #fff4e5; color: #9a5b00; }
.chip-abc-a { background: #e7f7ef; color: #167449; }
.chip-abc-b { background: #fff4e5; color: #9a5b00; }
.chip-abc-c { background: #f3f5f6; color: #687680; }
.nav-toggle-btn {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  cursor: pointer;
}
.nav-toggle-btn span,
.nav-toggle-btn span::before,
.nav-toggle-btn span::after {
  display: block;
  width: 18px;
  height: 2px;
  background: #263847;
  position: relative;
}
.nav-toggle-btn span::before,
.nav-toggle-btn span::after {
  content: "";
  position: absolute;
  left: 0;
}
.nav-toggle-btn span::before { top: -6px; }
.nav-toggle-btn span::after { top: 6px; }
.gw-fields {
  display: grid;
  grid-template-columns: minmax(9rem, 14rem) minmax(0, 1fr);
  gap: 6px 16px;
  margin: 0;
  font-size: 0.88rem;
}
.gw-fields dt {
  margin: 0;
  color: #687680;
  font-weight: 600;
}
.gw-fields dd {
  margin: 0;
  word-break: break-word;
}
@media (max-width: 900px) {
  .cards-2 { grid-template-columns: 1fr; }
  .hub-shell--nav .hub-main { margin-left: 0; padding-top: 56px; }
  .hub-topbar {
    display: flex;
    align-items: center;
    gap: 8px;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 25;
    height: 56px;
    padding: 0 12px;
    background: #fff;
    border-bottom: 1px solid #e0e4e7;
  }
  .hub-topbar .brand {
    padding: 0;
    border: 0;
    flex-direction: row;
  }
  .hub-sidebar {
    transform: translateX(-100%);
    transition: transform 0.2s ease;
    box-shadow: none;
  }
  .nav-toggle:checked ~ .hub-sidebar {
    transform: translateX(0);
    box-shadow: 8px 0 24px rgb(26 43 60 / 12%);
  }
  .nav-toggle:checked ~ .nav-backdrop {
    display: block;
    position: fixed;
    inset: 0;
    z-index: 30;
    background: rgb(26 43 60 / 40%);
  }
}
