/* ============================================================
   App shell: sidebar + topbar + content. Loaded after legacy.css,
   so it can override the old inline styles.
   ============================================================ */
html { font-size: 15px; }
body {
  font-family: var(--font-sans);
  font-size: .9rem;
  line-height: 1.45;
  background: var(--surface-0);
  color: var(--text-1);
  min-height: 100vh;
  margin: 0;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4, h5 { color: var(--text-1); letter-spacing: -0.01em; }
h1 { font-size: 1.6rem; font-weight: 700; }
h2 { font-size: 1.35rem; font-weight: 650; margin-bottom: 0; }
h3 { font-size: 1.15rem; font-weight: 600; }
h4 { font-size: 1rem;  font-weight: 600; }
h5 { font-size: .95rem; font-weight: 600; }
a { color: var(--brand); text-decoration: none; }
a:hover { color: var(--brand-hover); }
code, .mono, .address-link { font-family: var(--font-mono); font-size: .85em; }
::selection { background: var(--brand-soft); }
*:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }

/* ---------- shell ---------- */
.app-shell { display: flex; min-height: 100vh; }
.sidebar {
  position: fixed; top: 0; bottom: 0; left: 0;
  width: var(--sidebar-w);
  background: var(--surface-1);
  border-right: 1px solid var(--border);
  display: flex; flex-direction: column;
  z-index: 1040;
  transition: width .15s ease, transform .2s ease;
}
.sidebar .brand {
  height: var(--topbar-h); flex: none;
  display: flex; align-items: center; gap: .65rem;
  padding: 0 .9rem;
  border-bottom: 1px solid var(--border);
  color: var(--text-1); font-weight: 700; font-size: .95rem; text-decoration: none; white-space: nowrap;
}
.sidebar .brand .logo {
  width: 32px; height: 32px; flex: none; border-radius: 9px;
  background: linear-gradient(135deg, var(--brand), #00a67a);
  color: var(--brand-ink); display: grid; place-items: center; font-size: 1.05rem;
}
.sidebar .brand small { display: block; font-size: .68rem; font-weight: 500; color: var(--text-3); line-height: 1.1; }
.sidebar nav { flex: 1; overflow-y: auto; padding: .8rem .6rem; scrollbar-width: thin; }
.nav-group + .nav-group { margin-top: 1rem; }
.nav-group-title {
  font-size: .66rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase;
  color: var(--text-3); padding: 0 .65rem; margin-bottom: .3rem; white-space: nowrap;
}
.nav-item-link {
  display: flex; align-items: center; gap: .65rem;
  padding: .48rem .65rem; margin-bottom: 2px;
  border-radius: var(--radius-1);
  color: var(--text-2); text-decoration: none; font-weight: 500; font-size: .865rem; white-space: nowrap;
  transition: background .12s, color .12s;
}
.nav-item-link:hover { background: var(--surface-2); color: var(--text-1); }
.nav-item-link.active { background: var(--brand-soft); color: var(--brand); }
.nav-item-link .bi { font-size: 1.05rem; width: 1.3rem; text-align: center; flex: none; }
.nav-item-link .ext { margin-left: auto; font-size: .75rem; color: var(--text-3); }
.sidebar-footer { flex: none; border-top: 1px solid var(--border); padding: .6rem; display: flex; align-items: center; gap: .5rem; }
.user-chip { display: flex; align-items: center; gap: .6rem; min-width: 0; flex: 1; padding: .3rem .4rem; border-radius: var(--radius-1); color: var(--text-1); text-decoration: none; }
.user-chip:hover { background: var(--surface-2); color: var(--text-1); }
.user-chip .avatar {
  width: 30px; height: 30px; flex: none; border-radius: 50%;
  background: var(--surface-3); color: var(--text-1);
  display: grid; place-items: center; font-weight: 600; font-size: .8rem;
}
.user-chip .meta { min-width: 0; line-height: 1.15; }
.user-chip .name { font-size: .82rem; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.user-chip .role { font-size: .68rem; color: var(--text-3); text-transform: uppercase; letter-spacing: .04em; }

.app-main { flex: 1; min-width: 0; margin-left: var(--sidebar-w); display: flex; flex-direction: column; transition: margin-left .15s ease; }
.topbar {
  position: sticky; top: 0; z-index: 1030;
  height: var(--topbar-h);
  display: flex; align-items: center; gap: .6rem;
  padding: 0 1.25rem;
  background: color-mix(in srgb, var(--surface-0) 88%, transparent);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.topbar .crumbs { display: flex; align-items: center; gap: .4rem; min-width: 0; font-size: .85rem; color: var(--text-3); }
.topbar .crumbs .current { color: var(--text-1); font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.topbar .spacer { flex: 1; }
.icon-btn {
  width: 34px; height: 34px; display: inline-grid; place-items: center;
  border-radius: var(--radius-1); border: 1px solid transparent;
  background: transparent; color: var(--text-2); cursor: pointer; font-size: 1.05rem;
}
.icon-btn:hover { background: var(--surface-2); color: var(--text-1); }
.app-content { flex: 1; width: 100%; max-width: 1680px; margin: 0 auto; padding: 1.25rem 1.5rem 3rem; }
.app-footer { padding: .9rem 1.5rem; color: var(--text-3); font-size: .74rem; border-top: 1px solid var(--border); }

/* collapsed sidebar (desktop) */
html.sidebar-collapsed .sidebar { width: var(--sidebar-w-collapsed); }
html.sidebar-collapsed .sidebar .brand > div, html.sidebar-collapsed .nav-group-title,
html.sidebar-collapsed .nav-item-link span, html.sidebar-collapsed .user-chip .meta { display: none; }
html.sidebar-collapsed .sidebar .brand { justify-content: center; padding: 0; }
html.sidebar-collapsed .nav-item-link { justify-content: center; padding: .55rem 0; }
html.sidebar-collapsed .nav-group + .nav-group { margin-top: .5rem; padding-top: .5rem; border-top: 1px solid var(--border); }
html.sidebar-collapsed .sidebar-footer { flex-direction: column; }
html.sidebar-collapsed .app-main { margin-left: var(--sidebar-w-collapsed); }

/* mobile: off-canvas */
.sidebar-backdrop { position: fixed; inset: 0; background: rgba(0,0,0,.55); z-index: 1035; display: none; }
@media (max-width: 991.98px) {
  .sidebar { transform: translateX(-100%); width: var(--sidebar-w) !important; }
  html.sidebar-open .sidebar { transform: none; }
  html.sidebar-open .sidebar-backdrop { display: block; }
  html.sidebar-collapsed .sidebar .brand > div, html.sidebar-collapsed .nav-group-title,
  html.sidebar-collapsed .nav-item-link span, html.sidebar-collapsed .user-chip .meta { display: initial; }
  html.sidebar-collapsed .nav-item-link { justify-content: flex-start; padding: .48rem .65rem; }
  .app-main, html.sidebar-collapsed .app-main { margin-left: 0; }
  .app-content { padding: 1rem .9rem 2.5rem; }
  .topbar { padding: 0 .9rem; }
}

/* ---------- page header (existing pages use <h2> + actions) ---------- */
.page-content > .d-flex:first-child h2 { font-size: 1.35rem; }
.page-content h2 .bi { color: var(--brand); font-size: 1.1em; }

/* ---------- overrides of legacy inline styles ---------- */
.container { max-width: none; padding: 0; }
.card { border-radius: var(--radius-2); box-shadow: none; }
.card:hover { box-shadow: none; }
.card-header { padding: .75rem 1rem; }
.stat-card { border-radius: var(--radius-2); }
.stat-card::before { display: none; }              /* no rainbow top borders */
.stat-value { font-size: 1.45rem; font-variant-numeric: tabular-nums; letter-spacing: -.01em; }
.stat-label { font-size: .74rem; letter-spacing: .04em; }
.table { --bs-table-bg: transparent; --bs-table-color: var(--text-1); --bs-table-border-color: var(--border);
         --bs-table-hover-bg: var(--surface-2); --bs-table-hover-color: var(--text-1); font-size: .86rem; }
.table > :not(caption) > * > * { padding: .55rem .75rem; background-color: transparent; }
.table thead th {
  font-size: .72rem; font-weight: 600; letter-spacing: .03em; text-transform: uppercase;
  color: var(--text-3); background: var(--surface-1); border-bottom: 1px solid var(--border-strong);
}
.table tbody tr:hover > * { background-color: var(--surface-2); }
.table-dark { --bs-table-bg: var(--surface-1); }
.table-sm > :not(caption) > * > * { padding: .4rem .6rem; }
.form-control, .form-select { background-color: var(--surface-0); border-color: var(--border-strong); color: var(--text-1); border-radius: var(--radius-1); }
.form-control:focus, .form-select:focus { background-color: var(--surface-0); color: var(--text-1); border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-soft); }
.form-control::placeholder { color: var(--text-3); }
.form-text, .text-muted { color: var(--text-3) !important; }
.btn { border-radius: var(--radius-1); font-weight: 500; }
.btn-primary { --bs-btn-bg: var(--brand); --bs-btn-border-color: var(--brand); --bs-btn-color: var(--brand-ink);
               --bs-btn-hover-bg: var(--brand-hover); --bs-btn-hover-border-color: var(--brand-hover); --bs-btn-hover-color: var(--brand-ink);
               --bs-btn-active-bg: var(--brand-hover); --bs-btn-active-color: var(--brand-ink); background-image: none; }
.btn-outline-primary { --bs-btn-color: var(--brand); --bs-btn-border-color: var(--brand); --bs-btn-hover-bg: var(--brand-soft); --bs-btn-hover-color: var(--brand); --bs-btn-hover-border-color: var(--brand); }
.btn-outline-secondary { --bs-btn-color: var(--text-2); --bs-btn-border-color: var(--border-strong); --bs-btn-hover-bg: var(--surface-2); --bs-btn-hover-color: var(--text-1); --bs-btn-hover-border-color: var(--border-strong); }
.dropdown-menu { --bs-dropdown-bg: var(--surface-2); --bs-dropdown-border-color: var(--border-strong); --bs-dropdown-color: var(--text-1);
                 --bs-dropdown-link-color: var(--text-1); --bs-dropdown-link-hover-bg: var(--surface-3); --bs-dropdown-link-hover-color: var(--text-1);
                 border-radius: var(--radius-2); box-shadow: var(--shadow-2); font-size: .875rem; }
.dropdown-menu-dark { --bs-dropdown-bg: var(--surface-2); --bs-dropdown-border-color: var(--border-strong); }
.modal-content { background: var(--surface-1); border: 1px solid var(--border-strong); border-radius: var(--radius-3); }
.modal-header, .modal-footer { border-color: var(--border); }
.alert { border-radius: var(--radius-2); }
.badge { font-weight: 600; letter-spacing: .01em; }
footer.text-center { display: none; }               /* old inline footer inside pages, if any */

/* ---------- numeric / money helpers ---------- */
.num, td.num, th.num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.tnum { font-variant-numeric: tabular-nums; }
.pos { color: var(--pos) !important; }
.neg { color: var(--neg) !important; }
.muted-zero { color: var(--text-3); }

/* ---------- toasts / states ---------- */
.toast-container { position: fixed; bottom: 16px; right: 16px; top: auto; z-index: var(--z-toast); display: flex; flex-direction: column-reverse; gap: .5rem; pointer-events: none; }
.toast-container .app-toast { pointer-events: auto; }
.app-toast { min-width: 280px; max-width: 420px; background: var(--surface-2); border: 1px solid var(--border-strong); border-left: 4px solid var(--info);
             color: var(--text-1); border-radius: var(--radius-2); box-shadow: var(--shadow-2); padding: .7rem .9rem; display: flex; gap: .6rem; align-items: flex-start;
             animation: toast-in .18s ease-out; font-size: .86rem; }
.app-toast.success { border-left-color: var(--pos); }  .app-toast.danger { border-left-color: var(--neg); }  .app-toast.warning { border-left-color: var(--warn); }
.app-toast .close { margin-left: auto; background: none; border: 0; color: var(--text-3); cursor: pointer; line-height: 1; }
@keyframes toast-in { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
.skeleton { animation: skeleton-loading 1.2s ease-in-out infinite alternate; border-radius: var(--radius-1); }
@keyframes skeleton-loading { 0% { background-color: var(--surface-1); } 100% { background-color: var(--surface-3); } }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: .6; } }
.pulse { animation: pulse 2s ease-in-out infinite; }
.empty-state { text-align: center; padding: 2.5rem 1rem; color: var(--text-3); }
.empty-state > .bi { font-size: 2rem; display: block; margin-bottom: .5rem; color: var(--text-3); }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; } }

