:root {
    color-scheme: light;
    --erp-sidebar: #ffffff;
    --erp-sidebar-end: #ffffff;
    --erp-sidebar-muted: #475569;
    --erp-primary: #0f766e;
    --erp-primary-strong: #115e59;
    --erp-primary-soft: #dff7f5;
    --erp-accent: #f59e0b;
    --erp-surface: #ffffff;
    --erp-surface-soft: #ffffff;
    --erp-card: #ffffff;
    --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: #ffffff;
    --erp-page-bg-mid: #ffffff;
    --erp-page-bg-end: #ffffff;
    --erp-school-header: #0f172a;
    --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;
    --erp-sidebar-width: 292px;
    --erp-sidebar-collapsed-width: 88px;
}

* {
    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: #ffffff;
}

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

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

.login-highlight {
    background: #ffffff;
    color: var(--erp-text);
    border-right: 1px solid var(--erp-border);
}

.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: #ffffff;
    backdrop-filter: blur(16px);
    box-shadow: 0 10px 28px rgba(15, 23, 42, 0.08);
    color: var(--erp-text);
    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-topbar .btn-outline-light,
.school-site-nav .btn-outline-light {
    color: var(--erp-primary-strong);
    border-color: var(--erp-border);
    background: #ffffff;
}

.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;
    --app-sidebar-width: var(--erp-sidebar-width);
    transition: padding-left 0.2s ease;
}

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

body.is-sidebar-collapsed .app-shell {
    --app-sidebar-width: var(--erp-sidebar-collapsed-width);
}

.sidebar {
    background: #ffffff;
    min-height: 100vh;
    border-right: 1px solid var(--erp-border);
    color: var(--erp-text) !important;
}

.sidebar .text-white-50 {
    color: var(--erp-text-soft) !important;
}

.sidebar .btn-close-white {
    filter: none;
}

.app-sidebar {
    position: fixed;
    inset: 0 auto 0 0;
    z-index: 1020;
    width: var(--app-sidebar-width);
    padding: 0.95rem;
    transition: width 0.2s ease;
}

.sidebar-frame {
    width: 100%;
    height: calc(100vh - 1.9rem);
    min-height: 0;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    overflow-x: hidden;
    overflow-y: auto;
    padding-right: 0.15rem;
    scrollbar-width: thin;
    scrollbar-color: rgba(148, 163, 184, 0.5) rgba(148, 163, 184, 0.16);
}

.sidebar-frame::-webkit-scrollbar {
    width: 8px;
}

.sidebar-frame::-webkit-scrollbar-track {
    background: rgba(148, 163, 184, 0.16);
    border-radius: 999px;
}

.sidebar-frame::-webkit-scrollbar-thumb {
    background: rgba(148, 163, 184, 0.5);
    border-radius: 999px;
}

.sidebar-brand-row {
    display: flex;
    align-items: stretch;
    gap: 0.65rem;
}

.sidebar-brand {
    flex: 1 1 auto;
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.85rem;
}

.sidebar-brand__mark,
.sidebar-user__avatar {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    width: 42px;
    height: 42px;
    border-radius: 0.8rem;
    background: var(--erp-primary-soft);
    color: var(--erp-primary-strong);
    font-weight: 800;
    box-shadow: inset 0 0 0 1px var(--erp-border);
}

.sidebar-brand__copy,
.sidebar-user__copy {
    min-width: 0;
}

.sidebar-brand__copy .h4,
.sidebar-user__copy .fw-semibold {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.sidebar-toggle,
.desktop-topbar__menu {
    width: 42px;
    min-width: 42px;
    height: 42px;
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.24rem;
    border-radius: 0.85rem;
    border: 1px solid var(--erp-border);
    background: #ffffff;
    color: var(--erp-heading);
}

.sidebar-toggle span,
.desktop-topbar__menu span {
    display: block;
    width: 1.05rem;
    height: 2px;
    border-radius: 999px;
    background: currentColor;
}

.desktop-topbar__menu {
    border-color: rgba(148, 163, 184, 0.28);
    background: #fff;
    color: var(--erp-heading);
    box-shadow: var(--erp-shadow-soft);
}

.sidebar-user {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 0.85rem;
    border: 1px solid var(--erp-border);
    border-radius: 0.85rem;
    background: #ffffff;
}

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

.sidebar .nav-link {
    display: flex;
    align-items: center;
    gap: 0.72rem;
    color: var(--erp-sidebar-muted);
    border-radius: 0.8rem;
    padding: 0.64rem 0.72rem;
    transition: all 0.18s ease;
    font-size: 0.95rem;
    min-height: 44px;
    overflow: hidden;
    position: relative;
}

.sidebar .nav-link.active,
.sidebar .nav-link:hover {
    color: var(--erp-primary-strong);
    background: var(--erp-primary-soft);
    transform: translateX(2px);
}

.sidebar-nav__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    width: 30px;
    height: 30px;
    border-radius: 0.7rem;
    color: var(--erp-primary-strong);
    background: var(--erp-primary-soft);
    font-size: 1rem;
}

.sidebar-nav__icon .bi {
    line-height: 1;
}

.sidebar-nav__label {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.sidebar-nav__tooltip {
    display: none;
}

.sidebar-nav__tooltip-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 0.65rem;
    background: rgba(15, 118, 110, 0.14);
    color: var(--erp-primary-strong);
}

.brand-pill {
    background: #ffffff;
    border: 1px solid var(--erp-border);
    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: #ffffff;
    border: 1px solid var(--erp-border);
    box-shadow: var(--erp-shadow-soft);
}

.sidebar-panel__title {
    color: var(--erp-heading);
    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: #ffffff;
    color: var(--erp-primary-strong);
    border: 1px solid var(--erp-border);
}

.btn-sidebar-secondary:hover {
    color: var(--erp-primary-strong);
    background: var(--erp-primary-soft);
}

