/* Absence and leave (module 27): balance cards, the month grid (a day list on phones), ledger, decision checks, approvals. */
.abs-bals { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 12px; }
.abs-bal { background: #fff; border: 1px solid #e3e9f1; border-radius: 14px; padding: 14px; min-width: 0; border-top: 4px solid var(--abs-c, #2083ee); }
.abs-bal .t { display: flex; justify-content: space-between; gap: 8px; font-weight: 700; color: #10233f; }
.abs-bal .t small { color: #6b7a8c; font-weight: 500; }
.abs-bal .v { margin: 6px 0 8px; }
.abs-bal .v b { font-size: 30px; line-height: 1; color: #10233f; }
.abs-bal .v span { color: #4b5b6e; font-size: 13px; }
.abs-bal dl { margin: 10px 0 0; display: grid; gap: 3px; font-size: 13px; }
.abs-bal dl div { display: flex; justify-content: space-between; gap: 8px; }
.abs-bal dt { color: #4b5b6e; }
.abs-bal dd { margin: 0; font-variant-numeric: tabular-nums; }
.abs-bal dl .proj { border-top: 1px dashed #d9e2ec; padding-top: 4px; margin-top: 2px; font-weight: 700; }
.abs-exp { margin: 8px 0 0; font-size: 12.5px; color: #b26b00; }
.abs-bar { display: inline-block; width: 100%; height: 8px; border-radius: 6px; background: #eef3f8; overflow: hidden; vertical-align: middle; }
td .abs-bar { width: 70%; }
.abs-bar i { display: block; height: 100%; background: var(--abs-c, #2083ee); border-radius: 6px; }
.c-blue { --abs-c: #2083ee; } .c-green { --abs-c: #13b985; } .c-amber { --abs-c: #f5a524; } .c-purple { --abs-c: #7553d6; } .c-coral { --abs-c: #ef5927; }
.c-teal { --abs-c: #29b6db; } .c-rose { --abs-c: #e8365d; } .c-slate { --abs-c: #97a6b8; } .c-navy { --abs-c: #1d4f8f; }
.abs-rules { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.abs-rules li { display: flex; gap: 10px; min-width: 0; }
.abs-rules li > i { color: #2083ee; font-size: 16px; flex: none; margin-top: 2px; }
.abs-rules li span { display: flex; flex-direction: column; font-size: 13.5px; line-height: 1.45; min-width: 0; }
.abs-rules b { font-size: 12px; text-transform: uppercase; letter-spacing: .03em; color: #6b7a8c; }
.abs-days { display: flex; flex-wrap: wrap; gap: 6px; }
.abs-day { display: flex; flex-direction: column; align-items: center; min-width: 46px; padding: 4px 6px; border: 1px solid #cfe4fb; background: #eaf4ff; border-radius: 8px; font-size: 11px; color: #4b5b6e; }
.abs-day b { font-size: 16px; color: #0962d3; }
.abs-day.half { background: repeating-linear-gradient(135deg, #eaf4ff 0 6px, #fff 6px 12px); }
.abs-day small { color: #0962d3; }
.abs-skip { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.abs-skip li { display: flex; flex-direction: column; font-size: 13px; }
.abs-ledger .pos { color: #04955d; } .abs-ledger .neg, .neg { color: #d23a10; }
.abs-decision .top { display: flex; flex-direction: column; margin-bottom: 8px; }
.abs-decision.approve .top b { color: #04955d; } .abs-decision.decline .top b { color: #d23a10; } .abs-decision.refer .top b { color: #b26b00; }
.abs-checks { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; font-size: 13px; }
.abs-checks li.ok i { color: #13b985; } .abs-checks li.no i { color: #ef5927; }
.abs-checks i { margin-right: 6px; }
.abs-reason { margin: 6px 0 0; font-size: 13px; color: #4b5b6e; }
.abs-help p { margin: 0 0 8px; font-size: 13.5px; line-height: 1.5; }
.abs-filter { display: flex; gap: 6px; flex-wrap: wrap; }
.abs-filter .ct-input { min-width: 0; max-width: 220px; }
.abs-cal-bar { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 10px; }
.abs-cal-bar b { font-size: 16px; min-width: 120px; text-align: center; }
.abs-grid-wrap { border: 1px solid #e3e9f1; border-radius: 10px; }
.abs-grid { border-collapse: collapse; width: 100%; font-size: 12px; }
.abs-grid th, .abs-grid td { border-bottom: 1px solid #eef2f7; border-right: 1px solid #f1f4f8; text-align: center; padding: 3px 1px; min-width: 26px; height: 30px; }
.abs-grid thead th { background: #f6f8fb; font-weight: 600; color: #4b5b6e; position: sticky; top: 0; }
.abs-grid thead th span { display: block; font-size: 10px; color: #8a9bb0; }
.abs-grid .who { text-align: left; padding: 4px 8px; min-width: 150px; max-width: 190px; position: sticky; left: 0; background: #fff; z-index: 1; }
.abs-grid thead .who { background: #f6f8fb; z-index: 2; }
.abs-grid .who b { display: block; font-size: 12.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.abs-grid .who small { display: block; color: #8a9bb0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.abs-grid .we, .abs-grid td.off { background: #f3f5f8; }
.abs-grid td.hol { background: #fff7e6; color: #e08a00; }
.abs-grid .today { box-shadow: inset 0 0 0 2px #2083ee; }
.abs-grid tfoot td, .abs-grid tfoot th { background: #f6f8fb; font-weight: 700; color: #4b5b6e; }
.abs-grid tfoot td.warn { background: #fdecc8; color: #8a5a00; }
.abs-chip { display: inline-block; min-width: 24px; padding: 2px 3px; border-radius: 5px; color: #fff; font-size: 9.5px; font-weight: 700; background: var(--abs-c, #2083ee); line-height: 1.4; }
.abs-chip.pend { background: repeating-linear-gradient(135deg, var(--abs-c, #2083ee) 0 4px, rgba(255,255,255,.55) 4px 7px); color: #10233f; }
.abs-chip.half { background: linear-gradient(90deg, var(--abs-c, #2083ee) 50%, #dfe7f1 50%); }
.abs-legend { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 10px; font-size: 12px; color: #4b5b6e; align-items: center; }
.abs-legend > span { display: inline-flex; gap: 5px; align-items: center; }
.abs-legend .bi-star-fill, .abs-grid .bi-star-fill { color: #f5a524; }
.abs-sw { display: inline-block; width: 16px; height: 12px; border-radius: 3px; background: #f3f5f8; border: 1px solid #e3e9f1; }
.abs-hols { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.abs-hols span { background: #fff7e6; border: 1px solid #f5dfa3; border-radius: 12px; padding: 3px 10px; font-size: 12px; }
.abs-hols small { color: #8a5a00; }
.abs-daylist { display: none; }
.abs-dl-day { display: flex; gap: 10px; padding: 8px 0; border-bottom: 1px solid #eef2f7; }
.abs-dl-day.today .dd { background: #2083ee; color: #fff; }
.abs-dl-day .dd { flex: none; width: 44px; height: 44px; border-radius: 10px; background: #eef3f8; display: flex; flex-direction: column; align-items: center; justify-content: center; line-height: 1.1; }
.abs-dl-day .dd b { font-size: 16px; }
.abs-dl-day .dd span { font-size: 11px; }
.abs-dl-day ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 3px; min-width: 0; font-size: 13.5px; }
.abs-dot { display: inline-block; width: 9px; height: 9px; border-radius: 50%; background: var(--abs-c, #2083ee); margin-right: 6px; }
.abs-mini { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.abs-mini li { display: grid; grid-template-columns: 1fr auto; gap: 0 8px; }
.abs-mini li b { font-size: 18px; }
.abs-mini li small { grid-column: 1 / -1; color: #6b7a8c; }
.abs-appr { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.abs-appr > div { display: flex; flex-direction: column; min-width: 0; }
.abs-appr small { color: #6b7a8c; font-size: 12px; }
.abs-appr b { font-size: 18px; }
.abs-appr-act { display: flex; gap: 10px; flex-wrap: wrap; align-items: flex-end; margin-top: 12px; border-top: 1px solid #eef2f7; padding-top: 12px; }
.abs-decline { display: flex; gap: 8px; align-items: flex-end; flex-wrap: wrap; flex: 1; min-width: 0; }
.abs-decline .ct-field { flex: 1; min-width: 180px; }
@media (max-width: 720px) {
    .abs-grid-wrap { display: none; }
    .abs-daylist { display: block; }
    .abs-appr { grid-template-columns: 1fr; }
}