/* flash alerts inside content */
.flash-stack { margin-bottom: 1rem; }

/* ---------- responsive tables: scroll, don't collapse ---------- */
@media (max-width: 767.98px) {
  .table-responsive > .table, .card .table { min-width: 760px; }
  .page-content > .d-flex:first-child { flex-wrap: wrap; gap: .6rem; }
  .stat-card .stat-value { font-size: 1.25rem; }
}
.table-responsive { scrollbar-width: thin; }

/* ============================================================
   Design-system components (design-system/usdt-tracker/MASTER.md)
   ============================================================ */
html { font-size: 16px; scroll-padding-top: calc(var(--topbar-h) + 8px); }
body { font-size: var(--text-base); }
h1 { font-size: var(--text-xl); font-weight: 700; }
h2 { font-size: var(--text-xl); font-weight: 650; }
.page-content > .d-flex:first-child h1, .page-content > .d-flex:first-child h2 { font-size: var(--text-xl); }
button, .btn, a, [role="button"], summary { touch-action: manipulation; }
.btn, .icon-btn, .form-control, .form-select { transition: background-color var(--motion-fast) var(--ease), border-color var(--motion-fast) var(--ease), color var(--motion-fast) var(--ease), box-shadow var(--motion-fast) var(--ease); }
.btn:focus-visible, .icon-btn:focus-visible, .form-control:focus-visible, .form-select:focus-visible, .nav-item-link:focus-visible { outline: none; box-shadow: var(--focus-ring); }
.btn-sm { min-height: 28px; font-size: var(--text-sm); }
.icon-btn, .btn-icon { min-width: var(--target-min); min-height: var(--target-min); }
[disabled], .disabled, .btn:disabled { opacity: .5; cursor: not-allowed !important; }
.form-control, .form-select { font-size: var(--text-base); min-height: 34px; }
.form-label { font-size: var(--text-sm); font-weight: 500; color: var(--text-2); margin-bottom: 4px; }
.invalid-feedback { display: block; font-size: var(--text-xs); color: var(--neg); }
.form-control.is-invalid, .form-select.is-invalid { border-color: var(--neg); }
@media (pointer: coarse) {
  .btn, .icon-btn, .form-control, .form-select, .nav-item-link { min-height: 44px; }
  .btn-sm { min-height: 40px; }
}
@media (max-width: 767.98px) { .form-control, .form-select { font-size: var(--text-md); } }

