/* ApXute Phase 139: premium shell, drawer, and school workspace repair.
   This file is intentionally loaded last to neutralize older prototype CSS. */

:root {
    --apx-ink: #071326;
    --apx-muted: #607089;
    --apx-line: #d6e3f4;
    --apx-soft: #eef6ff;
    --apx-card: rgba(255, 255, 255, 0.96);
    --apx-blue: #2563eb;
    --apx-teal: #0d9488;
    --apx-orange: #f97316;
    --apx-purple: #7c3aed;
    --apx-red: #ef4444;
    --apx-shadow: 0 22px 60px rgba(15, 35, 64, 0.14);
    --apx-radius: 24px;
}

html:not(.kt-page-is-loading) .kt-page-loader,
html:not(.kt-page-is-loading) .kt-page-loader-card,
html:not(.kt-page-is-loading) .kt-page-loader-text {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    pointer-events: none !important;
}

body[data-kt-shell] {
    color: var(--apx-ink);
}

body[data-kt-shell] .kt-main,
body[data-kt-shell] .kt-content,
body[data-kt-shell] .kt-pro-content {
    min-width: 0 !important;
}

body[data-kt-shell] .kt-card,
body[data-kt-shell] .kt-card-pad,
body[data-kt-shell] .apx-page-card,
body[data-kt-shell] .kt-pro-card {
    border: 1px solid rgba(148, 163, 184, 0.28) !important;
    border-radius: 20px !important;
    background: var(--apx-card) !important;
    box-shadow: 0 16px 44px rgba(15, 35, 64, 0.08) !important;
}

body[data-kt-shell] .kt-table-wrap,
body[data-kt-shell] .apx-table-card {
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch;
}

body[data-kt-shell] table {
    border-collapse: separate !important;
    border-spacing: 0 !important;
}

body[data-kt-shell] th {
    background: #edf4fc !important;
    color: #51627b !important;
    font-size: 0.78rem !important;
    letter-spacing: 0.08em !important;
    text-transform: uppercase !important;
}

body[data-kt-shell] td,
body[data-kt-shell] th {
    padding: 0.85rem 1rem !important;
    vertical-align: middle !important;
}

body[data-kt-shell] input,
body[data-kt-shell] select,
body[data-kt-shell] textarea {
    color: var(--apx-ink) !important;
    background: #fff !important;
    border: 1px solid #cddbed !important;
    border-radius: 14px !important;
    min-height: 46px;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8) !important;
}

body[data-kt-shell] input:focus,
body[data-kt-shell] select:focus,
body[data-kt-shell] textarea:focus {
    border-color: rgba(37, 99, 235, 0.78) !important;
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.12) !important;
    outline: none !important;
}

body[data-kt-shell] textarea {
    min-height: 92px;
    resize: vertical;
}

body[data-kt-shell] button,
body[data-kt-shell] .kt-button,
body[data-kt-shell] .apx-btn {
    border-radius: 14px;
}

/* Hide old oversized placeholder icons that still leak from older generated markup. */
.kt-workspace-identity-card > svg,
.kt-workspace-identity-card .apx-legacy-icon svg:not([data-apx120-real]),
.kt-business-sidebar svg[width="220"],
.kt-business-sidebar svg[height="220"],
.kt-business-sidebar .apx-real-icon-slot > svg:not([data-apx120-real]) {
    display: none !important;
}

.kt-workspace-identity-card,
.kt-business-sidebar .kt-workspace-identity-card {
    min-height: 0 !important;
    padding: 18px !important;
}

.kt-business-sidebar .kt-workspace-identity-icon,
.kt-business-sidebar .apx130-business-switcher-icon,
.kt-business-sidebar .kt-module-launch-card .kt-tone-icon {
    width: 52px !important;
    height: 52px !important;
    min-width: 52px !important;
    display: inline-grid !important;
    place-items: center !important;
    border: 1px solid rgba(255, 255, 255, 0.28) !important;
    border-radius: 16px !important;
    background: linear-gradient(135deg, #2563eb 0%, #0d9488 100%) !important;
    color: #fff !important;
    box-shadow: 0 12px 28px rgba(15, 35, 64, 0.22) !important;
    overflow: hidden !important;
}

.kt-business-sidebar .kt-workspace-identity-icon svg,
.kt-business-sidebar .apx130-business-switcher-icon svg,
.kt-business-sidebar .kt-module-launch-card .kt-tone-icon svg {
    width: 24px !important;
    height: 24px !important;
    max-width: 24px !important;
    max-height: 24px !important;
    color: currentColor !important;
    fill: none !important;
    stroke: currentColor !important;
    stroke-width: 2.25 !important;
}

/* Drawer reset: fixed panel + fixed overlay, independent of page grid/sidebar width. */
#apx-ops-drawer-root {
    position: fixed !important;
    inset: 0 !important;
    z-index: 2147483000 !important;
    pointer-events: none !important;
}

#apx-ops-drawer-root .apx-ops-drawer,
.apx-ops-drawer {
    box-sizing: border-box !important;
}

#apx-ops-drawer-root .apx-ops-drawer[hidden],
.apx-ops-drawer[hidden] {
    display: none !important;
}

#apx-ops-drawer-root .apx-ops-drawer:not([hidden]),
.apx-ops-drawer:not([hidden]) {
    position: fixed !important;
    inset: 0 !important;
    display: block !important;
    width: 100vw !important;
    height: 100dvh !important;
    max-width: none !important;
    max-height: none !important;
    overflow: hidden !important;
    background: transparent !important;
    pointer-events: auto !important;
    transform: none !important;
}

#apx-ops-drawer-root .apx-ops-drawer-backdrop,
.apx-ops-drawer-backdrop {
    position: fixed !important;
    inset: 0 !important;
    z-index: 0 !important;
    background: rgba(8, 18, 34, 0.58) !important;
    backdrop-filter: blur(6px) saturate(1.1) !important;
}

#apx-ops-drawer-root .apx-ops-drawer-shell,
.apx-ops-drawer-shell {
    position: fixed !important;
    top: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    left: auto !important;
    z-index: 1 !important;
    width: min(520px, calc(100vw - 18px)) !important;
    max-width: calc(100vw - 18px) !important;
    height: 100dvh !important;
    max-height: 100dvh !important;
    margin: 0 !important;
    display: grid !important;
    grid-template-rows: auto minmax(0, 1fr) auto !important;
    overflow: hidden !important;
    border-radius: 22px 0 0 22px !important;
    border: 1px solid rgba(203, 213, 225, 0.95) !important;
    background:
        radial-gradient(circle at 0% 0%, rgba(37, 99, 235, 0.08), transparent 32%),
        linear-gradient(180deg, #ffffff 0%, #f7fbff 100%) !important;
    box-shadow: -28px 0 70px rgba(8, 18, 34, 0.24) !important;
    transform: none !important;
}

#apx-ops-drawer-root .apx-ops-drawer-header,
.apx-ops-drawer-header {
    min-height: 0 !important;
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) auto !important;
    align-items: start !important;
    gap: 12px !important;
    padding: 20px 22px 16px !important;
    border-bottom: 3px solid transparent !important;
    border-image: linear-gradient(90deg, var(--apx-blue), var(--apx-teal), var(--apx-orange), var(--apx-purple)) 1 !important;
    background:
        radial-gradient(circle at 92% 0%, rgba(236, 72, 153, 0.1), transparent 34%),
        #fff !important;
}

#apx-ops-drawer-root .apx-ops-drawer-heading,
.apx-ops-drawer-heading {
    display: flex !important;
    align-items: flex-start !important;
    gap: 12px !important;
    min-width: 0 !important;
}

#apx-ops-drawer-root .apx-ops-drawer-heading > div,
.apx-ops-drawer-heading > div {
    min-width: 0 !important;
}

#apx-ops-drawer-root .apx-ops-drawer-icon,
.apx-ops-drawer-icon {
    width: 48px !important;
    height: 48px !important;
    min-width: 48px !important;
    display: inline-grid !important;
    place-items: center !important;
    border-radius: 16px !important;
    background: linear-gradient(135deg, var(--apx-blue), var(--apx-teal)) !important;
    color: #fff !important;
    box-shadow: 0 14px 28px rgba(37, 99, 235, 0.18) !important;
}

#apx-ops-drawer-root .apx-ops-drawer-icon svg,
.apx-ops-drawer-icon svg {
    width: 22px !important;
    height: 22px !important;
    fill: none !important;
    stroke: currentColor !important;
}

#apx-ops-drawer-root .apx-ops-drawer-header h2,
.apx-ops-drawer-header h2 {
    font-size: clamp(1.25rem, 2vw, 1.72rem) !important;
    line-height: 1.08 !important;
    margin: 0 !important;
    overflow-wrap: anywhere !important;
}

#apx-ops-drawer-root .apx-ops-drawer-header p,
.apx-ops-drawer-header p {
    margin: 0.45rem 0 0 !important;
    color: #58687f !important;
    font-size: 0.94rem !important;
    line-height: 1.45 !important;
    overflow-wrap: anywhere !important;
}

#apx-ops-drawer-root .apx-ops-drawer-close,
.apx-ops-drawer-close {
    width: 44px !important;
    height: 44px !important;
    border-radius: 999px !important;
    border: 1px solid #d5e1f0 !important;
    background: #fff !important;
    color: var(--apx-ink) !important;
    display: inline-grid !important;
    place-items: center !important;
}

#apx-ops-drawer-root .apx-ops-drawer-body,
.apx-ops-drawer-body {
    min-height: 0 !important;
    overflow-y: auto !important;
    overflow-x: hidden !important;
    overscroll-behavior: contain !important;
    -webkit-overflow-scrolling: touch !important;
    padding: 14px 18px 18px !important;
}

#apx-ops-drawer-root .apx-ops-drawer-footer,
.apx-ops-drawer-footer {
    position: relative !important;
    z-index: 2 !important;
    display: flex !important;
    justify-content: flex-end !important;
    gap: 10px !important;
    padding: 14px 18px calc(14px + env(safe-area-inset-bottom)) !important;
    border-top: 1px solid #dce7f5 !important;
    background: rgba(255, 255, 255, 0.96) !important;
    box-shadow: 0 -16px 30px rgba(15, 35, 64, 0.08) !important;
}

#apx-ops-drawer-root .apx-ops-drawer-footer button,
.apx-ops-drawer-footer button,
#apx-ops-drawer-root .apx-ops-drawer-footer .kt-button,
.apx-ops-drawer-footer .kt-button {
    min-height: 44px !important;
    padding: 0.72rem 1rem !important;
    border-radius: 14px !important;
    font-size: 0.94rem !important;
}

#apx-ops-drawer-root .apx-ops-form-grid,
.apx-ops-form-grid {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 12px !important;
}

#apx-ops-drawer-root .apx-ops-field,
.apx-ops-field {
    min-width: 0 !important;
}

#apx-ops-drawer-root .apx-ops-field.is-wide,
#apx-ops-drawer-root .apx-ops-field[data-span="full"],
.apx-ops-field.is-wide,
.apx-ops-field[data-span="full"] {
    grid-column: 1 / -1 !important;
}

#apx-ops-drawer-root .apx-ops-form-grid label,
.apx-ops-form-grid label {
    display: grid !important;
    gap: 6px !important;
    color: #2d3b50 !important;
    font-size: 0.86rem !important;
    font-weight: 800 !important;
}

#apx-ops-drawer-root .apx-ops-drawer-body .kt-card,
#apx-ops-drawer-root .apx-ops-drawer-body .apx-page-card,
.apx-ops-drawer-body .kt-card,
.apx-ops-drawer-body .apx-page-card {
    border-radius: 18px !important;
    box-shadow: none !important;
}

html.apx-ops-drawer-open,
body.apx-ops-drawer-open {
    overflow: hidden !important;
}

