: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:var(--button-padding, 10px 20px);
  border:1px solid transparent;
  border-radius:var(--button-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-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 { 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 > .workspace-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 }
}
/* Keep each group's links next to the heading that opens them. */
@media screen {
  .shell > .main > main { max-width: none }
  .workspace-starting {
    position: fixed;
    inset-block-end: 12px;
    inset-inline-end: 12px;
    z-index: 10;
    padding: 4px 12px;
    border: 1px solid var(--line);
    border-inline-start: 3px solid var(--teal);
    background: white;
    color: var(--ink);
    font-size: 14px;
    pointer-events: none;
  }
  .shell > aside {
    width: 190px;
    height: 100dvh;
    padding: 0;
    overflow: hidden;
    color: var(--ink);
    background: white;
    border-inline-end: 1px solid var(--line);
  }
  .shell aside .brand {
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 6px;
    flex-shrink: 0;
    padding: 12px;
    color: var(--ink);
    font-size: 19px;
    letter-spacing: 0;
    border-bottom: 1px solid var(--line);
  }
  .shell aside .brand span { display: inline; color: #526574; font-size: 12px }
  .shell aside .sidebar-nav {
    display: block;
    min-height: 0;
    overflow: auto;
    padding: 6px;
    overscroll-behavior: contain;
  }
  .sidebar-nav .nav-group { padding: 2px 0; border: 0 }
  .sidebar-nav .nav-group > summary {
    display: flex;
    min-height: 38px;
    align-items: center;
    gap: 8px;
    padding: 6px 9px;
    border-radius: 5px;
    color: var(--ink);
    font-size: 14px;
    line-height: 1.4;
    white-space: normal;
  }
  .sidebar-nav .nav-group > summary::-webkit-details-marker { display: none }
  .sidebar-nav .nav-group > summary::after {
    content: "";
    width: 6px;
    height: 6px;
    margin-inline-start: auto;
    border-inline-end: 1.5px solid currentColor;
    border-bottom: 1.5px solid currentColor;
    transform: rotate(45deg);
  }
  [dir="rtl"] .sidebar-nav .nav-group > summary::after { transform: rotate(-45deg) }
  .sidebar-nav .nav-group[open] > summary::after { rotate: 180deg }
  .sidebar-nav .nav-group[open] > summary { color: #075968; background: #e8f3f3 }
  .sidebar-nav .nav-items { display: grid; gap: 1px; padding: 3px 0 5px; margin-inline-start: 8px }
  .sidebar-nav .nav-items form { margin: 0 }
  .sidebar-nav .nav-group summary img, .sidebar-nav .legacy-nav-link img { width: 18px; height: 18px; flex: 0 0 18px }
  .shell aside .sidebar-nav .legacy-nav-link {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 8px;
    width: 100%;
    min-height: 34px;
    padding: 5px 8px;
    border: 0;
    border-inline-start: 3px solid transparent;
    border-radius: 4px;
    color: var(--ink);
    background: transparent;
    font-size: 13px;
    font-weight: 400;
    line-height: 1.45;
    text-align: start;
    overflow-wrap: anywhere;
    white-space: normal;
  }
  .shell aside .sidebar-nav .legacy-nav-link.active {
    background: #e8f3f3;
    color: #075968;
    border-inline-start-color: var(--teal);
    font-weight: 700;
  }
  .sidebar-nav .nav-group > summary:hover, .shell aside .sidebar-nav .legacy-nav-link:hover { background: #eef3f6 }
  .sidebar-nav .nav-supplemental > summary {
    display: list-item;
    padding: 7px;
    color: #526574;
    font-size: 12px;
    list-style-position: inside;
    white-space: normal;
  }
  .shell aside :is(a, button, summary):focus-visible { outline: 2px solid var(--teal); outline-offset: -2px }
}
@media screen {
  .shell > header.workspace-header {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    align-items: center;
    gap: 4px 12px;
    height: auto;
    min-height: 48px;
    padding: 4px 12px 0;
    background: #fff;
    color: var(--ink);
  }
  .workspace-header-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
  }
  .workspace-header-actions { justify-content: flex-end; }
  .workspace-header-actions .phone-menu-toggle { display: none; }
  .workspace-logout { flex: none; }
  :is(.workspace-header-actions .phone-menu-toggle, .sidebar-controls .workspace-logout button) {
    gap: 5px;
    min-height: 34px;
    padding: 4px 9px;
    border: 1px solid var(--line);
    border-radius: 6px;
    background: white;
    color: var(--ink);
    font-weight: 700;
    white-space: nowrap;
  }
  :is(.workspace-header-actions .phone-menu-toggle, .sidebar-controls .workspace-logout button):hover { background: #e7f1ef; }
  .workspace-header-actions :is(button, a):focus-visible {
    outline: 2px solid var(--teal);
    outline-offset: 2px;
  }
  .workspace-logout img { width: 17px; height: 17px; }
  .sidebar-controls .workspace-account {
    grid-column: 1 / -1;
    display: grid;
    justify-items: start;
    gap: 2px;
    min-width: 0;
    padding-block-end: 6px;
    border-block-end: 1px solid var(--line);
  }
  .workspace-account .workspace-user { font-size: 14px; overflow-wrap: anywhere; max-width: 100%; }
  .workspace-account a { color: var(--teal); font-size: 12px; }
  .workspace-header > .work-tabs {
    min-width: 0;
    min-height: 27px;
    padding: 0;
    border: 0;
    background: transparent;
  }
  .workspace-header .work-tab { min-height: 26px; }
  .workspace-header .work-tabs-note { display: none; }
  .workspace-logout-error { margin: 8px 12px 0; }
}
@media screen and (min-width:761px) {
  .workspace-header-actions { display: none; }
  .shell {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    grid-template-rows: auto 1fr;
  }
  .shell > aside { grid-area: 1 / 1 / 3 / 2; }
  .shell > .workspace-header { grid-area: 1 / 2; }
  .shell > .main { grid-area: 2 / 2; }
}
@media screen and (min-width:1024px) {
  .workspace-header > .work-tabs { grid-area: 1 / 1; align-self: end; }
}
@media screen and (max-width:760px) {
  .shell > header.workspace-header { padding: 6px 12px 0; }
  .workspace-header-actions { justify-content: flex-start; flex-wrap: wrap; }
  .workspace-header-actions .phone-menu-toggle { display: inline-flex; }
  :is(.workspace-header-actions .phone-menu-toggle, .sidebar-controls .workspace-logout button) { min-height: 44px; }
  .workspace-header > .work-tabs { min-height: 30px; }
  .shell > aside { width: 100%; height: auto; max-height: 70dvh; position: static; }
  .shell > aside[data-phone-open="false"] { display: none; }
}
/* 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;
  }
}


/* Customer directory: keep the wide accounting grid inside its own scroll area. */
@media screen {
  .account-directory-workspace.customer-directory {
    min-inline-size:0;
    color:var(--ink);
  }
  .customer-directory.filtered .customer-directory-heading {
    min-height:0;
    margin:8px 0 14px;
  }
  .customer-directory.filtered .customer-directory-heading h1 {
    font-size:clamp(21px,2vw,28px);
    line-height:1.35;
    font-weight:700;
  }
  .customer-directory.filtered .account-directory-card {
    min-inline-size:0;
    padding:0;
    border:1px solid #cedce2;
    border-radius:12px;
    background:#fff;
    box-shadow:0 2px 8px rgba(24,50,68,.06);
  }
  .customer-directory.filtered .account-directory-card>.customer-directory-toolbar {
    display:grid;
    grid-template-areas:"search search" "actions navigation";
    grid-template-columns:minmax(0,1fr) auto;
    align-items:center;
    gap:12px;
    margin:0;
    padding:14px 16px;
    border-bottom:1px solid #d6e2e7;
    border-radius:12px 12px 0 0;
  }
  .customer-directory.filtered .account-directory-card>.toolbar .customer-directory-search {
    grid-area:search;
    width:min(100%,28rem);
    display:grid;
    gap:3px;
    margin:0;
    color:#304757;
    font-weight:600;
    font-size:13px;
  }
  .customer-directory-search-field { position:relative; display:block }
  .customer-directory.filtered .account-directory-card>.toolbar .customer-directory-search input {
    min-height:40px;
    width:100%;
    padding:6px 12px;
    padding-inline-start:38px;
    border:1px solid #aebfc8;
    border-radius:7px;
    background:#fff;
    font-size:14px;
  }
  .customer-directory-search-icon {
    position:absolute;
    inset-inline-start:12px;
    top:50%;
    transform:translateY(-50%);
    width:16px;
    height:16px;
    color:#516a76;
    pointer-events:none;
  }
  .customer-directory-actions { grid-area:actions; display:flex; flex-wrap:wrap; align-items:center; gap:6px }
  .customer-directory.filtered .customer-directory-toolbar .invoice-register-navigator {
    grid-area:navigation;
    justify-self:end;
    align-self:end;
    align-items:center;
    gap:2px;
    margin:0;
    padding:2px;
    border:1px solid #d5e0e5;
    border-radius:7px;
    background:#f8fafb;
    font-variant-numeric:tabular-nums;
  }
  .customer-directory.filtered .account-directory-card>.toolbar .customer-directory-actions :is(button,a) {
    min-height:36px;
    padding:5px 12px;
    border:1px solid #c8d6df;
    border-radius:6px;
    background:white;
    color:#274758;
    font-size:13px;
    font-weight:600;
  }
  .customer-directory.filtered .account-directory-card>.toolbar .customer-directory-actions .customer-directory-action-primary {
    color:#fff;
    background:#076c75;
    border-color:#076c75;
  }
  .customer-directory-actions .legacy-party-icon { width:16px; height:16px }
  .customer-directory.filtered .account-directory-card>.toolbar .invoice-register-navigator button {
    min-width:30px;
    min-height:32px;
    padding:4px;
    border-radius:4px;
  }
  .customer-directory .legacy-party-nav-icon { width:14px; height:14px }
  .customer-directory-toolbar :is(button,a,input):focus-visible,
  .customer-directory-table-wrap:focus-visible,
  .customer-directory-table tr:focus-visible {
    outline:2px solid #087783;
    outline-offset:-2px;
  }
  .customer-directory.filtered .account-directory-card .customer-directory-table-wrap {
    min-height:0;
    max-height:65vh;
    max-height:65dvh;
    overflow:auto;
    border-radius:0 0 12px 12px;
    scrollbar-color:#95a9b3 #f3f6f8;
  }
  .customer-directory-table th {
    position:sticky;
    top:0;
    z-index:1;
    color:#355161;
    background:#edf3f5;
    font-size:12px;
    text-align:start;
  }
  .customer-directory-table :is(th,td) { padding:7px 10px; text-align:start }
  .customer-directory-table td { height:40px; font-size:13px }
  .customer-directory-table td[data-customer-column="Name"] { color:#182f40; font-weight:700 }
  .customer-directory-number { display:inline-block; direction:ltr; unicode-bidi:isolate; font-variant-numeric:tabular-nums }
  .customer-directory-table [data-customer-column$="Balance"],
  .customer-directory-table [data-customer-column$="Balance"] button { text-align:end; justify-content:end }
  .customer-directory-details { min-height:30px; padding:3px 7px; color:#076c75; font-weight:600 }
  .customer-directory.filtered .account-directory-card .customer-directory-table tbody tr.selected td {
    background:#def1f1;
    outline:0;
    border-block:1px solid #83b9bd;
  }
  .customer-directory-table tr.selected td:first-child { box-shadow:inset 0 -2px #25828a }
  .customer-directory-empty { padding:28px 16px; text-align:center; color:#465e6c }
  .customer-directory-empty p { margin:0 }
}
@media screen and (max-width:760px) {
  .customer-directory.filtered .account-directory-card>.customer-directory-toolbar {
    grid-template-columns:minmax(0,1fr);
    grid-template-areas:"search" "actions" "navigation";
    gap:10px;
    padding:12px;
  }
  .customer-directory.filtered .account-directory-card>.toolbar .customer-directory-search { width:100% }
  .customer-directory.filtered .customer-directory-toolbar .invoice-register-navigator { justify-self:start }
  .customer-directory.filtered .account-directory-card>.toolbar .customer-directory-actions :is(button,a) { min-height:40px }
  .customer-directory.filtered .account-directory-card>.toolbar .invoice-register-navigator button { min-width:36px; min-height:36px }
  .customer-directory.filtered .account-directory-card .customer-directory-table-wrap { max-height:60dvh }
}
.customer-directory-actions .customer-columns-toggle { display:none }
@media screen and (max-width:760px) {
  .customer-directory-actions .customer-columns-toggle { display:inline-flex }
  .customer-directory.filtered .account-directory-card .customer-compact-columns table:not(.service-grid-measuring) {
    width:100% !important;
    min-width:0;
    table-layout:auto;
  }
  .customer-compact-columns table:not(.service-grid-measuring) colgroup,
  .customer-compact-columns table:not(.service-grid-measuring) [data-customer-column]:not([data-customer-column="Name"],[data-customer-column="Phone1"],[data-customer-column="Details"],[data-customer-column="Balance"]) {
    display:none;
  }
  .customer-compact-columns table:not(.service-grid-measuring) :is(th,td) { padding:6px 4px }
  .customer-compact-columns table:not(.service-grid-measuring) td { overflow-wrap:anywhere; white-space:normal }
  .customer-compact-columns .customer-directory-value { white-space:normal }
}

/* arabic */
@font-face {
  font-family: 'Cairo';
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url(fonts/cairo/arabic.woff2) format('woff2');
  unicode-range: U+0600-06FF, U+0750-077F, U+0870-0891, U+0897-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC, U+102E0-102FB, U+10E60-10E7E, U+10EC2-10EC7, U+10EC9-10EEE, U+10EF0-10EFF, U+1EE00-1EE03, U+1EE05-1EE1F, U+1EE21-1EE22, U+1EE24, U+1EE27, U+1EE29-1EE32, U+1EE34-1EE37, U+1EE39, U+1EE3B, U+1EE42, U+1EE47, U+1EE49, U+1EE4B, U+1EE4D-1EE4F, U+1EE51-1EE52, U+1EE54, U+1EE57, U+1EE59, U+1EE5B, U+1EE5D, U+1EE5F, U+1EE61-1EE62, U+1EE64, U+1EE67-1EE6A, U+1EE6C-1EE72, U+1EE74-1EE77, U+1EE79-1EE7C, U+1EE7E, U+1EE80-1EE89, U+1EE8B-1EE9B, U+1EEA1-1EEA3, U+1EEA5-1EEA9, U+1EEAB-1EEBB, U+1EEF0-1EEF1;
}
/* latin-ext */
@font-face {
  font-family: 'Cairo';
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url(fonts/cairo/latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Cairo';
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url(fonts/cairo/latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@media screen {
  :root {
    --button-height: 36px;
    --button-compact-height: 30px;
    --button-icon-size: 30px;
    --button-radius: 7px;
    --ui-font: "Cairo", Tahoma, sans-serif;
    --ink: #19333b;
    --teal: #11696c;
    --line: #cfdedc;
    font-family: var(--ui-font);
    color: var(--ink);
    background: #f3f7f6;
  }
}
@media screen and (min-width: 1024px) {
  .shell > aside {
    background: #fafcfb;
    border-color: #bfcfcd;
  }
  .shell aside .brand {
    align-items: center;
    gap: 9px;
    padding: 14px 12px;
    background: #154549;
    color: white;
    font-weight: 800;
    font-size: 22px;
    line-height: 1.4;
  }
  .shell aside .brand span { color: #d6ebe8; font-weight: 500; }
  .shell aside .sidebar-nav { padding: 8px 6px; }
  .sidebar-nav .nav-group > summary { font-weight: 650; border-radius: 7px; }
  .sidebar-nav .nav-group[open] > summary { background: #e2eeeb; color: #174c4e; }
  .shell aside .sidebar-nav .legacy-nav-link.active {
    color: #124e50;
    border-color: #11696c;
    background: #d9eeea;
    border-radius: 6px;
  }
  .work-tabs .work-tab {
    border-color: transparent;
    border-radius: 7px 7px 0 0;
    color: var(--ink);
    background: #edf3f2;
  }
  .work-tabs .work-tab.active {
    background: #e0efed;
    box-shadow: inset 0 -2px var(--teal);
  }
  .work-tab.active a { color: #145354; }
  .workspace-pane :is(h1,h2) { letter-spacing: normal; }
  .card { border-color: var(--line); box-shadow: 0 3px 12px #19333b09; }
  .card > .table-wrap { min-width: 0; max-width: 100%; }
  .card > .table-wrap th { color: #355558; background: #edf4f2; }
  .shell :where(input, select, textarea, button):focus-visible {
    outline: 2px solid var(--teal);
    outline-offset: 1px;
  }
}

@media screen {
  .shell > .main {
    display: flex;
    flex-direction: column;
  }
  .shell > .main > main {
    width: 100%;
    margin-block: 0;
  }
}

@media screen {
  workspace-tab-strip {
    display: flex;
    align-items: center;
    gap: 4px;
    min-width: 0;
    overflow: hidden;
  }
  workspace-tab-strip .work-tabs {
    flex: 1;
    min-width: 0;
    min-height: 38px;
    padding: 3px;
    border: 0;
    background: transparent;
    overflow-y: hidden;
  }
  workspace-tab-strip[data-ready] .work-tabs { scrollbar-width: none; }
  workspace-tab-strip[data-ready] .work-tabs::-webkit-scrollbar { display: none; }
  workspace-tab-strip .work-tab { min-height: 30px; }
  .tab-scroll {
    flex: none;
    width: var(--button-icon-size);
    height: var(--button-icon-size);
    padding: 0;
    border: 1px solid var(--line);
    border-radius: 7px;
    color: var(--teal);
    background: #fff;
  }
  .tab-scroll[hidden] { display: none; }
  .tab-scroll:disabled { opacity: .45; cursor: default; }
  .tab-scroll span {
    width: 8px;
    height: 8px;
    border-block-start: 2px solid;
    border-inline-start: 2px solid;
    transform: rotate(-45deg);
  }
  [dir="rtl"] .tab-scroll span { transform: rotate(45deg); }
  .tab-scroll.next span { rotate: 180deg; }
}
@media screen and (min-width:1024px) {
  .workspace-header > workspace-tab-strip { grid-area: 1 / 1; }
}

@media screen and (min-width: 1024px) {
  :root { --button-padding: 6px 14px; }
  :where(.actions, .page-heading, .dashboard-operations, .dashboard-summary-filters) > :is(button, a.button) {
    min-block-size: var(--button-height);
    border-radius: var(--button-radius);
  }
  .sidebar-controls .workspace-logout button { min-height: var(--button-height); }
  .work-tabs .work-tab button {
    min-inline-size: var(--button-icon-size);
    min-block-size: var(--button-compact-height);
    padding: 0;
  }
  button:disabled { cursor: default; }
}

@media screen {
  .sidebar-controls {
    display: grid;
    flex: none;
    gap: 7px;
    margin-block-start: auto;
    padding: 10px 12px;
    border-block-start: 1px solid var(--line);
    background: #f4f8f7;
  }
  .sidebar-controls form { margin: 0; }
  .sidebar-controls .ui-language-switcher { display: flex; }
  .sidebar-controls .ui-language-switcher button { flex: 1; }
  .sidebar-controls .workspace-logout button { width: 100%; }
}
@media screen and (max-width: 760px) {
  .sidebar-controls {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: center;
  }
  .sidebar-controls .ui-language-switcher button { min-height: 40px; }
}

@media screen and (min-width: 1024px) {
  .shell > aside {
    width: clamp(190px, 14vw, 224px);
  }
  .shell aside .sidebar-nav {
    padding: 10px 8px;
  }
  .sidebar-nav .nav-group { padding-block: 3px; }
  .sidebar-nav .nav-group > summary { gap: 10px; font-weight: 700; }
  .sidebar-nav .nav-group[open] > summary { color: #194a4b; background: #edf3f2; }
  .sidebar-nav .nav-items {
    gap: 2px;
    margin-inline-start: 15px;
    padding: 4px 0 5px;
    padding-inline-start: 5px;
    border-inline-start: 1px solid var(--line);
  }
  .shell aside .sidebar-nav .legacy-nav-link.active {
    color: #fff;
    background: #175e60;
    border-inline-start-color: transparent;
  }
  .shell aside .sidebar-nav .legacy-nav-link.active img {
    filter: brightness(0) invert(1);
  }
  .shell aside .sidebar-nav .legacy-nav-link.active:focus-visible {
    outline: 2px solid white;
    outline-offset: -4px;
  }
}

/* A single command palette across report panels with locally themed toolbars. */
@media screen {
  .report-command {
    background-color: #11696c !important;
    border-color: #11696c !important;
    color: #fff !important;
  }
  .report-command:not(:disabled):hover {
    background-color: #0d5558 !important;
    border-color: #0d5558 !important;
  }
  .report-command:focus-visible {
    outline: 2px solid #164a4c;
    outline-offset: 2px;
  }
  .report-command:disabled { opacity: .55; }
}

@media screen and (min-width: 1024px) {
  .account-directory-workspace.filtered .account-directory-card table[data-service-grid-kind="Employee"]:not(.service-grid-measuring) {
    min-width: max(100%, 1000px);
  }
}
