/* Screen layouts use available CSS pixels, including Windows display scaling.
   Keep this layer after styles.css; print layouts retain their existing rules. */
@media screen {
  body { zoom:1; }
  #app .app-shell { min-width:0; grid-template-columns:var(--app-sidebar-width) minmax(0,1fr); }
  #app .workspace { container:app-workspace / inline-size; min-width:0; height:var(--erp-screen-height,100dvh)!important; min-height:var(--erp-screen-height,100dvh)!important; }
  #app .page-content {
    container:app-page / inline-size;
    overflow:auto!important;
    padding:10px!important;
    min-width:0!important;
    scrollbar-gutter:stable;
  }
  #app .topbar {
    flex:0 0 auto!important;
    height:auto!important; min-height:64px!important; max-height:none!important;
    flex-wrap:wrap; gap:10px; padding:10px 16px;
  }
  #app .topbar .company-switcher { min-width:0; flex:0 1 auto; }
  #app .topbar .active-accounting-context { min-width:0; max-width:100%; }
  #app .topbar .active-accounting-context > span:first-child strong { max-width:min(300px,35vw); }
  #app .topbar .global-search { min-width:120px; }
  #app .sidebar { height:var(--erp-screen-height,100dvh); min-height:0; }
  #app .sidebar .menu-scroll { min-height:0; }
  #app .page-heading, #app .surface-header { flex-wrap:wrap; height:auto!important; gap:12px; }
  #app .heading-actions, #app .table-actions { flex-wrap:wrap; min-width:0; }
  #app .page-heading h1 { white-space:normal!important; }
  #app :is(.metrics-grid,.module-stat-grid,.module-grid,.reports-grid,.accounting-map-grid,.financial-report-kpis,.stock-stat-grid) {
    grid-template-columns:repeat(auto-fit,minmax(min(100%,230px),1fr))!important;
  }
  #app :is(.stock-form-grid,.accounting-dimension-form-grid,.coa-form-grid,.financial-report-filters:not(.statement-modern-filters)) {
    grid-template-columns:repeat(auto-fit,minmax(min(100%,240px),1fr))!important;
  }
  #app :is(.coa-entry-shell,.aux-entry-shell,.voucher-entry-shell,.dimension-entry-shell,.currency-entry-shell,.transaction-type-entry-shell) {
    min-width:0!important;
    height:max(600px,calc(var(--erp-screen-height,100dvh) - var(--responsive-topbar-height,84px) - 20px))!important;
    min-height:600px!important; max-height:none!important;
    grid-template-columns:minmax(240px,30%) minmax(0,1fr)!important;
    overflow:hidden!important;
  }
  #app .voucher-entry-shell {
    grid-template-columns:minmax(240px,min(var(--voucher-history-width,430px),30%)) minmax(0,1fr)!important;
  }
  #app .voucher-entry-shell.history-hidden { grid-template-columns:0 minmax(0,1fr)!important; }
  #app .voucher-history-shell-toggle { left:calc(min(var(--voucher-history-width,430px),30%) - 15px)!important; }
  #app .voucher-entry-shell.history-hidden .voucher-history-shell-toggle { left:6px!important; }
  #app :is(.coa-entry-history,.aux-entry-history,.voucher-entry-history,.dimension-entry-history,.subcc-entry-history) {
    width:auto!important; min-width:0!important; max-width:none!important;
    height:100%!important; overflow:auto!important;
  }
  #app :is(.coa-entry-main,.aux-entry-main,.voucher-entry-main,.dimension-entry-main) {
    min-width:0!important; min-height:0!important; height:100%!important; overflow:auto!important;
  }
  #app .voucher-entry-main { container:voucher-form / inline-size; }
  #app :is(.coa-entry-card,.aux-entry-card,.dimension-entry-card) {
    min-width:0!important; min-height:180px!important; overflow:auto!important;
    width:auto!important; max-width:100%!important;
  }
  #app :is(.coa-entry-fields,.aux-entry-fields,.dimension-entry-fields,.company-entry-fields) {
    grid-template-columns:repeat(auto-fit,minmax(min(100%,200px),1fr))!important;
    min-width:0!important;
  }
  #app :is(.coa-entry-actions,.aux-entry-actions,.voucher-entry-actions,.dimension-entry-actions) {
    display:flex!important; flex-wrap:wrap!important; gap:8px!important;
    flex:0 0 auto!important; padding:10px!important;
  }
  #app :is(.coa-entry-actions,.aux-entry-actions,.voucher-entry-actions,.dimension-entry-actions) > button {
    flex:1 1 90px; min-width:0!important; max-width:none!important;
  }
  #app :is(.dimension-entry-topbar,.coa-entry-topbar,.aux-entry-topbar) {
    display:flex!important; flex-wrap:wrap!important; align-items:center!important;
    gap:12px!important; min-width:0!important;
  }
  #app :is(.dimension-entry-title,.coa-entry-title,.aux-entry-title) { min-width:0!important; flex:1 1 200px; }
  #app :is(.dimension-entry-top-tools,.coa-entry-top-tools,.aux-entry-top-tools) { min-width:0!important; }
  #app :is(.dimension-entry-status-card,.coa-entry-status-card,.aux-entry-status-card) { min-width:0!important; }
  #app .voucher-entry-grid-wrap { min-height:240px!important; flex:1 0 240px!important; max-width:100%!important; }
  #app .voucher-entry-topbar { flex:0 0 auto; min-width:0; }
  #app :is(.voucher-entry-totals,.voucher-account-balance,.voucher-account-balance-panel) { flex-wrap:wrap!important; min-width:0!important; }
  #app .voucher-account-balance-account { min-width:0!important; max-width:100%!important; white-space:normal!important; }
  #app .voucher-entry-balance-box { flex:0 0 auto; min-width:0; }
  #app .voucher-balance-row { grid-template-columns:repeat(3,minmax(60px,auto) minmax(75px,1fr))!important; justify-content:stretch; }
  #app .voucher-balance-row > * { min-width:0; overflow-wrap:anywhere; }
  #app .voucher-account-balance-footer { display:flex!important; flex-wrap:wrap!important; gap:10px!important; align-items:center!important; margin-bottom:8px; }
  #app .voucher-account-balance-item { display:flex; gap:6px; }
  #app .voucher-company-control-row { flex-wrap:wrap!important; flex-direction:row!important; }
  #app .voucher-global-context-field .voucher-company-control-row { display:flex!important; }
  #app .voucher-context-locked-value { flex:1 1 180px; }
  #app .voucher-context-locked-value.year { flex:0 1 132px; }
  #app .voucher-company-control-row > * { min-width:0!important; max-width:100%!important; }
  #app .voucher-company-control-row #voucher-entry-company { flex:1 1 180px!important; max-width:none!important; }
  #app .voucher-company-control-row #voucher-entry-company-year { flex:0 1 130px!important; min-width:115px!important; }
  #app .company-year-add-row { grid-template-columns:repeat(auto-fit,minmax(min(100%,150px),1fr))!important; }
  #app .company-years-workspace-header { flex-wrap:wrap; }
  #app .company-years-company-chip { max-width:100%!important; }
  #app :is(.company-years-list-head,.company-year-row) { grid-template-columns:70px minmax(0,1fr) minmax(0,1fr)!important; gap:8px!important; }
  #app .accounting-context-panel.public-context { grid-template-columns:repeat(auto-fit,minmax(min(100%,200px),1fr))!important; }
  #app .accounting-context-panel label { min-width:0!important; }
  #app .accounting-context-panel :is(label,.searchable-combo) { width:100%!important; max-width:100%!important; }
  #app .accounting-context-period > strong { white-space:normal!important; }
  #app .accounting-context-intro { grid-column:1 / -1!important; }
  #app .statement-operation-menu { min-width:0!important; max-width:100%!important; }
  #app .statement-picker-search { min-width:0!important; width:100%!important; }
  #app .searchable-combo-native { min-width:0!important; max-width:1px!important; width:1px!important; left:0!important; top:0!important; }
  #app :is(.trial-modern-page,.statement-modern-page) {
    height:auto!important; min-height:100%!important; max-height:none!important;
    overflow:visible!important; min-width:0!important;
  }
  #app :is(.trial-primary-filters,.trial-picker-grid,.statement-modern-filters,.trial-balance-filter-grid,.trial-balance-multi-grid) {
    grid-template-columns:repeat(auto-fit,minmax(min(100%,160px),1fr))!important;
    min-width:0!important;
  }
  #app .statement-modern-filters > * { grid-column:auto!important; min-width:0!important; }
  #app :is(.trial-options-row,.trial-inline-options,.statement-modern-checks,.statement-modern-footer) { flex-wrap:wrap!important; }
  #app :is(.trial-primary-filters,.trial-picker-field,.statement-modern-filters) label > span,
  #app .trial-picker-field > span { font-size:11px!important; line-height:1.2!important; white-space:normal!important; }
  #app :is(.trial-primary-filters,.trial-picker-grid,.statement-modern-filters) :is(input:not([type=checkbox]),select,.searchable-combo-input,summary) { font-size:14px!important; }
  #app :is(.trial-heading-actions,.statement-heading-actions,.trial-actions-compact) button { font-size:12px!important; }
  #app .trial-level-options { flex:1 1 250px!important; }
  #app :is(.trial-modern-table-panel,.statement-modern-table-panel) { flex:1 0 300px!important; min-height:300px!important; }
  #app :is(.trial-modern-scroll,.statement-modern-scroll) {
    flex:1 1 auto!important; height:clamp(240px,45dvh,650px)!important; min-height:240px!important;
  }
  #app :is(.modal-card,.coa-modal-card,.document-ai-modal,.master-modal-card) {
    max-width:100%!important; max-height:calc(var(--erp-screen-height,100dvh) - 32px)!important; overflow:auto!important;
  }
  #app .modal-backdrop { padding:16px; overflow:auto; }
  #app .toast { max-width:calc(100vw - 32px); }
  #app :is(.stock-toolbar,.stock-filter-group,.stock-toolbar-actions,.stock-form-footer,.stock-pagination) { flex-wrap:wrap!important; min-width:0!important; }
  #app .stock-filter-group { flex:1 1 500px!important; }
  #app .stock-filter-group > * { min-width:0!important; max-width:100%!important; }
}