.content-area {
    padding: var(--erp-page-gap);
    max-width: 100%;
    min-width: 0;
    margin-left: var(--app-sidebar-width);
    transition: margin-left 0.2s ease;
}

.desktop-topbar {
    min-height: 58px;
    align-items: center;
    gap: 1rem;
    margin-bottom: 0.95rem;
    padding: 0.35rem 0;
}

.desktop-topbar__search {
    flex: 1 1 auto;
    max-width: 520px;
    min-height: 48px;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0 1rem;
    border: 1px solid rgba(148, 163, 184, 0.28);
    border-radius: 0.8rem;
    background: rgba(255, 255, 255, 0.9);
    color: var(--erp-text-soft);
    box-shadow: var(--erp-shadow-soft);
}

.desktop-topbar--sections .desktop-topbar__search { flex: 0 1 260px; max-width: 260px; min-width: 140px; }
.desktop-topbar--sections .desktop-topbar__search-input { min-width: 0; }
.sms-subnav { display: flex; align-items: center; gap: .35rem; overflow-x: auto; min-width: 0; padding: .3rem 0; }
.desktop-topbar--sections .sms-subnav { flex: 1; }
.portal-subnav { display: flex; flex: 1; align-items: center; gap: .35rem; min-width: 0; overflow-x: auto; padding: .3rem 0; }
.portal-subnav a { white-space: nowrap; padding: .6rem .7rem; border-radius: .6rem; color: var(--erp-text); text-decoration: none; font-size: .82rem; }
.portal-subnav a:hover { background: var(--erp-primary-soft); }
.portal-subnav a.active { background: var(--erp-primary-strong); color: #fff; }
.portal-subnav a:focus-visible { outline: 2px solid var(--erp-primary); outline-offset: 2px; }
.sms-subnav a { white-space: nowrap; padding: .6rem .7rem; border-radius: .6rem; color: var(--erp-text); text-decoration: none; font-size: .82rem; }
.sms-subnav a:hover { background: #e2e8f0; }
.sms-subnav a.active { background: #0f172a; color: #fff; }

.desktop-topbar__search-icon {
    width: 0.85rem;
    height: 0.85rem;
    border: 2px solid currentColor;
    border-radius: 999px;
    position: relative;
    flex: 0 0 auto;
}

.desktop-topbar__search-icon::after {
    content: "";
    position: absolute;
    width: 0.45rem;
    height: 2px;
    right: -0.38rem;
    bottom: -0.18rem;
    border-radius: 999px;
    background: currentColor;
    transform: rotate(45deg);
}

.desktop-topbar__search-input {
    width: 100%;
    min-width: 0;
    border: 0;
    outline: 0;
    background: transparent;
    color: var(--erp-text);
    font: inherit;
}

.desktop-topbar__search-input::placeholder {
    color: var(--erp-text-soft);
    opacity: 1;
}

.desktop-topbar__search:focus-within {
    border-color: var(--erp-primary);
    box-shadow: 0 0 0 3px rgba(15, 118, 110, 0.12), var(--erp-shadow-soft);
}

.page-header {
    background: #ffffff;
    backdrop-filter: blur(14px);
    border: 1px solid var(--erp-border);
    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);
}

body.is-sidebar-collapsed .sidebar-brand__copy,
body.is-sidebar-collapsed .sidebar-user__copy,
body.is-sidebar-collapsed .sidebar-nav__label,
body.is-sidebar-collapsed .sidebar-panel {
    display: none;
}

body.is-sidebar-collapsed .app-sidebar {
    padding-left: 0.7rem;
    padding-right: 0.7rem;
}

body.is-sidebar-collapsed .sidebar-frame {
    align-items: center;
    padding-right: 0;
}

body.is-sidebar-collapsed .sidebar-brand-row,
body.is-sidebar-collapsed .sidebar-brand,
body.is-sidebar-collapsed .sidebar-user,
body.is-sidebar-collapsed .sidebar-nav,
body.is-sidebar-collapsed .sidebar .nav-link {
    width: 100%;
}

body.is-sidebar-collapsed .sidebar-brand-row {
    flex-direction: column;
}

body.is-sidebar-collapsed .sidebar-brand,
body.is-sidebar-collapsed .sidebar-user,
body.is-sidebar-collapsed .sidebar .nav-link {
    justify-content: center;
    padding-left: 0;
    padding-right: 0;
    overflow: visible;
}

body.is-sidebar-collapsed .sidebar-toggle {
    order: -1;
    width: 100%;
}

body.is-sidebar-collapsed .sidebar .nav-link:hover,
body.is-sidebar-collapsed .sidebar .nav-link:focus-visible {
    transform: none;
}

body.is-sidebar-collapsed .sidebar .nav-link:hover .sidebar-nav__tooltip,
body.is-sidebar-collapsed .sidebar .nav-link:focus-visible .sidebar-nav__tooltip {
    position: fixed;
    left: calc(var(--erp-sidebar-collapsed-width) + 0.75rem);
    display: inline-flex;
    align-items: center;
    gap: 0.58rem;
    min-height: 42px;
    max-width: 260px;
    padding: 0.42rem 0.72rem;
    border-radius: 0.85rem;
    background: rgba(255, 255, 255, 0.98);
    border: 1px solid rgba(148, 163, 184, 0.28);
    color: var(--erp-heading);
    font-weight: 700;
    white-space: nowrap;
    box-shadow: 0 18px 42px rgba(15, 23, 42, 0.18);
    z-index: 1045;
    pointer-events: none;
}

.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-grid {
    align-items: stretch;
}

.quick-link {
    min-height: 116px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    padding: 0.78rem 0.58rem;
    border-radius: 0.85rem;
    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 2px 0 rgba(15, 23, 42, 0.03), 0 14px 0 -8px rgba(15, 23, 42, 0.16), 0 18px 34px -26px rgba(15, 23, 42, 0.48);
    text-align: center;
    transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.quick-link__icon {
    width: 42px;
    height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 0.75rem;
    background: rgba(15, 118, 110, 0.1);
    color: var(--erp-primary-strong);
}

.quick-link__icon-svg {
    width: 23px;
    height: 23px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.9;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.quick-link__title {
    max-width: 100%;
    min-height: 2.45em;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--erp-text);
    font-size: 0.88rem;
    font-weight: 700;
    line-height: 1.22;
    overflow-wrap: anywhere;
}

.quick-link:hover {
    border-color: rgba(15, 118, 110, 0.4);
    transform: translateY(-2px);
    box-shadow: 0 2px 0 rgba(15, 23, 42, 0.02), 0 18px 0 -8px rgba(15, 23, 42, 0.18), 0 24px 42px -28px rgba(15, 23, 42, 0.54);
}

.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;
}

.attendance-filter-row {
    display: flex;
    gap: 0.8rem;
    align-items: flex-end;
}

.attendance-filter-row__field {
    min-width: 0;
}

.attendance-filter-row__field--class {
    flex: 1.4 1 320px;
}

.attendance-filter-row__field--date {
    flex: 1 1 220px;
}

.attendance-filter-row__field--submit {
    flex: 0 0 170px;
}

.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);
}

