  /* Wider main column for this page so the dashboard preview can breathe */
  .main.wide { max-width: 1280px; }

  /* ── Interactive dashboard preview ────────────────────────────── */
  .preview {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 16px;
    margin: 18px 0 28px;
  }
  .preview .dash-mock {
    margin: 0;
    box-shadow: 0 18px 48px rgba(15,26,46,0.14), 0 4px 12px rgba(15,26,46,0.06);
    width: 100%;
  }
  .preview .dash-mock .dash-tabs {
    overflow-x: auto;
    scrollbar-width: none;
    flex-wrap: nowrap;
  }
  .preview .dash-mock .dash-tabs::-webkit-scrollbar { display: none; }
  .preview .dash-mock .dash-tabs .t {
    cursor: pointer;
    white-space: nowrap;
    transition: color 0.12s;
    user-select: none;
  }
  .preview .dash-mock .dash-tabs .t:hover { color: var(--brippo-navy-700); }

  /* Slot where each tab's content swaps in */
  .preview .dash-body {
    background: var(--paper);
    min-height: 320px;
  }
  .preview .dash-body[hidden] { display: none; }

  /* Contextual panel — sits below the dashboard, laid out as 3 columns
     so the explanation reads horizontally and matches the wide dashboard. */
  .ctx-panel {
    background: #fff;
    border: 1px solid var(--ink-200);
    border-radius: 10px;
    padding: 18px 22px;
    box-shadow: 0 1px 2px rgba(15,26,46,0.04);
    display: grid;
    grid-template-columns: minmax(220px, 1fr) minmax(0, 1.4fr) minmax(220px, 1fr);
    gap: 28px;
    align-items: start;
  }
  .ctx-panel .ctx-col-head { min-width: 0; }
  .ctx-panel .ctx-eyebrow {
    font-size: 10.5px;
    color: var(--brippo-blue-600);
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-bottom: 6px;
  }
  .ctx-panel h3 {
    margin: 0 0 8px;
    font-size: 17px;
    font-weight: 700;
    color: var(--ink-900);
    letter-spacing: -0.01em;
  }
  .ctx-panel p {
    margin: 0;
    font-size: 13px;
    line-height: 1.55;
    color: var(--ink-700);
  }
  .ctx-panel ul {
    margin: 0;
    padding-left: 18px;
    font-size: 12.5px;
    line-height: 1.6;
    color: var(--ink-700);
  }
  .ctx-panel ul li { margin-bottom: 4px; }
  .ctx-panel .ctx-tip {
    padding: 10px 12px;
    background: var(--brippo-blue-50);
    border: 1px solid var(--brippo-blue-100);
    border-radius: 6px;
    font-size: 12px;
    line-height: 1.5;
    color: var(--ink-700);
  }
  .ctx-panel .ctx-tip strong {
    color: var(--brippo-blue-700);
    display: block;
    margin-bottom: 2px;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.06em;
  }
  .ctx-panel .ctx-empty { color: var(--ink-400); font-size: 12px; font-style: italic; }

  /* Hint for first-time visitors */
  .preview-hint {
    font-size: 12px;
    color: var(--ink-500);
    margin: 8px 0 0;
    display: flex;
    align-items: center;
    gap: 6px;
  }
  .preview-hint kbd {
    font-family: var(--font-mono);
    font-size: 10.5px;
    background: var(--ink-100);
    border: 1px solid var(--ink-200);
    border-radius: 3px;
    padding: 1px 5px;
    color: var(--ink-700);
  }

  /* ── Tab content blocks ───────────────────────────────────────── */

  /* Overview tab */
  .ov-banner {
    margin: 0;
    padding: 18px 20px;
    background: linear-gradient(120deg, #2e1554 0%, #4a1f7c 70%, #5a2588 100%);
    color: #fff;
    display: flex;
    align-items: center;
    gap: 16px;
    border-bottom: 1px solid var(--ink-200);
  }
  .ov-banner .ov-banner-text {
    flex: 1;
  }
  .ov-banner .ov-banner-title {
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 2px;
    letter-spacing: -0.005em;
  }
  .ov-banner .ov-banner-sub {
    font-size: 11.5px;
    color: rgba(255,255,255,0.78);
    line-height: 1.45;
  }
  .ov-banner .ov-banner-cta {
    font-size: 10.5px;
    font-weight: 700;
    letter-spacing: 0.06em;
    background: rgba(0,0,0,0.35);
    border: 1px solid rgba(255,255,255,0.15);
    color: #fff;
    padding: 6px 12px;
    border-radius: 4px;
  }

  .ov-section {
    padding: 16px 20px 12px;
    border-bottom: 1px solid var(--ink-100);
  }
  .ov-section-head {
    display: flex; align-items: center; justify-content: space-between;
    margin-bottom: 12px;
  }
  .ov-section-head .ov-eyebrow {
    font-size: 10.5px;
    font-weight: 700;
    letter-spacing: 0.08em;
    color: var(--ink-500);
    text-transform: uppercase;
  }
  .ov-section-head .ov-mini-btn {
    font-size: 10px;
    font-weight: 600;
    padding: 4px 9px;
    border: 1px solid var(--ink-300);
    border-radius: 3px;
    color: var(--ink-700);
    background: #fff;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    cursor: pointer;
    user-select: none;
    transition: background 0.12s, border-color 0.12s, color 0.12s;
  }
  .ov-section-head .ov-mini-btn:hover {
    background: var(--ink-100);
    border-color: var(--ink-400);
    color: var(--ink-900);
  }
  .ov-balance-card {
    border: 1px solid var(--ink-200);
    border-radius: 6px;
    background: #fff;
    overflow: hidden;
  }
  .ov-balance-head {
    padding: 8px 14px;
    font-size: 11px;
    font-weight: 700;
    color: var(--ink-700);
    border-bottom: 1px solid var(--ink-100);
    background: var(--ink-50);
  }
  .ov-balance-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0;
  }
  .ov-balance-grid .bal {
    padding: 12px 14px;
    border-right: 1px solid var(--ink-100);
  }
  .ov-balance-grid .bal:last-child { border-right: 0; }
  .ov-balance-grid .bal-label {
    font-size: 10.5px;
    color: var(--ink-500);
    margin-bottom: 4px;
    display: flex; align-items: center; gap: 4px;
  }
  .ov-balance-grid .bal-label .info-dot {
    width: 11px; height: 11px;
    border-radius: 2px;
    background: var(--brippo-navy-800);
    color: #fff;
    font-size: 8px;
    font-weight: 700;
    display: inline-grid; place-items: center;
    font-family: var(--font-sans);
  }
  .ov-balance-grid .bal-value {
    font-size: 18px;
    font-weight: 600;
    color: var(--ink-900);
    letter-spacing: -0.01em;
  }
  .ov-balance-grid .bal-value .ccy {
    font-size: 10px;
    font-weight: 500;
    color: var(--ink-500);
    margin-left: 3px;
    letter-spacing: 0;
  }

  .ov-charts {
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    gap: 16px;
    padding: 16px 20px 20px;
  }
  .ov-charts .chart-card {
    border: 1px solid var(--ink-200);
    border-radius: 6px;
    padding: 12px 14px;
    background: #fff;
  }
  .ov-charts .chart-title {
    font-size: 12px;
    font-weight: 700;
    color: var(--ink-900);
    margin-bottom: 4px;
  }
  .ov-charts .chart-legend {
    display: flex; gap: 10px;
    font-size: 10px;
    color: var(--ink-500);
    margin-bottom: 8px;
  }
  .ov-charts .chart-legend .lg {
    display: inline-flex; align-items: center; gap: 4px;
  }
  .ov-charts .chart-legend .dot {
    width: 8px; height: 8px; border-radius: 50%;
  }
  .ov-charts .chart-legend .dot.today { background: var(--brippo-navy-800); }
  .ov-charts .chart-legend .dot.yest { background: var(--ink-300); }
  .ov-charts svg { display: block; width: 100%; height: auto; }

  /* Payments tab */
  .pm-head {
    padding: 14px 20px 8px;
    display: flex; align-items: center;
    background: var(--ink-50);
    border-bottom: 1px solid var(--ink-200);
  }
  .pm-head .pm-title {
    font-size: 13px; font-weight: 700; letter-spacing: 0.09em;
    color: var(--ink-900);
  }
  .pm-head-actions {
    margin-left: auto;
    display: flex; gap: 6px;
  }
  .pm-head-actions .btn-mini {
    font-size: 10px;
    font-weight: 600;
    padding: 5px 10px;
    border-radius: 3px;
    border: 1px solid var(--ink-300);
    background: #fff;
    color: var(--ink-700);
    letter-spacing: 0.04em;
    text-transform: uppercase;
    cursor: pointer;
    user-select: none;
    transition: background 0.12s, border-color 0.12s, color 0.12s;
  }
  .pm-head-actions .btn-mini:hover {
    background: var(--ink-100);
    border-color: var(--ink-400);
    color: var(--ink-900);
  }
  .pm-head-actions .btn-mini.primary {
    background: var(--brippo-navy-800);
    border-color: var(--brippo-navy-800);
    color: #fff;
  }
  .pm-head-actions .btn-mini.primary:hover {
    background: #0f1f3a;
    border-color: #0f1f3a;
    color: #fff;
  }
  .pm-filters {
    padding: 10px 20px;
    background: #fff;
    border-bottom: 1px solid var(--ink-100);
    display: flex;
    gap: 4px;
    flex-wrap: nowrap;
    overflow-x: auto;
    scrollbar-width: none;
  }
  .pm-filters::-webkit-scrollbar { display: none; }
  .pm-filters .pf {
    font-size: 11px;
    padding: 6px 14px;
    border: 1px solid var(--ink-200);
    border-radius: 4px;
    color: var(--ink-700);
    background: #fff;
    white-space: nowrap;
    font-weight: 500;
  }
  .pm-filters .pf.on {
    border-color: var(--brippo-blue-600);
    color: var(--brippo-blue-700);
    font-weight: 600;
  }
  .pm-search-row {
    padding: 10px 20px;
    background: #fff;
    border-bottom: 1px solid var(--ink-100);
    display: flex; flex-wrap: wrap; gap: 6px;
    align-items: center;
  }
  .pm-search-row .pm-search {
    flex: 1; min-width: 180px;
    border: 1px solid var(--ink-200);
    border-radius: 3px;
    padding: 5px 10px;
    font-size: 11px;
    color: var(--ink-500);
    background: #fff;
  }
  .pm-search-row .pm-chip {
    font-size: 11px;
    padding: 4px 9px;
    border: 1px dashed var(--ink-300);
    border-radius: 3px;
    color: var(--ink-500);
  }

  /* Generic dashboard table */
  table.simple-tbl {
    width: 100%;
    border-collapse: collapse;
    font-size: 12px;
    background: #fff;
  }
  table.simple-tbl th {
    text-align: left;
    font-size: 9.5px;
    font-weight: 600;
    letter-spacing: 0.07em;
    color: var(--ink-500);
    text-transform: uppercase;
    padding: 10px 14px;
    border-bottom: 1px solid var(--ink-200);
    background: #fff;
  }
  table.simple-tbl td {
    padding: 11px 14px;
    border-bottom: 1px solid var(--ink-100);
    vertical-align: middle;
    color: var(--ink-700);
    font-size: 12px;
  }
  table.simple-tbl tr:last-child td { border-bottom: 0; }
  .tbl-foot {
    padding: 10px 20px;
    font-size: 11px;
    color: var(--ink-500);
    background: #fff;
    border-top: 1px solid var(--ink-100);
    display: flex; align-items: center; justify-content: space-between;
  }
  .tbl-foot .pager {
    display: flex; gap: 6px;
  }
  .tbl-foot .pager .pg {
    font-size: 10px;
    font-weight: 600;
    padding: 4px 12px;
    border: 1px solid var(--ink-300);
    border-radius: 3px;
    color: var(--ink-400);
    background: var(--ink-50);
    letter-spacing: 0.04em;
    text-transform: uppercase;
  }

  .amount-cell { font-weight: 600; color: var(--ink-900); font-family: var(--font-sans); }
  .amount-cell .ccy { color: var(--ink-500); font-weight: 500; margin-left: 2px; font-size: 10.5px; }
  .ref-cell { font-family: var(--font-mono); color: var(--ink-600); font-size: 11.5px; }

  /* Empty state */
  .empty-state {
    padding: 50px 20px;
    text-align: center;
    background: var(--brippo-navy-50);
    border-radius: 0;
    color: var(--ink-500);
    font-size: 12px;
  }
  .empty-state .empty-icon {
    width: 32px; height: 24px;
    margin: 0 auto 10px;
    border-radius: 4px 4px 8px 8px;
    background: linear-gradient(180deg, transparent 0 8px, var(--ink-300) 8px 100%);
    border: 1.5px solid var(--ink-300);
    border-top: 0;
    position: relative;
  }
  .empty-state .empty-icon::before {
    content: "";
    position: absolute; top: -2px; left: 6px; right: 6px; height: 4px;
    background: var(--ink-300); border-radius: 2px 2px 0 0;
  }
  .empty-state.celebrate {
    margin-top: 8px;
    background: var(--brippo-navy-50);
    padding: 26px 20px;
  }
  .empty-state.celebrate .trophy {
    font-size: 26px;
    color: var(--brippo-orange);
    margin-bottom: 6px;
    line-height: 1;
  }

  /* Disputes secondary tabs */
  .seg-tabs {
    padding: 14px 20px;
    background: #fff;
    border-bottom: 1px solid var(--ink-100);
    display: flex; gap: 0;
  }
  .seg-tabs .seg {
    flex: 1;
    text-align: center;
    font-size: 12px;
    font-weight: 600;
    padding: 10px;
    border: 1px solid var(--ink-200);
    background: #fff;
    color: var(--ink-700);
    border-right-width: 0;
  }
  .seg-tabs .seg:first-child { border-radius: 4px 0 0 4px; }
  .seg-tabs .seg:last-child { border-radius: 0 4px 4px 0; border-right-width: 1px; }
  .seg-tabs .seg.on {
    border-color: var(--brippo-blue-600);
    color: var(--brippo-blue-700);
    box-shadow: inset 0 0 0 1px var(--brippo-blue-600);
  }

  /* Reports tab */
  .reports-layout {
    display: grid;
    grid-template-columns: 200px 1fr;
    min-height: 320px;
  }
  .reports-list {
    border-right: 1px solid var(--ink-200);
    padding: 14px 0;
    background: var(--ink-50);
  }
  .reports-list .rep-item {
    display: block;
    padding: 8px 16px;
    font-size: 12px;
    color: var(--ink-700);
    cursor: pointer;
    border-left: 2px solid transparent;
  }
  .reports-list .rep-item.on {
    color: var(--brippo-blue-700);
    font-weight: 700;
    background: #fff;
    border-left-color: var(--brippo-blue-600);
  }
  .reports-detail {
    padding: 22px 24px;
  }
  .reports-detail .rep-eyebrow {
    font-size: 10.5px;
    color: var(--ink-500);
    font-weight: 600;
    letter-spacing: 0.07em;
    text-transform: uppercase;
    margin-bottom: 6px;
  }
  .reports-detail h4 {
    margin: 0 0 10px;
    font-size: 18px;
    font-weight: 700;
    color: var(--ink-900);
    letter-spacing: -0.01em;
  }
  .reports-detail p {
    font-size: 12.5px;
    color: var(--ink-700);
    line-height: 1.55;
    margin: 0 0 10px;
    max-width: 460px;
  }
  .reports-detail .rep-note {
    font-style: italic;
    color: var(--ink-500);
    font-size: 12px;
  }

  /* Financing tab */
  .fin-banner {
    margin: 20px;
    padding: 14px 16px;
    background: var(--brippo-navy-50);
    border: 1px solid var(--ink-200);
    border-radius: 6px;
    font-size: 12.5px;
    color: var(--ink-700);
    line-height: 1.5;
  }
  .fin-banner a { color: var(--brippo-blue-600); font-weight: 600; }

  /* Automations tab */
  .au-head {
    padding: 14px 20px;
    background: var(--ink-50);
    border-bottom: 1px solid var(--ink-200);
    display: flex; align-items: center;
  }
  .au-head .au-title {
    font-size: 13px; font-weight: 700; letter-spacing: 0.09em;
    color: var(--ink-900);
  }

  /* PaymentLinks status pills */
  .lp-active { background: var(--brippo-success-100); color: var(--brippo-success); }
  .lp-used   { background: var(--brippo-blue-50); color: var(--brippo-blue-700); }
  .lp-unused { background: var(--ink-100); color: var(--ink-600); }
  .lp-pill {
    display: inline-block;
    font-size: 10.5px; font-weight: 600;
    padding: 2px 7px; border-radius: 3px;
  }

  /* Mobile fallback */
  @media (max-width: 980px) {
    .ctx-panel { grid-template-columns: 1fr; gap: 14px; }
    .reports-layout { grid-template-columns: 1fr; }
    .reports-list { border-right: 0; border-bottom: 1px solid var(--ink-200); display: flex; overflow-x: auto; padding: 8px; gap: 4px; }
    .reports-list .rep-item { white-space: nowrap; padding: 6px 10px; border-left: 0; border-bottom: 2px solid transparent; }
    .reports-list .rep-item.on { background: transparent; border-left: 0; border-bottom-color: var(--brippo-blue-600); }
  }

  /* Static "Accessing the dashboard" section */
  .access-card {
    background: #fff;
    border: 1px solid var(--ink-200);
    border-radius: 10px;
    padding: 18px 20px;
    margin: 14px 0 22px;
  }
  .access-card .access-grid {
    display: grid;
    grid-template-columns: 32px 1fr;
    gap: 16px;
    align-items: start;
  }
  .access-card .access-num {
    width: 28px; height: 28px;
    border-radius: 50%;
    background: var(--brippo-blue-50);
    color: var(--brippo-blue-600);
    font-family: var(--font-mono);
    font-size: 13px; font-weight: 700;
    display: grid; place-items: center;
    border: 1px solid var(--brippo-blue-100);
  }
  .access-card h3 {
    margin: 0 0 4px;
    font-size: 15px; font-weight: 600;
    color: var(--ink-900);
    letter-spacing: -0.005em;
  }
  .access-card p {
    margin: 0;
    font-size: 13.5px;
    color: var(--ink-700);
    line-height: 1.55;
  }
  .access-card + .access-card { margin-top: 10px; }