@media screen {
@container app-workspace (max-width:1200px) {
  #app .topbar .global-search, #app .topbar .server-pill { display:none!important; }
  #app .topbar .authenticated-user-copy { display:none; }
  #app .topbar .user-menu { margin-left:auto; }
}
/* Use the editor width after BOTH side panels, rather than the screen width. */
/* Keep the compact desktop header while the transaction list is resized. */
@container voucher-form (max-width:950px) {
  #app .voucher-entry-topbar { flex-direction:column!important; align-items:stretch!important; }
  #app .voucher-entry-title { min-width:0!important; max-width:none!important; }
  #app .voucher-entry-header-fields {
    width:100%!important; grid-template-columns:82px 128px 110px 105px!important;
  }
  #app .voucher-entry-company-field { grid-column:1 / -1!important; }
  #app .voucher-transaction-group-field,
  #app .voucher-transaction-group-field :is(.searchable-combo,select,input) { width:82px!important; max-width:82px!important; }
}
@container voucher-form (max-width:600px) {
  #app .voucher-transaction-group-field,
  #app .voucher-transaction-group-field :is(.searchable-combo,select,input) { width:100%!important; max-width:none!important; }
  #app .voucher-entry-header-fields { grid-template-columns:repeat(2,minmax(0,1fr))!important; }
  #app .voucher-balance-row { grid-template-columns:minmax(90px,auto) minmax(0,1fr)!important; }
  #app .voucher-entry-header-fields > .wide { grid-column:1 / -1!important; }
  #app .voucher-context-locked-value { flex:1 1 200px; }
  #app .voucher-context-locked-value.year { flex:0 1 115px; }
}
@container voucher-form (max-width:350px) {
  #app .voucher-entry-header-fields { grid-template-columns:minmax(0,1fr)!important; }
}
@container app-page (max-width:850px) {
  #app :is(.dashboard-grid,.lower-grid,.document-ai-layout,.stock-document-shell,.stock-notes-grid,.construction-boq-layout,.modern-calendar-layout) { grid-template-columns:minmax(0,1fr)!important; }
  #app :is(.coa-entry-shell,.aux-entry-shell,.voucher-entry-shell,.dimension-entry-shell,.currency-entry-shell,.transaction-type-entry-shell) {
    grid-template-columns:minmax(0,1fr)!important; height:auto!important; min-height:0!important; overflow:visible!important;
  }
  #app :is(.coa-entry-history,.aux-entry-history,.voucher-entry-history,.dimension-entry-history,.subcc-entry-history) {
    height:260px!important; max-height:260px!important; border-right:0; border-bottom:1px solid var(--line);
  }
  #app :is(.coa-entry-main,.aux-entry-main,.voucher-entry-main,.dimension-entry-main) {
    height:auto!important; min-height:620px!important; overflow:visible!important;
  }
  #app .voucher-entry-shell.history-hidden { grid-template-columns:minmax(0,1fr)!important; }
  #app .voucher-entry-shell.history-hidden .voucher-entry-history { display:none!important; }
  #app .voucher-history-shell-toggle { left:auto!important; right:10px!important; top:10px!important; }
  #app .voucher-history-resize-handle { display:none!important; }
  #app :is(.coa-entry-history-list,.aux-entry-history-list,.voucher-entry-history-list,.dimension-entry-history-list,.subcc-entry-list) {
    height:auto!important; min-height:80px!important;
  }
  #app .dimension-entry-companies .dimension-entry-field[data-company-field*="address" i] { grid-column:auto!important; }
}
@container app-page (max-width:500px) {
  #app :is(.coa-entry-fields,.aux-entry-fields,.dimension-entry-fields,.company-entry-fields,.stock-form-grid,.coa-form-grid) > * { grid-column:auto!important; }
  #app :is(.dimension-entry-top-tools,.coa-entry-top-tools,.aux-entry-top-tools) { display:flex!important; flex-wrap:wrap!important; gap:8px!important; }
  #app :is(.dimension-entry-top-tools,.coa-entry-top-tools,.aux-entry-top-tools) > button { flex:1 1 65px; }
  #app .financial-report-filters > .wide { grid-column:1 / -1!important; }
}
}
@media screen and (max-width:1200px) and (min-width:721px) {
  #app .app-shell { grid-template-columns:72px minmax(0,1fr)!important; }
  #app .sidebar { width:72px!important; min-width:72px!important; max-width:72px!important; padding-inline:8px; }
  #app .sidebar :is(.brand-copy,.menu-label,.menu-text,.menu-badge,.copilot-card,.sidebar-search) { display:none!important; }
  #app .sidebar :is(.brand-row,.menu-item) { justify-content:center!important; padding-inline:0!important; }
  #app .sidebar :is(.sidebar-resize-handle,.sidebar-width-toggle) { display:none!important; }
  #app .topbar .global-search, #app .topbar .server-pill { display:none; }
}
@media screen and (max-width:720px) {
  #app .app-shell { display:block!important; }
  #app .sidebar {
    position:fixed!important; inset:0 auto 0 0; width:min(310px,88vw)!important;
    min-width:0!important; max-width:88vw!important; transform:translateX(-102%); z-index:200!important;
  }
  #app .sidebar.open { transform:translateX(0); }
  #app .sidebar.open :is(.brand-copy,.menu-label,.menu-text,.menu-badge) { display:block!important; }
  #app .sidebar.open .menu-item { justify-content:flex-start!important; }
  #app .sidebar-close, #app .mobile-menu { display:block!important; }
  #app .sidebar-overlay.visible { display:block; position:fixed; inset:0; z-index:150!important; background:rgba(2,8,14,.68); }
  #app .topbar { padding:8px; gap:8px; }
  #app .topbar .company-logo, #app .topbar .avatar, #app .topbar .authenticated-user-copy { display:none!important; }
  #app .topbar .user-menu { margin-left:auto; }
  #app .topbar .theme-mode-button { width:44px; min-width:44px; padding:0!important; }
  #app .topbar .theme-mode-text { display:none!important; }
  #app .topbar .icon-button { margin-left:0!important; }
  #app .topbar .company-switcher { flex:1 1 calc(100% - 56px); }
  #app .topbar .active-accounting-context > span:first-child strong { max-width:60vw; }
  #app .topbar .global-search, #app .topbar .server-pill { display:none; }
  #app .heading-actions { width:100%; }
  #app .heading-actions button { flex:1 1 110px; }
}

/* Let the auxiliary master list use the blank area down to the action bar. */
#app .aux-entry-main { overflow:hidden!important; }
#app .aux-entry-main::after { display:none!important; }
#app .aux-entry-card { flex:1 1 auto!important; min-height:240px!important; margin-bottom:12px!important; }
#app .aux-entry-card .searchable-combo-options { max-height:var(--aux-master-list-height, min(560px, calc(var(--erp-screen-height,100dvh) - 350px)))!important; }
@media (max-width:900px) {
  #app .aux-entry-card { min-height:420px!important; }
}

/* Compact overview values and responsive cash graph. */
.metrics-grid:has([data-dashboard-drilldown]) .metric-card { min-height:108px; padding:12px 16px; }
.metrics-grid:has([data-dashboard-drilldown]) .metric-top { margin-bottom:6px; }
.metrics-grid:has([data-dashboard-drilldown]) .metric-icon { width:28px; height:28px; border-radius:8px; }
.metrics-grid:has([data-dashboard-drilldown]) .metric-card > strong { font-size:25px!important; margin-top:4px; }
.metrics-grid:has([data-dashboard-drilldown]) .metric-card > small { margin-top:4px; }
.cash-flow-panel { min-width:0; padding:14px; }
.cash-flow-panel .chart-summary { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:8px; margin:12px 0 4px; }
.cash-flow-panel .chart-summary > div { min-width:0; padding:6px 8px; border:1px solid var(--line); border-radius:8px; }
.cash-flow-panel .chart-summary span { font-size:10px!important; }
.cash-flow-panel .chart-summary strong { font-size:14px!important; margin-top:3px; overflow-wrap:anywhere; }
.cash-flow-panel .chart-wrap { width:100%; min-width:0; height:260px; overflow:hidden; background:none; }
.cash-flow-panel .chart-wrap svg { display:block; width:100%; max-width:100%; min-width:0; height:260px; }
.cash-flow-panel > small { display:block; margin-top:4px; font-size:11px; }
@media(max-width:600px) {
  .cash-flow-panel .surface-header { gap:8px; }
  .cash-flow-panel .chart-summary > div { padding:5px; }
  .cash-flow-panel .chart-summary strong { font-size:12px!important; }
}

