/* v285: reporting workspace, isolated from the other modules. */
body:has(.reports-v285.active) .main{background:#f5f7f6!important}
.reports-v285{--report-accent:#087f63;--report-tint:#eff7f3;--report-tint-border:#d5e8df;--report-ink:#20362f;--report-muted:#7a8982;container-type:inline-size;container-name:reports;min-width:0;color:var(--report-ink)}
.reports-v285.active{display:flex!important;flex-direction:column;gap:22px!important;padding:12px 2px 28px}
.reports-v285 .reports-workspace-header{display:flex;align-items:center;justify-content:space-between;gap:20px;padding:4px 0}
.reports-v285 .reports-eyebrow{font-size:10px;letter-spacing:.13em;font-weight:650;color:var(--report-muted);margin-bottom:8px}
.reports-v285 .reports-workspace-header h2{font-size:30px;letter-spacing:-.04em;line-height:1.2;font-weight:650;margin:0 0 8px;color:var(--report-ink)}
.reports-v285 .reports-workspace-header p{font-size:13px;line-height:1.6;color:var(--report-muted);margin:0;max-width:600px}
.reports-v285 .reports-workspace-tag{display:inline-flex;align-items:center;gap:8px;border:1px solid #dfe8e2;border-radius:8px;background:#fff;padding:9px 12px;font-size:11px;color:#6e8376;white-space:nowrap}
.reports-v285 .card{background:#fff!important;border:1px solid #e2e9e4!important;border-radius:14px!important;padding:24px!important;box-shadow:0 2px 4px rgba(25,50,35,.025)!important;min-width:0;margin:0!important}
.reports-v285 .card-title{color:var(--report-ink)!important;font-size:15px!important;line-height:1.4;font-weight:650!important;letter-spacing:-.02em!important;margin:0 0 5px!important}
.reports-v285 .card-subtitle{color:var(--report-muted)!important;font-size:11px!important;font-weight:400!important;line-height:1.6;margin:0!important}
.reports-v285 .reports-filter-heading{display:flex;align-items:center;gap:12px;padding-bottom:18px;border-bottom:1px solid #edf1ee}
.reports-v285 .reports-filter-icon{width:36px;height:36px;display:grid;place-items:center;border-radius:9px;background:var(--report-tint);color:var(--report-accent);font-size:15px;flex-shrink:0}
#page-reports.reports-v285 .report-type-row{max-width:100%;margin:18px 0}
#page-reports.reports-v285 .report-type-row .field{max-width:480px;min-width:0!important;width:100%}
#page-reports.reports-v285 #reportType{font-size:13px!important;font-weight:600!important;background:#f7faf8!important;border-color:#d7e4dc!important}
#page-reports.reports-v285 .report-filter-grid{grid-template-columns:repeat(4,minmax(0,1fr));gap:14px!important}
.reports-v285 .field{min-width:0!important;margin:0!important}
.reports-v285 .field label{color:#647b6c!important;font-weight:550!important;font-size:11px!important;letter-spacing:0!important;margin-bottom:7px!important;line-height:1.5}
.reports-v285 .input,.reports-v285 select,.reports-v285 .choices__inner{border:1px solid #dce6df!important;border-radius:8px!important;background:#fff!important;box-shadow:none!important;color:#3c5748!important;min-height:40px;font-size:12px!important;font-weight:450!important;padding:9px 11px!important}
.reports-v285 .input:focus,.reports-v285 select:focus,.reports-v285 .choices.is-focused .choices__inner{border-color:var(--report-accent)!important;outline:2px solid var(--report-tint);outline-offset:1px}
.reports-v285 .choices{margin:0!important;min-width:0!important;width:100%!important}
.reports-v285 .choices__inner{display:flex;align-items:center!important;min-height:40px!important;padding:6px 11px!important}
.reports-v285 .choices__list--single{padding:0!important;width:100%;line-height:1.5}
.reports-v285 .choices__list--single .choices__item{font-size:12px!important;color:#3c5748!important;font-weight:450!important}
.reports-v285 .choices__list--dropdown{border-color:#dce6df!important;border-radius:9px!important;box-shadow:0 10px 30px rgba(20,50,35,.1)!important;z-index:30!important}
.reports-v285 .choices__list--dropdown .choices__item{font-size:12px!important;line-height:1.5;color:#3c5748;font-weight:450!important;padding:9px 12px!important}
.reports-v285 .btn{display:inline-flex!important;align-items:center;justify-content:center;gap:7px;border:1px solid #dce6df!important;border-radius:8px!important;box-shadow:none!important;font-family:inherit;font-size:12px!important;font-weight:550!important;min-height:38px;padding:9px 13px!important;transform:none!important;white-space:nowrap;background:#fff!important;color:#55705f!important}
.reports-v285 .btn::after{content:none!important}
.reports-v285 .btn:hover{background:#f2f7f3!important;border-color:#c5d8cb!important}
.reports-v285 .btn:focus-visible{outline:3px solid #9ad5bc;outline-offset:3px}
.reports-v285 .btn-primary{background:var(--report-accent)!important;border-color:var(--report-accent)!important;color:#fff!important}
.reports-v285 .btn-primary:hover{background:var(--report-accent)!important;border-color:var(--report-accent)!important;color:#fff!important;filter:brightness(.94)}
.reports-v285 .btn-success{background:#f0f8f2!important;border-color:#d3e7d7!important;color:#33734c!important}
.reports-v285 .btn-warning{background:#fff5ef!important;border-color:#f0dfd0!important;color:#b37a44!important}
.reports-v285 .btn:disabled{opacity:.45;cursor:not-allowed}
#page-reports.reports-v285 .report-action-row{justify-content:space-between;gap:12px;margin-top:22px;border-top:1px solid #edf1ee;padding-top:18px}
#page-reports.reports-v285 .report-action-row .btn{min-width:0;flex:0 0 auto}
.reports-v285 .reports-run-actions,.reports-v285 .reports-export-actions{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
#page-reports.reports-v285 #v186PresetBar{grid-column:1/-1;padding-bottom:2px}
#page-reports.reports-v285 #v186PresetBar>div{gap:6px!important;margin:0!important}
#page-reports.reports-v285 #v186PresetBar .btn{min-height:30px;padding:6px 10px!important;font-size:10px!important;border-radius:6px!important;background:#f7faf8!important;color:#6a8273!important}
.reports-v285 .reports-empty{display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;min-height:270px;background:#fafcfb!important;border-style:dashed!important}
.reports-v285 .reports-empty-icon{width:50px;height:50px;display:grid;place-items:center;border-radius:13px;background:#edf5f0;color:#8cbaa2;font-size:22px;margin-bottom:15px}
.reports-v285 .reports-empty h3{margin:0 0 8px;color:#516e5d;font-size:16px;font-weight:550}
.reports-v285 .reports-empty p{margin:0;max-width:350px;color:#96a399;font-size:12px;line-height:1.7}
.reports-v285 #reportResults,.reports-v285 #customerReportResults{min-width:0}
.reports-v285 .report-print-card{overflow:hidden!important;padding:24px!important}
.reports-v285 .business-report-header{display:flex!important;flex-direction:column!important;align-items:stretch!important;gap:0!important;border:0!important;border-bottom:1px solid #e8eeea!important;border-radius:0!important;background:#fff!important;padding:0 0 21px!important;margin:0 0 21px!important;box-shadow:none!important;text-align:left!important}
.reports-v285 .business-report-header-top{display:flex;align-items:center}
.reports-v285 .business-report-brand{display:flex!important;flex-direction:row!important;align-items:center;gap:13px;min-width:0}
.reports-v285 .business-report-brand>div:last-child{min-width:0}
.reports-v285 .business-logo-wrap{width:43px!important;height:43px!important;min-width:43px!important;background:var(--report-tint)!important;border:1px solid var(--report-tint-border)!important;border-radius:10px!important;display:grid;place-items:center;box-shadow:none!important;overflow:hidden}
.reports-v285 .business-logo,.reports-v285 .business-logo-placeholder{width:34px!important;height:34px!important;min-width:0!important;max-width:34px!important;max-height:34px!important;background:transparent!important;color:var(--report-accent)!important;font-size:17px!important;object-fit:contain;box-shadow:none!important}
.reports-v285 .business-report-header h1{font-size:14px!important;line-height:1.5!important;color:#4a6555!important;letter-spacing:0!important;font-weight:600!important;margin:0!important}
.reports-v285 .business-report-header p{font-size:10px!important;line-height:1.7!important;color:#96a096!important;margin:2px 0 0!important;overflow-wrap:anywhere}
.reports-v285 .business-report-title-row{display:flex!important;flex-direction:row!important;align-items:center!important;justify-content:space-between!important;gap:16px;margin-top:22px}
.reports-v285 .business-report-header h2{font-size:23px!important;line-height:1.35!important;text-transform:none!important;letter-spacing:-.03em!important;font-weight:650!important;color:#243f31!important;background:transparent!important;border:0!important;border-radius:0!important;padding:0!important;margin:0!important}
.reports-v285 .business-report-meta{font-size:10px!important;line-height:1.7!important;font-weight:400!important;background:transparent!important;border:0!important;color:#8c9b91!important;padding:0!important;box-shadow:none!important;border-radius:0!important;text-align:right;overflow-wrap:anywhere;max-width:60%}
.reports-v285 .reports-overview{display:flex;flex-direction:column;gap:14px;margin-bottom:22px}
.reports-v285 .reports-summary-metrics{display:grid;grid-template-columns:repeat(var(--report-summary-count,4),minmax(0,1fr));gap:12px}
.reports-v285 .reports-summary-metric{border:1px solid #e4ebe6;border-radius:10px;padding:16px;background:#f9fbfa;min-width:0}
.reports-v285 .reports-summary-metric:first-child{background:var(--report-tint);border-color:var(--report-tint-border)}
.reports-v285 .reports-summary-metric span{display:block;font-size:10px;text-transform:uppercase;letter-spacing:.04em;color:#7c9285;font-weight:500;line-height:1.5;margin-bottom:10px}
.reports-v285 .reports-summary-metric b{font-size:24px;line-height:1.3;font-weight:600;letter-spacing:-.03em;color:#2d5640;overflow-wrap:anywhere;display:block}
.reports-v285 .reports-summary-secondary{display:grid;grid-template-columns:repeat(auto-fit,minmax(130px,1fr));gap:8px}
.reports-v285 .reports-summary-filters{display:flex;flex-wrap:wrap;gap:8px;padding-top:5px}
.reports-v285 .reports-summary-detail{display:flex;align-items:center;gap:6px;border:1px solid #e6eee8;border-radius:6px;background:#fff;padding:6px 9px;font-size:10px;line-height:1.5;min-width:0;max-width:100%}
.reports-v285 .reports-summary-detail span{color:#95a298;flex-shrink:0}
.reports-v285 .reports-summary-detail b{font-weight:500;color:#5e7766;overflow-wrap:anywhere}
.reports-v285 .reports-summary-secondary .reports-summary-detail{flex-direction:column;align-items:flex-start;gap:5px;padding:12px}
.reports-v285 .reports-summary-secondary b{font-size:15px;font-weight:550}
.reports-v285 .reports-summary-metric.urgent,.reports-v285 .reports-summary-detail.urgent{background:#fff5f4;border-color:#f1d5d2}
.reports-v285 .reports-summary-metric.urgent b,.reports-v285 .reports-summary-detail.urgent b{color:#b45550}
.reports-v285 .reports-summary-metric.warning,.reports-v285 .reports-summary-detail.warning{background:#fff9ec;border-color:#eddfbe}
.reports-v285 .reports-summary-metric.warning b,.reports-v285 .reports-summary-detail.warning b{color:#a77b3a}
.reports-v285 .reports-summary-metric.aging-current b,.reports-v285 .reports-summary-detail.aging-current b{color:#047857}
.reports-v285 .reports-summary-metric.aging-30 b,.reports-v285 .reports-summary-detail.aging-30 b{color:#b45309}
.reports-v285 .reports-summary-metric.aging-60 b,.reports-v285 .reports-summary-detail.aging-60 b{color:#c2410c}
.reports-v285 .reports-summary-metric.aging-90 b,.reports-v285 .reports-summary-detail.aging-90 b{color:#dc2626}
.reports-v285 .report-print-summary,.reports-v285 .report-original-print-summary,.reports-v285 .reports-document-v285>.ledger-summary-grid{display:none!important}
.reports-v285 .table-refreshbar{display:flex;justify-content:flex-end;margin:0 0 12px!important}
.reports-v285 .table-refreshbar .btn{min-height:30px;padding:6px 11px!important;font-size:10px!important;background:#f7faf8!important}
.reports-v285 .table-wrap{background:#fff!important;border:1px solid #e3ebe5!important;border-radius:10px!important;padding:0!important;box-shadow:none!important;max-width:100%;overflow-x:auto!important;overscroll-behavior-x:contain;scrollbar-width:thin;scrollbar-color:#bfd5c8 #f7faf8}
.reports-v285 .table{border-collapse:collapse!important;border-spacing:0!important;min-width:100%!important;font-size:12px!important}
.reports-v285 .table th{background:#f4f8f5!important;color:#728779!important;font-size:10px!important;line-height:1.5!important;font-weight:600!important;text-transform:uppercase;letter-spacing:.025em!important;padding:12px!important;border:0!important;border-bottom:1px solid #e2ebe5!important;white-space:nowrap!important;border-radius:0!important}
.reports-v285 .table td{background:#fff!important;color:#476352!important;font-size:11px!important;font-weight:400!important;padding:13px 12px!important;line-height:1.6!important;border:0!important;border-bottom:1px solid #edf2ee!important;white-space:nowrap!important}
.reports-v285 .table tbody tr:nth-child(even) td{background:#fbfdfb!important}
.reports-v285 .table tbody tr:hover td{background:#f3f9f5!important}
.reports-v285 .table tfoot td{background:var(--report-tint)!important;border-top:1px solid var(--report-tint-border)!important;font-weight:600!important;color:#476352!important}
.reports-v285 .table .table-actions{display:flex;gap:5px;flex-wrap:nowrap}
.reports-v285 .table .btn{min-height:29px;font-size:10px!important;padding:6px 8px!important;gap:5px}
.reports-v285 .pagination{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-top:14px!important;font-size:10px;color:#8c9e90;flex-wrap:wrap}
.reports-v285 .pagination .btn{font-size:10px!important;min-height:30px;padding:6px 10px!important}
.reports-v285 .notice{border-radius:8px!important;font-size:11px;line-height:1.6;box-shadow:none!important}
#page-customerreport.reports-v285 .card-head{align-items:center;gap:18px;margin-bottom:18px;padding-bottom:18px;border-bottom:1px solid #edf1ee}
#page-customerreport.reports-v285 .customer-report-filter-toolbar{display:flex;align-items:flex-end;gap:14px;flex-wrap:wrap}
#page-customerreport.reports-v285 .customer-report-customer-field{flex:1 1 280px!important;min-width:0!important;max-width:100%!important}
#page-customerreport.reports-v285 .customer-report-filter-toolbar>.field:nth-child(2){flex:0 1 180px}
#page-customerreport.reports-v285 .customer-report-filter-toolbar>.field:nth-child(3){flex:1 1 100%;padding:0!important;margin:4px 0!important}
#page-customerreport.reports-v285 .customer-report-filter-toolbar>.field:nth-child(3) label{display:flex;align-items:center;margin:0!important;gap:8px;font-size:11px!important;font-weight:400!important}
#page-customerreport.reports-v285 .customer-report-filter-toolbar>.field:nth-child(3) label{text-transform:none!important}
#page-customerreport.reports-v285 .customer-report-customer-choices .choices__list--dropdown{width:100%!important;min-width:100%!important;max-width:min(600px,calc(100vw - 48px))!important}
@container reports (max-width:1000px){
  #page-reports.reports-v285 .report-filter-grid{grid-template-columns:repeat(3,minmax(0,1fr))}
  .reports-v285 .reports-summary-metric b{font-size:21px}
}
@container reports (max-width:740px){
  #page-reports.reports-v285 .report-filter-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  .reports-v285 .reports-summary-metrics{grid-template-columns:repeat(2,minmax(0,1fr))}
  .reports-v285 .reports-workspace-tag{display:none}
  .reports-v285 .business-report-title-row{flex-direction:column!important;align-items:flex-start!important;gap:8px}
  .reports-v285 .business-report-meta{max-width:100%;text-align:left}
}
@container reports (max-width:480px){
  .reports-v285 .reports-workspace-header h2{font-size:26px}
  .reports-v285 .reports-workspace-header p{font-size:12px}
  .reports-v285 .card,.reports-v285 .report-print-card{padding:17px!important}
  #page-reports.reports-v285 .report-filter-grid{grid-template-columns:1fr;gap:13px!important}
  .reports-v285 .report-action-row{align-items:stretch}
  .reports-v285 .reports-run-actions,.reports-v285 .reports-export-actions{width:100%}
  #page-reports.reports-v285 .report-action-row .btn{flex:1 1 auto}
  .reports-v285 .reports-summary-metric{padding:13px}
  .reports-v285 .reports-summary-metric b{font-size:21px}
  .reports-v285 .reports-summary-detail{flex-wrap:wrap}
  .reports-v285 .business-report-header h2{font-size:21px!important}
  #page-customerreport.reports-v285 .card-head{flex-direction:column;align-items:flex-start}
  #page-customerreport.reports-v285 .customer-report-filter-toolbar>.field{flex:1 1 100%!important;width:100%}
  #page-customerreport.reports-v285 .customer-report-filter-toolbar>.btn{flex:1 1 auto}
}
/* Remove the legacy desktop sidebar offset on the reporting pages only. */
@media(max-width:980px){
  body:has(.reports-v285.active) .main{margin-left:0!important;width:100%!important;max-width:100%!important;min-width:0!important;padding:12px 12px 80px!important}
  body:has(.reports-v285.active) .topbar{height:auto!important;min-height:64px!important;padding:12px!important;flex-wrap:wrap;gap:10px!important;min-width:0;max-width:100%}
  body:has(.reports-v285.active) .topbar>.top-left{flex:1;min-width:0;gap:8px!important}
  body:has(.reports-v285.active) .topbar>div:nth-child(2){order:3;flex:1 0 100%!important;max-width:none!important;margin:0!important;min-width:0}
  body:has(.reports-v285.active) .topbar .top-title{font-size:16px!important}
  body:has(.reports-v285.active) #todayText{font-size:9px!important;line-height:1.5;white-space:normal}
  body:has(.reports-v285.active) #sidebarToggle{width:32px;min-width:32px;height:32px;min-height:32px;padding:7px!important}
  body:has(.reports-v285.active) .topbar .btn{padding:8px 10px!important;font-size:11px!important;min-height:32px;gap:5px}
  body:has(.reports-v285.active) .topbar .user-pill{padding:7px!important}
  body:has(.reports-v285.active) #globalSearchDropdown{min-width:0!important;max-width:100%!important}
  body:has(.reports-v285.active) #notifPanel{max-width:calc(100vw - 32px)!important}
}
