.schedule-actions,.schedule-toolbar{display:flex;gap:10px;align-items:center;flex-wrap:wrap}.schedule-toolbar{margin:20px 0}.schedule-toolbar label{display:flex;gap:8px;align-items:center}.schedule-toolbar input{width:175px}.schedule-scroll{max-width:100%;overflow:auto;background:#fff;border:1px solid #dce3ef;border-radius:12px}.schedule-table{border-collapse:collapse;width:max-content;min-width:100%;font-size:13px}.schedule-table th,.schedule-table td{border:1px solid #d8dfeb;text-align:center;padding:0;min-width:46px}.schedule-table thead th{background:#e9e9ff;padding:9px 5px;color:#475575}.schedule-table th small{display:block;font-size:11px;font-weight:400;line-height:1.8}.schedule-table th:first-child{position:sticky;left:0;min-width:130px;padding:8px;background:#f5f6ff;z-index:1}.schedule-table td button{border:0;background:transparent;border-radius:0;width:100%;min-height:45px;padding:8px 5px;color:#243b53;position:relative}.schedule-table td button:disabled{opacity:1;cursor:default}.schedule-team-0{background:#edf1f8}.schedule-team-1{background:#fff3c4}.schedule-team-2{background:#d8f2ff}.schedule-team-3{background:#e6f3d5}.schedule-table td.schedule-rest{background:#f9d2d6}.schedule-rest button{color:#a42637!important}.schedule-table i{position:absolute;font-size:8px;right:3px;top:3px;color:#bb7000}.schedule-table .schedule-today{box-shadow:inset 0 -3px #6c74ee}.schedule-reason{max-width:280px;white-space:pre-wrap;overflow-wrap:anywhere}#leave-section{margin-top:28px}#schedule-pending b{background:#e66846;color:white;padding:2px 7px;border-radius:12px}.schedule-page .heading{flex-wrap:wrap;gap:14px}@media(max-width:650px){.schedule-table th:first-child{min-width:90px}.schedule-actions button{padding:8px;font-size:12px}}

#leave-section .table-wrap table{min-width:720px}
/* Fixed role colors and three reference columns. */
.schedule-table{--shift-width:145px;--team-width:105px;--name-width:95px}.schedule-table th:nth-child(-n+2){position:sticky;z-index:2;background:#edf0fa;min-width:0;box-sizing:border-box}.schedule-table th:nth-child(1){left:0;width:var(--team-width);min-width:var(--team-width)}.schedule-table th:nth-child(2){left:var(--team-width);width:var(--name-width);min-width:var(--name-width)}.schedule-table tr.schedule-team-0 th:nth-child(n+1),.schedule-team-0{background:#e4e5e8}.schedule-table tr.schedule-team-1 th:nth-child(n+2),.schedule-team-1{background:#ffe49b}.schedule-table tr.schedule-team-2 th:nth-child(n+2),.schedule-team-2{background:#b5e8fc}.schedule-table tr.schedule-team-3 th:nth-child(n+2),.schedule-team-3{background:#d0e9a7}.schedule-team--1{background:#ede5fa}.schedule-table td small,.leave-kind{display:block;font-size:11px;margin-top:4px}.schedule-table td{min-width:65px}.schedule-table td.schedule-half{background:#ffebcc}.schedule-table td.schedule-rest{background:#f9c4cd}@media(max-width:650px){.schedule-table{--shift-width:80px;--team-width:75px;--name-width:65px}.schedule-table th{font-size:11px;white-space:normal}}

.bulk-date-grid{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:7px;margin:16px 0}.bulk-date-grid label{border:1px solid #dce1f1;border-radius:8px;padding:9px 4px;display:flex;flex-direction:column;align-items:center;gap:4px;cursor:pointer}.bulk-date-grid input{width:auto}.bulk-date-grid label:has(input:checked){background:#e7e9ff;border-color:#737ef5}.bulk-date-grid small{font-size:11px}@media(max-width:500px){.bulk-date-grid{grid-template-columns:repeat(5,minmax(0,1fr))}}
.schedule-table tr.schedule-team-4 th,.schedule-team-4{background:#e5d8fa}
