/* Shared layout for MPS staff report pages (grade lists, students, parents, etc.) */

.mps-report-hr {
    border: 0;
    border-top: 1px solid rgba(31, 54, 70, 0.12);
    margin: 24px 0;
}

.mps-report-page {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 16px 32px;
}

.mps-report-toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin: 12px 0 20px;
}

.mps-report-toolbar form {
    margin: 0;
}

.mps-report-heading {
    text-align: center;
    margin: 0 0 8px;
    font-size: 1.35rem;
    color: #1f3646;
    font-weight: 600;
}

.mps-report-subheading {
    text-align: center;
    margin: 0 0 16px;
    font-size: 1rem;
    color: #5a6b7a;
}

.mps-report-summary-wrap {
    display: flex;
    justify-content: center;
    margin: 16px 0 8px;
}

.mps-report-scroll {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin-top: 12px;
    padding-bottom: 8px;
}

.mps-report-scroll table {
    margin-left: auto;
    margin-right: auto;
}

.mps-report-section-title {
    text-align: center;
    margin: 20px 0 8px;
    color: #166534;
    font-size: 1.2rem;
    font-weight: 600;
}

.mps-report-table-wrap {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin: 12px 0 24px;
}

.mps-report-table-wrap .dataTables_wrapper {
    padding-bottom: 8px;
}

/* School year collection report (view/sy_reports.php — schoolYearPerDay) */
.mps-sy-collection-daytable {
    max-width: 720px;
    margin-left: auto;
    margin-right: auto;
}

.mps-sy-collection-kpi-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 14px;
    max-width: 960px;
    margin: 8px auto 28px;
}

.mps-sy-collection-kpi-card {
    border: 1px solid rgba(31, 54, 70, 0.12);
    border-radius: 12px;
    background: #fafcfb;
    padding: 16px 18px 18px;
    text-align: center;
}

.mps-sy-collection-kpi-card--accent {
    border-color: rgba(22, 101, 52, 0.32);
    box-shadow: 0 1px 0 rgba(22, 101, 52, 0.1);
}

.mps-sy-collection-kpi-card__label {
    font-size: 0.78rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    color: #5a6b7a;
    margin: 0 0 8px;
}

.mps-sy-collection-kpi-card__asof {
    font-size: 0.82rem;
    color: #5a6b7a;
    margin: 0 0 12px;
    line-height: 1.35;
}

.mps-sy-collection-kpi-card__value {
    font-size: 1.28rem;
    font-weight: 700;
    color: #1f3646;
    margin: 0;
    font-variant-numeric: tabular-nums;
    letter-spacing: 0.02em;
}

/* Home / dashboard: two-column quick links (no layout tables) */
.mps-dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 12px;
    max-width: 720px;
    margin: 16px auto;
}

.mps-dashboard-card {
    padding: 12px 16px;
    border: 1px solid rgba(31, 54, 70, 0.12);
    border-radius: 12px;
    background: #fafcfb;
}

/* Home: add-student row (replaces border=1 layout table) */
.mps-add-student-grid {
    display: grid;
    grid-template-columns: repeat(7, minmax(88px, 1fr));
    gap: 8px 10px;
    align-items: end;
    width: 100%;
    max-width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    padding: 12px;
    border: 1px solid rgba(31, 54, 70, 0.22);
    border-radius: 8px;
    background: #fafcfb;
}

.mps-add-student-head {
    font-weight: 600;
    font-size: 0.82rem;
    text-align: center;
    color: #1f3646;
}

.mps-add-student-cell {
    min-width: 0;
}

.mps-add-student-cell .form-select,
.mps-add-student-cell .form-control {
    width: 100%;
}

/* Students list: enrolled / all-students shortcuts (was layout table) */
.mps-report-quick-panel {
    display: flex;
    flex-direction: column;
    gap: 12px;
    align-items: flex-end;
    margin-bottom: 8px;
}

.mps-report-quick-row {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    justify-content: flex-end;
    gap: 8px 10px;
    width: 100%;
}

.mps-report-quick-label {
    padding-top: 6px;
    color: #5a6b7a;
    font-weight: 600;
    margin-right: auto;
}

