:root {
    --erp-sidebar: #0f172a;
    --erp-sidebar-end: #111827;
    --erp-sidebar-muted: #94a3b8;
    --erp-primary: #0f766e;
    --erp-primary-strong: #115e59;
    --erp-primary-soft: #dff7f5;
    --erp-accent: #f59e0b;
    --erp-surface: #ffffff;
    --erp-surface-soft: rgba(255, 255, 255, 0.72);
    --erp-card: rgba(255, 255, 255, 0.9);
    --erp-border: rgba(148, 163, 184, 0.25);
    --erp-border-width: 1px;
    --erp-shadow: 0 24px 60px rgba(15, 23, 42, 0.1);
    --erp-shadow-soft: 0 14px 35px rgba(15, 23, 42, 0.07);
    --erp-heading: #0f172a;
    --erp-text: #0f172a;
    --erp-text-soft: #64748b;
    --erp-page-bg-start: #f8fbff;
    --erp-page-bg-mid: #f2f6fb;
    --erp-page-bg-end: #eef4f7;
    --erp-school-header: #ffffff;
    --erp-id-card-header-start: #0f766e;
    --erp-id-card-header-end: #0f172a;
    --erp-id-card-footer: #475569;
    --erp-page-gap: 0.95rem;
    --erp-card-radius: 1rem;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    min-height: 100vh;
    color: var(--erp-text);
    font-family: "Trebuchet MS", "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
    background:
        radial-gradient(circle at top left, rgba(245, 158, 11, 0.18), transparent 26%),
        radial-gradient(circle at top right, rgba(15, 118, 110, 0.16), transparent 24%),
        linear-gradient(180deg, var(--erp-page-bg-start) 0%, var(--erp-page-bg-mid) 52%, var(--erp-page-bg-end) 100%);
}

h1, h2, h3, h4, h5, h6 {
    color: var(--erp-heading);
}

.login-shell {
    min-height: 100vh;
}

.login-highlight {
    background:
        radial-gradient(circle at top right, rgba(245, 158, 11, 0.28), transparent 24%),
        linear-gradient(145deg, rgba(15, 118, 110, 0.98), rgba(15, 23, 42, 0.98));
    color: #fff;
}

.login-highlight .badge {
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.login-logo {
    display: flex;
    justify-content: center;
}

.login-logo__image {
    width: min(168px, 42vw);
    height: auto;
    display: block;
    filter: drop-shadow(0 18px 32px rgba(15, 23, 42, 0.16));
}

.mobile-topbar {
    background:
        radial-gradient(circle at top right, rgba(15, 118, 110, 0.24), transparent 32%),
        rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(16px);
    box-shadow: 0 15px 45px rgba(15, 23, 42, 0.2);
    z-index: 1030;
}

.mobile-topbar .px-3 {
    padding-left: 0.85rem !important;
    padding-right: 0.85rem !important;
}

.mobile-topbar .py-3 {
    padding-top: 0.75rem !important;
    padding-bottom: 0.75rem !important;
}

.mobile-topbar__title {
    min-width: 0;
}

.mobile-topbar__title .fw-semibold {
    line-height: 1.2;
}

.mobile-menu-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.8rem;
    min-width: 2.8rem;
    height: 2.8rem;
    border-radius: 999px;
    padding: 0;
}

.mobile-menu-button__bars {
    display: inline-flex;
    flex-direction: column;
    justify-content: center;
    gap: 0.24rem;
}

.mobile-menu-button__bars span {
    display: block;
    width: 1rem;
    height: 2px;
    border-radius: 999px;
    background: currentColor;
}

.app-shell {
    min-height: 100vh;
}

.sidebar {
    background:
        radial-gradient(circle at top right, rgba(15, 118, 110, 0.22), transparent 28%),
        linear-gradient(180deg, var(--erp-sidebar) 0%, var(--erp-sidebar-end) 100%);
    min-height: 100vh;
    border-right: 1px solid rgba(255, 255, 255, 0.06);
}

.sidebar-frame {
    position: sticky;
    top: 0.75rem;
    min-height: calc(100vh - 1.5rem);
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.sidebar-user {
    padding: 0.75rem 0.85rem;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 0.85rem;
    background: rgba(255, 255, 255, 0.04);
}

.sidebar-nav {
    flex: 1 1 auto;
}

.sidebar .nav-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: var(--erp-sidebar-muted);
    border-radius: 0.8rem;
    padding: 0.72rem 0.85rem;
    transition: all 0.18s ease;
    font-size: 0.95rem;
}

.sidebar .nav-link.active,
.sidebar .nav-link:hover {
    color: #fff;
    background: linear-gradient(135deg, rgba(15, 118, 110, 0.45), rgba(255, 255, 255, 0.08));
    transform: translateX(2px);
}

.brand-pill {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 0.95rem;
}

.brand-pill .h4,
.mobile-topbar__title .fw-semibold:first-child,
.student-id-card__school {
    color: var(--erp-school-header);
}

.sidebar-panel {
    margin-top: 0.75rem;
    padding: 0.85rem;
    border-radius: 0.9rem;
    background: rgba(255, 255, 255, 0.055);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

.sidebar-panel__title {
    color: #e2e8f0;
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 0.55rem;
}

.sidebar-panel__hint {
    color: var(--erp-sidebar-muted);
    font-size: 0.88rem;
}

.form-select-sidebar {
    min-height: 46px;
    background-color: rgba(255, 255, 255, 0.92);
    border-color: rgba(148, 163, 184, 0.22);
    border-radius: 0.9rem;
}

.btn-sidebar-primary,
.btn-sidebar-secondary {
    min-height: 44px;
    border-radius: 0.95rem;
    font-weight: 600;
}

.btn-sidebar-primary {
    background: linear-gradient(135deg, var(--erp-primary), var(--erp-primary-strong));
    color: #fff;
    border: 0;
}

.btn-sidebar-primary:hover {
    color: #fff;
    filter: brightness(1.03);
}

.btn-sidebar-secondary {
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.14);
}

.btn-sidebar-secondary:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.12);
}

.content-area {
    padding: var(--erp-page-gap);
    max-width: 100%;
}

.page-header {
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.9), rgba(248, 250, 252, 0.84)),
        rgba(255, 255, 255, 0.76);
    backdrop-filter: blur(14px);
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: 1rem;
    box-shadow: 0 16px 42px rgba(15, 23, 42, 0.08);
}

.header-actions {
    flex-wrap: wrap;
}

