/* =========================================================================================
 * Scheduling (new design): class capacity / open hours fields, the child Schedule section and
 * its drawers, and the Scheduling page. Everything is scoped under body.newdesign-home.
 * ========================================================================================= */

/* ---- capacity stepper (- 20 +) ---- */
body.newdesign-home .nd-stepper {
    display: inline-flex; align-items: stretch; height: 44px;
    width: max-content; max-width: 100%; align-self: flex-start;   /* not stretched by a flex-column form-group */
    border: 1px solid #E2E4E9; border-radius: 10px; overflow: hidden; background: #fff;
    box-shadow: 0 1px 2px 0 rgba(228, 229, 231, 0.24);
}
body.newdesign-home .nd-stepper-btn {
    width: 44px; border: none; background: #F6F7FA; color: #20252D; cursor: pointer;
    font: 500 20px/1 'Inter', sans-serif; padding: 0; margin: 0;
}
body.newdesign-home .nd-stepper-btn:hover { background: #EEF0F3; }
body.newdesign-home .nd-stepper-input {
    width: 72px; border: none; border-left: 1px solid #E2E4E9; border-right: 1px solid #E2E4E9;
    text-align: center; font: 500 16px/24px 'Inter', sans-serif; color: #20252D; background: #fff;
    -moz-appearance: textfield; padding: 0; margin: 0;
}
body.newdesign-home .nd-stepper-input::-webkit-outer-spin-button,
body.newdesign-home .nd-stepper-input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
body.newdesign-home .nd-stepper-input:focus { outline: none; background: #F5F8FF; }

/* ---- from - to time inputs ---- */
body.newdesign-home .nd-time-range { display: flex; align-items: center; gap: 8px; }
body.newdesign-home .nd-time-range .form-input { flex: 1 1 0; min-width: 0; }
body.newdesign-home .nd-time-sep { color: #6B7381; flex: 0 0 auto; }

/* ---- Edit Class (#NewFrame): capacity + open hours block ---- */
body.newdesign-home #NewFrame #schCapacityBlock {
    display: flex; flex-direction: column; align-items: flex-start; gap: 8px;
    padding: 14px 0; border-bottom: 1px solid #F0F1F4;
}
body.newdesign-home #NewFrame #schCapacityBlock label { margin: 0; }
body.newdesign-home #NewFrame #schCapacityBlock label h4 {
    margin: 0 !important; font: 500 14px/20px 'Inter', sans-serif !important; color: #20252D !important; text-shadow: none !important;
}
body.newdesign-home #NewFrame #schCapacityBlock label + .nd-time-range { width: 100%; }
body.newdesign-home #NewFrame #schCapacityBlock .sch-frame-hint {
    margin: 0 0 6px; font: 400 13px/18px 'Inter', sans-serif; color: #6B7381;
}
body.newdesign-home #NewFrame #schCapacityBlock .form-input {
    padding: 10px 12px; border: 1px solid #E2E4E9; border-radius: 10px; font: 400 15px/22px 'Inter', sans-serif;
    color: #20252D; background: #fff;
}

/* =========================================================================================
 * Child Schedule section (ChildScheduleView.js) - Child Management child page + parent Child Profile drawer
 * ========================================================================================= */