.mps-report-quick-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: flex-end;
}

.mps-report-quick-row form,
.mps-report-quick-buttons form {
    margin: 0;
}

@media (max-width: 768px) {
    .mps-report-quick-panel {
        align-items: stretch;
    }

    .mps-report-quick-label {
        margin-right: 0;
        width: 100%;
    }

    .mps-add-student-grid {
        grid-template-columns: 1fr;
    }

    .mps-add-student-head {
        text-align: left;
        margin-top: 6px;
    }
}

/* PGL views: grade filter buttons (was layout table) */
.mps-grade-filter {
    max-width: 100%;
    margin: 0 auto 16px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    align-items: stretch;
}

.mps-grade-filter__row {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    justify-content: center;
    gap: 8px 12px;
}

.mps-grade-filter__label {
    font-weight: 600;
    color: #1f3646;
    flex: 0 0 auto;
    min-width: 10rem;
    text-align: right;
    padding-top: 4px;
}

.mps-grade-filter__buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
    flex: 1 1 auto;
}

.mps-grade-filter__buttons form {
    margin: 0;
}

@media (max-width: 576px) {
    .mps-grade-filter__label {
        text-align: left;
        min-width: 100%;
    }
}

/* Student details (view/details.php) — definition-style layout, not a data table */
.mps-details-card {
    border: 1px solid rgba(31, 54, 70, 0.12);
    border-radius: 12px;
    background: #fafcfb;
    padding: 16px 18px 20px;
    max-width: 960px;
    margin: 0 auto;
}

.mps-details-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 14px 20px;
    align-items: start;
}

.mps-details-field {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
}

.mps-details-field--full {
    grid-column: 1 / -1;
}

.mps-details-label {
    font-size: 0.78rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    color: #5a6b7a;
}

.mps-details-value {
    font-size: 0.98rem;
    color: #1f3646;
    word-wrap: break-word;
}

.mps-details-divider {
    border: 0;
    border-top: 1px solid rgba(31, 54, 70, 0.12);
    margin: 16px 0;
}

.mps-details-actions {
    display: flex;
    justify-content: center;
    margin-top: 16px;
    padding-top: 12px;
    border-top: 1px solid rgba(31, 54, 70, 0.08);
}

.mps-details-actions form {
    margin: 0;
}

/* Edit user (controller/editUser.cont.php) */
.mps-edit-user-card {
    max-width: 42rem;
}

.mps-edit-user-section-title,
.mps-edit-student-section-title {
    font-size: 1rem;
    font-weight: 600;
    color: #166534;
    margin: 0 0 12px;
    padding-bottom: 4px;
    border-bottom: 1px solid rgba(22, 101, 52, 0.15);
}

.mps-edit-user-card > .mps-edit-user-section-title:first-child,
.mps-edit-student-card > .mps-edit-student-section-title:first-child,
.mps-edit-student-identity > .mps-edit-student-section-title:first-child {
    margin-top: 0;
}

.mps-edit-user-readonly {
    background-color: #fcf5d8 !important;
    cursor: not-allowed;
}

.mps-edit-student-card {
    max-width: 48rem;
}

.mps-edit-student-hint {
    font-size: 0.88rem;
    color: #5a6b7a;
    margin: -4px 0 14px;
    line-height: 1.35;
}

.mps-edit-student-field--email {
    min-width: 220px;
}

.mps-edit-student-prev-grid .mps-edit-student-field--lsa {
    grid-column: span 2;
    min-width: min(100%, 280px);
}

@media (max-width: 640px) {
    .mps-edit-student-prev-grid .mps-edit-student-field--lsa {
        grid-column: 1 / -1;
    }
}

.mps-edit-student-esc {
    max-width: 12rem;
}

.mps-edit-user-actions,
.mps-edit-student-actions {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 20px;
    padding-top: 16px;
    border-top: 1px solid rgba(31, 54, 70, 0.1);
}

.mps-edit-user-cancel-wrap,
.mps-edit-student-cancel-wrap {
    display: flex;
    justify-content: center;
    margin-top: 12px;
    margin-bottom: 8px;
}

.mps-edit-user-cancel-wrap form,
.mps-edit-student-cancel-wrap form {
    margin: 0;
}