.header-chip {
    min-width: 150px;
    padding: 0.68rem 0.82rem;
    border-radius: 0.8rem;
    border: 1px solid rgba(148, 163, 184, 0.18);
    background: var(--erp-surface-soft);
    box-shadow: var(--erp-shadow-soft);
}

.header-chip strong {
    display: block;
    color: var(--erp-text);
    font-size: 0.97rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.header-chip__label {
    display: block;
    margin-bottom: 0.18rem;
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--erp-text-soft);
}

.erp-card {
    background: var(--erp-card);
    border: var(--erp-border-width) solid var(--erp-border);
    border-radius: var(--erp-card-radius);
    box-shadow: var(--erp-shadow);
    backdrop-filter: blur(8px);
}

.stat-card {
    overflow: hidden;
    position: relative;
}

.stat-card::before {
    content: "";
    position: absolute;
    inset: -30px auto auto -20px;
    width: 86px;
    height: 86px;
    background: rgba(15, 118, 110, 0.07);
    border-radius: 999px;
}

.stat-card::after {
    content: "";
    position: absolute;
    inset: auto -30px -30px auto;
    width: 110px;
    height: 110px;
    background: rgba(245, 158, 11, 0.09);
    border-radius: 999px;
}

.table-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    margin-bottom: 0.8rem;
    flex-wrap: wrap;
}

.table-search {
    max-width: 360px;
}

.mobile-table-list {
    display: none;
}

.mobile-table-item {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.78rem 0.85rem;
    border: var(--erp-border-width) solid var(--erp-border);
    border-radius: 0.85rem;
    background: rgba(255, 255, 255, 0.95);
    box-shadow: var(--erp-shadow-soft);
    text-align: left;
    color: var(--erp-text);
}

.mobile-table-item + .mobile-table-item {
    margin-top: 0.55rem;
}

.mobile-table-item__text {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.mobile-table-item__title {
    font-weight: 700;
    color: var(--erp-text);
    line-height: 1.35;
}

.mobile-table-item__subtitle {
    color: var(--erp-text-soft);
    font-size: 0.86rem;
    line-height: 1.35;
}

.mobile-table-item__meta {
    flex: 0 0 auto;
    color: var(--erp-primary-strong);
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.mobile-detail-row {
    padding: 0.68rem 0;
    border-bottom: 1px solid rgba(148, 163, 184, 0.18);
}

.mobile-detail-row:first-child {
    padding-top: 0;
}

.mobile-detail-row:last-child {
    border-bottom: 0;
    padding-bottom: 0;
}

.mobile-detail-row__label {
    color: var(--erp-text-soft);
    font-size: 0.76rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 0.28rem;
}

.mobile-detail-row__value {
    color: var(--erp-text);
    line-height: 1.45;
}

.mobile-detail-row__value .btn {
    margin-right: 0.45rem;
    margin-bottom: 0.45rem;
}

.erp-table {
    --bs-table-bg: transparent;
    margin-bottom: 0;
}

.erp-table thead th {
    color: #475569;
    font-weight: 700;
    white-space: nowrap;
    vertical-align: middle;
    border-bottom-width: 1px;
}

.erp-table tbody tr {
    transition: background 0.18s ease, transform 0.18s ease;
}

.erp-table tbody tr:hover {
    background: rgba(248, 250, 252, 0.85);
}

.sort-button {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    background: transparent;
    border: 0;
    padding: 0;
    color: inherit;
    font-weight: inherit;
}

.sort-indicator {
    font-size: 0.68rem;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.sort-button.active .sort-indicator {
    color: var(--erp-primary);
}

.data-empty {
    border: var(--erp-border-width) dashed var(--erp-border);
    border-radius: 0.85rem;
}

.quick-link {
    display: block;
    padding: 0.85rem;
    border-radius: 0.9rem;
    text-decoration: none;
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.95), rgba(248, 250, 252, 0.92));
    border: var(--erp-border-width) solid var(--erp-border);
    color: #0f172a;
    box-shadow: 0 10px 28px rgba(15, 23, 42, 0.05);
    transition: transform 0.18s ease, border-color 0.18s ease;
}

.quick-link:hover {
    border-color: rgba(15, 118, 110, 0.4);
    transform: translateY(-2px);
}

.alert {
    border-radius: 0.85rem;
    border: 1px solid transparent;
    box-shadow: var(--erp-shadow-soft);
    margin-bottom: 0.8rem;
}

.toast-stack {
    z-index: 1085;
}

.notification-toast {
    min-width: min(92vw, 360px);
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.16);
    border-radius: 0.95rem;
}

.notification-toast .toast-body {
    font-weight: 600;
}

.form-control,
.form-select,
.btn,
.modal-content,
.offcanvas {
    border-radius: 0.78rem;
}

.btn {
    font-weight: 600;
}

.modal-content {
    border: 1px solid rgba(255, 255, 255, 0.75);
    border-radius: 0.95rem;
    box-shadow: 0 28px 60px rgba(15, 23, 42, 0.16);
}

.badge-soft {
    background: var(--erp-primary-soft);
    color: var(--erp-primary-strong);
}

.filter-shell {
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.92), rgba(248, 250, 252, 0.88));
    border: var(--erp-border-width) solid var(--erp-border);
    border-radius: 0.9rem;
}

.bulk-table .form-select,
.bulk-table .form-control {
    min-width: 110px;
}

.table-meta {
    color: var(--erp-text-soft);
    font-size: 0.92rem;
}

.notification-card {
    border: var(--erp-border-width) solid var(--erp-border);
    border-radius: 0.85rem;
    background: rgba(255, 255, 255, 0.74);
}

.pending-fee-row {
    background: rgba(239, 68, 68, 0.08);
}

.pending-fee-row:hover {
    background: rgba(239, 68, 68, 0.12) !important;
}

.leave-action-form {
    min-width: 220px;
}

.homework-card,
.tc-notice-card,
.leave-history-card {
    border: var(--erp-border-width) solid var(--erp-border);
    border-radius: 1rem;
    background: rgba(255, 255, 255, 0.78);
}

.homework-preview {
    width: 100%;
    max-height: 320px;
    object-fit: contain;
    border-radius: 1rem;
    background: rgba(226, 232, 240, 0.58);
    border: var(--erp-border-width) solid var(--erp-border);
}

.homework-date-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
}

.homework-date-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 0.55rem 0.9rem;
    border-radius: 999px;
    border: 1px solid rgba(15, 118, 110, 0.18);
    color: var(--erp-primary-strong);
    text-decoration: none;
    background: rgba(255, 255, 255, 0.85);
    font-weight: 700;
}

