.aging-toolbar{display:flex;align-items:end;flex-wrap:wrap;gap:12px;margin-bottom:16px}
.aging-toolbar label{display:grid;gap:6px;min-width:130px;flex:1;font-size:12px;font-weight:600}
.aging-toolbar label:nth-child(2){min-width:240px;flex:2}
.aging-toolbar input,.aging-toolbar select{width:100%;min-width:0}
.aging-source-note{padding:12px 16px;border-left:3px solid #bd841d;background:#fff7e5;font-size:13px;line-height:1.5}
.aging-layout{display:grid;grid-template-columns:minmax(160px,16%) minmax(0,1fr);gap:16px;align-items:start}
.aging-charts{display:grid;gap:16px;min-width:0}
.aging-chart,.aging-register{overflow:hidden;padding:0}
.aging-chart h2,.aging-register h2{background:#ed2923;color:white!important;padding:12px 16px;margin:0;font-size:17px}
.aging-chart>div{padding:16px;max-height:420px;overflow:auto}
.aging-bar-row{display:grid;grid-template-columns:1fr auto;gap:6px;margin-bottom:16px;font-size:12px}
.aging-bar-track{grid-column:1/-1}
.aging-bar-track progress{display:block;width:100%;height:14px;border:0;background:#eef1f5;accent-color:#193e70}
.aging-bar-track progress::-webkit-progress-bar{background:#eef1f5}
.aging-bar-track progress::-webkit-progress-value{background:#193e70}
.aging-register .aging-table-wrap{max-height:1050px}
.aging-table{width:100%;font-size:12px;white-space:nowrap}
.aging-table thead{position:sticky;top:0;z-index:1;background:white}
.aging-table tbody tr:nth-child(even){background:#f0f0f0}
.aging-table td,.aging-table th{padding:8px 6px}
.aging-number{text-align:right;font-variant-numeric:tabular-nums}
.aging-table tfoot{background:#ed2923;color:white;position:sticky;bottom:0}
.customer-panel .aging-table-wrap{max-height:450px}
@media(max-width:1100px){.aging-layout{grid-template-columns:1fr}.aging-charts{grid-template-columns:repeat(auto-fit,minmax(240px,1fr))}}
@media print{.aging-toolbar{display:none}.aging-layout{display:block}.aging-charts{display:none}.aging-register .aging-table-wrap{max-height:none;overflow:visible}.aging-table{font-size:8px;white-space:normal}.aging-table td,.aging-table th{padding:4px}.aging-table thead,.aging-table tfoot{position:static}}

.aging-table th{white-space:normal}
.aging-table .activity-sort{font-size:inherit;white-space:normal}
.aging-table td:nth-child(5){white-space:normal;min-width:110px;max-width:180px}
.aging-chart h2{font-size:14px;padding:10px}
.aging-chart>div{padding:10px}
.aging-bar-row{grid-template-columns:1fr}
#aging-workspace .aging-register .aging-table tfoot,
#aging-workspace .aging-register .aging-table tfoot tr,
#aging-workspace .aging-register .aging-table tfoot th {
  background: #f00000 !important;
  color: #fff !important;
  -webkit-text-fill-color: #fff !important;
}
#aging-workspace .aging-register .aging-table tfoot th {
  font-size: 16px;
  font-weight: 700;
  padding: 10px 6px;
}