/* Report DataTables (mps_datatables.js) — stacked actions in floating panel */
.mps-students-actions-cell {
    vertical-align: middle;
    min-width: 8.5rem;
}

.mps-students-cell-actions {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
    padding: 4px 0;
}

.mps-dt-inline-form,
.mps-students-inline-form {
    margin: 0;
}

.mps-dt-inline-form .btn,
.mps-students-inline-form .btn {
    width: 100%;
    white-space: normal;
    line-height: 1.25;
}

.mps-students-parent-id {
    font-size: 0.88rem;
    vertical-align: middle;
    max-width: 10rem;
}

.mps-students-parent-id__label {
    display: block;
    font-size: 0.72rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #5a6b7a;
}

.mps-students-parent-id__value {
    font-weight: 600;
    color: #1f3646;
    word-break: break-all;
}

/* Zebra/hover on <td> for border-collapse: separate + scrollX (full cell paint) */
table.mps-data-table.dataTable > tbody > tr:nth-child(odd),
table.mps-data-table.dataTable > tbody > tr:nth-child(even) {
    background-color: transparent !important;
}

table.mps-data-table.dataTable > tbody > tr:nth-child(odd) > td {
    background-color: rgba(255, 255, 255, 0.92);
}

table.mps-data-table.dataTable > tbody > tr:nth-child(even) > td {
    background-color: rgba(240, 248, 242, 0.45);
}

table.mps-data-table.dataTable.table-hover > tbody > tr:hover > td {
    background-color: rgba(22, 101, 52, 0.07) !important;
}

table.mps-data-table.dataTable > tbody > tr.mps-dt-row-expanded > td {
    background-color: rgba(22, 101, 52, 0.06) !important;
}

table.mps-data-table.dataTable.table-hover > tbody > tr.mps-dt-row-expanded:hover > td {
    background-color: rgba(22, 101, 52, 0.09) !important;
}

/* Sticky first column (expand or first data column) — DataTables scrollX */
.mps-report-table-wrap .dataTables_scrollHead table.mps-data-table.mps-dt--sticky-first,
.mps-report-table-wrap .dataTables_scrollBody table.mps-data-table.mps-dt--sticky-first {
    border-collapse: separate;
    border-spacing: 0;
}

.mps-report-table-wrap .dataTables_scrollHead table.mps-data-table.mps-dt--sticky-first thead th:first-child,
.mps-report-table-wrap .dataTables_scrollBody table.mps-data-table.mps-dt--sticky-first thead th:first-child,
.mps-report-table-wrap table.mps-data-table.mps-dt--sticky-first thead th:first-child {
    position: -webkit-sticky;
    position: sticky;
    left: 0;
    z-index: 22;
    background-color: #e8f0ea !important;
    background-image: none !important;
    border-right: 1px solid rgba(22, 101, 52, 0.28);
    box-shadow: 6px 0 10px -6px rgba(31, 54, 70, 0.28);
}

.mps-report-table-wrap .dataTables_scrollBody table.mps-data-table.mps-dt--sticky-first tbody td:first-child,
.mps-report-table-wrap table.mps-data-table.mps-dt--sticky-first tbody td:first-child {
    position: -webkit-sticky;
    position: sticky;
    left: 0;
    z-index: 12;
    background-color: #f7faf8 !important;
    background-clip: padding-box;
    border-right: 1px solid rgba(22, 101, 52, 0.22);
    box-shadow: 6px 0 10px -6px rgba(31, 54, 70, 0.22);
}

table.mps-data-table.dataTable.table-hover > tbody > tr:hover > td:first-child {
    background-color: #ecf5ee !important;
}

table.mps-data-table.dataTable > tbody > tr.mps-dt-row-expanded > td:first-child {
    background-color: #e4f0e7 !important;
    box-shadow: 6px 0 10px -6px rgba(31, 54, 70, 0.26);
}

table.mps-data-table.dataTable.table-hover > tbody > tr.mps-dt-row-expanded:hover > td:first-child {
    background-color: #dcece0 !important;
}

/* Narrow expand (+) column when used */
.mps-dt-expand-col {
    width: 2.5rem;
    padding-left: 0.35rem !important;
    padding-right: 0.35rem !important;
}

