
/* v48 — locked visual theme shared by Payment Hub + ERP Reports.
   Accounts Receivable remains the ERP Reports geometry reference.
   This layer changes presentation only; report data/calculations are untouched. */
body:has(#erpReportsTab.active) .top-company-bar{display:none!important;}
body:has(#erpReportsTab.active) .main-content{padding:0!important;overflow:hidden!important;background:#f3f7fc!important;}
#erpReportsTab.active{
  min-height:100vh!important;
  background:linear-gradient(180deg,#eef6ff 0,#f8fbff 150px,#f3f7fc 100%)!important;
  color:#102344!important;
  font-family:Inter,Roboto,"Segoe UI",Arial,sans-serif!important;
}
/* Common ERP Report Center shell — same palette as Payment Hub. */
#erpReportsTab .erp-center-header,
#erpReportsTab .erp-report-filters,
#erpReportsTab .erp-ar-card,
#erpReportsTab .erp-ar-report,
#erpReportsTab #erpSourcePayable,
#erpReportsTab #erpSourceParty{
  background:rgba(255,255,255,.96)!important;
  border-color:#e1ebf5!important;
  box-shadow:0 4px 14px rgba(15,49,91,.045)!important;
}
#erpReportsTab .erp-center-header{color:#102344!important;}
#erpReportsTab .erp-center-header .title,
#erpReportsTab .erp-ar-table-head h3{color:#102344!important;}
#erpReportsTab .erp-center-header .subtitle,
#erpReportsTab .text-light{color:#4f6b91!important;}
#erpReportsTab .erp-report-selector,
#erpReportsTab .form-control,
#erpReportsTab .erp-ar-search{
  background:#fff!important;
  border-color:#d9e5f2!important;
  color:#173a6b!important;
}
#erpReportsTab .erp-report-date{background:#f8fbff!important;border-color:#dbe5f0!important;}
#erpReportsTab .erp-date-icon{background:#eef6ff!important;color:#1688ff!important;}
/* One table-header palette across ERP Reports; no prominent underline. */
#erpReportsTab .erp-ar-table th,
#erpReportsTab .erp-ap-table th,
#erpReportsTab .erp-party-table th{
  background:#dbe7f3!important;
  color:#17365e!important;
  border-bottom:0!important;
}
#erpReportsTab .erp-ar-table td,
#erpReportsTab .erp-ap-table td,
#erpReportsTab .erp-party-table td{border-bottom-color:#e7eef6!important;background:#fff;}
#erpReportsTab .erp-ar-table-footer{border-top-color:#edf2f7!important;color:#6380a1!important;background:#fff!important;}
#erpReportsTab .erp-ar-page-btn.active{background:#187cf4!important;border-color:#187cf4!important;color:#fff!important;}
/* Party Summary uses the same report geometry scale as Receivable. */
#erpReportsTab.erp-view-party{padding-top:0!important;padding-bottom:8px!important;overflow:visible!important;}
#erpReportsTab.erp-view-party .erp-center-header{min-height:58px!important;height:58px!important;padding:8px 12px!important;margin:0 10px 8px!important;border-radius:10px!important;}
#erpReportsTab.erp-view-party .erp-center-title-wrap{gap:10px!important;}
#erpReportsTab.erp-view-party .erp-center-icon{width:32px!important;height:32px!important;flex:0 0 32px!important;border-radius:8px!important;font-size:14px!important;}
#erpReportsTab.erp-view-party .erp-center-header .title{font-size:21px!important;font-weight:600!important;line-height:1.1!important;}
#erpReportsTab.erp-view-party .erp-center-header .subtitle,#erpReportsTab.erp-view-party .erp-center-header .erp-center-title-wrap>div>div{font-size:10.5px!important;margin-top:2px!important;line-height:1.2!important;}
#erpReportsTab.erp-view-party .erp-header-actions{gap:6px!important;}
#erpReportsTab.erp-view-party .erp-header-actions .btn{height:32px!important;padding:0 10px!important;border-radius:7px!important;font-size:10.5px!important;font-weight:500!important;}
#erpReportsTab.erp-view-party .erp-report-filters{min-height:62px!important;height:auto!important;padding:8px 10px!important;margin:0 10px 8px!important;border-radius:10px!important;display:grid!important;grid-template-columns:minmax(210px,1.15fr) repeat(3,minmax(0,1fr))!important;column-gap:8px!important;align-items:end!important;}
#erpReportsTab.erp-view-party .erp-report-toolbar{display:contents!important;}
#erpReportsTab.erp-view-party .erp-report-toolbar>div:first-child{min-width:0!important;grid-column:1!important;}
#erpReportsTab.erp-view-party #erpReportSelectionNote,#erpReportsTab.erp-view-party #erpReportFilterHint{display:none!important;}
#erpReportsTab.erp-view-party .erp-report-filters>.form-grid{display:contents!important;}
#erpReportsTab.erp-view-party .erp-report-filter{min-width:0!important;margin:0!important;}
#erpReportsTab.erp-view-party .erp-report-toolbar label,#erpReportsTab.erp-view-party .form-group label{font-size:10.5px!important;font-weight:500!important;margin:0 0 3px!important;line-height:1!important;}
#erpReportsTab.erp-view-party .erp-report-selector,#erpReportsTab.erp-view-party .form-control{width:100%!important;min-width:0!important;height:32px!important;font-size:11px!important;border-radius:7px!important;padding:0 8px!important;}
#erpReportsTab.erp-view-party #erpPartyHero{min-height:40px!important;margin:0 10px 6px!important;padding:0 2px!important;gap:10px!important;align-items:center!important;}
#erpReportsTab.erp-view-party #erpPartyHero h2{font-size:20px!important;font-weight:600!important;margin:0 0 1px!important;line-height:1.05!important;}
#erpReportsTab.erp-view-party #erpPartyHero>div:first-child>div{font-size:10.5px!important;line-height:1.2!important;color:#64748b!important;}
#erpReportsTab.erp-view-party .erp-report-date{min-width:165px!important;height:36px!important;padding:4px 8px!important;border-radius:8px!important;gap:7px!important;}
#erpReportsTab.erp-view-party .erp-date-icon{width:26px!important;height:26px!important;border-radius:7px!important;font-size:12px!important;}
#erpReportsTab.erp-view-party .erp-report-date strong{font-size:10px!important;}
#erpReportsTab.erp-view-party .erp-report-date span:last-child{font-size:9.5px!important;margin-top:0!important;}
#erpReportsTab.erp-view-party #erpPartyKpis{gap:10px!important;margin:0 10px 8px!important;}
#erpReportsTab.erp-view-party #erpPartyKpis .erp-ar-card{min-height:74px!important;height:74px!important;padding:9px 12px!important;gap:10px!important;border-radius:10px!important;}
#erpReportsTab.erp-view-party #erpPartyKpis .erp-ar-icon{width:32px!important;height:32px!important;flex:0 0 32px!important;border-radius:8px!important;font-size:13px!important;}
#erpReportsTab.erp-view-party #erpPartyKpis .erp-ar-card small{font-size:10.5px!important;font-weight:500!important;margin-bottom:2px!important;}
#erpReportsTab.erp-view-party #erpPartyKpis .erp-ar-card strong{font-size:18px!important;font-weight:600!important;line-height:1.05!important;}
#erpReportsTab.erp-view-party #erpSelectedReportArea{margin:0 10px!important;min-height:0!important;}
#erpReportsTab.erp-view-party #erpSourceParty{border-radius:10px!important;overflow:hidden!important;}
#erpReportsTab.erp-view-party .erp-ar-table-head{min-height:44px!important;padding:7px 10px!important;gap:10px!important;}
#erpReportsTab.erp-view-party .erp-ar-table-head h3{font-size:16px!important;font-weight:600!important;line-height:1.1!important;}
#erpReportsTab.erp-view-party .erp-ar-search{height:30px!important;border-radius:7px!important;padding:0 8px!important;}
#erpReportsTab.erp-view-party .erp-party-table{font-size:11px!important;}
#erpReportsTab.erp-view-party .erp-party-table th{font-size:10px!important;font-weight:600!important;padding:7px 5px!important;}
#erpReportsTab.erp-view-party .erp-party-table td{font-size:10.5px!important;padding:7px 5px!important;line-height:1.1!important;}
#erpReportsTab.erp-view-party .erp-ar-table-footer{min-height:34px!important;padding:6px 10px!important;font-size:10px!important;}
@media(max-height:700px){
 #erpReportsTab.erp-view-party .erp-center-header{height:54px!important;min-height:54px!important;margin-bottom:6px!important;}
 #erpReportsTab.erp-view-party .erp-report-filters{min-height:58px!important;margin-bottom:6px!important;padding-top:6px!important;padding-bottom:6px!important;}
 #erpReportsTab.erp-view-party #erpPartyKpis{margin-bottom:6px!important;}
 #erpReportsTab.erp-view-party #erpPartyKpis .erp-ar-card{height:68px!important;min-height:68px!important;}
}
