/* _content/IQ.Blazor.StudentPortal/Components/AuthGuard.razor.rz.scp.css */
/* Covers main content only — sidebar and header stay visible during auth check */
.auth-guard-overlay[b-ybvo0v8ajl] {
    position: fixed;
    top: calc(var(--sp-header-height, 56px) + env(safe-area-inset-top, 0px));
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 150;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(244, 247, 250, 0.92);
    pointer-events: all;
}

@media (min-width: 768px) {
    .auth-guard-overlay[b-ybvo0v8ajl] {
        left: var(--sp-nav-width, 280px);
    }
}

/* Full-screen "wrong Microsoft account" notice — replaces the app while the
   Entra sign-in has no matching student record. */
.auth-guard-mismatch-overlay[b-ybvo0v8ajl] {
    position: fixed;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f8f9fa;
    padding: 1.5rem;
    z-index: 9999;
}

.auth-guard-mismatch-card[b-ybvo0v8ajl] {
    max-width: 32rem;
    min-width: 0;
    background: #fff;
    border: 1px solid #f5c2c7;
    border-radius: 8px;
    padding: 1.5rem;
    color: #842029;
    overflow-wrap: anywhere;
}

.auth-guard-mismatch-card h2[b-ybvo0v8ajl] {
    margin-top: 0;
    font-size: 1.25rem;
}

.auth-guard-mismatch-btn[b-ybvo0v8ajl] {
    display: inline-block;
    margin-top: 1rem;
    padding: 0.5rem 1rem;
    background: #0d6efd;
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}
/* _content/IQ.Blazor.StudentPortal/Components/StudentPortalLoading.razor.rz.scp.css */
.sp-loading[b-i8p0isusm8] {
    padding: 1.5rem 0;
}

