/* Schedule module — clean, compact, responsive. */
.schedule-page{display:grid;gap:18px}.schedule-card{background:#fff;border:1px solid #e2e7ed;border-radius:16px;box-shadow:0 2px 10px rgba(23,32,51,.035);overflow:hidden}.schedule-card-head{display:flex;align-items:center;justify-content:space-between;gap:20px;padding:22px 24px;border-bottom:1px solid #edf0f4}.schedule-create-card>.schedule-card-head{border-bottom:0}.schedule-title-wrap{display:flex;align-items:center;gap:13px;min-width:0}.schedule-icon{width:38px;height:38px;flex:0 0 38px;border-radius:11px;background:#eef0ff;color:#3942a5;display:grid;place-items:center;font-size:20px;font-weight:700}.schedule-kicker{display:block;font-size:10px;letter-spacing:.11em;text-transform:uppercase;font-weight:800;color:#7b83a4}.schedule-card h2{font-size:19px;margin:4px 0 0;color:#172033}.schedule-card p{margin:5px 0 0;color:#687386;font-size:13px}.schedule-new-btn{background:#4246b8;border-color:#4246b8;box-shadow:0 5px 12px rgba(66,70,184,.16)}.schedule-status-filter{min-width:125px;height:38px}.schedule-table{width:100%;overflow-x:auto}.schedule-table-head,.schedule-row{min-width:760px;display:grid;grid-template-columns:1.25fr 1fr 1.15fr 1.25fr .8fr 62px;gap:16px;align-items:center}.schedule-table-head{padding:11px 24px;background:#fafbfc;border-bottom:1px solid #e8ebf0;color:#7b8493;font-size:10px;letter-spacing:.09em;text-transform:uppercase;font-weight:800}.schedule-row{padding:14px 24px;border-bottom:1px solid #edf0f4;font-size:13px;color:#39445a}.schedule-row:last-child{border-bottom:0}.schedule-row:hover{background:#fcfcff}.schedule-row b,.schedule-row small{display:block}.schedule-row small{font-size:11px;color:#7b8596;margin-top:3px}.schedule-person b{color:#172033}.schedule-dates{font-size:12px;color:#687386}.schedule-edit{height:32px;padding:0 9px;font-size:12px}.schedule-empty{text-align:center;padding:62px 20px 68px}.schedule-empty-icon{width:58px;height:58px;margin:0 auto 15px;border-radius:50%;background:#f0f1ff;color:#5458bd;display:grid;place-items:center;font-size:28px}.schedule-empty h3{margin:0;font-size:19px}.schedule-empty p{margin:7px 0 18px}.schedule-empty .secondary-btn{margin:auto}

/* Schedule modal */
.schedule-modal{position:fixed;inset:0;z-index:2000;display:flex;align-items:center;justify-content:center;padding:20px;box-sizing:border-box}.schedule-modal-backdrop{position:absolute;inset:0;background:rgba(15,23,42,.5);backdrop-filter:blur(3px)}.schedule-modal-card{position:relative;width:min(760px,100%);max-height:calc(100vh - 40px);overflow:auto;box-sizing:border-box;background:#fff;border:1px solid #dfe4eb;border-radius:18px;box-shadow:0 24px 70px rgba(15,23,42,.24);padding:28px;animation:scheduleModalIn .16s ease-out}@keyframes scheduleModalIn{from{opacity:0;transform:translateY(10px) scale(.985)}to{opacity:1;transform:none}}
.schedule-modal-head{display:flex;justify-content:space-between;align-items:flex-start;gap:18px;padding-bottom:20px;border-bottom:1px solid #edf0f4;margin-bottom:22px}.schedule-modal-head h2{font-size:22px;margin:5px 0 0}.schedule-modal-head p{margin:6px 0 0}.schedule-modal-head .icon-btn{flex:0 0 auto}
.schedule-modal-card label{display:block;font-size:12px;font-weight:750;color:#39445a}.schedule-modal-card label>span{display:block;margin-top:7px}.schedule-modal-card em{font-style:normal;font-weight:500;color:#8b94a3}.schedule-modal-card input,.schedule-modal-card select{box-sizing:border-box;width:100%;height:44px;border:1px solid #d9dee8;border-radius:9px;background:#fff;padding:0 12px;color:#172033;font:inherit;outline:none}.schedule-modal-card input:focus,.schedule-modal-card select:focus{border-color:#666bd0;box-shadow:0 0 0 3px rgba(102,107,208,.11)}
.schedule-section{border:1px solid #e5e9ef;border-radius:12px;padding:16px;margin-bottom:18px}.schedule-section-title{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-bottom:12px}.schedule-section-title h3{margin:0;font-size:14px;color:#172033}.schedule-section-title p{margin:3px 0 0;font-size:11px;color:#7a8494}.schedule-basic-grid{display:grid;grid-template-columns:1fr 1fr;gap:16px;margin-bottom:18px}.schedule-week-list{display:grid;gap:9px}.schedule-week-head,.schedule-week-row{display:grid;grid-template-columns:1.1fr 1.2fr .8fr 40px;gap:10px;align-items:center}.schedule-week-head{padding:0 10px 5px;color:#8992a1;font-size:10px;text-transform:uppercase;letter-spacing:.08em;font-weight:800}.schedule-week-row{padding:9px 10px;background:#fafbfc;border:1px solid #e7ebf0;border-radius:9px}.schedule-week-row select,.schedule-week-row input{height:40px}.schedule-remove{width:32px;height:32px;padding:0;border:1px solid #dfe3ea;border-radius:8px;background:#fff;color:#7a8494;cursor:pointer}.schedule-remove:hover{color:#b42318;border-color:#efc7c3}.schedule-book-grid{display:grid;grid-template-columns:1fr 1fr;gap:16px}.schedule-book-current{grid-column:1/-1;padding:10px 12px;border-radius:9px;background:#f7f8fb;color:#4d586b;font-size:12px}.schedule-book-current b{color:#172033}.schedule-dates-grid{display:grid;grid-template-columns:1fr 1fr;gap:16px}.schedule-form-actions{display:flex;justify-content:flex-end;gap:9px;margin-top:22px;padding-top:18px;border-top:1px solid #e6e9ef}.schedule-form-actions .primary-btn{background:#4246b8;border-color:#4246b8}
.schedule-group-picker{display:grid;gap:10px}.schedule-group-students{display:grid;gap:10px}.schedule-group-student-row{display:grid;grid-template-columns:1fr auto;gap:10px;align-items:end;padding:10px;border:1px solid #e7ebf0;border-radius:9px;background:#fafbfc}.schedule-group-student-row .secondary-btn{height:36px;white-space:nowrap}.schedule-help-text{margin:0;padding:10px 12px;border-radius:9px;background:#f7f8fb;color:#6f7888;font-size:11px;line-height:1.45}.schedule-group-picker>#addGroupStudent{justify-self:start}.schedule-group-name-fields{display:grid;grid-template-columns:1fr 1fr;gap:14px}.schedule-group-name-fields .schedule-help-text{grid-column:1/-1;margin:0;padding:10px 12px;border-radius:9px;background:#f7f8fb;color:#6f7888;font-size:11px;line-height:1.45}.schedule-group-name-fields label{min-width:0}
/* Same-time toggle */
.schedule-same-time-toggle{display:flex!important;align-items:center;gap:12px;margin:2px 0 14px;padding:11px 13px;border:1px solid #e2e6ee;border-radius:10px;background:#fafbfc;cursor:pointer;transition:background .15s ease,border-color .15s ease}.schedule-same-time-toggle:hover{background:#f7f8ff;border-color:#d4d9e7}.schedule-same-time-toggle>input[type="checkbox"]{appearance:none;-webkit-appearance:none;width:20px!important;height:20px!important;flex:0 0 20px;margin:0;padding:0;border:1.5px solid #aeb6c5;border-radius:5px;background:#fff;cursor:pointer;position:relative}.schedule-same-time-toggle>input[type="checkbox"]:checked{background:#4246b8;border-color:#4246b8}.schedule-same-time-toggle>input[type="checkbox"]:checked::after{content:'✓';position:absolute;left:3px;top:-1px;font-size:15px;line-height:20px;color:#fff;font-weight:800}.schedule-same-time-toggle>span{display:flex!important;flex-direction:column;gap:2px;margin:0!important;line-height:1.25}.schedule-same-time-toggle>span strong{font-size:12px;color:#39445a}.schedule-same-time-toggle>span small{font-size:11px;color:#7a8494;font-weight:500}.schedule-same-time-toggle:has(input:checked){background:#f5f6ff;border-color:#cdd1ee}
@media(max-width:620px){.schedule-card-head{align-items:flex-start;flex-direction:column;padding:18px}.schedule-new-btn,.schedule-status-filter{width:100%}.schedule-modal{padding:10px}.schedule-modal-card{padding:20px;border-radius:14px;max-height:calc(100vh - 20px)}.schedule-basic-grid,.schedule-book-grid,.schedule-dates-grid,.schedule-group-name-fields{grid-template-columns:1fr}.schedule-book-current,.schedule-group-name-fields .schedule-help-text{grid-column:auto}.schedule-week-head{display:none}.schedule-week-row{grid-template-columns:1fr 1fr 1fr 34px;padding:9px 8px}.schedule-week-row select,.schedule-week-row input{height:40px}.schedule-form-actions{justify-content:stretch}.schedule-form-actions button{flex:1}.schedule-group-student-row{grid-template-columns:1fr}.schedule-group-student-row .secondary-btn{width:100%}}