/* ── Dashboard page — contextual panel lives inside the right TOC
   area, below the "On this page" anchor links. The dashboard preview
   keeps the full main column width. ─────────────────────────────── */
body[data-page='dashboard'] .shell {
  grid-template-columns: 260px 1fr 300px;
}
body[data-page='dashboard'] .toc { padding-right: 16px; }

body[data-page='dashboard'] .ctx-panel {
  margin-top: 18px;
  padding: 16px 0 0;
  background: transparent;
  border: 0;
  border-top: 1px solid rgba(15,26,42,0.10);
  border-radius: 0;
  box-shadow: none;
  grid-template-columns: 1fr;
  gap: 10px;
}
body[data-page='dashboard'] .ctx-panel .ctx-col-head { min-width: 0; }
body[data-page='dashboard'] .ctx-panel h3 {
  font-size: 16px;
  margin: 0 0 4px;
}
body[data-page='dashboard'] .ctx-panel p { font-size: 12.5px; line-height: 1.55; }
body[data-page='dashboard'] .ctx-panel ul { padding-left: 14px; font-size: 12px; line-height: 1.55; }
body[data-page='dashboard'] .ctx-panel .ctx-tip {
  padding: 8px 10px;
  font-size: 11.5px;
}

/* TOC hides at narrow viewports; let the dashboard reflow as before */
@media (max-width: 1180px) {
  body[data-page='dashboard'] .shell {
    grid-template-columns: 240px 1fr;
  }
}

