/* Staff Leave Balances: independent sidebar screen, compact exports, employee-card palette */
.abacus-al #al-staff-leave-balances .al-balance-export-actions{display:flex!important;flex-direction:row!important;align-items:center;justify-content:flex-start;gap:12px;flex-wrap:wrap;margin:14px 0 18px;width:auto!important}
.abacus-al #al-staff-leave-balances .al-balance-export-actions .al-btn{display:inline-flex!important;align-items:center;justify-content:center;width:auto!important;max-width:none!important;min-width:130px;padding:10px 18px!important;flex:0 0 auto!important;margin:0!important}
.abacus-al #al-staff-leave-balances .al-balance-table-wrap{overflow-x:auto;max-width:100%}
.abacus-al #al-balance-table th:nth-child(3),.abacus-al #al-balance-table td:nth-child(3){color:#173b60;font-weight:700}
.abacus-al #al-balance-table th:nth-child(4),.abacus-al #al-balance-table td:nth-child(4){color:#b72e45;font-weight:700}
.abacus-al #al-balance-table th:nth-child(5),.abacus-al #al-balance-table td:nth-child(5){color:#9b5a08;font-weight:700}
.abacus-al #al-balance-table th:nth-child(6),.abacus-al #al-balance-table td:nth-child(6){color:#16754e;font-weight:700}
.abacus-al #al-balance-table thead th:nth-child(3){border-top:4px solid #173b60}
.abacus-al #al-balance-table thead th:nth-child(4){border-top:4px solid #b72e45}
.abacus-al #al-balance-table thead th:nth-child(5){border-top:4px solid #bc7c18}
.abacus-al #al-balance-table thead th:nth-child(6){border-top:4px solid #16754e}
@media(max-width:500px){.abacus-al #al-staff-leave-balances .al-balance-export-actions{gap:8px}.abacus-al #al-staff-leave-balances .al-balance-export-actions .al-btn{min-width:0;padding:10px 12px!important;font-size:12px}}

/* v0.9.53: colour-coded cell backgrounds, strong grid and exports below table. */
.abacus-al #al-staff-leave-balances #al-balance-table{width:100%;border-collapse:separate!important;border-spacing:0!important;border:1px solid #d8e2ea!important;border-radius:9px;overflow:hidden;background:#fff}
.abacus-al #al-staff-leave-balances #al-balance-table th,.abacus-al #al-staff-leave-balances #al-balance-table td{padding:12px 13px!important;border-right:1px solid #d8e2ea!important;border-bottom:1px solid #d8e2ea!important;vertical-align:middle}
.abacus-al #al-staff-leave-balances #al-balance-table tr>*:last-child{border-right:0!important}
.abacus-al #al-staff-leave-balances #al-balance-table tbody tr:last-child td{border-bottom:0!important}
.abacus-al #al-staff-leave-balances #al-balance-table thead th{background:#eaf0f5!important;color:#283e50!important;font-weight:700!important}
.abacus-al #al-staff-leave-balances #al-balance-table tbody td:nth-child(1),.abacus-al #al-staff-leave-balances #al-balance-table tbody td:nth-child(2){background:#f9fbfd!important;color:#263d50!important}
.abacus-al #al-staff-leave-balances #al-balance-table tbody td:nth-child(3){background:#e9f2fa!important;color:#173b60!important}
.abacus-al #al-staff-leave-balances #al-balance-table tbody td:nth-child(4){background:#fcebef!important;color:#b72e45!important}
.abacus-al #al-staff-leave-balances #al-balance-table tbody td:nth-child(5){background:#fff3dd!important;color:#9b5a08!important}
.abacus-al #al-staff-leave-balances #al-balance-table tbody td:nth-child(6){background:#e5f5ec!important;color:#16754e!important}
.abacus-al #al-staff-leave-balances #al-balance-table thead th:nth-child(3){border-top:4px solid #173b60!important}
.abacus-al #al-staff-leave-balances #al-balance-table thead th:nth-child(4){border-top:4px solid #b72e45!important}
.abacus-al #al-staff-leave-balances #al-balance-table thead th:nth-child(5){border-top:4px solid #bc7c18!important}
.abacus-al #al-staff-leave-balances #al-balance-table thead th:nth-child(6){border-top:4px solid #16754e!important}
.abacus-al #al-staff-leave-balances .al-balance-export-actions{margin:18px 0 12px!important}
.abacus-al #al-staff-leave-balances #al-balance-table tbody tr[hidden]{display:none!important}
@media(max-width:720px){.abacus-al #al-staff-leave-balances #al-balance-table{min-width:720px}.abacus-al #al-staff-leave-balances #al-balance-table th,.abacus-al #al-staff-leave-balances #al-balance-table td{padding:10px!important}}
