/* esmartbooks reporting workspace — unified esmartbooks-inspired interface */
.sb-reports-controller{--rpt-green:#0c2340;--rpt-green-dark:#16365c;--rpt-blue:#0077c5;--rpt-ink:#1f2937;--rpt-muted:#6b7280;--rpt-line:#d4d7dc;--rpt-soft:#f4f5f8;--rpt-white:#fff;color:var(--rpt-ink)}
.sb-reports-controller .btn{border-radius:10px;box-shadow:none;font-weight:600}
.sb-reports-controller .btn.primary{background:var(--rpt-green);border-color:var(--rpt-green);color:#fff}
.sb-reports-controller .btn.primary:hover{background:var(--rpt-green-dark);border-color:var(--rpt-green-dark)}

.sb-report-workspace-heading{display:flex;justify-content:space-between;align-items:center;margin:0 0 9px;padding:0}
.sb-report-workspace-heading h2{font-size:clamp(22px,2.4vw,30px);line-height:1.2;letter-spacing:-.025em;margin:2px 0 3px;color:var(--rpt-ink);font-weight:750}
.sb-report-workspace-heading p{margin:0;color:var(--rpt-muted);font-size:14px}
.sb-report-eyebrow{color:var(--rpt-blue);font-size:11px;font-weight:800;letter-spacing:.12em}
.sb-report-hero{display:flex;align-items:center;justify-content:space-between;gap:10px;margin:0;padding:0 0 6px;border:0;background:transparent}
.sb-report-hero h2{margin:0;font-size:28px;font-weight:400;letter-spacing:-.02em}
.sb-report-hero .actions{display:flex;align-items:center;gap:12px}
#sb-report-library .sb-report-toolbar,
.sb-reports-controller>.sb-report-toolbar,
.sb-report-toolbar{
  display:flex!important;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:7px;
  margin:0 0 5px;padding:0;border:0;border-bottom:1px solid var(--rpt-line);background:transparent;
  position:static!important;grid-template-columns:none!important
}
.sb-report-groups{display:flex;flex-wrap:wrap;gap:3px;overflow:visible;min-width:0}
.sb-report-groups button{display:flex;align-items:center;padding:6px 9px;border:1px solid transparent;border-radius:10px;background:transparent;color:var(--rpt-muted);white-space:nowrap;cursor:pointer;font-size:13px}
.sb-report-groups button:hover{color:var(--rpt-ink);background:#f3f4f6}
.sb-report-groups button.active{border-color:var(--rpt-line);color:var(--rpt-ink);font-weight:700;background:var(--rpt-soft)}
.sb-report-toolbar-actions{display:flex;align-items:center;gap:6px;margin-left:auto}
.sb-report-toolbar .search,#sb-report-search{
  display:block;width:min(280px,42vw);height:34px;border:1px solid #b7bec7;border-radius:3px;background:#fff;color:#0c2340;padding:0 12px
}
.sb-report-toolbar .search:focus,#sb-report-search:focus{
  outline:2px solid #0c2340;border-color:#0c2340;box-shadow:0 0 0 3px rgba(12,35,64,.18)
}
.sb-report-list-head{display:flex;align-items:end;justify-content:space-between;margin:3px 0 5px}
.sb-report-list-head h3{margin:0;font-size:18px;font-weight:700}
.sb-report-list-head small{color:var(--rpt-muted)}
.sb-report-list-head .btn{border:0;background:transparent;color:var(--rpt-blue);font-weight:600}
.sb-reports-controller,
#sb-report-library,
.sb-report-toolbar,
.sb-report-list-head,
#sb-report-list{
  width:100%!important;
  max-width:100%!important;
  min-width:0!important;
  box-sizing:border-box!important
}
#sb-report-list.sb-report-list,
#sb-report-list.sb-report-list.grouped,
.sb-report-list,.sb-report-list.grouped{
  display:block!important;
  height:auto!important;
  grid-template-columns:none!important;
  column-count:4!important;
  column-gap:8px!important;
  overflow:visible!important
}
.sb-report-group-section{display:inline-block;width:100%;max-width:100%;min-width:0;vertical-align:top;margin:0 0 8px;padding:9px 10px;overflow:visible;border:1px solid var(--rpt-line);border-radius:14px;background:var(--rpt-white);break-inside:avoid;position:static;min-height:0}
.sb-report-group-title{display:flex;width:100%;align-items:center;justify-content:flex-start;padding:0 0 2px;margin:0;border:0;border-bottom:1px solid var(--rpt-line);background:transparent;cursor:pointer;text-align:left;break-after:avoid}
.sb-report-group-title h3{margin:0;font-size:14px;font-weight:700;color:var(--rpt-ink)}
.sb-report-group-title span{display:none}
.sb-report-group-title::before{content:"";display:inline-block;width:0;height:0;margin-right:8px;border-left:4px solid transparent;border-right:4px solid transparent;border-top:5px solid #6b7280;flex:0 0 auto}
.sb-report-group-section.is-collapsed .sb-report-group-title::before{border-top:4px solid transparent;border-bottom:4px solid transparent;border-left:5px solid #6b7280;border-right:0}
.sb-report-group-section.is-collapsed{margin-bottom:0}
.sb-report-group-section.is-collapsed .sb-report-group-links{display:none}
.sb-report-group-links{display:grid;gap:1px;padding:5px 0 0}
.sb-report-card{display:flex;align-items:flex-start;min-width:0;min-height:0;margin:0;padding:4px 5px;border:0;border-radius:8px;background:transparent;break-inside:avoid;line-height:1.35}
.sb-report-card:hover{background:var(--rpt-soft)}
.sb-report-name{display:inline;width:auto;min-width:0;max-width:100%;padding:0;border:0;background:transparent;text-align:left;cursor:pointer;color:var(--rpt-ink);vertical-align:middle}
.sb-report-card h4{display:inline;margin:0;color:var(--rpt-ink);font-size:13px;line-height:1.4;font-weight:600;white-space:normal;overflow:visible}
.sb-report-card:hover h4{text-decoration:underline}
.sb-report-star{display:inline-flex;align-items:center;justify-content:center;width:14px;height:14px;margin:0 4px 0 0;padding:0;border:0;background:transparent;color:#0c2340;cursor:pointer;vertical-align:middle}
.sb-report-star svg{display:block;width:13px;height:13px}
.sb-report-star.on{color:#b8860b}
.sb-report-star.on svg path{fill:currentColor}

.sb-report-result{overflow:visible;margin:0;border:1px solid var(--rpt-line);border-radius:2px;background:var(--rpt-white,#fff);color:var(--rpt-ink,#111827)}
.sb-report-navigation .btn{padding:7px 8px;border:0;background:transparent;color:var(--rpt-blue)}
.sb-report-result .panel-head{display:grid!important;grid-template-columns:auto minmax(0,1fr) auto;gap:10px 16px;align-items:center;min-height:0;padding:12px 16px!important;border-bottom:1px solid var(--rpt-line);background:var(--rpt-white,#fff);color:var(--rpt-ink,#111827)}
.sb-report-identity{min-width:0;text-align:center}
.sb-report-identity h2{margin:0 0 2px;font-size:22px;line-height:1.25;font-weight:600}
.sb-report-identity small{display:block;overflow:hidden;color:var(--rpt-muted);font-size:12px;text-overflow:ellipsis;white-space:nowrap}
.sb-report-actions{display:flex;flex-wrap:wrap;gap:8px;margin-left:auto;justify-content:flex-end}
.sb-report-actions .btn{min-height:34px;padding:6px 12px;background:#fff;white-space:nowrap}
.sb-report-actions #sb-report-customize:not(:disabled){border-color:var(--rpt-green);background:var(--rpt-green);color:#fff}
.sb-report-period-bar,
.sb-report-result>.sb-report-period-bar{
  display:flex!important;flex-wrap:wrap;align-items:flex-end;gap:10px 14px;
  margin:0;padding:8px 16px!important;border:0;border-bottom:1px solid var(--rpt-line);border-radius:0;background:var(--rpt-soft);
  grid-template-columns:none!important;overflow:visible
}
.sb-period-inline{display:flex;flex-direction:column;gap:3px;margin:0;min-width:0;flex:0 0 auto;color:inherit;font-size:14px;font-weight:400}
.sb-period-inline>span{display:block;color:#4b5563;font-size:11px;font-weight:700;line-height:1.2}
.sb-period-inline select,.sb-period-inline input:not([type=date]){width:168px;max-width:100%;height:34px;border:1px solid #b7bec7;border-radius:3px;background:#fff;font-size:14px;font-weight:400;color:inherit}
.sb-period-inline select{width:168px}
.sb-report-period-bar .primary{height:34px;min-width:96px;width:auto;flex:0 0 auto;padding:0 14px}
.sb-fin-tools{display:flex;flex-wrap:wrap;align-items:flex-end;gap:10px 16px;margin-left:0}
.sb-fin-tools .sb-check{display:flex;align-items:center;gap:6px;margin:0;height:34px;font-size:13px;font-weight:600;color:#4b5563;white-space:nowrap;flex:0 0 auto}
.fs-expand-hint{margin-left:8px;color:#667085;font-weight:500;font-size:11px}
.sb-ledger-group h3.is-interactive{cursor:pointer}
.sb-ledger-group h3.is-interactive:hover{color:#1769d2}
.sb-report-result #sb-report-output{min-height:0;max-height:calc(100vh - 268px);overflow:auto;padding:0;background:var(--rpt-white,#fff);color:var(--rpt-ink,#111827)}
.sb-report-result #sb-report-output .empty,.sb-report-result #sb-report-output .panel.empty{display:grid;min-height:0;margin:8px 12px;padding:12px;place-content:start center;border:0;background:#f8fafb;color:var(--rpt-muted);text-align:center}
.sb-report-result #sb-report-output>.table-wrap{max-height:none;overflow:visible;border:0}
.sb-report-result .report-table{width:max-content;min-width:100%;margin:0;border-collapse:collapse}
.sb-report-result .report-table thead{position:sticky;top:0;z-index:2}
.sb-report-result .report-table th{padding:8px 11px;border-bottom:1px solid var(--rpt-ink,#111827);background:var(--rpt-white,#fff);color:var(--rpt-ink,#111827);font-size:12px;font-weight:700;text-align:left;white-space:nowrap;text-transform:none;letter-spacing:0}
.sb-report-result .report-table td{padding:8px 11px;border-bottom:1px solid var(--rpt-line,#e5e9ee);color:var(--rpt-ink,#111827);font-size:13px;white-space:nowrap}
.sb-report-result .report-table tbody tr:hover{background:#f4f8fb}
.sb-report-result .report-table th.num,.sb-report-result .report-table td.num{min-width:7.5rem;text-align:right;font-variant-numeric:tabular-nums;white-space:nowrap}
.sb-report-result .report-table tfoot td{font-weight:700;border-top:2px solid #111;background:#fff}

.sb-report-kpis{display:flex;flex-wrap:wrap;justify-content:center;gap:10px;margin:0 0 18px}
.sb-report-kpis span{min-width:120px;padding:8px 12px;border:1px solid #e5e7eb;background:#fafafa;text-align:center}
.sb-compare-kpis{display:grid;grid-template-columns:repeat(auto-fit,minmax(160px,1fr));gap:10px;margin:0 0 14px}
.sb-compare-kpis article{padding:10px 12px;border:1px solid var(--rpt-line,#d4d7dc);border-radius:6px;background:#f8fafc}
.sb-compare-kpis small{display:block;color:#5b6775;font-size:11px;font-weight:700;letter-spacing:.03em;text-transform:uppercase}
.sb-compare-kpis b{display:block;margin:4px 0 2px;font-size:18px}
.sb-compare-kpis em{color:#5b6775;font-style:normal;font-size:12px}
.sb-compare-kpis article.up b{color:#16365c}
.sb-compare-kpis article.down b{color:#b91c1c}
.sb-report-kpis small{display:block;color:#6b7280;font-size:11px}
.sb-report-kpis b{font-size:14px}

.sb-paper{margin:0;padding:12px 18px 24px;max-width:none;background:var(--rpt-white,#fff);color:var(--rpt-ink,#111827)}
.sb-report-result .sb-paper.is-statement .sb-masthead{display:block;text-align:left;margin:0 0 16px;padding:0 0 12px;border-bottom:1px solid #111}
.sb-report-result .sb-paper.is-statement .sb-masthead h1{font-size:20px}
.fs-highlights{display:grid;grid-template-columns:repeat(auto-fit,minmax(160px,1fr));gap:10px;margin:0 0 16px}
.fs-highlights article{padding:10px 12px;border:1px solid #d8dee6;background:#f8fafc}
.fs-highlights small{display:block;color:#5b6775;font-size:11px;font-weight:700}
.fs-highlights b{display:block;margin:4px 0 2px;font-size:18px;font-variant-numeric:tabular-nums}
.fs-highlights em{display:block;color:#5b6775;font-style:normal;font-size:11px}
.fs-bs-grid{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:28px;align-items:start}
.fs-notes{margin:22px 0 0;padding:12px 0 0;border-top:1px solid #d8dee6;color:#44515c;font-size:12px;max-width:920px}
.fs-notes b{display:block;margin:0 0 6px;color:#111;font-size:12px}
.fs-notes ul{margin:0;padding-left:18px}
.fs-notes li{margin:0 0 4px}
.fs-balanced{margin:10px 0 0;font-size:12px;color:#16365c;font-weight:700}
.fs-detail{display:none}
.sb-report-result .financial-statement .fs-account td.fs-name{padding-left:12px}
@media (max-width:960px){.fs-bs-grid{grid-template-columns:1fr}}
@media print{
  .fs-highlights{grid-template-columns:repeat(4,1fr);break-inside:avoid}
  .fs-bs-grid{grid-template-columns:1fr 1fr;gap:16px}
  .fs-notes{color:#000}
}
.sb-masthead div{font-size:13px;font-weight:700}
.sb-masthead h1{margin:4px 0 2px;font-size:22px;font-weight:700}
.sb-masthead p{margin:0;font-size:13px;color:#333}
.sb-masthead small{display:block;margin-top:4px;color:#667085;font-size:11px}
.sb-report-result .financial-sheet{max-width:none;margin:0;border:0;border-radius:0;overflow:visible}
#app .sb-report-result .financial-statement,
#app .financial-statement{
  width:100%;table-layout:fixed;border-collapse:collapse!important;border-spacing:0!important;
  background:var(--rpt-white,#fff)!important;color:var(--rpt-ink,#111827)!important
}
#app .sb-report-result .financial-statement thead th,
#app .financial-statement thead th{
  background:var(--rpt-white,#fff)!important;color:var(--rpt-ink,#111827)!important;text-transform:none!important;letter-spacing:0!important;
  font-size:12px!important;font-weight:700!important;border:0!important;border-bottom:1px solid var(--rpt-ink,#111827)!important;
  border-right:0!important;padding:8px 12px!important;white-space:nowrap
}
#app .sb-report-result .financial-statement tbody td,
#app .financial-statement tbody td{
  border-right:0!important;padding:6px 12px!important
}
.sb-report-result .financial-statement thead th{background:var(--rpt-white,#fff)!important;color:var(--rpt-ink,#111827)!important;border-bottom:1px solid var(--rpt-ink,#111827);text-transform:none!important;letter-spacing:0!important;font-size:12px;font-weight:700;padding:8px 12px}
.sb-report-result .financial-statement .fs-col-no,.sb-report-result .financial-statement .fs-no{width:88px;padding:6px 8px 6px 12px;text-align:left;font-variant-numeric:tabular-nums;white-space:nowrap}
.sb-report-result .financial-statement .fs-col-name,.sb-report-result .financial-statement .fs-name{width:auto}
.sb-report-result .financial-statement thead th.num{width:140px;text-align:right}
.sb-report-result .financial-statement .fs-section td{padding-top:18px;font-size:13px;font-weight:800;text-transform:none!important;letter-spacing:0;border-top:0!important}
.sb-report-result .financial-statement .fs-subsection td{padding-top:10px;font-weight:700;border-top:0!important}
.sb-report-result .financial-statement .fs-account td{font-weight:400}
.sb-report-result .financial-statement .fs-account td:first-child{padding-left:12px!important}
.sb-report-result .fs-account-no{display:inline-block;margin:0;padding:0;border:0;background:transparent;color:#1769d2;cursor:pointer;font:14px/1.3 ui-monospace,Consolas,monospace;font-variant-numeric:tabular-nums}
.sb-report-result .fs-label{display:inline}
.sb-report-result .financial-statement td{padding:6px 12px;font-size:13px;color:var(--rpt-ink,#111827);border-bottom:1px solid var(--rpt-line,#f0f2f4)}
.sb-report-result .financial-statement .num{text-align:right;font-variant-numeric:tabular-nums;white-space:nowrap}
.sb-report-result .financial-statement .fs-subtotal td{border-top:1px solid var(--rpt-ink,#111827)!important}
.sb-report-result .financial-statement .fs-grand td,.sb-report-result .financial-statement .fs-net td{border-top:1px solid var(--rpt-ink,#111827)!important;border-bottom:3px double var(--rpt-ink,#111827)!important}
.sb-check{display:flex;gap:8px;align-items:center;margin:10px 0;font-size:13px;cursor:pointer}
.sb-check input{accent-color:#0c2340}
.sb-ledger-group{margin:0 0 18px}
.sb-ledger-group h3{display:flex;justify-content:space-between;gap:16px;margin:0;padding:8px 0;border-bottom:1px solid var(--rpt-ink,#111827);color:var(--rpt-ink,#111827);font-size:13px}
.sb-ledger-group .table-wrap{max-height:none}
.sb-customer-group{margin:10px 0 16px 8px}
.sb-customer-group h4{display:flex;justify-content:space-between;gap:16px;margin:0 0 6px;font-size:12px;font-weight:700}
.sb-customer-group h4 small{font-weight:400;color:#667085}
.sb-customer-group .report-table tfoot td{font-weight:700}

@media print{
  @page{size:A4}
  .sidebar,.topbar,.global-menubar,#sidebar-toggle,.sidebar-toggle,#sb-report-library,.sb-report-navigation,.sb-report-actions,.sb-report-period-bar,.sb-report-hero,.sb-report-toolbar,#toast,#modal-root,#sb-report-preview-overlay{display:none!important}
  html,body,main,.content,.sb-reports-controller,.sb-report-result,.sb-report-result:not([hidden]),#sb-report-output,.sb-paper,.table-wrap,.financial-sheet{
    display:block!important;position:static!important;height:auto!important;max-height:none!important;overflow:visible!important;width:100%!important;margin:0!important;padding:0!important;background:#fff!important
  }
  body{padding-top:0!important}
  .sb-report-result>.panel-head,.sb-report-period-bar,.sb-fin-tools,.pl-outlook,.fs-expand-hint,#sb-report-library{display:none!important}
  .sb-report-result .financial-statement{width:100%!important;max-width:100%!important;min-width:0!important;table-layout:fixed!important}
  .sb-report-result .financial-statement .fs-col-no,.sb-report-result .financial-statement .fs-no{width:22mm!important;white-space:nowrap!important}
  .sb-report-result .financial-statement .fs-name,.sb-report-result .financial-statement .fs-col-name{white-space:normal!important;overflow-wrap:anywhere!important}
  .sb-report-result .financial-statement th.num,.sb-report-result .financial-statement td.num,
  .sb-report-result .report-table th.num,.sb-report-result .report-table td.num,
  .print-table th.num,.print-table td.num,.print-table .align-right,
  table th.num,table td.num,table th.amount,table td.amount{
    text-align:right!important;font-variant-numeric:tabular-nums!important
  }
  .sb-report-result .financial-statement th.num,.sb-report-result .financial-statement td.num{width:32mm!important;max-width:none!important;white-space:nowrap!important;text-align:right!important}
  .sb-report-result .panel-head{border:0!important;box-shadow:none!important;padding:0!important;min-height:0!important}
  .sb-report-result .financial-statement .fs-section td{padding-top:8px!important}
  .sb-report-identity{display:none!important}
  .sb-paper{max-width:none;padding:0}
  .sb-masthead{display:block!important;text-align:center;margin:0 0 12px}
  .sb-report-result .financial-statement thead th,.sb-report-result .report-table thead th{position:static!important}
}
.sb-report-preview-overlay{position:fixed;top:86px;left:var(--esb-rail-w,0px);right:0;bottom:0;z-index:30015;background:#edf1f3;overflow:auto;padding:16px 24px 28px}
.sb-report-preview-overlay[hidden]{display:none!important}
.sb-report-preview-bar{position:sticky;top:0;z-index:2;display:flex;flex-wrap:wrap;gap:8px;align-items:center;padding:12px 0 16px;background:#edf1f3}
.sb-report-preview-sheet{
  width:min(210mm,100%);
  max-width:210mm;
  margin:0 auto;
  padding:0;
  box-sizing:border-box;
  overflow:hidden;
  background:#fff;
  box-shadow:0 10px 30px rgba(16,38,59,.12);
}

.sb-report-preview-sheet .sb-paper{
  width:100%;
  max-width:100%;
  min-width:0;
  box-sizing:border-box;
}

.sb-report-preview-sheet .financial-sheet{
  width:100%;
  max-width:100%;
  min-width:0;
  overflow:visible;
}

.sb-report-preview-sheet .financial-statement{
  width:100%!important;
  max-width:100%!important;
  min-width:0!important;
  table-layout:fixed!important;
  border-collapse:collapse!important;
}

.sb-report-preview-sheet .financial-statement .fs-col-no,
.sb-report-preview-sheet .financial-statement .fs-no{
  width:88px;
}

.sb-report-preview-sheet .financial-statement .fs-col-name,
.sb-report-preview-sheet .financial-statement .fs-name{
  width:auto;
  min-width:0;
}

.sb-report-preview-sheet .financial-statement th.num,
.sb-report-preview-sheet .financial-statement td.num{
  width:140px;
  max-width:140px;
  text-align:right;
  white-space:nowrap;
}
.sb-report-preview-sheet .sb-masthead{display:block!important;text-align:center;margin:0 0 16px}

.sb-custom-report-modal{width:min(1080px,calc(100vw - 40px));max-width:1080px}
.sb-custom-builder{color:var(--rpt-ink,#1f2937)}
.sb-custom-intro{display:flex;align-items:start;justify-content:space-between;gap:18px;padding:0 0 14px;border-bottom:1px solid #d5dce5}
.sb-custom-intro small{color:#667085;font-size:11px;font-weight:800;letter-spacing:.08em}
.sb-custom-intro h3{margin:3px 0;font-size:20px}
.sb-custom-intro p{margin:0;color:#667085}
#sb-custom-selected-count{padding:6px 9px;border-radius:3px;background:#eef3f8;color:#0c2340;font-size:12px;font-weight:800;white-space:nowrap}
.sb-custom-setup{display:grid;grid-template-columns:1fr 1fr;gap:14px;padding:15px 0}
.sb-custom-tools{display:grid;grid-template-columns:1fr auto auto;gap:8px;padding:10px;border:1px solid #d5dce5;background:#f4f6f8}
.sb-custom-tools input{min-height:38px}
.sb-custom-sections{display:grid;grid-template-columns:1fr 1fr;gap:16px;padding-top:16px}
.sb-custom-sections section{overflow:hidden;border:1px solid #d5dce5;border-radius:4px}
.sb-custom-section-head{padding:11px 13px;border-bottom:1px solid #d5dce5;background:#eef1f4}
.sb-custom-section-head h4{margin:0 0 2px}
.sb-custom-section-head p{margin:0;color:#526077;font-size:12px}
.sb-custom-field-list{display:grid;grid-template-columns:1fr 1fr;gap:0;max-height:310px;overflow:auto}
.sb-custom-field{display:flex;gap:9px;align-items:start;padding:10px;border-right:1px solid #edf0f3;border-bottom:1px solid #edf0f3;cursor:pointer}
.sb-custom-field:hover{background:#f7fafc}
.sb-custom-field input{margin-top:2px;accent-color:#0c2340}
.sb-custom-field b,.sb-custom-field small{display:block}
.sb-custom-field b{font-size:13px}
.sb-custom-field small{margin-top:2px;color:#667085;font-size:11px}
.sb-custom-privacy{margin-top:12px;padding:9px 11px;border-left:3px solid #0c2340;background:#f4f6f8;color:#526071;font-size:12px}

.modal.sb-report-customize-modal{width:min(720px,calc(100vw - 24px))!important;max-width:calc(100vw - 24px)!important;max-height:calc(100vh - 24px)!important;min-width:0!important;min-height:0!important;overflow:hidden}
.modal.sb-report-customize-modal .modal-body{overflow:auto;max-height:min(70vh,640px)}
.sb-report-customizer{min-width:0}



.sb-customizer-head{display:flex;align-items:start;justify-content:space-between;gap:15px;margin-bottom:12px}
.sb-customizer-head h3{margin:0 0 3px;font-size:18px}
.sb-customizer-head p{margin:0;color:#667085;font-size:13px}
.sb-view-columns{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;max-height:420px;overflow:auto;border:1px solid #d5dce5;background:#fff}
.sb-view-columns label[hidden]{display:none!important}
.sb-report-customize-modal #sb-view-column-search{margin:8px 0 10px;width:100%;max-width:100%}
.sb-view-columns label{display:flex!important;flex-direction:row!important;align-items:center!important;justify-content:flex-start!important;gap:10px!important;padding:10px 12px!important;border-right:1px solid #edf0f3;border-bottom:1px solid #edf0f3;font-size:13px;cursor:pointer;grid-template-columns:none!important}
.sb-view-columns label:hover{background:#f7fafc}
.sb-report-filter-list{display:grid;gap:9px}
.sb-report-filter-row{display:grid;grid-template-columns:minmax(0,1.15fr) minmax(0,.85fr) minmax(0,1fr) auto;gap:9px}
.sb-report-filter-row select,.sb-report-filter-row input:not([type=date]):not([type=datetime-local]):not([type=month]):not([type=time]){width:100%;min-height:40px}
[hidden]{display:none!important}
.sb-reports-controller [hidden],.sb-report-customize-modal [hidden],#sb-report-library[hidden],#sb-report-result[hidden]{display:none!important}
.sb-report-hero{display:none}
.sb-report-toolbar-actions{display:flex;align-items:center;gap:10px;margin-left:auto;flex-wrap:wrap}
.sb-report-intro{display:none!important;margin:0;height:0;overflow:hidden}
.sb-reports-page .topbar p,.sb-reports-page #page-subtitle{display:none!important}
.sb-reports-page .content{padding:8px 16px 16px!important;min-height:0;min-width:0;max-width:100%}
html body.sb-reports-page #app.content{
  width:100%!important;max-width:100%!important;min-width:0!important;
  height:calc(100vh - var(--sb-chrome-h,84px))!important;
  max-height:calc(100vh - var(--sb-chrome-h,84px))!important;
  overflow:auto!important
}
.sb-report-result:not([hidden]){display:flex;flex-direction:column;max-height:none}
.sb-reports-controller:has(#sb-report-result:not([hidden])) #sb-report-library{display:none!important}
.financial-statement thead .fs-currency,.report-table thead .fs-currency{font-weight:700;color:var(--rpt-ink,#111827)}
.financial-statement tr.is-interactive{cursor:pointer}
.financial-statement tr.is-interactive:hover{background:#f4f8fb}
.sb-header-options{display:grid;gap:8px;max-width:520px}
.sb-report-customize-modal .sb-check,.sb-header-options .sb-check{
  display:flex!important;flex-direction:row!important;justify-content:flex-start!important;align-items:center!important;
  gap:10px!important;margin:12px 0 0;padding:10px 12px;border:1px solid #d5dce5;background:#fff;text-align:left;width:100%;max-width:520px
}
.sb-report-customize-modal input[type=checkbox],
.sb-header-options input[type=checkbox],
.sb-view-columns input[type=checkbox],
.sb-custom-field input[type=checkbox],
.sb-check input[type=checkbox]{
  appearance:auto!important;-webkit-appearance:checkbox!important;
  position:static!important;display:inline-block!important;
  width:16px!important;height:16px!important;min-width:16px!important;min-height:16px!important;max-width:16px!important;
  margin:0!important;padding:0!important;flex:0 0 16px!important;
  background:none!important;border:0!important;box-shadow:none!important;outline:none!important;
  accent-color:#0c2340!important;transform:none!important
}
.sb-report-customize-modal .sb-check span,.sb-view-columns label span{display:inline!important;margin:0;text-align:left;font-size:13px;color:#1f2937}

.sb-report-result:not([hidden]) .panel-head,.sb-report-result:not([hidden]) .sb-report-period-bar{position:static;top:auto}
.sb-report-result #sb-report-output{flex:1 1 auto;min-height:0;overflow:auto;align-content:start}
.sb-report-result .financial-statement thead th,.sb-report-result .report-table thead th{position:sticky;top:0;z-index:3;background:var(--rpt-white,#fff)}
.sb-report-result .report-table td:first-child{position:static;left:auto}
.sb-report-result .report-table thead th:first-child{position:sticky;top:0;left:auto;z-index:3}
.sb-report-result .financial-statement th:first-child,.sb-report-result .financial-statement td:first-child{position:static;left:auto}
.sb-report-result .fs-account-no:hover{text-decoration:underline}
.sb-report-result td.num .fs-amount-link,.financial-statement td.num .fs-amount-link{min-width:0;font:inherit;font-variant-numeric:tabular-nums}
.sb-report-result .financial-statement thead .fs-currency{text-transform:none!important;font-weight:600}
.report-table tr.is-interactive,.financial-statement tr.is-interactive{cursor:pointer}
.sb-report-actions #sb-report-customize{border-color:var(--rpt-green);background:var(--rpt-green);color:#fff}
.sb-report-actions #sb-report-customize:disabled{opacity:.45}

@media(max-width:1100px){
  #sb-report-list.sb-report-list,#sb-report-list.sb-report-list.grouped,.sb-report-list,.sb-report-list.grouped{display:block!important;column-count:2!important;column-gap:8px!important;grid-template-columns:none!important}
}
@media(max-width:760px){
  .sb-report-hero{align-items:flex-start}
  .sb-report-toolbar,.sb-report-list-head{flex-direction:column;align-items:stretch}
  .sb-report-toolbar .search{width:100%}
  #sb-report-list.sb-report-list,#sb-report-list.sb-report-list.grouped,.sb-report-list,.sb-report-list.grouped{display:block!important;column-count:1!important;grid-template-columns:none!important}
  .sb-report-identity{order:1;width:100%;text-align:left}
  .sb-report-result .panel-head{grid-template-columns:1fr!important}
  .sb-report-navigation{order:0}
  .sb-report-actions{order:2;width:100%;overflow:auto;margin-left:0}
  .sb-report-period-bar{flex-wrap:wrap}
  .sb-period-inline,.sb-period-inline select,.sb-period-inline input:not([type=date]){width:100%}
  .sb-custom-setup,.sb-custom-sections{grid-template-columns:1fr}
  .sb-custom-tools{grid-template-columns:1fr 1fr}
  .sb-custom-tools input{grid-column:1/-1}
  .sb-custom-field-list,.sb-view-columns,.sb-report-filter-row{grid-template-columns:1fr!important}
}

/* Authoritative chrome: last stylesheet wins over older menubar/sidebar layers. */
#install-app,.install-app{display:none!important}
#global-menubar .global-menu-item span{white-space:normal}
#global-menubar .global-menu:not(.reports-menu)>.global-menu-popup,
#global-menubar .lists-menu>.global-menu-popup{
  position:absolute!important;
  display:none;
  column-count:1!important;columns:auto!important;column-width:auto!important;
  width:max-content!important;min-width:0!important;max-width:min(280px,calc(100vw - 16px))!important;
  max-height:min(70vh,560px)!important;overflow-x:hidden!important;overflow-y:auto!important;
  background:var(--v72-surface,#fff)!important;color:var(--v72-text,#393a3d)!important;border-color:var(--v72-border,#d4d7dc)!important
}
#global-menubar .global-menu:not(.reports-menu)>.global-menu-popup:has(> .menu-col),
#global-menubar .has-menu-cols:not(.reports-menu)>.global-menu-popup{
  width:max-content!important;min-width:0!important;max-width:min(960px,calc(100vw - 16px))!important;
  display:none;grid-auto-flow:column;grid-auto-columns:max-content;grid-template-columns:none!important
}
#global-menubar .has-menu-cols.open>.global-menu-popup,
#global-menubar .global-menu.open>.global-menu-popup:has(> .menu-col){
  display:grid!important
}
#sb-menu-more>.global-menu-popup{overflow:visible!important}
#global-menubar .global-menu.open>.global-menu-popup,
#global-menubar .lists-menu.open>.global-menu-popup{display:block!important}
#global-menubar .has-menu-cols.open>.global-menu-popup,
#global-menubar .global-menu.open>.global-menu-popup:has(> .menu-col),
#global-menubar .global-menu.has-menu-cols.open>.global-menu-popup{display:grid!important}
#global-menubar .global-menu.open[data-sb-popup="fixed"]>.global-menu-popup,
#global-menubar .reports-menu.open[data-sb-popup="fixed"]>.global-menu-popup,
#global-menubar .lists-menu.open[data-sb-popup="fixed"]>.global-menu-popup,
#sb-menu-more.open[data-sb-popup="fixed"]>.global-menu-popup{
  position:fixed!important;top:var(--sb-popup-top,36px)!important;left:var(--sb-popup-left,8px)!important;
  right:auto!important
}
#sb-menu-more>.global-menu-popup>.global-menu>.global-menu-popup{
  left:100%!important;right:auto!important;top:0!important;display:none!important
}
#sb-menu-more>.global-menu-popup>.global-menu.open>.global-menu-popup{display:block!important}
html:not([data-theme="dark"]) .sidebar{background:#0c2340!important;color:#fff!important;border-right:0!important}
html:not([data-theme="dark"]) .sidebar #nav .nav-item{color:#d5dee8!important}
#nav .nav-item>span:first-child,
.sidebar #nav .nav-item>span:first-child{
  width:18px!important;height:18px!important;min-width:18px!important;padding:0!important;
  border-radius:0!important;background:transparent!important;box-shadow:none!important;color:inherit!important
}
html:not([data-theme="dark"]) #nav .nav-item>span:first-child svg,
html:not([data-theme="dark"]) #nav .nav-item .nav-svg,
html:not([data-theme="dark"]) .sidebar #nav .nav-item>span:first-child svg{
  width:18px!important;height:18px!important;color:#c5d4e4!important;stroke:#c5d4e4!important;fill:none!important;filter:none!important
}
html:not([data-theme="dark"]) .sidebar .nav-item.active{background:#e7eef6!important;color:#0f2a44!important;box-shadow:inset 3px 0 0 #0c2340!important}
html[data-theme="dark"] #nav .nav-item>span:first-child svg,
html[data-theme="dark"] #nav .nav-item .nav-svg,
html[data-theme="dark"] .sidebar #nav .nav-item>span:first-child svg{
  width:18px!important;height:18px!important;color:#cfe0f0!important;stroke:#cfe0f0!important;fill:none!important;filter:none!important
}
html[data-theme="dark"] .sidebar .nav-item,html[data-theme="dark"] #nav .nav-item,html[data-theme="dark"] #nav .nav-item b{color:#e8f2fc!important}
html[data-theme="dark"] .sidebar .nav-item:hover{background:rgba(255,255,255,.08)!important;color:#fff!important}
html[data-theme="dark"] .sidebar .nav-item.active{background:rgba(29,78,137,.18)!important;color:#c5d4e6!important;box-shadow:inset 3px 0 0 #1d4e89!important}
html[data-theme="dark"] .nav-group-toggle,html[data-theme="dark"] .nav-section-label,html[data-theme="dark"] .nav-group-title{color:#9fb0c3!important}
body.im-sidebar-collapsed .sidebar{
  display:flex!important;visibility:visible!important;transform:none!important;left:0!important;
  width:68px!important;min-width:68px!important;max-width:68px!important
}
body.im-sidebar-collapsed main{margin-left:68px!important;width:auto!important}
body.im-sidebar-collapsed .sidebar #nav .nav-item>span:first-child{
  width:18px!important;height:18px!important;min-width:18px!important;background:transparent!important
}
.sidebar-toggle{
  position:relative!important;top:auto!important;left:auto!important;
  width:28px!important;height:28px!important;z-index:2!important
}
body.im-sidebar-collapsed .sidebar-toggle{display:grid!important;left:auto!important;top:auto!important}
.sb-reports-page .topbar{height:auto!important;min-height:48px!important;padding:8px 20px!important}
#sb-report-library,#sb-report-list{overflow:visible!important;max-height:none!important}

html[data-theme="dark"] .sb-reports-controller,
html[data-theme="dark"] .sb-reports-page .content,
html[data-theme="dark"] #sb-report-library{
  --rpt-green:#1d4e89;--rpt-green-dark:#1d4e89;--rpt-blue:#7cbcff;--rpt-ink:#edf2f7;
  --rpt-muted:#9fb0c3;--rpt-line:#2b3d52;--rpt-soft:#162438;--rpt-white:#111d2d;
  color:var(--rpt-ink)!important;background:transparent
}
html[data-theme="dark"] .sb-report-groups button{color:#c5d0dc!important;background:transparent!important}
html[data-theme="dark"] .sb-report-groups button:hover{color:#fff!important;background:#18293d!important}
html[data-theme="dark"] .sb-report-groups button.active{color:#d6e6f7!important;border-bottom-color:#5b93d6!important;background:transparent!important}
html[data-theme="dark"] .sb-report-toolbar{border-bottom-color:var(--rpt-line)!important}
html[data-theme="dark"] .sb-report-toolbar .search,
html[data-theme="dark"] .sb-period-inline select,
html[data-theme="dark"] .sb-period-inline input:not([type=date]),
html[data-theme="dark"] .sb-report-filter-row select,
html[data-theme="dark"] .sb-report-filter-row input:not([type=date]):not([type=datetime-local]):not([type=month]):not([type=time]){
  background:#0f1c2b!important;color:#edf2f7!important;border-color:#35516d!important
}
html[data-theme="dark"] .sb-report-list-head h3,
html[data-theme="dark"] .sb-report-identity h2,
html[data-theme="dark"] .sb-report-group-title h3{color:#edf2f7!important}
html[data-theme="dark"] .sb-report-list-head small,
html[data-theme="dark"] .sb-report-identity small,
html[data-theme="dark"] .sb-period-inline{color:#9fb0c3!important}
html[data-theme="dark"] .sb-report-list-head .btn,
html[data-theme="dark"] .sb-report-navigation .btn{color:#7cbcff!important;background:transparent!important}
html[data-theme="dark"] .sb-report-group-title{border-bottom-color:#2b3d52!important}
html[data-theme="dark"] .sb-report-group-title::before{color:#9fb0c3!important}
html[data-theme="dark"] .sb-report-card h4{color:#d6e6f7!important}
html[data-theme="dark"] .sb-report-star{color:#6b7c8e!important}
html[data-theme="dark"] .sb-report-star.on{color:#f0c14b!important}
html[data-theme="dark"] .sb-reports-controller .btn,
html[data-theme="dark"] .sb-report-actions .btn{
  background:#111d2d!important;color:#edf2f7!important;border-color:#2b3d52!important
}
html[data-theme="dark"] .sb-reports-controller .btn.primary,
html[data-theme="dark"] .sb-report-actions #sb-report-customize:not(:disabled){
  background:#16365c!important;border-color:#16365c!important;color:#fff!important
}
html[data-theme="dark"] .sb-report-result,
html[data-theme="dark"] .sb-report-result .panel-head,
html[data-theme="dark"] .sb-report-result #sb-report-output,
html[data-theme="dark"] .sb-paper{
  background:#111d2d!important;color:#edf2f7!important;border-color:#2b3d52!important
}
html[data-theme="dark"] .sb-report-period-bar{background:#162438!important;border-color:#2b3d52!important}
html[data-theme="dark"] .sb-report-result #sb-report-output .empty,
html[data-theme="dark"] .sb-report-kpis span{background:#162438!important;color:#9fb0c3!important;border-color:#2b3d52!important}
html[data-theme="dark"] .sb-compare-kpis article{background:#162438!important;border-color:#2b3d52!important}
html[data-theme="dark"] .sb-compare-kpis small,html[data-theme="dark"] .sb-compare-kpis em{color:#9fb0c3!important}
html[data-theme="dark"] .sb-compare-kpis b{color:#edf2f7!important}
html[data-theme="dark"] .sb-compare-kpis article.up b{color:#c5d4e6!important}
html[data-theme="dark"] .sb-compare-kpis article.down b{color:#ff8b84!important}
html[data-theme="dark"] .sb-report-result .report-table th,
html[data-theme="dark"] .sb-report-result .financial-statement thead th,
html[data-theme="dark"] .sb-report-result .financial-statement thead th:first-child,
html[data-theme="dark"] .sb-report-result .report-table thead th:first-child,
html[data-theme="dark"] .sb-report-result .financial-statement th:first-child,
html[data-theme="dark"] .sb-report-result .report-table th:first-child,
html[data-theme="dark"] .sb-report-result .financial-statement td:first-child,
html[data-theme="dark"] .sb-report-result .report-table td:first-child{
  background:#162438!important;color:#edf2f7!important;border-color:#2b3d52!important
}
html[data-theme="dark"] .sb-report-result .report-table td,
html[data-theme="dark"] .sb-report-result .financial-statement td{color:#edf2f7!important;border-color:#24384c!important}
html[data-theme="dark"] .sb-report-result .report-table tbody tr:hover,
html[data-theme="dark"] .financial-statement tr.is-interactive:hover{background:#18293d!important}
html[data-theme="dark"] .financial-statement thead .fs-currency,
html[data-theme="dark"] .report-table thead .fs-currency{color:#edf2f7!important}
html[data-theme="dark"] .fs-account-no{color:#7cbcff!important}
html[data-theme="dark"] .sb-custom-builder,
html[data-theme="dark"] .sb-report-customizer,
html[data-theme="dark"] .sb-customizer-head h3,
html[data-theme="dark"] .sb-custom-intro h3,
html[data-theme="dark"] .sb-custom-field b,
html[data-theme="dark"] .sb-report-customize-modal .sb-check span,
html[data-theme="dark"] .sb-view-columns label span{color:#edf2f7!important}
html[data-theme="dark"] .sb-custom-intro,
html[data-theme="dark"] .sb-custom-tools,
html[data-theme="dark"] .sb-custom-sections section,
html[data-theme="dark"] .sb-custom-section-head,
html[data-theme="dark"] .sb-view-columns,
html[data-theme="dark"] .sb-report-customize-modal .sb-check,
html[data-theme="dark"] .sb-header-options .sb-check{border-color:#2b3d52!important;background:#162438!important}
html[data-theme="dark"] .sb-custom-field:hover,
html[data-theme="dark"] .sb-view-columns label:hover{background:#18293d!important}
html[data-theme="dark"] #sb-custom-selected-count{background:#0c2340!important;color:#c5d4e6!important}
html[data-theme="dark"] .sb-custom-privacy{background:#0c2340!important;color:#c5d0dc!important}


html[data-theme="dark"] .sidebar{
  background:linear-gradient(180deg,#06172a 0%,#09223b 58%,#06182b 100%)!important;
  color:#e8f2fc!important;border-right:1px solid #19344f!important
}
html[data-theme="dark"] .sidebar-toggle{
  background:#111d2d!important;color:#edf2f7!important;border-color:#2b3d52!important
}
html[data-theme="dark"] #global-menubar .global-menu-item{color:#edf2f7!important}
html[data-theme="dark"] #global-menubar .global-menu-item:hover{background:#18293d!important}

#modal-root .modal-backdrop{padding:calc(var(--sb-chrome-h,84px) + 12px) 12px 12px!important;align-items:flex-start!important;justify-content:center!important;overflow:auto!important}
#modal-root .modal.im-windowed,
#modal-root .modal.sb-report-customize-modal,
#modal-root .modal.im-im-form,
#modal-root .modal.im-journal-modal,
#modal-root .modal.sb-quote-modal,
#modal-root .modal.sb-price-list-modal{
  max-width:calc(100vw - 16px);max-height:calc(100vh - var(--sb-chrome-h,84px) - 16px);
  min-width:280px;min-height:160px;box-sizing:border-box!important
}
#modal-root input[type=checkbox]{
  appearance:auto!important;-webkit-appearance:checkbox!important;
  width:16px!important;height:16px!important;min-width:16px!important;min-height:16px!important;max-width:16px!important;
  accent-color:#0c2340!important
}
.sb-flow-sb{display:flex;flex-wrap:wrap;align-items:center;gap:8px;margin:0 0 18px;padding:10px 12px;background:var(--v72-surface,#fff);border:1px solid var(--v72-border,#d9e0e7);border-radius:10px}
.sb-flow-sb button{border:1px solid #d4d7dc;background:#fff;color:#1f2937;border-radius:999px;padding:7px 12px;font-weight:700;cursor:pointer}
.sb-flow-sb button:hover{border-color:#0c2340;color:#0c2340}
.sb-flow-sb span{color:#98a2b3;font-weight:700}
html[data-theme="dark"] .sb-flow-sb{background:#111d2d;border-color:#2b3d52}
html[data-theme="dark"] .sb-flow-sb button{background:#162438;color:#edf2f7;border-color:#2b3d52}
.quote-price-tabs{display:flex;flex-wrap:wrap;overflow:visible;flex:1 0 100%;gap:0;margin:0 0 10px}
#global-menubar,#global-menubar.topbar-topbar{
  overflow:visible!important;z-index:30000!important
}
#quotefmt-list .empty{padding:48px 24px;text-align:center;color:#667085}
#quotefmt-list .empty b{display:block;font-size:16px;color:#1f2937;margin-bottom:6px}

/* esmartbooks-style left rail: hubs only, never nested accordion tabs */
#nav.sb-rail{
  display:flex!important;flex-direction:column!important;gap:1px!important;
  padding:0!important;margin:0!important
}
#nav.sb-rail .nav-group,
#nav.sb-rail .nav-group-toggle,
#nav.sb-rail .nav-group-title,
#nav.sb-rail .nav-section-label,
#nav.sb-rail .nav-heading,
#nav.sb-rail .nav-chevron,
#nav.esb-owner-nav{
  display:flex!important;flex-direction:column!important;gap:2px!important;
  padding:0!important;margin:0!important
}
#nav.esb-owner-nav .nav-group,
#nav.esb-owner-nav .nav-group-items{
  display:grid!important;width:100%!important;gap:2px!important
}
#nav.esb-owner-nav .nav-section-label{
  display:block!important;padding:8px 10px 4px;font-size:11px;letter-spacing:.06em;text-transform:uppercase;opacity:.8
}
#nav.esb-owner-nav .nav-item{
  display:flex!important;align-items:center!important;gap:8px;width:100%!important;text-align:left
}
#nav.sb-rail>.nav-item,
#nav.sb-rail>.sb-rail-item{
  width:100%!important;display:flex!important;align-items:center!important;
  justify-content:flex-start!important;border:0!important;background:transparent!important;
  cursor:pointer;text-align:left
}
#nav.sb-rail>.nav-item>b{
  font-size:13px!important;font-weight:600!important;letter-spacing:0!important;
  text-transform:none!important;color:inherit!important
}

html[data-theme="dark"] .sb-report-kpis b,
html[data-theme="dark"] .fs-highlights article{background:#102338;border-color:#24384c}
html[data-theme="dark"] .fs-highlights small,html[data-theme="dark"] .fs-highlights em,html[data-theme="dark"] .fs-notes,html[data-theme="dark"] .fs-detail{color:#9db0c3}
html[data-theme="dark"] .fs-notes b,html[data-theme="dark"] .sb-paper.is-statement .sb-masthead,html[data-theme="dark"] .sb-paper.is-statement .sb-masthead h1{color:#edf2f7}
html[data-theme="dark"] .fs-balanced{color:#d5e4f7}
html[data-theme="dark"] .sb-masthead p,
html[data-theme="dark"] .sb-masthead small,
html[data-theme="dark"] .sb-report-kpis small{color:#b4c3d4!important}
html[data-theme="dark"] .sb-report-result .financial-statement .fs-subtotal td,
html[data-theme="dark"] .sb-report-result .financial-statement .fs-grand td,
html[data-theme="dark"] .sb-report-result .financial-statement .fs-net td{
  border-color:#c5d6e8!important;
  color:#f4f8ff!important
}

/* Statement type/color: #app light-paper rules used to beat dark theme (pale text on white). */
html:not([data-theme="dark"]) #app .sb-reports-controller,
html:not([data-theme="dark"]) #app .sb-paper,
html:not([data-theme="dark"]) #app .financial-sheet,
html:not([data-theme="dark"]) #app .financial-statement{
  --rpt-ink:#111827;--rpt-muted:#3f4b5a;--rpt-line:#d4d7dc;--rpt-soft:#f4f5f8;--rpt-white:#fff;
  color:#111827
}
html:not([data-theme="dark"]) #app .sb-report-result,
html:not([data-theme="dark"]) #app .sb-report-result .panel-head,
html:not([data-theme="dark"]) #app .sb-report-result #sb-report-output,
html:not([data-theme="dark"]) #app .sb-paper,
html:not([data-theme="dark"]) #app .financial-sheet,
html:not([data-theme="dark"]) #app .financial-statement,
html:not([data-theme="dark"]) #app .sb-report-result .report-table{
  background:#fff!important;color:#111827!important
}
html:not([data-theme="dark"]) #app .sb-report-result .financial-statement thead th,
html:not([data-theme="dark"]) #app .financial-statement thead th,
html:not([data-theme="dark"]) #app .sb-report-result .report-table th,
html:not([data-theme="dark"]) #app .sb-report-result .report-table tfoot td{
  background:#fff!important;color:#111827!important;border-color:#111827!important
}
html:not([data-theme="dark"]) #app .sb-report-result .financial-statement td,
html:not([data-theme="dark"]) #app .financial-statement td,
html:not([data-theme="dark"]) #app .sb-report-result .report-table td{
  color:#111827!important;background:transparent!important
}
html:not([data-theme="dark"]) #app .sb-masthead h1,
html:not([data-theme="dark"]) #app .sb-report-identity h2,
html:not([data-theme="dark"]) #app .fs-highlights b,
html:not([data-theme="dark"]) #app .sb-ledger-group h3,
html:not([data-theme="dark"]) #app .fs-notes b{color:#111827!important}
html:not([data-theme="dark"]) #app .sb-masthead p{color:#1f2937!important}
html:not([data-theme="dark"]) #app .sb-masthead small,
html:not([data-theme="dark"]) #app .sb-report-identity small,
html:not([data-theme="dark"]) #app .fs-highlights small,
html:not([data-theme="dark"]) #app .fs-highlights em,
html:not([data-theme="dark"]) #app .fs-notes,
html:not([data-theme="dark"]) #app .fs-expand-hint,
html:not([data-theme="dark"]) #app .sb-report-kpis small,
html:not([data-theme="dark"]) #app .sb-period-inline>span,
html:not([data-theme="dark"]) #app .sb-fin-tools .sb-check{color:#3f4b5a!important}
html:not([data-theme="dark"]) #app .sb-period-inline select,
html:not([data-theme="dark"]) #app .sb-period-inline input:not([type=date]){color:#111827!important;background:#fff!important}
html:not([data-theme="dark"]) #app .fs-account-no{color:#0b5cab!important}
html:not([data-theme="dark"]) #app .fs-highlights article,
html:not([data-theme="dark"]) #app .sb-report-kpis span{background:#f8fafc!important;border-color:#d8dee6!important;color:#111827!important}
html:not([data-theme="dark"]) #app .fs-balanced{color:#c5d4e6!important}

html[data-theme="dark"] #app .sb-reports-controller,
html[data-theme="dark"] #app .sb-report-result,
html[data-theme="dark"] #app .financial-sheet{
  --rpt-ink:#edf2f7;--rpt-muted:#b4c3d4;--rpt-line:#2a4560;--rpt-soft:#162438;--rpt-white:#0e2136
}
html[data-theme="dark"] #app .sb-report-result,
html[data-theme="dark"] #app .sb-report-result .panel-head,
html[data-theme="dark"] #app .sb-report-result #sb-report-output,
html[data-theme="dark"] #app .sb-paper,
html[data-theme="dark"] #app .financial-sheet,
html[data-theme="dark"] #app .financial-statement,
html[data-theme="dark"] #app .sb-report-result .report-table,
html[data-theme="dark"] #app .table-wrap:has(.financial-statement),
html[data-theme="dark"] #app .table-wrap:has(.report-table){
  background:#0e2136!important;color:#edf2f7!important;border-color:#2a4560!important
}
html[data-theme="dark"] #app .sb-report-result .financial-statement thead th,
html[data-theme="dark"] #app .financial-statement thead th,
html[data-theme="dark"] #app .sb-report-result .report-table th,
html[data-theme="dark"] #app .sb-report-result .report-table thead th,
html[data-theme="dark"] #app .sb-report-result .report-table tfoot td,
html[data-theme="dark"] #app .sb-report-result .report-table th:first-child,
html[data-theme="dark"] #app .sb-report-result .report-table td:first-child{
  background:#13283f!important;color:#edf2f7!important;border-color:#2a4560!important
}
html[data-theme="dark"] #app .sb-report-result .financial-statement td,
html[data-theme="dark"] #app .financial-statement td,
html[data-theme="dark"] #app .sb-report-result .report-table td{
  background:transparent!important;color:#edf2f7!important;border-color:#243d56!important
}
html[data-theme="dark"] #app .sb-report-result .report-table tbody tr:hover,
html[data-theme="dark"] #app .financial-statement tr.is-interactive:hover,
html[data-theme="dark"] #app .sb-report-result .report-table tbody tr:hover td,
html[data-theme="dark"] #app .financial-statement tr.is-interactive:hover td{
  background:#15324c!important;color:#f4f8ff!important
}
html[data-theme="dark"] #app .sb-masthead,
html[data-theme="dark"] #app .sb-masthead h1,
html[data-theme="dark"] #app .sb-masthead div,
html[data-theme="dark"] #app .sb-report-identity h2,
html[data-theme="dark"] #app .fs-highlights b,
html[data-theme="dark"] #app .sb-ledger-group h3,
html[data-theme="dark"] #app .fs-notes b,
html[data-theme="dark"] #app .financial-statement thead .fs-currency,
html[data-theme="dark"] #app .report-table thead .fs-currency{color:#f4f8ff!important}
html[data-theme="dark"] #app .sb-masthead p,
html[data-theme="dark"] #app .sb-masthead small,
html[data-theme="dark"] #app .sb-report-identity small,
html[data-theme="dark"] #app .fs-highlights small,
html[data-theme="dark"] #app .fs-highlights em,
html[data-theme="dark"] #app .fs-notes,
html[data-theme="dark"] #app .fs-detail,
html[data-theme="dark"] #app .fs-expand-hint,
html[data-theme="dark"] #app .sb-report-kpis small,
html[data-theme="dark"] #app .sb-period-inline>span,
html[data-theme="dark"] #app .sb-fin-tools .sb-check,
html[data-theme="dark"] #app .sb-customer-group h4 small{color:#b4c3d4!important}
html[data-theme="dark"] #app .sb-period-inline select,
html[data-theme="dark"] #app .sb-period-inline input:not([type=date]){
  background:#0a1d31!important;color:#edf2f7!important;border-color:#35516d!important
}
html[data-theme="dark"] #app .fs-account-no{color:#7cbcff!important}
html[data-theme="dark"] #app .fs-highlights article,
html[data-theme="dark"] #app .sb-report-kpis span,
html[data-theme="dark"] #app .sb-compare-kpis article{
  background:#102338!important;border-color:#24384c!important;color:#edf2f7!important
}
html[data-theme="dark"] #app .fs-balanced{color:#d5e4f7!important}
html[data-theme="dark"] #app .financial-warning{color:#ffaaa5!important;background:#3d1c20!important;border-color:#7f3b42!important}
html[data-theme="dark"] #app .sb-report-result .financial-statement .fs-subtotal td,
html[data-theme="dark"] #app .sb-report-result .financial-statement .fs-grand td,
html[data-theme="dark"] #app .sb-report-result .financial-statement .fs-net td,
html[data-theme="dark"] #app .financial-statement .fs-subtotal td,
html[data-theme="dark"] #app .financial-statement .fs-grand td,
html[data-theme="dark"] #app .financial-statement .fs-net td{
  color:#f4f8ff!important;border-color:#c5d6e8!important
}
html[data-theme="dark"] #app .sb-report-period-bar{background:#162438!important;border-color:#2a4560!important;color:#edf2f7!important}
html[data-theme="dark"] .sb-report-preview-overlay,
html[data-theme="dark"] .sb-report-preview-bar{background:#07182b!important}
html[data-theme="dark"] .sb-report-preview-sheet{background:#0e2136!important;color:#edf2f7!important;box-shadow:0 10px 30px rgba(0,0,0,.4)}
html[data-theme="dark"] .sb-report-preview-sheet .sb-masthead,
html[data-theme="dark"] .sb-report-preview-sheet .financial-statement,
html[data-theme="dark"] .sb-report-preview-sheet .financial-statement td,
html[data-theme="dark"] .sb-report-preview-sheet .financial-statement th{color:#edf2f7!important;background:transparent!important}

.pl-outlook{display:none!important}
.financial-sheet{margin:0;padding:0}
.pl-out-bars{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr) 140px;gap:16px;align-items:center;margin:0 0 16px}
.pl-out-bars>div{display:grid;grid-template-columns:72px minmax(0,1fr) auto;gap:10px;align-items:center}
.pl-out-bars span{font-size:12px;color:#6b7280;font-weight:700}
.pl-out-bars b{font-variant-numeric:tabular-nums;white-space:nowrap}
.pl-out-bar{height:10px;background:#eef1f4;border-radius:4px;overflow:hidden}
.pl-out-bar i{display:block;height:100%;border-radius:4px}
.pl-out-bar i.is-income{background:#0c2340}
.pl-out-bar i.is-cost{background:#16365c}
.pl-out-margin{display:block!important;text-align:right}
.pl-out-margin span{display:block;margin-bottom:4px}
.pl-out-margin strong{font-size:20px}
.pl-out-filter{margin:0 0 12px}
.pl-out-filter select{min-height:36px;border:1px solid #d4d7dc;border-radius:4px;padding:6px 10px;background:#fff}
.pl-out-eq{display:grid;grid-template-columns:minmax(0,1fr) 24px minmax(0,1fr) 24px minmax(0,1fr);gap:10px;align-items:center;margin:0 0 16px}
.pl-out-eq div{border:1px solid #e5e7eb;border-radius:6px;padding:14px 12px;text-align:center;background:#fff}
.pl-out-eq b{display:block;font-size:22px;margin-bottom:4px;font-variant-numeric:tabular-nums}
.pl-out-eq span{display:block;font-size:11px;font-weight:800;letter-spacing:.04em;text-transform:uppercase;color:#6b7280}
.pl-out-eq .is-income b{color:#0c2340}
.pl-out-eq .is-cost b{color:#1d4e89}
.pl-out-eq em{text-align:center;font-style:normal;font-size:22px;color:#9ca3af}
.pl-out-grid{display:grid;grid-template-columns:1fr 1fr;gap:16px}
.pl-out-grid>div{border:1px solid #e5e7eb;border-radius:6px;overflow:hidden;background:#fff}
.pl-out-grid header{display:flex;justify-content:space-between;align-items:center;padding:10px 12px;background:#eef1f4;font-weight:800}
.pl-out-toggle{display:flex;justify-content:space-between;width:100%;border:0;border-bottom:1px solid #f0f2f4;background:transparent;padding:10px 12px;cursor:pointer;text-align:left;font:inherit}
.pl-out-toggle[disabled]{cursor:default}
.pl-out-toggle i{display:inline-block;width:0;height:0;border-top:5px solid transparent;border-bottom:5px solid transparent;border-left:6px solid #6b7280;margin-right:8px;transform:rotate(0);transition:transform .12s}
.pl-out-line.is-open .pl-out-toggle i{transform:rotate(90deg)}
.pl-out-kids{display:none;padding:0 12px 8px 28px}
.pl-out-line.is-open .pl-out-kids{display:block}
.pl-out-kids div{display:flex;justify-content:space-between;padding:6px 0;color:#4b5563}
.pl-out-line.is-payroll .pl-out-toggle{background:#f4f6f8}
.pl-out-line.is-dim{opacity:.45}
.pl-out-note{margin:12px 0 0;color:#6b7280;font-size:13px}
.sbpay-labor{margin:22px 0 0}
@media(max-width:900px){
  .pl-out-bars,.pl-out-eq,.pl-out-grid{grid-template-columns:1fr}
  .pl-out-eq em{display:none}
}
html[data-theme="dark"] .pl-out-eq div,
html[data-theme="dark"] .pl-out-grid>div,
html[data-theme="dark"] .pl-out-filter select{
  background:#0e2136!important;border-color:#2a4560!important;color:#eef4fb!important
}
html[data-theme="dark"] .pl-out-grid header{background:#15324c!important;color:#eef4fb!important}
html[data-theme="dark"] .pl-out-toggle{color:#eef4fb!important;border-color:#243d56!important}
html[data-theme="dark"] .pl-out-bar{background:#1a334c}
html[data-theme="dark"] .pl-out-line.is-payroll .pl-out-toggle{background:#0c2340!important}
html[data-theme="dark"] .pl-out-note,html[data-theme="dark"] .pl-out-bars span,html[data-theme="dark"] .pl-out-eq span{color:#b4c3d4}

.sb-report-preview-frame{
  display:block;
  width:100%;
  max-width:100%;
  border:0;
  overflow:hidden;
  background:#fff;
}

#modal-root .sb-report-customize-modal{height:auto!important;max-height:calc(100dvh - var(--sb-chrome-h,84px) - 24px)!important}
#modal-root .sb-report-customize-modal .modal-body{min-height:0;overflow:auto!important}
.sb-report-filter-row>*{min-width:0;box-sizing:border-box}
#sb-view-add-filter{margin-top:12px}


/* Refine existing report chrome and paper without changing report actions. */
@media screen{
html body #app .sb-report-result .panel-head{padding:10px 14px!important;gap:8px 14px!important}
html body #app .sb-report-period-bar{gap:10px 14px!important;padding:10px 14px!important;align-items:end!important}
html body #app .sb-report-period-bar input:not([type=checkbox]),html body #app .sb-report-period-bar select{box-sizing:border-box;min-height:34px!important;height:34px!important;font-size:13px!important}
html body #app .sb-report-result .sb-paper{padding:16px 18px!important}
html body #app .sb-report-result .sb-masthead{margin-bottom:14px!important;padding-bottom:12px!important}
html body #app .sb-report-result .sb-masthead h1{font-size:20px!important;margin:4px 0!important;line-height:1.3}
html body #app .sb-report-result .report-table :is(th,td){padding:8px 10px!important;line-height:1.4!important}
html body #app .sb-report-result .report-table tfoot td{font-weight:700;border-top:2px solid var(--rpt-ink,#0c2340)!important}
html body #app .sb-report-result .report-table tbody tr:hover td{background:var(--soft-blue,#f4f7fa)}
}

/* Statements own their financial columns; generic register sizing must not apply. */
@media screen{
html body #app .financial-statement{width:100%!important;min-width:760px!important;max-width:none!important;table-layout:fixed!important}
html body #app .financial-statement :is(th,td){min-width:0!important;max-width:none!important;white-space:normal!important;overflow-wrap:anywhere}
html body #app .financial-statement :is(.fs-col-no,.fs-no){width:88px!important}
html body #app .financial-statement .fs-col-name{width:auto!important}
html body #app .financial-statement th.num{width:140px!important}
html body #app .financial-statement td.num{white-space:nowrap!important;text-align:right!important}
html body #app .financial-sheet{overflow-x:auto!important}
html body #sb-report-list .sb-report-card{display:flex!important;break-inside:avoid!important;min-height:0!important;margin:0!important;padding:4px 5px!important}
html body #sb-report-list .sb-report-name{display:inline!important;min-width:0!important;overflow:visible!important;white-space:normal!important;height:auto!important}
html body #sb-report-list .sb-report-name h4{display:inline!important;visibility:visible!important;opacity:1!important;white-space:normal!important;overflow:visible!important;line-height:1.15!important}
html body[data-auth-state] #app .sb-report-result .report-table{
  width:100%!important;min-width:100%!important;max-width:none!important;table-layout:auto!important
}
html body[data-auth-state] #app .sb-report-result .report-table thead th,
html body[data-auth-state] #app .sb-report-result .report-table tbody td,
html body[data-auth-state] #app .sb-report-result .report-table tfoot td{
  height:auto!important;white-space:nowrap!important;overflow-wrap:normal!important;word-break:normal!important;overflow:visible!important;text-transform:none!important;letter-spacing:0!important
}
html body[data-auth-state] #app .sb-report-result .report-table thead th{
  background:var(--rpt-white,#fff)!important;vertical-align:bottom!important
}
html body[data-auth-state] #app .sb-report-result .report-table :is(th,td).num{
  text-align:right!important;text-align-last:right!important
}
html body[data-auth-state] #app .sb-report-result .report-table .sb-col-resizer{display:none!important}
}


/* Keep complete report headings readable; scroll wide tables on screen. */
#app .sb-report-result .table-wrap{overflow-x:auto!important;max-height:none}
html body[data-auth-state] #app .sb-report-result .report-table thead th{
  height:auto!important;white-space:normal!important;overflow-wrap:anywhere!important;
  overflow:visible!important;text-overflow:initial!important;vertical-align:bottom!important;
}

/* Frozen headers on financial statements (P&L, balance sheet, cash flow...). The inner .financial-sheet
   had overflow:auto without a height, so it captured the sticky header but never scrolled; the report
   output box (#sb-report-output) already scrolls both ways, so the sheet lets content flow to it. */
@media screen{
 html body[data-auth-state] #app#app#app .sb-report-result .financial-sheet{overflow:visible!important}
 .sb-report-result .financial-statement thead th,
 .sb-report-result .financial-statement thead th:first-child{position:sticky!important;top:0!important;z-index:3;background:var(--rpt-white,#fff)}
 /* Heading cells sit above body cells, including the account column that stays pinned on the left on phones. */
 html body[data-auth-state] #app#app#app .sb-report-result .financial-statement thead th{z-index:5!important}
}

/* === STANDARD APP CHROME LAYOUT === */
@media screen {
  html body[data-auth-state="authenticated"] {
    --esb-rail-w: 246px;
  }
  html body[data-auth-state="authenticated"].im-sidebar-collapsed {
    --esb-rail-w: 72px;
  }

  /* 1. Full-height dark sidebar always sits cleanly above top chrome */
  html body[data-auth-state="authenticated"] aside.sidebar {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    bottom: 0 !important;
    width: var(--esb-rail-w) !important;
    min-width: var(--esb-rail-w) !important;
    max-width: var(--esb-rail-w) !important;
    height: 100vh !important;
    z-index: 30050 !important;
    overflow: hidden !important;
    display: flex !important;
    flex-direction: column !important;
  }

  /* 2. Dock #sidebar-toggle inside the top-right corner of the sidebar header (standard SaaS pattern) */
  html body[data-auth-state="authenticated"] #sidebar-toggle,
  html body[data-auth-state="authenticated"] .sidebar-toggle {
    position: fixed !important;
    top: 14px !important;
    left: calc(var(--esb-rail-w) - 36px) !important;
    transform: none !important;
    width: 28px !important;
    height: 28px !important;
    border-radius: 6px !important;
    background: rgba(255, 255, 255, 0.10) !important;
    border: 1px solid rgba(255, 255, 255, 0.18) !important;
    color: #ffffff !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    z-index: 30060 !important;
    margin: 0 !important;
    padding: 0 !important;
    box-shadow: none !important;
    cursor: pointer !important;
  }
  html body[data-auth-state="authenticated"] #sidebar-toggle:hover,
  html body[data-auth-state="authenticated"] .sidebar-toggle:hover {
    background: rgba(255, 255, 255, 0.20) !important;
  }
  html body[data-auth-state="authenticated"] #sidebar-toggle svg,
  html body[data-auth-state="authenticated"] .sidebar-toggle svg {
    stroke: #ffffff !important;
    color: #ffffff !important;
    width: 15px !important;
    height: 15px !important;
  }
  /* Reserve space on the right of the brand row for the docked toggle button */
  html body[data-auth-state="authenticated"]:not(.im-sidebar-collapsed) aside.sidebar .brand,
  html body[data-auth-state="authenticated"]:not(.im-sidebar-collapsed) aside.sidebar .sidebar-brand,
  html body[data-auth-state="authenticated"]:not(.im-sidebar-collapsed) aside.sidebar > div:first-child {
    padding-right: 40px !important;
    box-sizing: border-box !important;
  }

  /* 3. Top menubar starts strictly to the right of the sidebar — never overlaps the logo */
  html body[data-auth-state="authenticated"] #global-menubar,
  html body[data-auth-state="authenticated"] #global-menubar.global-menubar,
  html body[data-auth-state="authenticated"] #global-menubar.menubar-global-menubar {
    position: fixed !important;
    top: 0 !important;
    left: var(--esb-rail-w) !important;
    right: 0 !important;
    width: calc(100% - var(--esb-rail-w)) !important;
    max-width: calc(100% - var(--esb-rail-w)) !important;
    margin-left: 0 !important;
    height: 38px !important;
    min-height: 38px !important;
    z-index: 30020 !important;
    box-sizing: border-box !important;
  }

  /* 4. Main workspace & page header align strictly to the right of the sidebar and below #global-menubar */
  html body[data-auth-state="authenticated"] .topbar,
  html body[data-auth-state="authenticated"] main {
    margin-left: var(--esb-rail-w) !important;
    width: calc(100% - var(--esb-rail-w)) !important;
    max-width: calc(100% - var(--esb-rail-w)) !important;
    box-sizing: border-box !important;
  }
  html body[data-auth-state="authenticated"] .topbar {
    margin-top: 38px !important;
    padding-left: 24px !important;
  }

  /* 5. Suppress collapsed rail tooltip when sidebar is expanded */
  html body[data-auth-state="authenticated"]:not(.im-sidebar-collapsed) #sb-rail-tip {
    display: none !important;
  }
}

/* Light theme: the eyebrow label was 4.36:1 on the page background; darker blue passes 4.5:1. */
html:not([data-theme="dark"]) .sb-report-eyebrow{color:#00659f}