/* ── Drawer + modal overlays inside the dashboard mock ──────────── */
.dash-mock .simple-tbl tbody tr,
.dash-mock .ov-banner-cta { cursor: pointer; }

.dm-drawer,
.dm-modal {
  position: absolute;
  inset: 0;
  z-index: 30;
  display: none;
}
.dm-drawer.is-open,
.dm-modal.is-open { display: block; }

.dm-drawer-backdrop,
.dm-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15,26,42,0.45);
  cursor: pointer;
}

/* Drawer panel — slides in from the right */
.dm-drawer-panel {
  position: absolute;
  top: 0; right: 0; bottom: 0;
  width: min(380px, 60%);
  background: #fff;
  overflow-y: auto;
  padding: 18px 22px 22px;
  box-shadow: -10px 0 30px rgba(15,26,42,0.16);
  font-size: 11.5px;
  color: var(--ink-700);
  font-family: -apple-system, 'Helvetica Neue', Arial, sans-serif;
  animation: dm-drawer-in 0.22s ease-out;
}
@keyframes dm-drawer-in {
  from { transform: translateX(100%); }
  to   { transform: translateX(0); }
}

.dm-close {
  position: absolute;
  top: 14px; right: 16px;
  width: 22px; height: 22px;
  display: grid; place-items: center;
  border: 0; background: transparent;
  cursor: pointer;
  font-size: 18px;
  color: var(--ink-500);
  line-height: 1;
}
.dm-close:hover { color: var(--ink-900); }