.mps-dt-expand-cell {
    vertical-align: middle;
    padding: 0.35rem !important;
}

.mps-dt-expand {
    min-width: 2.25rem;
    font-weight: 700;
    line-height: 1.1;
    padding: 0.25rem 0.4rem;
}

/* Floating actions menu — portal to body (mps_datatables.js) */
#mps-dt-actions-panel.mps-dt-actions-panel {
    position: fixed;
    z-index: 1080;
    overflow-x: hidden;
    overflow-y: auto;
    padding: 0;
    margin: 0;
    background: #fff;
    border: 1px solid rgba(31, 54, 70, 0.18);
    border-radius: 10px;
    box-shadow: 0 12px 40px rgba(15, 42, 71, 0.2);
    box-sizing: border-box;
}

.mps-dt-actions-panel-inner {
    padding: 10px 12px;
}

.mps-dt-detail-actions {
    display: flex;
    flex-direction: column;
    flex-wrap: nowrap;
    align-items: stretch;
    gap: 8px;
}

.mps-dt-detail-actions .mps-dt-inline-form,
.mps-dt-detail-actions .mps-students-inline-form {
    margin: 0;
}

.mps-dt-detail-actions .mps-dt-inline-form .btn,
.mps-dt-detail-actions .mps-students-inline-form .btn {
    width: 100%;
    white-space: normal;
}

/* Drag-to-scroll horizontal pan (mps_datatables.js) */
.mps-report-table-wrap .dataTables_scrollBody.mps-dt-drag-scroll--grab {
    cursor: grab;
}

.mps-report-table-wrap .dataTables_scrollBody.mps-dt-drag-scroll--active {
    cursor: grabbing;
}

/* Add parents for student (controller/addParent.cont.php) */
.mps-add-parent-card {
    max-width: 48rem;
}

.mps-add-parent-flash {
    max-width: 48rem;
    margin-top: 4px;
}

.mps-req {
    color: #b91c1c;
    font-weight: 700;
}

/* Save payment grade (controller/addPaymentGrade.cont.php) */
.mps-payment-grade-card {
    max-width: 48rem;
}

.mps-payment-grade-student-grid {
    margin-bottom: 4px;
}

.mps-payment-grade-form {
    margin: 0;
}

/* Update payment grade (controller/editPaymentGrade.cont.php) */
.mps-payment-grade-current-bar {
    padding: 14px 16px;
}

.mps-payment-grade-current-bar__row {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    justify-content: center;
    gap: 8px 14px;
    text-align: center;
    font-size: 0.95rem;
}

.mps-payment-grade-current-bar__sep {
    color: rgba(31, 54, 70, 0.35);
    font-weight: 300;
}

.mps-payment-grade-current-bar__pg {
    color: #1f3646;
}

/* Updated payment grade confirmation (controller/updatedPaymentGrade.cont.php) */
.mps-updated-pg-flash {
    max-width: 42rem;
    margin-top: 4px;
}

.mps-updated-pg-toolbar {
    margin-top: 8px;
}