.homework-date-pill.active,
.homework-date-pill:hover {
    background: linear-gradient(135deg, var(--erp-primary), var(--erp-primary-strong));
    color: #fff;
    border-color: transparent;
}

.tc-notice-card {
    background: linear-gradient(145deg, rgba(255, 245, 245, 0.96), rgba(255, 255, 255, 0.92));
}

.id-card-thumb {
    width: 50px;
    height: 75px;
    object-fit: cover;
    border-radius: 0.9rem;
    background: #e2e8f0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.68rem;
    text-align: center;
    padding: 0.3rem;
}

.id-card-thumb-placeholder {
    color: #64748b;
}

.id-card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 0.8rem;
}

.student-id-card-dynamic {
    width: min(100%, calc(var(--id-card-width) * 1px));
    aspect-ratio: var(--id-card-width) / var(--id-card-height);
    position: relative;
    overflow: hidden;
    border-radius: 1rem;
    border: var(--erp-border-width) solid rgba(15, 23, 42, 0.14);
    background-color: #ffffff;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    box-shadow: 0 16px 34px rgba(15, 23, 42, 0.12);
}

.student-id-card-dynamic__surface {
    position: absolute;
    inset: 0;
    padding-left: 16px;
    padding-right: 16px;
}

.student-id-card-dynamic__standing {
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    padding-top: calc(var(--id-card-top-margin) * 1px);
    padding-bottom: calc(var(--id-card-bottom-margin) * 1px);
}

.student-id-card-dynamic__sleeping {
    height: 100%;
    display: flex;
    gap: 16px;
    align-items: flex-start;
    padding-top: calc(var(--id-card-top-margin) * 1px);
    padding-bottom: calc(var(--id-card-bottom-margin) * 1px);
}

.student-id-card--photo-right .student-id-card-dynamic__sleeping {
    flex-direction: row;
}

.student-id-card--photo-left .student-id-card-dynamic__sleeping {
    flex-direction: row-reverse;
}

.student-id-card-dynamic__photo-column {
    flex: 0 0 auto;
}

.student-id-card-dynamic__photo-frame {
    width: calc(var(--id-card-photo-width) * 1px);
    height: calc(var(--id-card-photo-height) * 1px);
    max-width: 100%;
    overflow: hidden;
    border-radius: calc(var(--id-card-photo-radius) * 1px);
    background: rgba(255, 255, 255, 0.68);
    box-shadow: 0 8px 18px rgba(15, 23, 42, 0.14);
}

.student-id-card-dynamic__photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.student-id-card-dynamic__photo--empty {
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(226, 232, 240, 0.85);
    color: #475569;
    font-size: 0.8rem;
}

.student-id-card-dynamic__details {
    width: 100%;
    display: grid;
    gap: 4px;
    align-content: start;
    min-width: 0;
}

.student-id-card-dynamic__details--sleeping {
    flex: 1 1 auto;
    padding-top: 4px;
}

