/*
 * Shared responsive safeguards for the School Master List interface.
 *
 * The existing blue/green brand palette and desktop sidebars deliberately stay
 * untouched. These rules only normalise sizing, overflow, alignment, and the
 * mobile presentation of legacy page shells.
 */

*,
*::before,
*::after {
    box-sizing: border-box;
}

html,
body {
    max-width: 100%;
    overflow-x: hidden;
}

img,
svg,
canvas,
video {
    max-width: 100%;
}

button,
input,
select,
textarea {
    font: inherit;
}

/*
 * Shared Director of SQAOM shell.
 *
 * National operation pages previously used different sidebar widths, heading
 * offsets, and navigation spacing. This single shell keeps the original brand
 * gradient while making movement between the pages visually stable.
 */
.sqaom-viewport {
    width: 100% !important;
    height: calc(100dvh - 4rem) !important;
    min-height: calc(100dvh - 4rem);
    padding-bottom: 0 !important;
    overflow: hidden !important;
}

.sqaom-shell,
.sqaom-sync-shell {
    display: grid !important;
    grid-template-columns: 19rem minmax(0, 1fr) !important;
    min-height: calc(100dvh - 4rem);
}

.sqaom-sidebar {
    display: flex;
    flex: 0 0 19rem;
    width: 19rem;
    min-width: 19rem;
    max-width: 19rem;
    height: calc(100dvh - 4rem) !important;
    min-height: calc(100dvh - 4rem);
    align-self: stretch;
    box-sizing: border-box;
    grid-column: 1 !important;
    overflow: hidden;
    background-image: linear-gradient(to right, #083772, #23B261);
    color: #fff;
}

.sqaom-sidebar-inner {
    width: 100%;
    min-height: 100%;
    padding: 0 !important;
}

.sqaom-sidebar-header {
    padding: 2.25rem 2rem 1.25rem;
}

.sqaom-sidebar-title {
    margin: 0;
    border-bottom: 1px solid rgba(255, 255, 255, .65);
    padding-bottom: 1rem;
    font-family: Georgia, 'Times New Roman', serif;
    font-size: 1.5rem;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -.015em;
    white-space: nowrap;
}

.sqaom-sidebar-section {
    padding: .4rem 1rem 1rem;
}

.sqaom-sidebar-kicker {
    margin: 0 0 .55rem;
    padding: 0 .75rem;
    color: #fde047;
    font-size: .68rem;
    font-weight: 800;
    line-height: 1.45;
    letter-spacing: .13em;
    text-transform: uppercase;
}

.sqaom-sidebar-nav {
    display: grid;
    gap: .2rem;
}

.sqaom-sidebar-nav a {
    display: flex;
    min-height: 44px;
    align-items: center;
    border-radius: .45rem;
    padding: .65rem .75rem;
    color: #fff;
    font-size: 1rem;
    font-weight: 500;
    line-height: 1.35;
    transition: background-color .15s ease, color .15s ease;
}

.sqaom-sidebar-nav a:hover,
.sqaom-sidebar-nav a:focus-visible {
    background: rgba(255, 255, 255, .1);
    color: #fff;
}

.sqaom-sidebar-nav a:focus-visible {
    outline: 2px solid #fde047;
    outline-offset: 2px;
}

.sqaom-sidebar-nav a.is-active {
    background: rgba(255, 255, 255, .11);
    color: #fde047;
    font-weight: 700;
}

.sqaom-sidebar-footer {
    margin: auto 0 0;
    padding: 1.5rem 2rem;
    color: #fff;
    font-size: .75rem;
}

.sqaom-main {
    width: auto !important;
    min-width: 0;
    height: calc(100dvh - 4rem) !important;
    grid-column: auto !important;
    overflow: auto !important;
    padding: 2rem !important;
}

.sqaom-shell > .sqaom-main,
.sqaom-sync-shell > .scto-main {
    grid-column: 2 !important;
    min-width: 0;
}

.sqaom-content {
    width: 100%;
    max-width: 1440px;
    margin: 0 auto !important;
}

.enterprise-main,
.enterprise-main > *,
.enterprise-main [wire\:id] {
    min-width: 0;
}

/*
 * Legacy role pages use the same eight-column markup but previously allowed
 * Tailwind's two-column span to grow with the viewport. This contract fixes
 * every existing gradient sidebar to the same desktop rail as the Director
 * pages without changing each role's links or permissions.
 */
.platform-sidebar-layout {
    display: grid !important;
    grid-template-columns: 19rem minmax(0, 1fr) !important;
    width: 100% !important;
    height: calc(100dvh - 4rem) !important;
    min-height: calc(100dvh - 4rem);
}

.platform-sidebar-layout > .col-span-2[style*="linear-gradient"] {
    grid-column: 1 !important;
    width: 19rem !important;
    min-width: 19rem !important;
    max-width: 19rem !important;
    height: calc(100dvh - 4rem) !important;
    min-height: calc(100dvh - 4rem) !important;
    box-sizing: border-box;
    overflow-x: hidden;
    overflow-y: auto;
}

.platform-sidebar-layout > .col-span-6 {
    grid-column: 2 !important;
    width: auto !important;
    min-width: 0 !important;
    height: calc(100dvh - 4rem) !important;
    overflow: auto !important;
}

.platform-sidebar-flex-layout {
    display: grid !important;
    grid-template-columns: 19rem minmax(0, 1fr) !important;
    width: 100%;
    min-height: calc(100dvh - 4rem);
}

.platform-sidebar-flex-layout > .w-1\/4[style*="linear-gradient"] {
    width: 19rem !important;
    min-width: 19rem !important;
    max-width: 19rem !important;
    min-height: calc(100dvh - 4rem);
    box-sizing: border-box;
}

.platform-sidebar-flex-layout > .w-2\/3 {
    width: auto !important;
    min-width: 0;
}

/* Shared school-operation review screens for Data Managers and DDs. */
.school-workflow-viewport {
    width: 100%;
    height: calc(100dvh - 4rem);
    min-height: calc(100dvh - 4rem);
    overflow: hidden;
}

.school-workflow-layout {
    padding: 0 !important;
}

.school-operations-sidebar {
    grid-column: 1 !important;
    width: 19rem !important;
    min-width: 19rem !important;
    max-width: 19rem !important;
    height: calc(100dvh - 4rem) !important;
    overflow: hidden;
    background-image: linear-gradient(to right, #083772, #23B261);
    color: #fff;
}

.school-operations-sidebar__inner {
    display: flex;
    min-height: 100%;
    flex-direction: column;
    justify-content: space-between;
}

.school-operations-sidebar__header {
    padding: 2.25rem 2rem 1.25rem;
}

.school-operations-sidebar__header p {
    margin: 0;
    border-bottom: 1px solid rgba(255, 255, 255, .65);
    padding-bottom: 1rem;
    font-family: Georgia, 'Times New Roman', serif;
    font-size: 1.5rem;
    font-weight: 700;
    line-height: 1.2;
}

.school-operations-sidebar__header span {
    display: block;
    margin-top: .8rem;
    color: #fde047;
    font-size: .68rem;
    font-weight: 800;
    letter-spacing: .13em;
    text-transform: uppercase;
}

.school-operations-sidebar__nav {
    display: grid;
    gap: .2rem;
    padding: .25rem 1rem 1rem;
}

.school-operations-sidebar__nav a {
    display: flex;
    min-height: 44px;
    align-items: center;
    border-radius: .45rem;
    padding: .65rem .75rem;
    color: #fff;
    font-size: 1rem;
    font-weight: 500;
    line-height: 1.35;
    transition: background-color .15s ease, color .15s ease;
}

.school-operations-sidebar__nav a:hover,
.school-operations-sidebar__nav a:focus-visible {
    background: rgba(255, 255, 255, .1);
    color: #fff;
}

.school-operations-sidebar__nav a:focus-visible {
    outline: 2px solid #fde047;
    outline-offset: 2px;
}

.school-operations-sidebar__nav a.is-active {
    background: rgba(255, 255, 255, .11);
    color: #fde047;
    font-weight: 700;
}

.school-operations-sidebar__footer {
    margin: auto 0 0;
    padding: 1.5rem 2rem;
    font-size: .75rem;
}

.platform-sidebar-layout > .school-workflow-main {
    grid-column: 2 !important;
    width: auto !important;
    min-width: 0 !important;
    height: calc(100dvh - 4rem) !important;
    overflow: auto !important;
    padding: 2rem clamp(1.25rem, 3vw, 3rem) 3rem !important;
    background: #f4f7fb;
}

.school-workflow-container {
    width: 100%;
    max-width: 1100px;
    margin: 0 auto;
}

.school-workflow-container.is-wide {
    max-width: 1320px;
}

.school-workflow-back {
    display: inline-flex;
    min-height: 40px;
    align-items: center;
    margin-bottom: 1rem;
    color: #17447d;
    font-size: .9rem;
    font-weight: 700;
}

.school-workflow-back:hover,
.school-workflow-back:focus-visible {
    text-decoration: underline;
}

.school-workflow-heading {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.school-workflow-eyebrow,
.school-workflow-location-kicker {
    margin: 0 0 .35rem;
    color: #177553;
    font-size: .72rem;
    font-weight: 800;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.school-workflow-heading h1 {
    margin: 0;
    color: #102a56;
    font-size: clamp(1.65rem, 3vw, 2.25rem);
    font-weight: 750;
    line-height: 1.18;
    letter-spacing: -.025em;
}

.school-workflow-heading p:last-child {
    max-width: 720px;
    margin: .55rem 0 0;
    color: #5f6b7a;
    line-height: 1.55;
}

.school-workflow-badge {
    display: inline-flex;
    min-height: 34px;
    flex: 0 0 auto;
    align-items: center;
    border: 1px solid #b8d2f2;
    border-radius: 999px;
    padding: .35rem .8rem;
    background: #eaf3ff;
    color: #17447d;
    font-size: .78rem;
    font-weight: 800;
}

.school-workflow-alert {
    margin-bottom: 1rem;
    border: 1px solid;
    border-radius: .65rem;
    padding: .85rem 1rem;
    font-size: .9rem;
    font-weight: 650;
}

.school-workflow-alert.is-error {
    border-color: #fecaca;
    background: #fef2f2;
    color: #991b1b;
}

.school-workflow-alert.is-success {
    border-color: #bbf7d0;
    background: #f0fdf4;
    color: #166534;
}

.school-workflow-card {
    overflow: hidden;
    border: 1px solid #dce4ee;
    border-radius: .9rem;
    background: #fff;
    box-shadow: 0 10px 28px rgba(15, 42, 86, .07);
}

.school-workflow-section {
    padding: 1.5rem;
}

.school-workflow-section + .school-workflow-section {
    border-top: 1px solid #e4e9f0;
}

.school-workflow-section__heading {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1.2rem;
}

.school-workflow-section__heading h2 {
    margin: 0;
    color: #172a47;
    font-size: 1.08rem;
    font-weight: 800;
}

.school-workflow-section__heading p {
    margin: .3rem 0 0;
    color: #6b7280;
    font-size: .86rem;
    line-height: 1.45;
}

.school-workflow-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
}

.school-workflow-grid.is-two-columns {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.school-workflow-group.is-full {
    grid-column: 1 / -1;
}

.school-workflow-group label,
.school-workflow-label,
.school-workflow-comparison__item > span,
.school-workflow-comparison__item > label,
.school-workflow-school-banner span {
    display: block;
    margin-bottom: .42rem;
    color: #526071;
    font-size: .72rem;
    font-weight: 800;
    letter-spacing: .055em;
    text-transform: uppercase;
}

.school-workflow-field,
.school-workflow-readonly {
    display: block;
    width: 100%;
    min-height: 46px;
    border: 1px solid #c9d4e1;
    border-radius: .55rem;
    padding: .72rem .85rem;
    background: #fff;
    color: #1f2937;
    line-height: 1.35;
}

.school-workflow-field:focus {
    border-color: #17447d;
    outline: 3px solid rgba(23, 68, 125, .14);
    outline-offset: 0;
}

.school-workflow-field.is-readonly,
.school-workflow-readonly {
    border-color: #e0e6ed;
    background: #f3f5f8;
    color: #465467;
}

.school-workflow-comparison {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 48px minmax(0, 1fr);
    align-items: center;
    gap: 1rem;
}

.school-workflow-comparison__item {
    min-height: 96px;
    border: 1px solid #dce4ee;
    border-radius: .75rem;
    padding: 1rem;
    background: #f7f9fc;
}

.school-workflow-comparison__item.is-proposed {
    border-color: #afd8c7;
    background: #f1faf6;
}

.school-workflow-comparison__item strong {
    color: #172a47;
    font-size: 1.05rem;
}

.school-workflow-comparison__arrow,
.school-workflow-move-arrow {
    display: grid;
    width: 40px;
    height: 40px;
    place-items: center;
    border-radius: 999px;
    background: #17447d;
    color: #fff;
    font-size: 1.25rem;
    font-weight: 800;
}

.school-workflow-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-end;
    gap: .75rem;
    margin-top: 1.25rem;
    border: 1px solid #dce4ee;
    border-radius: .75rem;
    padding: .9rem;
    background: #fff;
    box-shadow: 0 8px 28px rgba(15, 42, 86, .12);
}

.school-workflow-actions form {
    margin: 0;
}

.school-workflow-button {
    display: inline-flex;
    min-height: 44px;
    align-items: center;
    justify-content: center;
    border: 1px solid transparent;
    border-radius: .55rem;
    padding: .65rem 1rem;
    font-size: .86rem;
    font-weight: 800;
    line-height: 1.2;
    white-space: nowrap;
    transition: background-color .15s ease, border-color .15s ease, transform .15s ease;
}

.school-workflow-button:hover {
    transform: translateY(-1px);
}

.school-workflow-button.is-primary {
    background: #17447d;
    color: #fff;
}

.school-workflow-button.is-primary:hover {
    background: #0f3565;
}

.school-workflow-button.is-secondary {
    border-color: #cbd5e1;
    background: #fff;
    color: #334155;
}

.school-workflow-button.is-danger {
    border-color: #fecaca;
    background: #fff7f7;
    color: #b42318;
}

.school-workflow-school-banner {
    display: grid;
    grid-template-columns: .7fr 2fr 1fr;
    gap: 1rem;
    margin-bottom: 1.25rem;
    padding: 1.2rem 1.5rem;
}

.school-workflow-school-banner strong {
    display: block;
    color: #172a47;
    line-height: 1.4;
}

.school-workflow-location-comparison {
    display: grid;
    grid-template-columns: minmax(0, .82fr) 48px minmax(0, 1.18fr);
    align-items: center;
    gap: 1rem;
}

.school-workflow-location-card {
    align-self: stretch;
    padding: 1.5rem;
}

.school-workflow-location-card.is-proposed {
    border-color: #afd8c7;
}

.school-workflow-detail-list {
    margin: 0;
}

.school-workflow-detail-list > div {
    display: grid;
    grid-template-columns: minmax(90px, .7fr) minmax(0, 1.3fr);
    gap: 1rem;
    border-top: 1px solid #e7ecf2;
    padding: .75rem 0;
}

.school-workflow-detail-list dt {
    color: #64748b;
    font-size: .76rem;
    font-weight: 800;
    text-transform: uppercase;
}

.school-workflow-detail-list dd {
    margin: 0;
    color: #24364f;
    font-weight: 650;
}

@media (min-width: 1280px) {
    .xl\:flex {
        display: flex !important;
    }

    .xl\:hidden {
        display: none !important;
    }
}

@media (max-width: 1279px) {
    button.xl\:hidden {
        display: inline-flex !important;
    }
}

.enterprise-main .w-screen {
    width: 100% !important;
    max-width: 100% !important;
}

.enterprise-main table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
}

.enterprise-main th,
.enterprise-main td {
    vertical-align: middle;
}

.enterprise-main th {
    white-space: nowrap;
}

.enterprise-main section.mx-20,
.enterprise-main div.mx-20 {
    width: calc(100% - 3rem);
    max-width: 1440px;
    margin-right: auto !important;
    margin-left: auto !important;
}

.platform-public-form,
.platform-user-guides {
    min-height: 100dvh;
}

.platform-api-docs main {
    width: 100%;
    min-width: 0;
    padding: 1.5rem;
}

.platform-api-docs main > div {
    width: 100%;
    max-width: 1440px;
    overflow-x: auto;
}

.platform-api-docs table,
.platform-api-page table {
    min-width: 800px;
}

@media (max-width: 1279px) {
    .enterprise-main section.mx-20,
    .enterprise-main div.mx-20 {
        width: calc(100% - 2rem);
    }

    .enterprise-main .flex.justify-between.items-center {
        align-items: flex-start;
        gap: 1rem;
    }

    .enterprise-main .flex.justify-between.items-center > .flex {
        flex-wrap: wrap;
    }
}

@media (max-width: 1023px) {
    .sqaom-viewport {
        height: auto !important;
        min-height: calc(100dvh - 4rem);
        overflow: visible !important;
    }

    .sqaom-shell,
    .sqaom-sync-shell {
        display: block !important;
        min-height: 0;
    }

    .sqaom-sidebar {
        flex-basis: auto;
        width: 100%;
        min-width: 0;
        max-width: none;
        min-height: 0;
        height: auto !important;
    }

    .sqaom-sidebar--desktop-only {
        display: none !important;
    }

    .sqaom-sidebar-inner > div {
        display: flex;
        width: 100%;
        align-items: center;
        gap: .5rem;
        overflow-x: auto;
        padding: .7rem 1rem;
        scrollbar-width: thin;
    }

    .sqaom-sidebar-header,
    .sqaom-sidebar-section {
        flex: 0 0 auto;
        padding: 0;
    }

    .sqaom-sidebar-title {
        border-right: 1px solid rgba(255, 255, 255, .55);
        border-bottom: 0;
        padding: .5rem 1rem .5rem 0;
        font-size: 1.1rem;
    }

    .sqaom-sidebar-kicker,
    .sqaom-sidebar-footer {
        display: none;
    }

    .sqaom-sidebar-nav {
        display: flex;
        gap: .25rem;
    }

    .sqaom-sidebar-nav a {
        min-height: 40px;
        padding: .55rem .7rem;
        font-size: .82rem;
        white-space: nowrap;
    }

    .sqaom-main {
        width: 100% !important;
        height: auto !important;
        min-height: 0 !important;
        overflow: visible !important;
        padding: 1.25rem !important;
    }

    .enterprise-main .relative.w-screen.h-screen.overflow-hidden,
    .enterprise-main .relative.w-screen.min-h-screen.overflow-hidden,
    .enterprise-main .relative.w-screen.overflow-hidden {
        height: auto !important;
        min-height: calc(100dvh - 4rem);
        overflow: visible !important;
        padding-bottom: 0 !important;
    }

    .enterprise-main .grid.grid-cols-8 {
        display: block !important;
        min-height: 0 !important;
    }

    .enterprise-main .grid.grid-cols-8 > .col-span-2[style*="linear-gradient"] {
        position: relative;
        width: 100%;
        height: auto !important;
        min-height: 0 !important;
        padding-top: 0 !important;
    }

    .enterprise-main .grid.grid-cols-8 > .col-span-2[style*="linear-gradient"] > .py-4 {
        display: block !important;
        height: auto !important;
        padding: .75rem 1rem !important;
    }

    .enterprise-main .grid.grid-cols-8 > .col-span-2[style*="linear-gradient"] > .py-4 > .w-full {
        display: flex;
        width: 100%;
        align-items: center;
        gap: 1rem;
        overflow-x: auto;
        padding-bottom: .25rem;
        scrollbar-width: thin;
    }

    .enterprise-main .grid.grid-cols-8 > .col-span-2[style*="linear-gradient"] > .py-4 > .w-full > p:first-child {
        flex: 0 0 auto;
        border-right: 1px solid rgba(255, 255, 255, .55);
        border-bottom: 0 !important;
        padding: .4rem 1rem .4rem 0 !important;
        font-size: 1.25rem !important;
        line-height: 1.2;
        white-space: nowrap;
    }

    .enterprise-main .grid.grid-cols-8 > .col-span-2[style*="linear-gradient"] > .py-4 > .w-full > div {
        display: flex !important;
        flex: 0 0 auto;
        flex-direction: row !important;
        align-items: center;
        gap: 1rem;
        width: auto !important;
        min-width: max-content;
        margin: 0 !important;
        padding: .4rem 0 !important;
        font-size: .875rem !important;
    }

    .enterprise-main .grid.grid-cols-8 > .col-span-2[style*="linear-gradient"] > .py-4 > .w-full > div p {
        margin: 0 !important;
        white-space: nowrap;
    }

    .enterprise-main .grid.grid-cols-8 > .col-span-2[style*="linear-gradient"] > .py-4 > .w-full > div p[class*="uppercase"] {
        display: none;
    }

    .enterprise-main .grid.grid-cols-8 > .col-span-2[style*="linear-gradient"] > .py-4 > p:last-child {
        display: none;
    }

    .enterprise-main .grid.grid-cols-8 > .col-span-6,
    .enterprise-main .grid.grid-cols-8 > [class*="col-span-6"] {
        width: 100%;
        height: auto !important;
        min-height: 0 !important;
        overflow: visible !important;
        padding: 1.25rem !important;
    }

    .enterprise-main [class*="mt-[5.7rem]"] {
        margin-top: 0 !important;
    }

    .enterprise-main .grid-cols-6 {
        grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    }

    .enterprise-main .overflow-scroll {
        overflow: visible !important;
    }

    .enterprise-main .h-screen {
        height: auto !important;
        min-height: calc(100dvh - 4rem);
    }

    .platform-public-form > .h-screen,
    .platform-user-guides .h-screen {
        height: auto !important;
        min-height: 100dvh;
        padding: 6.5rem 1rem 2rem;
    }

    .platform-public-form > .h-screen > div,
    .platform-user-guides .h-screen > div {
        width: min(100%, 800px) !important;
        height: auto !important;
        max-height: none !important;
        padding: 1.5rem !important;
        overflow: visible !important;
        border-radius: .75rem;
    }

    .platform-api-docs nav > .container {
        gap: .75rem;
    }

    .platform-api-docs main,
    .platform-api-page main {
        display: block !important;
        overflow-x: auto;
        padding: 1rem !important;
    }

    .platform-sidebar-layout {
        display: block !important;
        height: auto !important;
        min-height: 0;
    }

    .platform-sidebar-layout > .col-span-2[style*="linear-gradient"] {
        width: 100% !important;
        min-width: 0 !important;
        max-width: none !important;
        height: auto !important;
        min-height: 0 !important;
    }

    .platform-sidebar-layout > .col-span-6 {
        width: 100% !important;
        height: auto !important;
        min-height: 0 !important;
    }

    .school-workflow-viewport {
        height: auto;
        min-height: calc(100dvh - 4rem);
        overflow: visible;
    }

    .school-operations-sidebar {
        width: 100% !important;
        min-width: 0 !important;
        max-width: none !important;
        height: auto !important;
        min-height: 0 !important;
    }

    .school-operations-sidebar__inner > div {
        display: flex;
        align-items: center;
        gap: .5rem;
        overflow-x: auto;
        padding: .7rem 1rem;
        scrollbar-width: thin;
    }

    .school-operations-sidebar__header {
        flex: 0 0 auto;
        padding: 0;
    }

    .school-operations-sidebar__header p {
        border-right: 1px solid rgba(255, 255, 255, .55);
        border-bottom: 0;
        padding: .5rem 1rem .5rem 0;
        font-size: 1.1rem;
        white-space: nowrap;
    }

    .school-operations-sidebar__header span,
    .school-operations-sidebar__footer {
        display: none;
    }

    .school-operations-sidebar__nav {
        display: flex;
        flex: 0 0 auto;
        gap: .25rem;
        padding: 0;
    }

    .school-operations-sidebar__nav a {
        min-height: 40px;
        padding: .55rem .7rem;
        font-size: .82rem;
        white-space: nowrap;
    }

    .platform-sidebar-layout > .school-workflow-main {
        width: 100% !important;
        height: auto !important;
        min-height: 0 !important;
        overflow: visible !important;
        padding: 1.25rem !important;
    }

    .school-workflow-location-comparison {
        grid-template-columns: minmax(0, 1fr);
    }

    .school-workflow-move-arrow {
        transform: rotate(90deg);
        justify-self: center;
    }

    .platform-sidebar-flex-layout {
        display: block !important;
        min-height: 0;
    }

    .platform-sidebar-flex-layout > .w-1\/4[style*="linear-gradient"],
    .platform-sidebar-flex-layout > .w-2\/3 {
        width: 100% !important;
        min-width: 0 !important;
        max-width: none !important;
    }
}

@media (max-width: 767px) {
    .enterprise-main section.mx-20,
    .enterprise-main div.mx-20 {
        width: calc(100% - 1.5rem);
        margin-top: 1rem !important;
    }

    .enterprise-main .flex.justify-between,
    .enterprise-main .flex.items-center.justify-between,
    .enterprise-main .flex.items-center.justify-around {
        flex-wrap: wrap;
        gap: .75rem;
    }

    .school-workflow-heading {
        flex-direction: column;
        gap: .75rem;
    }

    .school-workflow-grid,
    .school-workflow-grid.is-two-columns,
    .school-workflow-school-banner {
        grid-template-columns: minmax(0, 1fr);
    }

    .school-workflow-comparison {
        grid-template-columns: minmax(0, 1fr);
    }

    .school-workflow-comparison__arrow {
        transform: rotate(90deg);
        justify-self: center;
    }

    .school-workflow-section,
    .school-workflow-location-card {
        padding: 1rem;
    }

    .school-workflow-actions {
        position: static;
        align-items: stretch;
        flex-direction: column;
    }

    .school-workflow-actions form,
    .school-workflow-button {
        width: 100%;
    }

    .enterprise-main form.flex,
    .enterprise-main form[class*="grid-cols-2"] {
        width: 100%;
    }

    .enterprise-main form.flex.items-center {
        align-items: stretch;
        flex-direction: column;
    }

    .enterprise-main form.flex.items-center > div,
    .enterprise-main form.flex.items-center input,
    .enterprise-main form.flex.items-center select,
    .enterprise-main form.flex.items-center button {
        width: 100% !important;
        margin-right: 0 !important;
    }

    .enterprise-main .grid.grid-cols-2,
    .enterprise-main .grid.grid-cols-3,
    .enterprise-main .grid.grid-cols-4,
    .enterprise-main .grid.grid-cols-6,
    .enterprise-main .grid.grid-cols-12 {
        grid-template-columns: minmax(0, 1fr) !important;
    }

    .enterprise-main .grid > [class*="col-span-"] {
        grid-column: 1 / -1 !important;
    }

    .enterprise-main .h-72,
    .enterprise-main .h-64,
    .enterprise-main .h-52,
    .enterprise-main .h-48,
    .enterprise-main .h-40,
    .enterprise-main .h-20,
    .enterprise-main .h-100 {
        height: auto !important;
        min-height: 0 !important;
    }

    .enterprise-main .h-72 > .h-1\/2 {
        height: auto !important;
    }

    .enterprise-main .w-1\/4,
    .enterprise-main .w-2\/3,
    .enterprise-main .w-4\/6,
    .enterprise-main .w-3\/4 {
        width: 100% !important;
    }

    .enterprise-main section.mx-20 > .flex {
        align-items: stretch !important;
        flex-direction: column !important;
    }

    .enterprise-main section.mx-20 > .flex > .flex {
        width: 100%;
        align-items: stretch;
        flex-direction: column;
    }

    .enterprise-main section.mx-20 > .flex button,
    .enterprise-main section.mx-20 > .flex input,
    .enterprise-main section.mx-20 > .flex select {
        width: 100% !important;
        min-height: 44px;
    }

    .enterprise-main table {
        display: block;
        max-width: 100%;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .enterprise-main table:has(tr > *:nth-child(5)) {
        min-width: 760px;
    }

    .enterprise-main th,
    .enterprise-main td {
        padding: .7rem .75rem !important;
    }

    .enterprise-main .py-6.px-8,
    .enterprise-main .p-10,
    .enterprise-main .p-8,
    .enterprise-main .p-6 {
        padding: 1rem !important;
    }

    .platform-public-form > .absolute,
    .platform-user-guides > .absolute {
        padding-right: 1rem !important;
        padding-left: 1rem !important;
    }

    .platform-public-form form > div[style*="grid-template-columns"] {
        display: grid !important;
        grid-template-columns: minmax(0, 1fr) !important;
        gap: .25rem !important;
    }

    .platform-user-guides .h-screen > div > div:last-child > div {
        align-items: stretch !important;
        flex-direction: column;
        gap: .75rem;
    }

    .platform-user-guides .h-screen > div > div:last-child a,
    .platform-user-guides .h-screen > div > div:last-child button {
        width: 100%;
    }

    .platform-api-docs nav .flex.md\:order-2 {
        width: 100%;
        flex-wrap: wrap;
        gap: .5rem;
    }

    .platform-api-docs nav .flex.md\:order-2 a {
        flex: 1 1 12rem;
        margin-right: 0 !important;
    }

    .platform-api-docs caption,
    .platform-api-page caption {
        position: sticky;
        left: 0;
        display: block;
        width: calc(100vw - 2rem);
        max-width: calc(100vw - 2rem);
        padding: .35rem .5rem;
        text-align: left;
        white-space: normal;
    }

    .platform-api-docs caption h1,
    .platform-api-docs caption h2,
    .platform-api-page caption h1,
    .platform-api-page caption h2 {
        overflow-wrap: anywhere;
        white-space: normal;
    }

    .platform-api-docs caption code,
    .platform-api-page caption code {
        overflow-wrap: anywhere;
        word-break: break-word;
        white-space: normal !important;
    }
}

@media (max-width: 479px) {
    .enterprise-main .grid.grid-cols-8 > .col-span-6,
    .enterprise-main .grid.grid-cols-8 > [class*="col-span-6"] {
        padding: .85rem !important;
    }

    .enterprise-main h1,
    .enterprise-main .text-4xl {
        font-size: 1.65rem !important;
        line-height: 1.2 !important;
    }

    .enterprise-main h2,
    .enterprise-main .text-3xl {
        font-size: 1.35rem !important;
        line-height: 1.25 !important;
    }
}