/* Student ID photo upload/remove confirmation (controller/uploadedImage.cont.php) */
.mps-photo-result {
    max-width: 28rem;
    margin: 28px auto 36px;
    padding: 28px 22px 22px;
    background: linear-gradient(165deg, #fafcfb 0%, #f4f9f6 100%);
    border: 1px solid rgba(31, 54, 70, 0.12);
    border-radius: 18px;
    box-shadow: 0 10px 40px rgba(20, 46, 76, 0.07);
    text-align: center;
}

.mps-photo-result--success {
    border-color: rgba(22, 101, 52, 0.22);
    box-shadow: 0 12px 40px rgba(22, 101, 52, 0.09);
}

.mps-photo-result--warning {
    border-color: rgba(180, 83, 9, 0.28);
    box-shadow: 0 12px 36px rgba(180, 83, 9, 0.08);
}

.mps-photo-result__badge {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    margin: 0 auto 16px;
    border-radius: 50%;
    font-size: 1.65rem;
    font-weight: 700;
    line-height: 1;
    color: #fff;
}

.mps-photo-result__badge--success {
    background: linear-gradient(145deg, #22c55e 0%, #15803d 100%);
    box-shadow: 0 4px 14px rgba(22, 101, 52, 0.35);
}

.mps-photo-result__badge--warning {
    background: linear-gradient(145deg, #f59e0b 0%, #b45309 100%);
    box-shadow: 0 4px 14px rgba(180, 83, 9, 0.35);
}

.mps-photo-result__title {
    margin: 0 0 8px;
    font-size: 1.35rem;
    font-weight: 700;
    color: #1f3646;
    letter-spacing: -0.02em;
}

.mps-photo-result__lead {
    margin: 0 0 20px;
    font-size: 0.98rem;
    line-height: 1.45;
    color: #5a6b7a;
}

.mps-photo-result__chips {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
    margin-bottom: 18px;
}

.mps-photo-result__chip {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    padding: 10px 16px;
    min-width: 7.5rem;
    background: #fff;
    border: 1px solid rgba(31, 54, 70, 0.1);
    border-radius: 12px;
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.8) inset;
}

.mps-photo-result__chip-label {
    font-size: 0.72rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #5a6b7a;
}

.mps-photo-result__chip-value {
    font-size: 1rem;
    color: #800000;
    font-variant-numeric: tabular-nums;
}

.mps-photo-result__note {
    margin: 0 0 20px;
    padding: 0 6px;
    font-size: 0.88rem;
    line-height: 1.5;
    color: #5a6b7a;
}

.mps-photo-result__actions {
    margin-top: 4px;
    margin-bottom: 0;
}

.mps-add-stu-pay-flash {
    max-width: 48rem;
    margin-top: 4px;
}

/* Stacked status messages below report toolbar (POST feedback) */
.mps-report-feedback {
    display: flex;
    flex-direction: column;
    gap: 8px;
    max-width: 960px;
    margin: 0 auto 16px;
}

.mps-flash {
    max-width: 960px;
    margin: 0 auto 16px;
    padding: 10px 14px;
    border-radius: 8px;
    font-size: 0.95rem;
    text-align: center;
}

.mps-report-feedback .mps-flash {
    margin-bottom: 0;
}

.mps-flash-success {
    background: rgba(22, 101, 52, 0.1);
    color: #166534;
    border: 1px solid rgba(22, 101, 52, 0.25);
}

/* Students list — save/delete confirmation (view/students.php) */
.mps-students-flash {
    max-width: 42rem;
    margin-top: 4px;
}

.mps-flash-error {
    background: rgba(185, 28, 28, 0.08);
    color: #b91c1c;
    border: 1px solid rgba(185, 28, 28, 0.22);
}

.mps-flash-warning {
    background: rgba(180, 83, 9, 0.1);
    color: #b45309;
    border: 1px solid rgba(180, 83, 9, 0.28);
}

.mps-flash-info {
    background: rgba(30, 64, 110, 0.08);
    color: #1e3a5f;
    border: 1px solid rgba(30, 64, 110, 0.22);
}

/* Admin/staff POST feedback (users, pending approval, parents, students, PGL views, payment controllers, …) */
.mps-users-feedback,
.mps-admin-feedback {
    max-width: 48rem;
}

/* Student balance (view/balance.php) */
.mps-balance-empty-msg {
    max-width: 42rem;
    margin: 0 auto;
    text-align: center;
    color: #5a6b7a;
}

.mps-balance-form-wrap {
    margin: 8px 0;
}

.mps-balance-form-wrap form {
    display: inline-block;
    margin: 0;
}

.mps-balance-student-block {
    margin-bottom: 16px;
}

.mps-balance-status {
    margin: 8px 0;
    font-size: 0.98rem;
}

.mps-balance-status--fp {
    color: #166534;
    font-weight: 600;
}

.mps-balance-status--fr {
    color: #1d4ed8;
    font-weight: 600;
}

.mps-balance-status--wb {
    color: #b91c1c;
    font-weight: 600;
}

.mps-balance-pg-label {
    margin: 8px 0;
    font-size: 0.95rem;
}

.mps-balance-num--in {
    color: #166534;
    font-weight: 600;
}

/* Subtotal balance amounts (orange) — used for subtotal columns and category balances */
.mps-balance-num--warn,
.mps-balance-num--subtotal {
    color: #ea580c;
    font-weight: 600;
}

.mps-balance-num--out {
    color: #b91c1c;
    font-weight: 600;
}

.mps-balance-dp-table {
    max-width: 520px;
    margin: 12px auto;
    text-align: center;
}

.mps-balance-dp-table td,
.mps-balance-dp-table th {
    vertical-align: middle;
}

.mps-balance-grand-table {
    font-size: 0.82rem;
    white-space: nowrap;
}

.mps-balance-grand-table th,
.mps-balance-grand-table td {
    vertical-align: middle;
    text-align: center;
    padding: 6px 8px;
}

/* "+" and "=" separator columns — full cell background yellow */
.mps-balance-grand-table th.mps-balance-grand-op,
.mps-balance-grand-table td.mps-balance-grand-op {
    background-color: #ffeb3b !important;
    font-weight: 700;
}

.mps-balance-remarks {
    text-align: center;
    margin: 12px 0;
}

.mps-balance-remarks-text {
    color: #1d4ed8;
    font-weight: 500;
}

.mps-balance-extras-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(148px, 1fr));
    gap: 12px;
    align-items: start;
    margin-top: 8px;
}

