:root {
    --pool: #00b8d9;
    --deep: #143b5a;
    --coral: #ff7a8a;
    --violet: #6c63ff;
    --sand: #fff8ea;
    --mist: #f5fdff;
    --line: #d9eaf3;
    --muted: #6b8597;
}

* { box-sizing: border-box; }

body {
    margin: 0;
    font-family: 'Segoe UI', Arial, sans-serif;
    background: linear-gradient(135deg, var(--mist), #eef7ff 55%, var(--sand));
    color: var(--deep);
}

a { color: var(--pool); text-decoration: none; }

.topbar {
    position: sticky;
    top: 0;
    z-index: 5;
    background: rgba(255,255,255,.94);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(20,59,90,.08);
}

.nav {
    max-width: 1700px;
    margin: auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 28px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 14px;
    font-weight: 900;
    font-size: 24px;
    color: var(--deep);
}

.brand img {
    width: 92px;
    height: 52px;
    object-fit: contain;
    display: block;
}

.navlinks {
    display: flex;
    gap: 16px;
    align-items: center;
    flex-wrap: wrap;
}

.container {
    width: 100%;
    max-width: 1700px;
    margin: 0 auto;
    padding: 16px 34px 26px;
}

.hero { display: grid; grid-template-columns: 1.2fr .8fr; gap: 24px; align-items: center; margin: 12px 0 28px; }

.hero-card,
.card {
    background: #fff;
    border: 1px solid rgba(20,59,90,.08);
    box-shadow: 0 18px 45px rgba(20,59,90,.10);
    border-radius: 28px;
    padding: 26px;
}

.hero h1 { font-size: clamp(32px,5vw,58px); line-height: 1; margin: 0 0 14px; }

.badge,
.role-badge {
    display: inline-block;
    background: rgba(0,184,217,.12);
    color: #057a93;
    border-radius: 999px;
    padding: 8px 16px;
    font-weight: 900;
}

.badge { margin-bottom: 12px; }

.btn {
    border: 0;
    border-radius: 999px;
    padding: 11px 18px;
    font-weight: 900;
    cursor: pointer;
    display: inline-block;
    text-align: center;
}

.btn-primary { background: linear-gradient(90deg,var(--pool),var(--violet)); color: #fff; }
.btn-light { background: #eef8fb; color: var(--deep); }
.btn-coral { background: var(--coral); color: #fff; }

.grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 18px; }
.slot { border: 1px solid rgba(0,184,217,.22); border-radius: 22px; padding: 18px; background: linear-gradient(180deg,#fff,#f7fdff); }

label { font-weight: 800; display: block; margin: 12px 0 6px; }
input, select, textarea { width: 100%; padding: 12px 13px; border: 1px solid #cfe6ef; border-radius: 14px; font: inherit; background: #fff; }
textarea { min-height: 95px; }

.alert { padding: 14px 16px; border-radius: 18px; margin: 14px 0; font-weight: 700; }
.success { background: #eafaf1; color: #146c43; }
.error { background: #fff1f2; color: #a31d33; }

.table-wrap { overflow: auto; }
.table { width: 100%; border-collapse: separate; border-spacing: 0 10px; }
.table th { text-align: left; font-size: 13px; text-transform: uppercase; letter-spacing: .06em; color: #5e7b91; }
.table td { background: #fff; padding: 14px; border-top: 1px solid #e9f3f7; border-bottom: 1px solid #e9f3f7; }
.table td:first-child { border-left: 1px solid #e9f3f7; border-radius: 16px 0 0 16px; }
.table td:last-child { border-right: 1px solid #e9f3f7; border-radius: 0 16px 16px 0; }

.auth { max-width: 520px; margin: 28px auto; }
.footer { text-align: center; color: var(--muted); padding: 34px; }

.user-chip { display: flex; align-items: center; gap: 12px; margin-right: 14px; }
.user-name { color: var(--deep); font-weight: 900; white-space: nowrap; }

.pill { display: inline-flex; align-items: center; justify-content: center; padding: 8px 14px; border-radius: 999px; background: #e8fbff; font-weight: 900; line-height: 1.2; }
.muted { color: var(--muted); }
.rate-display, .rate-cell { font-weight: 900; }

/* Shared schedule title/summary card */
.schedule-summary-card {
    background: #fff;
    border: 1px solid rgba(20,59,90,.08);
    box-shadow: 0 18px 45px rgba(20,59,90,.10);
    border-radius: 28px;
    padding: 28px 34px;
    margin: 10px 0 22px;
}

.schedule-title-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.schedule-title-row h1 {
    font-size: clamp(34px, 4vw, 52px);
    line-height: 1;
    margin: 0 0 10px;
}

.schedule-title-row p { margin: 0; font-size: 17px; }
.schedule-mode-form { display: flex; align-items: end; gap: 10px; min-width: 230px; }
.schedule-mode-form label { margin: 0; font-size: 13px; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }
.schedule-mode-form select { height: 46px; min-width: 150px; }

.metric-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: 22px; }
.metric-card {
    background: linear-gradient(180deg, #f7fbff, #f1f7fc);
    border: 1px solid #d7e7f2;
    border-radius: 18px;
    padding: 18px 20px;
    text-align: center;
}
.metric-card span { display: block; color: #607b93; font-weight: 600; margin-bottom: 8px; }
.metric-card strong { display: block; color: #1f4d7d; font-size: 30px; line-height: 1; }

/* Card-like full-width schedule grids */
.schedule-card {
    width: 100%;
    background: rgba(255,255,255,.42);
    border: 1px solid rgba(20,59,90,.08);
    border-radius: 26px;
    padding: 18px;
    box-shadow: 0 14px 35px rgba(20,59,90,.06);
}

.schedule-grid,
.parent-booking-grid,
.parent-schedule-grid {
    display: grid;
    align-items: center;
    column-gap: 18px;
}

.schedule-grid { grid-template-columns: 10% 13% 12% 8% 17% 8% 15% 11% 6%; }
.parent-booking-grid { grid-template-columns: 11% 15% 14% 12% 8% 18% 15% 7%; }
.parent-schedule-grid { grid-template-columns: 11% 15% 14% 12% 8% 18% 14% 8%; }

.schedule-header-grid,
.parent-schedule-header {
    color: #5e7b91;
    font-size: 13px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: .06em;
    padding: 4px 14px 12px;
}

.schedule-row-grid,
.parent-schedule-row {
    background: #fff;
    border: 1px solid #e8f1f6;
    border-radius: 22px;
    padding: 16px 14px;
    margin-bottom: 12px;
    min-height: 78px;
    font-weight: 700;
}

.schedule-row-grid select,
.parent-schedule-row select {
    height: 46px;
    min-width: 0;
}

.schedule-row-grid .btn,
.parent-schedule-row .btn {
    width: 100%;
    min-width: 0;
    height: 46px;
    padding: 8px 12px;
}

.schedule-location,
.schedule-parent-booked,
.schedule-child-booked { line-height: 1.35; }
.empty-card { background: #fff; border: 1px solid #e8f1f6; border-radius: 22px; padding: 24px; text-align: center; color: var(--deep); }
.empty-card h2 { margin-top: 0; }

/* Existing booking/filter helpers */
.page-title { margin: 28px 0 18px; }
.page-title h1 { margin: 10px 0 8px; font-size: clamp(34px, 5vw, 58px); line-height: 1; }
.filter-card { margin-bottom: 22px; }
.filter-grid { display: grid; grid-template-columns: 1fr 1fr auto; gap: 16px; align-items: end; }
.filter-actions { display: flex; gap: 10px; }
.booking-grid .table select { min-width: 150px; }
.service-row { display: grid; grid-template-columns: minmax(160px, 1fr) 160px; gap: 14px; align-items: center; margin: 10px 0; }
.service-row label { margin: 0; }
.readonly-field { padding: 12px 13px; border: 1px solid #cfe6ef; border-radius: 14px; background: #f7fdff; margin: 8px 0 12px; }
.compact-title { margin-top: 8px; }

/* Login page */
.login-body {
    margin: 0;
    min-height: 100vh;
    overflow-x: hidden;
    font-family: 'Segoe UI', Arial, sans-serif;
    background:
        radial-gradient(circle at 50% 8%, rgba(255,255,255,.95) 0%, rgba(238,248,255,.78) 42%, rgba(218,237,255,.92) 100%),
        linear-gradient(180deg, #f4fbff 0%, #e8f5ff 58%, #d7ecff 100%);
    position: relative;
}
.login-body::before { content: ""; position: fixed; left: -12%; right: -12%; bottom: -210px; height: 380px; background: rgba(157,205,255,.30); border-radius: 50% 50% 0 0; z-index: 0; }
.login-body::after { content: ""; position: fixed; left: -8%; right: -8%; bottom: -285px; height: 430px; background: rgba(129,190,247,.22); border-radius: 50% 50% 0 0; z-index: 0; }
.login-shell { position: relative; z-index: 2; min-height: 100vh; display: flex; flex-direction: column; align-items: center; justify-content: flex-start; padding: 18px 20px 40px; }
.login-logo-area { width: 100%; text-align: center; margin-top: 0; margin-bottom: -46px; position: relative; z-index: 2; }
.login-logo { width: min(700px, 75vw); height: auto; display: inline-block; filter: drop-shadow(0 12px 30px rgba(0,120,255,.18)); image-rendering: auto; }
.login-card-modern { position: relative; z-index: 3; width: 100%; max-width: 430px; background: rgba(255,255,255,.97); border: 1px solid rgba(255,255,255,.85); border-radius: 30px; padding: 26px 30px 30px; box-shadow: 0 26px 70px rgba(20,59,90,.15); backdrop-filter: blur(8px); margin-top: 50px; }
.login-card-modern h1 { margin: 0 0 18px; color: #143b5a; font-size: 38px; line-height: 1; font-weight: 900; text-align: center; }
.login-card-modern label { display: block; margin: 0 0 7px; color: #143b5a; font-size: 16px; font-weight: 900; }
.login-card-modern input { width: 100%; height: 46px; border-radius: 15px; border: 1px solid #cfe6ef; padding: 0 16px; margin-bottom: 17px; font-size: 15px; background: #fff; box-sizing: border-box; }
.login-card-modern input:focus { outline: none; border-color: #00b8d9; box-shadow: 0 0 0 3px rgba(0,184,217,.12); }
.login-button-row { display: flex; gap: 14px; margin-top: 4px; }
.login-button-row .btn { flex: 1; border: 0; border-radius: 999px; padding: 14px 18px; font-size: 16px; font-weight: 900; cursor: pointer; text-align: center; text-decoration: none; }
.login-button-row .btn-primary { background: linear-gradient(90deg,#00b8d9,#6c63ff); color: #fff; }
.login-button-row .btn-light { background: #eef8fb; color: #143b5a; }
.login-card-modern .alert.error { background: #fff1f2; color: #a31d33; border-radius: 14px; padding: 12px; margin: 0 0 16px; font-weight: 700; }
.forgot-password-link { margin-top: 16px; text-align: center; font-weight: 800; }
.reset-shell { justify-content: center; }
.reset-card-modern { margin-top: 0; }
.reset-note { text-align: center; color: var(--muted); margin-top: -8px; }

@media (max-width: 1250px) {
    .schedule-card { overflow-x: auto; }
    .schedule-grid { min-width: 1120px; }
    .parent-booking-grid, .parent-schedule-grid { min-width: 1050px; }
}

@media (max-height: 760px) {
    .login-logo { width: min(595px, 70vw); }
    .login-logo-area { margin-bottom: -38px; }
    .login-card-modern { padding: 22px 28px 26px; }
    .login-card-modern h1 { font-size: 34px; margin-bottom: 14px; }
    .login-card-modern input { height: 42px; margin-bottom: 13px; }
}

@media (max-width: 800px) {
    .hero { grid-template-columns: 1fr; }
    .grid { grid-template-columns: 1fr; }
    .nav { align-items: flex-start; flex-direction: column; }
    .navlinks { gap: 10px; }
    .hero-card, .card { padding: 20px; border-radius: 22px; }
    .table { min-width: 720px; }
    .filter-grid { grid-template-columns: 1fr; }
    .filter-actions { flex-wrap: wrap; }
    .service-row { grid-template-columns: 1fr; }
    .user-chip { width: 100%; margin-right: 0; }
    .schedule-title-row { flex-direction: column; align-items: flex-start; }
    .schedule-mode-form { width: 100%; }
    .metric-grid { grid-template-columns: 1fr; }
}

@media (max-width: 700px) {
    .login-shell { justify-content: flex-start; padding-top: 16px; }
    .login-logo { width: 82vw; }
    .login-logo-area { margin-bottom: -34px; }
    .login-card-modern { max-width: 92vw; padding: 24px; border-radius: 26px; }
    .login-card-modern h1 { font-size: 34px; }
    .login-button-row { flex-direction: column; }
}


/* =========================================================
   SPLASH SISTERS COMPACT SCHEDULE GRID UPDATE
   Makes parent/instructor schedule grids fit desktop width.
========================================================= */

.schedule-card,
.schedule-grid-card,
.schedule-table-card {
    width: 100%;
    overflow: hidden;
}

.schedule-toolbar,
.schedule-card-header,
.schedule-title-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
}

.schedule-filter,
.view-filter,
.view-selector,
.schedule-view-filter {
    display: flex;
    align-items: center;
    gap: 12px;
}

.schedule-filter label,
.view-filter label,
.view-selector label,
.schedule-view-filter label,
.schedule-view-label,
.view-label {
    font-size: 15px !important;
    font-weight: 900 !important;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: #5e7b91;
    margin: 0;
    line-height: 48px;
}

.schedule-filter select,
.view-filter select,
.view-selector select,
.schedule-view-filter select {
    height: 48px;
    min-width: 185px;
    font-size: 15px;
    border-radius: 15px;
}

/* General table card */
.schedule-table-wrap {
    width: 100%;
    overflow-x: hidden;
    margin-top: 8px;
    background: rgba(255,255,255,.72);
    border: 1px solid rgba(20,59,90,.08);
    border-radius: 28px;
    box-shadow: 0 18px 45px rgba(20,59,90,.08);
    padding: 18px 20px 20px;
}

.schedule-table {
    width: 100%;
    table-layout: fixed;
    border-collapse: separate;
    border-spacing: 0 12px;
}

.schedule-table th {
    padding: 0 8px 8px;
    text-align: left;
    font-size: 11px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: .055em;
    color: #6a8194;
    white-space: nowrap;
}

.schedule-table td {
    padding: 12px 8px;
    vertical-align: middle;
    background: #fff;
    border-top: 1px solid #e8f1f6;
    border-bottom: 1px solid #e8f1f6;
    font-weight: 700;
    font-size: 13px;
    line-height: 1.25;
}

.schedule-table td:first-child {
    border-left: 1px solid #e8f1f6;
    border-radius: 18px 0 0 18px;
}

.schedule-table td:last-child {
    border-right: 1px solid #e8f1f6;
    border-radius: 0 18px 18px 0;
}

.schedule-table select {
    width: 100%;
    min-width: 0;
    height: 40px;
    border-radius: 13px;
    border: 1px solid #d7e5ef;
    padding: 0 10px;
    font-size: 13px;
    background: #fff;
}

.schedule-table .btn {
    width: 100%;
    min-width: 0;
    height: 40px;
    padding: 7px 8px;
    font-size: 13px;
    text-align: center;
}

.schedule-table .pill {
    min-width: 0;
    min-height: 38px;
    padding: 8px 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    white-space: normal;
    font-size: 13px;
}

.schedule-date,
.schedule-time,
.schedule-rate,
.schedule-status {
    font-weight: 800;
}

.schedule-location {
    line-height: 1.25;
}

.rate-cell {
    font-weight: 900;
}

/* Instructor table: 9 columns */
.schedule-table .col-date {
    width: 9%;
}

.schedule-table .col-time {
    width: 13%;
}

.schedule-table .col-type {
    width: 10%;
}

.schedule-table .col-rate {
    width: 7%;
}

.schedule-table .col-location {
    width: 15%;
}

.schedule-table .col-status {
    width: 7%;
}

.schedule-table .col-parent {
    width: 16%;
}

.schedule-table .col-child {
    width: 14%;
}

.schedule-table .col-actions {
    width: 9%;
}

/* Parent booking table commonly has 8 columns */
.parent-schedule-table .col-date,
.booking-schedule-table .col-date {
    width: 10%;
}

.parent-schedule-table .col-time,
.booking-schedule-table .col-time {
    width: 13%;
}

.parent-schedule-table .col-instructor,
.booking-schedule-table .col-instructor {
    width: 13%;
}

.parent-schedule-table .col-type,
.booking-schedule-table .col-type {
    width: 11%;
}

.parent-schedule-table .col-rate,
.booking-schedule-table .col-rate {
    width: 8%;
}

.parent-schedule-table .col-location,
.booking-schedule-table .col-location {
    width: 17%;
}

.parent-schedule-table .col-child,
.booking-schedule-table .col-child {
    width: 18%;
}

.parent-schedule-table .col-actions,
.booking-schedule-table .col-actions {
    width: 10%;
}

/* Fallback for older parent table using .table only */
.booking-grid .table,
.parent-booking-grid .table,
.table.booking-table {
    width: 100%;
    table-layout: fixed;
    border-collapse: separate;
    border-spacing: 0 12px;
}

.booking-grid .table th,
.parent-booking-grid .table th,
.table.booking-table th {
    font-size: 11px;
    padding: 0 8px 8px;
}

.booking-grid .table td,
.parent-booking-grid .table td,
.table.booking-table td {
    font-size: 13px;
    padding: 12px 8px;
}

.booking-grid .table select,
.parent-booking-grid .table select,
.table.booking-table select {
    min-width: 0;
    width: 100%;
    height: 40px;
    font-size: 13px;
}

.booking-grid .table .btn,
.parent-booking-grid .table .btn,
.table.booking-table .btn {
    height: 40px;
    padding: 7px 8px;
    font-size: 13px;
}

/* Smaller title card, consistent for parent and instructor */
.schedule-summary-card,
.compact-title {
    margin-top: 0;
    margin-bottom: 18px;
    padding: 38px 42px;
}

.schedule-summary-card h1,
.compact-title h1 {
    font-size: clamp(34px, 3.4vw, 50px);
    line-height: 1;
    margin: 0 0 10px;
}

.schedule-summary-card p,
.compact-title p {
    margin: 0;
    font-size: 18px;
}

/* Money/metric cards */
.metric-grid,
.schedule-metrics {
    display: grid;
    grid-template-columns: repeat(3, minmax(0,1fr));
    gap: 16px;
    margin-top: 22px;
}

.metric-card,
.schedule-metric {
    background: linear-gradient(180deg,#f9fdff,#f0f8ff);
    border: 1px solid #d7e9f5;
    border-radius: 18px;
    padding: 18px;
    text-align: center;
}

.metric-label,
.schedule-metric-label {
    color: #5e7b91;
    font-weight: 700;
    font-size: 14px;
}

.metric-value,
.schedule-metric-value {
    color: #194a78;
    font-weight: 900;
    font-size: 28px;
    margin-top: 6px;
}

/* Desktop: keep grids on one page */
@media (min-width: 1201px) {
    .schedule-table-wrap {
        overflow-x: hidden;
    }

    .schedule-table {
        min-width: 0;
    }
}

/* Medium screens: allow scroll instead of breaking */
@media (max-width: 1200px) {
    .schedule-table-wrap {
        overflow-x: auto;
    }

    .schedule-table {
        min-width: 1050px;
    }
}

@media (max-width: 800px) {
    .schedule-toolbar,
    .schedule-card-header,
    .schedule-title-row {
        align-items: flex-start;
        flex-direction: column;
    }

    .metric-grid,
    .schedule-metrics {
        grid-template-columns: 1fr;
    }

    .schedule-summary-card,
    .compact-title {
        padding: 26px 24px;
    }
}


/* =========================================================
   SPLASH SISTERS GRID ACTION BUTTON VISIBILITY FIX
   Keeps Book button visible and prevents Upcoming text clipping.
========================================================= */

.schedule-filter select,
.view-filter select,
.view-selector select,
.schedule-view-filter select,
.schedule-title-row select,
.schedule-toolbar select {
    height: 52px !important;
    min-width: 220px !important;
    padding: 0 44px 0 18px !important;
    line-height: 52px !important;
    font-size: 16px !important;
}

.schedule-filter label,
.view-filter label,
.view-selector label,
.schedule-view-filter label,
.schedule-view-label,
.view-label {
    font-size: 16px !important;
    line-height: 52px !important;
}

/* Make the schedule grid fit desktop without losing the Actions column */
.schedule-table-wrap {
    overflow-x: hidden;
    padding: 14px 16px 18px;
}

.schedule-table {
    table-layout: fixed;
    width: 100%;
    border-spacing: 0 10px;
}

.schedule-table th {
    font-size: 10.5px;
    padding: 0 6px 7px;
}

.schedule-table td {
    font-size: 12.5px;
    padding: 10px 6px;
    line-height: 1.22;
}

.schedule-table select {
    height: 38px;
    font-size: 12.5px;
    padding: 0 8px;
    border-radius: 12px;
}

.schedule-table .btn {
    height: 38px;
    min-width: 64px;
    width: 100%;
    padding: 7px 8px;
    font-size: 12.5px;
    white-space: nowrap;
}

.schedule-table .pill {
    min-height: 36px;
    padding: 7px 10px;
    font-size: 12.5px;
}

/* Instructor 9-column layout tuned to keep Book visible */
.schedule-table .col-date {
    width: 9%;
}

.schedule-table .col-time {
    width: 12%;
}

.schedule-table .col-type {
    width: 10%;
}

.schedule-table .col-rate {
    width: 7%;
}

.schedule-table .col-location {
    width: 14%;
}

.schedule-table .col-status {
    width: 7%;
}

.schedule-table .col-parent {
    width: 14%;
}

.schedule-table .col-child {
    width: 13%;
}

.schedule-table .col-actions {
    width: 8%;
}

/* Parent schedule table tuned separately */
.parent-schedule-table .col-date,
.booking-schedule-table .col-date {
    width: 9%;
}

.parent-schedule-table .col-time,
.booking-schedule-table .col-time {
    width: 12%;
}

.parent-schedule-table .col-instructor,
.booking-schedule-table .col-instructor {
    width: 12%;
}

.parent-schedule-table .col-type,
.booking-schedule-table .col-type {
    width: 10%;
}

.parent-schedule-table .col-rate,
.booking-schedule-table .col-rate {
    width: 7%;
}

.parent-schedule-table .col-location,
.booking-schedule-table .col-location {
    width: 15%;
}

.parent-schedule-table .col-child,
.booking-schedule-table .col-child {
    width: 15%;
}

.parent-schedule-table .col-actions,
.booking-schedule-table .col-actions {
    width: 8%;
}

/* If an older table is missing colgroup, still make it compact */
.parent-booking-grid .table,
.booking-grid .table,
.table.booking-table {
    table-layout: fixed;
    width: 100%;
}

.parent-booking-grid .table th,
.booking-grid .table th,
.table.booking-table th {
    font-size: 10.5px;
    padding: 0 6px 7px;
}

.parent-booking-grid .table td,
.booking-grid .table td,
.table.booking-table td {
    font-size: 12.5px;
    padding: 10px 6px;
}

.parent-booking-grid .table select,
.booking-grid .table select,
.table.booking-table select {
    height: 38px;
    font-size: 12.5px;
    padding: 0 8px;
}

.parent-booking-grid .table .btn,
.booking-grid .table .btn,
.table.booking-table .btn {
    height: 38px;
    font-size: 12.5px;
    padding: 7px 8px;
    white-space: nowrap;
}

@media (min-width: 1201px) {
    .schedule-table-wrap {
        overflow-x: hidden !important;
    }

    .schedule-table {
        min-width: 0 !important;
    }
}


.schedule-table-wrap {
    overflow-x: hidden !important;
    padding: 12px !important;
}

.schedule-table {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    table-layout: fixed !important;
}

    .schedule-table th,
    .schedule-table td {
        font-size: 12px !important;
        padding: 9px 5px !important;
    }

    .schedule-table select {
        height: 36px !important;
        font-size: 12px !important;
        padding: 0 6px !important;
        min-width: 0 !important;
        max-width: 100% !important;
    }

    .schedule-table .btn {
        height: 36px !important;
        font-size: 12px !important;
        padding: 6px 8px !important;
        min-width: 58px !important;
        width: 100% !important;
    }

    /* Instructor columns must total 100% */
    .schedule-table .col-date {
        width: 8% !important;
    }

    .schedule-table .col-time {
        width: 11% !important;
    }

    .schedule-table .col-type {
        width: 9% !important;
    }

    .schedule-table .col-rate {
        width: 6% !important;
    }

    .schedule-table .col-location {
        width: 13% !important;
    }

    .schedule-table .col-status {
        width: 7% !important;
    }

    .schedule-table .col-parent {
        width: 15% !important;
    }

    .schedule-table .col-child {
        width: 14% !important;
    }

    .schedule-table .col-actions {
        width: 7% !important;
    }

.schedule-actions {
    display: table-cell !important;
    visibility: visible !important;
    overflow: visible !important;
}

    .schedule-actions .btn {
        display: inline-block !important;
    }


/* FINAL FIX - grid version, not table version
   This is the layout currently used by the Instructor and Parent schedule pages. */
.schedule-card {
    overflow: visible !important;
    padding: 14px !important;
}

.schedule-grid {
    grid-template-columns: 8% 11% 9% 6% 12% 7% 14% 13% 7% !important;
    column-gap: 12px !important;
}

.schedule-header-grid {
    font-size: 12px !important;
    padding: 4px 10px 10px !important;
}

.schedule-row-grid {
    font-size: 12px !important;
    padding: 12px 10px !important;
    min-height: 62px !important;
}

.schedule-row-grid select {
    height: 38px !important;
    font-size: 12px !important;
    padding: 0 8px !important;
}

.schedule-row-grid .btn {
    height: 38px !important;
    font-size: 12px !important;
    padding: 7px 10px !important;
    min-width: 62px !important;
}

.schedule-row-grid .pill {
    padding: 7px 10px !important;
    font-size: 12px !important;
    min-height: 34px !important;
}

/* Parent grid version */
.parent-booking-grid,
.parent-schedule-grid {
    grid-template-columns: 9% 12% 12% 10% 7% 15% 14% 7% !important;
    column-gap: 12px !important;
}

.parent-schedule-header,
.parent-schedule-row {
    font-size: 12px !important;
}

.parent-schedule-row {
    padding: 12px 10px !important;
    min-height: 62px !important;
}

.parent-schedule-row select {
    height: 38px !important;
    font-size: 12px !important;
    padding: 0 8px !important;
}

.parent-schedule-row .btn {
    height: 38px !important;
    font-size: 12px !important;
    padding: 7px 10px !important;
    min-width: 62px !important;
}

/* Make sure the action column is visible */
.schedule-row-grid > div:last-child,
.parent-schedule-row > div:last-child {
    display: block !important;
    visibility: visible !important;
    overflow: visible !important;
}

.schedule-header-grid > div:last-child,
.parent-schedule-header > div:last-child {
    display: block !important;
    visibility: visible !important;
}

/* Slightly improve View dropdown alignment */
.schedule-mode-form label {
    font-size: 15px !important;
    line-height: 50px !important;
}

.schedule-mode-form select {
    height: 50px !important;
    min-width: 220px !important;
    padding: 0 44px 0 18px !important;
    font-size: 16px !important;
}


/* =========================================================
   Schedule mode/date filter + paid column updates
========================================================= */
.schedule-filter-form {
    display: flex;
    align-items: flex-end;
    justify-content: flex-end;
    gap: 14px;
    flex-wrap: wrap;
}

.schedule-filter-row {
    display: flex;
    align-items: center;
    gap: 10px;
}

.schedule-filter-row input[type="date"] {
    width: 175px;
    height: 52px;
    border-radius: 15px;
    padding: 0 14px;
    font-size: 16px;
}

.clear-date-button {
    height: 52px;
    display: inline-flex;
    align-items: center;
}

.metric-grid-four {
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
}

.instructor-available-grid {
    grid-template-columns: 10% 13% 11% 7% 15% 8% 16% 12% 8% !important;
}

.instructor-booked-grid {
    grid-template-columns: 9% 12% 10% 7% 14% 7% 15% 10% 7% 9% !important;
}

.parent-booking-grid {
    grid-template-columns: 10% 13% 13% 11% 7% 18% 18% 10% !important;
}

.parent-schedule-grid {
    grid-template-columns: 11% 14% 14% 12% 8% 20% 13% 8% !important;
}

.schedule-row-grid,
.parent-schedule-row {
    font-size: 12px !important;
    padding: 11px 10px !important;
    min-height: 62px !important;
}

.schedule-header-grid,
.parent-schedule-header {
    font-size: 11px !important;
    padding: 4px 10px 10px !important;
}

.schedule-row-grid select,
.parent-schedule-row select {
    height: 38px !important;
    font-size: 12px !important;
    padding: 0 8px !important;
}

.schedule-row-grid .btn,
.parent-schedule-row .btn {
    height: 38px !important;
    font-size: 12px !important;
    padding: 7px 10px !important;
}

.schedule-row-grid .pill,
.parent-schedule-row .pill {
    padding: 7px 10px !important;
    font-size: 12px !important;
    min-height: 34px !important;
}

.paid-form {
    margin: 0;
}

.paid-checkbox-label {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin: 0;
    font-size: 12px;
    font-weight: 900;
    cursor: pointer;
}

.paid-checkbox-label input[type="checkbox"] {
    width: 18px;
    height: 18px;
    padding: 0;
    margin: 0;
}

@media (max-width: 1250px) {
    .instructor-available-grid,
    .instructor-booked-grid,
    .parent-booking-grid,
    .parent-schedule-grid {
        min-width: 1120px;
    }
}

@media (max-width: 900px) {
    .metric-grid-four {
        grid-template-columns: 1fr 1fr !important;
    }
}

@media (max-width: 650px) {
    .metric-grid-four {
        grid-template-columns: 1fr !important;
    }

    .schedule-filter-form {
        width: 100%;
        justify-content: flex-start;
    }
}



/* =========================================================
   Splash Sisters booking confirmation + schedule polish
========================================================= */

/* Force four summary/metric cards on one row on desktop */
.schedule-metrics,
.metric-grid {
    display: grid !important;
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    gap: 16px !important;
    align-items: stretch !important;
}

.schedule-metric,
.metric-card {
    min-width: 0 !important;
}

/* Keep schedule controls tidy */
.schedule-mode-form {
    align-items: end !important;
}

/* Hide any duplicate "Paid" label text inside the paid column, leaving checkbox only */
.paid-cell .paid-label,
.schedule-paid-label,
.paid-text {
    display: none !important;
}

/* Modern success popup */
.booking-success-overlay {
    position: fixed;
    inset: 0;
    z-index: 99999;
    background: rgba(15, 55, 96, .22);
    backdrop-filter: blur(6px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    animation: splashFadeIn .18s ease-out;
}

.booking-success-modal {
    width: min(520px, 94vw);
    background: #ffffff;
    border: 1px solid rgba(20,59,90,.10);
    border-radius: 28px;
    box-shadow: 0 28px 80px rgba(20,59,90,.24);
    padding: 34px 34px 30px;
    text-align: center;
    color: var(--deep);
    animation: splashPopIn .22s ease-out;
}

.booking-success-icon {
    width: 74px;
    height: 74px;
    border-radius: 50%;
    margin: 0 auto 18px;
    background: linear-gradient(135deg, #00b8d9, #6c63ff);
    color: #ffffff;
    display: grid;
    place-items: center;
    font-size: 40px;
    font-weight: 900;
    box-shadow: 0 18px 32px rgba(0,129,190,.28);
}

.booking-success-modal h2 {
    margin: 0 0 10px;
    font-size: 34px;
    line-height: 1;
    color: var(--deep);
}

.booking-success-modal p {
    margin: 0 0 20px;
    font-size: 18px;
    color: #5e7b91;
}

.booking-success-modal .btn {
    min-width: 150px;
}

@keyframes splashFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes splashPopIn {
    from { opacity: 0; transform: translateY(10px) scale(.96); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

@media (max-width: 900px) {
    .schedule-metrics,
    .metric-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }
}

@media (max-width: 560px) {
    .schedule-metrics,
    .metric-grid {
        grid-template-columns: 1fr !important;
    }
}



/* =========================================================
   Splash Sisters final schedule card + booking popup fixes
========================================================= */

/* Four blue/metric cards on one row and smaller */
.schedule-metrics,
.metric-grid,
.summary-grid,
.stats-grid {
    display: grid !important;
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    gap: 12px !important;
    align-items: stretch !important;
    width: 100% !important;
}

.schedule-metric,
.metric-card,
.summary-card,
.stat-card {
    min-width: 0 !important;
    padding: 14px 16px !important;
    min-height: 84px !important;
    border-radius: 16px !important;
}

.schedule-metric-label,
.metric-label,
.summary-label,
.stat-label {
    font-size: 14px !important;
    line-height: 1.2 !important;
    margin-bottom: 6px !important;
}

.schedule-metric-value,
.metric-value,
.summary-value,
.stat-value {
    font-size: 28px !important;
    line-height: 1 !important;
}

/* If the 4th card was wrapping because of max width, override it */
.schedule-card .schedule-metrics > *,
.schedule-card .metric-grid > *,
.card .schedule-metrics > *,
.card .metric-grid > * {
    width: auto !important;
    max-width: none !important;
}

/* Booking success popup. OK redirects only after the user clicks. */
.booking-success-overlay {
    position: fixed;
    inset: 0;
    z-index: 99999;
    background: rgba(15, 55, 96, .22);
    backdrop-filter: blur(6px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

.booking-success-modal {
    width: min(520px, 94vw);
    background: #ffffff;
    border: 1px solid rgba(20,59,90,.10);
    border-radius: 28px;
    box-shadow: 0 28px 80px rgba(20,59,90,.24);
    padding: 34px 34px 30px;
    text-align: center;
    color: var(--deep);
}

.booking-success-icon {
    width: 74px;
    height: 74px;
    border-radius: 50%;
    margin: 0 auto 18px;
    background: linear-gradient(135deg, #00b8d9, #6c63ff);
    color: #ffffff;
    display: grid;
    place-items: center;
    font-size: 40px;
    font-weight: 900;
    box-shadow: 0 18px 32px rgba(0,129,190,.28);
}

.booking-success-modal h2 {
    margin: 0 0 10px;
    font-size: 34px;
    line-height: 1;
    color: var(--deep);
}

.booking-success-modal p {
    margin: 0 0 20px;
    font-size: 18px;
    color: #5e7b91;
}

.booking-success-modal .btn {
    min-width: 150px;
}

/* Keep paid checkbox clean in rows */
.paid-cell .paid-label,
.schedule-paid-label,
.paid-text {
    display: none !important;
}

@media (max-width: 1050px) {
    .schedule-metrics,
    .metric-grid,
    .summary-grid,
    .stats-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }
}

@media (max-width: 560px) {
    .schedule-metrics,
    .metric-grid,
    .summary-grid,
    .stats-grid {
        grid-template-columns: 1fr !important;
    }
}



/* =========================================================
   FINAL: 4 stat cards + modal popup guarantee
========================================================= */

/* The metric cards must stay four across on desktop. */
.schedule-metrics,
.metric-grid,
.summary-grid,
.stats-grid,
.schedule-stat-grid,
.schedule-summary-grid,
.schedule-kpi-grid,
.kpi-grid,
.metrics-grid {
    display: grid !important;
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    gap: 12px !important;
    width: 100% !important;
    max-width: 100% !important;
    align-items: stretch !important;
}

.schedule-metrics > *,
.metric-grid > *,
.summary-grid > *,
.stats-grid > *,
.schedule-stat-grid > *,
.schedule-summary-grid > *,
.schedule-kpi-grid > *,
.kpi-grid > *,
.metrics-grid > * {
    width: auto !important;
    max-width: none !important;
    min-width: 0 !important;
    flex: 1 1 0 !important;
}

.schedule-metric,
.metric-card,
.summary-card,
.stat-card,
.schedule-stat,
.schedule-kpi,
.kpi-card {
    padding: 12px 14px !important;
    min-height: 74px !important;
    border-radius: 16px !important;
}

.schedule-metric-label,
.metric-label,
.summary-label,
.stat-label,
.schedule-stat-label,
.kpi-label {
    font-size: 13px !important;
    line-height: 1.15 !important;
    margin-bottom: 5px !important;
}

.schedule-metric-value,
.metric-value,
.summary-value,
.stat-value,
.schedule-stat-value,
.kpi-value {
    font-size: 26px !important;
    line-height: 1 !important;
}

/* If the page uses a flex row for stats, force no wrapping. */
.schedule-metrics,
.metric-grid,
.summary-grid,
.stats-grid {
    flex-wrap: nowrap !important;
}

/* Modern booking popup CSS. Kept here and also inline in layout as backup. */
.booking-success-overlay {
    position: fixed !important;
    inset: 0 !important;
    z-index: 999999 !important;
    background: rgba(15, 55, 96, .28) !important;
    backdrop-filter: blur(6px);
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 24px !important;
}

.booking-success-modal {
    width: min(520px, 94vw) !important;
    background: #ffffff !important;
    border: 1px solid rgba(20,59,90,.10) !important;
    border-radius: 28px !important;
    box-shadow: 0 28px 80px rgba(20,59,90,.24) !important;
    padding: 34px 34px 30px !important;
    text-align: center !important;
    color: var(--deep) !important;
}

.booking-success-icon {
    width: 74px !important;
    height: 74px !important;
    border-radius: 50% !important;
    margin: 0 auto 18px !important;
    background: linear-gradient(135deg, #00b8d9, #6c63ff) !important;
    color: #ffffff !important;
    display: grid !important;
    place-items: center !important;
    font-size: 40px !important;
    font-weight: 900 !important;
    box-shadow: 0 18px 32px rgba(0,129,190,.28) !important;
}

.booking-success-modal h2 {
    margin: 0 0 10px !important;
    font-size: 34px !important;
    line-height: 1 !important;
    color: var(--deep) !important;
}

.booking-success-modal p {
    margin: 0 0 20px !important;
    font-size: 18px !important;
    color: #5e7b91 !important;
}

.booking-success-modal .btn {
    min-width: 150px !important;
}

/* Hide duplicate paid text inside rows, keep the column header only. */
.paid-cell .paid-label,
.schedule-paid-label,
.paid-text,
td.paid-cell span,
.schedule-row-grid .paid-cell span {
    display: none !important;
}

@media (max-width: 1050px) {
    .schedule-metrics,
    .metric-grid,
    .summary-grid,
    .stats-grid,
    .schedule-stat-grid,
    .schedule-summary-grid,
    .schedule-kpi-grid,
    .kpi-grid,
    .metrics-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }
}

@media (max-width: 560px) {
    .schedule-metrics,
    .metric-grid,
    .summary-grid,
    .stats-grid,
    .schedule-stat-grid,
    .schedule-summary-grid,
    .schedule-kpi-grid,
    .kpi-grid,
    .metrics-grid {
        grid-template-columns: 1fr !important;
    }
}



/* =========================================================
   FINAL: Available Time Slots grid action column fit
========================================================= */

/* Make the schedule grid compact enough that Actions/Book stays visible */
.schedule-card,
.schedule-table-card,
.schedule-grid-card {
    overflow: visible !important;
    padding-left: 18px !important;
    padding-right: 18px !important;
}

.schedule-grid,
.schedule-header-grid,
.schedule-row-grid {
    display: grid !important;
    grid-template-columns:
        minmax(92px, 8%)
        minmax(125px, 11%)
        minmax(88px, 9%)
        minmax(62px, 6%)
        minmax(145px, 13%)
        minmax(70px, 7%)
        minmax(185px, 15%)
        minmax(150px, 13%)
        minmax(76px, 7%) !important;
    column-gap: 8px !important;
    align-items: center !important;
    width: 100% !important;
    max-width: 100% !important;
}

.schedule-header-grid {
    font-size: 11px !important;
    padding: 4px 8px 9px !important;
}

.schedule-row-grid {
    font-size: 12px !important;
    padding: 11px 8px !important;
    min-height: 60px !important;
}

.schedule-row-grid > div,
.schedule-header-grid > div {
    min-width: 0 !important;
    overflow-wrap: anywhere;
}

.schedule-row-grid select {
    height: 36px !important;
    min-width: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
    font-size: 12px !important;
    padding: 0 8px !important;
    border-radius: 12px !important;
}

.schedule-row-grid .btn,
.schedule-row-grid button.btn,
.schedule-row-grid input[type="submit"].btn {
    height: 36px !important;
    min-width: 66px !important;
    width: 100% !important;
    padding: 6px 8px !important;
    font-size: 12px !important;
    white-space: nowrap !important;
}

.schedule-row-grid .pill {
    padding: 7px 9px !important;
    font-size: 12px !important;
    white-space: nowrap !important;
}

.schedule-actions,
.schedule-row-grid > div:last-child,
.schedule-header-grid > div:last-child {
    display: block !important;
    visibility: visible !important;
    overflow: visible !important;
    min-width: 66px !important;
}

/* Fallback if the view uses table markup instead of CSS grid */
.schedule-table,
.booking-table,
.table.schedule-table {
    table-layout: fixed !important;
    width: 100% !important;
    min-width: 0 !important;
}

.schedule-table th,
.schedule-table td,
.booking-table th,
.booking-table td {
    font-size: 12px !important;
    padding: 9px 6px !important;
}

.schedule-table select,
.booking-table select {
    height: 36px !important;
    font-size: 12px !important;
    padding: 0 8px !important;
}

.schedule-table .btn,
.booking-table .btn {
    height: 36px !important;
    min-width: 66px !important;
    padding: 6px 8px !important;
    font-size: 12px !important;
}

/* On medium screens allow horizontal scroll instead of hiding Actions */
@media (max-width: 1300px) {
    .schedule-card,
    .schedule-table-card,
    .schedule-grid-card,
    .table-wrap {
        overflow-x: auto !important;
    }

    .schedule-grid,
    .schedule-header-grid,
    .schedule-row-grid {
        min-width: 1120px !important;
    }
}



/* FINAL safety: keep Available Time Slots Actions column visible */
.schedule-grid,
.schedule-header-grid,
.schedule-row-grid {
    display: grid !important;
    grid-template-columns:
        minmax(90px, 8%)
        minmax(120px, 11%)
        minmax(84px, 8%)
        minmax(58px, 6%)
        minmax(135px, 12%)
        minmax(66px, 6%)
        minmax(170px, 14%)
        minmax(135px, 12%)
        minmax(72px, 7%) !important;
    column-gap: 8px !important;
    align-items: center !important;
}

.schedule-row-grid {
    font-size: 12px !important;
    padding: 10px 8px !important;
}

.schedule-row-grid select {
    height: 36px !important;
    font-size: 12px !important;
    min-width: 0 !important;
    width: 100% !important;
}

.schedule-row-grid .btn,
.schedule-row-grid input[type="submit"],
.schedule-row-grid button {
    min-width: 64px !important;
    height: 36px !important;
    font-size: 12px !important;
    padding: 6px 8px !important;
    white-space: nowrap !important;
}

.schedule-card,
.schedule-table-card,
.table-wrap {
    overflow-x: auto !important;
}

@media (min-width: 1450px) {
    .schedule-card,
    .schedule-table-card,
    .table-wrap {
        overflow-x: visible !important;
    }
}

/* Registration anti-bot fields */
.hp-field {
    position: absolute !important;
    left: -10000px !important;
    top: auto !important;
    width: 1px !important;
    height: 1px !important;
    overflow: hidden !important;
    opacity: 0 !important;
}

.cf-turnstile {
    margin: 10px 0 16px;
}