/* data tables */
.table-scroll { overflow: auto; max-height: 72vh; border: 1px solid var(--border); border-radius: var(--radius-2); background: var(--surface-1); scrollbar-width: thin; }
.table-scroll .table { margin-bottom: 0; }
.table-scroll thead th { position: sticky; top: 0; z-index: 2; background: var(--surface-1); box-shadow: inset 0 -1px 0 var(--border-strong); }
.table thead th { text-transform: none; letter-spacing: 0; font-size: var(--text-xs); font-weight: 600; color: var(--text-3); }
.table thead th.num, .table thead th[data-num] { text-align: right; }
.table td, .table th { font-size: var(--text-sm); vertical-align: middle; }
.table tbody tr { transition: background-color var(--motion-fast) var(--ease); }
.table tbody tr.is-clickable { cursor: pointer; }
.cell-truncate { max-width: 220px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cell-wrap { overflow-wrap: anywhere; }
.row-compact td, .row-compact th { padding-top: .35rem; padding-bottom: .35rem; }
.sort-btn { background: none; border: 0; padding: 0; color: inherit; font: inherit; display: inline-flex; align-items: center; gap: 4px; cursor: pointer; }
.sort-btn .bi { font-size: .8em; opacity: .6; }
.sort-btn[aria-sort="ascending"] .bi, .sort-btn[aria-sort="descending"] .bi { opacity: 1; color: var(--brand); }

/* KPI */
.kpi-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: var(--space-3); }
.kpi { background: var(--surface-1); border: 1px solid var(--border); border-radius: var(--radius-2); padding: var(--space-3) var(--space-4); min-width: 0; }
.kpi-label { font-size: var(--text-xs); font-weight: 600; color: var(--text-3); letter-spacing: .02em; display: flex; align-items: center; gap: 6px; }
.kpi-value { font-size: clamp(17px, 1.2vw + 9px, 22px); font-weight: 650; font-variant-numeric: tabular-nums; letter-spacing: -.01em; line-height: 1.2; margin-top: 4px; color: var(--text-1); display: flex; flex-wrap: wrap; align-items: baseline; gap: 0 4px; }
.kpi-value small, .kpi-value .unit { font-size: var(--text-sm); font-weight: 500; color: var(--text-3); white-space: nowrap; }
.kpi-sub { font-size: var(--text-xs); color: var(--text-2); margin-top: 4px; }
.kpi.kpi-pos .kpi-value { color: var(--pos); } .kpi.kpi-neg .kpi-value { color: var(--neg); } .kpi.kpi-warn .kpi-value { color: var(--warn); }