.mps-balance-extra-card {
    border: 1px solid rgba(31, 54, 70, 0.12);
    border-radius: 10px;
    background: #fafcfb;
    padding: 10px 12px 14px;
    text-align: center;
}

.mps-balance-extra-title {
    font-size: 1rem;
    margin: 0 0 10px;
    color: #1f3646;
}

.mps-balance-print-wrap {
    text-align: center;
    margin: 20px 0 8px;
}

.mps-balance-print-wrap form {
    margin: 0;
}

/* Aliases (slot report page — same rules as .mps-report-*) */
.pgl-slot-page {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 16px 32px;
}

.pgl-slot-toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin: 12px 0 20px;
}

.pgl-slot-toolbar form {
    margin: 0;
}

.pgl-slot-heading {
    text-align: center;
    margin: 0 0 8px;
    font-size: 1.35rem;
    color: #1f3646;
    font-weight: 600;
}

.pgl-slot-subheading {
    text-align: center;
    margin: 0 0 16px;
    font-size: 1rem;
    color: #5a6b7a;
}

.pgl-slot-summary-wrap {
    display: flex;
    justify-content: center;
    margin: 16px 0 8px;
}

.pgl-slot-scroll {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin-top: 12px;
    padding-bottom: 8px;
}

.pgl-slot-scroll table {
    margin-left: auto;
    margin-right: auto;
}

.pgl-slot-section-title {
    text-align: center;
    margin: 20px 0 8px;
    color: #166534;
    font-size: 1.2rem;
    font-weight: 600;
}

/* Switch school year (controller/switchSY.cont.php) */
.mps-switch-sy-card {
    max-width: 420px;
    margin-left: auto;
    margin-right: auto;
}

.mps-switch-sy-current {
    text-align: center;
    margin-bottom: 20px;
    padding-bottom: 18px;
    border-bottom: 1px solid rgba(31, 54, 70, 0.1);
}

.mps-switch-sy-pill {
    display: inline-block;
    margin-top: 8px;
    padding: 8px 18px;
    font-size: 1.15rem;
    font-weight: 700;
    color: #166534;
    background: linear-gradient(180deg, #ecfdf3 0%, #d1fae5 100%);
    border: 1px solid rgba(22, 101, 52, 0.25);
    border-radius: 999px;
    letter-spacing: 0.02em;
}

.mps-switch-sy-hint {
    font-size: 0.88rem;
    color: #5a6b7a;
    text-align: center;
    margin: 0 0 16px;
    line-height: 1.45;
}

.mps-switch-sy-field {
    margin-bottom: 18px;
}

.mps-switch-sy-field .form-select {
    border-radius: 10px;
    margin-top: 6px;
}

.mps-switch-sy-btn-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 10px 12px;
    margin-top: 4px;
}

.mps-switch-sy-btn-row .mps-switch-sy-home-form {
    margin: 0;
}