html.apx-ops-drawer-open .apx-ai-helper,
body.apx-ops-drawer-open .apx-ai-helper,
html.apx-app-layer-open .apx-ai-helper,
body.apx-app-layer-open .apx-ai-helper,
html.apx-command-open .apx-ai-helper,
body.apx-command-open .apx-ai-helper {
    display: none !important;
    visibility: hidden !important;
    pointer-events: none !important;
}

/* School portal header and page rhythm. */
body[data-kt-shell="school"] .kt-pro-topbar {
    position: sticky !important;
    top: 0 !important;
    z-index: 120 !important;
    background: rgba(255, 255, 255, 0.96) !important;
    backdrop-filter: blur(18px) saturate(1.15) !important;
    border-bottom: 1px solid #d9e4f2 !important;
    box-shadow: 0 10px 30px rgba(15, 35, 64, 0.05) !important;
}

body[data-kt-shell="school"] .kt-pro-topbar-inner {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) auto !important;
    align-items: center !important;
    gap: 14px !important;
    min-height: 74px !important;
    padding: 12px clamp(14px, 3vw, 26px) !important;
}

body[data-kt-shell="school"] .kt-pro-page-title {
    display: flex !important;
    align-items: center !important;
    gap: 12px !important;
    min-width: 0 !important;
}

body[data-kt-shell="school"] .kt-pro-title-kicker {
    color: #64748b !important;
    font-size: 0.78rem !important;
    letter-spacing: 0.08em !important;
    text-transform: uppercase !important;
    font-weight: 900 !important;
}

body[data-kt-shell="school"] .kt-pro-page-title h1 {
    margin: 0 !important;
    color: var(--apx-ink) !important;
    font-size: clamp(1.35rem, 2.6vw, 2.35rem) !important;
    line-height: 1.02 !important;
}

body[data-kt-shell="school"] .kt-pro-topbar-actions {
    display: flex !important;
    align-items: center !important;
    justify-content: flex-end !important;
    gap: 10px !important;
    min-width: 0 !important;
}

body[data-kt-shell="school"] .kt-pro-search {
    width: clamp(260px, 32vw, 480px) !important;
    min-width: 220px !important;
}

body[data-kt-shell="school"] .kt-pro-search input {
    min-height: 48px !important;
}

body[data-kt-shell="school"] .kt-shell-round-button,
body[data-kt-shell="school"] .kt-shell-icon-button,
body[data-kt-shell="school"] .kt-mobile-search-trigger {
    flex: 0 0 auto !important;
    width: 46px !important;
    height: 46px !important;
    border-radius: 16px !important;
    display: inline-grid !important;
    place-items: center !important;
    border: 1px solid #d6e3f4 !important;
    background: #fff !important;
    box-shadow: 0 12px 26px rgba(15, 35, 64, 0.08) !important;
}

body[data-kt-shell="school"] .kt-pro-topbar-actions > * {
    min-width: 0;
}

body[data-kt-shell="school"] .kt-pro-section-tabs {
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
    overflow-x: auto !important;
    padding: 0 0 12px !important;
    scrollbar-width: none;
}

body[data-kt-shell="school"] .kt-pro-section-tabs::-webkit-scrollbar {
    display: none;
}

body[data-kt-shell="school"] .kt-pro-section-tabs a,
body[data-kt-shell="school"] .kt-pro-section-tabs button {
    white-space: nowrap !important;
}

body[data-kt-shell="school"] .kt-pro-hero,
body[data-kt-shell="school"] .kt-school-hero,
body[data-kt-shell="school"] .kt-portal-hero {
    border-radius: 24px !important;
    padding: clamp(18px, 3vw, 32px) !important;
    min-height: 0 !important;
}

body[data-kt-shell="school"] .kt-pro-section-nav,
body[data-kt-shell="school"] .kt-pro-quick-menu,
body[data-kt-shell="school"] .kt-school-quick-menu {
    overflow-x: auto !important;
    scrollbar-width: none;
}

body[data-kt-shell="school"] .kt-pro-section-nav::-webkit-scrollbar,
body[data-kt-shell="school"] .kt-pro-quick-menu::-webkit-scrollbar,
body[data-kt-shell="school"] .kt-school-quick-menu::-webkit-scrollbar {
    display: none;
}

body[data-kt-shell="school"] .kt-institute-main,
body[data-kt-shell="school"] .kt-school-main {
    padding-top: clamp(18px, 2.4vw, 28px) !important;
}

body[data-kt-shell="school"] .kt-school-command-strip,
body[data-kt-shell="school"] .kt-school-staff-command {
    border-radius: 22px !important;
    border: 1px solid #d6e3f4 !important;
    background:
        radial-gradient(circle at 100% 0%, rgba(13, 148, 136, 0.12), transparent 30%),
        #fff !important;
    box-shadow: var(--apx-shadow) !important;
    padding: clamp(16px, 2.4vw, 26px) !important;
}

@media (max-width: 980px) {
    #apx-ops-drawer-root .apx-ops-drawer-shell,
    .apx-ops-drawer-shell {
        width: min(500px, calc(100vw - 12px)) !important;
        max-width: calc(100vw - 12px) !important;
    }

    body[data-kt-shell="school"] .kt-pro-topbar-inner {
        gap: 10px !important;
    }

    body[data-kt-shell="school"] .kt-pro-search {
        width: min(42vw, 360px) !important;
    }
}

@media (max-width: 760px) {
    #apx-ops-drawer-root .apx-ops-drawer:not([hidden]),
    .apx-ops-drawer:not([hidden]) {
        padding: 0 !important;
    }

    #apx-ops-drawer-root .apx-ops-drawer-shell,
    .apx-ops-drawer-shell {
        top: auto !important;
        right: 0 !important;
        left: 0 !important;
        bottom: 0 !important;
        width: 100vw !important;
        max-width: 100vw !important;
        height: min(92svh, 720px) !important;
        max-height: 92svh !important;
        border-radius: 22px 22px 0 0 !important;
        box-shadow: 0 -24px 70px rgba(8, 18, 34, 0.28) !important;
    }

    #apx-ops-drawer-root .apx-ops-drawer-header,
    .apx-ops-drawer-header {
        padding: 16px 16px 12px !important;
        display: grid !important;
        grid-template-columns: auto minmax(0, 1fr) auto !important;
        gap: 10px !important;
        align-items: start !important;
    }

    #apx-ops-drawer-root .apx-ops-drawer-header h2,
    .apx-ops-drawer-header h2 {
        font-size: 1.28rem !important;
    }

    #apx-ops-drawer-root .apx-ops-drawer-header p,
    .apx-ops-drawer-header p {
        font-size: 0.84rem !important;
    }

    #apx-ops-drawer-root .apx-ops-drawer-close,
    .apx-ops-drawer-close {
        width: 38px !important;
        height: 38px !important;
    }

    #apx-ops-drawer-root .apx-ops-drawer-body,
    .apx-ops-drawer-body {
        padding: 12px 14px 16px !important;
    }

    #apx-ops-drawer-root .apx-ops-form-grid,
    .apx-ops-form-grid,
    #apx-ops-drawer-root .apx-ops-record-summary,
    .apx-ops-record-summary {
        grid-template-columns: 1fr !important;
    }

    #apx-ops-drawer-root .apx-ops-drawer-footer,
    .apx-ops-drawer-footer {
        padding: 10px 14px calc(10px + env(safe-area-inset-bottom)) !important;
        gap: 8px !important;
    }

    #apx-ops-drawer-root .apx-ops-drawer-footer button,
    .apx-ops-drawer-footer button,
    #apx-ops-drawer-root .apx-ops-drawer-footer .kt-button,
    .apx-ops-drawer-footer .kt-button {
        flex: 1 1 auto !important;
        min-width: 0 !important;
    }

    body[data-kt-shell="school"] .kt-pro-topbar {
        border-bottom-color: #e4edf8 !important;
    }

    body[data-kt-shell="school"] .kt-pro-topbar-inner {
        min-height: 58px !important;
        padding: 8px 10px !important;
        gap: 8px !important;
    }

    body[data-kt-shell="school"] .kt-shell-icon-button,
    body[data-kt-shell="school"] .kt-shell-round-button,
    body[data-kt-shell="school"] .kt-mobile-search-trigger {
        width: 38px !important;
        height: 38px !important;
        border-radius: 13px !important;
    }

    body[data-kt-shell="school"] .kt-pro-page-title {
        gap: 8px !important;
    }

    body[data-kt-shell="school"] .kt-pro-title-kicker {
        font-size: 0.62rem !important;
        line-height: 1 !important;
        max-width: calc(100vw - 178px) !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
        white-space: nowrap !important;
    }

    body[data-kt-shell="school"] .kt-pro-page-title h1 {
        font-size: 1.05rem !important;
        max-width: calc(100vw - 178px) !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
        white-space: nowrap !important;
    }

    body[data-kt-shell="school"] .kt-pro-topbar-actions {
        gap: 6px !important;
    }

    body[data-kt-shell="school"] .kt-pro-search,
    body[data-kt-shell="school"] .kt-pro-dashboard-link,
    body[data-kt-shell="school"] .kt-pro-section-tabs,
    body[data-kt-shell="school"] .kt-pro-top-sections {
        display: none !important;
    }

    body[data-kt-shell="school"] .kt-mobile-search-panel {
        position: fixed !important;
        top: 62px !important;
        left: 10px !important;
        right: 10px !important;
        z-index: 220 !important;
        display: none !important;
        padding: 10px !important;
        border: 1px solid #d6e3f4 !important;
        border-radius: 18px !important;
        background: #fff !important;
        box-shadow: 0 18px 50px rgba(15, 35, 64, 0.2) !important;
    }

    body.kt-mobile-search-open[data-kt-shell="school"] .kt-mobile-search-panel {
        display: block !important;
    }

    body[data-kt-shell="school"] .kt-portal-hero .kt-portal-hero-copy,
    body[data-kt-shell="school"] .kt-school-hero-copy,
    body[data-kt-shell="school"] .kt-pro-hero-copy {
        display: none !important;
    }

    body[data-kt-shell="school"] .kt-portal-hero,
    body[data-kt-shell="school"] .kt-school-hero,
    body[data-kt-shell="school"] .kt-pro-hero {
        padding: 14px !important;
        border-radius: 20px !important;
    }

    body[data-kt-shell="school"] .kt-bottom-nav {
        z-index: 130 !important;
    }
}

@media (max-width: 520px) {
    body[data-kt-shell="school"] .kt-pro-topbar-actions .kt-shell-round-button:nth-last-child(n+4) {
        display: none !important;
    }

    body[data-kt-shell="school"] .kt-pro-topbar-inner {
        grid-template-columns: minmax(0, 1fr) auto !important;
    }

    #apx-ops-drawer-root .apx-ops-drawer-shell,
    .apx-ops-drawer-shell {
        height: 94svh !important;
        max-height: 94svh !important;
    }
}

/* APXUTE_PHASE141_SCHOOL_LEARNING_WORKSPACE_REBUILD
   Final school portal workspace and drawer polish. */
body[data-kt-shell="school"] .kt-pro-topbar {
    position: sticky !important;
    top: 0 !important;
    z-index: 140 !important;
    border-bottom: 1px solid #dbe7f5 !important;
    background: rgba(255, 255, 255, 0.96) !important;
    backdrop-filter: blur(18px) saturate(1.15) !important;
}

body[data-kt-shell="school"] .kt-pro-topbar-inner {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) auto !important;
    align-items: center !important;
    gap: 14px !important;
    min-height: 74px !important;
    padding: 12px clamp(16px, 3vw, 28px) !important;
}

body[data-kt-shell="school"] .kt-pro-topbar-actions {
    display: flex !important;
    align-items: center !important;
    justify-content: flex-end !important;
    gap: 10px !important;
    min-width: 0 !important;
    flex-wrap: nowrap !important;
}