/* status pills */
.pill { display: inline-flex; align-items: center; gap: 4px; padding: 2px 8px; border-radius: 999px; font-size: var(--text-xs); font-weight: 600; line-height: 18px; white-space: nowrap; background: var(--surface-2); color: var(--text-2); }
.pill .bi { font-size: .9em; }
.pill-paid { background: var(--pos-bg); color: var(--pos); }
.pill-pending, .pill-approval { background: var(--warn-bg); color: var(--warn); }
.pill-rejected { background: var(--neg-bg); color: var(--neg); }
.pill-deleted { background: var(--surface-2); color: var(--text-3); text-decoration: line-through; }
.pill-info { background: var(--info-bg); color: var(--info); }
.pill-brand { background: var(--brand-soft); color: var(--brand); }
.chip-list { display: flex; flex-wrap: wrap; gap: 6px; }

/* toolbar under the topbar */
.toolbar { position: sticky; top: var(--topbar-h); z-index: var(--z-sticky); background: var(--surface-0); display: flex; flex-wrap: wrap; gap: var(--space-2); align-items: center; padding: var(--space-2) 0 var(--space-3); margin-bottom: var(--space-2); border-bottom: 1px solid var(--border); }
.toolbar .grow { flex: 1; }
.page-head { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-2) var(--space-4); margin-bottom: var(--space-3); }
.page-head h1, .page-head h2 { margin: 0; }
.page-head .subtitle { color: var(--text-3); font-size: var(--text-sm); }
.section-title { font-size: var(--text-sm); font-weight: 600; color: var(--text-2); letter-spacing: .02em; margin: var(--space-5) 0 var(--space-2); display: flex; align-items: center; gap: 8px; }