body.newdesign-home .sch-mount { margin: 24px 0 10px; font-family: 'Inter', sans-serif; color: #20252D; }
body.newdesign-home .sch-card {
    background: #fff; border: 1px solid #E9EBEF; border-radius: 16px; padding: 20px 24px; box-sizing: border-box; margin-bottom: 16px;
}
body.newdesign-home .sch-card h3 { margin: 0; font: 600 18px/26px 'Inter', sans-serif; color: #20252D; }
body.newdesign-home .sch-card-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 16px; }
body.newdesign-home .sch-card-title { display: flex; align-items: baseline; gap: 12px; }
body.newdesign-home .sch-card-actions { display: flex; gap: 10px; flex-wrap: wrap; }
body.newdesign-home .sch-link { color: #2563D7 !important; font: 500 15px/22px 'Inter', sans-serif; text-decoration: none !important; cursor: pointer; }
body.newdesign-home .sch-link:hover { text-decoration: underline !important; }
body.newdesign-home .sch-btn {
    display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 14px; margin: 0;
    background: #fff; border: 1px solid #E2E4E9; border-radius: 10px; color: #20252D; cursor: pointer;
    font: 500 14px/20px 'Inter', sans-serif; box-shadow: 0 1px 2px rgba(16, 24, 40, 0.04);
}
body.newdesign-home .sch-btn:hover { background: #F6F7FA; }
body.newdesign-home .sch-btn-sm { height: 32px; padding: 0 12px; font-size: 13px; }
body.newdesign-home .sch-muted { color: #6B7381; font-size: 14px; margin: 0; }
body.newdesign-home .sch-empty { color: #525966; font-size: 14px; margin: 4px 0 0; }
body.newdesign-home .sch-note, body.newdesign-home .sch-hint {
    display: flex; align-items: flex-start; gap: 6px; margin: 8px 0 0; color: #6B7381; font: 400 13px/18px 'Inter', sans-serif;
}
body.newdesign-home .sch-note svg, body.newdesign-home .sch-hint svg { flex: 0 0 auto; margin-top: 1px; }
body.newdesign-home .sch-warn { margin: 8px 0 0; padding: 8px 12px; border-radius: 8px; background: #FFF7ED; color: #9A3412; font: 400 13px/18px 'Inter', sans-serif; }
body.newdesign-home .sch-red { color: #DC2626 !important; }

/* class x day grid */
body.newdesign-home .sch-grid-wrap, body.newdesign-home .sch-table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; margin: 0 -24px; padding: 0 24px; }
/* blue-header tables: the header runs edge to edge, the cells keep the card's inset */
body.newdesign-home .sch-table-wrap.sch-flush { padding: 0; }
body.newdesign-home .sch-flush .sch-table th:first-child, body.newdesign-home .sch-flush .sch-table td:first-child { padding-left: 24px; }
body.newdesign-home .sch-flush .sch-table th:last-child, body.newdesign-home .sch-flush .sch-table td:last-child { padding-right: 24px; }
/* fits its card: no min-width, and a time range may break after the dash instead of forcing a horizontal scroll */
body.newdesign-home .sch-grid { width: 100%; border-collapse: collapse; }
body.newdesign-home .sch-grid th {
    text-align: left; background: #E8EFFB; color: #525966; font: 400 14px/20px 'Inter', sans-serif; padding: 12px 10px; border: none;
}
body.newdesign-home .sch-grid td { padding: 10px; border-top: 1px solid #EEF0F3; font: 400 15px/22px 'Inter', sans-serif; vertical-align: middle; border-left: none; border-right: none; }
body.newdesign-home .sch-grid td.sch-class { white-space: nowrap; }
/* day columns: header and cells share one centre line; the child page's legacy table rules (padding !important,
   48px first column) are overridden so every row lines up under "Class" */
body.newdesign-home .sch-mount .sch-grid th, body.newdesign-home .sch-mount .sch-grid td { padding: 10px 12px !important; height: auto !important; width: auto !important; }
body.newdesign-home .sch-grid th:not(:first-child), body.newdesign-home .sch-grid td:not(:first-child) { text-align: center !important; }
body.newdesign-home .sch-grid th:first-child, body.newdesign-home .sch-grid td:first-child { text-align: left !important; padding-left: 16px !important; }
body.newdesign-home .sch-grid .sch-pill { margin: 2px; }
body.newdesign-home .sch-pill { display: inline-block; padding: 6px 10px; border-radius: 8px; background: #F2F4F7; margin: 2px 4px 2px 0; font-size: 14px; line-height: 20px; }
body.newdesign-home .sch-pill span { white-space: nowrap; }
body.newdesign-home .sch-grid .sch-off { color: #20252D; white-space: nowrap; }
body.newdesign-home .sch-grid .sch-dash { color: #6B7381; }
body.newdesign-home .sch-grid .sch-total td { font-size: 13px; color: #525966; padding-top: 14px; padding-bottom: 14px; }

/* upcoming change / request / exceptions */
body.newdesign-home .sch-side { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 20px; align-items: start; }
body.newdesign-home .sch-box { border: 1px solid #E2E4E9; border-radius: 14px; padding: 18px 20px; }
body.newdesign-home .sch-box h4 { margin: 0; font: 600 16px/24px 'Inter', sans-serif; }
body.newdesign-home .sch-box-upcoming { border: 1.5px dashed #2563D7; }
body.newdesign-home .sch-box-request { border: 1.5px dashed #F97316; }
body.newdesign-home .sch-box-head { display: flex; align-items: center; gap: 10px; padding-bottom: 12px; margin-bottom: 12px; border-bottom: 1px solid #EEF0F3; }
body.newdesign-home .sch-box-head .sch-dots { margin-left: auto; }
body.newdesign-home .sch-row { display: grid; grid-template-columns: minmax(110px, 40%) 1fr; gap: 12px; padding: 6px 0; font: 400 14px/20px 'Inter', sans-serif; }
body.newdesign-home .sch-row span { color: #525966; }
body.newdesign-home .sch-row b { font-weight: 500; color: #20252D; }
body.newdesign-home .sch-info { display: flex; gap: 10px; align-items: flex-start; margin-top: 12px; padding: 12px 14px; border-radius: 10px; background: #E8EFFB; color: #344054; font: 400 14px/20px 'Inter', sans-serif; }
body.newdesign-home .sch-info svg { flex: 0 0 auto; }
body.newdesign-home .sch-quote { margin: 8px 0 0; padding-left: 10px; border-left: 3px solid #E2E4E9; color: #525966; font: italic 400 14px/20px 'Inter', sans-serif; }
body.newdesign-home .sch-chip { display: inline-flex; align-items: center; padding: 3px 10px; border-radius: 999px; background: #F2F4F7; color: #525966; font: 500 12px/18px 'Inter', sans-serif; white-space: nowrap; margin-left: 8px; }
body.newdesign-home .sch-chip-blue { background: #DCE7FB; color: #1E40AF; margin-left: 0; }
body.newdesign-home .sch-chip-orange { background: #FFEDD5; color: #C2410C; }
body.newdesign-home .sch-chip-green { background: #DCFCE7; color: #15803D; }
body.newdesign-home .sch-chip-red { background: #FEE2E2; color: #B91C1C; }
body.newdesign-home .sch-chip-lg { font-size: 15px; padding: 6px 14px; margin: 4px 0 18px; }
body.newdesign-home .sch-dots { width: 32px; height: 32px; border: none; background: transparent; border-radius: 8px; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; padding: 0; margin: 0; flex: 0 0 auto; }
body.newdesign-home .sch-dots:hover { background: #F2F4F7; }
body.newdesign-home .sch-exc { display: flex; align-items: center; gap: 14px; padding: 14px 0; border-top: 1px solid #EEF0F3; }
body.newdesign-home .sch-box-exc h4 { padding-bottom: 12px; }
body.newdesign-home .sch-exc-icon { flex: 0 0 44px; width: 44px; height: 44px; border-radius: 10px; background: #F2F4F7; color: #525966; display: inline-flex; align-items: center; justify-content: center; }
body.newdesign-home .sch-exc-icon.sch-exc-absence { background: #FDECEC; color: #DC2626; }
body.newdesign-home .sch-exc-text { flex: 1; min-width: 0; }
body.newdesign-home .sch-exc-title { font: 500 15px/22px 'Inter', sans-serif; display: flex; align-items: center; flex-wrap: wrap; gap: 4px; }
body.newdesign-home .sch-exc-text p { margin: 2px 0 0; color: #6B7381; font: 400 13px/18px 'Inter', sans-serif; }

/* parent: inside the Child Profile drawer */
body.newdesign-home .sch-in-drawer { margin: 8px 0 0; }
body.newdesign-home .sch-in-drawer .sch-card { padding: 16px; border-radius: 12px; }
body.newdesign-home .sch-in-drawer .sch-grid-wrap { margin: 0 -16px; padding: 0 16px; }
body.newdesign-home .sch-in-drawer .sch-side { grid-template-columns: 1fr; }
body.newdesign-home .sch-in-drawer .sch-card-actions { width: 100%; }
body.newdesign-home .sch-in-drawer .sch-btn { flex: 1 1 auto; justify-content: center; }

/* ---- drawers ---- */
body.newdesign-home .sch-overlay { z-index: 1100 !important; }
body.newdesign-home .sch-drawer { z-index: 1101 !important; }
body.newdesign-home.sch-drawer-open .nda-cal { z-index: 1300; }
@media (min-width: 768px) {
    body.newdesign-home .sch-drawer { width: 560px; }
}
body.newdesign-home .sch-drawer .drawer-content { font-family: 'Inter', sans-serif; padding: 20px 24px; }
/* the drawer bodies render inside one wrapper, so it carries the section spacing the drawer-content gap would give */
body.newdesign-home .sch-drawer .sch-exception, body.newdesign-home .sch-drawer .sch-regular { display: flex; flex-direction: column; gap: 20px; }
body.newdesign-home .sch-drawer .sch-classrow + .sch-classrow { margin-top: -8px; }
body.newdesign-home .sch-drawer .sch-classrow + .sch-add-link { margin-top: -4px; }
/* inputs are width:100% + padding: keep them inside their column (the two date boxes overlapped and overflowed) */
body.newdesign-home .sch-drawer .form-input, body.newdesign-home .sch-drawer select, body.newdesign-home .sch-drawer textarea { box-sizing: border-box; max-width: 100%; margin: 0; }
body.newdesign-home .sch-drawer .form-input { font-size: 15px; }
body.newdesign-home .sch-drawer .date-value { font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
body.newdesign-home .sch-drawer .form-group .sch-chips { margin-top: 2px; }
/* header close: plain X like the other new-design drawers (not a themed button) */
body.newdesign-home .sch-drawer .close-drawer-btn { background: transparent !important; border: none !important; box-shadow: none !important; margin: 0; cursor: pointer; }
body.newdesign-home .sch-drawer .close-drawer-btn:hover { background: #F6F7FA !important; }
/* footer: two fixed-width buttons on the right, primary in the new-design blue */
body.newdesign-home .sch-drawer .drawer-actions { justify-content: flex-end; padding: 16px 24px 20px; }
body.newdesign-home .sch-drawer .drawer-actions .btn-secondary,
body.newdesign-home .sch-drawer .drawer-actions .btn-primary { flex: 0 1 200px; min-width: 0; height: 44px; margin: 0; padding: 0 16px; cursor: pointer; }
body.newdesign-home .sch-drawer .drawer-actions .btn-primary { background: #2563D7 !important; border: none; color: #fff; }
body.newdesign-home .sch-drawer .drawer-actions .btn-primary:hover { background: #1D4ED8 !important; }
@media (max-width: 767px) {
    body.newdesign-home .sch-drawer .drawer-content { padding: 16px; }
    body.newdesign-home .sch-drawer .drawer-actions { padding: 12px 16px 16px; }
    body.newdesign-home .sch-drawer .drawer-actions .btn-secondary,
    body.newdesign-home .sch-drawer .drawer-actions .btn-primary { flex: 1 1 0; }
}
body.newdesign-home .sch-banner {
    display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 12px 14px; border-radius: 10px; background: #E8EFFB; font: 400 14px/20px 'Inter', sans-serif; color: #344054;
}
body.newdesign-home .sch-banner a { margin-left: auto; color: #20252D !important; font-weight: 500; text-decoration: underline !important; }
body.newdesign-home .sch-divider { height: 1px; background: #EEF0F3; margin: 4px 0; }
body.newdesign-home .sch-classrow { border: 1px solid #E9EBEF; background: #FAFAFB; border-radius: 12px; padding: 14px; display: flex; flex-direction: column; gap: 12px; }
body.newdesign-home .sch-classrow-top { display: flex; align-items: center; gap: 8px; }
body.newdesign-home .sch-classrow-top .sch-select, body.newdesign-home .sch-classrow-top .sch-readonly { flex: 1 1 40%; min-width: 0; }
/* time boxes: a fixed width that fits "08:00 AM" + the clock icon (sharing the row with the class select cut
   the AM / PM off); the class select takes what is left */
body.newdesign-home .sch-time { flex: 0 0 132px; width: 132px; min-width: 0; }
body.newdesign-home .sch-time .form-input { width: 100%; box-sizing: border-box; padding-left: 10px; padding-right: 8px; font-variant-numeric: tabular-nums; }
body.newdesign-home .sch-time .form-input::-webkit-datetime-edit { overflow: visible; }
body.newdesign-home .form-group > .sch-time { flex: none; width: auto; }   /* a time on its own line (exception "Arriving at") stays full width */
/* narrow screens: the class select on its own line, the two times + delete below it */
@media (max-width: 520px) {
    body.newdesign-home .sch-classrow-top { flex-wrap: wrap; }
    body.newdesign-home .sch-classrow-top .sch-select, body.newdesign-home .sch-classrow-top .sch-readonly { flex: 1 1 100%; }
    body.newdesign-home .sch-classrow-top .sch-time { flex: 1 1 0; width: auto; }
}
body.newdesign-home .sch-select { appearance: auto; -webkit-appearance: auto; height: 46px; }
body.newdesign-home .sch-readonly { background: #F2F4F7 !important; color: #20252D; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
body.newdesign-home .sch-icon-btn { width: 36px; height: 36px; border: none; background: transparent; border-radius: 8px; cursor: pointer; padding: 0; margin: 0; display: inline-flex; align-items: center; justify-content: center; flex: 0 0 auto; color: #525966; }
body.newdesign-home .sch-icon-btn:hover { background: #F2F4F7; }
body.newdesign-home .sch-days { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; color: #6B7381; font-size: 14px; }
body.newdesign-home .sch-day, body.newdesign-home .sch-reason {
    height: 34px; min-width: 52px; padding: 0 12px; margin: 0; border-radius: 999px; border: 1px solid #E2E4E9; background: #fff; color: #525966; cursor: pointer;
    font: 500 14px/20px 'Inter', sans-serif;
}
body.newdesign-home .sch-day.on, body.newdesign-home .sch-reason.on { background: #E8EFFB; border-color: #93B4F0; color: #1E40AF; }
body.newdesign-home .sch-add-link { display: inline-flex; align-items: center; gap: 8px; color: #2563D7 !important; font: 500 15px/22px 'Inter', sans-serif; text-decoration: none !important; }
body.newdesign-home .sch-perday-box { border: 1px solid #E9EBEF; border-radius: 12px; padding: 4px 16px; }
body.newdesign-home .sch-perday-day { padding: 12px 0; border-bottom: 1px solid #EEF0F3; display: flex; flex-direction: column; gap: 8px; }
body.newdesign-home .sch-perday-day:last-child { border-bottom: none; }
body.newdesign-home .sch-perday-day h5 { margin: 0; font: 500 15px/22px 'Inter', sans-serif; }
body.newdesign-home .sch-perday-row { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }
body.newdesign-home .sch-perday-row .sch-readonly,
body.newdesign-home .sch-perday-row .sch-select { flex: 1 1 40%; min-width: 0; }
body.newdesign-home .sch-radios { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
body.newdesign-home .sch-radio { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border: 1px solid #E2E4E9; border-radius: 10px; cursor: pointer; font: 400 15px/22px 'Inter', sans-serif; }
body.newdesign-home .sch-radio.on { border-color: #2563D7; }
body.newdesign-home .sch-radio input { width: 18px; height: 18px; margin: 0; accent-color: #2563D7; }
body.newdesign-home .sch-current { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 12px; padding: 14px; border: 1px solid #E9EBEF; border-radius: 12px; }
body.newdesign-home .sch-current div { display: flex; flex-direction: column; gap: 8px; }
body.newdesign-home .sch-current b { font: 500 14px/20px 'Inter', sans-serif; }
body.newdesign-home .sch-current span { background: #ECEEF2; border-radius: 8px; padding: 8px 12px; font: 400 14px/20px 'Inter', sans-serif; }
body.newdesign-home .sch-types { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
body.newdesign-home .sch-type {
    display: flex; flex-direction: column; align-items: flex-start; gap: 6px; padding: 14px; margin: 0; min-height: 112px; text-align: left; cursor: pointer;
    background: #fff; border: 1px solid #E2E4E9; border-radius: 12px; color: #525966; font-family: 'Inter', sans-serif;
}
body.newdesign-home .sch-type b { color: #20252D; font: 500 15px/22px 'Inter', sans-serif; }
body.newdesign-home .sch-type span { font: 400 13px/18px 'Inter', sans-serif; color: #6B7381; }
body.newdesign-home .sch-type.on { border-color: #2563D7; background: #F0F5FE; }
body.newdesign-home .sch-type:disabled { cursor: default; opacity: 0.55; }
body.newdesign-home .sch-type.on:disabled { opacity: 1; }
body.newdesign-home .sch-two { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
body.newdesign-home .sch-chips { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
body.newdesign-home .sch-daychip { padding: 6px 10px; border-radius: 6px; background: #E6E8EC; font: 500 14px/20px 'Inter', sans-serif; }
body.newdesign-home .sch-more { color: #2563D7; font: 500 14px/20px 'Inter', sans-serif; }
body.newdesign-home .sch-fee { display: flex; gap: 10px; padding: 14px; border-radius: 10px; background: #E8EFFB; font-family: 'Inter', sans-serif; }
body.newdesign-home .sch-fee svg { flex: 0 0 auto; }
body.newdesign-home .sch-fee b { font: 600 14px/20px 'Inter', sans-serif; }
body.newdesign-home .sch-fee p { margin: 4px 0 0; font: 400 14px/20px 'Inter', sans-serif; color: #344054; }
body.newdesign-home .sch-waive { display: flex; align-items: center; gap: 8px; margin-top: 10px; font: 500 14px/20px 'Inter', sans-serif; cursor: pointer; }
body.newdesign-home .sch-waive input { width: 18px; height: 18px; margin: 0; accent-color: #2563D7; }
body.newdesign-home .sch-error { flex: 1 1 100%; color: #B91C1C; font: 400 13px/18px 'Inter', sans-serif; }
body.newdesign-home .sch-drawer .drawer-actions { flex-wrap: wrap; }
body.newdesign-home .sch-h4 { margin: 8px 0 4px; font: 600 15px/22px 'Inter', sans-serif; }

/* review drawer */
body.newdesign-home .sch-review .drawer-header { padding-bottom: 0; }
body.newdesign-home .sch-review .drawer-divider { display: none; }
body.newdesign-home .sch-review-child { display: flex; align-items: center; gap: 12px; padding-bottom: 14px; border-bottom: 1px solid #EEF0F3; }
body.newdesign-home .sch-review-child img, body.newdesign-home .sch-avatar { width: 48px; height: 48px; border-radius: 50%; object-fit: cover; flex: 0 0 48px; }
body.newdesign-home .sch-avatar { background: #DCE7FB; color: #1E40AF; display: inline-flex; align-items: center; justify-content: center; font: 600 16px 'Inter', sans-serif; }
body.newdesign-home .sch-review-child b { display: block; font: 500 18px/26px 'Inter', sans-serif; }
body.newdesign-home .sch-review-child span { color: #6B7381; font-size: 14px; }
body.newdesign-home .sch-review-title { margin: 8px 0 0; font: 500 24px/32px 'Inter', sans-serif; }
body.newdesign-home .sch-summary { border: 1px solid #E2E4E9; border-radius: 14px; padding: 16px 20px; }
body.newdesign-home .sch-summary h4 { margin: 0 0 10px; padding-bottom: 10px; border-bottom: 1px solid #EEF0F3; font: 500 18px/26px 'Inter', sans-serif; }
body.newdesign-home .sch-summary .sch-row { font-size: 15px; padding: 8px 0; }
body.newdesign-home .sch-quote-block { margin: 0; padding: 4px 0 4px 16px; border-left: 3px solid #D0D5DD; font: 400 15px/22px 'Inter', sans-serif; color: #20252D; }
body.newdesign-home .sch-quote-block span { display: block; margin-top: 4px; color: #6B7381; font-size: 13px; }
body.newdesign-home .sch-approve h4 { margin: 0 0 8px; font: 500 16px/24px 'Inter', sans-serif; }
body.newdesign-home .sch-approve p { display: flex; gap: 10px; align-items: flex-start; margin: 8px 0; font: 400 15px/22px 'Inter', sans-serif; }
body.newdesign-home .sch-approve p svg { flex: 0 0 auto; margin-top: 2px; }

/* menu + toast */
.sch-menu {
    position: absolute; z-index: 1350; min-width: 180px; padding: 6px; background: #fff; border: 1px solid #E2E4E9; border-radius: 10px;
    box-shadow: 0 12px 32px rgba(16, 24, 40, 0.16); font-family: 'Inter', sans-serif;
}
.sch-menu button { display: block; width: 100%; margin: 0; padding: 9px 12px; text-align: left; border: none; background: transparent; border-radius: 6px; cursor: pointer; font: 400 14px/20px 'Inter', sans-serif; color: #20252D; }
.sch-menu button:hover { background: #F2F4F7; }
.sch-toast {
    position: fixed; z-index: 1400; top: 20px; right: 20px; max-width: min(420px, calc(100vw - 32px)); display: flex; gap: 12px; align-items: flex-start;
    padding: 14px 16px; background: #F0FDF4; border: 1px solid #BBF7D0; border-radius: 12px; box-shadow: 0 12px 32px rgba(16, 24, 40, 0.12); font-family: 'Inter', sans-serif; color: #14532D;
}
.sch-toast svg { flex: 0 0 auto; }
.sch-toast b { display: block; font: 600 15px/22px 'Inter', sans-serif; }
.sch-toast p { margin: 2px 0 0; font: 400 14px/20px 'Inter', sans-serif; }
.sch-toast button { border: none; background: transparent; cursor: pointer; padding: 0; margin: 0 0 0 auto; }

/* =========================================================================================
 * Scheduling page (#ndScheduling, SchedulingView.js)
 * ========================================================================================= */
body.newdesign-home .sch-page .sch-wrap { font-family: 'Inter', sans-serif; }
body.newdesign-home .sch-page-title { margin: 0 0 20px; font: 500 28px/36px 'Inter', sans-serif; color: #20252D; }
/* page header: title + Find a spot */
body.newdesign-home .sch-page-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 20px; }
body.newdesign-home .sch-page-head .sch-page-title { margin: 0; }
body.newdesign-home .sch-find-btn { flex: 0 0 auto; }
/* Find a spot drawer: the billing plan drawer's fields (ndbd-* in newdesign-home.css), spaced for this drawer */
body.newdesign-home .sch-find { display: flex; flex-direction: column; gap: 20px; min-width: 0; }
/* the Date box and the Child toggle are divs at width:100% + padding - they ran past the drawer and gave it a
   horizontal scrollbar; count the padding inside, and never scroll sideways */
body.newdesign-home .sch-find, body.newdesign-home .sch-find * { box-sizing: border-box; }
body.newdesign-home .sch-find :is(.ndbd-field, .ndbd-date-wrap, .ndbd-select-wrap, .ndbd-date, .ndbd-select, .ndbd-student-panel, .ndbd-search-wrap, .ndbd-search-input) { max-width: 100%; min-width: 0; }
body.newdesign-home #schFindDrawer :is(.drawer-content, .drawer-body) { overflow-x: hidden; }
body.newdesign-home .sch-find .ndbd-date { display: flex; align-items: center; cursor: pointer; }
body.newdesign-home .sch-find .ndbd-date-wrap > svg { width: 18px; height: 18px; color: #525966; }
body.newdesign-home .sch-find .ndbd-select { padding-right: 30px; }
body.newdesign-home .sch-find-toggle { display: block; line-height: 40px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
body.newdesign-home .sch-find-toggle.empty { color: #868c98; font-weight: 400; }
body.newdesign-home .sch-find-open { flex-wrap: wrap; }
body.newdesign-home .sch-find-open .sch-open { font-size: 12px; }
body.newdesign-home .sch-find .ndbd-student-panel { margin: -12px 0 0; }
body.newdesign-home .sch-find-list .sch-muted { margin: 0; padding: 0 8px; }
body.newdesign-home .sch-find-child .ndbd-name { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
body.newdesign-home .sch-find-cls { margin-left: auto; padding-left: 8px; max-width: 45%; color: #868c98; font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; flex-shrink: 1; }
body.newdesign-home .sch-tabs { display: flex; gap: 32px; border-bottom: 1px solid #E2E4E9; margin-bottom: 24px; overflow-x: auto; }
body.newdesign-home .sch-tab { border: none; background: none; margin: 0; padding: 0 0 12px; cursor: pointer; color: #525966; font: 400 16px/24px 'Inter', sans-serif; border-bottom: 2px solid transparent; white-space: nowrap; }
body.newdesign-home .sch-tab.on { color: #20252D; border-bottom-color: #2563D7; }
body.newdesign-home .sch-toolbar { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 20px; }
body.newdesign-home .sch-toolbar .sch-class-pick { width: auto; min-width: 200px; }
body.newdesign-home .sch-datenav { display: flex; align-items: center; gap: 8px; }
body.newdesign-home .sch-navbtn, body.newdesign-home .sch-navdate {
    height: 44px; margin: 0; border: 1px solid #E2E4E9; background: #fff; border-radius: 10px; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; gap: 10px;
    font: 400 16px/24px 'Inter', sans-serif; color: #20252D;
}
body.newdesign-home .sch-navbtn { width: 44px; padding: 0; }
body.newdesign-home .sch-navdate { padding: 0 16px; }
body.newdesign-home .sch-toolbar > .sch-seg { margin-left: auto; }
body.newdesign-home .sch-seg { display: inline-flex; padding: 3px; gap: 3px; background: #EEF0F3; border-radius: 10px; }
body.newdesign-home .sch-seg button { border: none; background: transparent; margin: 0; padding: 8px 16px; border-radius: 8px; cursor: pointer; font: 500 14px/20px 'Inter', sans-serif; color: #525966; }
body.newdesign-home .sch-seg button.on { background: #fff; color: #20252D; box-shadow: 0 1px 2px rgba(16, 24, 40, 0.08); }
body.newdesign-home .sch-cols { display: grid; grid-template-columns: minmax(0, 2fr) minmax(280px, 1fr); gap: 20px; align-items: start; }
body.newdesign-home .sch-legend { display: flex; gap: 16px; flex-wrap: wrap; color: #525966; font: 400 14px/20px 'Inter', sans-serif; }
body.newdesign-home .sch-legend span { display: inline-flex; align-items: center; gap: 6px; }
body.newdesign-home .sch-legend i { display: inline-block; width: 10px; height: 10px; border-radius: 50%; }
body.newdesign-home .sch-legend .lg-sched { background: #1E4DB7; }
body.newdesign-home .sch-legend .lg-open { background: #22A06B; }
body.newdesign-home .sch-legend .lg-over { background: #E11D48; }
body.newdesign-home .sch-legend .lg-cap { width: 3px; height: 14px; border-radius: 1px; background: #20252D; }
body.newdesign-home .sch-legend .lg-none { background: #E2E4E9; }
body.newdesign-home .sch-legend .lg-abs { background: #FCA5A5; }
body.newdesign-home .sch-table { width: 100%; border-collapse: collapse; min-width: 520px; }
body.newdesign-home .sch-table th { text-align: left; background: #E8EFFB; color: #525966; font: 400 14px/20px 'Inter', sans-serif; padding: 12px 14px; border: none; white-space: nowrap; }
body.newdesign-home .sch-table td { padding: 16px 14px; border-top: 1px solid #EEF0F3; vertical-align: middle; font: 400 15px/22px 'Inter', sans-serif; border-left: none; border-right: none; }
body.newdesign-home .sch-table .sch-class { font-weight: 500; white-space: nowrap; }
body.newdesign-home .sch-vs { font-size: 14px; color: #525966; margin-bottom: 6px; }
body.newdesign-home .sch-vs b { color: #20252D; }
body.newdesign-home .sch-bar { position: relative; display: flex; height: 22px; max-width: 380px; border-radius: 4px; overflow: visible; }
body.newdesign-home .sch-bar > span { display: block; height: 100%; }
body.newdesign-home .sch-bar-sched { background: #1E4DB7; border-radius: 4px 0 0 4px; }
body.newdesign-home .sch-bar-open { background: #22A06B; }
body.newdesign-home .sch-bar-over { background: #E11D48; border-radius: 0 4px 4px 0; }
body.newdesign-home .sch-bar-cap { position: absolute; top: 0; bottom: 0; width: 3px; margin-left: -1px; background: #20252D; border-radius: 1px; }
body.newdesign-home .sch-open { display: inline-block; padding: 6px 12px; border-radius: 8px; font: 500 14px/20px 'Inter', sans-serif; white-space: nowrap; }
body.newdesign-home .sch-open-ok { background: #DCFCE7; color: #15803D; }
body.newdesign-home .sch-open-full { background: #F2F4F7; color: #525966; }
body.newdesign-home .sch-open-over { background: #FEE2E2; color: #B91C1C; }
body.newdesign-home .sch-open-na { background: transparent; color: #6B7381; padding-left: 0; }
/* week grid: centred day columns, square-ish open-slot pills */
body.newdesign-home .sch-week th:not(:first-child), body.newdesign-home .sch-week td:not(:first-child) { text-align: center; }
body.newdesign-home .sch-wk { display: inline-flex; align-items: center; justify-content: center; min-width: 40px; height: 40px; padding: 0 10px; border-radius: 8px; font: 500 15px/20px 'Inter', sans-serif; white-space: nowrap; box-sizing: border-box; }
body.newdesign-home .sch-wk-ok { background: #EAF7F0; color: #166534; }
body.newdesign-home .sch-wk-full { background: #F2F4F7; color: #525966; }
body.newdesign-home .sch-wk-over { background: #FEE2E2; color: #B91C1C; }
body.newdesign-home .sch-wk-na { color: #525966; font-weight: 400; }
body.newdesign-home .sch-count { display: inline-flex; align-items: center; justify-content: center; min-width: 22px; height: 22px; padding: 0 6px; margin-left: 6px; border-radius: 999px; background: #E11D48; color: #fff; font: 600 12px 'Inter', sans-serif; vertical-align: middle; }
body.newdesign-home .sch-req { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-top: 1px solid #EEF0F3; }
body.newdesign-home .sch-stack { display: flex; flex-direction: column; gap: 20px; min-width: 0; }
body.newdesign-home a.sch-exc-row { color: inherit !important; text-decoration: none !important; cursor: pointer; }
body.newdesign-home a.sch-exc-row:hover .sch-req-text b { color: #2563D7; }
body.newdesign-home a.sch-exc-row > svg { flex: 0 0 auto; }
body.newdesign-home .sch-drawer .drawer-actions .sch-btn-danger { color: #B91C1C; border-color: #F3C2CC; }
body.newdesign-home .sch-drawer .drawer-actions .sch-btn-danger:hover { background: #FEF2F2; }
body.newdesign-home .sch-req-text b .sch-req-sep { color: #C0C5CE; font-weight: 400; }
body.newdesign-home .sch-req-text span.sch-req-sep { display: inline; font: inherit; }
body.newdesign-home .sch-count-muted { background: #F2F4F7 !important; color: #525966 !important; }
body.newdesign-home .sch-req-text { flex: 1; min-width: 0; display: flex; flex-direction: column; }
body.newdesign-home .sch-req-text b { font: 500 15px/22px 'Inter', sans-serif; }
body.newdesign-home .sch-req-text span { color: #6B7381; font: 400 13px/18px 'Inter', sans-serif; }
body.newdesign-home .sch-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 16px; }
body.newdesign-home .sch-stats-2 { grid-template-columns: 1fr 1fr; }
body.newdesign-home .sch-stat { background: #fff; border: 1px solid #E9EBEF; border-radius: 14px; padding: 16px 18px; display: flex; flex-direction: column; gap: 4px; }
body.newdesign-home .sch-stat span { color: #525966; font: 400 14px/20px 'Inter', sans-serif; }
body.newdesign-home .sch-stat-foot { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }
body.newdesign-home .sch-stat b small { font-size: 14px; font-weight: 400; color: #525966; }
body.newdesign-home .sch-stat b { font: 500 28px/36px 'Inter', sans-serif; color: #20252D; white-space: nowrap; }
body.newdesign-home .sch-stat .sch-link { font-size: 14px; }
body.newdesign-home .sch-drawer .sch-stat { border: none; padding: 0; }
/* occupancy through the day: half-hour bars, gridlines at 0 / half / capacity */
body.newdesign-home .sch-occ .sch-card-head { margin-bottom: 8px; }
body.newdesign-home .sch-occ-sel { margin: 2px 0 0; font-size: 13px; }
body.newdesign-home .sch-occ-chart { padding: 16px 0 0 52px; border-top: 1px solid #EEF0F3; margin: 0 -24px; padding-right: 24px; padding-left: 76px; }
body.newdesign-home .sch-occ-plot { position: relative; height: 140px; border-bottom: 1px solid #E2E4E9; }
body.newdesign-home .sch-occ-grid { position: absolute; left: 0; right: 0; border-top: 1px solid #EEF0F3; }
body.newdesign-home .sch-occ-grid span { position: absolute; right: 100%; margin-right: 10px; top: -8px; font: 400 12px/16px 'Inter', sans-serif; color: #6B7381; white-space: nowrap; }
body.newdesign-home .sch-occ-grid.cap { border-top: 2px dotted #C2410C; z-index: 1; pointer-events: none; }
body.newdesign-home .sch-occ-grid.cap span { color: #C2410C; font-weight: 500; }
body.newdesign-home .sch-occ-bar { position: absolute; bottom: 0; min-height: 2px; padding: 0 3px; margin: 0; border: none; background: transparent; cursor: pointer; box-sizing: border-box; }
body.newdesign-home .sch-occ-bar span { display: block; height: 100%; background: #A9BDEE; border-radius: 2px 2px 0 0; }
body.newdesign-home .sch-occ-bar.full span { background: #C2410C; }
body.newdesign-home .sch-occ-bar:hover span, body.newdesign-home .sch-occ-bar.sel span { filter: brightness(0.9); }
body.newdesign-home .sch-occ-bar.sel span { outline: 2px solid #20252D; outline-offset: 1px; }
body.newdesign-home .sch-occ-x { position: relative; height: 28px; }
body.newdesign-home .sch-occ-x span { position: absolute; top: 8px; transform: translateX(-50%); font: 400 12px/16px 'Inter', sans-serif; color: #6B7381; white-space: nowrap; }
body.newdesign-home .sch-legend .lg-atcap { background: #C2410C; }
body.newdesign-home .sch-legend .lg-space { background: #A9BDEE; }
/* fits the card, no horizontal scroll: the track shrinks, the end labels sit inside it, bars are border-box */
body.newdesign-home .sch-timeline { overflow-x: hidden; }
body.newdesign-home .sch-tl-head, body.newdesign-home .sch-tl-row { display: grid; grid-template-columns: 180px minmax(0, 1fr); gap: 12px; align-items: center; }
@media (max-width: 600px) { body.newdesign-home .sch-tl-head, body.newdesign-home .sch-tl-row { grid-template-columns: 110px minmax(0, 1fr); gap: 8px; } }
body.newdesign-home .sch-tl-axis { position: relative; height: 20px; }
body.newdesign-home .sch-tl-axis span { position: absolute; transform: translateX(-50%); font: 400 12px 'Inter', sans-serif; color: #6B7381; white-space: nowrap; }
body.newdesign-home .sch-tl-axis span:first-child { transform: none; }
body.newdesign-home .sch-tl-axis span:last-child { transform: translateX(-100%); }
body.newdesign-home .sch-tl-row { padding: 8px 0; border-top: 1px solid #EEF0F3; }
body.newdesign-home .sch-tl-name { display: flex; align-items: center; gap: 10px; min-width: 0; font: 400 14px/20px 'Inter', sans-serif; }
body.newdesign-home .sch-tl-name span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
body.newdesign-home .sch-tl-track { position: relative; height: 30px; }
body.newdesign-home .sch-tl-grid { position: absolute; top: -8px; bottom: -8px; border-left: 1px dashed #E2E4E9; }
body.newdesign-home .sch-tl-bar { position: absolute; top: 3px; bottom: 3px; background: #E3EAFB; border-radius: 4px; overflow: hidden; z-index: 1; box-sizing: border-box; }
body.newdesign-home .sch-tl-bar.exc { background: #EFEAFD; border: 1px solid #A48AF0; }
body.newdesign-home .sch-tl-bar span { display: block; padding: 0 8px; font: 400 12px/24px 'Inter', sans-serif; color: #1E3A8A; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
body.newdesign-home .sch-tl-bar.exc span { line-height: 22px; color: #3B2A80; }
body.newdesign-home .sch-tl-usual { position: absolute; top: 3px; bottom: 3px; border: 1px dashed #A48AF0; border-radius: 4px; box-sizing: border-box; }
body.newdesign-home .sch-legend .lg-exc { width: 14px; height: 12px; border-radius: 3px; background: #EFEAFD; border: 1px solid #A48AF0; }
body.newdesign-home .sch-legend .lg-usual { width: 14px; height: 12px; border-radius: 3px; border: 1px dashed #A48AF0; background: transparent; }
body.newdesign-home .sch-legend .lg-now { width: 2px; height: 14px; border-radius: 0; background: #E11D48; }
body.newdesign-home .sch-h3-count { font-weight: 400; color: #525966; }
body.newdesign-home .sch-tl-row { border-top: none; }
body.newdesign-home .sch-abs { margin-top: 8px; }
body.newdesign-home .sch-abs summary { cursor: pointer; padding: 10px 0; font: 400 13px/18px 'Inter', sans-serif; color: #525966; }
body.newdesign-home .sch-abs-row { display: grid; grid-template-columns: 180px 1fr; gap: 12px; align-items: center; padding: 6px 0; font-size: 13px; }
body.newdesign-home .sch-tl-usual-key { display: inline-block; width: 22px; height: 12px; border: 1px dashed #98A2B3; border-radius: 3px; vertical-align: middle; margin-right: 6px; }
body.newdesign-home .sch-legend-note { margin: 10px 0 0; color: #6B7381; font: 400 13px 'Inter', sans-serif; }
body.newdesign-home .sch-now { position: absolute; top: -8px; bottom: -8px; width: 2px; background: #E11D48; z-index: 2; }
body.newdesign-home .sch-tl-row:first-of-type .sch-now span, body.newdesign-home .sch-tl-head + .sch-tl-row .sch-now span { position: absolute; top: -16px; left: -12px; font: 600 11px 'Inter', sans-serif; color: #E11D48; }
body.newdesign-home .sch-now span { display: none; }
body.newdesign-home .sch-tl-head + .sch-tl-row .sch-now span { display: block; }
body.newdesign-home .sch-tl-tags { display: flex; flex-wrap: wrap; gap: 4px; }
body.newdesign-home .sch-tag { padding: 2px 8px; border-radius: 999px; font: 500 12px/18px 'Inter', sans-serif; background: #F2F4F7; color: #525966; }
body.newdesign-home .sch-tag-extra_day { background: #DCFCE7; color: #15803D; }
body.newdesign-home .sch-tag-early_pickup, body.newdesign-home .sch-tag-late_arrival { background: #FFEDD5; color: #C2410C; }
body.newdesign-home .sch-av { width: 32px; height: 32px; border-radius: 50%; object-fit: cover; flex: 0 0 32px; }
body.newdesign-home .sch-av-ini { display: inline-flex; align-items: center; justify-content: center; background: #DCE7FB; color: #1E40AF; font: 600 12px 'Inter', sans-serif; }
body.newdesign-home .sch-person { display: flex; align-items: center; gap: 10px; padding: 8px 0; font: 400 15px/22px 'Inter', sans-serif; }
body.newdesign-home .sch-person em { margin-left: auto; color: #6B7381; font-style: normal; font-size: 13px; }
body.newdesign-home .sch-daycards { display: grid; grid-template-columns: repeat(auto-fit, minmax(110px, 1fr)); gap: 12px; margin-bottom: 16px; }
body.newdesign-home .sch-daychip2 { background: #CDEFD9; border-radius: 10px; padding: 10px 12px; display: flex; flex-direction: column; color: #14532D; }
body.newdesign-home .sch-daycard { background: #fff; border: 1px solid #E9EBEF; border-radius: 14px; padding: 14px 16px; display: flex; flex-direction: column; gap: 2px; color: #20252D; }
body.newdesign-home .sch-daycard em { font: 400 14px/20px 'Inter', sans-serif; font-style: normal; color: #525966; }
body.newdesign-home .sch-daychip2 span { font: 400 14px/20px 'Inter', sans-serif; }
body.newdesign-home .sch-daychip2 span small { display: block; font-size: 12px; line-height: 16px; opacity: .8; }   /* the date under the weekday */
body.newdesign-home .sch-daycard span { font: 400 13px/18px 'Inter', sans-serif; color: #525966; }
body.newdesign-home .sch-daychip2 b { font: 600 16px/24px 'Inter', sans-serif; }
body.newdesign-home .sch-daycard b { font: 400 24px/32px 'Inter', sans-serif; }
body.newdesign-home .sch-daychip2.full { background: #ECEEF2; color: #344054; }
body.newdesign-home .sch-daychip2.over { background: #FEE2E2; color: #991B1B; }
body.newdesign-home .sch-daychips { display: grid; grid-template-columns: repeat(auto-fit, minmax(80px, 1fr)); gap: 8px; }
body.newdesign-home .sch-who td { padding: 8px 6px; }
body.newdesign-home .sch-who th { background: transparent; font-size: 13px; padding: 10px 6px; border-bottom: 1px solid #EEF0F3; }
body.newdesign-home .sch-who th:not(:first-child), body.newdesign-home .sch-who td:not(:first-child) { text-align: center; }
body.newdesign-home .sch-wk-bar { display: block; height: 22px; min-width: 60px; border-radius: 4px; background: #A9BDEE; }
body.newdesign-home .sch-wk-bar.abs { background: repeating-linear-gradient(135deg, #E4E7EC 0 4px, #F6F7F9 4px 8px); }
body.newdesign-home .sch-wk-none { color: #20252D; }
body.newdesign-home .sch-legend .lg-wk-sched { width: 14px; height: 12px; border-radius: 3px; background: #A9BDEE; }
body.newdesign-home .sch-legend .lg-wk-none { width: 12px; height: 0; border-radius: 0; border-top: 1.5px solid #525966; }
body.newdesign-home .sch-legend .lg-wk-abs { width: 14px; height: 12px; border-radius: 3px; background: repeating-linear-gradient(135deg, #D0D5DD 0 3px, #F6F7F9 3px 6px); }
body.newdesign-home .sch-cell-on { display: inline-block; padding: 4px 8px; border-radius: 6px; background: #DCE7FB; color: #1E40AF; font: 500 12px/18px 'Inter', sans-serif; white-space: nowrap; }
body.newdesign-home .sch-cell-abs { display: inline-block; padding: 4px 8px; border-radius: 6px; background: #FDECEC; color: #B91C1C; font: 500 12px/18px 'Inter', sans-serif; }
body.newdesign-home .sch-cell-none { display: inline-block; width: 40px; height: 8px; border-radius: 4px; background: #EEF0F3; }
body.newdesign-home .sch-person-days .sch-mini-days { margin-left: auto; display: flex; gap: 6px; }
body.newdesign-home .sch-mini-days i { width: 30px; height: 30px; border-radius: 6px; display: inline-flex; align-items: center; justify-content: center; font: 600 13px 'Inter', sans-serif; font-style: normal; background: #F2F4F7; color: #98A2B3; }
body.newdesign-home .sch-mini-days i.on { background: #DCE7FB; color: #1E3A8A; }
body.newdesign-home .sch-col-head { align-items: flex-start; }
body.newdesign-home .sch-col-head p { margin-top: 4px; }
body.newdesign-home .sch-cap-top { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px 24px; flex-wrap: wrap; margin-bottom: 16px; }
body.newdesign-home .sch-cap-title { margin: 0 0 4px; font: 500 20px/28px 'Inter', sans-serif; color: #20252D; }
body.newdesign-home .sch-cap-top p { margin: 0; }
body.newdesign-home .sch-cap-range { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 0 0 12px; font: 500 17px/24px 'Inter', sans-serif; }
body.newdesign-home .sch-cap-navs { display: flex; gap: 8px; }
body.newdesign-home .sch-cap-navs .sch-navbtn { width: 28px; height: 28px; min-width: 28px; padding: 0; border-radius: 6px; }
body.newdesign-home .sch-cap-navs .sch-navbtn svg { width: 14px; height: 14px; }
body.newdesign-home .sch-cap { border-collapse: separate; border-spacing: 6px 8px; table-layout: auto; }
body.newdesign-home .sch-cap th.now { color: #20252D; font-weight: 600; }
body.newdesign-home .sch-cap th { font: 400 13px/18px 'Inter', sans-serif; color: #525966; text-align: center; vertical-align: bottom; padding: 0; }
body.newdesign-home .sch-cap .sch-cap-mon { display: block; font-weight: 500; color: #20252D; min-height: 18px; }
body.newdesign-home .sch-cap td { padding: 0; }
body.newdesign-home .sch-cap .sch-cap-class { text-align: left; font: 500 15px/22px 'Inter', sans-serif; padding-right: 12px; white-space: nowrap; max-width: 170px; overflow: hidden; text-overflow: ellipsis; }
body.newdesign-home .sch-cap .sch-cap-next { text-align: left; width: 180px; min-width: 150px; padding-left: 8px; font: 400 13px/18px 'Inter', sans-serif; color: #525966; }
body.newdesign-home .sch-cap .sch-cap-next b { display: block; font: 500 14px/20px 'Inter', sans-serif; color: #20252D; }
body.newdesign-home .sch-cap .sch-cap-next b.sch-cap-now { color: #15803D; }
body.newdesign-home .sch-cap .sch-cap-next small { display: block; font-size: 12px; line-height: 16px; color: #6B7381; }
body.newdesign-home .sch-cap-cell { width: 40px; height: 40px; margin: 0; padding: 0; border-radius: 8px; border: 1px solid transparent; cursor: pointer; font: 600 15px 'Inter', sans-serif; }
body.newdesign-home .sch-cap-cell:disabled { cursor: default; }
body.newdesign-home .cap-3 { background: #2E9E5B !important; color: #fff; }
body.newdesign-home .cap-1 { background: #93D5AC !important; color: #14532D; }
body.newdesign-home .cap-some { background: repeating-linear-gradient(135deg, #E3F4E9 0 5px, #B9E4C8 5px 10px) !important; color: #14532D; border-color: #93D5AC !important; }
body.newdesign-home .cap-full { background: #D0D5DD !important; color: #475467; }
body.newdesign-home .cap-notopen { background: #F1EEFC !important; border-color: #D9D1F5 !important; }
body.newdesign-home .cap-none { background: #F6F7FA !important; border-color: #EEF0F3 !important; }
body.newdesign-home .sch-legend i.cap-3, body.newdesign-home .sch-legend i.cap-1, body.newdesign-home .sch-legend i.cap-some,
body.newdesign-home .sch-legend i.cap-full, body.newdesign-home .sch-legend i.cap-notopen { width: 16px; height: 16px; border-radius: 4px; border: 1px solid transparent; }
body.newdesign-home .sch-foot { margin: 16px 0 0; padding-top: 14px; border-top: 1px solid #EEF0F3; color: #525966; font: 400 14px/20px 'Inter', sans-serif; }

/* rates */
body.newdesign-home .sch-rate { display: flex; align-items: center; gap: 16px; padding: 16px 0; border-top: 1px solid #EEF0F3; flex-wrap: wrap; }
body.newdesign-home .sch-rate > div:first-child { flex: 1 1 260px; min-width: 0; }
body.newdesign-home .sch-rate b { font: 500 17px/24px 'Inter', sans-serif; }
body.newdesign-home .sch-rate p { margin: 4px 0 0; color: #525966; font: 400 15px/22px 'Inter', sans-serif; }
body.newdesign-home .sch-rate-val { display: flex; align-items: center; gap: 10px; }
body.newdesign-home .sch-rate-val em { font-style: normal; color: #525966; font-size: 14px; min-width: 76px; }
body.newdesign-home .sch-money { display: flex; align-items: center; border: 1px solid #E2E4E9; border-radius: 10px; padding-left: 14px; background: #fff; }
body.newdesign-home .sch-money span { color: #525966; }
body.newdesign-home .sch-money .form-input { border: none !important; box-shadow: none !important; width: 100px; text-align: right; }
body.newdesign-home .sch-hours { width: 56px; padding: 2px 6px; border: 1px solid #E2E4E9; border-radius: 6px; font: 400 14px 'Inter', sans-serif; }
body.newdesign-home .sch-rates-sec { border-top: 1px solid #E2E4E9; margin-top: 8px; padding-top: 16px; }
body.newdesign-home .sch-rates-sec h5 { margin: 0; color: #525966; font: 500 14px/20px 'Inter', sans-serif; letter-spacing: 0.04em; }
body.newdesign-home .sch-rates-sec > .sch-muted { margin: 4px 0 12px; }
body.newdesign-home .sch-class-rates td .form-input { width: 110px; padding: 6px 10px; }
body.newdesign-home .sch-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: #7C5CDB; margin-right: 10px; }
body.newdesign-home .sch-add-rate { display: flex; align-items: center; gap: 12px; margin-top: 12px; flex-wrap: wrap; }
body.newdesign-home .sch-add-rate .sch-select { width: auto; min-width: 200px; }
body.newdesign-home .sch-rates-actions { display: flex; align-items: center; justify-content: flex-end; gap: 12px; padding-top: 16px; border-top: 1px solid #E2E4E9; margin-top: 8px; }
/* the global .btn-primary is flex: 1 (drawer footers) - here it is a normal right-aligned button */
body.newdesign-home .sch-rates-actions .btn-primary {
    flex: 0 0 auto; width: auto; min-width: 140px; height: 40px; margin: 0; padding: 0 22px; border-radius: 10px;
    background: #2563D7; color: #fff; font: 500 14px/20px 'Inter', sans-serif; cursor: pointer;
}
body.newdesign-home .sch-rates-actions .btn-primary:hover { background: #1D4ED8; }
body.newdesign-home .sch-rates-actions .btn-primary:disabled { opacity: 0.6; cursor: default; }

/* ---- phones ---- */
@media (max-width: 767px) {
    body.newdesign-home .sch-card { padding: 16px; border-radius: 12px; }
    body.newdesign-home .sch-grid-wrap, body.newdesign-home .sch-table-wrap { margin: 0 -16px; padding: 0 16px; }
    body.newdesign-home .sch-table-wrap.sch-flush { padding: 0; }
    body.newdesign-home .sch-flush .sch-table th:first-child, body.newdesign-home .sch-flush .sch-table td:first-child { padding-left: 16px; }
    body.newdesign-home .sch-flush .sch-table th:last-child, body.newdesign-home .sch-flush .sch-table td:last-child { padding-right: 16px; }
    body.newdesign-home .sch-side, body.newdesign-home .sch-cols { grid-template-columns: 1fr; }
    body.newdesign-home .sch-card-actions { width: 100%; }
    body.newdesign-home .sch-card-actions .sch-btn { flex: 1 1 auto; justify-content: center; }
    body.newdesign-home .sch-types { grid-template-columns: 1fr 1fr; }
    body.newdesign-home .sch-two, body.newdesign-home .sch-radios { grid-template-columns: 1fr; }
    body.newdesign-home .sch-classrow-top { flex-wrap: wrap; }
    body.newdesign-home .sch-classrow-top .sch-select, body.newdesign-home .sch-classrow-top .sch-readonly { flex: 1 1 100%; }
    body.newdesign-home .sch-stats { grid-template-columns: 1fr 1fr; }
    body.newdesign-home .sch-tabs { gap: 20px; }
    body.newdesign-home .sch-page-title { font-size: 24px; }
    body.newdesign-home .sch-tl-head, body.newdesign-home .sch-tl-row { grid-template-columns: 130px minmax(320px, 1fr); }
    body.newdesign-home .sch-abs-row { grid-template-columns: 130px 1fr; }
    body.newdesign-home .sch-occ-chart { margin: 0 -16px; padding-left: 60px; padding-right: 16px; }
    body.newdesign-home .sch-datenav { width: 100%; }
    body.newdesign-home .sch-navdate { flex: 1; padding: 0 10px; font-size: 14px; }
    body.newdesign-home .sch-rate-val { width: 100%; }
}

/* ---------------------------------------------------------- Move-ups tab */
body.newdesign-home .sch-mu-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin-bottom: 20px; }
body.newdesign-home .sch-mu-title { margin: 0 0 4px; font: 500 20px/28px 'Inter', sans-serif; color: #20252D; }
body.newdesign-home .sch-mu-head .sch-muted { margin: 0; }
body.newdesign-home .sch-mu-head .sch-btn { flex: 0 0 auto; }
body.newdesign-home .sch-mu-empty { text-align: center; padding: 40px 24px; }
body.newdesign-home .sch-mu-empty h3 { margin: 0 0 6px; font: 500 18px/26px 'Inter', sans-serif; }
body.newdesign-home .sch-mu-empty p { max-width: 460px; margin: 0 auto 18px; }
body.newdesign-home .sch-mu-empty .btn-primary { width: auto; padding: 0 20px; height: 40px; }
body.newdesign-home .sch-mu-attn { margin-bottom: 20px; border-color: #FBD5C0; }
body.newdesign-home .sch-mu-card > .sch-seg { margin-bottom: 16px; }
body.newdesign-home .sch-mu-none { padding: 8px 0 4px; margin: 0; }
body.newdesign-home .sch-mu-table { min-width: 640px; }
body.newdesign-home .sch-mu-table thead th { background: #EAF0FB; }
body.newdesign-home .sch-mu-table td { vertical-align: middle; padding-top: 12px; padding-bottom: 12px; }
body.newdesign-home .sch-mu-month td { padding: 18px 12px 6px; border-bottom: 0; font: 500 13px/18px 'Inter', sans-serif; letter-spacing: 0.02em; color: #525966; }
body.newdesign-home .sch-mu-who, body.newdesign-home .sch-mu-move, body.newdesign-home .sch-mu-date { display: flex; flex-direction: column; min-width: 0; }
body.newdesign-home .sch-mu-who b, body.newdesign-home .sch-mu-move b, body.newdesign-home .sch-mu-date b { font: 500 15px/22px 'Inter', sans-serif; color: #20252D; }
body.newdesign-home .sch-mu-who span, body.newdesign-home .sch-mu-move span, body.newdesign-home .sch-mu-date span { font: 400 13px/18px 'Inter', sans-serif; color: #6B7381; }
body.newdesign-home .sch-mu-move b { display: inline-flex; align-items: center; gap: 8px; flex-wrap: wrap; }
body.newdesign-home .sch-mu-st { white-space: nowrap; }
body.newdesign-home .sch-mu-act { width: 40px; text-align: right; }
body.newdesign-home .sch-mu-chip-s { display: inline-block; padding: 2px 10px; border-radius: 999px; background: #F2F4F7; color: #525966; font: 500 12px/18px 'Inter', sans-serif; }
body.newdesign-home .sch-mu-chip-s.ok { background: #DCFCE7; color: #15803D; }
body.newdesign-home .sch-mu-chip-s.warn { background: #FFEDD5; color: #C2410C; }
body.newdesign-home .sch-mu-chip-s.bad { background: #FDE8EC; color: #BE123C; }

/* ---------------------------------------------------------- Move-up rules page */
body.newdesign-home .sch-mu-bar {
    position: sticky; top: 0; z-index: 20; display: flex; align-items: center; justify-content: space-between; gap: 12px;
    margin: -8px 0 20px; padding: 12px 20px; border-radius: 12px; background: #141A26; color: #fff; font: 400 15px/22px 'Inter', sans-serif;
}
body.newdesign-home .sch-mu-bar > span { display: inline-flex; align-items: center; gap: 8px; }
body.newdesign-home .sch-mu-bar > span i { width: 8px; height: 8px; border-radius: 50%; background: #F97316; }
body.newdesign-home .sch-mu-bar > div { display: flex; gap: 8px; }
body.newdesign-home .sch-mu-bar .btn-primary { width: auto; height: 36px; padding: 0 16px; margin: 0; }
body.newdesign-home .sch-mu-bar-btn { height: 36px; padding: 0 14px; margin: 0; border: 1px solid #525966; border-radius: 8px; background: transparent; color: #fff; cursor: pointer; font: 500 14px 'Inter', sans-serif; }
body.newdesign-home .sch-mu-rules-head { display: flex; align-items: flex-start; gap: 12px; margin-bottom: 20px; }
body.newdesign-home .sch-mu-rules-head .sch-page-title { margin: 0 0 6px; }
body.newdesign-home .sch-mu-rules-head .sch-muted { margin: 0; max-width: 700px; }
body.newdesign-home .sch-mu-rules-head .sch-icon-btn { margin-top: 6px; }
body.newdesign-home .sch-mu-sec { margin-bottom: 20px; }
body.newdesign-home .sch-mu-sec-head { padding-bottom: 16px; margin-bottom: 16px; border-bottom: 1px solid #EEF0F3; }
body.newdesign-home .sch-mu-sec-head h3 { margin: 0 0 4px; font: 500 18px/26px 'Inter', sans-serif; color: #20252D; }
body.newdesign-home .sch-mu-sec-head .sch-muted { margin: 0; max-width: 760px; }
body.newdesign-home .sch-mu-rules { min-width: 760px; }
body.newdesign-home .sch-mu-rules td { vertical-align: middle; padding-top: 16px; padding-bottom: 16px; }
body.newdesign-home .sch-mu-rules td:first-child { width: 22%; }
body.newdesign-home .sch-mu-rules td:first-child b { display: block; font: 500 15px/22px 'Inter', sans-serif; }
body.newdesign-home .sch-mu-rules td:first-child small { color: #6B7381; font-size: 13px; }
body.newdesign-home .sch-mu-range { display: flex; align-items: center; gap: 8px; }
body.newdesign-home .sch-mu-range > span { color: #6B7381; }
body.newdesign-home .sch-mu-age { display: inline-flex; align-items: center; border: 1px solid #E2E4E9; border-radius: 8px; overflow: hidden; background: #fff; }
body.newdesign-home .sch-mu-num { width: 48px; height: 36px; margin: 0; padding: 0 8px; border: 0; border-right: 1px solid #E2E4E9; text-align: right; font: 500 15px 'Inter', sans-serif; color: #20252D; -moz-appearance: textfield; }
body.newdesign-home .sch-mu-num::-webkit-outer-spin-button, body.newdesign-home .sch-mu-num::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
body.newdesign-home .sch-mu-unit { height: 36px; margin: 0; padding: 0 26px 0 10px; border: 0; background: #fff; font: 400 14px 'Inter', sans-serif; color: #20252D; cursor: pointer; }
body.newdesign-home .sch-mu-hint { margin-top: 6px; font: 400 13px/18px 'Inter', sans-serif; color: #6B7381; }
body.newdesign-home .sch-mu-hint a { margin-left: 6px; color: #525966; text-decoration: underline; }
body.newdesign-home .sch-mu-next { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
body.newdesign-home .sch-mu-chip { display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 6px 0 6px; border-radius: 999px; background: #F2F4F7; font: 500 14px 'Inter', sans-serif; color: #20252D; }
body.newdesign-home .sch-mu-chip i { display: inline-flex; align-items: center; justify-content: center; width: 20px; height: 20px; border-radius: 50%; background: #fff; font: 500 11px 'Inter', sans-serif; font-style: normal; color: #525966; }
body.newdesign-home .sch-mu-chip button { display: inline-flex; align-items: center; justify-content: center; width: 22px; height: 22px; margin: 0; padding: 0; border: 0; border-radius: 50%; background: transparent; color: #525966; cursor: pointer; font-size: 15px; }
body.newdesign-home .sch-mu-chip button:hover { background: #E2E4E9; }
body.newdesign-home .sch-mu-terms .sch-mu-chip { padding-left: 12px; }
body.newdesign-home .sch-mu-add, body.newdesign-home .sch-mu-addbtn {
    height: 32px; margin: 0; padding: 0 14px; border: 1px dashed #93B4F0; border-radius: 999px; background: #fff; color: #2563D7;
    font: 500 14px 'Inter', sans-serif; cursor: pointer; -webkit-appearance: none; appearance: none;
}
body.newdesign-home .sch-mu-stay { font-size: 14px; }
body.newdesign-home .sch-mu-note { margin: 12px 0 0; font: 400 13px/18px 'Inter', sans-serif; color: #C2410C; }
body.newdesign-home .sch-mu-radios { display: flex; flex-direction: column; gap: 12px; }
body.newdesign-home .sch-mu-radio {
    display: flex; align-items: flex-start; gap: 12px; width: 100%; margin: 0; padding: 14px 16px; border: 1px solid #E2E4E9; border-radius: 10px;
    background: #fff; text-align: left; cursor: pointer;
}
body.newdesign-home .sch-mu-radio.on { border: 2px solid #2563D7; padding: 13px 15px; }
body.newdesign-home .sch-mu-dot { flex: 0 0 18px; width: 18px; height: 18px; margin-top: 2px; border-radius: 50%; border: 1.5px solid #C9CDD4; box-sizing: border-box; }
body.newdesign-home .sch-mu-radio.on .sch-mu-dot { border: 5px solid #2563D7; }
body.newdesign-home .sch-mu-radio b { display: block; font: 500 15px/22px 'Inter', sans-serif; color: #20252D; }
body.newdesign-home .sch-mu-radio b em { margin-left: 8px; padding: 2px 8px; border-radius: 6px; background: #DCFCE7; color: #15803D; font: 500 12px/18px 'Inter', sans-serif; font-style: normal; }
body.newdesign-home .sch-mu-radio small { display: block; font: 400 13px/18px 'Inter', sans-serif; color: #6B7381; }
body.newdesign-home .sch-mu-terms { margin-top: 16px; }
body.newdesign-home .sch-mu-terms > b { display: block; margin-bottom: 8px; font: 500 14px 'Inter', sans-serif; }
body.newdesign-home .sch-mu-terms > div { display: flex; flex-wrap: wrap; gap: 8px; }
body.newdesign-home .sch-mu-toggle { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px 0; border-bottom: 1px solid #EEF0F3; }
body.newdesign-home .sch-mu-toggle:last-child { border-bottom: 0; }
body.newdesign-home .sch-mu-toggle b { display: block; font: 500 15px/22px 'Inter', sans-serif; color: #20252D; }
body.newdesign-home .sch-mu-toggle small { display: block; font: 400 13px/18px 'Inter', sans-serif; color: #6B7381; }
body.newdesign-home .sch-mu-toggle-r { display: flex; align-items: center; gap: 12px; flex: 0 0 auto; }
body.newdesign-home .sch-mu-days { height: 36px; margin: 0; padding: 0 28px 0 12px; border: 1px solid #E2E4E9; border-radius: 8px; background: #fff; font: 400 14px 'Inter', sans-serif; cursor: pointer; }
@media (max-width: 640px) {
    body.newdesign-home .sch-mu-head, body.newdesign-home .sch-mu-bar { flex-direction: column; align-items: stretch; }
    body.newdesign-home .sch-mu-toggle { flex-direction: column; align-items: flex-start; }
}
body.newdesign-home #NewFrame #schCapacityBlock .sch-start-date { display: flex; align-items: center; min-width: 200px; box-sizing: border-box; }
body.newdesign-home #NewFrame #schCapacityBlock .sch-date-clear { margin-left: auto; padding-left: 12px; font: 500 13px/18px 'Inter', sans-serif; color: #2563D7; text-decoration: none; }
body.newdesign-home #NewFrame #schCapacityBlock .sch-optional { font-weight: 400; color: #6B7381; }