.attendance-col-label-short {
    display: none;
}

.attendance-col-label-full {
    display: inline;
}

.attendance-student-trigger {
    display: block;
    width: 100%;
    border: 0;
    background: transparent;
    padding: 0;
    text-align: left;
    color: var(--erp-text);
}

.attendance-student-trigger__name {
    display: block;
    font-weight: 700;
}

.attendance-student-trigger__meta {
    display: none;
    margin-top: 0.2rem;
    font-size: 0.78rem;
    color: var(--erp-text-soft);
}

.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: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    gap: 0.8rem;
    overflow-x: auto;
}

.id-card-preview-item {
    display: grid;
    gap: 0.75rem;
    align-content: start;
    flex: 0 0 auto;
}

.id-card-layout-preview-scroll {
    overflow-x: auto;
    width: 100%;
    padding-bottom: 0.5rem;
}

.id-card-preview-item__actions {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
}

.student-id-card-dynamic {
    width: calc(var(--id-card-width) * 1px);
    height: calc(var(--id-card-height) * 1px);
    flex: 0 0 auto;
    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;
    box-sizing: border-box;
}

.student-id-card-dynamic__standing {
    height: 100%;
    box-sizing: border-box;
    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%;
    box-sizing: border-box;
    display: flex;
    gap: 12px;
    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-reverse;
}

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

.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: calc(100% - var(--id-card-detail-left-margin, 0px));
    margin-left: var(--id-card-detail-left-margin, 0px);
    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: grid;
    grid-template-columns: max-content 1ch minmax(0, 1fr);
    column-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);
    font-family: var(--id-card-detail-family, "Trebuchet MS", "Segoe UI", Tahoma, Geneva, Verdana, sans-serif);
    font-style: var(--id-card-detail-style, normal);
    text-decoration: var(--id-card-detail-decoration, none);
    line-height: 1.3;
}

.student-id-card-dynamic__detail-row--address { align-items: start; }

.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-colon {
    text-align: center;
    font: inherit;
    color: inherit;
}

.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-dynamic__detail-value--address {
    display: inline;
    white-space: pre-wrap;
    word-break: break-word;
}

.student-id-card-dynamic--download,
.student-id-card-dynamic--download *,
.student-id-card-dynamic--download::before,
.student-id-card-dynamic--download::after {
    box-shadow: none !important;
    filter: none !important;
    backdrop-filter: none !important;
    background-blend-mode: normal !important;
    opacity: 1 !important;
    text-shadow: none !important;
}

.student-id-card-dynamic--download {
    border-radius: 0 !important;
}

.student-id-card-dynamic__qr {
    position: absolute;
    box-sizing: border-box;
    z-index: 3;
    top: var(--id-card-qr-top, 12px);
    left: var(--id-card-qr-left, 12px);
    width: var(--id-card-qr-size, 105px);
    height: var(--id-card-qr-size, 105px);
    padding: 6px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.92);
    box-shadow: 0 6px 16px rgba(15, 23, 42, 0.16);
}

.student-id-card-dynamic__qr--hidden {
    display: none;
}

.student-id-card-dynamic__qr-image,
.student-id-card-dynamic__qr-placeholder,
.student-id-card-dynamic__qr-render,
.student-id-card-dynamic__qr-render canvas,
.student-id-card-dynamic__qr-render img {
    display: block;
    width: 100%;
    height: 100%;
}

.student-id-card-dynamic__qr-render canvas,
.student-id-card-dynamic__qr-render img {
    object-fit: contain;
}

.student-id-card-dynamic__qr-image--fallback {
    display: none;
}

.student-id-card-dynamic__qr--fallback .student-id-card-dynamic__qr-render {
    display: none;
}

.student-id-card-dynamic__qr--fallback .student-id-card-dynamic__qr-image--fallback {
    display: block;
}

.student-id-card-dynamic__qr-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #0f172a;
    color: #0f172a;
    font-weight: 800;
    font-size: 1rem;
}

.student-id-card-dynamic__qr--top_left {
    top: var(--id-card-qr-top, 12px);
    left: var(--id-card-qr-left, 12px);
}

.student-id-card-dynamic__qr--top_right {
    top: var(--id-card-qr-top, 12px);
    left: auto;
    right: var(--id-card-qr-left, 12px);
}

.student-id-card-dynamic__qr--bottom_left {
    top: auto;
    left: var(--id-card-qr-left, 12px);
    bottom: var(--id-card-qr-top, 12px);
}

.student-id-card-dynamic__qr--bottom_right {
    top: auto;
    left: auto;
    right: var(--id-card-qr-left, 12px);
    bottom: var(--id-card-qr-top, 12px);
}

.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;
}

