:root {
  --blue: #0128ff;
  --blue-700: #001fcc;
  --magenta: #ff00ff;
  --magenta-soft: #fff0ff;
  --canvas: #f4f5f7;
  --ink: #111111;
  --muted: #5c6570;
  --line: #e6e6e6;
  --white: #ffffff;
  --ok: #1f7a4d;
  --ok-bg: #e5f6ec;
  --warn: #9a6b12;
  --warn-bg: #fff3d6;
  --danger: #b42318;
  --danger-bg: #fde8e6;
  --shadow: 0 12px 40px rgba(17, 17, 17, 0.06);
  --radius: 18px;
  --sidebar: 268px;
  --font: "Karla", "Segoe UI", sans-serif;
  --serif: "El Messiri", Georgia, serif;
}

*,
*::before,
*::after { box-sizing: border-box; }

html, body { margin: 0; min-height: 100%; }

body {
  font-family: var(--font);
  color: var(--ink);
  background: var(--canvas);
}

a { color: var(--blue); text-decoration: none; }
a:hover { color: var(--magenta); }

.app-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: var(--sidebar) 1fr;
}

.sidebar {
  background: var(--white);
  color: var(--ink);
  padding: 28px 20px;
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  flex-direction: column;
  gap: 28px;
  border-right: 1px solid var(--line);
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--ink);
}
.brand:hover,
.brand:focus {
  color: var(--ink);
}
.brand-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}
.brand-logo {
  width: 52px;
  height: 52px;
  object-fit: contain;
  flex: none;
}
.brand-name {
  display: block;
  font-family: var(--serif);
  font-size: 1.45rem;
  font-weight: 600;
  line-height: 1.05;
  color: var(--ink);
}
.brand-sub {
  display: block;
  font-size: 0.8rem;
  line-height: 1.2;
  color: var(--muted);
}

.nav-group { display: flex; flex-direction: column; gap: 6px; }
.nav-label {
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--magenta);
  margin: 8px 8px 4px;
  font-weight: 700;
}
.nav-link {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  padding: 10px 12px;
  border-radius: 12px;
  font-weight: 600;
}
.nav-link:hover {
  background: #f3f6ff;
  color: var(--blue);
}
.nav-link.is-active {
  background: #f3f6ff;
  color: var(--blue);
  box-shadow: inset 3px 0 0 var(--magenta);
}

.user-menu {
  margin-top: auto;
  position: relative;
}
.user-menu-trigger {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--white);
  color: var(--ink);
  font: inherit;
  text-align: left;
  cursor: pointer;
}
.user-menu-trigger:hover,
.user-menu.is-open .user-menu-trigger,
.user-menu-trigger.is-active {
  background: #f3f6ff;
  border-color: #d5dcff;
}
.user-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--blue);
  color: white;
  display: grid;
  place-items: center;
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 0.03em;
  flex: none;
}
.user-menu-id {
  min-width: 0;
  flex: 1;
}
.user-menu-id strong {
  display: block;
  font-size: 0.9rem;
  line-height: 1.2;
  color: var(--ink);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.user-menu-id span {
  display: block;
  color: var(--muted);
  font-size: 0.75rem;
  line-height: 1.3;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.user-menu-chevron {
  flex: none;
  color: var(--muted);
  transition: transform 0.15s ease;
}
.user-menu.is-open .user-menu-chevron { transform: rotate(180deg); }
.user-menu-panel {
  position: absolute;
  left: 0;
  right: 0;
  bottom: calc(100% + 8px);
  z-index: 5;
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 6px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: var(--shadow);
}
.user-menu-panel[hidden] { display: none; }
.user-menu-panel form { margin: 0; }
.user-menu-panel .nav-link {
  width: 100%;
  background: none;
  border: 0;
  text-align: left;
  cursor: pointer;
  font: inherit;
  font-weight: 600;
  color: var(--ink);
  box-shadow: none;
}
.user-menu-panel .nav-link:hover,
.user-menu-panel .nav-link.is-active {
  background: #f3f6ff;
  color: var(--blue);
}
.user-menu-panel .nav-link.is-active {
  box-shadow: inset 3px 0 0 var(--magenta);
}

.main {
  min-width: 0;
  padding: 28px 32px 48px;
}

.topbar {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 24px;
}
.page-kicker {
  margin: 0 0 4px;
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--magenta);
  font-weight: 700;
}
.page-title {
  margin: 0;
  font-family: var(--serif);
  font-size: 2rem;
  font-weight: 600;
  color: var(--blue);
}
.page-sub { margin: 6px 0 0; color: var(--muted); }

.menu-toggle {
  display: none;
  border: 0;
  background: var(--white);
  border-radius: 12px;
  padding: 10px 12px;
  box-shadow: var(--shadow);
}

.grid-metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 24px;
}
.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.card-pad { padding: 20px 22px; }
.metric-label { color: var(--muted); font-size: 0.85rem; margin: 0 0 8px; }
.metric-value {
  margin: 0;
  font-family: var(--serif);
  font-size: 1.8rem;
  color: var(--ink);
}