body[data-kt-shell="school"] .kt-mobile-search-trigger {
    display: none !important;
}

body[data-kt-shell="school"] .kt-pro-search {
    width: clamp(260px, 30vw, 460px) !important;
    min-width: 220px !important;
    max-width: 460px !important;
    height: 48px !important;
    padding: 0 12px !important;
    border-radius: 18px !important;
    background: #fff !important;
}

body[data-kt-shell="school"] .kt-pro-search input {
    min-height: 42px !important;
    height: 42px !important;
    border: 0 !important;
    box-shadow: none !important;
    background: transparent !important;
}

body[data-kt-shell="school"] .kt-shell-round-button,
body[data-kt-shell="school"] .kt-shell-icon-button,
body[data-kt-shell="school"] .kt-pro-top-icon {
    flex: 0 0 auto !important;
    width: 48px !important;
    height: 48px !important;
    min-width: 48px !important;
    min-height: 48px !important;
    border-radius: 18px !important;
    overflow: hidden !important;
}

body[data-kt-shell] :where(.kt-business-sidebar, .kt-pro-sidebar, .kt-school-portal-sidebar) :where(.apx-real-icon-slot, .apx118-menu-icon, .apx128-icon-slot, .kt-nav-icon, .kt-pro-icon, .kt-workspace-identity-icon, .apx130-business-switcher-icon) {
    overflow: hidden !important;
    display: inline-grid !important;
    place-items: center !important;
}

body[data-kt-shell] :where(.kt-business-sidebar, .kt-pro-sidebar, .kt-school-portal-sidebar) :where(.apx-real-icon-slot, .apx118-menu-icon, .apx128-icon-slot, .kt-nav-icon, .kt-pro-icon, .kt-workspace-identity-icon, .apx130-business-switcher-icon) > svg {
    width: 24px !important;
    height: 24px !important;
    max-width: 24px !important;
    max-height: 24px !important;
    fill: none !important;
    stroke: currentColor !important;
    stroke-width: 2 !important;
}

body[data-kt-shell] :where(.kt-business-sidebar, .kt-pro-sidebar, .kt-school-portal-sidebar) :where(.apx-real-icon-slot, .apx118-menu-icon, .apx128-icon-slot, .kt-nav-icon, .kt-pro-icon, .kt-workspace-identity-icon, .apx130-business-switcher-icon) > svg * {
    fill: none !important;
    stroke: currentColor !important;
}

.sp141-page {
    display: grid;
    gap: clamp(16px, 2vw, 24px);
}

.sp141-hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(280px, 360px);
    gap: clamp(18px, 3vw, 32px);
    align-items: stretch;
    padding: clamp(20px, 3vw, 34px);
    border: 1px solid rgba(37, 99, 235, 0.18);
    border-radius: 28px;
    background:
        radial-gradient(circle at 90% 12%, rgba(13, 148, 136, 0.14), transparent 28%),
        radial-gradient(circle at 12% 100%, rgba(245, 158, 11, 0.14), transparent 25%),
        linear-gradient(135deg, #fff 0%, #f7fbff 58%, #eef7ff 100%);
    box-shadow: 0 24px 70px rgba(15, 35, 64, 0.12);
    position: relative;
    overflow: hidden;
}