.sp-loading-fullscreen[b-i8p0isusm8] {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: var(--sp-surface-alt, #f8f9fa);
    padding: 0;
}

.sp-loading-spinner[b-i8p0isusm8] {
    position: relative;
}

.sp-loading-ring[b-i8p0isusm8] {
    position: absolute;
    inset: 0;
    border: 4px solid rgba(4, 44, 84, 0.18);
    border-top-color: var(--sp-primary, #042c54);
    border-radius: 50%;
    animation: sp-loading-spin-b-i8p0isusm8 1s linear infinite;
}

.sp-loading-logo[b-i8p0isusm8],
.sp-loading-fallback[b-i8p0isusm8] {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    object-fit: contain;
}

.sp-loading-fallback[b-i8p0isusm8] {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--sp-primary, #042c54);
    letter-spacing: 0.04em;
}

.sp-loading-text[b-i8p0isusm8] {
    color: var(--sp-text-muted, #6c757d);
    text-align: center;
    font-size: 0.95rem;
}

@keyframes sp-loading-spin-b-i8p0isusm8 {
    to {
        transform: rotate(360deg);
    }
}
/* _content/IQ.Blazor.StudentPortal/Layouts/AuthLayout.razor.rz.scp.css */
.auth-layout[b-e7zkivoi4n] {
    min-height: 100dvh;
    min-height: 100vh;
    width: 100%;
    background: var(--sp-surface-alt, #f8f9fa);
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: center;
    padding: 2rem 1rem;
    box-sizing: border-box;
}

.auth-layout-logo[b-e7zkivoi4n] {
    margin-bottom: 1.25rem;
    text-align: center;
    flex-shrink: 0;
    align-self: center;
}

.auth-layout-logo img[b-e7zkivoi4n] {
    height: 72px;
    max-width: min(280px, 80vw);
    object-fit: contain;
}
/* _content/IQ.Blazor.StudentPortal/Pages/Activities.razor.rz.scp.css */
.activities-page[b-ewcjxesjst] {
    padding: 0;
}

.activities-page h1[b-ewcjxesjst] {
    margin: 0 0 1rem;
    padding: 0.85rem 1rem 0;
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--sp-primary, #042c54);
}

.activities-table-wrap[b-ewcjxesjst] {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.activities-loading[b-ewcjxesjst],
.activities-error[b-ewcjxesjst],
.activities-empty[b-ewcjxesjst] {
    padding: 0 1rem;
}

.activities-success[b-ewcjxesjst] {
    margin: 0 1rem 1rem;
    padding: 1rem;
    margin-bottom: 1rem;
    background: #d4edda;
    border: 1px solid #c3e6cb;
    border-radius: 4px;
    color: #155724;
}

.activities-table[b-ewcjxesjst] {
    width: 100%;
    border-collapse: collapse;
    margin: 0;
}

.activities-table th[b-ewcjxesjst],
.activities-table td[b-ewcjxesjst] {
    padding: 0.5rem 0.75rem;
    text-align: left;
    border-bottom: 1px solid #dee2e6;
}

.activities-table th[b-ewcjxesjst] {
    font-weight: 600;
    background: #f8f9fa;
}

.activities-table tbody tr:hover[b-ewcjxesjst] {
    background: #f8f9fa;
}

.activities-view-link[b-ewcjxesjst] {
    color: #0d6efd;
    text-decoration: none;
}

.activities-view-link:hover[b-ewcjxesjst] {
    text-decoration: underline;
}

.activities-detail[b-ewcjxesjst] {
    max-width: 600px;
}

.activities-detail-row[b-ewcjxesjst] {
    margin: 0.75rem 0;
}

.activities-label[b-ewcjxesjst] {
    font-weight: 600;
    display: block;
    margin-bottom: 0.25rem;
}

.activities-value[b-ewcjxesjst] {
    margin-left: 0.5rem;
}

.activities-sessions-wrap[b-ewcjxesjst] {
    margin-top: 0.5rem;
}

.activities-signup-btn[b-ewcjxesjst] {
    padding: 0.5rem 1rem;
    background: #0d6efd;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1rem;
}

.activities-signup-btn:hover:not(:disabled)[b-ewcjxesjst] {
    background: #0b5ed7;
}

.activities-signup-btn:disabled[b-ewcjxesjst] {
    opacity: 0.6;
    cursor: not-allowed;
}

.activities-enrolled[b-ewcjxesjst] {
    color: #0d6efd;
    font-style: italic;
}

.activities-disabled[b-ewcjxesjst] {
    color: #6c757d;
    font-style: italic;
}

.activities-back-link[b-ewcjxesjst] {
    color: #0d6efd;
    text-decoration: none;
}

.activities-back-link:hover[b-ewcjxesjst] {
    text-decoration: underline;
}
/* _content/IQ.Blazor.StudentPortal/Pages/Authentication.razor.rz.scp.css */
.auth-failed-overlay[b-nsmkr16jhi] {
    position: fixed;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f8f9fa;
    padding: 1.5rem;
    z-index: 9999;
}

.auth-failed-card[b-nsmkr16jhi] {
    max-width: 32rem;
    background: #fff;
    border: 1px solid #f5c2c7;
    border-radius: 8px;
    padding: 1.5rem;
    color: #842029;
}

.auth-failed-card h2[b-nsmkr16jhi] {
    margin-top: 0;
    font-size: 1.25rem;
}

.auth-failed-card .btn-primary[b-nsmkr16jhi] {
    display: inline-block;
    margin-top: 1rem;
    padding: 0.5rem 1rem;
    background: #0d6efd;
    color: #fff;
    text-decoration: none;
    border-radius: 4px;
}
/* _content/IQ.Blazor.StudentPortal/Pages/Documents.razor.rz.scp.css */
.documents-page[b-0mcytkm9y7] {
    max-width: 48rem;
}
/* _content/IQ.Blazor.StudentPortal/Pages/Form.razor.rz.scp.css */
.form-page[b-b6ac61vziw] {
    display: flex;
    flex-direction: column;
    min-height: 60vh;
}

.form-loading[b-b6ac61vziw],
.form-error[b-b6ac61vziw] {
    padding: 1rem;
}

.form-iframe[b-b6ac61vziw] {
    width: 100%;
    height: 80vh;
    min-height: 400px;
    border: none;
    flex: 1;
}
/* _content/IQ.Blazor.StudentPortal/Pages/Holidays.razor.rz.scp.css */
.holidays-request-btn[b-tiv4b58xi2] {
    margin-bottom: 1.5rem;
}

.holidays-form-card[b-tiv4b58xi2] {
    margin-bottom: 1.5rem;
}

.holidays-form-card .sp-section-title[b-tiv4b58xi2] {
    margin-top: 0;
}
/* _content/IQ.Blazor.StudentPortal/Pages/Login.razor.rz.scp.css */
.login-page[b-m8r8vkw1l5] {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    max-width: 420px;
    margin: 0 auto;
    padding: 0 0 1rem;
    box-sizing: border-box;
}

.login-card[b-m8r8vkw1l5] {
    width: 100%;
    padding: 2rem 2rem 2.25rem;
    background: var(--sp-surface, #fff);
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
    border: 1px solid var(--sp-border, #e9ecef);
    box-sizing: border-box;
}

.login-header[b-m8r8vkw1l5] {
    margin-bottom: 1.75rem;
    text-align: center;
}

.login-header h1[b-m8r8vkw1l5] {
    margin: 0 0 0.35rem;
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--sp-primary, #212529);
}

.login-subtitle[b-m8r8vkw1l5] {
    margin: 0;
    color: var(--sp-text-muted, #6c757d);
    font-size: 0.95rem;
    line-height: 1.5;
}

.login-subtitle strong[b-m8r8vkw1l5] {
    color: var(--sp-text, #212529);
    font-weight: 600;
    word-break: break-word;
}

.btn-auth-method[b-m8r8vkw1l5] {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.65rem;
    width: 100%;
    min-height: 48px;
    padding: 0.75rem 1.25rem;
    font-size: 0.95rem;
    font-weight: 500;
    border-radius: 8px;
    cursor: pointer;
    border: 1px solid transparent;
    box-sizing: border-box;
}

.btn-entra[b-m8r8vkw1l5] {
    background: #2f2f2f;
    color: #fff;
    border-color: #2f2f2f;
}

.btn-entra:hover[b-m8r8vkw1l5] {
    background: #1a1a1a;
    border-color: #1a1a1a;
}

.ms-icon[b-m8r8vkw1l5] {
    display: inline-block;
    width: 20px;
    height: 20px;
    background: linear-gradient(135deg, #f25022 0%, #f25022 25%, #7fba00 25%, #7fba00 50%, #00a4ef 50%, #00a4ef 75%, #ffb900 75%);
    flex-shrink: 0;
}

.auth-divider[b-m8r8vkw1l5] {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin: 1.5rem 0;
    color: var(--sp-text-muted, #6c757d);
    font-size: 0.85rem;
    text-transform: lowercase;
}

.auth-divider[b-m8r8vkw1l5]::before,
.auth-divider[b-m8r8vkw1l5]::after {
    content: "";
    flex: 1;
    height: 1px;
    background: var(--sp-border, #e9ecef);
}

.login-email-form[b-m8r8vkw1l5],
.login-otp-form[b-m8r8vkw1l5] {
    display: flex;
    flex-direction: column;
    width: 100%;
}

.form-group[b-m8r8vkw1l5] {
    width: 100%;
    margin-bottom: 1.25rem;
}

.form-label[b-m8r8vkw1l5] {
    display: block;
    margin-bottom: 0.5rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--sp-text, #212529);
}

/* InputText renders a child input — scoped CSS must use ::deep */
.form-group[b-m8r8vkw1l5]  input.form-control {
    display: block;
    width: 100%;
    min-height: 2.75rem;
    padding: 0.625rem 0.875rem;
    font-size: 1rem;
    line-height: 1.5;
    font-family: inherit;
    color: var(--sp-text, #212529);
    background-color: var(--sp-surface, #fff);
    background-clip: padding-box;
    border: 1px solid var(--sp-border, #ced4da);
    border-radius: 0.375rem;
    box-sizing: border-box;
    appearance: none;
    transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

.form-group[b-m8r8vkw1l5]  input.form-control:focus {
    outline: 0;
    border-color: var(--sp-primary, #042c54);
    box-shadow: 0 0 0 0.2rem rgba(4, 44, 84, 0.15);
}

.form-group[b-m8r8vkw1l5]  input.form-control::placeholder {
    color: var(--sp-text-muted, #6c757d);
    opacity: 1;
}

.form-group[b-m8r8vkw1l5]  input.form-control.otp-input {
    text-align: center;
    letter-spacing: 0.45em;
    font-size: 1.35rem;
    font-weight: 500;
    padding-left: 1.25rem;
}

.form-group[b-m8r8vkw1l5]  .validation-message {
    display: block;
    margin-top: 0.35rem;
    font-size: 0.8rem;
    color: #b91c1c;
}

.error-message[b-m8r8vkw1l5] {
    margin: -0.5rem 0 1rem;
    padding: 0.65rem 0.75rem;
    background: #fef2f2;
    color: #b91c1c;
    border: 1px solid #fecaca;
    border-radius: 8px;
    font-size: 0.875rem;
    line-height: 1.4;
}

.btn-primary[b-m8r8vkw1l5] {
    width: 100%;
    min-height: 48px;
    padding: 0.75rem 1rem;
    font-size: 1rem;
    font-weight: 500;
    border-radius: 8px;
    cursor: pointer;
    border: none;
    background: var(--sp-primary, #042c54);
    color: #fff;
}

.btn-primary:hover:not(:disabled)[b-m8r8vkw1l5] {
    filter: brightness(1.08);
}

.btn-primary:disabled[b-m8r8vkw1l5] {
    opacity: 0.65;
    cursor: not-allowed;
}

.btn-link-back[b-m8r8vkw1l5] {
    display: block;
    width: 100%;
    margin-top: 1rem;
    padding: 0.5rem;
    background: none;
    border: none;
    color: var(--sp-text-muted, #6c757d);
    font-size: 0.9rem;
    cursor: pointer;
    text-align: center;
}

.btn-link-back:hover:not(:disabled)[b-m8r8vkw1l5] {
    color: var(--sp-primary, #042c54);
    text-decoration: underline;
}

.btn-link-back:disabled[b-m8r8vkw1l5] {
    opacity: 0.6;
    cursor: not-allowed;
}
/* _content/IQ.Blazor.StudentPortal/Pages/PreArrival.razor.rz.scp.css */
.pre-arrival-item[b-kc3dxq6uyq] {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.pre-arrival-intro[b-kc3dxq6uyq], .pre-arrival-notes[b-kc3dxq6uyq] {
    white-space: pre-wrap;
    overflow-wrap: anywhere;
}

.pre-arrival-submitted[b-kc3dxq6uyq] {
    margin: .5rem 0;
}

.pre-arrival-action[b-kc3dxq6uyq] {
    flex-shrink: 0;
}

@media (max-width: 576px) {
    .pre-arrival-item[b-kc3dxq6uyq] {
        align-items: stretch;
        flex-direction: column;
    }
}
/* _content/IQ.Blazor.StudentPortal/Pages/TermEnrolmentPage.razor.rz.scp.css */
.term-enrolment-page[b-nuczs37cmz] {
    max-width: 64rem;
}

.te-period-picker[b-nuczs37cmz] {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.te-period-picker select[b-nuczs37cmz],
.te-substitution select[b-nuczs37cmz] {
    padding: 0.4rem 0.6rem;
    border: 1px solid var(--sp-border, #e2e8f0);
    border-radius: var(--sp-radius-sm, 8px);
    font: inherit;
}

.sp-alert[b-nuczs37cmz] {
    padding: 0.85rem 1rem;
    border-radius: var(--sp-radius-sm, 8px);
    font-size: 0.875rem;
    line-height: 1.45;
    margin-bottom: 1rem;
}

.sp-alert-info[b-nuczs37cmz] {
    background: rgba(13, 170, 234, 0.12);
    border: 1px solid rgba(13, 170, 234, 0.35);
    color: #0c4a6e;
}

.sp-alert-warn[b-nuczs37cmz] {
    background: #fffbeb;
    border: 1px solid #fcd34d;
    color: #92400e;
}

.sp-alert-success[b-nuczs37cmz] {
    background: #ecfdf5;
    border: 1px solid #6ee7b7;
    color: #065f46;
}

.te-offer[b-nuczs37cmz] {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
}

.te-highlight[b-nuczs37cmz] {
    margin-bottom: 1.25rem;
}

.sp-badge-open[b-nuczs37cmz] { background: #d1fae5; color: #065f46; }
.sp-badge-locked[b-nuczs37cmz] { background: #fee2e2; color: #991b1b; }
.sp-badge-core[b-nuczs37cmz] { background: #e0f2fe; color: #0369a1; }

.te-columns[b-nuczs37cmz] {
    display: grid;
    gap: 1rem;
}

@media (min-width: 900px) {
    .te-columns[b-nuczs37cmz] {
        grid-template-columns: minmax(0, 1fr) 18rem;
        align-items: start;
    }
}

.te-section[b-nuczs37cmz] {
    margin-bottom: 1rem;
}

.te-section-title[b-nuczs37cmz] {
    margin: 0 0 0.75rem;
    font-size: 1rem;
    font-weight: 600;
    color: var(--sp-primary, #042c54);
}

.te-unit[b-nuczs37cmz] {
    display: flex;
    gap: 0.75rem;
    padding: 0.75rem;
    border: 1px solid var(--sp-border, #e2e8f0);
    border-radius: var(--sp-radius-sm, 8px);
    margin-bottom: 0.5rem;
}

.te-unit input[type="checkbox"][b-nuczs37cmz] {
    margin-top: 0.2rem;
}

.te-unit.te-selected[b-nuczs37cmz] {
    border-color: var(--sp-accent, #0daaea);
    background: rgba(13, 170, 234, 0.05);
}

.te-unit.te-blocked[b-nuczs37cmz] {
    opacity: 0.75;
}

.te-unit-meta[b-nuczs37cmz] {
    flex: 1;
    min-width: 0;
}

.te-code[b-nuczs37cmz] {
    font-weight: 700;
    margin-right: 0.25rem;
}

.te-tags[b-nuczs37cmz] {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
    margin-top: 0.35rem;
}

.te-tag[b-nuczs37cmz] {
    font-size: 0.7rem;
    font-weight: 600;
    padding: 0.1rem 0.45rem;
    border-radius: 999px;
    background: #e2e8f0;
    color: #334155;
}

.te-tag-elective[b-nuczs37cmz] { background: #ede9fe; color: #5b21b6; }
.te-tag-full[b-nuczs37cmz] { background: #fee2e2; color: #991b1b; }

.te-reason[b-nuczs37cmz],
.te-clash[b-nuczs37cmz] {
    margin-top: 0.35rem;
    font-size: 0.8125rem;
    color: #991b1b;
}

.te-requisite[b-nuczs37cmz] {
    margin-top: 0.5rem;
    font-size: 0.8125rem;
}

.te-requisite-tree[b-nuczs37cmz],
.te-requisite-tree ul[b-nuczs37cmz] {
    list-style: none;
    margin: 0.25rem 0 0;
    padding-left: 1rem;
}

.te-req-met[b-nuczs37cmz] { color: #065f46; }
.te-req-unmet[b-nuczs37cmz] { color: #991b1b; }

.te-req-mark[b-nuczs37cmz] {
    display: inline-block;
    width: 1rem;
    font-weight: 700;
}

.te-fee[b-nuczs37cmz] {
    margin-top: 0.35rem;
    font-size: 0.8125rem;
}

.te-classes[b-nuczs37cmz] {
    border: none;
    padding: 0;
    margin: 0.6rem 0 0;
}

.te-classes legend[b-nuczs37cmz] {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    color: var(--sp-text-muted, #64748b);
    margin-bottom: 0.25rem;
}

.te-class[b-nuczs37cmz] {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
    padding: 0.3rem 0;
    font-size: 0.875rem;
}

.te-class-full[b-nuczs37cmz],
.te-class-clash[b-nuczs37cmz] {
    color: var(--sp-text-muted, #64748b);
}

.te-class .te-clash[b-nuczs37cmz] {
    margin-top: 0;
}

.te-waitlist[b-nuczs37cmz],
.te-terms[b-nuczs37cmz] {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 0.5rem;
    font-size: 0.875rem;
}

.te-problems[b-nuczs37cmz] {
    margin: 0 0 0.75rem;
    padding-left: 1.1rem;
    font-size: 0.875rem;
}

.te-problem-block[b-nuczs37cmz] { color: #991b1b; }
.te-problem-warn[b-nuczs37cmz] { color: #92400e; }

.te-actions[b-nuczs37cmz] {
    margin-top: 0.75rem;
}

.te-load-meter[b-nuczs37cmz] {
    height: 0.6rem;
    border-radius: 999px;
    background: #e2e8f0;
    overflow: hidden;
    margin: 0.5rem 0;
}

.te-load-fill[b-nuczs37cmz] {
    height: 100%;
    background: var(--sp-accent, #0daaea);
}

.te-load-fill.te-load-below[b-nuczs37cmz] { background: #f59e0b; }
.te-load-fill.te-load-above[b-nuczs37cmz] { background: #ef4444; }

.te-load-note[b-nuczs37cmz] {
    margin: 0.5rem 0 0;
    font-size: 0.8125rem;
    color: #b45309;
}

.te-tt[b-nuczs37cmz] {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.8125rem;
}

.te-tt th[b-nuczs37cmz],
.te-tt td[b-nuczs37cmz] {
    text-align: left;
    padding: 0.4rem 0.25rem;
    border-bottom: 1px solid var(--sp-border, #e2e8f0);
}
/* _content/IQ.Blazor.StudentPortal/Pages/Timetable.razor.rz.scp.css */
.timetable-page[b-qtxuymzeed] {
    max-width: 56rem;
}

.timetable-header[b-qtxuymzeed] {
    margin-bottom: 1.5rem;
}

.timetable-header-top[b-qtxuymzeed] {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.timetable-nav[b-qtxuymzeed] {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.timetable-nav-btn[b-qtxuymzeed] {
    padding: 0.5rem 1rem;
    background: var(--sp-primary, #042c54);
    color: var(--sp-primary-text, #fff);
    border-radius: 8px;
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 500;
    border: none;
    transition: opacity 0.15s ease;
}

.timetable-nav-btn:hover[b-qtxuymzeed] {
    opacity: 0.9;
}

.timetable-nav-btn.is-disabled[b-qtxuymzeed] {
    opacity: 0.5;
    pointer-events: none;
    cursor: default;
}

.timetable-content[b-qtxuymzeed] {
    min-height: 12rem;
}

.timetable-week-label[b-qtxuymzeed] {
    font-weight: 600;
    font-size: 0.9375rem;
    color: var(--sp-text, #1a2332);
    min-width: 130px;
    text-align: center;
}

.timetable-loading[b-qtxuymzeed],
.timetable-error[b-qtxuymzeed],
.timetable-empty[b-qtxuymzeed] {
    margin-top: 1rem;
}

.timetable-error[b-qtxuymzeed] {
    color: #dc3545;
}

.timetable-centre-message[b-qtxuymzeed] {
    white-space: pre-line;
    margin-bottom: 1rem;
}

.timetable-grid[b-qtxuymzeed] {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.timetable-days-row[b-qtxuymzeed] {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 0.5rem;
    margin-bottom: 0.5rem;
    font-weight: 600;
    font-size: 0.85rem;
}

.timetable-day-col[b-qtxuymzeed] {
    padding: 0.5rem;
    background: var(--sp-surface-alt, #f8f9fa);
    border-radius: 6px;
}

.timetable-schedule-row[b-qtxuymzeed] {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

.timetable-slot-col[b-qtxuymzeed] {
    min-height: 60px;
}

.timetable-slot[b-qtxuymzeed] {
    padding: 0.85rem;
    background: var(--sp-surface, #fff);
    border: 1px solid var(--sp-border, #e2e8f0);
    border-radius: 10px;
    box-shadow: 0 1px 3px rgba(4, 44, 84, 0.04);
    font-size: 0.9rem;
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.timetable-slot-header[b-qtxuymzeed] {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
}

.timetable-name[b-qtxuymzeed] {
    font-weight: 600;
    color: var(--sp-text, #1a2332);
    line-height: 1.3;
}

.timetable-time[b-qtxuymzeed] {
    font-weight: 500;
    font-size: 0.8125rem;
    color: var(--sp-primary, #042c54);
}

.timetable-room[b-qtxuymzeed],
.timetable-teacher[b-qtxuymzeed] {
    font-size: 0.8125rem;
    color: var(--sp-text-muted, #6c757d);
    line-height: 1.35;
}
/* _content/IQ.Blazor.StudentPortal/Shared/MainLayout.razor.rz.scp.css */
/* Layout-only variables. Theme tokens (--sp-primary, etc.) come from student-portal.css
   and injected client brand CSS on :root — do not redefine them here or scoped CSS wins
   over #student-portal-client-style. */
:host[b-juy043xzpj], .student-portal-layout[b-juy043xzpj] {
    --sp-header-height: 56px;
    --sp-nav-width: 280px;
    --sp-safe-top: env(safe-area-inset-top, 0px);
    --sp-safe-bottom: env(safe-area-inset-bottom, 0px);
    --sp-safe-left: env(safe-area-inset-left, 0px);
    --sp-safe-right: env(safe-area-inset-right, 0px);
}

.student-portal-layout[b-juy043xzpj] {
    display: flex;
    flex-direction: column;
    min-height: 100dvh;
    min-height: 100vh;
    background: var(--sp-surface-alt);
}

/* Header - fixed, respects safe area */
.layout-header[b-juy043xzpj] {
    position: sticky;
    top: 0;
    z-index: 210;
    display: flex;
    align-items: center;
    height: var(--sp-header-height);
    padding: 0 1rem;
    padding-top: var(--sp-safe-top);
    height: calc(var(--sp-header-height) + var(--sp-safe-top));
    background: var(--sp-primary);
    color: var(--sp-primary-text);
    box-shadow: var(--sp-header-shadow, 0 2px 8px rgba(0, 0, 0, 0.1));
}

.nav-toggle[b-juy043xzpj] {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    margin: 0 -0.5rem;
    background: transparent;
    border: none;
    color: inherit;
    cursor: pointer;
    border-radius: 8px;
    -webkit-tap-highlight-color: transparent;
}

.nav-toggle:hover[b-juy043xzpj] {
    background: rgba(255, 255, 255, 0.1);
}

.nav-toggle-icon[b-juy043xzpj] {
    position: relative;
    display: block;
    width: 22px;
    height: 2px;
    background: currentColor;
    transition: background 0.2s ease;
}

.nav-toggle-icon[b-juy043xzpj]::before,
.nav-toggle-icon[b-juy043xzpj]::after {
    content: "";
    position: absolute;
    left: 0;
    width: 22px;
    height: 2px;
    background: currentColor;
    transition: transform 0.2s ease;
}

.nav-toggle-icon[b-juy043xzpj]::before {
    top: -6px;
}

.nav-toggle-icon[b-juy043xzpj]::after {
    top: 6px;
}

.student-portal-layout.nav-open .nav-toggle-icon[b-juy043xzpj] {
    background: transparent;
}

.student-portal-layout.nav-open .nav-toggle-icon[b-juy043xzpj]::before {
    transform: translateY(6px) rotate(45deg);
}

.student-portal-layout.nav-open .nav-toggle-icon[b-juy043xzpj]::after {
    transform: translateY(-6px) rotate(-45deg);
}

.layout-brand[b-juy043xzpj] {
    flex: 1;
    margin-left: 0.5rem;
}

.brand-link[b-juy043xzpj] {
    color: inherit;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.125rem;
}

.brand-link-logo[b-juy043xzpj] {
    display: inline-flex;
    align-items: center;
}

.brand-logo[b-juy043xzpj] {
    height: 40px;
    max-width: 180px;
    object-fit: contain;
    display: block;
}

.header-actions[b-juy043xzpj] {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-left: auto;
}

.user-identifier[b-juy043xzpj] {
    max-width: 120px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 0.875rem;
    opacity: 0.9;
}

.logout-btn[b-juy043xzpj] {
    padding: 0.35rem 0.75rem;
    font-size: 0.875rem;
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: 6px;
    color: inherit;
    cursor: pointer;
}

.logout-btn:hover[b-juy043xzpj] {
    background: rgba(255, 255, 255, 0.3);
}

@media (max-width: 480px) {
    .user-identifier[b-juy043xzpj] {
        max-width: 80px;
    }
}

/* Side navigation - drawer style on mobile */
.layout-nav[b-juy043xzpj] {
    position: fixed;
    top: calc(var(--sp-header-height) + var(--sp-safe-top));
    left: 0;
    z-index: 200;
    width: var(--sp-nav-width);
    max-width: min(85vw, 20rem);
    height: calc(100dvh - var(--sp-header-height) - var(--sp-safe-top));
    height: calc(100vh - var(--sp-header-height) - var(--sp-safe-top));
    padding-top: 0;
    background: var(--sp-surface);
    box-shadow: 2px 0 12px rgba(0, 0, 0, 0.15);
    transform: translateX(-100%);
    transition: transform 0.25s ease-out, visibility 0.25s;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.layout-nav.open[b-juy043xzpj] {
    transform: translateX(0);
}

/* Overlay when nav open on mobile */
.layout-nav-overlay[b-juy043xzpj] {
    position: fixed;
    top: calc(var(--sp-header-height) + var(--sp-safe-top));
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 199;
    background: rgba(0, 0, 0, 0.45);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s, visibility 0.25s;
    -webkit-tap-highlight-color: transparent;
}

.layout-nav-overlay.open[b-juy043xzpj] {
    opacity: 1;
    visibility: visible;
}

@media (min-width: 768px) {
    .layout-nav-overlay[b-juy043xzpj] {
        display: none;
    }
}

.nav-drawer-header[b-juy043xzpj] {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-shrink: 0;
    padding: 0.75rem 0.75rem 0.75rem 1rem;
    border-bottom: 1px solid var(--sp-border);
    background: var(--sp-surface);
}

.nav-drawer-title[b-juy043xzpj] {
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--sp-text-muted);
    letter-spacing: 0.02em;
    text-transform: uppercase;
}

.nav-close[b-juy043xzpj] {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    margin: 0;
    padding: 0;
    border: none;
    border-radius: 8px;
    background: transparent;
    color: var(--sp-text);
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
}

.nav-close:hover[b-juy043xzpj] {
    background: var(--sp-surface-alt);
}

.nav-close-icon[b-juy043xzpj] {
    position: relative;
    display: block;
    width: 18px;
    height: 18px;
}

.nav-close-icon[b-juy043xzpj]::before,
.nav-close-icon[b-juy043xzpj]::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 18px;
    height: 2px;
    background: currentColor;
    border-radius: 1px;
}

.nav-close-icon[b-juy043xzpj]::before {
    transform: translate(-50%, -50%) rotate(45deg);
}

.nav-close-icon[b-juy043xzpj]::after {
    transform: translate(-50%, -50%) rotate(-45deg);
}

.nav-menu[b-juy043xzpj] {
    display: flex;
    flex-direction: column;
    flex: 1;
    overflow-y: auto;
    padding: 0.5rem 0;
}

.nav-footer[b-juy043xzpj] {
    flex-shrink: 0;
    padding: 0.75rem 1rem;
    padding-bottom: calc(0.75rem + var(--sp-safe-bottom));
    border-top: 1px solid var(--sp-border);
    background: var(--sp-surface);
}

.nav-logout[b-juy043xzpj] {
    display: flex;
    align-items: center;
    gap: 1rem;
    width: 100%;
    padding: 0.875rem 1.25rem;
    font-size: 1rem;
    color: var(--sp-nav-logout-color, #b02a37);
    background: transparent;
    border: 1px solid var(--sp-nav-logout-border, rgba(176, 42, 55, 0.25));
    border-radius: 8px;
    cursor: pointer;
    min-height: 48px;
    -webkit-tap-highlight-color: transparent;
}

.nav-logout:hover[b-juy043xzpj] {
    background: var(--sp-nav-logout-hover-bg, rgba(176, 42, 55, 0.06));
}

.nav-item[b-juy043xzpj] {
    display: flex;
    align-items: center;
    gap: 0.875rem;
    margin: 0 0.65rem;
    padding: 0.75rem 1rem;
    color: var(--sp-text);
    text-decoration: none;
    font-size: 0.9375rem;
    font-weight: 500;
    border-radius: var(--sp-radius-sm, 8px);
    min-height: 44px;
    -webkit-tap-highlight-color: transparent;
    transition: background 0.15s ease;
}

.nav-item:hover[b-juy043xzpj] {
    background: var(--sp-surface-alt);
}

.nav-item.active[b-juy043xzpj] {
    background: var(--sp-nav-active-bg, rgba(4, 44, 84, 0.08));
    color: var(--sp-primary);
    font-weight: 600;
}

.nav-icon[b-juy043xzpj] {
    font-size: 1.25rem;
    width: 1.5rem;
    text-align: center;
    flex-shrink: 0;
}

.nav-icon-img[b-juy043xzpj] {
    width: 1.5rem;
    height: 1.5rem;
    max-width: 1.5rem;
    max-height: 1.5rem;
    object-fit: contain;
    flex-shrink: 0;
}

.nav-icon-font[b-juy043xzpj] {
    font-size: 1.25rem;
    width: 1.5rem;
    text-align: center;
    flex-shrink: 0;
}

/* Main content area */
.layout-main[b-juy043xzpj] {
    flex: 1;
    padding: 0;
    padding-bottom: var(--sp-safe-bottom);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    background: var(--sp-surface-alt);
}

/* Tablet and up - nav visible, no overlay */
@media (min-width: 768px) {
    .student-portal-layout[b-juy043xzpj] {
        flex-direction: row;
    }

    .layout-header[b-juy043xzpj] {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
    }

    .layout-nav[b-juy043xzpj] {
        position: fixed;
        top: calc(var(--sp-header-height) + var(--sp-safe-top));
        left: 0;
        bottom: 0;
        width: var(--sp-nav-width);
        max-width: none;
        height: auto;
        padding-top: 0;
        transform: translateX(0);
        box-shadow: 1px 0 0 var(--sp-border);
    }

    .nav-drawer-header[b-juy043xzpj] {
        display: none;
    }

    .nav-menu[b-juy043xzpj] {
        padding: 1rem 0;
    }

    .layout-main[b-juy043xzpj] {
        margin-left: var(--sp-nav-width);
        margin-top: calc(var(--sp-header-height) + var(--sp-safe-top));
        padding: 2rem 2.5rem;
        padding-bottom: calc(2rem + var(--sp-safe-bottom));
    }
}

/* Hide nav toggle on desktop - nav is always visible */
@media (min-width: 768px) {
    .nav-toggle[b-juy043xzpj] {
        display: none;
    }

    .layout-brand[b-juy043xzpj] {
        margin-left: 1rem;
    }
}