.stack { display: flex; flex-direction: column; gap: 16px; }
.row { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.row-between { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; align-items: center; }

.btn,
button.btn,
a.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 0;
  border-radius: 999px;
  padding: 10px 18px;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, opacity 0.15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn:disabled { opacity: 0.6; cursor: wait; }
.btn-primary { background: var(--blue); color: white; }
.btn-primary:hover { background: var(--blue-700); color: white; }
.btn-accent { background: var(--magenta); color: #111; }
.btn-accent:hover { color: #111; filter: brightness(0.95); }
.btn-ghost { background: transparent; color: var(--ink); border: 1px solid var(--line); }
.btn-ghost:hover { color: var(--blue); border-color: var(--blue); }
.btn-danger { background: var(--danger); color: white; }
.btn-sm { padding: 7px 11px; font-size: 0.85rem; }

.badge {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 4px 10px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}
.badge-ok { background: var(--ok-bg); color: var(--ok); }
.badge-warn { background: var(--warn-bg); color: var(--warn); }
.badge-danger { background: var(--danger-bg); color: var(--danger); }
.badge-muted { background: #eef2f6; color: #4b5a6b; }

.table-wrap { overflow-x: auto; }
table.data {
  width: 100%;
  border-collapse: collapse;
}
table.data th,
table.data td {
  text-align: left;
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
  vertical-align: middle;
}
table.data th {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
}
table.data tbody tr:hover { background: #f3f6ff; }
table.data a { font-weight: 600; color: var(--blue); }
table.data a:hover { color: var(--magenta); }

.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-weight: 600; font-size: 0.9rem; }
.field-help { color: var(--muted); font-size: 0.8rem; }
.field-error { color: var(--danger); font-size: 0.8rem; }
.field-input,
input[type="text"],
input[type="email"],
input[type="password"],
input[type="number"],
input[type="date"],
input[type="search"],
select,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 12px;
  padding: 10px 12px;
  font: inherit;
  color: var(--ink);
}
.field-input:focus,
input:focus,
select:focus,
textarea:focus {
  outline: 3px solid rgba(255, 0, 255, 0.22);
  border-color: var(--blue);
}
.field-input.is-invalid { border-color: var(--danger); }
.field-check { width: auto; }

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}
.form-grid-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.form-grid .full { grid-column: 1 / -1; }

.section-title {
  margin: 0 0 14px;
  font-family: var(--serif);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--blue);
}
.section-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 8px;
}
.section-head .section-title { margin-bottom: 0; }

.reveal-panel {
  margin-top: 16px;
  padding: 16px;
  border: 1px dashed var(--line);
  border-radius: 14px;
  background: var(--canvas);
  animation: rise 0.25s ease;
}

