:root {
  font-family:Tahoma,"Segoe UI",Arial,sans-serif;
  color:#1e3042;
  background:#f4f6f9;
  font-size:15px;
  line-height:1.7;
  --ink:#152b40;
  --teal:#087f8c;
  --line:#e2e8ee
}
* {
  box-sizing:border-box
}
body {
  margin:0
}
a {
  color:var(--teal);
  text-decoration:none
}
a:hover {
  text-decoration:underline
}
button,input,select,textarea {
  font:inherit
}
button,.button {
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding:10px 20px;
  border:1px solid transparent;
  border-radius:8px;
  background:var(--teal);
  color:#fff;
  font-weight:600;
  cursor:pointer;
  line-height:1.5;
  text-decoration:none
}
button:hover,.button:hover {
  filter:brightness(.95);
  text-decoration:none
}
button:disabled {
  opacity:.5;
  cursor:wait
}
.secondary {
  background:#fff;
  color:var(--ink);
  border-color:var(--line)
}
.text-button {
  background:transparent;
  color:var(--teal);
  padding:4px 8px
}
.danger {
  color:#b23342
}
.shell {
  display:flex;
  min-height:100vh
}
.work-tabs {
  display:flex;
  align-items:center;
  gap:3px;
  min-height:30px;
  padding:0 8px;
  border-bottom:1px solid #c7d2dc;
  background:#f3f5f7;
  overflow-x:auto;
  white-space:nowrap
}
.work-tab {
  display:flex;
  flex:none;
  align-items:center;
  border:1px solid #ccd5dc;
  background:#e9edf0;
  font-size:12px;
  min-width:0
}
.work-tab.active {background:white;border-bottom-color:white;font-weight:700}
.work-tab a {padding:2px 8px;color:#24384c;text-decoration:none}
.work-tabs .work-tab a:hover,.work-tabs .work-tab a:focus-visible {background:#e1edf4;color:#152b40;border-radius:0}
.work-tab button {border:0;background:transparent;color:#52677a;padding:1px 7px;cursor:pointer;font-size:16px}
.work-tab button:hover,.work-tab button:focus-visible {background:#d6e4ef;color:#152b40}
.work-tabs-note {margin-inline-start:auto;color:#586a78;font-size:10px}
.workspace-pane {width:100%}
.workspace-pane[hidden] {display:none!important}
@media (max-width:760px) {.work-tabs-note {display:none}.work-tabs {padding-inline:3px}}
.shell aside {
  width:275px;
  flex-shrink:0;
  padding:28px 18px;
  color:#d3e0eb;
  background:#152b40;
  display:flex;
  flex-direction:column;
  position:sticky;
  top:0;
  height:100vh;
  overflow-y:auto
}
.brand {
  color:white;
  font-size:32px;
  font-weight:800;
  letter-spacing:2px;
  padding:0 12px 26px
}
.brand span {
  display:block;
  font-size:12px;
  font-weight:400;
  letter-spacing:0;
  color:#a4c0cf
}
.sidebar-caption {
  font-size:11px;
  color:#8ba4b6;
  margin:16px 14px 8px
}
nav {
  display:grid;
  gap:5px
}
nav a {
  padding:11px 14px;
  border-radius:8px;
  color:#c8d7e4;
  font-size:14px
}
nav a.active {
  background:#214456;
  color:#7de0d8;
  border-right:3px solid #45c4b7
}
nav a:hover {
  background:#203b50;
  text-decoration:none
}
.nav-group {
  border-top:1px solid #2c4559;
  padding:4px 0
}
.nav-group summary {
  display:flex;
  align-items:center;
  gap:9px;
  padding:10px 12px;
  color:#fff;
  font-weight:700;
  cursor:pointer
}
.nav-group summary img,.legacy-nav-link img {
  width:22px;
  height:22px;
  flex:0 0 22px
}
.nav-group summary small {
  margin-right:auto;
  font-size:11px;
  color:#a4c0cf;
  font-weight:400
}
.nav-items {
  display:grid;
  gap:2px;
  padding-right:8px
}
nav .legacy-nav-link {
  display:flex;
  align-items:center;
  justify-content:flex-start;
  gap:10px;
  width:100%;
  padding:8px 10px;
  text-align:right;
  color:#c8d7e4;
  font-size:13px
}
nav button.legacy-nav-link {
  border:0;
  background:transparent;
  font-family:inherit;
  cursor:pointer
}
.legacy-nav-link small {
  display:block;
  font-size:11px;
  color:#9db4c5;
  line-height:1.2
}
.legacy-nav-logout {
  background:transparent;
  border:0;
  font-weight:400
}
.legacy-nav-about {
  background:transparent;
  border:0;
  font-family:inherit;
  font-weight:400;
  cursor:pointer
}
nav .legacy-nav-link.active {
  color:#7de0d8
}
.sidebar-bottom {
  margin-top:auto;
  padding:36px 12px 0;
  font-size:11px;
  color:#8ba4b6
}
.main {
  flex:1;
  min-width:0
}
header {
  height:76px;
  display:flex;
  align-items:center;
  gap:20px;
  padding:0 36px;
  background:white;
  border-bottom:1px solid var(--line);
  font-size:12px;
  color:#677787
}
header>span:first-child {
  margin-left:auto
}
header form {
  margin:0
}
header button {
  padding:6px 14px
}
main {
  max-width:1540px;
  margin:auto;
  padding:36px
}
h1 {
  font-size:29px;
  line-height:1.5;
  margin:6px 0 10px;
  font-weight:700;
  letter-spacing:-.5px
}
h2 {
  font-size:18px;
  margin:0 0 18px
}
.eyebrow {
  font-size:11px;
  color:#7b8b9a;
  font-weight:600;
  letter-spacing:.3px
}
.muted {
  color:#73818e;
  font-size:13px
}
.page-heading {
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:20px;
  margin-bottom:26px
}
.page-heading p {
  margin:0
}
.card {
  background:white;
  border:1px solid var(--line);
  border-radius:12px;
  padding:24px;
  margin-bottom:22px;
  box-shadow:0 3px 8px #172e4203
}
.toolbar {
  display:flex;
  align-items:end;
  gap:18px;
  flex-wrap:wrap
}
.toolbar h2 {
  margin-left:auto
}
.toolbar label {
  min-width:165px
}
.toolbar button {
  margin-bottom:2px
}
.form-grid {
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:18px 24px;
  margin-bottom:22px
}
.wide {
  grid-column:1/-1
}
label {
  display:flex;
  flex-direction:column;
  gap:6px;
  font-size:12px;
  color:#536679
}
input,select,textarea {
  display:block;
  width:100%;
  padding:10px 12px;
  border:1px solid #d8e1e9;
  border-radius:7px;
  background:#fff;
  color:var(--ink);
  min-height:43px;
  font-size:14px
}
input:focus,select:focus,textarea:focus {
  outline:2px solid #087f8c44;
  border-color:var(--teal)
}
textarea {
  min-height:75px
}
.check {
  flex-direction:row;
  align-items:center
}
.check input {
  width:18px;
  min-height:18px
}
fieldset {
  border:0;
  padding:0;
  margin:0;
  min-width:0
}
fieldset:disabled {
  opacity:.75
}
.actions {
  display:flex;
  gap:12px;
  margin:16px 0 24px;
  flex-wrap:wrap
}
.card .actions {
  margin-bottom:0
}
.table-wrap {
  overflow-x:auto
}
table {
  width:100%;
  border-collapse:collapse;
  text-align:right;
  font-size:13px
}
th {
  font-size:11px;
  font-weight:600;
  color:#7a8a99;
  background:#f8fafb;
  border-bottom:1px solid var(--line);
  padding:13px 12px;
  white-space:nowrap
}
td {
  padding:15px 12px;
  border-bottom:1px solid #edf1f5
}
tbody tr:last-child td {
  border-bottom:0
}
.badge {
  display:inline-block;
  padding:3px 11px;
  font-size:11px;
  background:#eaf5f3;
  color:#24796f;
  border-radius:20px
}
.metrics {
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:18px
}
.metrics article span {
  font-size:11px;
  color:#718293;
  display:block
}
.metrics strong {
  display:block;
  font-size:27px;
  direction:ltr;
  text-align:right;
  margin-top:18px;
  letter-spacing:-.8px
}
.metrics .small-number {
  font-size:19px
}
.metrics .accent {
  background:#eaf6f3;
  border-color:#cbe6de
}
.currency-title {
  font-size:14px;
  letter-spacing:2px;
  color:#708193
}
.empty {
  text-align:center;
  padding:45px 20px;
  color:#7d8a95
}
.empty h2 {
  color:#334c60
}
.alert {
  padding:15px 20px;
  border-radius:8px;
  background:#fff5e5;
  border:1px solid #e9d6b8;
  margin:16px 0
}
.alert.error {
  background:#fff0f1;
  border-color:#efc7cd;
  color:#a63040
}
.alert.success {
  background:#edf8f1;
  border-color:#c1e3ce;
  color:#27734b
}
.line-total {
  padding-top:12px;
  border-top:1px solid var(--line);
  color:#6a7c8d;
  font-size:13px
}
.line-total strong {
  float:left;
  color:var(--ink)
}
.totals {
  max-width:520px;
  margin-right:auto
}
.totals>div {
  display:flex;
  justify-content:space-between;
  padding:8px 0;
  font-size:13px
}
.totals .grand {
  font-size:18px;
  color:var(--teal);
  border-top:1px solid var(--line);
  padding-top:18px;
  margin-top:8px
}
.mono {
  font:11px monospace;
  direction:ltr
}
.login {
  max-width:460px;
  margin:55px auto;
  padding:38px
}
.login label {
  margin:20px 0
}
.login button {
  width:100%;
  margin-top:12px
}
#blazor-error-ui {
  display:none;
  position:fixed;
  bottom:0;
  left:0;
  right:0;
  background:#fff1d0;
  padding:15px;
  z-index:1000
}
.validation-message {
  color:#a63040
}
.print-sheet {
  max-width:1000px;
  margin:auto
}
.print-sheet .totals {
  margin-top:25px
}
.legacy-invoice-print {
  font-family:Arial,sans-serif;
  color:#172536
}
.legacy-print-header,.legacy-print-party {
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:16px;
  border-bottom:1px solid #b6c2cc;
  padding:8px 0 16px
}
.legacy-print-header h1 {margin:0;text-align:center}
.legacy-print-party {margin:14px 0 24px}
.legacy-invoice-print h2 {
  font-size:16px;
  border-bottom:1px solid #b6c2cc;
  margin:20px 0 8px;
  padding-bottom:5px
}
.legacy-print-table {width:100%;border-collapse:collapse;table-layout:fixed}
.legacy-print-table th,.legacy-print-table td {border:1px solid #cbd4dc;padding:7px;overflow-wrap:anywhere}
.legacy-print-table th {background:#eef2f5}
.legacy-print-summary {border-collapse:collapse;width:min(420px,100%);margin-left:auto}
.legacy-print-summary th,.legacy-print-summary td {border:1px solid #cbd4dc;padding:8px;text-align:left}
.legacy-print-summary th {background:#eef2f5}
.legacy-print-caution {font-size:12px;color:#704b12}
.invoice-ribbon {
  display:flex;
  flex-wrap:wrap;
  gap:16px;
  margin:0 0 18px;
  padding:12px 16px;
  border:1px solid #d2dce6;
  border-radius:9px;
  background:#edf2f7
}
.invoice-ribbon-group {
  display:flex;
  align-items:stretch;
  gap:4px;
  padding-inline-end:16px;
  border-inline-end:1px solid #c5d2de
}
.invoice-ribbon-group:last-child { border-inline-end:0 }
.invoice-ribbon-group>span {
  align-self:center;
  max-width:90px;
  padding-inline-end:8px;
  color:#526a7f;
  font-size:12px
}
.invoice-ribbon-command,.invoice-ribbon button.invoice-ribbon-command {
  display:flex;
  flex-direction:column;
  align-items:center;
  gap:2px;
  min-width:82px;
  padding:7px 9px;
  border:1px solid transparent;
  border-radius:5px;
  background:transparent;
  color:#17384d;
  font-size:13px;
  font-weight:600;
  line-height:1.25
}
.invoice-ribbon-command:hover,.invoice-ribbon button.invoice-ribbon-command:hover {
  border-color:#b5c7d5;
  background:white
}
.invoice-ribbon-command img { width:25px; height:25px }
.invoice-ribbon-command small { color:#64778b; font-size:11px; font-weight:400 }
.invoice-ribbon-status { display:inline-flex; align-items:center; gap:6px; padding:3px 8px; border:1px solid #cbd7e0; background:#fff; font-size:12px; white-space:nowrap }
.invoice-ribbon-status strong { color:#265164 }
.invoice-receipt-menu { position:relative; min-width:0 }
.invoice-receipt-menu>summary { list-style:none; cursor:pointer }
.invoice-receipt-menu>summary::-webkit-details-marker { display:none }
.invoice-receipt-menu>summary::after { content:"▾"; margin-inline-start:4px; font-size:10px }
.invoice-receipt-menu>div { position:absolute; z-index:50; top:calc(100% + 2px); inset-inline-start:0; min-width:120px; padding:4px; border:1px solid #bfc8ce; background:#fff; box-shadow:0 4px 12px #25313b26 }
.invoice-receipt-menu>div>a { display:block; padding:5px 8px; color:#17384d; text-decoration:none; white-space:nowrap }
.invoice-receipt-menu>div>a:hover,.invoice-receipt-menu>div>a:focus { background:#eaf5fc }
.invoice-ribbon:has(.invoice-receipt-menu[open]) { overflow:visible }
.invoice-details h2,.invoice-options h2 { margin-top:0 }
.invoice-advanced-fields { margin-top:4px; font-size:11px }
.invoice-advanced-fields summary { cursor:pointer; color:#526a7f }
.invoice-advanced-fields label { max-width:220px; margin-top:4px }
.invoice-options .check span { display:flex; flex-direction:column; gap:1px }
.invoice-options .check small { color:#62778a; font-size:10px }
.invoice-header-totals { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:8px; margin-top:14px }
.invoice-header-totals>div { display:flex; flex-direction:column; gap:4px; padding:10px 12px; border:1px solid #cbd7e0; border-radius:6px; background:#f4f7fa }
.invoice-header-totals span { color:#526a7f; font-size:12px }
.invoice-header-totals strong { font-size:16px; font-variant-numeric:tabular-nums }
.invoice-header-warning { margin:10px 0 0 }
@media(max-width:760px) { .invoice-header-totals { grid-template-columns:repeat(2,minmax(0,1fr)) } }
.invoice-service-choices { margin-top:14px }
.invoice-service-choices>summary { display:inline-block; cursor:pointer; border:1px solid #cbd7e0; border-radius:6px; padding:8px 12px; color:#17384d; background:#f4f7fa; font-size:13px; font-weight:600 }
.invoice-service-choices>div { display:flex; flex-wrap:wrap; gap:8px; padding:10px 0 }
.invoice-service-choices button { display:inline-flex; align-items:center; gap:6px; padding:6px 12px }
.invoice-service-choices button img { width:17px; height:17px }
.invoice-dialog-backdrop { position:fixed; inset:0; z-index:1200; display:grid; place-items:center; padding:18px; background:rgba(13,32,48,.48) }
.invoice-quick-add { width:min(460px,100%); max-height:calc(100vh - 36px); overflow:auto; box-shadow:0 18px 55px rgba(0,0,0,.25) }
.invoice-line-dialog { width:min(1200px,calc(100vw - 32px)); max-height:calc(100vh - 32px); overflow:auto; margin:0; box-shadow:0 18px 55px rgba(0,0,0,.25) }
.invoice-line-dialog .toolbar { position:sticky; top:-8px; z-index:3; padding:5px 0; background:#fff; border-bottom:1px solid #d8e1e9 }
.cash-budget-directory tbody tr.selected { background:#dcecf6 }
.budget-members-grid { max-width:560px; max-height:230px; overflow:auto; margin:6px 0 }
.budget-members-grid table { width:100% }
.budget-members-grid th,.budget-members-grid td { padding:5px 8px }
.budget-members-grid .new-item-row { background:#f4f8fb }
.budget-members-grid select { width:100%; min-width:180px }
.expense-register-print-sheet { display:none }
.expense-register-preview .table-wrap { max-height:65vh; overflow:auto }
@media(min-width:1280px) {
  
  .shell:has(.expense-directory-workspace:not(:where(.workspace-pane[hidden] *))) header { height:42px; padding:0 14px }
  .shell:has(.expense-directory-workspace:not(:where(.workspace-pane[hidden] *))) main { max-width:none; width:100%; margin:0; padding:8px 10px }
  .expense-directory-workspace .page-heading { margin-bottom:5px; min-height:28px; align-items:center }
  .expense-directory-workspace .page-heading h1 { font-size:16px; margin:0 }
  .expense-directory-workspace .page-heading .eyebrow { display:none }
  .expense-legacy-ribbon { display:flex; flex-wrap:nowrap; align-items:center; gap:4px; padding:3px 5px; border:1px solid #c8d0d7; background:#f4f5f6; overflow-x:auto }
  .expense-legacy-ribbon button { font-size:12px; padding:4px 8px; min-height:29px; white-space:nowrap }
  .expense-legacy-ribbon .voucher-position { min-width:42px; text-align:center; font-size:12px }
  .expense-editor { padding:8px 10px; border-radius:2px; margin:6px 0 }
  .expense-entry-grid { display:grid; grid-template-columns:repeat(5,minmax(0,1fr)); gap:5px 9px }
  .expense-entry-grid label { font-size:11px; min-width:0 }
  .expense-entry-grid input,.expense-entry-grid select { width:100%; min-height:29px; padding:3px 6px; font-size:12px }
  .expense-extra-fields { margin:5px 0 }
  .expense-filters { padding:7px 9px; margin:6px 0; border-radius:2px }
  .expense-register-card { padding:8px 10px; border-radius:2px }
  .expense-register-card .table-wrap { min-height:clamp(340px,calc(100vh - 230px),760px); max-height:calc(100vh - 170px); overflow:auto }
  .expense-register-card table { min-width:1080px; font-size:10px }
  .expense-register-card th,.expense-register-card td { padding:4px 5px; vertical-align:middle }
  .expense-register-card td:nth-child(3),.expense-register-card td:nth-child(9) { min-width:115px }
  .expense-register-card tbody tr { cursor:pointer }
  .expense-register-card tbody tr:nth-child(even) { background:#f3f6f8 }
  .expense-register-card tbody tr.selected { background:#dcecf6 }
  .expense-register-card tbody tr.reversed { color:#727c84; text-decoration:line-through }
  .expense-register-card tfoot th { background:#e8edf1; border-top:1px solid #bac8d2; font-weight:600 }
  .expense-selected-ribbon { min-height:38px; padding:4px 0; border-top:1px solid #d8e1e9 }
  .expense-selected-ribbon button { padding:5px 9px; font-size:12px }
  
  .shell:has(.exchange-workspace) header { height:42px; padding:0 14px }
  .shell:has(.exchange-workspace) main { max-width:none; width:100%; margin:0; padding:8px 10px }
  
  .shell:has(.employee-services-workspace) main { max-width:none; width:100%; margin:0; padding:8px 10px }
  
  .shell:has(.expense-statement-workspace:not(:where(.workspace-pane[hidden] *))) main { max-width:none; width:100%; margin:0; padding:8px 10px }
  .expense-statement-workspace .page-heading { margin-bottom:6px }
  .expense-statement-register .table-wrap { min-height:clamp(340px,calc(100vh - 265px),700px); max-height:calc(100vh - 185px); overflow:auto }
  .expense-statement-register table { min-width:1040px; width:100%; font-size:11px }
  .expense-statement-register th,.expense-statement-register td { padding:4px 5px; white-space:nowrap }
  .expense-statement-register .expense-statement-row { cursor:pointer }
  .expense-statement-register .expense-statement-row:hover,.expense-statement-register .expense-statement-row:focus-visible { background:#e4f2f8; outline:2px solid #78aecd; outline-offset:-2px }
  
  .shell:has(.business-workspace) main { max-width:none; width:100%; margin:0; padding:8px 10px }
  .business-workspace .page-heading { margin-bottom:6px }
  .business-ribbon { padding:7px 10px; border-radius:2px }
  .business-ribbon .toolbar { gap:5px; margin:0 }
  .business-ribbon button { padding:5px 8px; font-size:12px }
  .business-ribbon .active-period { background:#087f89; color:white }
  .business-navigator { border-top:1px solid #d8e1e9; padding-top:5px; margin-top:5px!important }
  .business-register-card { padding:7px 9px; border-radius:2px }
  .business-register-card .table-wrap { min-height:clamp(340px,calc(100vh - 260px),700px); max-height:calc(100vh - 180px); overflow:auto }
  .business-register-card table { font-size:11px }
  .business-register-card th,.business-register-card td { padding:4px 5px; white-space:nowrap }
  .business-register-card tbody tr { cursor:pointer }
  .business-register-card tbody tr.selected,.business-register-card tbody tr:focus-visible { background:#e4f2f8; outline:2px solid #78aecd; outline-offset:-2px }
  
  .shell:has(.account-document-report-controls) header { height:42px; padding:0 14px }
  .shell:has(.account-document-report-controls) main { max-width:none; width:100%; margin:0; padding:8px 10px }
  .account-document-report-controls { padding:8px 10px; border-radius:2px }
  .shell:has(.account-document-report-controls) .page-heading { margin-bottom:5px }
  .shell:has(.account-document-report-controls) .page-heading h1 { font-size:17px; margin:0 }
  .shell:has(.account-document-report-controls) .page-heading p { font-size:11px }
  .account-document-report-controls .form-grid { grid-template-columns:repeat(4,minmax(0,1fr)); gap:6px; margin-bottom:5px }
  .account-document-report-controls .form-grid label { font-size:11px; gap:2px }
  .account-document-report-controls .form-grid input,.account-document-report-controls .form-grid select { min-height:29px; padding:3px 5px }
  .account-document-report-controls .toolbar { gap:5px; flex-wrap:nowrap; overflow-x:auto }
  .account-document-report-controls .toolbar button,.account-document-report-controls .toolbar .button { padding:5px 8px; font-size:12px; white-space:nowrap }
  .shell:has(.account-document-report-controls) .print-sheet { max-width:none; min-height:clamp(360px,calc(100vh - 260px),750px); padding:8px 10px; border-radius:2px }
  .shell:has(.account-document-report-controls) .print-sheet h2 { font-size:14px; margin:0 0 3px }
  .shell:has(.account-document-report-controls) .print-sheet h3 { font-size:12px; margin:5px 0 }
  .shell:has(.account-document-report-controls) .print-sheet>p { font-size:11px; margin:2px 0 }
  .shell:has(.account-document-report-controls) .print-sheet table { font-size:11px }
  .shell:has(.account-document-report-controls) .print-sheet th,.shell:has(.account-document-report-controls) .print-sheet td { padding:4px 5px }
  
  .shell:has(.cash-report-filters) header { height:42px; padding:0 14px }
  .shell:has(.cash-report-filters) main { max-width:none; width:100%; margin:0; padding:8px 10px }
  
  .shell:has(.user-directory-card,.cash-budget-directory:not(:where(.workspace-pane[hidden] *))) header { height:42px; padding:0 14px }
  .shell:has(.user-directory-card,.cash-budget-directory:not(:where(.workspace-pane[hidden] *))) main { max-width:none; width:100%; margin:0; padding:8px 10px }
  .user-directory-card { padding:8px 10px; border-radius:2px }
  .users-ribbon { display:flex; align-items:center; flex-wrap:wrap; min-height:44px; padding:0; margin-bottom:5px; border-radius:2px }
  .users-ribbon>.invoice-register-navigator,.users-ribbon-crud,.users-ribbon-extra { display:flex; align-items:center; gap:4px; min-height:40px; padding:5px 9px; border-inline-end:1px solid #cbd7e0 }
  .users-ribbon>.invoice-register-navigator { border-top:0; border-bottom:0; border-left:0; border-right:1px solid #cbd7e0 }
  .users-ribbon-extra { margin-inline-start:auto; border:0 }
  .users-ribbon button { min-height:27px; padding:3px 8px; margin:0; font-size:11px; border-radius:2px }
  .users-ribbon button:has(img) { display:inline-flex; align-items:center; justify-content:center; gap:4px }
  .users-ribbon .legacy-ribbon-icon { display:block; width:16px; height:16px; flex:none }
  .users-ribbon .legacy-ribbon-nav-icon { display:block; width:14px; height:14px; flex:none }
  .user-directory-card>.toolbar { margin-bottom:5px }
  .user-directory-card>.toolbar label { display:flex; flex-direction:row; align-items:center; gap:5px; margin:0; font-size:11px }
  .user-directory-card>.toolbar input { width:190px; min-height:27px; padding:3px 6px; font-size:11px }
  .user-directory-card .table-wrap { min-height:clamp(340px,calc(100vh - 270px),700px); max-height:calc(100vh - 200px); overflow:auto }
  .user-directory-card table { width:100% }
  .user-directory-card tbody tr { cursor:pointer }
  .user-directory-card tbody tr.selected,.user-directory-card tbody tr:focus-visible { background:#dcecf6; outline:2px solid #78aecd; outline-offset:-2px }
  .user-directory-card tbody tr:nth-child(even):not(.selected) td { background:#f6f8fa }
  .user-directory-card .invoice-register-navigator { border:1px solid #d9e0e5 }
  
  
  .shell:has(.currency-directory-workspace) header { height:42px; padding:0 14px }
  .shell:has(.currency-directory-workspace) main { max-width:none; width:100%; margin:0; padding:8px 10px }
  .currency-directory-workspace .page-heading { margin-bottom:5px; min-height:28px; align-items:center }
  .currency-directory-workspace .page-heading h1 { font-size:15px; margin:0 }
  .currency-directory-workspace .page-heading .eyebrow,.currency-directory-workspace .page-heading .muted { display:none }
  .currency-directory-workspace .currency-directory-card { padding:8px 10px; border-radius:2px }
  .currency-directory-workspace .currency-directory-card .table-wrap { min-height:clamp(340px,calc(100vh - 250px),700px); max-height:calc(100vh - 190px); overflow:auto }
  .currency-directory-workspace .currency-directory-card table { width:100% }
  .currency-directory-workspace .currency-directory-card tr.currency-selected td { background:#dff0fa }
  .currency-directory-workspace .currency-directory-card tbody tr:focus-visible { outline:2px solid #168abc; outline-offset:-2px }
  .currency-directory-workspace .currency-navigator { display:flex; align-items:center; gap:3px; border-top:1px solid #cbd7e0; padding:3px 5px; font-size:11px }
  .currency-directory-workspace .currency-navigator button { min-width:27px; min-height:23px; padding:0 3px; border:0; background:transparent; color:#547992 }
  .currency-directory-workspace .currency-navigator button:hover:not(:disabled) { background:#e7f1f7 }
  
  
  
  
  
  .shell:has(.provider-directory-workspace) header { height:42px; padding:0 14px }
  .shell:has(.provider-directory-workspace) main { max-width:none; width:100%; margin:0; padding:8px 10px }
  .provider-directory-workspace .page-heading { margin-bottom:5px; min-height:28px; align-items:center }
  .provider-directory-workspace .page-heading h1 { font-size:15px; line-height:1.2; margin:0 }
  .provider-directory-workspace .provider-ribbon { display:flex; flex-wrap:wrap; align-items:center; min-height:48px; padding:0; margin-bottom:5px; border-radius:2px; overflow:hidden }
  .provider-directory-workspace .provider-ribbon-group { display:flex; align-items:center; gap:4px; padding:5px 9px; border-inline-end:1px solid #cbd7e0; min-height:40px }
  .provider-directory-workspace .provider-ribbon-group button { min-height:27px; padding:3px 8px; margin:0; font-size:11px; border-radius:2px }
  .provider-directory-workspace .provider-ribbon-group button:has(img),.service-directory-workspace .service-ribbon-group button:has(img) { display:inline-flex; align-items:center; justify-content:center; gap:4px }
  .provider-directory-workspace .legacy-directory-icon,.service-directory-workspace .legacy-directory-icon { display:block; width:16px; height:16px; flex:none }
  .provider-directory-workspace .legacy-directory-nav-icon,.service-directory-workspace .legacy-directory-nav-icon { display:block; width:14px; height:14px; flex:none }
  .provider-directory-workspace .provider-ribbon .provider-navigator { border-top:0 }
  .provider-directory-workspace .provider-ribbon .provider-navigator span { min-width:32px; text-align:center }
  .provider-directory-workspace .provider-directory-actions { display:flex; align-items:center; gap:12px; margin-bottom:6px }
  .provider-directory-workspace .provider-ribbon .provider-directory-actions { margin:0; margin-inline-start:auto; border:0 }
  .provider-directory-workspace .provider-status { color:#42627a; font-size:11px; direction:ltr; text-align:left }
  .provider-directory-workspace .provider-directory-card { padding:8px 10px; border-radius:2px }
  .provider-directory-workspace .provider-directory-card .table-wrap { min-height:clamp(300px,calc(100vh - 380px),650px); max-height:calc(100vh - 350px); overflow:auto }
  .provider-directory-workspace .provider-directory-card table { min-width:1000px; width:100%; table-layout:fixed }
  .provider-directory-workspace .provider-directory-card th,.provider-directory-workspace .provider-directory-card td { padding:4px 7px; border:1px solid #d5dce2; white-space:nowrap; font-size:11px }
  .provider-directory-workspace .provider-directory-card th { background:#f4f5f6; color:#536273; font-weight:500 }
  .provider-directory-workspace .provider-directory-card th:first-child { width:76px }
  .provider-directory-workspace .provider-directory-card td.source-id { width:70px; color:#82909b; text-align:center }
  .provider-directory-workspace .provider-directory-card .toolbar { gap:7px; align-items:center; margin-bottom:5px }
  .provider-directory-workspace .provider-directory-card .toolbar label { display:flex; flex-direction:row; align-items:center; gap:5px; margin:0; font-size:11px }
  .provider-directory-workspace .provider-directory-card .toolbar input { width:190px; min-height:27px; padding:3px 6px; font-size:11px }
  .provider-directory-workspace .provider-directory-card .toolbar button { min-height:28px; padding:4px 10px; margin:0 }
  .provider-directory-workspace .provider-directory-card tr.provider-selected td { background:#dff0fa }
  .provider-directory-workspace .provider-directory-card tbody tr:nth-child(even):not(.provider-selected):not(.provider-row-editing) td { background:#f6f8fa }
  .provider-directory-workspace .provider-directory-card tr.provider-row-editing td { background:#fffbe8 }
  .provider-directory-workspace .provider-directory-card tr.provider-row-editing input:not([type=checkbox]),.provider-directory-workspace .provider-directory-card tr.provider-row-editing textarea { box-sizing:border-box; width:100%; min-width:0; min-height:28px; padding:3px 5px; font-size:12px; border:1px solid #8db5ca; border-radius:2px }
  .provider-directory-workspace .provider-directory-card tr.provider-row-editing textarea { resize:vertical; height:30px }
  .provider-directory-workspace .provider-directory-card tbody tr:focus-visible { outline:2px solid #168abc; outline-offset:-2px }
  .provider-directory-workspace .provider-navigator { display:flex; align-items:center; gap:3px; border-top:1px solid #cbd7e0; padding:3px 5px; font-size:11px }
  .provider-directory-workspace .provider-navigator button { min-width:27px; min-height:23px; padding:0 3px; border:0; background:transparent; color:#547992 }
  .provider-directory-workspace .provider-navigator button:hover:not(:disabled) { background:#e7f1f7 }
  
  
  
  
  
  .shell:has(.service-directory-workspace) header { height:42px; padding:0 14px }
  .shell:has(.service-directory-workspace) main { max-width:none; width:100%; margin:0; padding:8px 10px }
  .service-directory-workspace .page-heading { margin-bottom:5px; min-height:28px; align-items:center }
  .service-directory-workspace .page-heading h1 { font-size:15px; line-height:1.2; margin:0 }
  .service-directory-workspace .page-heading .muted { display:none }
  .service-directory-workspace .service-ribbon { padding:0; margin-bottom:5px; border-radius:2px; overflow:hidden }
  .service-directory-workspace .service-ribbon-groups { display:flex; flex-wrap:wrap; align-items:center; min-height:48px }
  .service-directory-workspace .service-ribbon-group { display:flex; align-items:center; gap:4px; padding:5px 9px; border-inline-end:1px solid #cbd7e0; min-height:40px }
  .service-directory-workspace .service-ribbon-group button { min-height:27px; padding:3px 8px; margin:0; font-size:11px; border-radius:2px }
  .service-directory-workspace .service-ribbon-status { margin-inline-start:auto; border:0; gap:7px }
  .service-directory-workspace .service-ribbon-status label { display:flex; align-items:center; gap:5px; margin:0; font-size:11px }
  .service-directory-workspace .service-ribbon-status select { width:170px; min-height:27px; padding:2px 5px; font-size:11px }
  .service-directory-workspace .service-ribbon .service-navigator { border-top:0; padding:5px 9px }
  .service-directory-workspace .service-ribbon .service-navigator span { min-width:32px; text-align:center }
  .service-directory-workspace .service-directory-switch { display:flex; align-items:center; gap:8px; padding:4px 8px; margin-bottom:6px; border-radius:2px }
  .service-directory-workspace .service-directory-switch label { display:flex; align-items:center; gap:6px; margin:0; font-size:11px }
  .service-directory-workspace .service-directory-switch select { width:220px; min-height:28px; padding:2px 5px; font-size:12px }
  .service-directory-workspace .service-directory-switch button { min-height:28px; padding:3px 8px; font-size:11px }
  .service-directory-workspace .service-status { margin-inline-start:auto; min-width:105px; color:#42627a; font-size:11px; direction:ltr; text-align:left }
  .service-directory-workspace .service-directory-card { padding:8px 10px; border-radius:2px }
  .service-directory-workspace .service-directory-card .table-wrap { min-height:clamp(280px,calc(100vh - 275px),770px); max-height:calc(100vh - 255px); overflow:auto }
  .service-directory-workspace .service-directory-card table { min-width:1200px; width:100%; table-layout:fixed }
  .service-directory-workspace .service-directory-card th,.service-directory-workspace .service-directory-card td { padding:4px 7px; border:1px solid #d5dce2; white-space:nowrap; font-size:11px }
  .service-directory-workspace .service-directory-card th { background:#f4f5f6; color:#536273; font-weight:500 }
  .service-directory-workspace .service-directory-card .toolbar { gap:7px; align-items:center; margin-bottom:5px }
  .service-directory-workspace .service-directory-card .toolbar h2 { display:none }
  .service-directory-workspace .service-directory-card .toolbar label { display:flex; flex-direction:row; align-items:center; gap:5px; margin:0; font-size:11px }
  .service-directory-workspace .service-directory-card .toolbar input { width:190px; min-height:27px; padding:3px 6px; font-size:11px }
  .service-directory-workspace .service-directory-card .toolbar button { min-height:28px; padding:4px 10px; margin:0 }
  .service-directory-workspace .service-directory-card tr.service-row-editing td { background:#fffbe8 }
  .service-directory-workspace .service-directory-card tr.service-row-editing input,.service-directory-workspace .service-directory-card tr.service-row-editing select { box-sizing:border-box; width:100%; min-width:0; min-height:28px; padding:3px 5px; font-size:12px; border:1px solid #8db5ca; border-radius:2px }
  .service-directory-workspace .service-directory-card tr.service-selected td { background:#dff0fa }
  .service-directory-workspace .service-directory-card tbody tr:nth-child(even):not(.service-selected):not(.service-row-editing) td { background:#f6f8fa }
  .service-directory-workspace .service-directory-card tbody tr:focus-visible { outline:2px solid #168abc; outline-offset:-2px }
  .service-directory-workspace .service-navigator { display:flex; align-items:center; gap:3px; border-top:1px solid #cbd7e0; padding:3px 5px; font-size:11px }
  .service-directory-workspace .service-navigator button { min-width:27px; min-height:23px; padding:0 3px; border:0; background:transparent; color:#547992 }
  .service-directory-workspace .service-navigator button:hover:not(:disabled) { background:#e7f1f7 }
  
  
  
  
  
  .shell:has(.account-directory-workspace) header { height:42px; padding:0 14px }
  .shell:has(.account-directory-workspace) main { max-width:none; width:100%; margin:0; padding:8px 10px }
  .account-directory-workspace.filtered .page-heading { margin-bottom:5px; min-height:28px; align-items:center }
  .account-directory-workspace.filtered .page-heading h1 { font-size:15px; line-height:1.2; margin:0 }
  .account-directory-workspace.filtered .page-heading .eyebrow,.account-directory-workspace.filtered .page-heading .muted { display:none }
  .account-directory-workspace.filtered .account-directory-card { padding:8px 10px; border-radius:2px }
  .account-directory-workspace.filtered .account-directory-card>.toolbar { align-items:center; gap:6px; margin-bottom:5px }
  .account-directory-workspace.party-directory .account-directory-ribbon { display:flex; flex-wrap:wrap; min-height:44px; margin:-8px -10px 5px; padding:5px 9px; border-bottom:1px solid #cbd7e0; background:#fff }
  .account-directory-workspace.party-directory .account-directory-ribbon .invoice-register-navigator { margin:0; border:0; border-inline-end:1px solid #cbd7e0; padding-inline-end:8px }
  .account-directory-workspace.party-directory .account-directory-ribbon button:has(img),.account-directory-workspace.party-directory .account-directory-ribbon a:has(img) { display:inline-flex; align-items:center; justify-content:center; gap:4px }
  .account-directory-workspace.party-directory .legacy-party-icon { display:block; width:16px; height:16px; flex:none }
  .account-directory-workspace.party-directory .legacy-party-nav-icon { display:block; width:14px; height:14px; flex:none }
  .account-directory-workspace.party-directory .account-directory-ribbon>label { margin-inline-start:auto }
  .account-directory-workspace.filtered .account-directory-card>.toolbar h2 { display:none }
  .account-directory-workspace.filtered .account-directory-card>.toolbar label { display:flex; flex-direction:row; align-items:center; gap:5px; min-width:0; font-size:11px }
  .account-directory-workspace.filtered .account-directory-card>.toolbar input { width:180px; min-height:28px; padding:3px 6px }
  .account-directory-workspace.filtered .account-directory-card>.toolbar button,.account-directory-workspace.filtered .account-directory-card>.toolbar .button { min-height:28px; padding:4px 8px; margin:0; font-size:12px }
  .account-directory-workspace.filtered .account-directory-pending { margin:3px 0; padding:4px 7px; background:#fff7e7; font-size:11px }
  .account-directory-workspace.filtered .account-directory-card .table-wrap { min-height:clamp(340px,calc(100vh - 250px),700px); max-height:calc(100vh - 190px); overflow:auto }
  .account-directory-workspace.filtered .account-directory-card table { min-width:1350px; width:max-content }
  .account-directory-workspace.filtered .account-directory-card td input,.account-directory-workspace.filtered .account-directory-card td select { width:100%; min-width:90px; min-height:26px; padding:2px 4px; font-size:11px; background:#fff }
  .account-directory-workspace.filtered:not(:has(.invoice-register-navigator)) .account-directory-card th:last-child,.account-directory-workspace.filtered:not(:has(.invoice-register-navigator)) .account-directory-card td:last-child { position:sticky; left:0; z-index:1; min-width:72px; background:#fff; border-right:1px solid #d9e0e5 }
  .account-directory-workspace.filtered:not(:has(.invoice-register-navigator)) .account-directory-card th:last-child { z-index:2; background:#f3f6f8 }
  .account-directory-workspace.party-directory .account-directory-card tbody tr:nth-child(even):not(.selected) td { background:#f6f8fa }
  .account-directory-workspace.filtered:has(.invoice-register-navigator) .account-directory-card table { min-width:1000px; width:100% }
  
  
  
  
  
  .shell:has(.invoice-register-workspace) header { height:42px; padding:0 14px }
  .shell:has(.invoice-register-workspace) main { max-width:none; width:100%; margin:0; padding:8px 10px }
  .invoice-register-workspace .page-heading { margin-bottom:4px; min-height:24px; align-items:center }
  .invoice-register-workspace .page-heading h1 { font-size:14px; line-height:1.2 }
  .invoice-register-workspace .page-heading .eyebrow { display:none }
  .invoice-register-workspace .invoice-register-actions { margin-bottom:4px }
  .invoice-register-workspace .invoice-register-scroll { min-height:clamp(300px,calc(100vh - 375px),780px); max-height:calc(100vh - 315px); overflow:auto }
  .invoice-register-workspace .invoice-register-shortcuts { flex-wrap:nowrap; gap:8px; overflow-x:auto; padding:3px 0; margin-bottom:5px; scrollbar-width:thin }
  .invoice-register-workspace .invoice-register-shortcuts [role=group] { flex-wrap:nowrap; flex:none }
  .invoice-register-workspace .invoice-register-shortcuts button,.invoice-register-workspace .invoice-register-shortcuts input { min-height:24px; padding:2px 6px }
  .invoice-register-workspace .card:has(.invoice-register-grid) { padding:8px 10px }
  .invoice-register-workspace .card:has(.invoice-register-grid)>.toolbar { display:grid; grid-template-columns:repeat(auto-fit,minmax(105px,1fr)); align-items:end; gap:5px; margin-bottom:5px }
  .invoice-register-workspace .card:has(.invoice-register-grid)>.toolbar label { min-width:0; font-size:11px }
  .invoice-register-workspace .card:has(.invoice-register-grid)>.toolbar :is(input,select) { width:100%; min-width:0; min-height:26px }
  @media(max-width:1199px) { .invoice-register-workspace .card:has(.invoice-register-grid)>.toolbar { grid-template-columns:repeat(4,minmax(0,1fr)) } }
  @media(max-width:680px) { .invoice-register-workspace .card:has(.invoice-register-grid)>.toolbar { grid-template-columns:repeat(2,minmax(0,1fr)) } }
  
  
  
  
  
  .shell:has(.voucher-workspace) header { height:42px; padding:0 14px }
  .shell:has(.voucher-workspace) main { max-width:none; width:100%; margin:0; padding:8px 10px }
  .voucher-workspace .page-heading { min-height:24px; margin-bottom:3px; align-items:center }
  .voucher-workspace h1 { margin:0; font-size:13px; line-height:1.2 }
  .voucher-workspace .page-heading .eyebrow,.voucher-workspace .page-heading .muted { display:none }
  .voucher-workspace .voucher-ribbon { flex-wrap:nowrap; overflow-x:auto; padding:3px 5px; gap:3px }
  
  
  
  
  
  .shell:has(.invoice-workspace) header { height:42px; padding:0 14px }
  .shell:has(.invoice-workspace) main { max-width:none; width:100%; margin:0; padding:0 10px }
  .invoice-workspace .page-heading { position:absolute; width:1px; height:1px; min-height:0; margin:0; padding:0; overflow:hidden; clip-path:inset(50%); white-space:nowrap }
  .invoice-workspace .page-heading .button { display:none }
  .invoice-workspace .page-heading { min-height:24px; margin-bottom:3px; align-items:center }
  .invoice-workspace h1 { margin:0; font-size:13px; line-height:1.2 }
  .invoice-workspace .page-heading .eyebrow,.invoice-workspace .page-heading .muted { display:none }
  .invoice-workspace .page-heading .button { padding:2px 7px }
  .invoice-workspace>.alert { margin:3px 0; padding:4px 9px; border-radius:2px; font-size:11px }
  .invoice-workspace .card { padding:8px 10px; margin-bottom:7px; border-radius:3px; box-shadow:none }
  .invoice-workspace .form-grid { gap:5px 8px; margin-bottom:5px }
  .invoice-workspace label { gap:2px; font-size:11px }
  .invoice-workspace input,.invoice-workspace select,.invoice-workspace textarea { min-height:24px; padding:2px 5px; border-radius:2px; font-size:12px }
  .invoice-workspace textarea { min-height:25px }
  .invoice-workspace button,.invoice-workspace .button { padding:4px 9px; border-radius:3px; font-size:12px }
  .invoice-workspace h2 { font-size:13px; margin:0 0 5px }
  .invoice-ribbon { flex-wrap:nowrap; overflow-x:auto; gap:3px; margin-bottom:6px; padding:3px 6px; border-radius:2px }
  .invoice-ribbon-group { gap:1px; padding-inline-end:5px }
  .invoice-ribbon-group>span { display:none }
  .invoice-ribbon-group.invoice-record-navigation>span { display:inline-flex }
  .invoice-ribbon-command,.invoice-ribbon button.invoice-ribbon-command { flex-direction:row; min-width:auto; padding:3px 5px; font-size:11px; white-space:nowrap }
  .invoice-ribbon-command img { width:16px; height:16px }
  .invoice-ribbon-command small { display:none }
  .invoice-ribbon-status { padding:2px 5px; font-size:11px }
  .invoice-entry-frame { display:grid; grid-template-columns:minmax(0,1fr) 240px; gap:7px; align-items:start; padding-left:clamp(0px,calc(100vw - 1535px),145px) }
  .invoice-entry-frame .invoice-details,.invoice-entry-frame .invoice-options { margin-bottom:0; min-height:100% }
  .invoice-entry-frame .invoice-details .invoice-main-fields { grid-template-columns:repeat(4,minmax(0,1fr)) }
  .invoice-entry-frame .invoice-details .invoice-main-fields>label { display:flex; flex-direction:row; align-items:center; min-width:0; gap:4px }
  .invoice-entry-frame .invoice-details .invoice-main-fields>label>span { flex:none; font-size:10px; white-space:nowrap }
  .invoice-entry-frame .invoice-details .invoice-main-fields>label>input,
  .invoice-entry-frame .invoice-details .invoice-main-fields>label>select,
  .invoice-entry-frame .invoice-details .invoice-main-fields>label>textarea { flex:1; min-width:0 }
  .invoice-entry-frame .invoice-details .invoice-main-fields>label:nth-child(4) { order:1 }
  .invoice-entry-frame .invoice-details .invoice-main-fields>label:nth-child(1) { order:2 }
  .invoice-entry-frame .invoice-details .invoice-main-fields>label:nth-child(3) { order:3 }
  .invoice-entry-frame .invoice-details .invoice-main-fields>label:nth-child(2) { order:4 }
  .invoice-entry-frame .invoice-details .invoice-main-fields>label:nth-child(5) { order:5 }
  .invoice-entry-frame .invoice-details .invoice-main-fields>label:nth-child(6) { order:6 }
  .invoice-entry-frame .invoice-details .invoice-main-fields>label:nth-child(7) { order:7 }
  .invoice-entry-frame .invoice-details .invoice-main-fields>label:nth-child(8) { order:8 }
  .invoice-entry-frame .invoice-details .wide { grid-column:auto }
  .invoice-entry-frame .invoice-details { display:grid; grid-template-columns:minmax(0,1.1fr) minmax(0,1.1fr) minmax(0,.8fr) minmax(0,.8fr) minmax(0,.55fr); grid-template-rows:auto repeat(3,minmax(23px,auto)); gap:2px 6px; align-items:stretch; padding:5px 7px }
  .invoice-entry-frame .invoice-details input,.invoice-entry-frame .invoice-details select { min-height:22px; padding:1px 4px }
  .invoice-entry-frame .invoice-details h2 { grid-row:1; grid-column:1/-1; margin:0 }
  .invoice-entry-frame .invoice-details .invoice-main-fields,
  .invoice-entry-frame .invoice-details .invoice-header-totals { display:contents }
  .invoice-entry-frame .invoice-main-fields>label:nth-child(1) { grid-row:2; grid-column:2 }
  .invoice-entry-frame .invoice-main-fields>label:nth-child(2) { grid-row:4; grid-column:1 }
  .invoice-entry-frame .invoice-main-fields>label:nth-child(3) { grid-row:3; grid-column:1 }
  .invoice-entry-frame .invoice-main-fields>label:nth-child(4) { grid-row:4; grid-column:4 }
  .invoice-entry-frame .invoice-main-fields>label:nth-child(5) { grid-row:2; grid-column:1 }
  .invoice-entry-frame .invoice-main-fields>label:nth-child(6) { grid-row:3; grid-column:3 }
  .invoice-entry-frame .invoice-main-fields>label:nth-child(7) { grid-row:2; grid-column:5 }
  .invoice-entry-frame .invoice-main-fields>label:nth-child(8) { grid-row:3/5; grid-column:2; align-items:stretch }
  .invoice-entry-frame .invoice-main-fields>label:nth-child(8) textarea { height:100%; min-height:44px }
  .invoice-entry-frame .invoice-header-totals>div:nth-child(1) { grid-row:2; grid-column:3 }
  .invoice-entry-frame .invoice-header-totals>div:nth-child(2) { grid-row:4; grid-column:3 }
  .invoice-entry-frame .invoice-header-totals>div:nth-child(3) { grid-row:2; grid-column:4 }
  .invoice-entry-frame .invoice-header-totals>div:nth-child(4) { grid-row:3; grid-column:4 }
  .invoice-entry-frame .invoice-details .invoice-header-warning { grid-column:1/-1 }
  .invoice-entry-frame .invoice-options { padding:5px 8px }
  .invoice-entry-frame .invoice-options h2 { margin-bottom:2px }
  .invoice-entry-frame .invoice-options .form-grid { grid-template-columns:1fr; gap:1px; margin-bottom:1px }
  .invoice-entry-frame .invoice-options .check { flex-direction:row-reverse; justify-content:space-between; min-height:20px; height:20px }
  .invoice-entry-frame .invoice-options .check input { min-height:16px; height:16px; width:16px }
  .invoice-entry-frame .invoice-header-totals { gap:4px; margin-top:5px }
  .invoice-entry-frame .invoice-header-totals>div { padding:4px 6px; border-radius:2px }
  .invoice-entry-frame .invoice-header-totals>div { flex-direction:row; align-items:center; justify-content:space-between; min-height:25px }
  .invoice-entry-frame .invoice-header-totals span { font-size:10px }
  .invoice-entry-frame .invoice-header-totals strong { font-size:12px }
  .invoice-service-choices { position:relative; width:max-content; max-width:100%; margin-top:2px }
  .invoice-service-choices>summary { padding:3px 7px; font-size:11px }
  .invoice-service-choices>div { position:absolute; z-index:40; inset-inline-end:0; top:calc(100% + 2px); display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); width:220px; gap:4px; padding:6px; border:1px solid #bfc8ce; background:#fff; box-shadow:0 4px 12px #25313b26 }
  .invoice-service-choices>div button { justify-content:center; min-width:0; padding:4px }
  .invoice-workspace .invoice-service-tabs { margin:-9px 0 0; padding:0 }
  .invoice-service-tabs button { padding:4px 9px; border-radius:2px 2px 0 0 }
  .invoice-workspace .invoice-kind-tools { margin-top:0; margin-bottom:0; padding:3px 8px }
  .invoice-workspace .invoice-kind-tools .toolbar { flex-wrap:nowrap; align-items:center; gap:7px }
  .invoice-workspace .invoice-kind-tools .toolbar button { margin-bottom:0; padding:2px 7px }
  .invoice-workspace .invoice-kind-tools .toolbar :is(.invoice-kind-add,.invoice-kind-repeat) { display:grid; place-items:center; flex:0 0 24px; width:24px; min-width:24px; height:22px; min-height:22px; padding:0 }
  .invoice-workspace .invoice-kind-tools .toolbar h2 { display:none }
  .invoice-workspace .invoice-kind-tools .toolbar label { flex-direction:row; align-items:center; min-width:140px; max-width:280px; white-space:nowrap }
  .invoice-workspace .invoice-kind-tools .toolbar label select { max-width:190px; min-height:22px; padding:1px 4px }
  .invoice-workspace .line-card { margin-bottom:4px }
  .invoice-workspace .line-card .form-grid { grid-template-columns:repeat(12,minmax(0,1fr)) }
  .invoice-workspace .line-card .toolbar { margin-bottom:4px }
  .invoice-workspace .line-card .muted { margin:3px 0; font-size:11px }
  .invoice-workspace .line-card .line-total { font-size:12px }
}
.invoice-details h2 small,.invoice-options h2 small {
  margin-inline-start:8px;
  color:#6a7b89;
  font-size:13px;
  font-weight:400
}
.invoice-service-tabs {
  display:flex;
  gap:3px;
  overflow-x:auto;
  margin:20px 0 0;
  padding:0 4px;
  border-bottom:2px solid #bbcbd8
}
.invoice-service-tabs button {
  display:inline-flex;
  align-items:center;
  gap:7px;
  flex:none;
  padding:9px 14px;
  border:1px solid #cbd7e0;
  border-bottom:0;
  border-radius:7px 7px 0 0;
  background:#e7edf3;
  color:#355064;
  font-size:13px
}
.invoice-service-tabs button.selected {
  background:white;
  color:#087f8c;
  border-color:#9fb9c7
}
.invoice-service-tabs button img { width:18px; height:18px }
.invoice-service-tabs button small { min-width:18px; border-radius:9px; background:#d5e3eb; line-height:18px }
.invoice-kind-tools { margin-top:10px }
.invoice-kind-tools .toolbar { align-items:end }
.invoice-kind-tools .toolbar h2 { margin:0 auto 0 0 }
.invoice-kind-tools .toolbar label { min-width:170px }
.invoice-grid-shell { display:flex; flex-direction:column; height:clamp(350px,calc(100vh - 505px),660px); border:1px solid #bfc8ce; background:#fff; margin:0 0 8px; overflow:hidden }
.invoice-grid-scroll { flex:1; min-height:0; overflow:auto }
.invoice-edit-grid { width:max-content; min-width:100%; border-collapse:collapse; table-layout:fixed; font-size:11px; line-height:1.2; color:#334454 }
.invoice-edit-grid th,.invoice-edit-grid td { border:1px solid #d1d6d9; height:26px; padding:0 4px; white-space:nowrap; text-align:center; font-weight:400 }
.invoice-edit-grid th { position:sticky; top:0; z-index:2; background:#f4f4f4; color:#666; border-bottom-color:#929ba1 }
.invoice-edit-grid th:not(.invoice-row-number),.invoice-edit-grid td:not(.invoice-row-number) { min-width:66px }
.invoice-edit-grid .invoice-row-number { min-width:36px; background:#f3f3f3; color:#455763 }
.invoice-edit-grid:where(:not([data-grid-even-row], [data-grid-odd-row])) > tbody > tr:not(.invoice-new-row):nth-child(odd) { background:#fafafa }
.invoice-edit-grid[data-grid-even-row="true"] > tbody > .invoice-data-row:not(.invoice-grid-selected):nth-child(even of .invoice-data-row:not([data-invoice-new-item])),
.invoice-edit-grid[data-grid-odd-row="true"] > tbody > .invoice-data-row:not(.invoice-grid-selected):nth-child(odd of .invoice-data-row:not([data-invoice-new-item])) { background:#fafafa }
.invoice-edit-grid tbody tr.invoice-grid-selected { background:#cfe8f8 }
.invoice-edit-grid tbody tr.invoice-package-detail-row,.invoice-edit-grid tbody tr.invoice-package-detail-row:nth-child(odd) { background:#f6f9fb }
.invoice-edit-grid .invoice-package-detail-row>td { padding:8px; text-align:start; white-space:normal }
.invoice-package-inline { position:sticky; left:0; right:0; width:calc(100vw - 205px); max-width:100%; border:1px solid #cbd7e0; background:#fff; padding:7px; font-size:11px }
.invoice-package-inline .toolbar { margin-bottom:5px }
.invoice-package-inline .table-wrap { max-width:100%; overflow-x:auto }
.invoice-package-inline .invoice-package-grid { width:max-content; min-width:100%; border-collapse:collapse; font-size:11px }
.invoice-edit-grid .invoice-package-grid th { position:static; min-width:78px; white-space:nowrap; background:#f4f4f4 }
.invoice-edit-grid .invoice-package-grid td { min-width:78px; white-space:nowrap }
.invoice-edit-grid .invoice-package-grid :is(th,td):nth-child(2),.invoice-edit-grid .invoice-package-grid :is(th,td):nth-child(7) { min-width:130px }
.invoice-package-inline details { margin-top:5px; border-top:1px solid #e0e6ea; padding-top:4px }
.invoice-edit-grid .invoice-package-inline :is(input,select,textarea) { width:100%; min-height:24px; border:1px solid #cbd7e0; padding:2px 5px; background:#fff }
.invoice-grid-package,.invoice-package-toggle { display:inline-block; min-width:24px; padding:1px 4px }
@media(max-width:760px) { .invoice-package-inline { width:calc(100vw - 35px) } }
.invoice-edit-grid tbody tr:focus-within { outline:1px solid #39a2c7; outline-offset:-1px }
.invoice-edit-grid input,.invoice-edit-grid select { width:100%; min-width:0; height:23px; min-height:23px; border:0; border-radius:0; padding:1px 3px; background:transparent; font-size:11px; color:inherit }
.invoice-edit-grid input:focus,.invoice-edit-grid select:focus { outline:1px solid #168abc; background:#fff }
.invoice-edit-grid input[type=number] { text-align:center }
.invoice-edit-grid input[type=date] { width:115px }
.invoice-edit-grid .invoice-grid-amount { font-variant-numeric:tabular-nums }
.invoice-edit-grid .invoice-grid-secret { display:none }
.invoice-new-row td { height:23px; padding:0; background:#fff }
.invoice-new-row button,.invoice-workspace .invoice-new-row button { display:block; position:sticky; right:0; width:min(100%,calc(100vw - 190px)); height:22px; padding:0 4px; border:0; border-radius:0; background:transparent; color:#808e96; font-size:11px; font-weight:400; text-align:center; line-height:22px }
.invoice-new-row button:hover,.invoice-new-row button:focus { background:#eaf5fc; color:#17384d; filter:none }
.invoice-grid-navigator { display:flex; align-items:center; gap:1px; min-height:27px; padding:1px 5px; border-top:1px solid #d1d6d9; background:#fafafa; color:#60717a; font-size:11px; direction:ltr }
.invoice-grid-navigator span { min-width:47px; padding:0 4px; text-align:center }
.invoice-register-shortcuts { display:flex; flex-wrap:wrap; gap:8px 18px; padding:8px 0; border-bottom:1px solid #d8e1e8; margin-bottom:10px }
.invoice-register-heading { margin-bottom:8px }
.invoice-register-heading h1 { margin:0; font-size:22px }
.invoice-register-actions { display:flex; flex-wrap:wrap; gap:6px; margin:0 0 8px }
.invoice-register-notes { margin:0 0 8px; font-size:12px }
.invoice-register-notes summary { cursor:pointer; color:#536875 }
.invoice-register-notes p { margin:5px 0 }
.invoice-register-print-branding,.invoice-register-print-date { display:none }
.invoice-register-print-title-row { display:none }
.invoice-register-print-sheet { display:none }
.invoice-register-preview .invoice-register-print-title-row { display:table-row }
.invoice-register-preview .invoice-register-print-title-row td { text-align:center }
.invoice-register-preview .invoice-register-print-date { display:block; text-align:right }
.invoice-register-preview .company-logo { max-width:80px; max-height:80px; margin-inline:auto }
@media screen {
  .invoice-register-preview { min-inline-size:0 }
  .invoice-register-preview .table-wrap { max-inline-size:100%; overflow-x:auto }
  .invoice-register-preview .invoice-register-document {
    min-inline-size:var(--invoice-register-preview-min-width, 100%);
    table-layout:auto !important;
  }
  .invoice-register-preview .invoice-register-document :is(th, td)[data-column] {
    overflow-wrap:normal;
    white-space:nowrap;
  }
}
.invoice-register-detail-row>td { background:#f4f8fb; padding:8px 10px; text-align:start }
.invoice-register-details { display:grid; gap:8px; min-width:700px }
.invoice-register-details h3 { margin:2px 0 5px; font-size:13px }
.invoice-register-details .table-wrap { max-height:240px; overflow:auto }
.invoice-register-details table { width:100%; font-size:11px }
.invoice-register-details tr.invoice-register-component td { background:#eef5fa }
.invoice-register-details p { margin:2px 0; font-size:11px }
.invoice-register-shortcuts [role=group] { display:flex; flex-wrap:wrap; align-items:center; gap:4px }
.invoice-register-shortcuts button { min-height:29px; padding:3px 9px; font-size:12px }
.invoice-register-shortcuts button.active { background:#087f97; color:white; border-color:#087f97 }
.invoice-register-shortcuts input { width:160px; min-height:29px; padding:3px 7px }
.invoice-register-grid { width:max-content; min-width:100%; font-size:12px }
.invoice-register-grid>thead>tr>th,.invoice-register-grid>tbody>tr:not(.invoice-register-detail-row)>td,.invoice-register-grid>tfoot>tr>td { padding:6px 9px; white-space:nowrap; border:1px solid #d9e0e5 }
.invoice-register-grid>tbody>tr:not(.invoice-register-detail-row):nth-child(even)>td { background:#f8fafb }
.invoice-register-grid>tbody>tr.register-selected>td { background:#dff0fa !important }
.invoice-register-grid[data-invoice-register-grid]>tbody>tr:not(.invoice-register-detail-row)>td { overflow:hidden; text-overflow:ellipsis }
.invoice-register-grid>thead>tr>th { color:#3d5563; background:#f1f4f6 }
.invoice-register-grid>tfoot>tr>td { background:#f5f7f8; font-weight:600 }
.invoice-register-grid>tbody>tr:not(.invoice-register-detail-row)>td button { min-height:24px; padding:2px 8px; font-size:11px }
.invoice-register-navigator { display:flex; align-items:center; gap:3px; direction:ltr; border:1px solid #d9e0e5; border-top:0; background:#fafafa; padding:2px 5px; font-size:11px; color:#566975 }
.invoice-register-navigator span { min-width:45px; text-align:center }
.invoice-register-navigator button { min-width:25px; min-height:22px; padding:1px 4px; border:1px solid transparent; background:transparent; color:#526b7a; font-size:11px }
.invoice-register-navigator button:hover:not(:disabled) { background:#e7f2fa; border-color:#bdceda }
.invoice-register-navigator button:disabled { opacity:.35 }
.invoice-grid-navigator button,.invoice-workspace .invoice-grid-navigator button { min-width:23px; height:22px; padding:0 3px; border:1px solid transparent; border-radius:2px; background:transparent; color:#657580; font-size:11px; font-weight:400 }
.invoice-grid-navigator button:hover:not(:disabled) { border-color:#b9c9d5; background:#eaf5fc; filter:none }
.invoice-grid-navigator button:disabled { opacity:.35; cursor:default }
@media(max-width:760px) { .invoice-grid-shell { height:420px } .invoice-workspace .invoice-new-row button { width:min(100%,calc(100vw - 20px)) } }
@media(max-width:1150px) {
  .metrics {
    grid-template-columns:repeat(2,minmax(0,1fr))
  }
  .form-grid {
    grid-template-columns:repeat(2,minmax(0,1fr))
  }
  .shell aside {
    width:210px
  }
  main {
    padding:24px
  }
}
@media(max-width:760px) {
  .shell {
    display:block
  }
  .shell aside {
    width:100%;
    height:auto;
    position:static;
    overflow:visible;
    padding:14px
  }
  .brand {
    font-size:24px;
    padding:0 8px 12px
  }
  .brand span,.sidebar-caption,.sidebar-bottom {
    display:none
  }
  nav {
    display:block;
    overflow-x:visible
  }
  .nav-group {
    min-width:0
  }
  .nav-group summary {
    white-space:nowrap
  }
  nav a {
    white-space:nowrap;
    padding:8px;
    font-size:12px
  }
  header {
    height:auto;
    min-height:60px;
    padding:10px 16px;
    flex-wrap:wrap;
    gap:10px
  }
  main {
    padding:20px 14px
  }
  .page-heading {
    align-items:start;
    flex-direction:column
  }
  h1 {
    font-size:25px
  }
  .form-grid {
    grid-template-columns:1fr
  }
  .card {
    padding:18px
  }
  .metrics {
    gap:10px
  }
  .metrics strong {
    font-size:21px
  }
  .metrics .small-number {
    font-size:14px
  }
  .login {
    margin:20px auto
  }
  .toolbar label {
    flex:1
  }
}
.expense-types-panel,.account-categories-panel {
  position:fixed;
  z-index:1200;
  inset:8vh max(16px,calc((100vw - 760px)/2));
  overflow:auto;
  background:#fff;
  box-shadow:0 18px 70px #101b2b66;
  border:1px solid #cbd5df;
}
.expense-types-panel .table-wrap,.account-categories-panel .table-wrap { max-height:45vh; overflow:auto }
.legacy-child-window .account-categories-panel { position:static; inset:auto; width:auto; max-height:none; overflow:visible; box-shadow:none; border:0; margin:0; padding:0; }
.service-directory-workspace .service-package-button { min-height:24px; margin:0; padding:2px 7px; border:1px solid #b8c7d2; border-radius:2px; background:#f7f9fa; color:#153a53; font-size:11px; }
.legacy-child-window .package-dialog-body .package-dialog-identity { display:flex; align-items:center; gap:8px; padding:2px 6px 6px; font-size:12px; }
.legacy-child-window .package-dialog-body .package-dialog-identity strong { font-size:13px; }
.legacy-child-window .package-dialog-body .card { padding:7px 9px; margin-bottom:6px; border-radius:3px; box-shadow:none; }
.legacy-child-window .package-dialog-body .form-grid { grid-template-columns:repeat(4,minmax(0,1fr)); gap:3px 7px; margin-bottom:3px; }
.legacy-child-window .package-dialog-body label { gap:2px; font-size:11px; }
.legacy-child-window .package-dialog-body input:not([type=checkbox]),.legacy-child-window .package-dialog-body select { min-height:28px; padding:3px 6px; border-radius:2px; font-size:12px; }
.legacy-child-window .package-dialog-body .actions { gap:5px; margin:5px 0 0; }
.legacy-child-window .package-dialog-body button { min-height:28px; padding:3px 8px; border-radius:2px; font-size:12px; }
.legacy-child-window .package-dialog-body .alert { padding:5px 8px; margin:3px 0 5px; font-size:12px; }
.legacy-child-window .package-dialog-body .package-dialog-table table { font-size:11px; }
dialog.legacy-child-window:has(.customer-detail-window) .legacy-child-titlebar { min-height:28px; height:28px; padding:0 7px; }
dialog.legacy-child-window:has(.customer-detail-window) .legacy-child-content { padding:0; }
dialog.legacy-child-window:has(.customer-detail-window) .legacy-child-close { min-height:25px; height:25px; }
dialog.legacy-child-window:has(.invoice-child-editor) .legacy-child-content { padding:0; }
dialog.legacy-child-window:has(.invoice-child-editor) .invoice-child-editor { min-width:0; padding:0 8px 8px; }
.account-categories-panel .category-navigator { display:flex; align-items:center; gap:5px; padding:4px; border:1px solid #cbd5df; background:#f4f5f6; direction:ltr; font-size:12px }
.account-categories-panel .category-navigator button { min-width:28px; min-height:25px; padding:2px 5px; border:0; background:transparent }
.account-categories-panel .category-navigator button:hover:not(:disabled) { background:#dcecf6 }
.account-categories-panel tbody tr { cursor:pointer }
.account-categories-panel tbody tr.category-selected td { background:#dcecf6 }
.account-categories-panel tbody tr:focus-visible { outline:2px solid #168abc; outline-offset:-2px }
.expense-types-panel { direction:rtl; inset:auto; top:calc((100vh - min(449px,100vh - 32px))/2); left:calc((100vw - min(592px,100vw - 32px))/2); width:min(592px,calc(100vw - 32px)); height:min(449px,calc(100vh - 32px)); display:flex; flex-direction:column; gap:5px; padding:7px }
.expense-types-panel .expense-types-ribbon { gap:5px; margin:5px 0 9px; padding:5px; border:1px solid #cbd5df; background:#f4f5f6 }
.expense-types-panel .expense-types-ribbon button { min-height:29px; padding:4px 8px; font-size:12px }
.expense-types-panel #expense-type-form { display:flex; min-height:0; flex:1 }
.expense-types-panel .table-wrap { min-height:0; max-height:none; flex:1 }
.expense-types-panel tbody tr { cursor:pointer }
.expense-types-panel tbody tr.selected { background:#dcecf6 }
.expense-types-panel tbody tr.pending-delete { color:#a32732; text-decoration:line-through }
.expense-types-panel tbody td input { width:100%; min-height:28px; padding:3px 6px; border:1px solid #8dabc1; background:#fff }
.expense-types-panel tbody tr.expense-type-new-row td:first-child { color:#bd5c1e; font-weight:700 }
.legacy-child-window .expense-types-panel { position:static; z-index:auto; inset:auto; width:100%; height:min(449px,calc(100vh - 100px)); margin:0; border:0; box-shadow:none }
.expense-types-close-prompt { position:relative; z-index:1; margin:8px 0; padding:12px; border:1px solid #a9b5c2; background:#fffdf2; box-shadow:0 5px 14px #152a3b24 }
.expense-types-close-prompt p { margin:6px 0 10px }
.permissions-guidance { margin:0 0 8px; font-size:12px }
.permissions-guidance summary { cursor:pointer; color:#526275 }
.permissions-guidance p { margin:5px 0 }
.permissions-grid { max-height:43vh; overflow:auto; margin:8px 0; border:1px solid #cbd5df }
.permissions-grid table { width:100%; border-collapse:collapse; font-size:12px }
.permissions-grid th { position:sticky; top:0; z-index:1; background:#e9edf1 }
.permissions-grid th,.permissions-grid td { padding:4px 8px; border:1px solid #d7dde4; text-align:center }
.permissions-grid td:first-child,.permissions-grid th:first-child { text-align:right; min-width:195px }
.permissions-grid tbody tr.selected { background:#d8eaf6 }
.permissions-grid td button { display:block; width:100%; padding:2px 4px; text-align:right; border:0; background:transparent; color:#162b3d; font-size:12px }
.permissions-grid td button:hover { text-decoration:underline }
.permission-editor { display:grid; gap:8px; font-size:12px }
.permission-editor .check { flex-direction:row; align-items:center; gap:5px; width:max-content; font-size:12px }
.permission-editor input[type=checkbox] { width:16px; min-width:16px; min-height:16px; height:16px; margin:0; padding:0 }
.permission-flags { display:flex; flex-wrap:wrap; gap:10px 22px }
.permission-save-help { color:#536679; font-size:11px }
.permission-save-help summary { cursor:pointer }
.permission-save-help p { margin:3px 0 }
.permission-save-row { display:flex; align-items:end; gap:8px }
.permission-save-row label { flex:1 }
.permission-save-row input { min-height:32px; height:32px; padding:4px 7px; font-size:12px }
.permission-save-row button { padding:5px 12px; white-space:nowrap }
.user-permission-detail { margin-top:8px; border-top:1px solid #cbd5df; padding-top:6px }
.user-permission-detail .toolbar { align-items:center; gap:8px }
.user-permission-detail .toolbar h3 { margin:0 auto 0 0; font-size:13px }
.user-permission-detail .toolbar label { min-width:230px }
.user-permission-detail .toolbar select { min-height:30px; height:30px; padding:3px 7px; font-size:12px }
.user-permission-detail .permissions-grid { min-height:0; height:clamp(170px,30vh,300px); max-height:30vh; margin:5px 0; overflow:auto }
.user-directory-card:has(> .user-permission-detail)>.table-wrap { min-height:0; max-height:22vh; overflow:auto }
.shell:has(.user-permission-detail) .page-heading { margin-bottom:6px }
.shell:has(.user-permission-detail) .page-heading h1 { margin:0; font-size:19px }
.user-directory-card:has(.user-permission-detail)>.table-wrap table { font-size:12px }
.user-directory-card:has(.user-permission-detail)>.table-wrap th,.user-directory-card:has(.user-permission-detail)>.table-wrap td { padding:5px 7px }
.account-directory-workspace.filtered:has(.invoice-register-navigator) .toolbar { align-items:center; gap:8px }
.account-directory-workspace.filtered:has(.invoice-register-navigator) .invoice-register-navigator { margin-right:auto; border:1px solid #d9e0e5 }
.account-directory-workspace.filtered:has(.invoice-register-navigator) .account-directory-card tbody tr.selected td { background:#dcecf6; outline:1px solid #78aecd; outline-offset:-1px }
.account-directory-workspace.filtered:has(.invoice-register-navigator) .account-directory-card tbody tr { cursor:pointer }
@media(min-width:1000px) {  .shell:has(.permissions-grid) header { height:42px; padding:0 14px } .shell:has(.permissions-grid) main { max-width:none; width:100%; margin:0; padding:8px 10px } .shell:has(.permissions-grid) main>h1 { margin:0 0 3px; font-size:17px } .shell:has(.permissions-grid) .card { padding:9px; margin-bottom:8px } .shell:has(.permissions-grid) .form-grid { gap:8px; margin-bottom:4px } .shell:has(.permissions-grid) .form-grid select { min-height:32px; height:32px; padding:4px 7px; font-size:12px } }
@media print {
  .shell:has(.expense-register-print-sheet) { page:expense-page; min-height:0; background:white }
  .expense-directory-workspace > :not(.expense-register-print-sheet) { display:none !important }
  .expense-register-print-sheet { display:block }
  .expense-register-print-sheet .table-wrap { min-height:0; max-height:none; overflow:visible }
  .expense-register-print-sheet table { width:100%; min-width:0; font-size:8px }
  .expense-register-print-sheet th,.expense-register-print-sheet td { padding:3px 4px }
  .shell:has(.account-document-report-controls) .print-sheet { min-height:0 }
  .shell:has(.invoice-print-document) { min-height:0 }
  @page invoice-register-page { size:Letter landscape; margin:.9in .2in .4in }
  :root:has(.invoice-register-print-sheet, .supplier-print-host) { background:white }
  .shell:has(.invoice-register-print-sheet) { page:invoice-register-page; min-height:0; background:white }
  .invoice-register-workspace, dialog:has(.invoice-register-preview) { display:none!important }
  .invoice-register-print-sheet { display:block }
  .invoice-register-print-branding { display:block }
  .invoice-register-print-date { display:block }
  body {
    background:white;
    font-size:11px
  }
  .shell aside,.shell .main > header,.no-print,#blazor-error-ui {
    display:none!important
  }
  main {
    padding:0;
    max-width:none
  }
  .card {
    border:0;
    box-shadow:none;
    padding:0
  }
  .shell,.main {
    display:block
  }
  .table-wrap {
    overflow:visible
  }
  tr {
    break-inside:avoid
  }
  thead {
    display:table-header-group
  }
  .page-heading {
    margin-top:20px
  }
  a {
    color:inherit
  }
  .muted {
    font-size:11px
  }
}
h1:focus {
  outline:none
}
@media (min-width:1000px) {
  .shell:has(.transfer-workspace:not(:where(.workspace-pane[hidden] *))) header { height:42px; padding:0 14px }
  .shell:has(.transfer-workspace:not(:where(.workspace-pane[hidden] *))) main { max-width:none; width:100%; margin:0; padding:8px 10px }
}
/* MainForm NavigationPane: one active page above six fixed group selectors. */
@media screen {
  .shell > .main > main { max-width:none }
  .shell aside {
    width:170px;
    height:100vh;
    padding:0;
    overflow:hidden;
    color:#1d2730;
    background:#f9f9f9;
    border-inline-end:1px solid #c9cdd1;
  }
  .shell aside .brand {
    height:28px;
    min-height:28px;
    flex-shrink:0;
    padding:5px 8px 0;
    color:#52616b;
    font-size:12px;
    font-weight:500;
    letter-spacing:0;
    line-height:20px;
    text-align:start;
  }
  .shell aside .brand span,.shell aside .sidebar-caption,.shell aside .sidebar-bottom { display:none }
  .shell aside .sidebar-active-title {
    height:30px;
    min-height:30px;
    flex-shrink:0;
    padding:3px 8px;
    font-size:13px;
    line-height:24px;
    color:#163d53;
    text-align:start;
  }
  .shell aside nav.sidebar-nav {
    display:block;
    position:relative;
    flex:1;
    min-height:0;
    margin:0;
    padding:0;
    overflow:hidden;
  }
  .shell aside .nav-group { position:static; height:0; margin:0; padding:0; border:0 }
  .shell aside .nav-group summary {
    position:absolute;
    inset-inline:0;
    bottom:0;
    display:flex;
    align-items:center;
    justify-content:flex-start;
    gap:8px;
    height:43px;
    min-height:43px;
    padding:5px 7px;
    margin:0;
    border:0;
    border-top:1px solid #d3d6d8;
    border-radius:0;
    background:#fff;
    color:#222;
    font-size:12px;
    font-weight:400;
    line-height:20px;
    white-space:nowrap;
  }
  .shell aside .nav-group summary::-webkit-details-marker { display:none }
  .shell aside .nav-group:nth-child(1) summary { bottom:215px }
  .shell aside .nav-group:nth-child(2) summary { bottom:172px }
  .shell aside .nav-group:nth-child(3) summary { bottom:129px }
  .shell aside .nav-group:nth-child(4) summary { bottom:86px }
  .shell aside .nav-group:nth-child(5) summary { bottom:43px }
  .shell aside .nav-group:nth-child(6) summary { bottom:0 }
  .shell aside .nav-group summary img { width:25px; height:25px; flex:0 0 25px }
  .shell aside .nav-group[open] > summary { background:#e8eef2; color:#163d53 }
  .shell aside .nav-group summary:hover,.shell aside .nav-group summary:focus-visible { background:#e2eff8; outline:1px solid #78aecd; outline-offset:-1px }
  .shell aside .nav-items {
    position:absolute;
    inset-inline:0;
    top:0;
    bottom:258px;
    display:flex;
    flex-direction:column;
    gap:0;
    margin:0;
    padding:0;
    overflow-y:auto;
    overflow-x:hidden;
    scrollbar-gutter:stable;
    background:#fff;
  }
  .shell aside .nav-group:not([open]) .nav-items { display:none }
  .shell aside .nav-items form { margin:0; width:100% }
  .shell aside nav .legacy-nav-link {
    display:flex;
    flex-direction:column;
    align-items:center;
    justify-content:center;
    flex-shrink:0;
    gap:2px;
    width:100%;
    min-height:71px;
    padding:5px 4px;
    margin:0;
    border:0;
    border-radius:0;
    background:#fff;
    color:#111;
    font-size:12px;
    font-weight:400;
    line-height:18px;
    text-align:center;
    white-space:normal;
  }
  .shell aside nav .legacy-nav-link img { width:29px; height:29px; flex:0 0 29px }
  .shell aside nav .legacy-nav-link span { max-width:100%; overflow-wrap:anywhere; font-size:12px }
  .shell aside nav .legacy-nav-link small { color:inherit; font-size:12px }
  .shell aside nav .legacy-nav-link:hover,.shell aside nav .legacy-nav-link:focus-visible { background:#e9f3f9; color:#111; outline:1px solid #78aecd; outline-offset:-1px }
  .shell aside nav .legacy-nav-link.active { color:#067db4; background:#ddeef9; border:0 }
  .shell aside details.nav-supplemental { display:block; flex-shrink:0; width:100% }
  .shell aside .nav-group details.nav-supplemental > summary {
    position:static; inset:auto; width:100%; height:auto; min-height:28px; margin:0;
    padding:5px; border:0; border-top:1px solid #c9d3dc; border-radius:0;
    display:list-item; list-style:disclosure-closed inside; background:#edf1f4; color:#526574;
    font-size:10px; line-height:18px; text-align:start; cursor:pointer; white-space:normal;
  }
  .shell aside .nav-group details.nav-supplemental[open] > summary { list-style-type:disclosure-open }
  .shell aside .nav-group details.nav-supplemental > summary::-webkit-details-marker { display:inline }
  .shell aside details.nav-supplemental:not([open]) > :not(summary) { display:none }
  .shell aside details.nav-supplemental > summary:focus-visible { outline:2px solid #78aecd; outline-offset:-2px }
}
@media screen and (min-width:761px) {
  .shell .main > header { position:relative; height:50px; justify-content:flex-end; align-items:flex-start; padding:2px 12px 0; background:#fafafa }
  .shell .main > header > span:first-child,.shell .main > header > form { display:none }
  .shell .main > header > form.ui-language-switcher { display:inline-flex }
  .shell .main > header > .work-tabs { position:absolute; inset-inline-start:8px; bottom:-1px; width:max-content; max-width:calc(100% - 330px); height:27px; min-height:27px; padding:0; border:0; background:transparent }
  .shell .main > header > .work-tabs .work-tab { height:26px }
  .shell .main > header > .work-tabs .work-tabs-note { display:none }
}
@media screen and (max-width:760px) {
  .shell .main > header { height:auto; min-height:76px; flex-wrap:wrap; gap:4px; padding:6px 12px }
  .shell .main > header > .work-tabs { order:10; flex:1 0 100%; min-height:30px; max-width:100% }
}
@media screen and (max-width:760px) {
  .shell aside { width:100%; height:500px; max-height:calc(100svh - 12px); min-height:380px; position:static }
}
/* Shared source-sized left filter pane for the legacy statement screens. */
@media print {
  html:has(.account-document-report-workspace:not([hidden], .workspace-pane[hidden] *)),
  body:has(.account-document-report-workspace:not([hidden], .workspace-pane[hidden] *)),
  .shell:has(.account-document-report-workspace:not([hidden], .workspace-pane[hidden] *)) {
    page:account-document-page;
    min-height:0;
    background:white;
  }
  .shell:has(.account-document-report-workspace:not([hidden], .workspace-pane[hidden] *)) main {
    width:100%;
    max-width:none;
    padding:0;
    margin:0;
  }
}


.phone-menu-toggle { display:none }
@media screen and (max-width:760px) {
  .shell > .phone-menu-toggle { display:block; width:100%; text-align:start; padding:8px 14px }
  .shell > aside[data-phone-open="false"] { display:none }
}