.student-id-card-dynamic__detail-row {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    align-items: baseline;
    min-width: 0;
    color: var(--id-card-detail-color, #0f172a);
    font-size: var(--id-card-detail-size, 15px);
    font-weight: var(--id-card-detail-weight, 700);
    line-height: 1.3;
}

.student-id-card-dynamic__detail-cell {
    display: grid;
    grid-template-columns: minmax(84px, auto) minmax(0, 1fr);
    gap: 8px;
    align-items: baseline;
}

.student-id-card-dynamic__detail-cell--half {
    grid-template-columns: minmax(64px, auto) minmax(0, 1fr);
}

.student-id-card--sleeping .student-id-card-dynamic__detail-row--double {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.student-id-card--standing .student-id-card-dynamic__detail-row--double {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.student-id-card-dynamic__detail-label {
    font-size: inherit;
    font-weight: inherit;
    letter-spacing: 0.01em;
    color: inherit;
    white-space: nowrap;
    text-shadow: 0 1px 2px rgba(255, 255, 255, 0.75);
}

.student-id-card-dynamic__detail-value {
    display: inline;
    font-size: inherit;
    font-weight: inherit;
    color: inherit;
    min-width: 0;
    word-break: break-word;
    text-shadow: 0 1px 2px rgba(255, 255, 255, 0.8);
}

.student-id-card {
    width: 100%;
    position: relative;
    overflow: hidden;
    border-radius: 1rem;
    border: var(--erp-border-width) solid rgba(15, 23, 42, 0.14);
    background: #ffffff;
    box-shadow: 0 16px 34px rgba(15, 23, 42, 0.12);
    color: #0f172a;
}

.student-id-card--template_one,
.student-id-card--template_two,
.student-id-card--template_three {
    max-width: 420px;
    min-height: 670px;
}

.student-id-card--template_four,
.student-id-card--template_five,
.student-id-card--template_six {
    max-width: 720px;
    min-height: 430px;
}

.student-id-card img {
    display: block;
}

.student-id-card__photo--empty,
.student-id-card__stack-photo--empty,
.student-id-card__blue-photo--empty,
.student-id-card__dark-photo--empty,
.student-id-card__landscape-photo--empty,
.student-id-card__purple-photo--empty {
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: #e2e8f0;
    color: #64748b;
    font-size: 0.78rem;
}

.student-id-card__principal-sign {
    width: 120px;
    max-width: 100%;
    height: 42px;
    object-fit: contain;
}

.student-id-card__principal-sign--text {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: #0f172a;
}

.student-id-card__barcode-text {
    font-size: 0.95rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    font-weight: 800;
    color: #b91c1c;
}

.student-id-card__signature-block,
.student-id-card__signature-mini {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.student-id-card__signature-label,
.student-id-card__signature-mini small {
    font-size: 0.7rem;
    color: #0f172a;
    font-weight: 700;
}

.student-id-card__seal,
.student-id-card__blue-logo,
.student-id-card__dark-logo,
.student-id-card__landscape-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.student-id-card__seal img,
.student-id-card__blue-logo img,
.student-id-card__dark-logo img,
.student-id-card__landscape-logo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.student-id-card--template_one {
    padding-top: 0.6rem;
}

.student-id-card__ribbon {
    position: absolute;
    top: 0;
    right: 0;
    background: #c80f0f;
    color: #ffffff;
    text-transform: uppercase;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    padding: 0.45rem 1rem 0.45rem 1.2rem;
    border-bottom-left-radius: 1rem;
}

.student-id-card__stack-head {
    padding: 0.9rem 0.9rem 0.3rem;
    text-align: center;
}

.student-id-card__stack-title {
    font-size: 1.05rem;
    line-height: 1.05;
    font-weight: 900;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #1d2fb3;
}

.student-id-card__stack-copy {
    color: #2f6e12;
    font-size: 0.78rem;
    font-weight: 800;
    text-transform: uppercase;
    margin-top: 0.2rem;
}

.student-id-card__stack-main {
    display: grid;
    grid-template-columns: 1fr 0.82fr;
    gap: 0.85rem;
    align-items: center;
    padding: 0.5rem 0.85rem 0.2rem;
}

.student-id-card__stack-photo-frame {
    border: 3px solid #111827;
    border-radius: 0.25rem;
    background: #be1111;
    padding: 0.2rem;
}

.student-id-card__stack-photo {
    width: 100%;
    aspect-ratio: 2 / 3;
    object-fit: cover;
    background: #be1111;
}

.student-id-card__stack-brand {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.55rem;
    text-align: center;
}

.student-id-card__seal {
    width: 92px;
    height: 92px;
    border-radius: 50%;
    border: 3px solid #e2e8f0;
    background: #ffffff;
    box-shadow: 0 10px 18px rgba(15, 23, 42, 0.12);
}

.student-id-card__stack-name {
    color: #991b1b;
    font-size: 0.95rem;
    font-weight: 900;
    text-transform: uppercase;
}

.student-id-card__stack-meta {
    display: grid;
    gap: 0.35rem;
    padding: 0.45rem 0.85rem 0.35rem;
}

.student-id-card__stack-meta div {
    display: grid;
    grid-template-columns: 86px 1fr;
    gap: 0.35rem;
    align-items: baseline;
}

.student-id-card__stack-meta span {
    font-weight: 900;
    text-transform: uppercase;
    color: #111827;
}

.student-id-card__stack-meta strong {
    color: #1d4ed8;
    font-size: 0.98rem;
    word-break: break-word;
}

.student-id-card__stack-footer {
    display: flex;
    justify-content: space-between;
    align-items: end;
    gap: 0.75rem;
    padding: 0.35rem 0.85rem 0.85rem;
}

.student-id-card__code-tag {
    background: #1d2fb3;
    color: #f97316;
    border-top-left-radius: 0.9rem;
    padding: 0.65rem 0.9rem 0.45rem;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.student-id-card--template_two {
    background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
    text-align: center;
    padding-bottom: 0.9rem;
}

.student-id-card__blue-hero {
    position: relative;
    padding: 1rem 1rem 4.6rem;
    background: linear-gradient(180deg, #0a20ad 0%, #2016a9 100%);
    color: #ffffff;
    overflow: hidden;
}

.student-id-card__blue-hero::after,
.student-id-card__blue-hero::before {
    content: "";
    position: absolute;
    bottom: -1px;
    width: 56%;
    height: 70px;
    background: linear-gradient(135deg, #0ea5e9, #1d4ed8);
}

.student-id-card__blue-hero::before {
    left: -8%;
    transform: skewY(18deg);
}

.student-id-card__blue-hero::after {
    right: -8%;
    transform: skewY(-18deg);
}

.student-id-card__blue-school {
    font-size: 1.2rem;
    font-weight: 900;
}

.student-id-card__blue-subtitle {
    font-size: 0.78rem;
    font-weight: 700;
    margin-top: 0.15rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.student-id-card__blue-photo-ring {
    position: relative;
    width: 190px;
    height: 190px;
    margin: -56px auto 0;
    border-radius: 50%;
    background: #ffffff;
    padding: 11px;
    box-shadow: 0 16px 28px rgba(15, 23, 42, 0.18);
}

.student-id-card__blue-photo {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
}

.student-id-card__blue-name {
    margin-top: 0.8rem;
    padding: 0 1rem;
    font-size: 0.95rem;
    font-weight: 900;
    color: #111827;
}

.student-id-card__blue-list {
    display: grid;
    gap: 0.48rem;
    padding: 0.9rem 1.1rem 0.35rem;
    text-align: left;
}

.student-id-card__blue-list div {
    display: grid;
    grid-template-columns: 70px 1fr;
    gap: 0.5rem;
}

.student-id-card__blue-list span {
    color: #475569;
    font-size: 0.72rem;
    text-transform: uppercase;
    font-weight: 800;
}

.student-id-card__blue-list strong {
    color: #111827;
}

.student-id-card__blue-footer {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    justify-content: center;
    padding: 0.7rem 1rem 0;
}

.student-id-card__blue-logo {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: #ffffff;
    border: 1px solid rgba(15, 23, 42, 0.1);
}

.student-id-card__blue-contact {
    color: #1e293b;
    font-weight: 700;
    font-size: 0.76rem;
}

.student-id-card--template_three {
    background: #ffffff;
}

.student-id-card__dark-head {
    background: #050505;
    padding: 0.8rem 0.8rem 4.7rem;
    text-align: center;
    color: #ffffff;
    position: relative;
}

.student-id-card__dark-logo {
    width: 74px;
    height: 74px;
    border-radius: 50%;
    margin: 0 auto 0.5rem;
    background: #ffffff;
    box-shadow: 0 10px 18px rgba(255, 255, 255, 0.12);
}

.student-id-card__dark-title {
    color: #fde047;
    font-size: 1.02rem;
    line-height: 1.06;
    font-weight: 900;
    text-transform: uppercase;
}

.student-id-card__dark-copy {
    color: #f8fafc;
    font-size: 0.76rem;
    text-transform: uppercase;
    font-weight: 700;
    margin-top: 0.25rem;
}

.student-id-card__dark-curve {
    position: absolute;
    left: -5%;
    right: -5%;
    top: 175px;
    height: 120px;
    background: #ffffff;
    border-top: 5px solid #c41d12;
    border-radius: 50% 50% 0 0 / 100% 100% 0 0;
}

.student-id-card__dark-photo-wrap {
    position: relative;
    width: 175px;
    height: 175px;
    border-radius: 50%;
    border: 5px solid #c41d12;
    margin: -88px auto 0;
    background: #ffffff;
    overflow: hidden;
    z-index: 1;
}

.student-id-card__dark-photo {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
}

.student-id-card__dark-body {
    position: relative;
    z-index: 1;
    padding: 0.7rem 0.9rem 0.45rem;
}

.student-id-card__dark-name {
    text-align: center;
    color: #991b1b;
    font-size: 0.98rem;
    font-weight: 900;
    text-transform: uppercase;
    margin-bottom: 0.7rem;
}

.student-id-card__dark-meta {
    display: grid;
    gap: 0.42rem;
}

.student-id-card__dark-meta div {
    display: grid;
    grid-template-columns: 84px 1fr;
    gap: 0.45rem;
}

.student-id-card__dark-meta span {
    color: #111827;
    font-size: 0.72rem;
    font-weight: 900;
    text-transform: uppercase;
}

.student-id-card__dark-meta strong {
    color: #1d4ed8;
    font-size: 0.96rem;
}

.student-id-card__dark-bottom {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 0.8rem;
    padding: 0.35rem 0.9rem 0.75rem;
}

.student-id-card__dark-bottom span {
    color: #15803d;
    font-weight: 900;
    text-transform: uppercase;
}

.student-id-card__landscape-head {
    padding: 0.75rem 0.95rem 0.95rem;
    color: #ffffff;
}

.student-id-card__landscape-head--green {
    background: linear-gradient(135deg, #3f7d0d 0%, #66a31e 100%);
}

.student-id-card__landscape-head--blue {
    background: linear-gradient(135deg, #0f1699 0%, #2938d1 100%);
}

.student-id-card__landscape-brand {
    display: flex;
    align-items: center;
    gap: 0.7rem;
}

.student-id-card__landscape-logo {
    width: 66px;
    height: 66px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.95);
    flex: 0 0 66px;
}

.student-id-card__landscape-title {
    font-size: 1.15rem;
    line-height: 1.06;
    font-weight: 900;
    text-transform: uppercase;
}

.student-id-card__landscape-copy {
    margin-top: 0.18rem;
    font-size: 0.74rem;
    font-weight: 700;
}

.student-id-card__landscape-phone {
    margin-top: 0.28rem;
    font-size: 0.84rem;
    font-weight: 800;
    text-align: right;
}

.student-id-card__landscape-wave {
    height: 42px;
    margin-top: -1px;
    background: #ffffff;
    clip-path: ellipse(78% 100% at 50% 0%);
}

.student-id-card__landscape-wave--green {
    border-top: 7px solid #d8f17a;
}

.student-id-card__landscape-wave--blue {
    border-top: 7px solid #86b6ff;
}

.student-id-card__landscape-body {
    display: grid;
    grid-template-columns: 1fr 220px;
    gap: 1rem;
    padding: 0.25rem 0.95rem 0.9rem;
    align-items: start;
}

.student-id-card__session-tag {
    color: #1e40af;
    font-weight: 800;
    text-transform: uppercase;
    font-size: 0.82rem;
    margin-bottom: 0.6rem;
}

.student-id-card__landscape-grid {
    display: grid;
    gap: 0.45rem;
}

.student-id-card__landscape-grid div {
    display: grid;
    grid-template-columns: 78px 1fr;
    gap: 0.42rem;
}

.student-id-card__landscape-grid span {
    color: #111827;
    font-size: 0.72rem;
    font-weight: 900;
    text-transform: uppercase;
}

.student-id-card__landscape-grid strong {
    color: #1d4ed8;
    font-size: 0.94rem;
}

.student-id-card__landscape-signature {
    margin-top: 0.8rem;
    display: inline-flex;
    flex-direction: column;
    gap: 0.18rem;
}

.student-id-card__landscape-signature small {
    font-size: 0.72rem;
    color: #991b1b;
    font-weight: 800;
}

.student-id-card__landscape-photo-frame {
    border: 3px solid #111827;
    background: #ffffff;
    border-radius: 0.3rem;
    padding: 0.18rem;
}

.student-id-card__landscape-photo {
    width: 100%;
    aspect-ratio: 2 / 3;
    object-fit: cover;
}

.student-id-card__landscape-right {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    align-items: center;
}

.student-id-card--template_six {
    background: #ffffff;
}

.student-id-card__purple-head {
    background: linear-gradient(180deg, #4c1294 0%, #6b21a8 100%);
    color: #ffffff;
    padding: 0.8rem 0.95rem 0.95rem;
}

.student-id-card__purple-title {
    color: #fde047;
    font-size: 1.2rem;
    line-height: 1.05;
    font-weight: 900;
    font-style: italic;
    text-transform: uppercase;
}

.student-id-card__purple-copy {
    font-size: 0.78rem;
    font-weight: 700;
    margin-top: 0.15rem;
}

.student-id-card__purple-swoosh {
    height: 42px;
    background:
        linear-gradient(180deg, #84cc16 0, #84cc16 6px, #ffffff 6px, #ffffff 100%);
    clip-path: ellipse(76% 100% at 50% 0%);
}

.student-id-card__purple-body {
    display: grid;
    grid-template-columns: 210px 1fr;
    gap: 1rem;
    padding: 0.2rem 0.95rem 0.3rem;
    align-items: start;
}

.student-id-card__purple-photo-col {
    display: flex;
    align-items: flex-start;
    gap: 0.45rem;
}

.student-id-card__purple-year {
    writing-mode: vertical-rl;
    transform: rotate(180deg);
    color: #1d4ed8;
    font-size: 0.78rem;
    font-weight: 900;
    letter-spacing: 0.06em;
    padding-top: 0.3rem;
}

.student-id-card__purple-frame {
    flex: 1 1 auto;
    padding: 0.3rem;
    background: linear-gradient(135deg, #7c3aed, #38bdf8);
    border-radius: 1.5rem 0.5rem 1.5rem 0.5rem;
    box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.6);
}

.student-id-card__purple-photo {
    width: 100%;
    aspect-ratio: 2 / 3;
    object-fit: cover;
    border-radius: 1.25rem 0.35rem 1.25rem 0.35rem;
    background: #ffffff;
}

.student-id-card__purple-info {
    padding-top: 0.2rem;
}

.student-id-card__purple-name {
    color: #7f1d1d;
    font-size: 1rem;
    font-weight: 900;
    text-transform: uppercase;
    margin-bottom: 0.65rem;
}

.student-id-card__purple-list {
    display: grid;
    gap: 0.42rem;
}

.student-id-card__purple-list div {
    display: grid;
    grid-template-columns: 78px 1fr;
    gap: 0.42rem;
}

.student-id-card__purple-list span {
    font-size: 0.72rem;
    font-weight: 900;
    text-transform: uppercase;
    color: #111827;
}

.student-id-card__purple-list strong {
    font-size: 0.95rem;
    color: #1d4ed8;
}

.student-id-card__purple-footer {
    display: flex;
    justify-content: space-between;
    align-items: end;
    gap: 0.8rem;
    padding: 0.15rem 0.95rem 0.9rem;
    overflow: hidden;
}

.student-id-template-picker {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 0.75rem;
}

.student-id-template-picker__option {
    display: block;
}

.student-id-template-picker__input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.student-id-template-picker__card {
    border: 1px solid rgba(148, 163, 184, 0.28);
    border-radius: 1rem;
    background: rgba(255, 255, 255, 0.82);
    padding: 0.6rem;
    cursor: pointer;
    transition: border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.student-id-template-picker__option:hover .student-id-template-picker__card {
    transform: translateY(-2px);
    box-shadow: 0 14px 26px rgba(15, 23, 42, 0.1);
}

.student-id-template-picker__input:checked + .student-id-template-picker__card {
    border-color: var(--erp-primary);
    box-shadow: 0 0 0 2px rgba(15, 118, 110, 0.12);
}

.student-id-template-picker__preview {
    transform-origin: top center;
    transform: scale(0.42);
    width: 238%;
    margin-bottom: -58%;
    pointer-events: none;
}

.student-id-template-picker__meta {
    display: flex;
    justify-content: space-between;
    gap: 0.6rem;
    align-items: center;
    padding-top: 0.2rem;
}

.student-id-template-picker__label {
    font-weight: 800;
    color: #0f172a;
}

.student-id-template-picker__caption {
    font-size: 0.72rem;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.marksheet-sheet {
    display: grid;
    gap: 1rem;
}

.marksheet-sheet__header {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    padding: 1rem;
    border-radius: 1rem;
    border: var(--erp-border-width) solid var(--erp-border);
    background: linear-gradient(135deg, rgba(15, 118, 110, 0.08), rgba(15, 23, 42, 0.02));
}

.marksheet-sheet__branding {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    min-width: 0;
}

.marksheet-sheet__logo {
    width: 72px;
    height: 72px;
    border-radius: 1rem;
    overflow: hidden;
    background: var(--erp-primary-soft);
    border: var(--erp-border-width) solid var(--erp-border);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--erp-primary-strong);
    flex: 0 0 72px;
}

.marksheet-sheet__logo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.marksheet-sheet__title {
    font-size: 1.15rem;
    font-weight: 800;
    color: var(--erp-heading);
}

.marksheet-sheet__subtitle {
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--erp-primary-strong);
    margin-top: 0.18rem;
}

.marksheet-sheet__copy,
.marksheet-sheet__school-meta {
    font-size: 0.9rem;
    color: var(--erp-muted);
}

.marksheet-sheet__school-meta {
    display: grid;
    gap: 0.3rem;
    text-align: right;
}

.marksheet-sheet__student {
    display: grid;
    grid-template-columns: minmax(220px, 300px) minmax(0, 1fr);
    gap: 1rem;
    align-items: start;
}

.marksheet-sheet__student-photo img,
.marksheet-sheet__student-photo--empty {
    width: 300px;
    height: 450px;
    max-width: 100%;
    border-radius: 1rem;
    object-fit: cover;
    border: var(--erp-border-width) solid var(--erp-border);
    background: #e2e8f0;
}

.marksheet-sheet__student-photo--empty {
    display: flex;
    align-items: center;
    justify-content: center;
    color: #64748b;
}

.marksheet-sheet__student-meta {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.8rem;
    padding: 1rem;
    border-radius: 1rem;
    border: var(--erp-border-width) solid var(--erp-border);
    background: rgba(255, 255, 255, 0.65);
}

.marksheet-sheet__student-meta span {
    display: block;
    font-size: 0.72rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--erp-muted);
    margin-bottom: 0.12rem;
}

.marksheet-sheet__student-meta strong {
    color: var(--erp-heading);
    display: block;
}

.marksheet-sheet__footer {
    display: flex;
    justify-content: flex-end;
    gap: 2rem;
    align-items: flex-end;
    padding-top: 0.4rem;
}

.marksheet-sheet__signature-block {
    width: min(220px, 100%);
    text-align: center;
}

.marksheet-sheet__signature-block--principal {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.marksheet-sheet__signature-image {
    width: 180px;
    max-width: 100%;
    height: 72px;
    object-fit: contain;
    margin-bottom: 0.2rem;
}

.marksheet-sheet__signature-line {
    width: 100%;
    border-top: 1px solid rgba(15, 23, 42, 0.35);
    margin-bottom: 0.35rem;
}

.student-id-card--template_two {
    background: linear-gradient(155deg, #fffdf6 0%, #fff7e5 42%, #f5f0de 100%);
    border-color: rgba(180, 120, 0, 0.2);
}

.student-id-card--template_two .student-id-card__header {
    background:
        radial-gradient(circle at top right, rgba(255, 255, 255, 0.18), transparent 26%),
        linear-gradient(135deg, var(--erp-id-card-header-start), var(--erp-id-card-header-end));
}

.student-id-card--template_two .student-id-card__footer {
    color: var(--erp-id-card-footer);
}

.student-id-card--template_three {
    background: linear-gradient(155deg, #fff8f7 0%, #fff3ef 42%, #f7ecef 100%);
    border-color: rgba(153, 27, 27, 0.18);
}

.student-id-card--template_three .student-id-card__header {
    background:
        radial-gradient(circle at top right, rgba(251, 191, 36, 0.14), transparent 24%),
        linear-gradient(135deg, var(--erp-id-card-header-start), var(--erp-id-card-header-end));
}

.student-id-card--template_three .student-id-card__footer {
    color: var(--erp-id-card-footer);
}

.school-inspection-tabs .nav-link {
    border: 0;
    color: #475569;
    border-radius: 0.8rem;
    padding: 0.62rem 0.82rem;
    font-weight: 600;
}

.school-inspection-tabs .nav-link.active,
.school-inspection-tabs .nav-link:hover {
    background: rgba(15, 118, 110, 0.1);
    color: var(--erp-primary-strong);
}

.camera-shell {
    display: grid;
    grid-template-columns: minmax(220px, 260px) 1fr;
    gap: 0.95rem;
    align-items: start;
}

.camera-shell__stage {
    position: relative;
    width: 100%;
    max-width: 260px;
    margin: 0 auto;
    border-radius: 0.95rem;
    overflow: hidden;
    background: linear-gradient(145deg, #0f172a, #1e293b);
    border: 1px solid rgba(148, 163, 184, 0.22);
    aspect-ratio: 2 / 3;
}

.camera-shell__video,
.camera-shell__preview {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.camera-shell__controls {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.camera-shell__status {
    padding: 0.68rem 0.8rem;
    border-radius: 0.8rem;
    background: rgba(15, 118, 110, 0.08);
}

.camera-shell__crop {
    padding: 0.75rem 0.8rem;
    border-radius: 0.85rem;
    background: rgba(15, 23, 42, 0.04);
    border: 1px solid rgba(148, 163, 184, 0.18);
}

.camera-shell__crop .form-range {
    margin-bottom: 0;
}

.row.g-4 {
    --bs-gutter-x: 0.95rem;
    --bs-gutter-y: 0.95rem;
}

.row.g-3 {
    --bs-gutter-x: 0.8rem;
    --bs-gutter-y: 0.8rem;
}

.mb-4 {
    margin-bottom: 0.95rem !important;
}

.p-4 {
    padding: 0.95rem !important;
}

.p-3 {
    padding: 0.8rem !important;
}

@media (max-width: 991.98px) {
    .page-header {
        display: none;
    }

    .mb-4 {
        margin-bottom: 0.25rem !important;
    }

    .sidebar {
        min-height: 100%;
    }

    .offcanvas.sidebar {
        width: min(92vw, 380px);
        border-right: 0;
    }

    .content-area {
        padding: 0.75rem;
    }

    .table-toolbar {
        align-items: stretch;
    }

    .table-search {
        max-width: 100%;
    }

    .header-actions,
    .header-chip {
        width: 100%;
    }

    .header-chip strong {
        white-space: normal;
    }

    .sidebar-panel {
        margin-bottom: 0.75rem;
    }

    .content-area > * {
        max-width: 100%;
    }

    .camera-shell {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 767.98px) {
    body {
        background:
            radial-gradient(circle at top left, rgba(245, 158, 11, 0.15), transparent 32%),
            radial-gradient(circle at top right, rgba(15, 118, 110, 0.14), transparent 28%),
            linear-gradient(180deg, var(--erp-page-bg-start) 0%, var(--erp-page-bg-mid) 60%, var(--erp-page-bg-end) 100%);
    }

    .mobile-topbar {
        margin: 0;
    }

    .content-area {
        padding: 0.55rem;
    }

    .erp-card,
    .page-header {
        border-radius: 0.85rem;
    }

    .brand-pill,
    .sidebar-user,
    .sidebar-panel {
        border-radius: 0.8rem;
    }

    .table-toolbar {
        margin-bottom: 0.65rem;
    }

    .mobile-table-item {
        padding: 0.72rem 0.76rem;
    }

    .display-6 {
        font-size: 1.55rem;
    }

    .h3,
    h3 {
        font-size: 1.3rem;
    }

    .h4,
    h4 {
        font-size: 1.1rem;
    }

    .h5,
    h5 {
        font-size: 0.98rem;
    }

    .table-responsive-stack {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .erp-table {
        min-width: 620px;
    }

    [data-searchable-table].has-mobile-list .table-responsive-stack {
        display: none;
    }

    [data-searchable-table].has-mobile-list .mobile-table-list {
        display: block;
    }

    .bulk-table .form-select,
    .bulk-table .form-control {
        width: 100%;
    }

    .student-id-card {
        max-width: none;
    }

    .student-id-card-dynamic__sleeping {
        flex-direction: column !important;
    }

    .student-id-card-dynamic__photo-frame {
        margin-inline: auto;
    }

    .student-id-card-dynamic__detail-row {
        gap: 2px;
    }

    .student-id-card-dynamic__detail-cell {
        grid-template-columns: 1fr;
        gap: 2px;
    }

    .student-id-card__stack-main,
    .student-id-card__landscape-body,
    .student-id-card__purple-body {
        grid-template-columns: 1fr;
    }

    .student-id-card__stack-footer,
    .student-id-card__dark-bottom,
    .student-id-card__purple-footer {
        flex-direction: column;
        align-items: flex-start;
    }

    .student-id-card__blue-photo-ring {
        width: 168px;
        height: 168px;
    }

    .student-id-card__landscape-right,
    .student-id-card__stack-brand {
        align-items: flex-start;
    }

    .marksheet-sheet__header,
    .marksheet-sheet__student {
        grid-template-columns: 1fr;
    }

    .marksheet-sheet__header {
        padding: 0.85rem;
    }

    .marksheet-sheet__school-meta {
        text-align: left;
    }

    .marksheet-sheet__student-meta {
        grid-template-columns: 1fr;
        padding: 0.85rem;
    }

    .marksheet-sheet__footer {
        flex-direction: column;
        align-items: stretch;
        gap: 0.8rem;
    }

    .id-card-grid {
        grid-template-columns: 1fr;
    }

    .student-id-template-picker {
        grid-template-columns: 1fr;
    }

    .student-id-template-picker__preview {
        transform: scale(0.34);
        width: 294%;
        margin-bottom: -88%;
    }

    .toast-stack {
        top: 56px !important;
        right: 0 !important;
        left: 0 !important;
        padding: 0.55rem !important;
    }

    .notification-toast {
        min-width: 100%;
        width: 100%;
    }
}

@media (min-width: 1200px) {
    .content-area {
        padding: 1.05rem 1.15rem;
    }

    .content-area > .page-header,
    .content-area > .alert,
    .content-area > .erp-card,
    .content-area > .filter-shell {
        max-width: 100%;
    }
}

.school-site-body {
    background:
        radial-gradient(circle at top left, rgba(245, 158, 11, 0.12), transparent 24%),
        linear-gradient(180deg, var(--erp-page-bg-start) 0%, var(--erp-page-bg-mid) 52%, var(--erp-page-bg-end) 100%);
}

.school-site-shell {
    min-height: 100vh;
    padding-bottom: 1.4rem;
}

.school-site-nav {
    position: sticky;
    top: 0;
    z-index: 1040;
    background: rgba(15, 23, 42, 0.88);
    backdrop-filter: blur(14px);
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.14);
}

.school-site-nav__inner {
    min-height: 66px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.school-site-nav__brand {
    font-weight: 700;
    color: #fff;
}

.school-site-nav__links {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.school-site-nav__links a {
    color: rgba(255, 255, 255, 0.82);
    text-decoration: none;
    font-size: 0.95rem;
}

.school-site-nav__links a:hover {
    color: #fff;
}

.school-site-hero {
    position: relative;
    min-height: 360px;
    overflow: hidden;
    background: linear-gradient(135deg, var(--erp-primary), var(--erp-primary-strong));
}

.school-site-hero__cover,
.school-site-hero__overlay {
    position: absolute;
    inset: 0;
}

.school-site-hero__cover {
    background-position: center;
    background-size: cover;
    opacity: 0.3;
}

.school-site-hero__overlay {
    background: linear-gradient(140deg, rgba(15, 23, 42, 0.66), rgba(15, 118, 110, 0.36));
}

.school-site-hero__content {
    position: relative;
    z-index: 1;
    min-height: 360px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 1rem;
    padding-top: 2rem;
    padding-bottom: 2rem;
    color: #fff;
}

.school-site-hero__brand {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.school-site-hero__logo {
    width: 88px;
    height: 88px;
    border-radius: 1.2rem;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.24);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    font-weight: 700;
}

.school-site-hero__logo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.school-site-kicker {
    letter-spacing: 0.08em;
    opacity: 0.78;
}

.school-site-hero__title {
    color: #fff;
    margin-bottom: 0.35rem;
}

.school-site-hero__subtitle {
    max-width: 720px;
    color: rgba(255, 255, 255, 0.88);
}

.school-site-section {
    position: relative;
    z-index: 2;
    margin-top: 0;
    margin-bottom: 0.95rem;
}

.school-site-section--hero-offset {
    margin-top: -52px;
}

.school-site-card,
.website-post-card,
.school-post-card,
.website-preview-compact {
    background: rgba(255, 255, 255, 0.94);
    border: var(--erp-border-width) solid var(--erp-border);
    border-radius: var(--erp-card-radius);
    box-shadow: var(--erp-shadow);
}

.school-site-card {
    padding: 1rem;
}

.school-site-highlight {
    padding: 1rem;
    border-radius: 1rem;
    background: linear-gradient(135deg, rgba(15, 118, 110, 0.12), rgba(245, 158, 11, 0.12));
    border: var(--erp-border-width) solid var(--erp-border);
}

.school-site-copy {
    color: var(--erp-text);
    line-height: 1.7;
}

.school-site-meta {
    display: grid;
    gap: 0.9rem;
    min-width: 0;
}

.school-site-meta strong {
    display: block;
    margin-bottom: 0.18rem;
    color: var(--erp-heading);
}

.school-site-meta span {
    color: var(--erp-text-soft);
}

.school-site-stat-grid,
.website-stat-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 0.75rem;
    min-width: 0;
}

.school-site-stat,
.website-stat-tile {
    padding: 0.85rem 0.9rem;
    border-radius: 0.95rem;
    background: var(--erp-primary-soft);
    border: var(--erp-border-width) solid rgba(15, 118, 110, 0.08);
}

.school-site-stat strong,
.website-stat-tile__value {
    display: block;
    font-size: 1.45rem;
    color: var(--erp-heading);
}

.school-site-stat__label,
.website-stat-tile__label {
    display: block;
    font-size: 0.76rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--erp-text-soft);
    margin-bottom: 0.25rem;
}

.website-stat-tile__value--small {
    font-size: 1rem;
    word-break: break-word;
}

.website-preview-compact {
    overflow: hidden;
}

.website-preview-compact__cover {
    height: 120px;
    background: linear-gradient(135deg, rgba(15, 118, 110, 0.82), rgba(15, 23, 42, 0.72));
    background-size: cover;
    background-position: center;
}

.website-preview-compact__body {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
}

.website-preview-compact__logo {
    flex: 0 0 68px;
    width: 68px;
    height: 68px;
    border-radius: 1rem;
    overflow: hidden;
    background: var(--erp-primary-soft);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--erp-primary-strong);
}

.website-preview-compact__logo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.website-post-stack,
.school-post-feed {
    display: grid;
    gap: 1rem;
}

.school-site-card .row,
.school-site-section .row {
    margin-right: 0;
    margin-left: 0;
}

.school-site-card [class*="col-"],
.school-site-section [class*="col-"] {
    min-width: 0;
}

.school-site-feature {
    display: flex;
    align-items: flex-start;
    gap: 0.8rem;
    padding: 0.95rem 1rem;
    border-radius: 1rem;
    background: rgba(255, 255, 255, 0.88);
    border: var(--erp-border-width) solid var(--erp-border);
}

.school-site-feature__icon {
    width: 34px;
    height: 34px;
    border-radius: 999px;
    background: var(--erp-primary-soft);
    color: var(--erp-primary-strong);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
}

.school-site-feature__text {
    color: var(--erp-text);
    line-height: 1.6;
}

.website-post-card,
.school-post-card {
    padding: 1rem;
}

.website-post-card__meta,
.school-post-card__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
}

.website-post-card__text,
.school-post-card__text {
    color: var(--erp-text);
    line-height: 1.6;
    white-space: pre-wrap;
}

.website-post-card__image,
.school-post-card__image {
    width: 100%;
    max-height: 420px;
    object-fit: cover;
    border-radius: 1rem;
    margin-top: 0.9rem;
    border: var(--erp-border-width) solid var(--erp-border);
}

.school-post-card__author {
    font-weight: 700;
    color: var(--erp-heading);
}

@media (max-width: 991.98px) {
    .school-site-nav__inner {
        min-height: auto;
        padding-top: 0.7rem;
        padding-bottom: 0.7rem;
        flex-direction: column;
        align-items: flex-start;
    }

    .school-site-nav__links {
        gap: 0.8rem;
        width: 100%;
    }

    .school-site-hero {
        min-height: 300px;
    }

    .school-site-hero__content {
        min-height: 300px;
        padding-top: 1.1rem;
        padding-bottom: 1.1rem;
    }

    .school-site-hero__brand,
    .website-preview-compact__body {
        align-items: flex-start;
    }

    .school-site-hero__logo {
        width: 68px;
        height: 68px;
        border-radius: 0.9rem;
        font-size: 1.35rem;
    }

    .school-site-section {
        margin-bottom: 0.8rem;
    }

    .school-site-section--hero-offset {
        margin-top: -28px;
    }

    .school-site-card,
    .website-post-card,
    .school-post-card {
        padding: 0.8rem;
    }

    .website-preview-compact__cover {
        height: 88px;
    }

    .school-site-card,
    .school-site-highlight,
    .school-site-feature,
    .school-post-card {
        overflow: hidden;
    }
}

@media (max-width: 767.98px) {
    .school-site-nav__links {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.45rem;
    }

    .school-site-nav__links a,
    .school-site-nav .btn {
        width: 100%;
    }

    .school-site-hero__brand {
        flex-direction: column;
        align-items: flex-start;
    }

    .school-site-hero__actions {
        width: 100%;
    }

    .school-site-stat-grid {
        grid-template-columns: 1fr;
    }

    .school-site-section--hero-offset {
        margin-top: -18px;
    }
}