/* loading / busy / skeleton */
[aria-busy="true"] { position: relative; }
[aria-busy="true"]::after { content: ''; position: absolute; inset: 0; background: color-mix(in srgb, var(--surface-0) 55%, transparent); border-radius: inherit; pointer-events: none; }
.skeleton-line { display: block; height: 12px; margin: 8px 0; border-radius: 4px; }
.skeleton-line.w-25 { width: 25%; } .skeleton-line.w-50 { width: 50%; } .skeleton-line.w-75 { width: 75%; }
.spinner-border { border-width: .16em; }

/* address / hash display */
.addr { font-family: var(--font-mono); font-size: var(--text-xs); color: var(--text-2); }
.addr .copy { color: var(--text-3); margin-left: 4px; }
.addr .copy:hover { color: var(--brand); }

/* ---------- period picker ---------- */
.period { position: relative; display: inline-block; }
.period-btn { display: inline-flex; align-items: center; gap: 8px; font-weight: 500; }
.period-btn .period-caret { font-size: .75em; opacity: .7; }
.period[data-preset="custom"] .period-btn { border-color: var(--brand); color: var(--brand); }
.period-menu { position: absolute; top: calc(100% + 6px); left: 0; z-index: 1045; width: 360px; max-width: calc(100vw - 24px);
  background: var(--surface-2); border: 1px solid var(--border-strong); border-radius: var(--radius-2); box-shadow: var(--shadow-2); padding: var(--space-3); }