.account-transfer-page { max-width:1300px; }
.account-transfer-page > p { color:var(--muted); }
.account-transfer-layout { display:grid;grid-template-columns:minmax(0,3fr) minmax(210px,1fr);gap:14px;margin:22px 0; }
.account-transfer-layout fieldset { min-width:0;padding:18px;border:1px solid var(--line); }
.account-transfer-layout legend { color:var(--cyan);padding:0 8px; }
.account-transfer-layout label { display:flex;flex-direction:column;gap:7px;font-size:13px;margin-bottom:12px;min-width:0; }
.account-transfer-layout select,.account-transfer-layout input { width:100%;height:42px;min-width:0;border:1px solid var(--line);border-radius:8px;padding:8px;background:var(--panel,#0a1929);color:var(--text); }
.account-transfer-layout input[readonly] { color:var(--cyan); }
.account-transfer-row { display:grid;grid-template-columns:minmax(150px,1.2fr) minmax(120px,1fr) 110px;gap:12px; }
.account-transfer-row label > span { color:var(--danger);display:none; }
.account-transfer-actions { display:flex;justify-content:space-between;gap:12px;margin-top:24px; }
.account-transfer-actions button { min-width:140px; }
.account-transfer-preview { padding:18px;border:1px solid var(--cyan);border-radius:12px; }
.account-transfer-preview button { margin-inline-end:10px; }
@media(max-width:800px){.account-transfer-layout{grid-template-columns:1fr}.account-transfer-row{grid-template-columns:1fr}.account-transfer-actions{flex-wrap:wrap}.account-transfer-actions button{flex:1}}

/* The list owns scrolling; its enclosing sidebar must not scroll again. */
#app .aux-entry-shell .aux-entry-history { overflow:hidden!important; min-width:0!important; }
#app .aux-entry-shell .aux-entry-history-list { overflow:auto!important; min-width:0!important; }

.account-transfer-row { grid-template-columns:minmax(150px,1.2fr) minmax(120px,1fr) 110px minmax(130px,.65fr); align-items:end; }
.transfer-statement-button { margin-bottom:12px; min-height:42px; padding:8px;font-size:12px; }
@media(max-width:1050px){.account-transfer-row{grid-template-columns:minmax(140px,1fr) minmax(100px,1fr) 95px}.transfer-statement-button{grid-column:3}}
@media(max-width:800px){.account-transfer-row{grid-template-columns:1fr}.transfer-statement-button{grid-column:auto}}

.account-transfer-layout { grid-template-columns:minmax(0,3.8fr) minmax(210px,1fr); }
.account-transfer-row { grid-template-columns:minmax(140px,1.2fr) minmax(110px,1fr) minmax(250px,1fr); }
.transfer-currency-statement { display:flex; align-items:flex-end; gap:8px;min-width:0; }
.transfer-currency-statement > label { flex:0 0 90px; }
.transfer-currency-statement .transfer-statement-button { display:block!important; visibility:visible!important; flex:1; min-width:145px; min-height:42px; color:var(--cyan);border-color:var(--cyan);margin-bottom:12px;white-space:normal; }
.transfer-currency-statement .transfer-statement-button:disabled { opacity:.55; }
@media(max-width:1100px){.account-transfer-layout{grid-template-columns:1fr}.account-transfer-row{grid-template-columns:minmax(140px,1fr) minmax(110px,1fr) minmax(250px,1fr)}}
@media(max-width:800px){.account-transfer-row{grid-template-columns:1fr}.transfer-currency-statement{width:100%}}

/* Align the currency selector and statement action as one field-height row. */
#app .account-transfer-row { align-items:end; column-gap:14px; }
#app .transfer-currency-statement { display:grid; grid-template-columns:95px minmax(170px,1fr); column-gap:14px!important; align-items:end; }
#app .transfer-currency-statement > label { min-width:0; margin:0 0 12px; }
#app .transfer-currency-statement > label select { box-sizing:border-box; height:42px!important; }
#app .transfer-currency-statement .transfer-statement-button { box-sizing:border-box; height:42px!important; min-height:42px!important; min-width:0; padding:0 10px!important; margin:0 0 12px!important; font-size:12px!important; line-height:1.2; white-space:nowrap; }
#app .account-transfer-row { grid-template-columns:minmax(160px,1.2fr) minmax(120px,1fr) minmax(279px,1fr); }
@media(max-width:1100px){#app .account-transfer-layout{grid-template-columns:1fr}#app .account-transfer-row{grid-template-columns:minmax(160px,1fr) minmax(120px,1fr) minmax(279px,1fr)}}
@media(max-width:800px){#app .account-transfer-row{grid-template-columns:1fr}#app .transfer-currency-statement{grid-template-columns:95px minmax(170px,1fr)}}
@media(max-width:380px){#app .transfer-currency-statement{grid-template-columns:80px minmax(0,1fr);column-gap:10px!important}#app .transfer-currency-statement .transfer-statement-button{white-space:normal;font-size:11px!important}}

.general-ledger-statements .ledger-statement-filters { display:flex!important;flex-wrap:wrap;gap:14px;padding:18px;align-items:end; }
.ledger-statement-filters > label { min-width:160px;flex:1 1 180px; }
.ledger-statement-filters select[multiple] { min-height:70px!important;max-height:110px; }
.ledger-display-columns { display:flex;flex-wrap:wrap;gap:10px;align-items:center; }
.ledger-display-columns label { display:flex;gap:6px;align-items:center; }
.ledger-display-columns input { width:16px!important;height:16px!important; }
.ledger-account-statement { margin:16px 0;padding:16px; }
.ledger-account-statement h2 { margin:0 0 12px; }
.ledger-account-statement .number { text-align:end;white-space:nowrap; }
.ledger-opening-row { font-weight:700; }
#general-ledger-print { display:none; }
@media print {
  body:has(#general-ledger-print) > :not(#general-ledger-print) { display:none!important; }
  body:has(#general-ledger-print) { background:white!important;color:black!important;overflow:visible!important;height:auto!important; }
  #general-ledger-print { display:block!important;color:black!important;font-size:9pt; }
  #general-ledger-print .ledger-account-statement { background:white!important;box-shadow:none!important;color:black!important;border:0!important;padding:0;margin:14px 0; }
  #general-ledger-print .construction-table-scroll { overflow:visible!important;max-height:none!important;height:auto!important; }
  #general-ledger-print table { width:100%!important;min-width:0!important;border-collapse:collapse;color:black!important; }
  #general-ledger-print th,#general-ledger-print td { color:black!important;background:white!important;border:1px solid #aaa!important;padding:5px!important;font-size:9pt!important;white-space:normal!important; }
  #general-ledger-print thead { display:table-header-group; }
  #general-ledger-print tr { break-inside:avoid; }
  #general-ledger-print.ledger-print-separated .ledger-account-statement + .ledger-account-statement { break-before:page;page-break-before:always; }
}

.general-ledger-statements .ledger-results{max-height:calc(100vh - 390px);min-height:200px;overflow:auto}.ledger-type-picker{position:relative;border:1px solid var(--border);border-radius:8px;padding:10px}.ledger-type-picker>div{position:absolute;top:100%;inset-inline-start:0;min-width:220px;max-height:250px;overflow:auto;background:#0c1d2d;border:1px solid #345;z-index:30;padding:12px}.ledger-type-picker>div label{display:flex;gap:8px;padding:6px}.ledger-type-picker input{width:auto}.general-ledger-statements .heading-actions{display:flex;gap:8px;align-items:center;flex-wrap:wrap}.general-ledger-statements .heading-actions button{min-height:32px;padding:6px 12px;font-size:13px}

@media print {body:has(#general-ledger-print) #general-ledger-print,body:has(#general-ledger-print) #general-ledger-print * {visibility:visible!important} body:has(#general-ledger-print) #general-ledger-print {display:block!important;position:static!important;overflow:visible!important;height:auto!important;width:100%!important} }
.general-ledger-statements .ledger-statement-filters{display:grid!important;grid-template-columns:2fr 1fr 1fr 2fr 1fr 1fr;gap:12px}.general-ledger-statements .ledger-statement-filters>label{min-width:0}.general-ledger-statements .ledger-type-picker>div{background:var(--panel);color:var(--text)}.general-ledger-statements .ledger-type-picker .statement-operation-item[hidden]{display:none!important}.general-ledger-statements .heading-actions .secondary-button:hover{background:var(--panel-2);border-color:var(--cyan);color:var(--cyan)}.general-ledger-statements .heading-actions .accounting-report-exit-button:hover{background:rgba(255,72,104,.12)!important;border-color:#ff4868!important;color:#ff4868!important}@media(max-width:900px){.general-ledger-statements .ledger-statement-filters{grid-template-columns:2fr 1fr 1fr}}

.ledger-picker-toolbar{position:sticky;top:-12px;z-index:2;background:var(--panel);padding:8px 0;display:flex;flex-direction:column;gap:8px}.ledger-select-all{display:flex;align-items:center;gap:8px;white-space:nowrap}.ledger-select-all input{width:auto!important;min-height:0!important}.general-ledger-statements .ledger-display-columns{grid-column:span 3;flex-wrap:nowrap;gap:12px;align-items:center}.general-ledger-statements .ledger-display-columns label{display:inline-flex;align-items:center;gap:6px;white-space:nowrap}.general-ledger-statements .ledger-display-columns input{width:auto;min-width:0;min-height:0}.general-ledger-statements .ledger-account-statement tr:focus{outline:2px solid var(--cyan);outline-offset:-2px}@media(max-width:600px){.general-ledger-statements .ledger-display-columns{grid-column:1/-1;overflow:auto}}

@media(min-width:901px){#app .voucher-entry-shell:not(.history-hidden){grid-template-columns:minmax(240px,min(var(--voucher-history-width,300px),30%)) minmax(0,1fr)!important}#app .voucher-entry-shell:not(.history-hidden) .voucher-history-shell-toggle{left:calc(min(var(--voucher-history-width,300px),30%) - 15px)!important}}

/* Neutral text fields and data cells only; retain labels and semantic colors. */
@media screen {
 :root[data-theme="dark"] {--accounting-readable-foreground:#fff;}
 :root[data-theme="light"] {--accounting-readable-foreground:#000;}
 html:root[data-theme] body #app :is(.statement-page,.trial-balance-page,.voucher-entry-shell,.page-content:has([data-accounting-voucher-action])) :is(input:not([type="checkbox"]):not([type="radio"]):not([type="button"]):not([type="submit"]),textarea,select,td,.voucher-history-cell):not(.positive):not(.negative):not(.sales-positive):not(.sales-negative):not(.error):not(.success):not([style*="color"]):not(:is(.positive,.negative,.sales-positive,.sales-negative,.error,.success) *) {
  color:var(--accounting-readable-foreground)!important;
 }
 html:root[data-theme] body #app :is(.statement-page,.trial-balance-page,.voucher-entry-shell,.page-content:has([data-accounting-voucher-action])) :is(input,textarea,select):not(.positive):not(.negative):not(.sales-positive):not(.sales-negative):not([style*="color"]):not(:is(.positive,.negative,.sales-positive,.sales-negative) *) {
  -webkit-text-fill-color:var(--accounting-readable-foreground)!important;
 }
}

/* Compact ERP display while browser zoom remains at 100%. */
@media screen {
 html {zoom:.9;--erp-screen-height:calc(100dvh / .9);}
 html body {zoom:1;min-height:var(--erp-screen-height);}
 .login-page,.login-shell,.auth-page {min-height:var(--erp-screen-height)!important;}
}
@media print {html,body {zoom:1!important;}}

/* General Ledger: isolated option/action row prevents checkbox overlap. */
#app .general-ledger-statements .ledger-statement-filters{grid-template-columns:repeat(auto-fit,minmax(150px,1fr))!important;gap:14px!important;align-items:end!important}
#app .general-ledger-statements .ledger-statement-filters>.ledger-options-row{grid-column:1/-1!important;display:flex!important;align-items:center!important;flex-wrap:wrap!important;gap:16px 24px!important;min-width:0!important}
#app .general-ledger-statements .ledger-options-row>.ledger-display-columns{display:flex!important;position:static!important;align-items:center!important;flex-wrap:wrap!important;gap:10px 14px!important;min-width:0!important;width:auto!important;grid-column:auto!important;margin:0!important}
#app .general-ledger-statements .ledger-options-row label{display:inline-flex!important;align-items:center!important;gap:6px!important;white-space:nowrap!important;position:static!important;margin:0!important}
#app .general-ledger-statements .ledger-generate-actions{display:flex!important;align-items:center!important;gap:10px!important;position:static!important;margin-inline-start:auto!important}
#app .general-ledger-statements .ledger-generate-actions button{position:static!important;inset:auto!important;transform:none!important;min-width:120px!important;margin:0!important}
/* Transfer buttons reuse the Trial Balance / voucher action hover theme. */
.account-transfer-page :is(.account-transfer-actions button,.transfer-statement-button){transition:transform .14s ease,box-shadow .14s ease,border-color .14s ease,background .14s ease,color .14s ease,filter .14s ease}
.account-transfer-page :is(.account-transfer-actions button,.transfer-statement-button):not(:disabled):hover{transform:translateY(-2px)!important;border-color:rgba(98,228,231,.55)!important;background:linear-gradient(135deg,rgba(98,228,231,.18),rgba(140,124,255,.14))!important;color:var(--text)!important;box-shadow:0 12px 28px rgba(0,0,0,.26),0 0 0 1px rgba(98,228,231,.16) inset!important;filter:brightness(1.08)!important}
.account-transfer-page :is(.account-transfer-actions button,.transfer-statement-button):not(:disabled):active{transform:translateY(0) scale(.98)!important;box-shadow:0 6px 16px rgba(0,0,0,.20)!important}
.account-transfer-page [data-transfer-action="exit"]:not(:disabled):hover{border-color:rgba(255,127,145,.55)!important;background:rgba(255,127,145,.13)!important;color:var(--danger)!important}
@media(prefers-reduced-motion:reduce){.account-transfer-page :is(.account-transfer-actions button,.transfer-statement-button){transition:none}}

.template-report-criteria{display:flex;align-items:end;flex-wrap:wrap;gap:16px;padding:16px}.template-report-criteria label{display:flex;flex-direction:column;gap:8px;min-width:150px}.template-report-output{padding:16px;margin-top:16px}.template-report-table-scroll{overflow:auto;max-height:calc(var(--erp-screen-height,100vh) - 320px)}.template-report-table{min-width:1100px;width:100%}.template-report-table th{position:sticky;top:0;background:var(--panel);z-index:2}.template-report-table td:nth-child(2){min-width:250px}.template-report-table .number{text-align:end;white-space:nowrap}.template-row-section td{font-weight:800;background:var(--panel-2)}.template-row-total td{font-weight:800;border-top:2px solid var(--cyan)}.template-row-detail td:nth-child(2){padding-inline-start:24px}.template-row-check td{font-weight:700}.template-report-note{margin-top:12px}#template-financial-print{display:none}
@media print{body:has(#template-financial-print)>:not(#template-financial-print){display:none!important}#template-financial-print,#template-financial-print *{visibility:visible!important}#template-financial-print{display:block!important;background:white!important;color:black!important;width:100%!important;position:static!important}#template-financial-print .template-report-table-scroll{overflow:visible!important;max-height:none!important}#template-financial-print table{min-width:0!important;width:100%!important;border-collapse:collapse}#template-financial-print th,#template-financial-print td{position:static!important;background:white!important;color:black!important;font-size:7pt!important;padding:4px!important;border:1px solid #aaa!important;min-width:0!important}#template-financial-print thead{display:table-header-group}#template-financial-print tr{break-inside:avoid}}

#app .trial-balance-mode{flex:0 0 auto!important;min-width:190px!important}.trial-balance-mode select{min-width:185px;min-height:28px;height:28px;padding:0 8px}

#app .coa-entry-fields{grid-template-columns:minmax(0,1fr)!important;align-content:start!important}#app .coa-entry-fields>label:first-child{max-width:260px}#app .aux-entry-fields{grid-template-columns:repeat(2,minmax(0,1fr))!important;align-content:start!important}#app .aux-entry-fields>label:last-child{grid-column:1/-1!important}.coa-entry-history-row>span,.aux-entry-history-row>span:last-child{font-size:14px!important}.currency-rate-history{padding:16px;border-top:1px solid var(--border);overflow:auto;min-height:180px}.currency-rate-edit{display:flex;gap:12px;flex-wrap:wrap;align-items:end;margin-bottom:14px}.currency-rate-edit label{display:flex;flex-direction:column;gap:6px}.currency-rate-history tbody tr{cursor:pointer}.currency-entry-shell .dimension-entry-main{overflow:auto!important}.currency-entry-shell .dimension-entry-card{flex:none!important}
@media print{body:has(.coa-print-area)>:not(.coa-print-area){display:none!important}.coa-print-area,.coa-print-area *{visibility:visible!important}.coa-print-area{display:block!important;position:static!important;background:white!important;color:black!important;width:100%!important}.coa-print-area table{width:100%!important;border-collapse:collapse}.coa-print-area th,.coa-print-area td{color:black!important;background:white!important;border:1px solid #aaa!important;padding:5px!important}.coa-print-area thead{display:table-header-group}}

/* One scroll owner for the account lists. */
html body #app :is(.coa-entry-history,.aux-entry-history){overflow:hidden!important;min-width:0!important}
html body #app :is(.coa-entry-history-list,.aux-entry-history-list){overflow:auto!important;min-width:0!important}
html body #app :is(.coa-entry-history-columns,.coa-entry-history-filters,.aux-entry-history-columns,.aux-entry-history-filters){transform:translateX(calc(-1 * var(--history-scroll-x,0px)))}
/* Company details are stacked; hidden controls retain their saved values. */
#app .company-entry-fields{grid-template-columns:minmax(0,1fr)!important;gap:14px!important;max-width:760px}
#app .company-entry-fields>label[hidden]{display:none!important}
#app .company-entry-fields>label>span{font-size:14px!important;font-weight:500!important}
#app .dimension-entry-companies .dimension-entry-history-row>strong,#app .dimension-entry-companies .dimension-entry-history-columns>span:first-child{display:none!important}
#app .dimension-entry-companies :is(.dimension-entry-history-row>span,.dimension-entry-history-columns>span:last-child){grid-column:1/-1!important;font-size:15px!important}
/* Only Cost Center remains in the voucher and accounting navigation. */
#app .voucher-entry-shell [data-voucher-dimension-column]:not([data-voucher-dimension-column="costCenterId"]):not([data-voucher-dimension-column="debitCredit"]){display:none!important}
#app .voucher-entry-shell [data-voucher-dimension-column="costCenterId"]{display:table-cell!important}
#app :is([data-path="/accounting/sub-cost-centers"],[data-path="/accounting/phases"],[data-path="/accounting/job-types"],[data-path="/accounting/sub-job-types"],[data-path="/accounting/cash-types"],[href="/accounting/sub-cost-centers"],[href="/accounting/phases"],[href="/accounting/job-types"],[href="/accounting/sub-job-types"],[href="/accounting/cash-types"]){display:none!important}
/* Regular weight for editable text, without recoloring labels or data cells. */
html body #app :is(input:not([type="checkbox"]):not([type="radio"]):not([type="button"]):not([type="submit"]),textarea,.searchable-combo-input){font-weight:400!important;font-family:inherit!important}
html:root[data-theme="dark"] body #app :is(input:not([type="checkbox"]):not([type="radio"]):not([type="button"]):not([type="submit"]),textarea,.searchable-combo-input){color:#fff!important;-webkit-text-fill-color:#fff!important}
html:root[data-theme="light"] body #app :is(input:not([type="checkbox"]):not([type="radio"]):not([type="button"]):not([type="submit"]),textarea,.searchable-combo-input){color:#000!important;-webkit-text-fill-color:#000!important}
html body #app .currency-rate-edit input{background:var(--panel)!important;border:1px solid var(--border)!important;border-radius:8px!important;min-height:38px;padding:8px 10px;color:var(--text)!important;color-scheme:dark}
:root[data-theme="light"] #app .currency-rate-edit input{color-scheme:light}

:root[data-theme="dark"]{--regular-input-foreground:#fff}:root[data-theme="light"]{--regular-input-foreground:#000}
/* Shared master-data presentation, October 14. */
html body #app input:not([type="checkbox"]):not([type="radio"]),html body #app textarea{color:var(--regular-input-foreground)!important;-webkit-text-fill-color:var(--regular-input-foreground)!important;opacity:1!important}
html body #app button:not(.dimension-entry-history-row):not(.coa-entry-history-row):not(.aux-entry-history-row):not(.voucher-history-row){font-size:13px!important}
html body #app :is(.coa-bottom-button,.aux-bottom-button,.dimension-entry-bottom-button,.voucher-bottom-button) span{font-size:20px!important}
/* Shared button hover/focus colors are paired in control-states.css. */
#app :is(.coa-entry-history-row>span,.aux-entry-history-row>span:last-child){font-size:15px!important}
#app :is(.dimension-entry-history,.coa-entry-history,.aux-entry-history){position:relative;overflow:hidden!important;min-width:0!important}
#app .dimension-entry-history-list{overflow:auto!important;min-width:0!important}
#app :is(.dimension-entry-companies,.dimension-entry-costCenters) :is(.dimension-entry-history-row,.dimension-entry-history-columns){grid-template-columns:minmax(0,1fr)!important;min-width:0!important;width:100%!important}
#app :is(.dimension-entry-companies,.dimension-entry-costCenters) :is(.dimension-entry-history-row>strong,.dimension-entry-history-columns>span:first-child){display:block!important;grid-column:1/-1!important;font-size:15px!important;white-space:normal!important}
#app :is(.dimension-entry-companies,.dimension-entry-costCenters) :is(.dimension-entry-history-row>span,.dimension-entry-history-columns>span:last-child){display:none!important}
#app :is(.company-entry-fields,.dimension-entry-costCenters .dimension-entry-fields,.transaction-type-entry-shell .dimension-entry-fields){grid-template-columns:minmax(0,1fr)!important}
#app :is(.company-entry-fields,.dimension-entry-costCenters .dimension-entry-fields,.transaction-type-entry-shell .dimension-entry-fields)>label{grid-column:1/-1!important;max-width:none!important}
#app :is(.company-entry-fields,.dimension-entry-costCenters .dimension-entry-fields)>label[hidden]{display:none!important}
#app .currency-rate-history{margin:14px;border:1px solid var(--border);border-radius:16px;background:var(--panel);padding:18px;flex:1 0 auto!important}
#app .master-list-splitter{position:absolute;right:0;top:0;bottom:0;width:7px;cursor:col-resize;z-index:20;touch-action:none;background:transparent}
#app .master-list-splitter:hover,#app .master-list-splitter:focus{background:var(--cyan,#62e4e7);outline:none}
@media(max-width:800px){#app .master-list-splitter{display:none}}
#app :is(.coa-action-button,.aux-action-button,.dimension-action-button,.voucher-action-button){font-size:13px!important;min-height:54px;border-radius:10px}
#app :is(.coa-action-button,.aux-action-button,.dimension-action-button,.voucher-action-button)>span{font-size:20px!important}
#app :is(.dimension-entry-companies,.dimension-entry-costCenters) .left-list-column-resizer{display:none!important}
#app :is(.dimension-entry-companies,.dimension-entry-costCenters) .dimension-entry-history-filters{width:100%!important;min-width:0!important;grid-template-columns:minmax(0,1fr) auto!important}
#app .transaction-type-entry-shell .dimension-entry-fields.two{grid-template-columns:minmax(0,1fr)!important}
#app .transaction-type-entry-shell .dimension-entry-fields.two>label{grid-column:1/-1!important}
#app .voucher-history-date-cell{font-size:14px!important}
#app :is(.coa-entry-bottom-bar,.aux-entry-bottom-bar,.dimension-entry-bottom-bar,.voucher-entry-bottom-bar) button :is(small,b){font-size:12px!important}
/* One heading above blank column filters in every master-data list. */
#app :is(.coa-entry-history-columns,.aux-entry-history-columns)[hidden]{display:none!important}
#app .dimension-entry-history-filters>[hidden]{display:none!important}
#app .dimension-entry-history-filters:has(.left-grid-column-filters){display:block!important;padding:8px!important}
#app .left-grid-column-filters{display:grid;grid-template-columns:100px minmax(0,1fr);gap:8px;min-width:0}
#app .left-grid-column-filters input{min-width:0!important;width:100%!important;box-sizing:border-box;height:38px;border:1px solid var(--border);border-radius:8px;background:var(--panel);padding:8px}
#app :is(.dimension-entry-companies,.dimension-entry-costCenters) .left-grid-column-filters{grid-template-columns:minmax(0,1fr)}
#app .dimension-entry-history-row[hidden]{display:none!important}
#app .dimension-entry-history-columns{order:initial!important}
/* Consistent left-list headings; keep currency actions outside the rates scroll. */
html body #app :is(.coa-entry-history-columns,.aux-entry-history-columns,.dimension-entry-history-columns,.voucher-history-columns) :is(span,strong){color:var(--cyan,#62e4e7)!important}
html body #app .currency-entry-shell .dimension-entry-main{overflow:hidden!important;min-height:0!important;display:flex!important;flex-direction:column!important}
html body #app .currency-entry-shell .dimension-entry-card:not(.currency-rate-history){min-height:0!important;flex:0 0 auto!important;padding:14px!important;margin-bottom:0!important}
html body #app .currency-entry-shell .currency-rate-history{flex:1 1 0!important;min-height:140px!important;overflow:auto!important;margin:12px!important;padding:14px!important}
html body #app .currency-entry-shell .dimension-entry-actions{flex:0 0 auto!important;position:relative!important;bottom:auto!important;margin-top:auto!important}
html body #app :is(.dimension-entry-companies,.dimension-entry-costCenters) .dimension-entry-history-columns~.dimension-entry-history-columns{display:none!important}
html body #app :is(.dimension-entry-companies,.dimension-entry-costCenters) .dimension-entry-history-columns{display:none!important}
html body #app .dimension-entry-companies .dimension-entry-history-filters::before{content:'NAME';display:block;color:var(--cyan,#62e4e7);font-size:11px;font-weight:700;margin-bottom:8px}
html body #app .dimension-entry-costCenters .dimension-entry-history-filters::before{content:'DESCRIPTION';display:block;color:var(--cyan,#62e4e7);font-size:11px;font-weight:700;margin-bottom:8px}
/* Use the full left-pane width for account and currency names. */
html body #app .currency-entry-shell :is(.dimension-entry-history-columns,.dimension-entry-history-row){grid-template-columns:100px minmax(0,1fr)!important;width:100%!important;min-width:0!important;box-sizing:border-box}
html body #app .currency-entry-shell :is(.dimension-entry-history-columns,.dimension-entry-history-row)>:is(span,strong){width:auto!important;min-width:0!important;max-width:none!important;overflow:visible!important;white-space:normal!important;text-overflow:clip!important;overflow-wrap:anywhere}
html body #app .currency-entry-shell .dimension-entry-history-filters{width:100%!important;min-width:0!important;box-sizing:border-box}
html body #app .currency-entry-shell .left-grid-column-filters{grid-template-columns:100px minmax(0,1fr)!important}
html body #app :is(.coa-entry-history-row,.coa-entry-history-filter-labels,.coa-entry-history-filters.split){grid-template-columns:90px minmax(0,1fr)!important;width:100%!important;min-width:0!important;box-sizing:border-box}
html body #app :is(.aux-entry-history-row,.aux-entry-filter-labels,.aux-entry-history-filters){grid-template-columns:90px 60px minmax(0,1fr)!important;width:100%!important;min-width:0!important;box-sizing:border-box}
html body #app :is(.coa-entry-history-row>span,.aux-entry-history-row>span:last-child){width:auto!important;max-width:none!important;white-space:normal!important;overflow:visible!important;text-overflow:clip!important;overflow-wrap:anywhere}
/* Larger report options and themed native date/select controls. */
html body #app .trial-inline-options label{font-size:12px!important;display:inline-flex!important;align-items:center!important;gap:5px!important;white-space:nowrap}
html body #app .trial-inline-options input[type="checkbox"]{width:15px!important;height:15px!important;min-width:15px!important;accent-color:var(--cyan,#62e4e7)}
html body #app .trial-without-zero-option{margin-inline-start:20px!important;margin-inline-end:10px!important}
html body #app :is(input[type="date"],input[type="datetime-local"],#trial-balance-mode){color:var(--regular-input-foreground)!important;background:var(--panel)!important;border:1px solid var(--border)!important;border-radius:8px!important;padding:6px 10px!important;color-scheme:dark;font:inherit!important}
html[data-theme="light"] body #app :is(input[type="date"],input[type="datetime-local"],#trial-balance-mode){color-scheme:light}
html body #app #trial-balance-mode{min-height:32px;height:auto!important;width:100%;outline:none}
html body #app #trial-balance-mode:focus{border-color:var(--cyan,#62e4e7)!important;box-shadow:0 0 0 2px rgba(98,228,231,.15)}
html body #app .statement-modern-company{display:none!important}
html body #app .statement-operation-picker summary:empty{min-height:22px}
html body #app .statement-select-all{display:flex;align-items:center;gap:7px;padding:8px;border-bottom:1px solid var(--border)}
/* Statement multi-select controls align with the account/date controls. */
html body #app :is(.statement-modern-group,.statement-modern-operations) .statement-operation-picker>summary{min-height:40px!important;height:40px!important;box-sizing:border-box!important;display:flex!important;align-items:center!important;padding:8px 12px!important;font-size:13px!important}
html body #app :is(.statement-modern-group,.statement-modern-operations) .statement-operation-picker{min-height:40px!important}
.accounting-migration-dialog{width:min(620px,90vw);background:var(--panel,#0e2030);color:var(--text,#fff);border:1px solid var(--border,#284252);border-radius:16px;padding:24px}.accounting-migration-dialog::backdrop{background:rgba(0,0,0,.65)}.migration-selections{display:grid;gap:14px;margin:20px 0}.migration-selections label{display:flex;gap:10px;align-items:center}.migration-selections input{width:17px;height:17px;accent-color:var(--cyan,#62e4e7)}.migration-password{display:flex;flex-direction:column;gap:8px}.migration-password input{padding:10px;border-radius:8px;background:var(--panel-2);color:var(--text);border:1px solid var(--border)}.migration-actions{display:flex;gap:12px;margin-top:20px;flex-wrap:wrap}
.accounting-migration-dialog [data-migration-result]:not(:empty){margin:18px 0;padding:18px;border-radius:12px;border:1px solid var(--border,#35526a);background:var(--panel-2,#132a3a);line-height:1.6;white-space:normal}.accounting-migration-dialog [data-migration-result] strong{display:block;font-size:17px}.accounting-migration-dialog [data-migration-result][data-kind="success"]{border-color:#39b980;background:rgba(57,185,128,.13)}.accounting-migration-dialog [data-migration-result][data-kind="error"]{border-color:#ef6b7d;background:rgba(239,107,125,.13)}.accounting-migration-dialog [data-migration-result][data-kind="progress"]{border-color:var(--cyan,#62e4e7)}.accounting-migration-dialog [data-migration-result][data-kind="confirm"]{border-color:#efa94a;background:rgba(239,169,74,.12)}.migration-confirm-actions{display:flex;gap:12px;margin-top:14px}.accounting-migration-dialog{max-height:88vh;overflow:auto}
.security-admin-page{display:grid;grid-template-columns:minmax(280px,30%) minmax(0,1fr);height:calc(var(--erp-screen-height,100vh) - 110px);min-height:550px;border:1px solid var(--border);border-radius:14px;overflow:hidden;background:var(--panel)}.security-history{display:flex;flex-direction:column;min-width:0;overflow:hidden;border-inline-end:1px solid var(--border);background:var(--panel-2)}.security-history header{padding:18px}.security-history h2{margin:0 0 7px}.security-history>input{margin:8px 14px;padding:9px;border:1px solid var(--border);border-radius:8px;background:var(--panel);color:var(--text)}.security-history-columns,.security-history-row{display:grid;grid-template-columns:35% minmax(0,1fr);gap:10px;padding:12px 16px}.security-history-columns{color:var(--cyan);font-size:11px;font-weight:700}.security-history-list{flex:1;overflow:auto;min-height:0}.security-history-row{width:100%;text-align:start;border:0;border-bottom:1px solid var(--border);background:transparent;color:var(--text);min-height:50px}.security-history-row span{white-space:normal;overflow-wrap:anywhere}.security-history-row.active{background:rgba(98,228,231,.13);border-inline-start:3px solid var(--cyan)}.security-history footer{padding:12px;font-size:12px}.security-main{min-width:0;min-height:0;display:flex;flex-direction:column;gap:14px;padding:18px;overflow:hidden}.security-main-header h1{margin:5px 0;font-size:24px}.security-form-card{padding:18px;flex:0 0 auto}.security-form-card h2,.security-permission-card h2{font-size:17px;margin:0 0 14px}.security-fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}.security-fields label{display:flex;flex-direction:column;gap:7px;font-size:13px}.security-fields input,.security-fields select,.security-permission-heading input{min-height:40px;box-sizing:border-box;border:1px solid var(--border);border-radius:8px;padding:9px;background:var(--panel-2);color:var(--text);width:100%;font-weight:400}.security-permission-card{flex:1;min-height:0;display:flex;flex-direction:column;padding:16px;overflow:hidden}.security-permission-heading{display:flex;align-items:center;justify-content:space-between;gap:15px;margin-bottom:10px}.security-permission-heading input{max-width:240px}.security-permission-tree{overflow:auto;min-height:0}.security-permission-group{border:1px solid var(--border);border-radius:8px;margin-bottom:10px}.security-permission-group>summary{padding:12px;font-weight:600;background:var(--panel-2);cursor:pointer}.security-permission-row{padding:12px;display:grid;grid-template-columns:minmax(180px,1fr) minmax(280px,1fr);gap:12px;border-top:1px solid var(--border)}.security-page-permission,.security-operation-permissions label,.security-legacy-permission{display:flex;align-items:center;gap:8px;font-size:13px}.security-operation-permissions{display:flex;align-items:center;gap:16px;flex-wrap:wrap}.security-permission-tree input[type=checkbox]{height:16px;width:16px;accent-color:var(--cyan);flex-shrink:0}.security-legacy-permission{padding:10px 14px}.security-actions{display:flex;gap:8px;flex:0 0 auto;margin-top:auto}.security-actions button{flex:1;min-height:58px}.security-notice{border:1px solid var(--border);padding:12px;border-radius:10px}.security-notice.error{border-color:#ef6b7d;background:rgba(239,107,125,.12)}.security-notice.success{border-color:#39b980;background:rgba(57,185,128,.12)}.security-notice.confirm{border-color:#e9b061;background:rgba(233,176,97,.12)}.security-password-help{font-size:13px}.security-user-page .security-form-card{overflow:auto;min-height:0;flex:1}.security-denied{padding:24px}@media(max-width:1000px){.security-permission-row{grid-template-columns:1fr}.security-fields{grid-template-columns:1fr}.security-admin-page{grid-template-columns:240px minmax(0,1fr)}}@media print{body:has(.security-admin-page) .sidebar,body:has(.security-admin-page) .topbar,body:has(.security-admin-page) .security-actions,body:has(.security-admin-page) .security-notice,body:has(.security-admin-page) input[type=password]{display:none!important}.security-admin-page,.security-main,.security-history-list,.security-permission-card,.security-permission-tree{height:auto!important;overflow:visible!important;display:block!important}.security-admin-page,.security-admin-page *{background:white!important;color:black!important}.security-permission-group{break-inside:avoid}.security-permission-group>summary{display:block!important}}
.security-admin-page{--border:var(--line);--panel-2:var(--bg-soft)}
.security-permission-group>summary label{display:inline-flex;align-items:center;gap:8px}.security-permission-group>summary input{accent-color:var(--cyan)}

/* Migration workspace: large centered window, readable selections and themed actions. */
.accounting-migration-dialog{box-sizing:border-box;width:96vw;height:94dvh;max-width:96vw;max-height:94dvh;margin:auto;padding:clamp(20px,3vw,36px);border-radius:20px;box-shadow:0 25px 90px #0008;overflow:auto}
.accounting-migration-dialog[open]{display:flex;flex-direction:column;gap:12px}
.accounting-migration-dialog>h2{font-size:30px;margin:0}.accounting-migration-dialog>p{margin:0;line-height:1.6}
.accounting-migration-dialog .migration-selections{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin:12px 0}
.accounting-migration-dialog .migration-selections label{padding:16px;border:1px solid var(--border,#35526a);border-radius:12px;background:var(--panel-2,#132a3a);font-size:15px;line-height:1.4;min-height:58px;box-sizing:border-box;cursor:pointer;transition:background .15s,border-color .15s}
.accounting-migration-dialog .migration-selections label:hover{border-color:#42d7d5;background:#42d7d51a}.accounting-migration-dialog .migration-selections label:has(input:checked){border-color:#42d7d5;background:#42d7d514}.accounting-migration-dialog .migration-selections input{width:22px;height:22px;flex:0 0 22px;cursor:pointer}
.accounting-migration-dialog .migration-password{font-size:15px}.accounting-migration-dialog .migration-password input{min-height:46px;font:inherit}.accounting-migration-dialog .migration-setup-note{font-size:13px;opacity:.85}
.accounting-migration-dialog .migration-actions{justify-content:center;align-items:center;gap:14px;margin-top:auto;padding:20px 0 0;border-top:1px solid var(--border,#35526a);flex-shrink:0}
.accounting-migration-dialog .migration-actions button,.accounting-migration-dialog .migration-confirm-actions button{min-width:160px;min-height:50px;padding:12px 24px;border-radius:11px;font:inherit;font-size:16px;font-weight:600;cursor:pointer;transition:background .15s,border-color .15s,box-shadow .15s}
.accounting-migration-dialog [data-migration-action="migrate"]{background:#42d7d5;color:#06232a;border:1px solid #42d7d5}.accounting-migration-dialog [data-migration-action="migrate"]:hover:not(:disabled){background:#77f0ed;border-color:#77f0ed;box-shadow:0 5px 18px #42d7d533}
.accounting-migration-dialog [data-migration-action="erase"]{background:#ef657b18;color:#ff9dad;border:1px solid #ef657b88}.accounting-migration-dialog [data-migration-action="erase"]:hover:not(:disabled){background:#d93855;color:#fff;border-color:#f7738a}
.accounting-migration-dialog [data-close-migration]{background:var(--panel-2,#173044);color:var(--text,#fff);border:1px solid var(--border,#456071)}.accounting-migration-dialog [data-close-migration]:hover:not(:disabled){background:#42d7d524;border-color:#42d7d5}
.accounting-migration-dialog .migration-actions button:focus-visible{outline:3px solid #42d7d5;outline-offset:3px}.accounting-migration-dialog .migration-actions button:disabled{opacity:.4;cursor:not-allowed;box-shadow:none}.accounting-migration-dialog .migration-confirm-actions{justify-content:center;flex-wrap:wrap}
html[data-theme="light"] .accounting-migration-dialog .migration-selections label{background:#f3f8fb;color:#000;border-color:#ccdae5}html[data-theme="light"] .accounting-migration-dialog .migration-selections label:hover,html[data-theme="light"] .accounting-migration-dialog .migration-selections label:has(input:checked){background:#e0f6f5;border-color:#0b9a9a}html[data-theme="light"] .accounting-migration-dialog [data-migration-action="erase"]{background:#fff0f3;color:#b7203b;border-color:#e9a1ae}html[data-theme="light"] .accounting-migration-dialog [data-migration-action="erase"]:hover:not(:disabled){background:#c92747;color:#fff}html[data-theme="light"] .accounting-migration-dialog [data-close-migration]{background:#f1f5f9;color:#183447;border-color:#bdcedb}
@media(max-width:720px){.accounting-migration-dialog{width:96vw;padding:18px;max-height:94dvh}.accounting-migration-dialog .migration-selections{grid-template-columns:1fr}.accounting-migration-dialog .migration-actions{gap:10px}.accounting-migration-dialog .migration-actions button{min-width:125px;flex:1;padding:10px 14px}}

.accounting-migration-dialog .migration-select-all{display:flex;align-items:center;gap:12px;padding:12px 16px;border:1px solid var(--border,#35526a);border-radius:10px;background:#42d7d510;font-size:16px;font-weight:600;cursor:pointer;min-height:46px;box-sizing:border-box}.accounting-migration-dialog .migration-select-all input{width:22px;height:22px;accent-color:#42d7d5}.accounting-migration-dialog .migration-select-all:hover{border-color:#42d7d5;background:#42d7d51c}html[data-theme="light"] .accounting-migration-dialog .migration-select-all{background:#edf8f8;color:#000}

/* Wider company selection and dedicated receipt barcode scanner. */
#app .accounting-context-panel.public-context{grid-template-columns:minmax(320px,520px) 180px minmax(230px,280px)!important;}
#app .accounting-context-intro{grid-column:1/-1!important;}
#app .accounting-context-panel.public-context label{min-width:0!important;width:100%!important;}
#app .accounting-context-panel.public-context :is(select,.searchable-combo){width:100%!important;max-width:100%!important;}
#app .accounting-context-period>strong{font-size:14px!important;}
.pos-barcode-scan{padding:10px 18px;border-bottom:1px solid var(--line);flex-shrink:0;}
.pos-barcode-scan label{display:block;font-size:13px;font-weight:700;margin-bottom:5px;}
.pos-barcode-scan>div{display:flex;gap:8px;}
.pos-barcode-scan input{flex:1;min-width:0;min-height:44px;font-size:16px;color:inherit;background:transparent;border:1px solid var(--line);border-radius:8px;padding:8px 12px;}
.pos-barcode-scan input:focus{outline:2px solid #55dce0;outline-offset:1px;}
.pos-barcode-scan button{min-width:64px;min-height:44px;border-radius:8px;background:#235e50;color:white;border:1px solid #55a99a;font-weight:700;}
@media(max-width:900px){#app .accounting-context-panel.public-context{grid-template-columns:minmax(0,1fr) minmax(150px,1fr)!important;}#app .accounting-context-panel.public-context label:first-of-type{grid-column:1/-1!important;}}
@media(max-width:480px){#app .accounting-context-panel.public-context{grid-template-columns:minmax(0,1fr)!important;}}

/* Touch quantity controls and delete-row icon. */
.pos-terminal .pos-quantity-stepper{display:inline-flex;align-items:center;gap:0;border:1px solid var(--line);border-radius:8px;overflow:hidden;}
.pos-terminal .pos-quantity-stepper button{display:grid;place-items:center;min-width:36px;width:36px;height:44px;padding:0;border:0;border-radius:0;background:color-mix(in srgb,currentColor 7%,transparent);color:inherit;font-size:21px;font-weight:700;cursor:pointer;}
.pos-terminal .pos-quantity-stepper input{width:42px!important;min-width:0!important;text-align:center;padding:4px 0!important;border:0!important;border-radius:0!important;background:transparent!important;appearance:textfield;}
.pos-quantity-stepper input::-webkit-inner-spin-button,.pos-quantity-stepper input::-webkit-outer-spin-button{-webkit-appearance:none;margin:0;}
.pos-terminal .pos-quantity-stepper button:hover:not(:disabled){background:#247e70;color:#fff;}
.pos-terminal .pos-quantity-stepper button:disabled{opacity:.35;cursor:default;}
.pos-terminal .pos-remove-line{display:grid;place-items:center;min-width:40px;min-height:44px;padding:8px;color:#df6779;background:transparent;border:0;border-radius:8px;cursor:pointer;}
.pos-terminal .pos-remove-line:hover{background:#9c294033;color:#ee4866;}
.pos-terminal :is(.pos-quantity-stepper button,.pos-remove-line):focus-visible{outline:2px solid #55dce0;outline-offset:-2px;}

.inventory-item-list .inventory-filters,.inventory-item-list .inventory-rows>button{grid-template-columns:minmax(90px,1fr) 70px minmax(120px,1.7fr) 66px;gap:8px;}
.inventory-item-list .inv-row-vat{text-align:right;font-variant-numeric:tabular-nums;white-space:nowrap!important;}
/* Keep collapse controls inside their panels rather than across a clipped divider. */
@media screen {
  #app .sidebar .sidebar-width-toggle{right:1px!important;top:12px!important;width:30px!important;min-width:30px!important;height:30px!important;min-height:30px!important;padding:0!important;display:grid;place-items:center;line-height:1!important;font-size:20px!important;overflow:visible!important;box-sizing:border-box;z-index:650}
  #app .voucher-history-shell-toggle{width:30px!important;min-width:30px!important;height:30px!important;min-height:30px!important;padding:0!important;display:grid!important;place-items:center;line-height:1!important;font-size:20px!important;overflow:visible!important;box-sizing:border-box}
}
@media screen and (min-width:901px){
  #app .voucher-entry-shell:not(.history-hidden) .voucher-history-shell-toggle{left:calc(max(240px,min(var(--voucher-history-width,300px),30%)) - 31px)!important;right:auto!important}
  #app .voucher-entry-shell.history-hidden .voucher-history-shell-toggle{left:6px!important;right:auto!important}
}
/* Statement actions stay together; long transaction selections never overlap labels. */
html body #app .statement-page .statement-heading-actions{display:flex!important;flex-direction:row!important;align-items:center!important;flex-wrap:nowrap!important;gap:8px!important;overflow-x:auto;max-width:100%}
html body #app .statement-page .statement-heading-actions>button{flex:0 0 auto!important;white-space:nowrap!important}
html body #app .statement-page .statement-modern-operations{grid-column:span 2!important;min-width:0!important;width:100%!important}
html body #app .statement-page .statement-modern-operations .statement-operation-picker>summary{height:auto!important;min-height:40px!important;white-space:normal!important;overflow-wrap:anywhere!important;line-height:1.4!important;padding:9px 30px 9px 12px!important;box-sizing:border-box!important}
@media screen and (min-width:1101px){html body #app .statement-page>.statement-modern-filters{display:grid!important;grid-template-columns:repeat(6,minmax(0,1fr))!important;align-items:end!important;gap:12px!important}}
@media screen and (max-width:720px){html body #app .statement-page .statement-modern-operations{grid-column:1 / -1!important}}
/* Visible native calendar affordances, consistent with each theme. */
html body #app input:is([type="date"],[type="datetime-local"],[type="month"],[type="week"]){color-scheme:dark;min-width:0}
html[data-theme="light"] body #app input:is([type="date"],[type="datetime-local"],[type="month"],[type="week"]){color-scheme:light}
html body #app input::-webkit-calendar-picker-indicator{display:block!important;opacity:1!important;visibility:visible!important;cursor:pointer;min-width:16px;min-height:16px}
/* Retain strong caption contrast through hover, focus and pressed states. */
html body #app button:is(.primary-button,.secondary-button):not(:disabled):is(:hover,:focus-visible,:active){background:#8eeaf0!important;color:#06202a!important;border-color:#8eeaf0!important;text-shadow:none!important;opacity:1!important}
html body #app button:is(.primary-button,.secondary-button):not(:disabled):is(:hover,:focus-visible,:active) :is(span,strong,b,svg){color:inherit!important}
/* Match the Number filter/header to the wider, fully readable voucher numbers. */
html body #app .voucher-entry-history .voucher-history-number-cell{white-space:nowrap!important;text-overflow:clip!important}
html body #app .voucher-entry-history #voucher-history-number{width:100%!important;min-width:0!important;box-sizing:border-box!important}
/* Keep Statement generation at the right edge after its criteria. */
@media screen and (min-width:1101px){html body #app .statement-page>.statement-modern-filters>.statement-generate-button{grid-column:6!important;justify-self:stretch!important}}
/* Compact General Ledger criteria and give the result area the remaining height. */
html body #app .general-ledger-statements{display:flex!important;flex-direction:column!important;height:100%!important;min-height:0!important;overflow:hidden!important;gap:10px!important}
html body #app .general-ledger-statements>.page-heading{flex:0 0 auto!important;padding-block:6px!important;margin:0!important}
html body #app .general-ledger-statements .heading-actions{flex-wrap:nowrap!important;gap:8px!important;overflow-x:auto;max-width:100%}
html body #app .general-ledger-statements .heading-actions button{flex:0 0 auto!important;white-space:nowrap!important}
html body #app .general-ledger-statements>.ledger-statement-filters{flex:0 0 auto!important;padding:12px!important;gap:10px!important;margin:0!important}
html body #app .general-ledger-statements .ledger-options-row{gap:10px!important}
html body #app .general-ledger-statements .ledger-type-picker{padding:0!important;min-height:38px!important}
html body #app .general-ledger-statements .ledger-type-picker>summary{min-height:38px!important;padding:9px 24px 9px 10px!important;font-size:12px!important;box-sizing:border-box!important;line-height:1.4!important}
html body #app .general-ledger-statements>.ledger-results{flex:1 1 0!important;min-height:140px!important;max-height:none!important;overflow:auto!important}
@media screen and (max-width:900px){html body #app .general-ledger-statements{overflow:auto!important}.general-ledger-statements .ledger-statement-filters{grid-template-columns:repeat(3,minmax(0,1fr))!important}}
/* POS occupies the entire app viewport; navigation returns when leaving the terminal. */
@media screen {
  html:has(#app .pos-terminal){zoom:1!important}
  html body:has(#app .pos-terminal){margin:0!important;overflow:hidden!important}
  html body #app:has(.pos-terminal) .sidebar,html body #app:has(.pos-terminal) .workspace>.topbar{display:none!important}
  html body #app:has(.pos-terminal) .app-shell{display:grid!important;grid-template-columns:minmax(0,1fr)!important;width:100%!important;height:100dvh!important;min-height:0!important}
  html body #app:has(.pos-terminal) .workspace{height:100dvh!important;min-height:0!important;width:100%!important;margin:0!important;padding:0!important;overflow:hidden!important}
  html body #app .page-content:has(.pos-terminal){height:100%!important;min-height:0!important;padding:0!important;margin:0!important;overflow:hidden!important;scrollbar-gutter:auto!important}
  html body #app .pos-terminal{height:100%!important;min-height:0!important;max-height:none!important;width:100%!important;margin:0!important;border:0!important;border-radius:0!important;box-shadow:none!important;box-sizing:border-box!important}
}
@media screen and (max-width:780px){
  html body #app .page-content:has(.pos-terminal){overflow:auto!important}
  html body #app .pos-terminal{height:auto!important;min-height:100dvh!important;overflow:visible!important}
}
/* Search in Accounting: compact criteria, fixed actions and a Statement-style result grid. */
.accounting-search-page{display:flex;flex-direction:column;height:100%;min-height:0;gap:12px;overflow:hidden}
.accounting-search-page>.page-heading{flex:0 0 auto;margin:0;padding:8px 0}.accounting-search-page .heading-actions{display:flex;gap:8px;flex-wrap:wrap}
.accounting-search-criteria{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:12px;padding:14px;align-items:end;flex:0 0 auto;overflow:visible}
.accounting-search-criteria>label{display:flex;flex-direction:column;gap:6px;min-width:0;font-size:11px;color:var(--muted)}.accounting-search-criteria :is(input,select,.searchable-combo){width:100%;min-width:0;box-sizing:border-box}.accounting-search-criteria input,.accounting-search-criteria select{min-height:38px;padding:7px 9px;background:var(--panel);border:1px solid var(--line);border-radius:7px;color:var(--text)}
.accounting-search-help{grid-column:1/-1;margin:0;font-size:11px;color:var(--muted)}.accounting-search-results{flex:1 1 0;min-height:160px;overflow:auto;border:1px solid var(--line);border-radius:10px}
.accounting-search-table{width:100%;min-width:1050px}.accounting-search-table th{position:sticky;top:0;background:var(--panel);z-index:1}.accounting-search-table td,.accounting-search-table th{padding:9px 10px;border-bottom:1px solid var(--line);font-size:12px}.accounting-search-table .numeric{text-align:right;white-space:nowrap;font-variant-numeric:tabular-nums}.accounting-search-table tfoot th{position:static;background:var(--panel-2);font-weight:700}
.accounting-search-pager{display:flex;justify-content:space-between;align-items:center;gap:10px;flex-shrink:0;font-size:12px}.accounting-search-pager>div{display:flex;gap:8px}
@media(max-width:1100px){.accounting-search-criteria{grid-template-columns:repeat(3,minmax(0,1fr))}.accounting-search-page{overflow:auto}.accounting-search-results{flex:none;min-height:350px;max-height:65vh}}
@media(max-width:600px){.accounting-search-criteria{grid-template-columns:repeat(2,minmax(0,1fr))}.accounting-search-pager{flex-wrap:wrap}}

/* Compact JV date; retain the auxiliary-account action without duplicated context. */
html body #app .voucher-entry-company-field .voucher-company-label,html body #app .voucher-entry-company-field .voucher-context-locked-value,html body #app .voucher-entry-company-field .voucher-context-lock-note{display:none!important}
html body #app .voucher-history-date-cell{font-size:12px!important;white-space:nowrap!important}

/* Financial Reports landing cards: readable at the browser's normal zoom. */
html body #app .financial-report-home-card strong{font-size:20px!important;line-height:1.3!important}
html body #app .financial-report-home-card small{font-size:14px!important;line-height:1.5!important}
html body #app .financial-report-home-card b{font-size:14px!important;white-space:nowrap}
html body #app .financial-report-home-card em{font-size:12px!important;line-height:1.4!important}

/* Journal Voucher total fields: surface styling only; retain all amount colors. */
html body #app .voucher-entry-balance-box .voucher-balance-row{gap:6px 9px!important;align-items:center!important;margin-top:5px!important}
html body #app .voucher-entry-balance-box .voucher-balance-row>strong{display:flex!important;align-items:center!important;justify-content:flex-end!important;min-height:32px!important;padding:5px 11px!important;box-sizing:border-box!important;border:1px solid #365762!important;border-radius:8px!important;background:linear-gradient(180deg,#17323e,#112936)!important;box-shadow:inset 0 1px 0 #ffffff0a,0 1px 3px #00000014!important;font-variant-numeric:tabular-nums;transition:border-color .15s,box-shadow .15s}
html body #app .voucher-entry-balance-box .voucher-balance-row>strong:hover{border-color:#51a7ad!important;box-shadow:inset 0 1px 0 #ffffff0a,0 0 0 2px #51a7ad15!important}
html[data-theme="light"] body #app .voucher-entry-balance-box .voucher-balance-row>strong{background:linear-gradient(180deg,#f8fcfd,#eaf2f5)!important;border-color:#bfd1d9!important;box-shadow:inset 0 1px 0 #ffffff,0 1px 3px #223c4710!important}
html[data-theme="light"] body #app .voucher-entry-balance-box .voucher-balance-row>strong:hover{border-color:#4e9eaa!important}

/* Fully folded navigation: reserve only a slim rail and its accessible restore control. */
@media (min-width:1101px){
  #app .sidebar.compact-sidebar{padding:0!important;overflow:visible!important}
  #app .sidebar.compact-sidebar > :not(.sidebar-width-toggle){display:none!important}
  #app .sidebar.compact-sidebar .sidebar-width-toggle{right:-10px!important;top:12px!important;box-shadow:0 2px 8px #0002}
  #app .sidebar.compact-sidebar .sidebar-width-toggle:focus-visible{outline:2px solid var(--accent,#43cbd0);outline-offset:3px}
}

/* Let dated currency rates own the remaining editor height instead of the generic filler. */
html body #app .currency-entry-shell .dimension-entry-main::after{display:none!important;content:none!important;flex:none!important}
html body #app .currency-entry-shell .currency-rate-history{flex:1 1 0!important;min-height:140px!important;max-height:none!important}
/* Company fields use the entire details width, with the scrollbar at its edge. */
html body #app .dimension-entry-companies .company-entry-fields{width:100%!important;max-width:none!important;box-sizing:border-box;scrollbar-gutter:stable;align-self:stretch!important}
html body #app .dimension-entry-companies .dimension-entry-history-row,
html body #app .dimension-entry-companies .dimension-entry-history-row strong,
html body #app .dimension-entry-companies .dimension-entry-history-row span{font-weight:400!important}
/* Match the Chart of Accounts description size; leave other existing pages unchanged. */
:root{--erp-master-name-font-size:15px}
html body #app .aux-entry-history-row>em{font-size:var(--erp-master-name-font-size)!important;line-height:1.4!important}

.rental-invoice-list {
  --rental-list-line: #35516a;
  color: #fff;
  background: #101f30;
}
.rental-invoice-list thead th,
.rental-invoice-list td {
  color: #fff;
  border-bottom: 1px solid var(--rental-list-line);
}
.rental-invoice-list input[type="search"] {
  width: 100%;
  min-width: 5rem;
  color: #fff;
  background: #0b1623;
  border: 1px solid var(--rental-list-line);
  border-radius: .3rem;
  padding: .25rem .4rem;
}
.rental-invoice-list tbody tr:hover td {
  background: #21405a;
}
.rental-invoice-list tbody tr[hidden] {
  display: none;
}
