/* Calendar presentation only. No source or extraction changes. */
#calendarTable tbody td:first-child:has(.contact-actions){padding-right:108px}#calendarTable td:first-child .contact-actions{display:flex;flex-direction:column;gap:1px;right:5px;width:98px;align-items:center}#calendarTable .contact-buttons{display:flex;gap:3px;align-items:center;justify-content:center}#calendarTable .contact-buttons a,#calendarTable .contact-disabled{display:inline-flex;align-items:center;justify-content:center;height:21px;min-width:23px;padding:0 3px;border-radius:5px;font-size:10px;text-decoration:none;font-weight:600}#calendarTable .contact-wa{background:#145c40;color:#a4f2ca;border:1px solid #2d805d}#calendarTable .contact-call{background:#203d58;color:#b6d9fa;border:1px solid #385e7d}#calendarTable .contact-disabled{background:#142b3c;color:#466174;border:1px solid #233c4e;cursor:default}#calendarTable td:first-child .contact-buttons button{height:21px;font-size:8px;padding:0 3px}#calendarTable td:first-child .contact-number{display:block;font-size:9px;height:13px;line-height:12px;padding:0 2px;border:0;background:transparent;color:#95b8d3;white-space:nowrap}#calendarTable .contact-number:hover{text-decoration:underline;color:#c6e4fa}#contactEditor{width:420px}#contactEditor form{display:flex;flex-direction:column;gap:10px}#contactEditor h2{font-size:18px;margin:0}#contactEditor p{font-size:12px;line-height:1.5;margin:0}#contactEditor label{font-size:12px}#contactEditor input{height:35px;font-size:14px}#contactError{color:#ffd09b}
body:has(.attendance-header){padding:6px 8px;gap:5px}.attendance-header{height:34px!important;gap:12px;flex:none}.attendance-header h1{font-size:18px;white-space:nowrap;margin:0}.attendance-header a{white-space:nowrap;font-size:11px}#quickFilters{display:flex;gap:7px;align-items:center;flex:1;justify-content:flex-end;min-width:0}#quickFilters input,#quickFilters select,#quickFilters button{height:29px;font-size:11px;padding:4px 8px}#quickFilters #search{width:min(300px,26vw);min-width:130px}#quickFilters #stateFilter{width:160px}#quickFilters #roleFilter{width:210px;max-width:21vw}#quickFilters #openFilters{white-space:nowrap}body:has(.attendance-header) #main{gap:0}body:has(.attendance-header) #main>.panel{flex:1;margin:0}body:has(.attendance-header) .pagination{height:24px;padding:2px 9px}body:has(.attendance-header) #count{font-size:10px}
#filtersDialog{width:620px;max-width:95vw;padding:18px}#filtersDialog::backdrop{background:#020b14aa}.filters-title{display:flex;justify-content:space-between;align-items:center;gap:20px}.filters-title h2{margin:0;font-size:18px}.filters-title button{height:29px}.filter-explanation{font-size:12px;line-height:1.5;color:#9fb7cd}#filtersDialog .toolbar{display:flex;flex-wrap:wrap;gap:10px;align-items:end;margin:15px 0}#filtersDialog .toolbar label{width:calc(33.333% - 8px)!important;flex:none!important;min-width:0!important;font-size:11px}#filtersDialog .toolbar input,#filtersDialog .toolbar select{width:100%;height:32px}#filtersDialog .toolbar button{height:31px;font-size:11px}#filtersDialog #status{display:block;white-space:normal;overflow:visible;line-height:1.5;margin:12px 0;font-size:12px;color:#a6c6df}#filtersDialog #notice.calendar-legend{display:flex;flex-wrap:wrap;white-space:normal;margin:12px 0;font-size:10px;gap:10px}#filtersDialog .legend-hint{display:none}#filtersDialog .actions{margin-top:14px}#filtersDialog .actions button{height:32px}
@media(max-width:1000px){.attendance-header{gap:7px}#quickFilters{gap:4px}#quickFilters #search{width:20vw;min-width:110px}#quickFilters #roleFilter{width:160px}#quickFilters #stateFilter{width:140px}.attendance-header a{font-size:10px}}
.legend-rest{color:#a9caff;background:#243e60}.legend-scheduled{color:#6ac9b0;border:1px solid #386c60}.calendar-cell.rest .cell-badge{background:#243e60!important;color:#b7d4ff!important}.calendar-cell.scheduled .cell-badge{background:transparent!important;border:1px solid #346c5e;color:#72b9a7!important}.calendar-cell.absence .cell-badge{background:#503d23!important;color:#e8c98e!important}.day-summary{display:flex;gap:12px;align-items:center;padding:12px;background:#173248;border-radius:8px;margin-bottom:14px}.day-code{display:inline-block;min-width:42px;line-height:40px;text-align:center;font-size:18px;border-radius:7px;background:#214e3e;color:#8cefc9}.day-code.medical{background:#57421f;color:#ffda8b}.day-code.rest{background:#243e60;color:#b7d4ff}.location-reference{color:#8ccfff}.location-note{font-size:11px;color:#8da8bc;line-height:1.4}.license-detail{padding:9px;border-left:3px solid #e4bd70;background:#40371f44}.daily-marks td:first-child{font-size:15px;font-weight:600}.daily-marks th:first-child{width:90px!important}.daily-marks th:nth-child(2){width:100px!important}
body{padding:10px;gap:6px;background:#091725}header{height:29px}h1{font-size:19px;font-weight:650;letter-spacing:-.3px}header a{font-size:12px}.toolbar{gap:7px;align-items:end}.toolbar label{font-size:11px}.toolbar input,.toolbar select,.toolbar button{height:31px;font-size:12px}.toolbar button{padding:4px 10px;max-width:none;font-size:11px;white-space:nowrap}.toolbar label:nth-child(2){width:90px}.toolbar label:nth-child(3),.toolbar label:nth-child(4){width:130px}
#notice.calendar-legend{display:flex;gap:15px;align-items:center;flex-wrap:nowrap;padding:5px 8px;min-height:28px;font-size:11px;background:#10273a;border:1px solid #203c53;border-radius:7px;white-space:nowrap}.calendar-legend>span{display:inline-flex;align-items:center;gap:5px}.calendar-legend b{display:inline-block;min-width:20px;line-height:18px;text-align:center;border-radius:4px;font-size:10px}.legend-mark{background:#104636;color:#73ecc0}.legend-license{background:#5b4421;color:#ffda8c}.legend-zero{color:#678197;background:#13293a}.legend-missing{color:#536a7f}.legend-contract{color:#a9a0ff}.calendar-legend .legend-hint{margin-left:auto;color:#8da9bd;font-size:10px}
.panel{border-color:#284256;background:#0c2030;border-radius:9px}.scroll{scrollbar-color:#3c566d #10283c;scrollbar-width:thin}#calendarTable{table-layout:fixed;border-collapse:separate;width:100%;font-size:11px}#calendarTable th,#calendarTable td{width:auto!important;min-width:0!important}#calendarTable th{position:sticky!important;z-index:3;background:#142e43;color:#a7c2d8;border-bottom:1px solid #2a455b}#calendarTable .month-row th{top:0;height:24px;padding:3px 6px;font-size:11px}#calendarTable .month-heading{text-transform:capitalize;text-align:center;letter-spacing:.5px}#calendarTable .date-row th{top:24px;height:27px;font-size:11px;padding:3px 0!important;text-align:center;font-variant-numeric:tabular-nums}#calendarTable .people-heading{text-align:left;color:#d7e8f6;font-size:11px;letter-spacing:.5px;padding:7px 9px!important;vertical-align:middle;top:0;z-index:5}#calendarTable .people-heading small{display:block;font-size:10px;letter-spacing:0;color:#7fa0b9;margin-top:3px;font-weight:400}#calendarTable th.weekend{color:#668ba5;background:#11293c}
#calendarTable tbody tr{background:#0c2030}#calendarTable tbody tr:nth-child(even){background:#102638}#calendarTable tbody tr:hover{background:#173246}#calendarTable tbody td{height:40px!important;border-bottom:1px solid #20384b}#calendarTable tbody td:first-child{padding:5px 78px 5px 9px;position:relative!important;background:inherit}#calendarTable td:first-child b{font-size:12px;line-height:15px;font-weight:600;color:#e0edf8}#calendarTable td:first-child>small{font-size:10px;line-height:13px;color:#87a5bc}#calendarTable td:first-child .person-actions{right:6px;gap:3px}#calendarTable td:first-child .person-actions button{height:23px;font-size:9px;padding:0 4px;background:#152e43;border-color:#2c4960;color:#aac4d9}
#calendarTable .calendar-cell{padding:0!important;text-align:center;vertical-align:middle;position:relative!important;border-right:1px solid #28405233;outline-offset:-2px}#calendarTable .cell-badge{display:block;width:calc(100% - 4px);max-width:29px;min-width:0;margin:auto;border-radius:4px;height:23px;line-height:23px;font-size:11px;font-weight:600;font-variant-numeric:tabular-nums;overflow:hidden}#calendarTable .marked .cell-badge{background:#124838;color:#75eabe}#calendarTable .medical .cell-badge{background:#57421f;color:#ffdb8d;font-size:10px}#calendarTable .empty .cell-badge{color:#3d5a70;font-size:15px;font-weight:400}#calendarTable .missing .cell-badge{color:#536a7e;font-weight:400;font-size:11px}#calendarTable .summary .cell-badge{color:#97acc0;background:#253a4b;font-size:10px}#calendarTable td.calendar-cell:hover,#calendarTable td.calendar-cell:focus-visible{background:#294b62;outline:1px solid #78b4d9}#calendarTable .month-edge{border-left:2px solid #496174!important}#calendarTable .today-column{box-shadow:inset 1px 0 #3d7ba5,inset -1px 0 #3d7ba5;background-color:#13354a}#calendarTable th.today-column{color:#9ed7ff}#calendarTable .license-flag{position:absolute;right:1px;top:3px;width:5px;height:5px;background:#ffd278;border-radius:50%}#calendarTable .contract-flag{position:absolute;left:1px;bottom:3px;width:5px;height:5px;background:#aca2ff;transform:rotate(45deg)}
.pagination{height:30px;padding:4px 9px;border-top:1px solid #29445a;background:#10283b}#count{font-size:11px;color:#b7cddd}#dayRange{font-size:10px;color:#789ab2}#status,#source{font-size:10px;color:#82a7c0}#dailyDetail th,#dailyDetail td{position:static!important}#dailyDetail td:first-child{padding:7px!important}#dailyDetail .actions button{height:30px}
@media(max-width:1100px){#notice.calendar-legend{gap:9px;font-size:10px}.calendar-legend .legend-hint{display:none}#calendarTable td:first-child b{font-size:11px}#calendarTable tbody td:first-child{padding-right:63px}#calendarTable td:first-child .person-actions button{font-size:8px;padding:0 2px}#calendarTable .cell-badge{width:calc(100% - 2px);font-size:10px}#calendarTable .medical .cell-badge{font-size:9px}.toolbar label:nth-child(3),.toolbar label:nth-child(4){width:112px}}

/* Compact daily departures card, sharing the attendance table. */
#departureCard{display:flex;align-items:center;gap:4px;flex:none;border:1px solid #355974;border-radius:7px;background:#102d43;padding:2px 5px;height:33px}#departureCard label{display:block;margin:0;color:#95c9ed;font-size:10px;white-space:nowrap}#quickFilters #departureDay{width:158px;max-width:18vw;height:26px;border:0;background:#173b55;padding:3px 5px;font-size:10px}#quickFilters #clearDeparture{width:21px;height:23px;padding:0;font-size:16px;border:0;background:transparent;color:#a5d8fa}@media(max-width:1100px){#departureCard label{font-size:9px;max-width:44px;white-space:normal;line-height:10px}#quickFilters #departureDay{width:142px;max-width:18vw}#quickFilters #roleFilter{max-width:13vw}#quickFilters #search{min-width:80px;width:15vw}}

.calendar-cell.mark-rest-warning .cell-badge{background:#633f10;color:#ffe09a;outline:1px solid #dda632;font-size:9px;white-space:nowrap}

/* Only visible people are mounted; spacer rows preserve continuous scrolling. */
#calendarTable{border-spacing:0}
#calendarTable #rows tr:not(.attendance-spacer){height:90px}
#calendarTable #rows tr:not(.attendance-spacer)>td{height:90px!important;box-sizing:border-box}
#calendarTable #rows .attendance-spacer>td{padding:0!important;border:0!important;background:transparent!important;line-height:0;font-size:0}
.scroll{overflow-anchor:none}

#calendarTable td:first-child>.attendance-person-cargo{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;font-size:10px;line-height:12px;color:#c2d8e9;margin:2px 0;white-space:normal;overflow-wrap:anywhere}