.admit-card-sheet {
    --admit-blue: #071f73;
    --admit-line: #0b2a80;
    width: 1120px;
    max-width: none;
    margin: 0 auto;
    border: 1.5px solid var(--admit-line);
    border-radius: 14px;
    overflow: hidden;
    background: #fff;
    color: #020617;
    box-shadow: 0 16px 34px rgba(15, 23, 42, 0.08);
    font-family: Arial, Helvetica, sans-serif;
}

.admit-card-sheet--portrait {
    width: 1040px;
}

.admit-card-preview-shell {
    width: 100%;
    overflow-x: auto;
    overflow-y: hidden;
    padding-bottom: 0.35rem;
}

.admit-card-sheet__top {
    display: grid;
    grid-template-columns: 150px minmax(0, 1fr) 250px;
    gap: 1rem;
    align-items: center;
    padding: 0.75rem 1rem;
    border-bottom: 2px solid var(--admit-line);
}

.admit-card-sheet__logo {
    width: 112px;
    height: 112px;
    margin: 0 auto;
    display: grid;
    place-items: center;
    border-radius: 12px;
    color: var(--admit-blue);
    font-size: 3rem;
    font-weight: 900;
}

.admit-card-sheet__logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.admit-card-sheet__school {
    text-align: center;
    min-width: 0;
}

