/* Keep headings in their original table area while rows scroll underneath. */
.table-wrap:has(>table>thead),.zsc-table-wrap:has(>table>thead){max-height:min(65vh,650px);overflow:auto!important;overscroll-behavior:contain;scrollbar-gutter:stable}
.table-wrap>table,.zsc-table-wrap>table{border-collapse:separate!important;border-spacing:0;width:100%}
.table-wrap>table>thead,.zsc-table-wrap>table>thead{position:sticky;top:0;z-index:3;background:#f5f8fd}
.table-wrap>table>thead th,.zsc-table-wrap>table>thead th{background:#f5f8fd;box-shadow:0 1px 0 #dce6f5;white-space:nowrap}
.zf-order-sort{display:inline-flex;gap:3px;margin-left:6px;vertical-align:middle}
.zf-order-sort button{padding:1px 5px;border:1px solid #d2def1;border-radius:4px;background:#fff;color:#315a97;line-height:1.5}
.zf-order-sort button[aria-pressed=true]{background:#275ff1;color:#fff;border-color:#275ff1}
.zf-day-button{border:0;background:transparent;color:#245994;padding:3px;text-align:left;white-space:nowrap}
.zf-day-button[aria-pressed=true]{background:#e3ecff;border-radius:4px;font-weight:bold}
.zf-range-active{font-size:13px;color:#245be9;padding:10px 12px;background:#eff4ff;border-radius:7px}
.zf-promotion-table table{table-layout:fixed;min-width:1100px}
.zf-promotion-table th:nth-child(1){width:9%}.zf-promotion-table th:nth-child(2),.zf-promotion-table th:nth-child(3),.zf-promotion-table th:nth-child(5),.zf-promotion-table th:nth-child(6){width:10%}.zf-promotion-table th:nth-child(4){width:20%}.zf-promotion-table th:last-child{width:31%}
.zf-promotion-table td:last-child{white-space:normal!important;overflow-wrap:anywhere;line-height:1.7;font-size:12px}

/* Match header alignment to each column's cell alignment, including nested tables. */
#zf-root .zsc table>thead>tr>th,#zf-root .zsc table>tbody>tr>td{ text-align:right }
#zf-root .zsc table>thead>tr>th:first-child,#zf-root .zsc table>tbody>tr>td:first-child,
#zf-root .zsc table>thead>tr>th:last-child,#zf-root .zsc table>tbody>tr>td:last-child{ text-align:left }
#zf-root .zla table>thead>tr>th,#zf-root .zla table>tbody>tr>td{ text-align:right }
#zf-root .zla table>thead>tr>th:first-child,#zf-root .zla table>tbody>tr>td:first-child,
#zf-root .zla table>thead>tr>th:last-child,#zf-root .zla table>tbody>tr>td:last-child{ text-align:left }
#zf-root .zf-recent-fixed{background:#fff3cf!important;border:1px solid #d8ad43!important;color:#805300!important;font-weight:700;white-space:nowrap}
#zf-root .zf-recent-fixed.is-active{background:#d8a533!important;border-color:#b78519!important;color:#352300!important;box-shadow:0 0 0 2px #f8e7b5}
#zf-root .zf-recent-fixed:disabled{opacity:.65;cursor:default}