.sp141-hero::after {
    content: "";
    position: absolute;
    left: clamp(18px, 3vw, 34px);
    right: clamp(18px, 3vw, 34px);
    bottom: 0;
    height: 5px;
    border-radius: 999px 999px 0 0;
    background: linear-gradient(90deg, #2563eb, #0d9488, #f59e0b, #7c3aed, #ef4444);
}

.sp141-hero-copy,
.sp141-profile-card {
    position: relative;
    z-index: 1;
}

.sp141-pill,
.sp141-badge,
.sp141-chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    width: fit-content;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 950;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.sp141-pill {
    padding: 8px 12px;
    border: 1px solid #c8ddff;
    background: #f1f7ff;
    color: #174ea6;
}

.sp141-badge {
    padding: 5px 9px;
    color: #174ea6;
    background: #eff6ff;
    border: 1px solid #d6e7ff;
}

.sp141-chip {
    padding: 6px 10px;
    border: 1px solid #dbe7f5;
    background: #fff;
    color: #51627b;
    letter-spacing: 0;
    text-transform: none;
}

.sp141-chip.is-blue { color: #174ea6; background: #eff6ff; border-color: #bfdbfe; }
.sp141-chip.is-good { color: #047857; background: #ecfdf5; border-color: #a7f3d0; }
.sp141-chip.is-warn { color: #b45309; background: #fffbeb; border-color: #fde68a; }
.sp141-chip.is-danger { color: #b91c1c; background: #fef2f2; border-color: #fecaca; }
.sp141-chip.is-quiet { color: #64748b; background: #f8fafc; }

.sp141-icon {
    width: 52px;
    height: 52px;
    border-radius: 17px;
    display: inline-grid;
    place-items: center;
    flex: 0 0 auto;
    color: #fff !important;
    background: linear-gradient(135deg, #2563eb, #0e7490);
    box-shadow: 0 16px 35px rgba(15, 35, 64, 0.18);
}

.sp141-icon.is-blue { background: linear-gradient(135deg, #2563eb, #0e7490); }
.sp141-icon.is-teal { background: linear-gradient(135deg, #0f766e, #14b8a6); }
.sp141-icon.is-orange { background: linear-gradient(135deg, #d97706, #f59e0b); }
.sp141-icon.is-purple { background: linear-gradient(135deg, #7c3aed, #2563eb); }
.sp141-icon svg {
    width: 24px !important;
    height: 24px !important;
    fill: none !important;
    stroke: currentColor !important;
}

.sp141-hero h2 {
    margin: 16px 0 0;
    max-width: 860px;
    color: var(--apx-ink);
    font-size: clamp(2rem, 3.6vw, 3.8rem);
    line-height: 0.98;
    letter-spacing: 0;
    font-weight: 950;
}

.sp141-hero p,
.sp141-muted,
.sp141-side-card p,
.sp141-activity p {
    color: #52637d;
    line-height: 1.65;
    font-weight: 700;
}

.sp141-hero-copy > p {
    max-width: 760px;
    margin: 14px 0 0;
    font-size: clamp(0.98rem, 1.2vw, 1.12rem);
}

.sp141-hero-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 20px;
}

.sp141-profile-card {
    display: grid;
    align-content: center;
    gap: 14px;
    padding: 20px;
    border: 1px solid #d5e2f1;
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.84);
    box-shadow: inset 0 1px rgba(255, 255, 255, 0.8), 0 14px 40px rgba(15, 35, 64, 0.08);
}

.sp141-avatar {
    width: 92px;
    height: 92px;
    border-radius: 24px;
    overflow: hidden;
    display: inline-grid;
    place-items: center;
    background: linear-gradient(135deg, #2563eb, #0f766e);
    color: #fff;
    font-size: 2rem;
    font-weight: 950;
}

.sp141-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.sp141-profile-card span,
.sp141-section-head span,
.sp141-side-head span {
    color: #64748b;
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.09em;
    font-weight: 950;
}

.sp141-profile-card strong {
    display: block;
    margin-top: 4px;
    color: var(--apx-ink);
    font-size: 1.28rem;
    font-weight: 950;
}

.sp141-stats,
.sp141-support-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
}

.sp141-stat,
.sp141-side-card,
.sp141-main-panel {
    border: 1px solid rgba(148, 163, 184, 0.28);
    border-radius: 22px;
    background: linear-gradient(180deg, #fff, #f8fbff);
    box-shadow: 0 18px 48px rgba(15, 35, 64, 0.08);
}

.sp141-stat {
    min-height: 118px;
    padding: 18px;
    display: flex;
    align-items: center;
    gap: 14px;
    position: relative;
    overflow: hidden;
}

.sp141-stat::after {
    content: "";
    position: absolute;
    left: 18px;
    right: 18px;
    bottom: 0;
    height: 4px;
    border-radius: 999px 999px 0 0;
    background: linear-gradient(90deg, #2563eb, #0d9488, #f59e0b);
}

.sp141-stat small {
    color: #64748b;
    font-size: 0.78rem;
    font-weight: 950;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.sp141-stat strong {
    display: block;
    color: var(--apx-ink);
    font-size: 2rem;
    font-weight: 950;
    line-height: 1;
    margin-top: 5px;
}

.sp141-work-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(300px, 380px);
    gap: 18px;
    align-items: start;
}

.sp141-main-panel {
    padding: clamp(16px, 2vw, 22px);
}

.sp141-section-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 16px;
}

.sp141-section-head h3,
.sp141-side-head h3,
.sp141-empty h3 {
    margin: 4px 0 0;
    color: var(--apx-ink);
    font-weight: 950;
    letter-spacing: 0;
    line-height: 1.08;
}

.sp141-activity-list,
.sp141-mini-list,
.sp141-action-stack,
.sp141-side-panel {
    display: grid;
    gap: 12px;
}

.sp141-activity {
    padding: 16px;
    border: 1px solid #dbe7f5;
    border-radius: 20px;
    background:
        radial-gradient(circle at 100% 0%, rgba(37, 99, 235, 0.06), transparent 30%),
        #fff;
}

.sp141-activity-top {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: 14px;
    align-items: start;
}

.sp141-activity h4 {
    margin: 6px 0 4px;
    color: var(--apx-ink);
    font-size: 1.12rem;
    font-weight: 950;
}

.sp141-activity-top > strong {
    padding: 8px 10px;
    border-radius: 14px;
    background: #eff6ff;
    color: #174ea6;
    font-weight: 950;
}

.sp141-question-strip {
    display: grid;
    gap: 8px;
    margin: 12px 0;
}

.sp141-question-strip span {
    padding: 10px 12px;
    border: 1px dashed #c8d8ec;
    border-radius: 14px;
    background: #f8fbff;
    color: #475569;
    font-weight: 800;
}

.sp141-activity-foot {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    padding-top: 12px;
    border-top: 1px solid #edf2f7;
}

.sp141-activity-foot button,
.sp141-action-stack button,
.sp141-mini-list button,
.sp141-mini-list a {
    border: 0;
    border-radius: 14px;
    padding: 0.72rem 1rem;
    background: linear-gradient(135deg, #174ea6, #0d9488);
    color: #fff;
    font-weight: 950;
    text-decoration: none;
    cursor: pointer;
}

.sp141-side-card {
    padding: 18px;
}

.sp141-side-head {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.sp141-steps {
    display: grid;
    gap: 8px;
    margin: 0;
    padding-left: 20px;
    color: #475569;
    font-weight: 800;
}

.sp141-mini-list article {
    padding: 12px;
    border: 1px solid #dbe7f5;
    border-radius: 16px;
    background: #fff;
}

.sp141-mini-list strong {
    color: var(--apx-ink);
    font-weight: 950;
}

.sp141-mini-list p,
.sp141-mini-list small {
    display: block;
    margin: 4px 0 0;
    color: #64748b;
    font-weight: 750;
}

.sp141-support-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.sp141-empty {
    padding: 26px;
    border: 1px dashed #bed2ea;
    border-radius: 20px;
    text-align: center;
    background: #f8fbff;
}

.sp141-empty .sp141-icon {
    margin: 0 auto 12px;
}

.sp141-drawer-note,
.sp141-submission-summary,
.sp141-answer-preview {
    margin-top: 12px;
    padding: 13px;
    border: 1px solid #dbe7f5;
    border-radius: 16px;
    background: #f8fbff;
    color: #475569;
    font-weight: 750;
    line-height: 1.6;
}

.sp141-question-list {
    display: grid;
    gap: 12px;
}

.sp141-question-card {
    padding: 14px;
    border: 1px solid #dbe7f5;
    border-radius: 18px;
    background: #fff;
}

.sp141-question-head {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 10px;
    align-items: start;
}

.sp141-question-head > span {
    width: 32px;
    height: 32px;
    border-radius: 12px;
    display: inline-grid;
    place-items: center;
    color: #fff;
    background: linear-gradient(135deg, #2563eb, #0d9488);
    font-weight: 950;
}

.sp141-question-head strong {
    display: block;
    color: var(--apx-ink);
    font-weight: 950;
    line-height: 1.35;
}

.sp141-question-head small {
    display: block;
    margin-top: 4px;
    color: #64748b;
    font-weight: 800;
}

.sp141-question-image {
    display: block;
    width: 100%;
    max-height: 220px;
    object-fit: cover;
    border-radius: 16px;
    margin-top: 12px;
    border: 1px solid #dbe7f5;
}

.sp141-options {
    display: grid;
    gap: 8px;
    margin-top: 12px;
}

.sp141-options label {
    display: flex !important;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border: 1px solid #dbe7f5;
    border-radius: 14px;
    background: #f8fbff;
    color: #334155;
    font-weight: 850;
}

.sp141-options input {
    width: 18px !important;
    height: 18px !important;
    min-height: 18px !important;
}

.apx-ops-drawer-section {
    border: 1px solid #dbe7f5 !important;
    border-radius: 18px !important;
    background: #fff !important;
    padding: 14px !important;
    margin-bottom: 12px !important;
}

.apx-ops-drawer-section-head {
    display: flex !important;
    justify-content: space-between !important;
    gap: 12px !important;
    margin-bottom: 12px !important;
    padding-bottom: 10px !important;
    border-bottom: 1px solid #edf2f7 !important;
}

.apx-ops-drawer-section-head strong {
    color: var(--apx-ink) !important;
    font-weight: 950 !important;
}

.apx-ops-drawer-section-head small {
    color: #64748b !important;
    font-weight: 750 !important;
}

.apx-ops-form-grid {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 12px !important;
}

.apx-ops-field {
    display: grid !important;
    gap: 7px !important;
    min-width: 0 !important;
    color: #334155 !important;
    font-weight: 850 !important;
}

.apx-ops-field.is-wide {
    grid-column: 1 / -1 !important;
}

.apx-ops-field span:first-child {
    color: #52637d !important;
    font-size: 0.82rem !important;
    font-weight: 950 !important;
}

.apx-ops-field input,
.apx-ops-field select,
.apx-ops-field textarea {
    width: 100% !important;
    min-height: 46px !important;
    border: 1px solid #cddbed !important;
    border-radius: 14px !important;
    background: #fff !important;
    color: var(--apx-ink) !important;
    font-weight: 800 !important;
    padding: 0.78rem 0.9rem !important;
}

.apx-ops-check {
    display: flex !important;
    align-items: center !important;
    gap: 9px !important;
    padding: 10px 12px !important;
    border: 1px solid #dbe7f5 !important;
    border-radius: 14px !important;
    background: #f8fbff !important;
}

.apx-ops-check input {
    width: 18px !important;
    height: 18px !important;
    min-height: 18px !important;
}

@media (max-width: 1100px) {
    .sp141-hero,
    .sp141-work-grid {
        grid-template-columns: 1fr;
    }

    .sp141-stats {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 760px) {
    body[data-kt-shell="school"] .kt-pro-topbar-inner {
        min-height: 58px !important;
        padding: 8px 10px !important;
        gap: 8px !important;
    }

    body[data-kt-shell="school"] .kt-pro-page-title {
        gap: 8px !important;
    }

    body[data-kt-shell="school"] .kt-pro-title-kicker {
        max-width: calc(100vw - 190px) !important;
        font-size: 0.62rem !important;
        white-space: nowrap !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
    }

    body[data-kt-shell="school"] .kt-pro-page-title h1 {
        max-width: calc(100vw - 190px) !important;
        font-size: 1.08rem !important;
        white-space: nowrap !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
    }

    body[data-kt-shell="school"] .kt-pro-search,
    body[data-kt-shell="school"] .kt-pro-dashboard-link {
        display: none !important;
    }

    body[data-kt-shell="school"] .kt-mobile-search-trigger {
        display: inline-grid !important;
    }

    .sp141-page {
        gap: 14px;
        padding-bottom: 88px;
    }

    .sp141-hero {
        grid-template-columns: 1fr;
        padding: 16px;
        border-radius: 22px;
    }

    .sp141-hero-copy h2 {
        font-size: clamp(1.55rem, 8vw, 2.2rem);
        line-height: 1.04;
    }

    .sp141-hero-copy > p {
        display: none;
    }

    .sp141-hero-actions {
        display: grid;
        grid-template-columns: 1fr;
    }

    .sp141-profile-card {
        grid-template-columns: auto minmax(0, 1fr);
        align-items: center;
        padding: 14px;
        border-radius: 18px;
    }

    .sp141-avatar {
        width: 66px;
        height: 66px;
        border-radius: 18px;
        font-size: 1.35rem;
    }

    .sp141-profile-card strong {
        font-size: 1rem;
    }

    .sp141-stats,
    .sp141-support-grid {
        grid-template-columns: 1fr;
    }

    .sp141-stat {
        min-height: 92px;
        padding: 14px;
    }

    .sp141-icon {
        width: 46px;
        height: 46px;
        border-radius: 15px;
    }

    .sp141-section-head,
    .sp141-activity-foot {
        align-items: stretch;
        flex-direction: column;
    }

    .sp141-activity-top {
        grid-template-columns: auto minmax(0, 1fr);
    }

    .sp141-activity-top > strong {
        grid-column: 2;
        width: fit-content;
    }

    .apx-ops-drawer-section-head {
        display: grid !important;
    }

    .apx-ops-form-grid {
        grid-template-columns: 1fr !important;
    }
}

/* APXUTE_PHASE142_SCHOOL_LEARNING_CONSOLE_REFINEMENT
   Loaded last to make the school portal feel like a compact operations app. */
:root {
    --apx-school-bg: #f6f8fb;
    --apx-school-warm: #fbf8f1;
    --apx-school-surface: #ffffff;
    --apx-school-ink: #071326;
    --apx-school-muted: #5f6f86;
    --apx-school-line: #d8e2ef;
    --apx-school-blue: #1d4ed8;
    --apx-school-teal: #0f766e;
    --apx-school-gold: #b7791f;
    --apx-school-red: #be123c;
    --apx-school-shadow: 0 14px 34px rgba(15, 35, 64, 0.08);
    --apx-school-radius: 8px;
}

body[data-kt-shell="school"].kt-portal-body {
    color: var(--apx-school-ink) !important;
    background: linear-gradient(180deg, var(--apx-school-warm) 0%, var(--apx-school-bg) 42%, #eef3f8 100%) !important;
}

body[data-kt-shell="school"] .kt-pro-school-shell {
    min-height: 100vh !important;
    background: transparent !important;
}

@media (min-width: 1024px) {
    body[data-kt-shell="school"] .kt-pro-school-shell {
        display: grid !important;
        grid-template-columns: 268px minmax(0, 1fr) !important;
    }

    body[data-kt-shell="school"] .kt-pro-sidebar {
        position: sticky !important;
        top: 0 !important;
        height: 100vh !important;
        overflow-y: auto !important;
    }
}

body[data-kt-shell="school"] .kt-pro-sidebar {
    padding: 12px 10px !important;
    border-right: 1px solid rgba(255, 255, 255, 0.08) !important;
    background: linear-gradient(180deg, #071326 0%, #0a1d33 58%, #082b33 100%) !important;
    box-shadow: 14px 0 32px rgba(7, 19, 38, 0.16) !important;
}

body[data-kt-shell="school"] .kt-pro-brand-card {
    min-height: 0 !important;
    margin: 0 0 12px !important;
    padding: 12px !important;
    gap: 10px !important;
    border-radius: var(--apx-school-radius) !important;
    border: 1px solid rgba(219, 234, 254, 0.14) !important;
    background: rgba(255, 255, 255, 0.06) !important;
    box-shadow: none !important;
}

body[data-kt-shell="school"] .kt-pro-logo-mark {
    width: 44px !important;
    height: 44px !important;
    min-width: 44px !important;
    border-radius: var(--apx-school-radius) !important;
    box-shadow: 0 10px 22px rgba(13, 148, 136, 0.2) !important;
}

body[data-kt-shell="school"] .kt-pro-brand-card .truncate {
    font-size: 0.95rem !important;
    line-height: 1.15 !important;
}

body[data-kt-shell="school"] .kt-pro-brand-card .text-blue-100 {
    margin-top: 2px !important;
    font-size: 0.62rem !important;
    letter-spacing: 0.08em !important;
}

body[data-kt-shell="school"] .kt-pro-sidebar-nav {
    gap: 5px !important;
    padding: 0 !important;
}

body[data-kt-shell="school"] .kt-pro-sidebar-nav a {
    position: relative !important;
    min-height: 46px !important;
    grid-template-columns: 34px minmax(0, 1fr) !important;
    gap: 9px !important;
    padding: 7px 8px !important;
    border-radius: var(--apx-school-radius) !important;
    color: #d7e3f3 !important;
    border: 1px solid transparent !important;
    background: transparent !important;
    box-shadow: none !important;
    transform: none !important;
}

body[data-kt-shell="school"] .kt-pro-sidebar-nav a > span:last-child {
    min-width: 0 !important;
}

body[data-kt-shell="school"] .kt-pro-sidebar-nav a:hover,
body[data-kt-shell="school"] .kt-pro-sidebar-nav a.is-active {
    transform: none !important;
    background: rgba(255, 255, 255, 0.08) !important;
    border-color: rgba(191, 219, 254, 0.18) !important;
}

body[data-kt-shell="school"] .kt-pro-sidebar-nav a.is-active {
    color: #ffffff !important;
    background: linear-gradient(135deg, rgba(29, 78, 216, 0.34), rgba(15, 118, 110, 0.22)) !important;
}

body[data-kt-shell="school"] .kt-pro-sidebar-nav a.is-active::before {
    content: "" !important;
    width: 3px !important;
    height: 24px !important;
    border-radius: 999px !important;
    background: #f6c453 !important;
    position: absolute !important;
    left: 0 !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
}

body[data-kt-shell="school"] .kt-pro-sidebar-nav strong {
    font-size: 0.86rem !important;
    line-height: 1.1 !important;
    font-weight: 900 !important;
}

body[data-kt-shell="school"] .kt-pro-sidebar-nav small {
    margin-top: 2px !important;
    font-size: 0.66rem !important;
    line-height: 1.15 !important;
    color: rgba(226, 232, 240, 0.72) !important;
}

body[data-kt-shell="school"] .kt-pro-sidebar-nav a.is-active small {
    color: rgba(255, 255, 255, 0.76) !important;
}

body[data-kt-shell="school"] .kt-pro-sidebar-nav .kt-pro-icon,
body[data-kt-shell="school"] .kt-bottom-nav .kt-pro-icon {
    width: 32px !important;
    height: 32px !important;
    min-width: 32px !important;
    border-radius: var(--apx-school-radius) !important;
    background: rgba(255, 255, 255, 0.11) !important;
    box-shadow: none !important;
}

body[data-kt-shell="school"] .kt-pro-sidebar-nav a.is-active .kt-pro-icon {
    background: linear-gradient(135deg, #1d4ed8, #0f766e) !important;
}

body[data-kt-shell="school"] .kt-pro-user-card {
    margin: 12px 0 0 !important;
    padding: 10px !important;
    display: grid !important;
    grid-template-columns: 36px minmax(0, 1fr) !important;
    gap: 9px !important;
    border-radius: var(--apx-school-radius) !important;
    background: rgba(255, 255, 255, 0.07) !important;
    border: 1px solid rgba(191, 219, 254, 0.14) !important;
}

body[data-kt-shell="school"] .kt-pro-user-card img,
body[data-kt-shell="school"] .kt-pro-user-card > span {
    width: 36px !important;
    height: 36px !important;
    min-width: 36px !important;
    border-radius: var(--apx-school-radius) !important;
}

body[data-kt-shell="school"] .kt-pro-user-card strong,
body[data-kt-shell="school"] .kt-pro-user-card small {
    display: block !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
}

body[data-kt-shell="school"] .kt-pro-user-card strong {
    font-size: 0.78rem !important;
    line-height: 1.2 !important;
}

body[data-kt-shell="school"] .kt-pro-user-card small {
    margin-top: 2px !important;
    color: #b9c9de !important;
    font-size: 0.68rem !important;
}

body[data-kt-shell="school"] .kt-pro-logout {
    width: 100% !important;
    min-height: 38px !important;
    margin: 0 !important;
    border-radius: var(--apx-school-radius) !important;
    color: #dbeafe !important;
    background: rgba(255, 255, 255, 0.07) !important;
    border: 1px solid rgba(191, 219, 254, 0.14) !important;
}

body[data-kt-shell="school"] .kt-pro-topbar {
    border-bottom: 1px solid var(--apx-school-line) !important;
    background: rgba(255, 255, 255, 0.94) !important;
    box-shadow: 0 8px 22px rgba(15, 35, 64, 0.05) !important;
}

body[data-kt-shell="school"] .kt-pro-topbar-inner {
    min-height: 64px !important;
    padding: 9px clamp(14px, 2vw, 22px) !important;
    gap: 12px !important;
}

body[data-kt-shell="school"] .kt-pro-title-kicker {
    color: #64748b !important;
    font-size: 0.68rem !important;
    letter-spacing: 0.08em !important;
}

body[data-kt-shell="school"] .kt-pro-page-title h1 {
    margin-top: 1px !important;
    font-size: 1.3rem !important;
    line-height: 1.12 !important;
}

body[data-kt-shell="school"] .kt-pro-search {
    width: min(34vw, 400px) !important;
    min-width: 230px !important;
    height: 42px !important;
    border-radius: var(--apx-school-radius) !important;
    border: 1px solid var(--apx-school-line) !important;
    box-shadow: none !important;
}

body[data-kt-shell="school"] .kt-pro-search input {
    min-height: 38px !important;
    height: 38px !important;
    font-size: 0.88rem !important;
}

body[data-kt-shell="school"] .kt-shell-round-button,
body[data-kt-shell="school"] .kt-shell-icon-button,
body[data-kt-shell="school"] .kt-pro-top-icon,
body[data-kt-shell="school"] .kt-mobile-search-trigger {
    width: 42px !important;
    height: 42px !important;
    min-width: 42px !important;
    min-height: 42px !important;
    border-radius: var(--apx-school-radius) !important;
    box-shadow: none !important;
}

body[data-kt-shell="school"] .kt-pro-dashboard-link,
body[data-kt-shell="school"] .kt-btn-secondary {
    min-height: 40px !important;
    border-radius: var(--apx-school-radius) !important;
}

body[data-kt-shell="school"] .kt-pro-main {
    width: 100% !important;
    max-width: 1480px !important;
    margin: 0 auto !important;
    padding: 16px clamp(14px, 2vw, 24px) 38px !important;
}

body[data-kt-shell="school"] .sp141-page {
    gap: 12px !important;
}

body[data-kt-shell="school"] .sp142-command-strip {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) auto minmax(250px, 310px) !important;
    align-items: center !important;
    gap: 14px !important;
    min-height: 0 !important;
    padding: 14px !important;
    border-radius: var(--apx-school-radius) !important;
    border: 1px solid var(--apx-school-line) !important;
    background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%) !important;
    box-shadow: var(--apx-school-shadow) !important;
    overflow: hidden !important;
}

body[data-kt-shell="school"] .sp142-command-strip::after {
    left: 14px !important;
    right: 14px !important;
    height: 3px !important;
    border-radius: 999px 999px 0 0 !important;
    background: linear-gradient(90deg, var(--apx-school-blue), var(--apx-school-teal), var(--apx-school-gold), var(--apx-school-red)) !important;
}

body[data-kt-shell="school"] .sp142-console-pill {
    gap: 7px !important;
    padding: 5px 8px !important;
    border-radius: var(--apx-school-radius) !important;
    font-size: 0.68rem !important;
    letter-spacing: 0.07em !important;
    background: #eef6ff !important;
    border-color: #cfe0f5 !important;
}

body[data-kt-shell="school"] .sp142-console-pill .sp141-icon {
    width: 24px !important;
    height: 24px !important;
    min-width: 24px !important;
    border-radius: 6px !important;
    box-shadow: none !important;
}

body[data-kt-shell="school"] .sp142-command-copy h2 {
    margin: 8px 0 0 !important;
    max-width: 720px !important;
    font-size: 1.56rem !important;
    line-height: 1.12 !important;
    font-weight: 950 !important;
}

body[data-kt-shell="school"] .sp142-command-copy > p {
    max-width: 760px !important;
    margin: 7px 0 0 !important;
    color: var(--apx-school-muted) !important;
    font-size: 0.9rem !important;
    line-height: 1.5 !important;
    font-weight: 700 !important;
}

body[data-kt-shell="school"] .sp142-command-actions {
    display: flex !important;
    flex-wrap: wrap !important;
    justify-content: flex-end !important;
    gap: 8px !important;
    margin-top: 0 !important;
}

body[data-kt-shell="school"] .apx-ops-button,
body[data-kt-shell="school"] .sp142-task-action button,
body[data-kt-shell="school"] .sp141-action-stack button,
body[data-kt-shell="school"] .sp141-mini-list button,
body[data-kt-shell="school"] .sp141-mini-list a {
    min-height: 38px !important;
    border-radius: var(--apx-school-radius) !important;
    border: 1px solid transparent !important;
    padding: 0.58rem 0.82rem !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    color: #ffffff !important;
    background: linear-gradient(135deg, var(--apx-school-blue), var(--apx-school-teal)) !important;
    box-shadow: none !important;
    font-size: 0.84rem !important;
    font-weight: 900 !important;
    line-height: 1.1 !important;
    text-decoration: none !important;
    cursor: pointer !important;
}

body[data-kt-shell="school"] .apx-ops-button.is-secondary {
    color: var(--apx-school-ink) !important;
    background: #ffffff !important;
    border-color: var(--apx-school-line) !important;
}

body[data-kt-shell="school"] .sp142-profile-tile {
    display: grid !important;
    grid-template-columns: 52px minmax(0, 1fr) !important;
    align-items: center !important;
    gap: 10px !important;
    padding: 10px !important;
    border-radius: var(--apx-school-radius) !important;
    border: 1px solid var(--apx-school-line) !important;
    background: #ffffff !important;
    box-shadow: none !important;
}

body[data-kt-shell="school"] .sp142-profile-tile .sp141-avatar {
    width: 52px !important;
    height: 52px !important;
    border-radius: var(--apx-school-radius) !important;
    font-size: 1.08rem !important;
    box-shadow: none !important;
}

body[data-kt-shell="school"] .sp142-profile-tile span,
body[data-kt-shell="school"] .sp142-panel-head span,
body[data-kt-shell="school"] .sp141-side-head span {
    color: #64748b !important;
    font-size: 0.68rem !important;
    letter-spacing: 0.08em !important;
}

body[data-kt-shell="school"] .sp142-profile-tile strong {
    margin-top: 2px !important;
    font-size: 0.98rem !important;
    line-height: 1.18 !important;
    overflow-wrap: anywhere !important;
}

body[data-kt-shell="school"] .sp142-profile-tile p {
    margin: 3px 0 0 !important;
    color: var(--apx-school-muted) !important;
    font-size: 0.78rem !important;
    line-height: 1.35 !important;
    font-weight: 700 !important;
    overflow-wrap: anywhere !important;
}

body[data-kt-shell="school"] .sp142-profile-meta {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 5px !important;
    margin-top: 7px !important;
}

body[data-kt-shell="school"] .sp142-profile-meta span {
    max-width: 100% !important;
    padding: 3px 6px !important;
    border-radius: 999px !important;
    background: #f2f6fb !important;
    border: 1px solid #e0e8f2 !important;
    color: #4f6077 !important;
    letter-spacing: 0 !important;
    text-transform: none !important;
    overflow-wrap: anywhere !important;
}

body[data-kt-shell="school"] .sp142-metric-rail {
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    gap: 10px !important;
}

body[data-kt-shell="school"] .sp142-metric,
body[data-kt-shell="school"] .sp142-main-panel,
body[data-kt-shell="school"] .sp142-side-card,
body[data-kt-shell="school"] .sp141-empty {
    border-radius: var(--apx-school-radius) !important;
    border: 1px solid var(--apx-school-line) !important;
    background: #ffffff !important;
    box-shadow: var(--apx-school-shadow) !important;
}

body[data-kt-shell="school"] .sp142-metric {
    min-height: 0 !important;
    padding: 11px !important;
    grid-template-columns: 34px minmax(0, 1fr) !important;
    display: grid !important;
    align-items: center !important;
    gap: 10px !important;
}

body[data-kt-shell="school"] .sp142-metric::after {
    display: none !important;
}

body[data-kt-shell="school"] .sp142-metric .sp141-icon,
body[data-kt-shell="school"] .sp142-task-row .sp141-icon,
body[data-kt-shell="school"] .sp142-side-card .sp141-icon {
    width: 34px !important;
    height: 34px !important;
    min-width: 34px !important;
    border-radius: var(--apx-school-radius) !important;
    box-shadow: none !important;
}

body[data-kt-shell="school"] .sp142-metric.is-blue .sp141-icon { background: linear-gradient(135deg, #1d4ed8, #0e7490) !important; }
body[data-kt-shell="school"] .sp142-metric.is-teal .sp141-icon { background: linear-gradient(135deg, #0f766e, #14b8a6) !important; }
body[data-kt-shell="school"] .sp142-metric.is-gold .sp141-icon { background: linear-gradient(135deg, #b7791f, #eab308) !important; }
body[data-kt-shell="school"] .sp142-metric.is-red .sp141-icon { background: linear-gradient(135deg, #be123c, #f97316) !important; }

body[data-kt-shell="school"] .sp142-metric small {
    font-size: 0.68rem !important;
    letter-spacing: 0.07em !important;
}

body[data-kt-shell="school"] .sp142-metric strong {
    margin-top: 2px !important;
    font-size: 1.35rem !important;
}

body[data-kt-shell="school"] .sp142-metric div > span {
    display: block !important;
    margin-top: 2px !important;
    color: var(--apx-school-muted) !important;
    font-size: 0.72rem !important;
    font-weight: 800 !important;
    line-height: 1.25 !important;
}

body[data-kt-shell="school"] .sp142-work-grid {
    grid-template-columns: minmax(0, 1fr) minmax(282px, 340px) !important;
    gap: 12px !important;
}

body[data-kt-shell="school"] .sp142-main-panel {
    padding: 12px !important;
}

body[data-kt-shell="school"] .sp142-panel-head {
    align-items: center !important;
    margin-bottom: 10px !important;
}

body[data-kt-shell="school"] .sp142-panel-head h3,
body[data-kt-shell="school"] .sp141-side-head h3 {
    margin-top: 2px !important;
    font-size: 1.02rem !important;
    line-height: 1.16 !important;
}

body[data-kt-shell="school"] .sp142-head-actions {
    display: flex !important;
    align-items: center !important;
    justify-content: flex-end !important;
    gap: 8px !important;
    flex-wrap: wrap !important;
}

body[data-kt-shell="school"] .sp142-head-actions > span {
    padding: 5px 8px !important;
    border-radius: 999px !important;
    border: 1px solid var(--apx-school-line) !important;
    background: #f8fbff !important;
    color: #51627b !important;
    letter-spacing: 0 !important;
    text-transform: none !important;
}

body[data-kt-shell="school"] .sp142-task-list {
    gap: 8px !important;
}

body[data-kt-shell="school"] .sp142-task-row {
    display: grid !important;
    grid-template-columns: 76px minmax(230px, 1.2fr) minmax(315px, 0.95fr) auto !important;
    align-items: center !important;
    gap: 12px !important;
    min-height: 0 !important;
    padding: 10px !important;
    border-radius: var(--apx-school-radius) !important;
    border: 1px solid #dde7f3 !important;
    background: #ffffff !important;
    box-shadow: none !important;
}

body[data-kt-shell="school"] .sp142-task-row:hover {
    border-color: #b9cce5 !important;
    box-shadow: 0 10px 24px rgba(15, 35, 64, 0.07) !important;
}

body[data-kt-shell="school"] .sp142-task-mark {
    display: grid !important;
    justify-items: start !important;
    gap: 7px !important;
}

body[data-kt-shell="school"] .sp142-task-mark .sp141-badge {
    max-width: 100% !important;
    padding: 4px 6px !important;
    border-radius: 999px !important;
    font-size: 0.64rem !important;
    letter-spacing: 0.04em !important;
    color: #1d4ed8 !important;
}

body[data-kt-shell="school"] .sp142-task-title {
    display: block !important;
}

body[data-kt-shell="school"] .sp142-task-title h4 {
    margin: 0 !important;
    font-size: 0.98rem !important;
    line-height: 1.24 !important;
    overflow-wrap: anywhere !important;
}

body[data-kt-shell="school"] .sp142-task-title p,
body[data-kt-shell="school"] .sp142-task-summary {
    margin: 3px 0 0 !important;
    color: var(--apx-school-muted) !important;
    font-size: 0.8rem !important;
    line-height: 1.38 !important;
    font-weight: 700 !important;
}

body[data-kt-shell="school"] .sp142-question-strip {
    margin: 7px 0 0 !important;
    gap: 0 !important;
}

body[data-kt-shell="school"] .sp142-question-strip span {
    padding: 6px 8px !important;
    border-radius: var(--apx-school-radius) !important;
    border: 1px dashed #cfdceb !important;
    background: #f8fbff !important;
    color: #52637d !important;
    font-size: 0.76rem !important;
    line-height: 1.35 !important;
    font-weight: 700 !important;
}

body[data-kt-shell="school"] .sp142-task-meta {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 7px !important;
    margin: 0 !important;
}

body[data-kt-shell="school"] .sp142-task-meta div {
    min-width: 0 !important;
    padding: 7px 8px !important;
    border-radius: var(--apx-school-radius) !important;
    border: 1px solid #e0e8f2 !important;
    background: #fbfdff !important;
}

body[data-kt-shell="school"] .sp142-task-meta dt {
    margin: 0 0 3px !important;
    color: #64748b !important;
    font-size: 0.63rem !important;
    font-weight: 900 !important;
    letter-spacing: 0.07em !important;
    line-height: 1 !important;
    text-transform: uppercase !important;
}

body[data-kt-shell="school"] .sp142-task-meta dd {
    margin: 0 !important;
    color: var(--apx-school-ink) !important;
    font-size: 0.78rem !important;
    font-weight: 900 !important;
    line-height: 1.18 !important;
    overflow-wrap: anywhere !important;
}

body[data-kt-shell="school"] .sp141-chip {
    max-width: 100% !important;
    padding: 4px 7px !important;
    border-radius: 999px !important;
    font-size: 0.68rem !important;
    line-height: 1.1 !important;
    font-weight: 900 !important;
    white-space: normal !important;
}

body[data-kt-shell="school"] .sp142-task-action {
    display: flex !important;
    justify-content: flex-end !important;
}

body[data-kt-shell="school"] .sp142-task-action button {
    white-space: nowrap !important;
}

body[data-kt-shell="school"] .sp142-side-panel {
    gap: 10px !important;
}

body[data-kt-shell="school"] .sp142-side-card {
    padding: 12px !important;
}

body[data-kt-shell="school"] .sp141-side-head {
    gap: 9px !important;
    margin-bottom: 10px !important;
}

body[data-kt-shell="school"] .sp142-side-metrics {
    display: grid !important;
    gap: 7px !important;
    margin: 0 0 10px !important;
}

body[data-kt-shell="school"] .sp142-side-metrics div,
body[data-kt-shell="school"] .sp141-mini-list article {
    border-radius: var(--apx-school-radius) !important;
    border: 1px solid #e0e8f2 !important;
    background: #fbfdff !important;
}

body[data-kt-shell="school"] .sp142-side-metrics div {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 10px !important;
    padding: 8px 9px !important;
}

body[data-kt-shell="school"] .sp142-side-metrics dt,
body[data-kt-shell="school"] .sp142-side-metrics dd {
    margin: 0 !important;
}

body[data-kt-shell="school"] .sp142-side-metrics dt {
    color: #64748b !important;
    font-size: 0.75rem !important;
    font-weight: 850 !important;
}

body[data-kt-shell="school"] .sp142-side-metrics dd {
    color: var(--apx-school-ink) !important;
    font-size: 0.92rem !important;
    font-weight: 950 !important;
}

body[data-kt-shell="school"] .sp141-action-stack {
    gap: 7px !important;
}

body[data-kt-shell="school"] .sp141-action-stack button {
    width: 100% !important;
}

body[data-kt-shell="school"] .sp141-mini-list {
    gap: 7px !important;
}

body[data-kt-shell="school"] .sp141-mini-list article {
    padding: 9px !important;
}

body[data-kt-shell="school"] .sp141-mini-list strong {
    font-size: 0.85rem !important;
    line-height: 1.25 !important;
}

body[data-kt-shell="school"] .sp141-mini-list p,
body[data-kt-shell="school"] .sp141-mini-list small,
body[data-kt-shell="school"] .sp141-muted {
    color: var(--apx-school-muted) !important;
    font-size: 0.78rem !important;
    line-height: 1.42 !important;
    font-weight: 700 !important;
}

body[data-kt-shell="school"] .sp141-support-grid {
    gap: 12px !important;
}

body[data-kt-shell="school"] .apx-ops-drawer-shell {
    width: min(560px, calc(100vw - 16px)) !important;
    border-radius: var(--apx-school-radius) 0 0 var(--apx-school-radius) !important;
    background: #ffffff !important;
}

body[data-kt-shell="school"] .apx-ops-drawer-header {
    padding: 16px !important;
    border-bottom: 1px solid var(--apx-school-line) !important;
    border-image: none !important;
    background: #ffffff !important;
}

body[data-kt-shell="school"] .apx-ops-drawer-icon {
    width: 38px !important;
    height: 38px !important;
    min-width: 38px !important;
    border-radius: var(--apx-school-radius) !important;
    box-shadow: none !important;
}

body[data-kt-shell="school"] .apx-ops-drawer-header h2 {
    font-size: 1.18rem !important;
    line-height: 1.16 !important;
}

body[data-kt-shell="school"] .apx-ops-drawer-header p {
    font-size: 0.82rem !important;
    line-height: 1.4 !important;
}

body[data-kt-shell="school"] .apx-ops-drawer-close {
    width: 38px !important;
    height: 38px !important;
    border-radius: var(--apx-school-radius) !important;
}

body[data-kt-shell="school"] .apx-ops-drawer-body {
    padding: 12px !important;
}

body[data-kt-shell="school"] .apx-ops-drawer-section,
body[data-kt-shell="school"] .sp141-question-card,
body[data-kt-shell="school"] .sp141-drawer-note,
body[data-kt-shell="school"] .sp141-submission-summary,
body[data-kt-shell="school"] .sp141-answer-preview,
body[data-kt-shell="school"] .sp141-options label,
body[data-kt-shell="school"] .apx-ops-check {
    border-radius: var(--apx-school-radius) !important;
}

body[data-kt-shell="school"] .apx-ops-drawer-footer {
    min-height: 58px !important;
    padding: 10px 14px max(12px, env(safe-area-inset-bottom)) !important;
    background: #ffffff !important;
}

body[data-kt-shell="school"] .apx-ops-field input,
body[data-kt-shell="school"] .apx-ops-field select,
body[data-kt-shell="school"] .apx-ops-field textarea,
body[data-kt-shell="school"] input,
body[data-kt-shell="school"] select,
body[data-kt-shell="school"] textarea {
    border-radius: var(--apx-school-radius) !important;
}

@media (max-width: 1280px) {
    body[data-kt-shell="school"] .sp142-command-strip {
        grid-template-columns: minmax(0, 1fr) minmax(230px, 300px) !important;
    }

    body[data-kt-shell="school"] .sp142-command-actions {
        grid-column: 1 / -1 !important;
        justify-content: flex-start !important;
    }

    body[data-kt-shell="school"] .sp142-task-row {
        grid-template-columns: 72px minmax(0, 1fr) !important;
        align-items: start !important;
    }

    body[data-kt-shell="school"] .sp142-task-meta,
    body[data-kt-shell="school"] .sp142-task-action {
        grid-column: 2 !important;
    }

    body[data-kt-shell="school"] .sp142-task-action {
        justify-content: flex-start !important;
    }
}

@media (max-width: 1023px) {
    body[data-kt-shell="school"] .kt-pro-school-shell {
        display: block !important;
    }

    body[data-kt-shell="school"] .kt-pro-sidebar {
        position: fixed !important;
        inset: 0 auto 0 0 !important;
        z-index: 180 !important;
        width: min(84vw, 306px) !important;
        height: 100dvh !important;
        transform: translateX(-104%) !important;
        transition: transform 0.22s ease !important;
    }

    body[data-kt-shell="school"].kt-sidebar-open .kt-pro-sidebar {
        transform: translateX(0) !important;
    }

    body[data-kt-shell="school"] .kt-sidebar-backdrop {
        position: fixed !important;
        inset: 0 !important;
        z-index: 170 !important;
        background: rgba(7, 19, 38, 0.52) !important;
        opacity: 0 !important;
        pointer-events: none !important;
        transition: opacity 0.2s ease !important;
    }

    body[data-kt-shell="school"].kt-sidebar-open .kt-sidebar-backdrop {
        opacity: 1 !important;
        pointer-events: auto !important;
    }

    body[data-kt-shell="school"] .sp142-work-grid {
        grid-template-columns: 1fr !important;
    }
}

@media (max-width: 900px) {
    body[data-kt-shell="school"] .sp142-command-strip,
    body[data-kt-shell="school"] .sp142-metric-rail,
    body[data-kt-shell="school"] .sp141-support-grid {
        grid-template-columns: 1fr !important;
    }

    body[data-kt-shell="school"] .sp142-profile-tile,
    body[data-kt-shell="school"] .sp142-command-actions {
        grid-column: auto !important;
    }

    body[data-kt-shell="school"] .sp142-command-actions {
        justify-content: flex-start !important;
    }

    body[data-kt-shell="school"] .sp142-metric-rail {
        gap: 8px !important;
    }

    body[data-kt-shell="school"] .sp142-metric {
        grid-template-columns: 32px minmax(0, 1fr) !important;
    }
}

@media (max-width: 760px) {
    body[data-kt-shell="school"] .kt-pro-main {
        padding: 10px 10px 88px !important;
    }

    body[data-kt-shell="school"] .kt-pro-topbar-inner {
        min-height: 58px !important;
        padding: 8px 9px !important;
    }

    body[data-kt-shell="school"] .kt-pro-page-title h1 {
        max-width: calc(100vw - 178px) !important;
        font-size: 1.02rem !important;
    }

    body[data-kt-shell="school"] .kt-pro-title-kicker {
        max-width: calc(100vw - 178px) !important;
        font-size: 0.58rem !important;
    }

    body[data-kt-shell="school"] .kt-shell-round-button,
    body[data-kt-shell="school"] .kt-shell-icon-button,
    body[data-kt-shell="school"] .kt-pro-top-icon,
    body[data-kt-shell="school"] .kt-mobile-search-trigger {
        width: 38px !important;
        height: 38px !important;
        min-width: 38px !important;
        min-height: 38px !important;
    }

    body[data-kt-shell="school"] .sp142-command-strip {
        gap: 10px !important;
        padding: 12px !important;
    }

    body[data-kt-shell="school"] .sp142-command-copy h2 {
        font-size: 1.22rem !important;
        line-height: 1.18 !important;
    }

    body[data-kt-shell="school"] .sp142-command-copy > p {
        display: block !important;
        font-size: 0.82rem !important;
    }

    body[data-kt-shell="school"] .sp142-command-actions {
        display: grid !important;
        grid-template-columns: 1fr !important;
        width: 100% !important;
    }

    body[data-kt-shell="school"] .sp142-command-actions .apx-ops-button {
        width: 100% !important;
    }

    body[data-kt-shell="school"] .sp142-panel-head {
        align-items: stretch !important;
    }

    body[data-kt-shell="school"] .sp142-head-actions {
        justify-content: stretch !important;
    }

    body[data-kt-shell="school"] .sp142-head-actions .apx-ops-button {
        width: 100% !important;
    }

    body[data-kt-shell="school"] .sp142-task-row {
        grid-template-columns: 1fr !important;
        gap: 9px !important;
    }

    body[data-kt-shell="school"] .sp142-task-mark {
        grid-template-columns: 34px auto !important;
        align-items: center !important;
    }

    body[data-kt-shell="school"] .sp142-task-meta,
    body[data-kt-shell="school"] .sp142-task-action {
        grid-column: auto !important;
    }

    body[data-kt-shell="school"] .sp142-task-meta {
        grid-template-columns: 1fr !important;
    }

    body[data-kt-shell="school"] .sp142-task-action button {
        width: 100% !important;
    }

    body[data-kt-shell="school"] .apx-ops-drawer-shell {
        border-radius: var(--apx-school-radius) var(--apx-school-radius) 0 0 !important;
    }

    body[data-kt-shell="school"] .apx-ops-drawer-footer {
        display: grid !important;
        grid-template-columns: 1fr !important;
    }
}

/* APXUTE_PHASE143_SCHOOL_SCHEDULE_TIMETABLE_TABLES
   Visible timetable and attendance tables for the portal schedule page. */
body[data-kt-shell="school"] .kt-schedule-board {
    grid-template-columns: minmax(0, 1.38fr) minmax(340px, 0.82fr) !important;
    gap: 12px !important;
    align-items: start !important;
}

body[data-kt-shell="school"] .kt-schedule-board .kt-pro-panel {
    overflow: hidden !important;
}

body[data-kt-shell="school"] .kt-schedule-panel-head {
    display: grid !important;
    grid-template-columns: 42px minmax(0, 1fr) auto !important;
    align-items: center !important;
    gap: 10px !important;
    margin-bottom: 12px !important;
}

body[data-kt-shell="school"] .kt-schedule-panel-head h3 {
    font-size: 1.03rem !important;
    line-height: 1.16 !important;
}

body[data-kt-shell="school"] .kt-schedule-panel-head .kt-panel-head-action {
    min-height: 36px !important;
    padding: 0.52rem 0.72rem !important;
    font-size: 0.78rem !important;
    white-space: nowrap !important;
}

body[data-kt-shell="school"] .kt-schedule-week-strip {
    display: grid !important;
    grid-template-columns: repeat(7, minmax(86px, 1fr)) !important;
    gap: 8px !important;
    margin: 0 0 12px !important;
    overflow-x: auto !important;
    padding-bottom: 2px !important;
    scrollbar-width: thin;
    -webkit-overflow-scrolling: touch;
}

body[data-kt-shell="school"] .kt-schedule-week-strip span {
    position: relative !important;
    min-width: 86px !important;
    padding: 9px 10px !important;
    border-radius: var(--apx-school-radius) !important;
    border: 1px solid #dbe6f3 !important;
    background: #ffffff !important;
    box-shadow: 0 8px 18px rgba(15, 35, 64, 0.05) !important;
}

body[data-kt-shell="school"] .kt-schedule-week-strip span::before {
    content: "" !important;
    position: absolute !important;
    inset: 0 auto 0 0 !important;
    width: 4px !important;
    border-radius: var(--apx-school-radius) 0 0 var(--apx-school-radius) !important;
    background: #94a3b8 !important;
}

body[data-kt-shell="school"] .kt-schedule-week-strip .has-periods {
    border-color: #bfd4ee !important;
    background: linear-gradient(180deg, #ffffff 0%, #f7fbff 100%) !important;
}

body[data-kt-shell="school"] .kt-schedule-week-strip .is-today {
    box-shadow: 0 0 0 3px rgba(29, 78, 216, 0.12), 0 10px 22px rgba(15, 35, 64, 0.08) !important;
}

body[data-kt-shell="school"] .kt-schedule-week-strip .is-day-1::before { background: #1d4ed8 !important; }
body[data-kt-shell="school"] .kt-schedule-week-strip .is-day-2::before { background: #0f766e !important; }
body[data-kt-shell="school"] .kt-schedule-week-strip .is-day-3::before { background: #f97316 !important; }
body[data-kt-shell="school"] .kt-schedule-week-strip .is-day-4::before { background: #7c3aed !important; }
body[data-kt-shell="school"] .kt-schedule-week-strip .is-day-5::before { background: #16a34a !important; }
body[data-kt-shell="school"] .kt-schedule-week-strip .is-day-6::before { background: #be123c !important; }
body[data-kt-shell="school"] .kt-schedule-week-strip .is-day-7::before { background: #0e7490 !important; }

body[data-kt-shell="school"] .kt-schedule-week-strip strong,
body[data-kt-shell="school"] .kt-schedule-week-strip em {
    display: block !important;
    min-width: 0 !important;
    padding-left: 2px !important;
}

body[data-kt-shell="school"] .kt-schedule-week-strip strong {
    color: var(--apx-school-ink) !important;
    font-size: 0.82rem !important;
    font-weight: 950 !important;
    line-height: 1.1 !important;
}

body[data-kt-shell="school"] .kt-schedule-week-strip em {
    margin-top: 4px !important;
    color: var(--apx-school-muted) !important;
    font-size: 0.68rem !important;
    font-style: normal !important;
    font-weight: 850 !important;
    line-height: 1.2 !important;
}

body[data-kt-shell="school"] .kt-schedule-table-wrap {
    width: 100% !important;
    overflow-x: auto !important;
    border: 1px solid var(--apx-school-line) !important;
    border-radius: var(--apx-school-radius) !important;
    background: #ffffff !important;
    box-shadow: 0 8px 22px rgba(15, 35, 64, 0.05) !important;
    -webkit-overflow-scrolling: touch;
}

body[data-kt-shell="school"] .kt-schedule-table-wrap:focus {
    outline: 3px solid rgba(29, 78, 216, 0.18) !important;
    outline-offset: 3px !important;
}

body[data-kt-shell="school"] .kt-schedule-table {
    width: 100% !important;
    min-width: 720px !important;
    border-collapse: separate !important;
    border-spacing: 0 !important;
    background: #ffffff !important;
}

body[data-kt-shell="school"] .kt-schedule-attendance-table {
    min-width: 640px !important;
}

body[data-kt-shell="school"] .kt-schedule-table caption {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
}

body[data-kt-shell="school"] .kt-schedule-table th {
    border-bottom: 1px solid #d9e5f2 !important;
    background: #eff6ff !important;
    color: #40536f !important;
    font-size: 0.68rem !important;
    letter-spacing: 0.08em !important;
    line-height: 1 !important;
}

body[data-kt-shell="school"] .kt-schedule-table td {
    border-bottom: 1px solid #edf2f8 !important;
    color: var(--apx-school-ink) !important;
    font-size: 0.84rem !important;
    line-height: 1.35 !important;
}

body[data-kt-shell="school"] .kt-schedule-table tbody tr:last-child td {
    border-bottom: 0 !important;
}

body[data-kt-shell="school"] .kt-schedule-table tbody tr:hover td {
    background: #fbfdff !important;
}

body[data-kt-shell="school"] .kt-schedule-table td strong,
body[data-kt-shell="school"] .kt-schedule-table td span:not(.kt-pro-badge):not(.kt-schedule-day-pill) {
    display: block !important;
    overflow-wrap: anywhere !important;
}

body[data-kt-shell="school"] .kt-schedule-table td strong {
    font-size: 0.86rem !important;
    font-weight: 950 !important;
}

body[data-kt-shell="school"] .kt-schedule-table td span:not(.kt-pro-badge):not(.kt-schedule-day-pill) {
    margin-top: 3px !important;
    color: var(--apx-school-muted) !important;
    font-size: 0.73rem !important;
    font-weight: 750 !important;
}

body[data-kt-shell="school"] .kt-schedule-day-pill {
    display: inline-flex !important;
    align-items: center !important;
    min-height: 28px !important;
    max-width: 100% !important;
    padding: 5px 8px !important;
    border-radius: 999px !important;
    border: 1px solid #bfdbfe !important;
    background: #eff6ff !important;
    color: #1d4ed8 !important;
    font-size: 0.72rem !important;
    font-weight: 950 !important;
    line-height: 1.1 !important;
    white-space: nowrap !important;
}

body[data-kt-shell="school"] .kt-schedule-attendance-table td:nth-child(4) {
    min-width: 170px !important;
    color: var(--apx-school-muted) !important;
    font-weight: 750 !important;
}

body[data-kt-shell="school"] .kt-schedule-board .kt-pro-badge {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    min-height: 28px !important;
    max-width: 100% !important;
    padding: 5px 9px !important;
    border-radius: 999px !important;
    border: 1px solid #d7e2ef !important;
    background: #f8fafc !important;
    color: #475569 !important;
    font-size: 0.72rem !important;
    font-weight: 950 !important;
    line-height: 1.1 !important;
    white-space: nowrap !important;
}

body[data-kt-shell="school"] .kt-schedule-board .kt-pro-badge.is-present,
body[data-kt-shell="school"] .kt-schedule-board .kt-pro-badge.is-paid,
body[data-kt-shell="school"] .kt-schedule-board .kt-pro-badge.is-approved {
    border-color: #bbf7d0 !important;
    background: #ecfdf3 !important;
    color: #15803d !important;
}

body[data-kt-shell="school"] .kt-schedule-board .kt-pro-badge.is-late,
body[data-kt-shell="school"] .kt-schedule-board .kt-pro-badge.is-pending {
    border-color: #fed7aa !important;
    background: #fff7ed !important;
    color: #c2410c !important;
}

body[data-kt-shell="school"] .kt-schedule-board .kt-pro-badge.is-absent,
body[data-kt-shell="school"] .kt-schedule-board .kt-pro-badge.is-rejected {
    border-color: #fecdd3 !important;
    background: #fff1f2 !important;
    color: #be123c !important;
}

body[data-kt-shell="school"] .kt-schedule-board .kt-pro-badge.is-excused {
    border-color: #ddd6fe !important;
    background: #f5f3ff !important;
    color: #6d28d9 !important;
}

body[data-kt-shell="school"] .kt-schedule-table .kt-pro-empty {
    margin: 4px !important;
    border-radius: var(--apx-school-radius) !important;
    box-shadow: none !important;
}

@media (max-width: 1023px) {
    body[data-kt-shell="school"] .kt-schedule-board {
        grid-template-columns: 1fr !important;
    }
}

@media (max-width: 760px) {
    body[data-kt-shell="school"] .kt-schedule-panel-head {
        grid-template-columns: 38px minmax(0, 1fr) !important;
    }

    body[data-kt-shell="school"] .kt-schedule-panel-head .kt-panel-head-action {
        grid-column: 1 / -1 !important;
        width: 100% !important;
    }

    body[data-kt-shell="school"] .kt-schedule-week-strip {
        grid-template-columns: repeat(7, minmax(78px, 1fr)) !important;
    }

    body[data-kt-shell="school"] .kt-schedule-week-strip span {
        min-width: 78px !important;
        padding: 8px 9px !important;
    }

    body[data-kt-shell="school"] .kt-schedule-table th,
    body[data-kt-shell="school"] .kt-schedule-table td {
        padding: 0.72rem 0.78rem !important;
    }
}

/* APXUTE_PHASE143_SCHOOL_SCHEDULE_TIMETABLE_TABLES_V2
   Final visible timetable/attendance tables used by resources/views/portal/school/section.blade.php. */
body[data-kt-shell="school"] .kt-school-schedule-stats {
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
}

body[data-kt-shell="school"] .kt-school-schedule-board {
    display: grid !important;
    gap: 18px !important;
    margin-top: 18px !important;
}

body[data-kt-shell="school"] .kt-school-week-strip {
    display: grid !important;
    grid-template-columns: repeat(7, minmax(118px, 1fr)) !important;
    gap: 10px !important;
    overflow-x: auto !important;
    padding: 2px 2px 8px !important;
    scrollbar-width: thin !important;
    -webkit-overflow-scrolling: touch !important;
}

body[data-kt-shell="school"] .kt-school-week-strip article {
    position: relative !important;
    min-width: 118px !important;
    overflow: hidden !important;
    padding: 12px 12px 13px !important;
    border: 1px solid #d8e5f3 !important;
    border-radius: 20px !important;
    background: linear-gradient(180deg, #ffffff 0%, #f7fbff 100%) !important;
    box-shadow: 0 12px 30px rgba(15, 35, 64, 0.07) !important;
}

body[data-kt-shell="school"] .kt-school-week-strip article::before {
    content: "" !important;
    position: absolute !important;
    inset: auto 10px 8px 10px !important;
    height: 4px !important;
    border-radius: 999px !important;
    background: linear-gradient(90deg, #2563eb, #0f9f8f) !important;
}

body[data-kt-shell="school"] .kt-school-week-strip article:nth-child(2)::before { background: linear-gradient(90deg, #0f9f8f, #f59e0b) !important; }
body[data-kt-shell="school"] .kt-school-week-strip article:nth-child(3)::before { background: linear-gradient(90deg, #f59e0b, #ef4444) !important; }
body[data-kt-shell="school"] .kt-school-week-strip article:nth-child(4)::before { background: linear-gradient(90deg, #7c3aed, #2563eb) !important; }
body[data-kt-shell="school"] .kt-school-week-strip article:nth-child(5)::before { background: linear-gradient(90deg, #16a34a, #0f9f8f) !important; }
body[data-kt-shell="school"] .kt-school-week-strip article:nth-child(6)::before { background: linear-gradient(90deg, #db2777, #f97316) !important; }
body[data-kt-shell="school"] .kt-school-week-strip article:nth-child(7)::before { background: linear-gradient(90deg, #0891b2, #4338ca) !important; }

body[data-kt-shell="school"] .kt-school-week-strip article.is-today {
    border-color: #9fc4ff !important;
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.12), 0 16px 38px rgba(15, 35, 64, 0.1) !important;
}

body[data-kt-shell="school"] .kt-school-week-strip span,
body[data-kt-shell="school"] .kt-school-week-strip strong,
body[data-kt-shell="school"] .kt-school-week-strip small {
    display: block !important;
    min-width: 0 !important;
    line-height: 1.1 !important;
}

body[data-kt-shell="school"] .kt-school-week-strip span {
    color: #64748b !important;
    font-size: 0.72rem !important;
    font-weight: 950 !important;
    letter-spacing: 0.08em !important;
    text-transform: uppercase !important;
}

body[data-kt-shell="school"] .kt-school-week-strip strong {
    margin-top: 6px !important;
    color: #0f172a !important;
    font-size: 1.55rem !important;
    font-weight: 950 !important;
}

body[data-kt-shell="school"] .kt-school-week-strip small {
    margin-top: 4px !important;
    overflow: hidden !important;
    color: #52637b !important;
    font-size: 0.74rem !important;
    font-weight: 800 !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
}

body[data-kt-shell="school"] .kt-school-data-panel {
    overflow: hidden !important;
    border-radius: 24px !important;
}

body[data-kt-shell="school"] .kt-school-table-head {
    display: grid !important;
    grid-template-columns: 48px minmax(0, 1fr) auto !important;
    align-items: center !important;
    gap: 12px !important;
    margin-bottom: 14px !important;
}

body[data-kt-shell="school"] .kt-school-table-head h3 {
    margin: 2px 0 0 !important;
    font-size: clamp(1.05rem, 1.5vw, 1.32rem) !important;
    line-height: 1.1 !important;
}

body[data-kt-shell="school"] .kt-school-table-head .kt-panel-head-action {
    min-height: 40px !important;
    padding: 0.62rem 0.9rem !important;
    border-radius: 14px !important;
    white-space: nowrap !important;
}

body[data-kt-shell="school"] .kt-attendance-summary-pills {
    display: flex !important;
    flex-wrap: wrap !important;
    justify-content: flex-end !important;
    gap: 7px !important;
}

body[data-kt-shell="school"] .kt-school-data-table-wrap {
    width: 100% !important;
    overflow-x: auto !important;
    border: 1px solid #d8e5f3 !important;
    border-radius: 20px !important;
    background: #ffffff !important;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.85), 0 10px 28px rgba(15, 35, 64, 0.06) !important;
    -webkit-overflow-scrolling: touch !important;
}

body[data-kt-shell="school"] .kt-school-data-table-wrap:focus {
    outline: 3px solid rgba(37, 99, 235, 0.16) !important;
    outline-offset: 3px !important;
}

body[data-kt-shell="school"] .kt-school-data-table {
    width: 100% !important;
    min-width: 880px !important;
    border-collapse: separate !important;
    border-spacing: 0 !important;
    background: #ffffff !important;
}

body[data-kt-shell="school"] .kt-school-attendance-table {
    min-width: 760px !important;
}

body[data-kt-shell="school"] .kt-school-data-table caption {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
}

body[data-kt-shell="school"] .kt-school-data-table th {
    padding: 0.9rem 1rem !important;
    border-bottom: 1px solid #d9e5f2 !important;
    background: linear-gradient(180deg, #f8fbff 0%, #eef5ff 100%) !important;
    color: #475569 !important;
    font-size: 0.7rem !important;
    font-weight: 950 !important;
    letter-spacing: 0.08em !important;
    line-height: 1.1 !important;
    text-align: left !important;
    text-transform: uppercase !important;
}

body[data-kt-shell="school"] .kt-school-data-table td {
    padding: 1rem !important;
    border-bottom: 1px solid #edf2f8 !important;
    color: #0f172a !important;
    font-size: 0.88rem !important;
    font-weight: 760 !important;
    line-height: 1.38 !important;
    vertical-align: middle !important;
}

body[data-kt-shell="school"] .kt-school-data-table tbody tr:last-child td {
    border-bottom: 0 !important;
}

body[data-kt-shell="school"] .kt-school-data-table tbody tr:hover td {
    background: #fbfdff !important;
}

body[data-kt-shell="school"] .kt-school-data-table td:first-child {
    border-left: 5px solid transparent !important;
}

body[data-kt-shell="school"] .kt-school-data-table tr.is-tone-1 td:first-child { border-left-color: #2563eb !important; }
body[data-kt-shell="school"] .kt-school-data-table tr.is-tone-2 td:first-child { border-left-color: #0f9f8f !important; }
body[data-kt-shell="school"] .kt-school-data-table tr.is-tone-3 td:first-child { border-left-color: #f59e0b !important; }
body[data-kt-shell="school"] .kt-school-data-table tr.is-tone-4 td:first-child { border-left-color: #7c3aed !important; }
body[data-kt-shell="school"] .kt-school-data-table tr.is-tone-5 td:first-child { border-left-color: #ef4444 !important; }

body[data-kt-shell="school"] .kt-school-data-table td strong,
body[data-kt-shell="school"] .kt-school-data-table td span:not(.kt-day-pill):not(.kt-att-status) {
    display: block !important;
    overflow-wrap: anywhere !important;
}

body[data-kt-shell="school"] .kt-school-data-table td strong {
    font-size: 0.92rem !important;
    font-weight: 950 !important;
}

body[data-kt-shell="school"] .kt-school-data-table td span:not(.kt-day-pill):not(.kt-att-status) {
    margin-top: 4px !important;
    color: #64748b !important;
    font-size: 0.76rem !important;
    font-weight: 800 !important;
}

body[data-kt-shell="school"] .kt-day-pill,
body[data-kt-shell="school"] .kt-att-status {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    min-height: 30px !important;
    max-width: 100% !important;
    padding: 0.42rem 0.7rem !important;
    border-radius: 999px !important;
    font-size: 0.74rem !important;
    font-weight: 950 !important;
    line-height: 1.1 !important;
    white-space: nowrap !important;
}

body[data-kt-shell="school"] .kt-day-pill {
    border: 1px solid #bfdbfe !important;
    background: #eff6ff !important;
    color: #1d4ed8 !important;
}

body[data-kt-shell="school"] .kt-att-status {
    border: 1px solid #d7e2ef !important;
    background: #f8fafc !important;
    color: #475569 !important;
}

body[data-kt-shell="school"] .kt-att-status.is-present {
    border-color: #bbf7d0 !important;
    background: #ecfdf3 !important;
    color: #15803d !important;
}

body[data-kt-shell="school"] .kt-att-status.is-late,
body[data-kt-shell="school"] .kt-att-status.is-pending {
    border-color: #fed7aa !important;
    background: #fff7ed !important;
    color: #c2410c !important;
}

body[data-kt-shell="school"] .kt-att-status.is-absent {
    border-color: #fecdd3 !important;
    background: #fff1f2 !important;
    color: #be123c !important;
}

body[data-kt-shell="school"] .kt-att-status.is-excused {
    border-color: #ddd6fe !important;
    background: #f5f3ff !important;
    color: #6d28d9 !important;
}

body[data-kt-shell="school"] .kt-school-data-table .kt-pro-empty {
    margin: 5px !important;
    border-radius: 16px !important;
    box-shadow: none !important;
}

@media (max-width: 1180px) {
    body[data-kt-shell="school"] .kt-school-schedule-stats {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }
}

@media (max-width: 760px) {
    body[data-kt-shell="school"] .kt-school-schedule-stats {
        grid-template-columns: 1fr !important;
    }

    body[data-kt-shell="school"] .kt-school-schedule-board {
        gap: 14px !important;
        margin-top: 14px !important;
    }

    body[data-kt-shell="school"] .kt-school-week-strip {
        grid-template-columns: repeat(7, minmax(92px, 1fr)) !important;
        gap: 8px !important;
    }

    body[data-kt-shell="school"] .kt-school-week-strip article {
        min-width: 92px !important;
        padding: 10px 10px 12px !important;
        border-radius: 16px !important;
    }

    body[data-kt-shell="school"] .kt-school-week-strip strong {
        font-size: 1.22rem !important;
    }

    body[data-kt-shell="school"] .kt-school-table-head {
        grid-template-columns: 42px minmax(0, 1fr) !important;
    }

    body[data-kt-shell="school"] .kt-school-table-head .kt-panel-head-action,
    body[data-kt-shell="school"] .kt-attendance-summary-pills {
        grid-column: 1 / -1 !important;
        justify-content: flex-start !important;
    }

    body[data-kt-shell="school"] .kt-school-data-table {
        min-width: 760px !important;
    }

    body[data-kt-shell="school"] .kt-school-attendance-table {
        min-width: 680px !important;
    }

    body[data-kt-shell="school"] .kt-school-data-table th,
    body[data-kt-shell="school"] .kt-school-data-table td {
        padding: 0.78rem 0.82rem !important;
    }
}