.admit-card-sheet__school-name {
    color: var(--admit-blue);
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(1.35rem, 2.6vw, 2.15rem);
    font-weight: 900;
    line-height: 0.95;
    text-transform: uppercase;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.admit-card-sheet__school-line {
    font-size: 1rem;
    line-height: 1.35;
    color: #020617;
}

.admit-card-sheet__school-line span {
    margin: 0 0.65rem;
}

.admit-card-sheet__badge-group {
    display: grid;
    gap: 0.65rem;
    min-width: 0;
}

.admit-card-sheet__badge {
    padding: 0.55rem 0.7rem;
    border-radius: 8px;
    background: var(--admit-blue);
    color: #fff;
    font-size: 1.45rem;
    font-weight: 900;
    text-align: center;
    text-transform: uppercase;
}

.admit-card-sheet__session {
    border: 0;
    padding: 0;
    color: var(--admit-blue);
    font-size: 0.9rem;
    font-weight: 900;
    line-height: 1.15;
    text-align: center;
    text-transform: uppercase;
    white-space: nowrap;
    overflow: visible;
    text-overflow: clip;
}

.admit-card-sheet__exam-title {
    padding: 0.35rem 1rem;
    border-bottom: 2px solid var(--admit-line);
    color: var(--admit-blue);
    font-size: 1.35rem;
    font-weight: 900;
    text-align: center;
    text-transform: uppercase;
}

.admit-card-sheet__main {
    display: grid;
    grid-template-columns: 1fr 1.05fr;
    border-bottom: 1.5px solid var(--admit-line);
}

.admit-card-sheet__student-panel,
.admit-card-sheet__schedule {
    padding: 1rem;
}

.admit-card-sheet__student-panel {
    border-right: 1.5px solid var(--admit-line);
}

.admit-card-sheet__student-row {
    display: grid;
    grid-template-columns: 178px minmax(0, 1fr);
    gap: 1.35rem;
    align-items: start;
}

.admit-card-sheet__photo {
    width: 178px;
    aspect-ratio: 3 / 3.8;
    border: 1px solid #334155;
    display: grid;
    place-items: center;
    overflow: hidden;
    background: #f8fafc;
    color: #64748b;
    font-weight: 700;
}

.admit-card-sheet__photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.admit-card-sheet__details {
    display: grid;
    gap: 0.48rem;
    padding-top: 0.35rem;
}

.admit-card-sheet__detail {
    display: grid;
    grid-template-columns: 128px 14px minmax(0, 1fr);
    gap: 0.45rem;
    align-items: start;
    font-size: 0.98rem;
}

.admit-card-sheet__detail span,
.admit-card-sheet__detail b {
    font-weight: 700;
}

.admit-card-sheet__detail strong {
    color: #020617;
    font-weight: 900;
}

.admit-card-sheet__instructions {
    margin-top: 1rem;
    padding: 0.6rem 0.85rem;
    border: 1.5px solid var(--admit-line);
    border-radius: 8px;
}

.admit-card-sheet__instructions-title {
    color: var(--admit-blue);
    font-size: 0.95rem;
    font-weight: 900;
    text-align: center;
    text-transform: uppercase;
    margin-bottom: 0.45rem;
}

.admit-card-sheet__instructions ol {
    margin: 0;
    padding-left: 1.2rem;
    font-size: 0.86rem;
    line-height: 1.25;
}

.admit-card-sheet__schedule-title {
    color: var(--admit-blue);
    font-size: 1.2rem;
    font-weight: 900;
    text-align: center;
    text-transform: uppercase;
    margin-bottom: 0.55rem;
}

.admit-card-sheet__schedule table {
    width: 100%;
    border-collapse: collapse;
    table-layout: fixed;
    border: 1.5px solid var(--admit-line);
    font-size: 0.9rem;
}

.admit-card-sheet__schedule th,
.admit-card-sheet__schedule td {
    border: 1px solid rgba(15, 23, 42, 0.72);
    padding: 0.55rem 0.45rem;
    text-align: center;
    vertical-align: middle;
}

.admit-card-sheet__schedule th {
    color: var(--admit-blue);
    font-weight: 900;
    text-transform: uppercase;
    background: #f2f7ff;
}

.admit-card-sheet__schedule td:nth-child(4) {
    font-weight: 800;
}

.admit-card-sheet__optional {
    color: #64748b;
    font-size: 0.72rem;
    font-weight: 700;
}

.admit-card-sheet__signatures {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    grid-template-areas: "student principal";
    gap: 1rem 1.5rem;
    align-items: end;
    min-height: 145px;
    padding: 1.25rem 1.6rem 0.65rem;
}

.admit-card-sheet__signature {
    color: var(--admit-blue);
    font-size: 0.9rem;
}

.admit-card-sheet__signature img {
    height: 44px;
    max-width: 160px;
    object-fit: contain;
    display: block;
    margin: 0 0 0.1rem;
}

.admit-card-sheet__signature-line {
    width: 145px;
    border-top: 2px solid var(--admit-blue);
    margin-bottom: 0.35rem;
}

.admit-card-sheet__signature--student {
    grid-area: student;
    align-self: end;
}

.admit-card-sheet__signature--principal {
    grid-area: principal;
    align-self: end;
    justify-self: end;
}

.admit-card-sheet__stamp {
    display: none !important;
}

.admit-card-sheet--portrait .admit-card-sheet__top {
    grid-template-columns: 145px minmax(0, 1fr) 220px;
    padding: 1.05rem 1rem;
}

.admit-card-sheet--portrait .admit-card-sheet__logo {
    width: 118px;
    height: 118px;
}

.admit-card-sheet--portrait .admit-card-sheet__school-name {
    font-size: 1.75rem;
}

.admit-card-sheet--portrait .admit-card-sheet__badge {
    font-size: 1.35rem;
    padding: 0.55rem 0.5rem;
}

.admit-card-sheet--portrait .admit-card-sheet__session {
    font-size: 0.78rem;
}

.admit-card-sheet--portrait .admit-card-sheet__exam-title {
    background: var(--admit-blue);
    color: #fff;
}

.admit-card-sheet--portrait .admit-card-sheet__main {
    display: flex;
    flex-direction: column;
}

.admit-card-sheet--portrait .admit-card-sheet__student-panel {
    display: contents;
}

.admit-card-sheet--portrait .admit-card-sheet__student-row {
    order: 1;
    grid-template-columns: 240px minmax(0, 1fr);
    gap: 2.5rem;
    padding: 1rem 3.2rem 1.25rem;
    border-bottom: 1.5px solid var(--admit-line);
}

.admit-card-sheet--portrait .admit-card-sheet__photo {
    width: 240px;
}

.admit-card-sheet--portrait .admit-card-sheet__details {
    gap: 0.48rem;
}

.admit-card-sheet--portrait .admit-card-sheet__detail {
    grid-template-columns: 170px 14px minmax(0, 1fr);
    font-size: 1.02rem;
}

.admit-card-sheet--portrait .admit-card-sheet__schedule {
    order: 2;
    padding: 0.75rem 1rem;
}

.admit-card-sheet--portrait .admit-card-sheet__schedule-title {
    margin-bottom: 0.45rem;
}

.admit-card-sheet--portrait .admit-card-sheet__schedule th,
.admit-card-sheet--portrait .admit-card-sheet__schedule td {
    padding: 0.55rem 0.45rem;
}

.admit-card-sheet--portrait .admit-card-sheet__instructions {
    order: 3;
    margin: 0.2rem 1rem 1rem;
    width: calc(50% - 1.5rem);
}

.admit-card-sheet--portrait .admit-card-sheet__instructions-title {
    margin: -0.6rem -0.85rem 0.55rem;
    padding: 0.45rem;
    background: var(--admit-blue);
    color: #fff;
    border-radius: 7px 7px 0 0;
}

.admit-card-sheet--portrait .admit-card-sheet__signatures {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    grid-template-areas: "student principal";
    min-height: 125px;
    padding: 0 2.4rem 0.9rem;
}

.admit-card-sheet--portrait .admit-card-sheet__signature {
    align-self: end;
    padding-top: 0;
}

.admit-card-sheet--portrait .admit-card-sheet__signature--student {
    grid-area: student;
}

.admit-card-sheet--portrait .admit-card-sheet__signature--principal {
    grid-area: principal;
    justify-self: start;
}

.admit-card-sheet__note {
    border-top: 1.5px solid var(--admit-line);
    padding: 0.45rem 1rem;
    color: var(--admit-blue);
    font-size: 0.95rem;
    text-align: center;
}

.admit-card-sheet--download {
    max-width: none !important;
    border-radius: 14px !important;
}

.admit-card-sheet--download.admit-card-sheet--landscape {
    width: 1536px !important;
}

.admit-card-sheet--download.admit-card-sheet--portrait {
    width: 1040px !important;
}

.admit-card-sheet--download.admit-card-sheet--landscape .admit-card-sheet__top {
    grid-template-columns: 170px minmax(0, 1fr) 260px !important;
}

.admit-card-sheet--download.admit-card-sheet--landscape .admit-card-sheet__main {
    grid-template-columns: 1fr 1.04fr !important;
}

.admit-card-sheet--download.admit-card-sheet--landscape .admit-card-sheet__student-panel {
    border-right: 1.5px solid var(--admit-line) !important;
    border-bottom: 0 !important;
}

.admit-card-sheet--download.admit-card-sheet--landscape .admit-card-sheet__student-row {
    grid-template-columns: 240px minmax(0, 1fr) !important;
}

.admit-card-sheet--download.admit-card-sheet--landscape .admit-card-sheet__photo {
    width: 240px !important;
}

.admit-card-sheet--download.admit-card-sheet--landscape .admit-card-sheet__signatures {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) !important;
    grid-template-areas: "student principal" !important;
}

.admit-card-sheet--download.admit-card-sheet--landscape .admit-card-sheet__school-name {
    font-size: 2.1rem !important;
}

.admit-card-sheet--download.admit-card-sheet--landscape .admit-card-sheet__detail {
    grid-template-columns: 128px 14px minmax(0, 1fr) !important;
    font-size: 0.98rem !important;
}

.admit-card-sheet--print {
    box-shadow: none !important;
}

.admit-card-preview-shell .admit-card-sheet--landscape .admit-card-sheet__top {
    grid-template-columns: 150px minmax(0, 1fr) 250px;
}

.admit-card-preview-shell .admit-card-sheet--landscape .admit-card-sheet__main {
    grid-template-columns: 1fr 1.05fr;
}

.admit-card-preview-shell .admit-card-sheet--landscape .admit-card-sheet__school-name {
    font-size: 2.1rem;
}