.period-presets { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; margin-bottom: var(--space-3); }
.period-preset { text-align: left; padding: 7px 10px; border-radius: var(--radius-1); border: 1px solid transparent; background: var(--surface-1); color: var(--text-1); font-size: var(--text-sm); font-weight: 500; cursor: pointer; transition: background-color var(--motion-fast) var(--ease); }
.period-preset:hover { background: var(--surface-3); }
.period-preset.active { border-color: var(--brand); color: var(--brand); background: var(--brand-soft); }
.period-inputs { display: flex; align-items: center; gap: 8px; }
.period-inputs .form-control { font-variant-numeric: tabular-nums; }
.period-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: var(--space-3); }
@media (max-width: 575.98px) { .period-menu { position: fixed; left: 12px; right: 12px; top: auto; width: auto; } }
.flatpickr-calendar { font-family: var(--font-sans); }


/* ---------- primary button (explicit, overrides any legacy shorthand) ---------- */
.btn-primary { background-color: var(--brand); border: 1px solid var(--brand); color: var(--brand-ink); background-image: none; box-shadow: none; transform: none; }
.btn-primary:hover, .btn-primary:focus-visible { background-color: var(--brand-hover); border-color: var(--brand-hover); color: var(--brand-ink); transform: none; }
.btn-primary:active, .btn-primary.active, .btn-primary:disabled { background-color: var(--brand); border-color: var(--brand); color: var(--brand-ink); }
.btn-primary:focus-visible { box-shadow: var(--focus-ring); }

/* ---------- toggle chips (filters) ---------- */
.chip-toggle { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px; border: 1px solid var(--border-strong);
  background: var(--surface-1); color: var(--text-2); font-size: var(--text-xs); font-weight: 600; line-height: 18px; cursor: pointer; white-space: nowrap;
  transition: background-color var(--motion-fast) var(--ease), color var(--motion-fast) var(--ease), border-color var(--motion-fast) var(--ease); }
.chip-toggle:hover { background: var(--surface-2); color: var(--text-1); }
.chip-toggle[aria-pressed="true"], .chip-toggle.active { background: var(--brand-soft); border-color: var(--brand); color: var(--brand); }
.chip-toggle .count { font-weight: 500; color: var(--text-3); }
.chip-toggle[aria-pressed="true"] .count { color: inherit; opacity: .8; }
.chip-toggle:focus-visible { outline: none; box-shadow: var(--focus-ring); }
.pill-custom { background: var(--info-bg); color: var(--info); }
.pill-outline { background: transparent; border: 1px solid var(--border-strong); color: var(--text-2); }

/* copy button inside .addr */
.addr .copy { background: none; border: 0; padding: 0 2px; cursor: pointer; color: var(--text-3); font: inherit; line-height: 1; vertical-align: middle; }
.addr .copy:hover, .addr .copy:focus-visible { color: var(--brand); outline: none; }


/* ---------- table helpers with enough specificity to beat Bootstrap's cell selector ---------- */
.table > :not(caption) > * > .muted-zero, .table > :not(caption) > * > * .muted-zero { color: var(--text-3); }
.table > :not(caption) > * > .pos { color: var(--pos); }
.table > :not(caption) > * > .neg { color: var(--neg); }
.row-actions { display: inline-flex; gap: 4px; justify-content: flex-end; align-items: center; white-space: nowrap; }
.row-actions .icon-btn, .row-actions .btn-icon { width: 30px; height: 30px; min-width: 30px; min-height: 30px; }
.table tbody tr.is-open > * { background-color: var(--surface-2); }
.table tbody tr.detail-row > * { background-color: var(--surface-0); }