.metric-card {
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid transparent;
  transition: box-shadow 0.25s ease, border-color 0.25s ease, background 0.25s ease, transform 0.25s ease;
}
.metric-card.is-spotlight {
  background: var(--warn-bg);
  border-color: var(--warn);
  box-shadow: 0 0 0 4px rgba(154, 107, 18, 0.22);
  transform: scale(1.03);
}
.metric-card.is-spotlight .metric-label {
  color: var(--warn);
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.metric-card.is-spotlight .metric-value { color: #7a5208; }

.pendiente-banner {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 16px;
  padding: 14px 16px;
  border-radius: 12px;
  background: var(--warn-bg);
  border: 1px solid var(--warn);
  color: #7a5208;
}
.pendiente-banner span {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.pendiente-banner strong {
  font-family: var(--serif);
  font-size: 1.6rem;
}

.user-block {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--canvas);
}

.empty {
  text-align: center;
  padding: 36px 16px;
  color: var(--muted);
}

.toast-stack {
  position: fixed;
  right: 20px;
  bottom: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  z-index: 40;
}
.toast {
  min-width: 260px;
  max-width: 380px;
  background: var(--ink);
  color: white;
  padding: 12px 14px;
  border-radius: 12px;
  box-shadow: var(--shadow);
  animation: rise 0.35s ease;
}
.toast.success { background: #155e4a; }
.toast.error { background: #8f1d18; }
.toast.info { background: var(--blue); }

@keyframes rise {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

.login-split {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  background: var(--white);
}
.login-hero {
  background: var(--blue);
  color: white;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 32px;
  padding: 48px 64px;
}
.login-logo {
  width: min(220px, 62%);
  height: auto;
}
.login-tagline {
  margin: 0;
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(1.75rem, 2.5vw, 2.35rem);
  line-height: 1.15;
}
.login-panel {
  display: grid;
  place-items: center;
  padding: 40px 28px;
}
.login-card {
  width: min(420px, 100%);
}
.login-card h1 {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 2.4rem;
  color: var(--blue);
  margin: 0 0 8px;
}
.login-card p { color: var(--muted); margin-top: 0; }

.cuenta-hero { margin-bottom: 16px; }
.cuenta-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}
.cuenta-head .section-title { margin-bottom: 0; }
.cuenta-pendiente {
  margin: 0 0 14px;
  padding: 16px 18px;
  border-radius: 16px;
  background: var(--warn-bg);
}
.cuenta-pendiente .metric-label {
  margin-bottom: 4px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--warn);
}
.cuenta-pendiente .metric-value {
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  line-height: 1.1;
  color: #7a5208;
}
.cuenta-pendiente-saldado { background: var(--ok-bg); }
.cuenta-pendiente-saldado .metric-label,
.cuenta-pendiente-saldado .metric-value { color: var(--ok); }
.cuenta-pendiente.is-spotlight {
  box-shadow: 0 0 0 4px rgba(154, 107, 18, 0.22);
  transform: scale(1.02);
}
.cuenta-metrics {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-bottom: 0;
}
.cuenta-hero .metric-card {
  background: #f3f6ff;
  border-radius: 14px;
}
.cuenta-detalle,
.blocks { margin-bottom: 16px; }

.blocks { display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 16px; }
.dl { display: grid; grid-template-columns: 140px 1fr; gap: 8px 12px; margin: 0; }
.dl dt { color: var(--muted); }
.dl dd { margin: 0; font-weight: 600; }

.history { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.history li {
  padding: 10px 12px;
  background: var(--canvas);
  border-radius: 12px;
}

.error-page {
  min-height: 100vh;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 24px;
}
.error-page h1 { font-family: var(--serif); font-weight: 600; font-size: clamp(1.8rem, 8vw, 3rem); margin-bottom: 8px; color: var(--blue); line-height: 1.15; }

.filters-card { margin-bottom: 16px; }
.contact-list { display: flex; flex-direction: column; gap: 12px; }
a.contact {
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 72px;
  padding: 12px 16px;
  color: inherit;
}
a.contact:hover { color: inherit; background: #f3f6ff; }
.contact-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #f3f6ff;
  color: var(--blue);
  display: grid;
  place-items: center;
  font-weight: 700;
  flex: none;
}
.contact-body {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
  flex: 1;
}
.contact-name,
.contact-line {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.contact-name { font-weight: 700; color: var(--ink); }
.contact-line { color: var(--muted); font-size: 0.85rem; }
.contact .badge { flex: none; }
.contact-file { align-items: flex-start; }
.contact-file .contact-avatar { margin-top: 2px; }
.contact-top,
.contact-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.contact-top .contact-name { min-width: 0; }
.contact-file .contact-line { white-space: normal; }
.contact-foot { margin-top: 6px; }
.contact-saldo {
  font-family: var(--serif);
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--ink);
  line-height: 1.1;
}
.contact-pager { margin-top: 12px; }
.quick-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.quick-filter {
  display: inline-flex;
  align-items: center;
  flex: none;
  min-height: 36px;
  padding: 8px 14px;
  border-radius: 999px;
  background: var(--canvas);
  color: var(--ink);
  font-weight: 700;
  font-size: 0.85rem;
}
a.quick-filter:hover { color: var(--ink); background: #f3f6ff; }
a.quick-filter.is-on,
a.quick-filter.is-on:hover {
  background: var(--blue);
  color: white;
}
.filters { display: flex; flex-direction: column; gap: 14px; }
.filters-search { position: relative; }
.filters-search-icon {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--muted);
  pointer-events: none;
}
.filters-search .field-input {
  min-height: 48px;
  padding-left: 46px;
  border-radius: 999px;
  border-color: transparent;
  background: var(--canvas);
}
.filters-search .field-input:focus { background: var(--white); }
.filters-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
  align-items: end;
}
.filters-actions { display: flex; justify-content: flex-end; gap: 8px; flex-wrap: wrap; }
.filters > .filters-toggle { display: none; }
.filter-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.filter-chips:empty { display: none; }
.filter-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 0;
  border-radius: 999px;
  padding: 6px 12px;
  background: #f3f6ff;
  color: var(--ink);
  font: inherit;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
}
.filter-chip strong { color: var(--blue); font-weight: 700; }
.filter-chip span { color: var(--muted); font-size: 1rem; line-height: 1; }
.filters-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 20px;
  height: 20px;
  padding: 0 6px;
  border-radius: 999px;
  background: var(--magenta);
  color: #111;
  font-size: 0.75rem;
}
.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;
}