.admit-card-preview-shell .admit-card-sheet--landscape .admit-card-sheet__student-panel {
    border-right: 1.5px solid var(--admit-line);
    border-bottom: 0;
}

.admit-card-preview-shell .admit-card-sheet--landscape .admit-card-sheet__student-row {
    grid-template-columns: 178px minmax(0, 1fr);
}

.admit-card-preview-shell .admit-card-sheet--landscape .admit-card-sheet__photo {
    width: 178px;
    margin: 0;
}

.admit-card-preview-shell .admit-card-sheet--landscape .admit-card-sheet__detail {
    grid-template-columns: 128px 14px minmax(0, 1fr);
    font-size: 0.98rem;
}

.admit-card-preview-shell .admit-card-sheet--landscape .admit-card-sheet__schedule {
    overflow: visible;
}

.admit-card-preview-shell .admit-card-sheet--landscape .admit-card-sheet__schedule table {
    min-width: 0;
}

.admit-card-preview-shell .admit-card-sheet--landscape .admit-card-sheet__signatures {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    grid-template-areas: "student principal";
}

.exam-class-card,
.exam-subject-card {
    background: rgba(255, 255, 255, 0.6);
}

.exam-subject-schedule {
    padding-top: 0.85rem;
    border-top: 1px dashed rgba(15, 23, 42, 0.12);
}

.exam-optional-toggle {
    background: rgba(15, 23, 42, 0.02);
}

.exam-instructions-preview {
    padding: 0.85rem 1rem;
    border-radius: 1rem;
    background: rgba(15, 118, 110, 0.06);
    color: var(--erp-muted);
}

.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) {
    .app-shell {
        --app-sidebar-width: 0px;
    }

    .content-area {
        margin-left: 0;
    }

    .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: #ffffff;
    }

    .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;
    }

    .overview-mobile-hidden {
        display: none !important;
    }

    .quick-link {
        min-height: 96px;
        gap: 0.45rem;
        padding: 0.65rem 0.42rem;
    }

    .quick-link__icon {
        width: 36px;
        height: 36px;
        border-radius: 0.68rem;
    }

    .quick-link__icon-svg {
        width: 20px;
        height: 20px;
    }

    .quick-link__title {
        font-size: 0.74rem;
        line-height: 1.18;
    }

    .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%;
        min-width: 0;
    }

    .attendance-filter-row {
        gap: 0.5rem;
    }

    .attendance-filter-row__field--class {
        flex: 1.2 1 0;
    }

    .attendance-filter-row__field--date {
        flex: 1 1 0;
    }

    .attendance-filter-row__field--submit {
        flex: 0 0 118px;
    }

    .attendance-col-label-full {
        display: none;
    }

    .attendance-col-label-short {
        display: inline;
    }

    .bulk-table--attendance {
        min-width: 0;
    }

    .attendance-student-trigger__meta {
        display: block;
    }

    .bulk-table--attendance th,
    .bulk-table--attendance td {
        white-space: normal;
        vertical-align: top;
    }

    .bulk-table--attendance th:nth-child(1),
    .bulk-table--attendance td:nth-child(1) {
        width: 52px;
        min-width: 52px;
        white-space: nowrap;
    }

    .bulk-table--attendance th:nth-child(2),
    .bulk-table--attendance td:nth-child(2) {
        min-width: 112px;
    }

    .bulk-table--attendance th:nth-child(3),
    .bulk-table--attendance td:nth-child(3),
    .bulk-table--attendance th:nth-child(4),
    .bulk-table--attendance td:nth-child(4) {
        min-width: 92px;
    }

    .bulk-table--attendance .form-select,
    .bulk-table--attendance .form-control {
        font-size: 0.84rem;
        padding: 0.42rem 0.5rem;
    }

    .bulk-table--attendance .form-select {
        background-position: right 0.45rem center;
        padding-right: 1.6rem;
    }

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

    .id-card-grid,
    .id-card-layout-preview-scroll { overflow-x: auto; }

    .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: #ffffff;
}

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

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

.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: var(--erp-heading);
    min-width: 0;
}

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

.school-site-nav__links a {
    color: var(--erp-text-soft);
    text-decoration: none;
    font-size: 0.95rem;
}

.school-site-nav__links a:hover {
    color: var(--erp-primary-strong);
}

.school-site-nav__actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-shrink: 0;
}

.school-site-nav__toggle {
    padding: 0.45rem 0.65rem;
    border-radius: 0.85rem;
}

.school-site-nav__toggle-bars {
    display: inline-flex;
    flex-direction: column;
    gap: 0.22rem;
}

.school-site-nav__toggle-bars span {
    display: block;
    width: 18px;
    height: 2px;
    border-radius: 999px;
    background: currentColor;
}

.school-site-nav__mobile-menu {
    border-top: 1px solid var(--erp-border);
    background: #ffffff;
}

.school-site-nav__links--mobile {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0.2rem;
    padding: 0.85rem 0 1rem;
}

.school-site-nav__links--mobile a {
    display: block;
    padding: 0.7rem 0;
}

.school-site-hero {
    position: relative;
    min-height: 360px;
    overflow: hidden;
    background: #ffffff;
}

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

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

.school-site-hero__overlay {
    background: rgba(255, 255, 255, 0.84);
}

.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: var(--erp-text);
}

.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: #ffffff;
    border: 1px solid var(--erp-border);
    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: var(--erp-heading);
    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);
}

.route-card {
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-radius: 8px;
    padding: 1.25rem;
    background: #fff;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
}

.route-timeline {
    position: relative;
    padding-left: 1.75rem;
}

.route-timeline::before {
    content: "";
    position: absolute;
    top: 0.25rem;
    bottom: 0.25rem;
    left: 0.45rem;
    width: 2px;
    background: #d4deef;
}

.route-timeline__item {
    position: relative;
    display: flex;
    gap: 0.75rem;
    padding-bottom: 1.25rem;
}

.route-timeline__item:last-child {
    padding-bottom: 0;
}

