.workspace .topnav-inner { max-width: none; padding: 10px 24px; gap: 18px; }
.workspace .topnav-links { margin-left: 28px; }
.workspace .brand { min-width: 150px; }
.workspace .user-chip { font-size: 12px; color: var(--muted); max-width: 230px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.workspace .balance-chip { border-left: 1px solid var(--border); padding-left: 18px; font-size: 12px; color: #526174; white-space: nowrap; }
.workspace-shell { max-width: none; margin-left: 184px; padding: 26px 28px 60px; }
.workspace-nav { position: fixed; inset: 64px auto 0 0; width: 184px; display: flex; flex-direction: column; gap: 4px; padding: 25px 12px 18px; border-right: 1px solid var(--border); background: #fff; z-index: 30; }
.nav-label { font-size: 10px; color: #8b94a0; padding: 0 14px 10px; letter-spacing: 1px; }
.workspace-nav .tab { display: flex; align-items: center; gap: 11px; width: 100%; border: 0; border-radius: 4px; padding: 11px 14px; text-align: left; background: transparent; color: #5b6776; font-size: 13px; cursor: pointer; white-space: nowrap; }
.workspace-nav .tab:hover { background: #f5f7f9; color: var(--text); }
.workspace-nav .tab.is-active { background: #edf3f9; color: var(--primary); font-weight: 600; }
.nav-icon { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.65; stroke-linecap: round; stroke-linejoin: round; flex: 0 0 auto; }
.nav-footer { margin-top: auto; border-top: 1px solid var(--border); padding: 16px 14px 0; color: #8b94a0; font-size: 11px; }
.nav-footer a { display: block; color: #647180; font-size: 12px; margin-bottom: 6px; }
.tab-panel { display: none; min-width: 0; }
.tab-panel.is-active { display: block; }
.page-heading { display: flex; justify-content: space-between; align-items: center; gap: 20px; margin-bottom: 22px; }
.page-heading h1 { margin: 0 0 5px; font-size: 23px; letter-spacing: -.5px; }
.page-heading p { margin: 0; font-size: 12px; color: var(--muted); }
.page-context { color: #7d8793; font-size: 11px; white-space: nowrap; }
.table-toolbar { display: flex; justify-content: space-between; align-items: center; gap: 14px; margin-bottom: 16px; flex-wrap: wrap; }
.search-input { border: 1px solid #d5dbe2; border-radius: 4px; padding: 8px 11px; min-width: 0; width: min(100%, 360px); font-size: 13px; background: #fff; }
.pagination { display: flex; align-items: center; justify-content: flex-end; gap: 12px; padding-top: 18px; flex-wrap: wrap; color: var(--muted); font-size: 12px; }
#authBanner { margin-bottom: 20px; }
@media (min-width: 1650px) { .workspace-shell { padding: 32px 40px 70px; } }
@media (max-width: 1100px) {
  .workspace-nav { width: 164px; }
  .workspace-shell { margin-left: 164px; padding: 24px; }
  .workspace .topnav-links { margin-left: 0; gap: 20px; }
}
@media (max-width: 760px) {
  .workspace .topnav { position: relative; }
  .workspace .topnav-inner { padding: 12px 16px; gap: 10px; }
  .workspace .topnav-links { display: none; }
  .workspace .brand { min-width: 0; }
  .workspace .user-chip { max-width: 145px; font-size: 11px; order: 5; width: 100%; max-width: none; }
  .workspace .balance-chip { border: 0; padding: 0; margin-left: auto; font-size: 11px; }
  .workspace .topnav-spacer { display: none; }
  .workspace-nav { position: sticky; top: 0; inset: 0 auto auto; margin: -20px -16px 22px; width: auto; flex-direction: row; gap: 0; overflow-x: auto; padding: 0 8px; border-right: 0; border-bottom: 1px solid var(--border); }
  .workspace-nav .tab { width: auto; padding: 13px 12px; border-radius: 0; border-bottom: 2px solid transparent; gap: 6px; font-size: 12px; }
  .workspace-nav .tab.is-active { background: #fff; border-bottom-color: var(--primary); }
  .workspace-nav .nav-label, .workspace-nav .nav-footer, .workspace-nav .nav-icon { display: none; }
  .workspace-shell { margin: 0; padding: 20px 16px 40px; }
  .page-heading { margin-bottom: 18px; }
  .page-heading h1 { font-size: 21px; }
  .page-context { display: none; }
  #authBanner { margin: 0 0 20px; }
}
.workspace .table { min-width: 620px; }
.workspace #tab-records .table, .workspace #tab-receipts .table { min-width: 890px; }
.workspace .table td.mono { white-space: nowrap; }
.workspace .table td:last-child:has(.btn) { white-space: nowrap; }