.overlay { display: none; }

@media (max-width: 1100px) {
  .grid-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cuenta-metrics { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .blocks { grid-template-columns: 1fr; }
  .filters-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .form-grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 800px) {
  .app-shell { grid-template-columns: 1fr; }
  .sidebar {
    position: fixed;
    inset: 0 auto 0 0;
    width: min(var(--sidebar), 88vw);
    transform: translateX(-105%);
    transition: transform 0.25s ease;
    z-index: 30;
    overflow-y: auto;
    overscroll-behavior: contain;
  }
  .sidebar.is-open { transform: translateX(0); }
  .nav-link,
  .user-menu-trigger,
  .btn { min-height: 44px; }
  .btn-sm { min-height: 40px; }
  .user-menu {
    position: sticky;
    bottom: 0;
    z-index: 2;
    margin-top: auto;
    padding-top: 8px;
    background: var(--white);
  }
  .overlay.is-open {
    display: block;
    position: fixed;
    inset: 0;
    background: rgba(17, 17, 17, 0.4);
    z-index: 20;
  }
  .menu-toggle {
    display: inline-flex;
    min-width: 44px;
    min-height: 44px;
    align-items: center;
    justify-content: center;
    margin-bottom: 8px;
  }
  .main { padding: 18px 16px 40px; }
  .topbar { flex-direction: column; align-items: stretch; }
  .topbar .row { width: 100%; }
  .topbar .row .btn { flex: 1; }
  .page-title { font-size: 1.55rem; }
  .card {
    border: 0;
    border-radius: 20px;
    box-shadow: 0 1px 2px rgba(17, 17, 17, 0.06), 0 6px 16px rgba(17, 17, 17, 0.06);
  }
  .card:has(.table-wrap) {
    background: transparent;
    box-shadow: none;
    border-radius: 0;
    padding: 0;
    margin-bottom: 0;
  }
  .card-pad { padding: 16px; }
  .grid-metrics { gap: 12px; }
  .metric-card,
  .user-block,
  .history li,
  .pendiente-banner,
  .reveal-panel {
    border: 0;
    border-radius: 16px;
    background: var(--white);
    box-shadow: 0 1px 2px rgba(17, 17, 17, 0.05);
  }
  .metric-card { background: #f3f6ff; }
  .metric-card.is-spotlight,
  .pendiente-banner {
    background: var(--warn-bg);
    box-shadow: none;
  }
  .metric-value { font-size: 1.05rem; white-space: nowrap; }
  .cuenta-metrics { grid-template-columns: 1fr; }
  .cuenta-hero .metric-card { box-shadow: none; }
  .cuenta-pendiente .metric-value { font-size: 2rem; white-space: nowrap; }
  .form-grid,
  .form-grid-3,
  .filters-grid { grid-template-columns: 1fr; }
  .filters > .filters-toggle { display: inline-flex; width: 100%; }
  .quick-filters {
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: 2px;
    scrollbar-width: none;
  }
  .quick-filters::-webkit-scrollbar { display: none; }
  .filters:not(.is-open) [data-filters-more] { display: none; }
  .filters-actions { flex-direction: column; }
  .filters-actions .btn,
  .filters .field-input { width: 100%; min-height: 44px; }
  .section-head { flex-direction: column; align-items: stretch; }
  .section-head .btn { width: 100%; }
  .row:has(.btn) { flex-direction: column; align-items: stretch; }
  .row:has(.btn) .btn { width: 100%; }
  .dl { grid-template-columns: 1fr; gap: 2px; }
  .dl dt { margin-top: 10px; }
  .toast-stack { left: 16px; right: 16px; bottom: 16px; }
  .toast { min-width: 0; max-width: none; }

  .table-wrap { overflow: visible; }
  table.data thead { display: none; }
  table.data,
  table.data tbody,
  table.data tr,
  table.data td { display: block; width: 100%; }
  table.data tr {
    background: var(--white);
    margin: 0 0 12px;
    padding: 16px;
    border: 0;
    border-radius: 20px;
    box-shadow: 0 1px 2px rgba(17, 17, 17, 0.06), 0 6px 16px rgba(17, 17, 17, 0.06);
  }
  table.data tr:active { background: #f3f6ff; }
  .card:has(.table-wrap) > .row-between {
    background: var(--white);
    margin-top: 4px;
    border-radius: 20px;
    box-shadow: 0 1px 2px rgba(17, 17, 17, 0.06), 0 6px 16px rgba(17, 17, 17, 0.06);
  }
  table.data td {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    border: 0;
    padding: 5px 0;
    text-align: right;
  }
  table.data td::before {
    content: attr(data-label);
    color: var(--muted);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    text-align: left;
    flex: none;
  }
  table.data td:first-child {
    display: block;
    padding: 0 0 8px;
    text-align: left;
    font-family: var(--serif);
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--blue);
  }
  table.data td:first-child::before { content: none; }
  table.data td.td-actions { justify-content: flex-end; }
  table.data td.td-actions::before { content: none; }
  table.data tr.is-total td:first-child { color: var(--ink); }

  .login-split { grid-template-columns: 1fr; }
  .login-hero {
    min-height: 0;
    padding: 28px 20px 24px;
    justify-content: center;
    gap: 16px;
  }
  .login-logo { width: 112px; }
  .login-tagline { font-size: 1.45rem; }
  .login-panel { padding: 28px 20px 36px; }
  .login-card h1 { font-size: 2rem; }
  .error-page > div { width: min(100%, 22rem); }
  .error-page h1 { font-size: 2rem; }
  .error-page .btn { width: 100%; }
  table.data td { flex-wrap: wrap; overflow-wrap: anywhere; }
  table.data td .field-help { flex-basis: 100%; margin: 0; text-align: right; }
}