.route-timeline__dot {
    position: absolute;
    left: -1.73rem;
    top: 0.05rem;
    width: 1.25rem;
    height: 1.25rem;
    border-radius: 50%;
    border: 3px solid #d9e3f3;
    background: #f5a400;
    box-shadow: inset 0 0 0 2px #fff;
}

.route-timeline__title {
    color: #020617;
    font-weight: 700;
    font-size: 1rem;
}

.route-timeline__time {
    color: #334155;
    font-size: 0.95rem;
}

.route-stop-list {
    display: grid;
    gap: 0.75rem;
}

.route-stop-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 150px auto;
    align-items: end;
    gap: 0.75rem;
    padding: 0.85rem;
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-radius: 8px;
    background: #f8fafc;
}

@media (max-width: 991.98px) {
    .admit-card-sheet__top,
    .admit-card-sheet__main,
    .admit-card-sheet__signatures {
        grid-template-columns: 1fr;
    }

    .admit-card-sheet__signatures {
        grid-template-areas:
            "student"
            "principal";
        min-height: 0;
    }

    .admit-card-sheet__signature--principal {
        justify-self: start;
    }

    .admit-card-sheet__student-panel {
        border-right: 0;
        border-bottom: 1.5px solid var(--admit-line);
    }

    .admit-card-sheet__student-row {
        grid-template-columns: 150px minmax(0, 1fr);
    }

    .admit-card-sheet__photo {
        width: 150px;
    }

    .admit-card-sheet__badge-group {
        width: min(100%, 320px);
        margin: 0 auto;
    }

    .school-site-nav__inner {
        min-height: 66px;
        padding-top: 0.7rem;
        padding-bottom: 0.7rem;
        align-items: center;
    }

    .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) {
    .admit-card-sheet {
        border-radius: 10px;
    }

    .admit-card-sheet__school-name {
        font-size: 1.8rem;
    }

    .admit-card-sheet__student-row {
        grid-template-columns: 1fr;
    }

    .admit-card-sheet__photo {
        margin: 0 auto;
    }

    .admit-card-sheet__detail {
        grid-template-columns: 112px 12px minmax(0, 1fr);
        font-size: 0.88rem;
    }

    .admit-card-sheet__schedule {
        overflow-x: auto;
    }

    .admit-card-sheet__schedule table {
        min-width: 650px;
    }

    .route-stop-row {
        grid-template-columns: 1fr;
    }

    .school-site-nav__inner {
        gap: 0.75rem;
    }

    .school-site-nav__brand {
        max-width: calc(100% - 132px);
    }

    .school-site-nav__actions {
        gap: 0.45rem;
    }

    .school-site-nav__share {
        padding-left: 0.75rem;
        padding-right: 0.75rem;
    }

    .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;
    }
}

.admit-card-preview-shell .admit-card-sheet--landscape,
.admit-card-sheet--download.admit-card-sheet--landscape {
    width: 1536px !important;
}

.admit-card-preview-shell .admit-card-sheet--portrait,
.admit-card-sheet--download.admit-card-sheet--portrait {
    width: 1040px !important;
}

.admit-card-preview-shell .admit-card-sheet--landscape .admit-card-sheet__top,
.admit-card-sheet--download.admit-card-sheet--landscape .admit-card-sheet__top {
    grid-template-columns: 170px minmax(0, 1fr) 320px !important;
}

.admit-card-preview-shell .admit-card-sheet--landscape .admit-card-sheet__main,
.admit-card-sheet--download.admit-card-sheet--landscape .admit-card-sheet__main {
    display: grid !important;
    grid-template-columns: 1fr 1.04fr !important;
}

.admit-card-preview-shell .admit-card-sheet--landscape .admit-card-sheet__student-panel,
.admit-card-sheet--download.admit-card-sheet--landscape .admit-card-sheet__student-panel {
    border-right: 1.5px solid var(--admit-line) !important;
    border-bottom: 0 !important;
}

.admit-card-preview-shell .admit-card-sheet--landscape .admit-card-sheet__student-row,
.admit-card-sheet--download.admit-card-sheet--landscape .admit-card-sheet__student-row {
    grid-template-columns: 240px minmax(0, 1fr) !important;
}

.admit-card-preview-shell .admit-card-sheet--landscape .admit-card-sheet__photo,
.admit-card-sheet--download.admit-card-sheet--landscape .admit-card-sheet__photo {
    width: 240px !important;
    margin: 0 !important;
}

.admit-card-preview-shell .admit-card-sheet--portrait .admit-card-sheet__top,
.admit-card-sheet--download.admit-card-sheet--portrait .admit-card-sheet__top {
    grid-template-columns: 145px minmax(0, 1fr) 230px !important;
}

.admit-card-preview-shell .admit-card-sheet--portrait .admit-card-sheet__main,
.admit-card-sheet--download.admit-card-sheet--portrait .admit-card-sheet__main {
    display: flex !important;
    flex-direction: column !important;
}

.admit-card-preview-shell .admit-card-sheet--portrait .admit-card-sheet__student-row,
.admit-card-sheet--download.admit-card-sheet--portrait .admit-card-sheet__student-row {
    grid-template-columns: 240px minmax(0, 1fr) !important;
}

.admit-card-preview-shell .admit-card-sheet--portrait .admit-card-sheet__photo,
.admit-card-sheet--download.admit-card-sheet--portrait .admit-card-sheet__photo {
    width: 240px !important;
    margin: 0 !important;
}

.parent-result-view-btn {
    width: 38px;
    height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}

.parent-result-view-btn .material-icons-round {
    font-size: 1.15rem;
}

.result-sheet-modal__body {
    background: #f8fafc;
}

.result-sheet-modal__viewport {
    width: 100%;
    overflow: auto;
    padding: 0.75rem;
}

.result-sheet-modal__zoom {
    width: max-content;
    min-width: 100%;
    transform-origin: top left;
}