.dm-eyebrow {
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: 0.20em;
  text-transform: uppercase;
  color: var(--ink-500);
  font-weight: 600;
  margin-bottom: 6px;
}

.dm-amount {
  font-size: 26px;
  font-weight: 700;
  color: var(--ink-900);
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 4px;
}
.dm-amount .pill {
  font-size: 9.5px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 3px;
  letter-spacing: 0.04em;
  text-transform: capitalize;
}
.dm-amount .pill.success { background: var(--brippo-success-100); color: var(--brippo-success); }
.dm-amount .count {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--ink-500);
  font-weight: 500;
}

.dm-id {
  font-family: var(--font-mono);
  font-size: 10.5px;
  color: var(--ink-500);
  word-break: break-all;
  margin-bottom: 14px;
}

.dm-actions {
  display: flex; gap: 6px;
  margin-bottom: 18px;
}
.dm-actions .btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.05em;
  padding: 6px 12px;
  border-radius: 3px;
  border: 1px solid var(--ink-300);
  background: #fff;
  color: var(--ink-900);
  cursor: pointer;
  text-transform: uppercase;
}
.dm-actions .btn.primary {
  background: var(--brippo-navy-800);
  color: #fff;
  border-color: var(--brippo-navy-800);
}

.dm-section {
  border-top: 1px solid var(--ink-100);
  padding-top: 12px;
  margin-top: 12px;
}
.dm-section h4 {
  font-size: 13px;
  font-weight: 700;
  color: var(--ink-900);
  margin: 0 0 8px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.dm-section h4 .toggle {
  width: 18px; height: 18px;
  display: grid; place-items: center;
  font-size: 14px;
  color: var(--ink-500);
}

.dm-row {
  display: grid;
  grid-template-columns: 90px 1fr;
  gap: 14px;
  padding: 4px 0;
  font-size: 11px;
}
.dm-row .lbl { color: var(--ink-500); }
.dm-row .val { color: var(--ink-900); font-weight: 500; }
.dm-row .val.mono { font-family: var(--font-mono); font-size: 10.5px; }
.dm-row .tag {
  display: inline-block;
  font-size: 8.5px;
  font-weight: 600;
  padding: 1px 5px;
  border-radius: 3px;
  background: rgba(125,80,180,0.10);
  color: #6e3b9c;
  margin-left: 4px;
  letter-spacing: 0.02em;
}

.dm-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 10.5px;
  margin-top: 6px;
}
.dm-table th, .dm-table td {
  text-align: left;
  padding: 6px 4px;
  border-bottom: 1px solid var(--ink-100);
}
.dm-table th {
  font-size: 8.5px;
  font-weight: 700;
  color: var(--ink-500);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.dm-table td.mono { font-family: var(--font-mono); font-size: 10px; }
.dm-table tr:last-child td { border-bottom: 0; }

.dm-pager {
  display: flex; align-items: center; justify-content: space-between;
  margin-top: 10px;
  font-size: 10px;
  color: var(--ink-500);
}
.dm-pager .pgs { display: flex; gap: 6px; }
.dm-pager .pg {
  font-size: 9px; font-weight: 700;
  padding: 4px 12px;
  border: 1px solid var(--ink-300);
  border-radius: 3px;
  color: var(--ink-400);
  background: var(--ink-50);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.dm-export {
  display: inline-block;
  font-size: 9px;
  font-weight: 700;
  padding: 4px 10px;
  background: var(--brippo-navy-800);
  color: #fff;
  border-radius: 3px;
  letter-spacing: 0.06em;
  float: right;
}

/* Modal panel — centred over the dashboard */
.dm-modal-panel {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: min(440px, 88%);
  max-height: 86%;
  overflow-y: auto;
  background: #fff;
  border-radius: 8px;
  padding: 22px 26px;
  box-shadow: 0 24px 60px rgba(15,26,42,0.30);
  font-size: 12px;
  line-height: 1.55;
  color: var(--ink-700);
  font-family: -apple-system, 'Helvetica Neue', Arial, sans-serif;
  animation: dm-modal-in 0.18s ease-out;
}
@keyframes dm-modal-in {
  from { opacity: 0; transform: translate(-50%, -48%); }
  to   { opacity: 1; transform: translate(-50%, -50%); }
}
.dm-modal h3 {
  font-size: 13px;
  font-weight: 700;
  color: var(--ink-900);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin: 0 0 12px;
}
.dm-modal h4 {
  font-size: 13px;
  font-weight: 700;
  color: var(--ink-900);
  margin: 14px 0 6px;
}
.dm-modal p { margin: 0 0 10px; }
.dm-modal .ok-banner {
  background: var(--brippo-success);
  color: #fff;
  padding: 10px 12px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 500;
  margin: 8px 0 14px;
}
.dm-modal a { color: var(--brippo-blue-600); text-decoration: none; font-weight: 500; }

/* ── Export Balance drawer ──────────────────────────────────────
   Wider variant (~520px) with form fields, chip toggles, and a
   submit row. Same backdrop + slide-in animation as other drawers. */
.dm-drawer-panel.wide {
  width: min(560px, 80%);
  padding: 22px 26px 24px;
}
.ex-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px 16px;
  margin-top: 14px;
}
.ex-field { display: flex; flex-direction: column; gap: 5px; min-width: 0; }
.ex-field.grow { flex: 1 1 0; }
.ex-field label {
  font-size: 10.5px;
  font-weight: 600;
  color: var(--ink-700);
  letter-spacing: 0.02em;
}
.ex-select, .ex-input {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 10px;
  border: 1px solid var(--ink-200);
  border-radius: 5px;
  background: #fff;
  font-size: 12px;
  color: var(--ink-900);
  min-height: 32px;
  cursor: default;
}
.ex-input.mono { font-family: var(--font-mono); font-size: 11.5px; }
.ex-select .caret { color: var(--ink-500); font-size: 10px; margin-left: 8px; }

.ex-section { margin-top: 18px; }
.ex-section-title {
  font-size: 11.5px;
  font-weight: 700;
  color: var(--ink-800);
  margin-bottom: 8px;
}

.ex-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.ex-chip {
  display: inline-flex;
  align-items: center;
  padding: 5px 12px;
  border-radius: 999px;
  background: var(--ink-100);
  color: var(--ink-500);
  font-size: 11px;
  font-weight: 500;
  cursor: pointer;
  user-select: none;
  border: 1px solid transparent;
  transition: background 0.12s, color 0.12s;
}
.ex-chip:hover { background: var(--ink-200); }
.ex-chip::before {
  content: '';
  display: inline-block;
  width: 0;
  margin-right: 0;
  overflow: hidden;
  transition: width 0.15s, margin-right 0.15s;
  font-weight: 700;
}
.ex-chip.on {
  background: var(--brippo-blue-50);
  color: var(--brippo-blue-700);
  border-color: var(--brippo-blue-100);
}
.ex-chip.on::before {
  content: '✓';
  width: 1em;
  margin-right: 5px;
  color: var(--brippo-blue-600);
}

.ex-checks { display: flex; flex-direction: column; gap: 5px; }
.ex-check {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 11.5px;
  color: var(--ink-700);
  cursor: pointer;
  user-select: none;
}
.ex-check input[type='checkbox'] {
  appearance: none;
  -webkit-appearance: none;
  width: 13px; height: 13px;
  border: 1px solid var(--ink-300);
  border-radius: 3px;
  display: grid; place-items: center;
  cursor: pointer;
  background: #fff;
}
.ex-check input[type='checkbox']:checked {
  background: var(--brippo-blue-600);
  border-color: var(--brippo-blue-600);
}
.ex-check input[type='checkbox']:checked::after {
  content: '✓';
  color: #fff;
  font-size: 9px;
  font-weight: 700;
  line-height: 1;
}

.ex-send-row {
  margin-top: 22px;
  padding-top: 16px;
  border-top: 1px solid var(--ink-200);
  display: flex;
  align-items: flex-end;
  gap: 12px;
}
.ex-submit {
  flex-shrink: 0;
  padding: 9px 16px;
  background: var(--ink-900, #082d4c);
  color: #fff;
  border: 0;
  border-radius: 4px;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.08em;
  cursor: pointer;
  transition: background 0.15s;
}
.ex-submit:hover { background: #0c3c60; }

/* ── Export success banner — appears at top of the Overview tab
   after submitting the export drawer. Auto-hides after ~6s. */
.ex-success {
  background: var(--brippo-success);
  color: #fff;
  padding: 12px 16px;
  border-radius: 4px;
  font-size: 11.5px;
  font-weight: 500;
  margin-bottom: 12px;
  animation: ex-success-in 0.25s ease-out;
}
.ex-success strong { font-weight: 700; }
@keyframes ex-success-in {
  from { opacity: 0; transform: translateY(-6px); }
  to   { opacity: 1; transform: translateY(0); }
}
