/* V5.3 | Typography only, no column reordering and no forced wrapping. */
/* Current dashboard */
.employee-scroll .debt-entity-table{table-layout:fixed;min-width:1080px;width:100%}
.employee-scroll .debt-entity-table th,
.employee-scroll .debt-entity-table td{box-sizing:border-box}
.employee-scroll .debt-entity-table td{font-size:13.5px!important;line-height:1.35;padding:12px 8px!important}
.employee-scroll .debt-entity-table tbody td:first-child{width:17%;font-size:13.2px!important}
.employee-scroll .debt-entity-table tbody td:nth-child(2){width:28%}
.employee-scroll .debt-entity-table tbody td:nth-child(n+3):nth-child(-n+6){width:10.9%;font-size:14px!important}
.employee-scroll .debt-entity-table tbody td:nth-child(7){width:5.7%}
.employee-scroll .debt-entity-table tbody td:nth-child(8){width:5.7%}
.employee-scroll .debt-entity-table tbody td,
.employee-scroll .debt-entity-table .nameLine{white-space:nowrap!important}
.employee-scroll .debt-entity-table tbody td:nth-child(-n+2){overflow:hidden;text-overflow:ellipsis}
.employee-scroll .debt-entity-table tbody td:nth-child(2) > *{white-space:nowrap!important;max-width:100%}
.employee-scroll .debt-entity-table tbody td .btn.small{font-size:12px!important;padding:7px 7px!important}
.debt-entity-table thead .debt-company span{font-size:11px!important}
.debt-entity-table thead .debt-company strong{font-size:13px!important}
.debt-entity-table thead .debt-head-period b{font-size:12px!important}
.debt-entity-table thead .debt-head-period small{font-size:10.8px!important;white-space:nowrap!important}
.debt-entity-table thead .debt-head-period th{padding:9px 4px!important}
.employee-scroll thead .debt-head-group th[rowspan]{font-size:12.5px!important}
.detail-grid-scroll tbody td{font-size:13.2px!important;line-height:1.35}
.detail-grid-scroll tbody td.num,.detail-grid-scroll tbody .ticker{white-space:nowrap}
.detail-grid-scroll thead th{font-size:12px!important}
.qtyFilterNote{font-size:12px;color:#8a5b1b;font-weight:750;background:#fff7e7;padding:7px 16px;border-bottom:1px solid #f3d9a0}
.dark .qtyFilterNote{color:#f5d19f;background:#342916;border-color:#71512a}
/* Historical monthly table */
.history-entity-table{table-layout:fixed;min-width:1080px!important;width:100%}
.history-entity-table tbody td{font-size:13.3px!important;line-height:1.35;padding:11px 8px!important}
.history-entity-table tbody td{white-space:nowrap!important}
.history-entity-table tbody td:nth-child(-n+2){overflow:hidden;text-overflow:ellipsis}
.history-entity-table .cash{font-size:14px!important}
.history-entity-table .history-head-period b{font-size:12px!important}
.history-entity-table .history-head-period small{font-size:10.8px!important;white-space:nowrap!important}
.history-entity-table .entity-company span{font-size:11px!important}
.history-entity-table .entity-company strong{font-size:13px!important}
.history-entity-table thead th{font-size:12px!important}
.history-entity-table .miniBtn{font-size:12px!important}
#detailView .tableBox tbody td{font-size:13.2px!important}
#detailView .tableBox thead th{font-size:12px!important}
@media(max-width:1250px){
 .employee-scroll .debt-entity-table,.history-entity-table{min-width:1080px!important}
}

/* Wider fixed tracks keep all four amount columns and name labels aligned. */
.employee-scroll .debt-entity-table thead th.debt-fixed{white-space:nowrap!important}
.employee-scroll .debt-entity-table thead th.debt-staff{min-width:0!important}
.history-entity-table{table-layout:auto!important;min-width:1100px!important}
.history-entity-table thead th[rowspan]{white-space:nowrap!important;min-width:190px}
.history-entity-table thead th[rowspan]:nth-child(2){min-width:220px}
.history-entity-table tbody td:nth-child(-n+2){max-width:290px}

/* 8 stable historical columns; switch to 7 for cross-month search. */
.history-entity-table{table-layout:fixed!important;min-width:1040px!important}
.history-entity-table thead th[rowspan]{min-width:0!important}
.history-entity-table thead th[rowspan]:nth-child(2){min-width:0!important}
.history-entity-table tbody td:nth-child(-n+2){max-width:none!important}
.history-entity-table tbody td:last-child .miniBtn{font-size:11.8px!important;padding:5px 7px!important}

/* Legibility with a hard ceiling on numeric glyph width. */
.employee-scroll .debt-entity-table tbody td.money-cell{font-size:13.5px!important;padding-inline:4px!important;overflow:hidden;text-overflow:ellipsis}
.history-entity-table tbody td.cash{font-size:clamp(12px,0.96vw,14px)!important;padding-inline:4px!important;overflow:hidden;text-overflow:ellipsis}
.employee-scroll .debt-entity-table tbody tr td.money-cell:nth-child(n+3):nth-child(-n+6){font-size:13.5px!important;padding-inline:4px!important;overflow:hidden;text-overflow:ellipsis}