.marksheet-sheet {
    --marksheet-blue: #071f73;
    --marksheet-line: #0b2a80;
    width: 1000px;
    max-width: none;
    margin: 0 auto;
    padding: 1.05rem 1.35rem;
    border: 3px double var(--marksheet-line);
    background: #fff;
    color: #020617;
    font-family: Arial, Helvetica, sans-serif;
    display: block;
}

.marksheet-sheet__top {
    display: grid;
    grid-template-columns: 150px minmax(0, 1fr);
    gap: 1rem;
    align-items: center;
}

.marksheet-sheet__logo {
    width: 132px;
    height: 132px;
    display: grid;
    place-items: center;
    color: var(--marksheet-blue);
    font-size: 3.5rem;
    font-weight: 900;
}

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

.marksheet-sheet__school {
    text-align: center;
    min-width: 0;
}

.marksheet-sheet__school-name {
    color: var(--marksheet-blue);
    font-family: Georgia, "Times New Roman", serif;
    font-size: 2.85rem;
    font-weight: 900;
    line-height: 0.95;
    text-transform: uppercase;
    white-space: nowrap;
}

.marksheet-sheet__school-line {
    font-size: 1.05rem;
    line-height: 1.45;
}

.marksheet-sheet__school-line span {
    margin: 0 0.8rem;
}

.marksheet-sheet__divider {
    border-top: 2px solid var(--marksheet-line);
    margin: 0.85rem 0 1rem;
}

.marksheet-sheet__badge {
    width: max-content;
    margin: 0 auto 0.55rem;
    padding: 0.45rem 1.3rem;
    border-radius: 6px;
    background: var(--marksheet-blue);
    color: #fff;
    font-size: 1.7rem;
    font-weight: 900;
    text-transform: uppercase;
}

.marksheet-sheet__exam {
    color: #020617;
    font-size: 1.25rem;
    font-weight: 900;
    text-align: center;
    text-transform: uppercase;
    margin-bottom: 1rem;
}

.marksheet-sheet__student {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 170px;
    gap: 1.2rem;
    align-items: center;
    padding: 1rem;
    border: 1.5px solid var(--marksheet-line);
    border-radius: 8px;
    margin-bottom: 1.2rem;
}

.marksheet-sheet__student-meta {
    display: grid;
    gap: 0.72rem;
}

.marksheet-sheet__student-meta div {
    display: grid;
    grid-template-columns: 145px 16px minmax(0, 1fr);
    gap: 0.45rem;
    align-items: baseline;
}

.marksheet-sheet__student-meta span,
.marksheet-sheet__student-meta b {
    font-weight: 700;
}

.marksheet-sheet__student-meta strong {
    color: var(--marksheet-blue);
    font-weight: 900;
}

.marksheet-sheet__student-photo img,
.marksheet-sheet__student-photo--empty {
    width: 150px;
    height: 190px;
    border: 1px solid #334155;
    object-fit: cover;
}

.marksheet-sheet__student-photo--empty {
    display: grid;
    place-items: center;
    color: #64748b;
    background: #f8fafc;
    font-weight: 800;
}

.marksheet-sheet__table {
    width: 100%;
    border-collapse: collapse;
    table-layout: fixed;
    border: 1.5px solid var(--marksheet-line);
    font-size: 0.98rem;
}

.marksheet-sheet__table th,
.marksheet-sheet__table td {
    border: 1px solid rgba(11, 42, 128, 0.72);
    padding: 0.62rem 0.45rem;
    text-align: center;
    vertical-align: middle;
}

.marksheet-sheet__table th {
    color: var(--marksheet-blue);
    font-weight: 900;
    text-transform: uppercase;
    background: #f2f7ff;
}

.marksheet-sheet__table td:nth-child(2) {
    font-weight: 800;
}

.marksheet-sheet__footer {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    padding: 2.2rem 2rem 0.9rem;
}

.marksheet-sheet__signature-block {
    width: 230px;
    text-align: center;
    color: var(--marksheet-blue);
}

.marksheet-sheet__signature-image {
    width: 170px;
    height: 58px;
    object-fit: contain;
    display: block;
    margin: 0 auto 0.25rem;
}

.marksheet-sheet__signature-line {
    border-top: 2px solid var(--marksheet-blue);
    margin-bottom: 0.45rem;
}

.marksheet-sheet__note {
    display: flex;
    gap: 0.5rem;
    font-size: 0.86rem;
    padding: 0 0.4rem;
}

.upload-file-card {
    display: grid;
    grid-template-columns: 64px minmax(0, 1fr);
    gap: 0.85rem;
    align-items: center;
    margin-top: 0.75rem;
    padding: 0.8rem;
    border: 1px solid rgba(100, 116, 139, 0.28);
    border-radius: 0.85rem;
    background: #fff;
}

.upload-file-card[data-state="failed"] { border-color: #ef4444; background: #fff7f7; }
.upload-file-card[data-state="successful"] { border-color: #22c55e; background: #f3fff7; }
.upload-file-card__preview {
    width: 64px;
    height: 64px;
    display: grid;
    place-items: center;
    overflow: hidden;
    border-radius: 0.65rem;
    background: #e8eef5;
    color: #334155;
    font-size: 0.8rem;
    font-weight: 900;
}
.upload-file-card__preview img { width: 100%; height: 100%; object-fit: cover; }
.upload-file-card__body { min-width: 0; }
.upload-file-card__name { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.upload-file-card__meta, .upload-file-card__detail { color: #64748b; font-size: 0.8rem; }
.upload-file-card__status { margin-top: 0.35rem; font-size: 0.86rem; font-weight: 800; }
.upload-file-card__progress { width: 100%; height: 0.65rem; margin: 0.35rem 0 0.2rem; accent-color: #0f766e; }
.upload-file-card__retry {
    margin-top: 0.5rem;
    padding: 0.4rem 0.75rem;
    border: 0;
    border-radius: 0.55rem;
    background: #b91c1c;
    color: #fff;
    font-weight: 800;
}
