:root {
    --navy: #102a43;
    --teal: #0f766e;
    --gold: #d4a64a;
    --sand: #f6f0e7;
    --paper: #fffdf9;
    --ink: #17212b;
    --muted: #5a6775;
    --border: rgba(16, 42, 67, 0.12);
    --shadow: 0 24px 60px rgba(16, 42, 67, 0.12);
    --radius: 24px;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: 'Plus Jakarta Sans', sans-serif;
    color: var(--ink);
    background:
        radial-gradient(circle at top left, rgba(212, 166, 74, 0.12), transparent 28%),
        linear-gradient(180deg, #fffaf2 0%, #f8fbfb 40%, #ffffff 100%);
}

img {
    max-width: 100%;
    display: block;
}

a {
    color: inherit;
    text-decoration: none;
}

.container {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
}

.narrow {
    width: min(780px, 100%);
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 20;
    backdrop-filter: blur(18px);
    background: rgba(255, 250, 242, 0.82);
    border-bottom: 1px solid rgba(16, 42, 67, 0.08);
}

.nav-shell {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 18px 0;
    position: relative;
}

.brand {
    display: flex;
    align-items: center;
    gap: 14px;
}

.brand-mark {
    width: 52px;
    height: 52px;
    display: grid;
    place-items: center;
    border-radius: 18px;
    background: linear-gradient(145deg, var(--navy), #1d4d7d);
    color: white;
    font-weight: 800;
    letter-spacing: 0.08em;
}

.brand-logo-wrap {
    width: 58px;
    height: 58px;
    border-radius: 18px;
    overflow: hidden;
    box-shadow: var(--shadow);
    background: white;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.brand-logo {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.brand-copy {
    display: flex;
    flex-direction: column;
}

.brand-copy strong {
    font-size: 0.98rem;
}

.brand-copy small,
p {
    color: var(--muted);
    line-height: 1.7;
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 22px;
    flex-wrap: wrap;
}

.nav-toggle {
    display: none;
    width: 52px;
    height: 52px;
    border: 0;
    border-radius: 16px;
    background: rgba(16, 42, 67, 0.08);
    padding: 0;
    cursor: pointer;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
}

.nav-toggle span {
    display: block;
    width: 22px;
    height: 2px;
    margin: 0;
    background: var(--navy);
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.nav-user {
    padding: 10px 14px;
    border-radius: 999px;
    background: rgba(16, 42, 67, 0.08);
    color: var(--navy);
    font-weight: 700;
}

.account-menu {
    position: relative;
}

.account-toggle {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    border: 0;
    border-radius: 999px;
    padding: 12px 16px;
    background: rgba(16, 42, 67, 0.08);
    color: var(--navy);
    font: inherit;
    font-weight: 700;
    cursor: pointer;
}

.account-avatar {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    object-fit: cover;
    border: 1px solid rgba(16, 42, 67, 0.08);
    flex: 0 0 auto;
}

.account-avatar-fallback {
    display: inline-grid;
    place-items: center;
    background: linear-gradient(135deg, var(--navy), var(--teal));
    color: white;
    font-size: 0.95rem;
    font-weight: 800;
}

.account-name {
    min-width: 0;
    max-width: 180px;
    overflow-wrap: anywhere;
    word-break: break-word;
}

.account-dropdown {
    display: none;
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    min-width: 180px;
    padding: 10px;
    border: 1px solid rgba(16, 42, 67, 0.08);
    border-radius: 18px;
    background: rgba(255, 250, 242, 0.98);
    box-shadow: var(--shadow);
    z-index: 30;
}

.account-dropdown a {
    display: block;
    padding: 10px 12px;
    border-radius: 12px;
}

.account-dropdown a:hover {
    background: rgba(16, 42, 67, 0.06);
}

.account-menu.account-open .account-dropdown {
    display: block;
}

.nav-button,
.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    padding: 14px 22px;
    font-weight: 700;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.button:hover,
.nav-button:hover {
    transform: translateY(-1px);
}

.nav-button,
.button-primary {
    color: white;
    background: linear-gradient(135deg, var(--navy), var(--teal));
    box-shadow: var(--shadow);
}

.button-secondary {
    color: var(--navy);
    background: rgba(16, 42, 67, 0.08);
}

.button-disabled {
    opacity: 0.5;
    pointer-events: none;
}

.hero,
.inner-hero {
    padding: 72px 0 54px;
}

.flash-wrap {
    padding-top: 16px;
}

.breadcrumb-shell {
    padding: 14px 0 0;
}

.breadcrumb-nav {
    padding: 0 2px;
}

.breadcrumb-list {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.breadcrumb-item {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--muted);
    font-size: 0.92rem;
}

.breadcrumb-item::after {
    content: '/';
    color: rgba(16, 42, 67, 0.3);
}

.breadcrumb-item:last-child::after {
    display: none;
}

.breadcrumb-item a {
    color: var(--navy);
    font-weight: 600;
}

.breadcrumb-item-current span {
    color: var(--muted);
    font-weight: 700;
}

.flash-message {
    margin-bottom: 12px;
    padding: 14px 18px;
    border-radius: 16px;
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
    background: white;
}

.flash-success {
    border-left: 4px solid var(--teal);
}

.flash-error {
    border-left: 4px solid #c0392b;
}

.flash-warning {
    border-left: 4px solid var(--gold);
}

.hero-actions {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
    margin-top: 22px;
}

.hero-note {
    margin-top: 18px;
    max-width: 620px;
    padding: 16px 18px;
    border-left: 4px solid var(--gold);
    border-radius: 0 16px 16px 0;
    background: rgba(255, 255, 255, 0.72);
    color: var(--muted);
}

.hero-grid,
.showcase-grid,
.two-column,
.footer-grid,
.admin-grid,
.course-detail-grid {
    display: grid;
    gap: 32px;
}

.hero-grid,
.showcase-grid,
.two-column {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: center;
}

.course-detail-grid {
    grid-template-columns: minmax(0, 1.5fr) minmax(320px, 0.8fr);
    align-items: start;
}

.hero-copy h1,
.inner-hero h1,
.section-heading h2,
.showcase-grid h2,
.cta-shell h2 {
    margin: 10px 0 16px;
    font-family: 'Cormorant Garamond', serif;
    font-size: clamp(2.4rem, 5vw, 4.8rem);
    line-height: 0.96;
    letter-spacing: -0.03em;
    color: var(--navy);
}

.section-heading h2,
.showcase-grid h2,
.cta-shell h2,
.info-panel h2,
.course-group h2 {
    font-size: clamp(2rem, 4vw, 3.4rem);
}

.eyebrow {
    display: inline-block;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    font-size: 0.74rem;
    color: var(--teal);
    font-weight: 800;
}

.hero-card,
.feature-card,
.program-card,
.testimonial-card,
.info-panel,
.stat-card,
.map-placeholder,
.admission-form {
    background: rgba(255, 255, 255, 0.84);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.glass-card {
    backdrop-filter: blur(12px);
}

.hero-card {
    overflow: hidden;
}

.hero-card-text {
    padding: 22px;
}

.stats-section,
.section {
    padding: 24px 0 72px;
}

.stats-grid,
.cards-grid,
.feature-grid,
.testimonial-grid {
    display: grid;
    gap: 22px;
}

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

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

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

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

.feature-grid,
.cards-grid,
.testimonial-grid,
.admin-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.feature-grid-4 {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.stat-card,
.feature-card,
.program-card,
.testimonial-card,
.info-panel,
.map-placeholder {
    padding: 28px;
}

.stat-card h2 {
    margin: 0 0 8px;
    font-size: 2.6rem;
    color: var(--navy);
}

.stat-card-meta {
    display: block;
    margin-top: 10px;
    color: #667085;
    font-size: 0.88rem;
    line-height: 1.45;
}

.admin-dashboard-stats .stat-card {
    min-height: 178px;
}

.warm-section {
    background: linear-gradient(180deg, rgba(212, 166, 74, 0.12), rgba(255, 255, 255, 0));
}

.showcase-stack {
    position: relative;
    min-height: 520px;
}

.stack-main {
    height: 100%;
    width: 100%;
    object-fit: cover;
    border-radius: 28px;
    box-shadow: var(--shadow);
}

.floating-panel {
    position: absolute;
    right: -12px;
    bottom: 28px;
    width: min(280px, 90%);
    padding: 24px;
    border-radius: 24px;
    background: rgba(16, 42, 67, 0.94);
    color: white;
    box-shadow: var(--shadow);
}

.floating-panel p,
.site-footer p {
    color: rgba(255, 255, 255, 0.78);
}

.check-list,
.number-list {
    margin: 18px 0 0;
    padding-left: 18px;
}

.check-list li,
.number-list li {
    margin-bottom: 12px;
}

.cta-shell {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 36px;
    border-radius: 28px;
    background: linear-gradient(135deg, rgba(16, 42, 67, 0.96), rgba(15, 118, 110, 0.92));
    box-shadow: var(--shadow);
}

.cta-shell h2,
.cta-shell .eyebrow {
    color: white;
}

.admission-form {
    display: grid;
    gap: 14px;
    padding: 28px;
    position: relative;
}

.admission-form label {
    display: grid;
    gap: 8px;
    font-weight: 600;
    color: var(--navy);
}

.checkbox-row {
    display: flex !important;
    align-items: center;
    gap: 12px;
}

.checkbox-row input[type='checkbox'] {
    width: auto;
    transform: scale(1.15);
}

.admin-secret-link {
    position: absolute;
    top: 18px;
    right: 18px;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: rgba(16, 42, 67, 0.44);
    background: rgba(16, 42, 67, 0.05);
    font-weight: 800;
    line-height: 1;
}

.admin-secret-link:hover {
    color: var(--navy);
    background: rgba(16, 42, 67, 0.12);
}

.image-preview {
    display: grid;
    gap: 8px;
}

.image-preview img {
    width: 140px;
    height: 140px;
    object-fit: cover;
    border-radius: 18px;
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
}

.admission-form input,
.admission-form textarea,
.admission-form select,
.inline-form select {
    width: 100%;
    border: 1px solid rgba(16, 42, 67, 0.15);
    border-radius: 16px;
    padding: 14px 16px;
    font: inherit;
    background: #fff;
}

.admission-form input[type='file'] {
    padding: 12px 14px;
    line-height: 1.4;
}

.section-tight {
    padding-top: 0;
}

.table-shell {
    overflow-x: auto;
    background: rgba(255, 255, 255, 0.84);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.data-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 940px;
}

.data-table th,
.data-table td {
    padding: 18px 20px;
    border-bottom: 1px solid rgba(16, 42, 67, 0.08);
    text-align: left;
    vertical-align: top;
}

.data-table th {
    color: var(--navy);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.sortable-header {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: inherit;
}

.sortable-header.sorted {
    color: var(--teal);
}

.sort-indicator {
    font-size: 0.9rem;
    letter-spacing: 0;
}

.data-list {
    display: grid;
    gap: 14px;
}

.data-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 16px 0;
    border-bottom: 1px solid rgba(16, 42, 67, 0.08);
}

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

.data-row-main {
    min-width: 0;
    flex: 1 1 auto;
}

.data-row-side {
    flex: 0 0 auto;
}

.pwa-actions {
    position: fixed;
    right: 20px;
    bottom: 20px;
    display: grid;
    gap: 10px;
    z-index: 40;
}

.pwa-action {
    border: 0;
    border-radius: 999px;
    padding: 12px 18px;
    font: inherit;
    font-weight: 700;
    color: white;
    background: linear-gradient(135deg, var(--navy), var(--teal));
    box-shadow: var(--shadow);
    cursor: pointer;
}

.pwa-action[disabled] {
    opacity: 0.65;
    cursor: default;
}

.data-row small,
.data-table small {
    display: block;
    color: var(--muted);
    overflow-wrap: anywhere;
    word-break: break-word;
}

.batch-meta-stack {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 8px;
}

.info-chip {
    display: inline-flex;
    align-items: center;
    padding: 6px 10px;
    border-radius: 999px;
    background: rgba(16, 42, 67, 0.08);
    color: var(--navy);
    font-size: 0.8rem;
    font-weight: 700;
}

.info-chip-primary {
    background: rgba(15, 118, 110, 0.12);
    color: var(--teal);
}

.info-chip-muted {
    background: rgba(16, 42, 67, 0.06);
    color: var(--muted);
}

.table-cell-stack,
.stacked-meta {
    display: grid;
    gap: 4px;
    min-width: 0;
}

.entity-title {
    display: block;
    overflow-wrap: anywhere;
    word-break: break-word;
}

.table-actions-compact {
    flex-wrap: wrap;
    justify-content: flex-start;
}

.table-menu {
    position: relative;
    display: inline-flex;
}

.table-menu-toggle {
    width: 38px;
    height: 38px;
    border: 1px solid rgba(16, 42, 67, 0.12);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.92);
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    padding: 0;
    cursor: pointer;
}

.table-menu-toggle span {
    width: 4px;
    height: 4px;
    border-radius: 999px;
    background: var(--navy);
}

.table-menu-dropdown {
    display: none;
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    min-width: 190px;
    padding: 10px;
    border: 1px solid rgba(16, 42, 67, 0.08);
    border-radius: 18px;
    background: rgba(255, 250, 242, 0.98);
    box-shadow: var(--shadow);
    z-index: 25;
}

.table-menu.table-menu-open .table-menu-dropdown {
    display: block;
}

.table-menu-dropdown a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border-radius: 12px;
    color: var(--ink);
}

.table-menu-dropdown a:hover {
    background: rgba(16, 42, 67, 0.06);
}

.menu-item-icon {
    width: 18px;
    text-align: center;
    color: var(--teal);
    font-weight: 700;
}

.soft-panel {
    margin-top: 18px;
    padding: 18px 20px;
    border-radius: 18px;
    border: 1px solid rgba(16, 42, 67, 0.08);
    background: rgba(16, 42, 67, 0.04);
    box-shadow: none;
}

.teacher-login-summary h3 {
    margin: 0 0 10px;
    font-size: 1rem;
}

.profile-meta-list {
    display: grid;
    gap: 12px;
    margin-top: 18px;
    text-align: left;
}

.profile-meta-list p {
    display: grid;
    gap: 4px;
    margin: 0;
}

.profile-meta-list strong,
.profile-meta-list span {
    overflow-wrap: anywhere;
    word-break: break-word;
}

.align-top {
    align-items: flex-start;
}

.status-badge {
    display: inline-flex;
    align-items: center;
    padding: 8px 12px;
    border-radius: 999px;
    font-size: 0.82rem;
    font-weight: 700;
}

.status-active,
.status-approved,
.status-closed {
    background: rgba(15, 118, 110, 0.12);
    color: var(--teal);
}

.status-pending,
.status-new {
    background: rgba(212, 166, 74, 0.15);
    color: #8b5e12;
}

.status-rejected,
.status-unpaid {
    background: rgba(192, 57, 43, 0.12);
    color: #c0392b;
}

.batch-status-stack {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
}

.notice-scope-card {
    margin: 8px 0 12px;
}

.notice-scope-card h3 {
    margin: 0 0 8px;
}

.notice-scope-title {
    margin: 0;
    color: var(--navy);
    font-weight: 700;
}

.notice-scope-meta {
    margin-top: 8px;
    color: var(--slate);
    line-height: 1.7;
}

.notice-student-results {
    display: grid;
    gap: 10px;
    margin-top: 12px;
}

.notice-student-result,
.notice-selected-student {
    width: 100%;
    padding: 14px 16px;
    border: 1px solid rgba(16, 42, 67, 0.12);
    border-radius: 16px;
    background: rgba(16, 42, 67, 0.04);
    text-align: left;
}

.notice-student-result {
    cursor: pointer;
}

.notice-student-result:hover {
    background: rgba(15, 118, 110, 0.08);
    border-color: rgba(15, 118, 110, 0.25);
}

.notice-student-result strong,
.notice-selected-student strong {
    display: block;
    color: var(--navy);
}

.notice-student-result small,
.notice-selected-student small,
.notice-student-result-empty {
    display: block;
    margin-top: 6px;
    color: var(--slate);
}

.is-hidden {
    display: none !important;
}

.action-row,
.toolbar-row,
.panel-head,
.inline-form {
    display: flex;
    align-items: center;
    gap: 12px;
}

.inline-form-stacked {
    flex-direction: column;
    align-items: stretch;
}

.inline-form-stacked input[type="password"] {
    width: 100%;
    max-width: 320px;
}

.inline-form-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.report-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
    align-items: end;
}

.report-form {
    gap: 18px;
}

.report-actions {
    display: flex;
    align-items: end;
}

.batch-stats-row {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.batch-filter-grid {
    grid-template-columns: 1.4fr 1fr 1fr 0.7fr;
}

.toolbar-row,
.panel-head {
    justify-content: space-between;
}

.admin-workspace {
    display: grid;
}

.admin-utility-section {
    padding: 8px 0 36px;
}

.admin-page-kicker {
    color: var(--navy);
    font-size: 1rem;
    font-weight: 800;
}

.student-table-title p {
    margin: 0;
    color: var(--muted);
}

.student-table-card {
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    border: 1px solid var(--border);
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: var(--shadow);
}

.student-table-card > .data-table,
.table-shell > .data-table {
    min-width: 760px;
}

.student-table-controls {
    display: grid;
}

.student-table-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
    padding: 18px 20px 14px;
    border-bottom: 1px solid rgba(16, 42, 67, 0.08);
}

.student-table-title {
    display: grid;
    gap: 4px;
}

.student-table-head-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.student-table-head-right {
    display: flex;
    align-items: flex-end;
    gap: 16px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.student-table-meta-controls {
    display: flex;
    align-items: flex-end;
    gap: 10px;
    flex-wrap: wrap;
}

.student-toolbar {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    align-items: center;
    gap: 0;
    padding: 14px 20px;
    border-bottom: 1px solid rgba(16, 42, 67, 0.08);
    background: rgba(246, 240, 231, 0.34);
}

.student-search-wrap {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
}

.student-search-input {
    width: 100%;
    min-width: 0;
    border: 1px solid rgba(16, 42, 67, 0.14);
    border-radius: 12px;
    padding: 11px 14px;
    font: inherit;
    background: #fff;
}

.student-search-button {
    border: 0;
    border-radius: 12px;
    padding: 11px 14px;
    background: rgba(16, 42, 67, 0.08);
    color: var(--navy);
    font: inherit;
    font-weight: 700;
    cursor: pointer;
}

.student-toolbar-field {
    display: grid;
    gap: 6px;
}

.student-toolbar-field span {
    color: var(--muted);
    font-size: 0.74rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.student-toolbar-field select {
    border: 1px solid rgba(16, 42, 67, 0.14);
    border-radius: 12px;
    padding: 9px 10px;
    font: inherit;
    background: #fff;
    color: var(--ink);
}

.student-toolbar-field select,
.student-toolbar-field-small select {
    min-width: 96px;
}

.student-toolbar-field-small select {
    min-width: 88px;
}

.student-reset-link {
    color: var(--navy);
    font-weight: 700;
    padding: 10px 4px 0;
    align-self: flex-end;
}

.student-table-shell {
    border: 0;
    border-radius: 0;
    box-shadow: none;
    background: transparent;
}

.student-data-table {
    min-width: 860px;
}

.status-verified_unenrolled {
    background: rgba(0, 112, 201, 0.12);
    color: #0a5ea8;
}

.status-email_unverified {
    background: rgba(212, 166, 74, 0.15);
    color: #8b5e12;
}

.panel-subtitle {
    margin: 4px 0 0;
    color: var(--muted);
}

.enrollment-shell {
    display: grid;
    gap: 16px;
}

.enrollment-toolbar {
    display: grid;
    grid-template-columns: minmax(280px, 1.6fr) repeat(3, minmax(140px, 0.7fr)) auto;
    gap: 12px;
    align-items: end;
    padding: 18px 20px;
    border: 1px solid rgba(16, 42, 67, 0.08);
    border-radius: 18px;
    background: rgba(246, 240, 231, 0.34);
}

.enrollment-toolbar-field {
    display: grid;
    gap: 6px;
}

.enrollment-toolbar-field span {
    color: var(--muted);
    font-size: 0.74rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.enrollment-toolbar-field select,
.enrollment-toolbar-field input {
    width: 100%;
    border: 1px solid rgba(16, 42, 67, 0.14);
    border-radius: 12px;
    padding: 11px 14px;
    font: inherit;
    background: #fff;
    color: var(--ink);
}

.enrollment-toolbar-field-small select {
    min-width: 0;
}

.enrollment-batch-summary,
.enrollment-selected-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}

.enrollment-batch-summary {
    padding: 14px 18px;
    border: 1px solid rgba(16, 42, 67, 0.08);
    border-radius: 18px;
    background: rgba(16, 42, 67, 0.04);
}

.enrollment-batch-summary strong,
.enrollment-selected-grid strong {
    display: block;
}

.enrollment-batch-summary small,
.enrollment-selected-grid small {
    display: block;
    margin-top: 4px;
    color: var(--muted);
}

.enrollment-selected-card {
    display: grid;
    gap: 16px;
}

.student-enrollment-summary,
.student-enrollment-browser {
    display: grid;
    gap: 18px;
}

.student-enrollment-summary-grid,
.student-enrollment-confirm-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
}

.student-enrollment-summary-grid strong,
.student-enrollment-confirm-grid strong {
    display: block;
}

.student-enrollment-summary-grid small,
.student-enrollment-confirm-grid small {
    display: block;
    margin-top: 4px;
    color: var(--muted);
}

.student-enrollment-filter {
    display: grid;
    grid-template-columns: minmax(280px, 1.5fr) minmax(180px, 0.7fr) auto;
    gap: 12px;
    align-items: end;
}

.student-enrollment-results {
    min-height: 120px;
}

.student-enrollment-selection-box {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 16px 18px;
    border: 1px solid rgba(16, 42, 67, 0.08);
    border-radius: 18px;
    background: rgba(16, 42, 67, 0.04);
}

.student-enrollment-selection-box strong,
.student-enrollment-selection-box small {
    display: block;
}

.student-enrollment-selection-box small {
    margin-top: 4px;
    color: var(--muted);
}

.student-enrollment-results.is-loading {
    opacity: 0.65;
    pointer-events: none;
}

.student-batch-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 16px;
}

.student-batch-card {
    display: grid;
    gap: 16px;
    padding: 18px;
    border: 1px solid rgba(16, 42, 67, 0.08);
    border-radius: 18px;
    background: linear-gradient(180deg, rgba(246, 240, 231, 0.5), rgba(255, 255, 255, 0.98));
    box-shadow: 0 10px 24px rgba(16, 42, 67, 0.08);
}

.student-batch-card.is-selected {
    border-color: rgba(24, 119, 242, 0.45);
    box-shadow: 0 16px 32px rgba(24, 119, 242, 0.14);
}

.student-batch-card-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
}

.student-batch-card-head h3 {
    margin: 4px 0 0;
}

.student-batch-course {
    color: var(--muted);
    font-size: 0.74rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.student-batch-meta {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}

.student-batch-meta strong,
.student-batch-meta small {
    display: block;
}

.student-batch-meta small {
    margin-top: 4px;
    color: var(--muted);
}

.student-batch-card-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.payment-student-summary {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
    margin-bottom: 18px;
}

.payment-student-summary strong,
.payment-student-summary small {
    display: block;
}

.payment-student-summary small {
    margin-top: 4px;
    color: var(--muted);
}

.payment-student-summary-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
}

.payment-student-picker {
    display: grid;
    gap: 18px;
}

.payment-student-search-form {
    display: grid;
    gap: 14px;
}

.payment-student-results {
    display: grid;
    gap: 12px;
}

.payment-student-result-card {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
    align-items: center;
    padding: 16px 18px;
    border: 1px solid rgba(16, 42, 67, 0.08);
    border-radius: 16px;
    background: rgba(16, 42, 67, 0.03);
}

.payment-student-result-card strong,
.payment-student-result-card small {
    display: block;
}

.payment-student-result-card small {
    margin-top: 4px;
    color: var(--muted);
}

.payment-student-result-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: flex-end;
}

.modal-backdrop {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: rgba(16, 42, 67, 0.56);
}

.modal-backdrop[hidden] {
    display: none;
}

.modal-card {
    width: min(100%, 720px);
    max-height: calc(100vh - 40px);
    overflow: auto;
    padding: 22px;
    border-radius: 22px;
    background: #fff;
    box-shadow: 0 20px 50px rgba(16, 42, 67, 0.28);
}

.student-enrollment-modal-card {
    display: grid;
    gap: 18px;
}

.enrollment-results-head {
    margin-top: 6px;
}

.batch-enroll-hero {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
}

.batch-enroll-eyebrow {
    display: inline-block;
    margin-bottom: 8px;
    color: var(--muted);
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.batch-enroll-hero h2 {
    margin: 0;
}

.batch-search-panel {
    padding: 18px 20px;
    border: 1px solid rgba(16, 42, 67, 0.08);
    border-radius: 18px;
    background: linear-gradient(180deg, rgba(246, 240, 231, 0.42), rgba(255, 255, 255, 0.92));
}

.batch-search-grid {
    display: grid;
    grid-template-columns: minmax(320px, 1.7fr) minmax(160px, 0.7fr) auto;
    gap: 12px;
    align-items: end;
}

.batch-search-field-wide {
    min-width: 0;
}

.batch-search-actions {
    justify-content: flex-end;
}

.batch-enroll-selected {
    border: 1px solid rgba(15, 118, 110, 0.16);
    background: linear-gradient(180deg, rgba(15, 118, 110, 0.06), rgba(255, 255, 255, 0.98));
}

.batch-enroll-selected-head {
    display: grid;
    grid-template-columns: auto minmax(0, 1.4fr) minmax(200px, 0.9fr);
    gap: 16px;
    align-items: center;
}

.candidate-avatar {
    width: 46px;
    height: 46px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    background: rgba(16, 42, 67, 0.08);
    color: var(--navy);
    font-weight: 800;
    letter-spacing: 0.04em;
}

.candidate-avatar-large {
    width: 58px;
    height: 58px;
    border-radius: 18px;
    font-size: 1rem;
}

.batch-enroll-selected-copy,
.candidate-result-copy,
.candidate-result-meta {
    display: grid;
    gap: 4px;
}

.batch-enroll-selected-copy strong,
.candidate-result-copy strong {
    color: var(--navy);
}

.batch-enroll-selected-copy small,
.batch-enroll-selected-status small,
.candidate-result-copy small,
.candidate-result-meta small {
    color: var(--muted);
}

.batch-enroll-selected-status {
    display: grid;
    gap: 8px;
    justify-items: start;
}

.batch-enroll-selected-actions {
    justify-content: flex-end;
}

.candidate-results-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 16px;
}

.candidate-result-card {
    display: grid;
    gap: 14px;
    padding: 18px;
    border: 1px solid rgba(16, 42, 67, 0.08);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 14px 28px rgba(16, 24, 40, 0.06);
}

.candidate-result-card-selected {
    border-color: rgba(15, 118, 110, 0.28);
    box-shadow: 0 18px 32px rgba(15, 118, 110, 0.12);
}

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

.candidate-result-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.candidate-result-actions form {
    margin: 0;
}

.candidate-empty-state {
    border: 1px dashed rgba(16, 42, 67, 0.16);
    border-radius: 18px;
    background: rgba(246, 240, 231, 0.24);
}

.batch-enrollment-toolbar {
    grid-template-columns: minmax(320px, 1.5fr) minmax(160px, 0.7fr) auto;
}

.batch-student-search {
    width: min(320px, 100%);
}

.batch-fold-grid {
    align-items: start;
}

.admin-fold {
    border: 1px solid rgba(16, 42, 67, 0.08);
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: var(--shadow);
    overflow: hidden;
}

.admin-fold summary {
    list-style: none;
}

.admin-fold summary::-webkit-details-marker {
    display: none;
}

.admin-fold-summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 18px 20px;
    cursor: pointer;
}

.admin-fold-summary strong,
.admin-fold-summary small,
.admin-fold-meta span {
    display: block;
}

.admin-fold-summary small {
    margin-top: 4px;
    color: var(--muted);
}

.admin-fold-meta {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.admin-fold-meta span {
    padding: 8px 12px;
    border-radius: 999px;
    background: rgba(16, 42, 67, 0.07);
    color: var(--navy);
    font-size: 0.9rem;
    font-weight: 700;
}

.admin-fold-body {
    padding: 0 20px 20px;
}

.detail-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}

.detail-item {
    display: grid;
    gap: 6px;
    padding: 14px 16px;
    border-radius: 16px;
    background: rgba(16, 42, 67, 0.04);
}

.detail-item span {
    color: var(--muted);
    font-size: 0.76rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.detail-item strong {
    color: var(--navy);
}

.detail-item-wide {
    grid-column: span 3;
}

.student-data-table th {
    padding-top: 14px;
    padding-bottom: 14px;
    font-size: 0.76rem;
    color: var(--muted);
}

.student-sort-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: inherit;
}

.student-sort-indicator {
    color: rgba(16, 42, 67, 0.35);
    font-size: 0.82rem;
}

.student-sort-indicator-active {
    color: var(--navy);
}

.student-data-table td {
    padding-top: 14px;
    padding-bottom: 14px;
}

.student-primary-cell,
.student-contact-cell {
    display: grid;
    gap: 4px;
}

.student-primary-cell small,
.student-contact-cell small {
    font-size: 0.82rem;
}

.student-name-link {
    color: var(--navy);
    font-weight: 800;
}

.student-contact-cell strong {
    font-size: 0.95rem;
    color: var(--ink);
}

.student-actions-col {
    width: 240px;
}

.student-row-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 6px;
    flex-wrap: wrap;
}

.table-action-link,
.table-action-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    padding: 8px 10px;
    font: inherit;
    font-weight: 700;
    white-space: nowrap;
    font-size: 0.88rem;
}

.table-action-link {
    color: var(--navy);
    background: rgba(16, 42, 67, 0.06);
}

.table-action-button {
    border: 0;
    cursor: pointer;
    background: rgba(16, 42, 67, 0.1);
    color: var(--navy);
}

.table-action-button.success {
    background: rgba(15, 118, 110, 0.14);
    color: var(--teal);
}

.table-action-button.danger {
    background: rgba(192, 57, 43, 0.12);
    color: #c0392b;
}

.student-empty-state {
    display: grid;
    gap: 6px;
    justify-items: center;
    padding: 42px 16px;
    text-align: center;
}

.student-empty-state strong {
    color: var(--navy);
    font-size: 1rem;
}

.student-empty-state p {
    margin: 0;
    max-width: 420px;
}

.student-table-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 14px 20px;
    border-top: 1px solid rgba(16, 42, 67, 0.08);
    background: rgba(246, 240, 231, 0.4);
}

.student-footer-meta {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
    color: var(--muted);
    font-size: 0.92rem;
    font-weight: 600;
}

.student-pagination {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    flex-wrap: wrap;
}

.student-page-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    padding: 8px 10px;
    border-radius: 10px;
    background: rgba(16, 42, 67, 0.08);
    color: var(--navy);
    font-weight: 700;
    font-size: 0.9rem;
}

.student-page-link-active {
    background: linear-gradient(135deg, var(--navy), var(--teal));
    color: white;
}

.student-page-gap {
    color: var(--muted);
    font-weight: 700;
    padding: 0 2px;
}

.filter-pills {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.pill {
    padding: 10px 14px;
    border-radius: 999px;
    background: rgba(16, 42, 67, 0.08);
    color: var(--navy);
    font-weight: 700;
}

.pill-active {
    background: linear-gradient(135deg, var(--navy), var(--teal));
    color: white;
}

.mini-button {
    padding: 10px 14px;
    border: 0;
    border-radius: 12px;
    background: rgba(16, 42, 67, 0.1);
    color: var(--navy);
    font: inherit;
    font-weight: 700;
    cursor: pointer;
}

.mini-button.success {
    background: rgba(15, 118, 110, 0.14);
    color: var(--teal);
}

.mini-button.danger {
    background: rgba(192, 57, 43, 0.12);
    color: #c0392b;
}

.text-link {
    color: var(--teal);
    font-weight: 700;
}

.grouped-courses {
    display: grid;
    gap: 40px;
}

.compact h3 {
    margin-bottom: 8px;
}

.course-card {
    overflow: hidden;
    padding: 0;
}

.course-card-link {
    display: block;
    height: 100%;
}

.course-cover {
    width: 100%;
    aspect-ratio: 16 / 10;
    object-fit: cover;
    background: linear-gradient(135deg, rgba(16, 42, 67, 0.12), rgba(15, 118, 110, 0.12));
}

.featured-course-cover {
    display: block;
    height: auto;
    aspect-ratio: auto;
    object-fit: contain;
    object-position: center;
    background: none;
}

.featured-course-card .featured-course-cover {
    min-height: 0;
}

.course-card-body {
    padding: 24px 24px 28px;
}

.course-duration {
    display: inline-block;
    margin-bottom: 8px;
    padding: 8px 12px;
    border-radius: 999px;
    background: rgba(16, 42, 67, 0.08);
    color: var(--navy);
    font-size: 0.88rem;
    font-weight: 700;
}

.course-meta-row,
.course-card-footer,
.sidebar-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.course-meta-row {
    margin-bottom: 10px;
}

.course-fee,
.course-tag {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--teal);
}

.course-card-footer {
    margin-top: 18px;
}

.public-course-card {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.public-course-card:hover {
    transform: translateY(-4px);
}

.promo-batch-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px;
}

.promo-batch-card {
    overflow: hidden;
    border: 1px solid var(--border);
    border-radius: 28px;
    background: rgba(255, 255, 255, 0.9);
    box-shadow: var(--shadow);
}

.promo-batch-media {
    display: block;
}

.promo-batch-media img {
    width: 100%;
    aspect-ratio: 16 / 10;
    object-fit: cover;
    background: linear-gradient(135deg, rgba(16, 42, 67, 0.12), rgba(15, 118, 110, 0.12));
}

.promo-batch-cover {
    display: block;
    height: auto;
    aspect-ratio: auto;
    object-fit: contain;
    object-position: center;
    background: none;
}

.promo-batch-body {
    display: grid;
    gap: 12px;
    padding: 22px 22px 24px;
}

.promo-batch-topline {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
}

.promo-batch-topline span {
    color: var(--teal);
    font-size: 0.76rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.promo-batch-topline strong {
    padding: 6px 10px;
    border-radius: 999px;
    background: rgba(16, 42, 67, 0.08);
    color: var(--navy);
    font-size: 0.82rem;
}

.promo-batch-body h3 {
    margin: 0;
    font-size: 1.3rem;
}

.promo-batch-body h3 a {
    color: var(--navy);
}

.promo-batch-body p {
    margin: 0;
}

.promo-batch-facts {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px 12px;
    padding: 14px 16px;
    border-radius: 18px;
    background: rgba(246, 240, 231, 0.72);
}

.promo-batch-facts small {
    display: block;
    color: var(--muted);
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-weight: 800;
}

.promo-batch-facts strong {
    color: var(--navy);
    font-size: 0.94rem;
}

.promo-batch-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    flex-wrap: wrap;
    padding-top: 2px;
    color: var(--muted);
    font-size: 0.9rem;
    font-weight: 700;
}

.course-detail-cover {
    width: 100%;
    border-radius: 28px;
    box-shadow: var(--shadow);
    margin-bottom: 24px;
}

.batch-promo-hero {
    padding: 42px 0 54px;
    background:
        radial-gradient(circle at top right, rgba(15, 118, 110, 0.18), transparent 24%),
        radial-gradient(circle at left center, rgba(212, 166, 74, 0.18), transparent 28%),
        linear-gradient(135deg, #0e2237 0%, #102a43 42%, #0f766e 100%);
    color: white;
}

.batch-promo-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.9fr);
    gap: 28px;
    align-items: center;
}

.batch-promo-tag {
    display: inline-flex;
    align-items: center;
    padding: 8px 14px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.12);
    font-size: 0.8rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.batch-promo-copy h1 {
    margin: 14px 0 12px;
    font-family: 'Cormorant Garamond', serif;
    font-size: clamp(3rem, 5vw, 5.4rem);
    line-height: 0.95;
    color: white;
}

.batch-promo-lead {
    max-width: 620px;
    color: rgba(255, 255, 255, 0.82);
    font-size: 1.04rem;
}

.batch-promo-meta {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    margin-top: 22px;
}

.batch-promo-meta-item,
.batch-countdown-card,
.batch-promo-floating-card,
.batch-promo-contact-card {
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.08);
    box-shadow: var(--shadow);
    backdrop-filter: blur(14px);
}

.batch-promo-meta-item {
    padding: 16px 18px;
}

.batch-promo-meta-item small,
.batch-promo-floating-card small,
.batch-countdown-head span {
    display: block;
    color: rgba(255, 255, 255, 0.68);
    font-size: 0.76rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    font-weight: 800;
}

.batch-promo-meta-item strong,
.batch-countdown-head strong,
.batch-promo-floating-card strong {
    display: block;
    margin-top: 8px;
    font-size: 1.05rem;
    color: white;
}

.batch-countdown-card {
    margin-top: 20px;
    padding: 18px;
}

.batch-countdown-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
    margin-top: 16px;
}

.batch-countdown-unit {
    padding: 14px 10px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.08);
    text-align: center;
}

.batch-countdown-unit strong {
    display: block;
    font-size: 1.8rem;
    color: white;
}

.batch-countdown-unit small {
    color: rgba(255, 255, 255, 0.68);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-size: 0.72rem;
}

.batch-promo-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 22px;
}

.batch-promo-actions .button-secondary {
    background: rgba(255, 255, 255, 0.12);
    color: white;
}

.batch-promo-visual {
    position: relative;
    min-height: 100%;
}

.batch-promo-image-frame {
    overflow: hidden;
    border-radius: 32px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    box-shadow: var(--shadow);
    background:
        radial-gradient(circle at top, rgba(255, 255, 255, 0.08), transparent 40%),
        linear-gradient(180deg, rgba(5, 16, 29, 0.96), rgba(16, 42, 67, 0.92));
    padding: 18px;
}

.batch-promo-image-frame img {
    width: 100%;
    height: 520px;
    object-fit: contain;
    object-position: center center;
    background: linear-gradient(180deg, rgba(5, 16, 29, 0.96), rgba(16, 42, 67, 0.92));
    border-radius: 22px;
}

.batch-promo-floating-card {
    position: absolute;
    right: 18px;
    bottom: 18px;
    padding: 18px 20px;
    min-width: 220px;
}

.batch-promo-section {
    padding-top: 26px;
}

.batch-promo-info-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 22px;
}

.batch-promo-contact-card {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 22px;
    padding: 28px 30px;
    background: linear-gradient(135deg, rgba(16, 42, 67, 0.96), rgba(15, 118, 110, 0.92));
    color: white;
}

.batch-promo-contact-card h2,
.batch-promo-contact-card .eyebrow {
    color: white;
}

.batch-promo-contact-card p,
.batch-promo-contact-meta p {
    color: rgba(255, 255, 255, 0.82);
    margin: 0 0 10px;
}

.batch-promo-contact-meta {
    width: min(360px, 100%);
}

.batch-promo-contact-card .text-link {
    color: white;
}

.course-sidebar {
    position: sticky;
    top: 100px;
}

.teacher-profile-grid,
.teacher-summary-grid {
    display: grid;
    gap: 22px;
}

.teacher-dashboard-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 22px;
}

.teacher-dashboard-card {
    height: 100%;
}

.teacher-dashboard-metric {
    display: grid;
    gap: 8px;
    align-content: start;
}

.teacher-dashboard-metric h2,
.teacher-dashboard-info h2 {
    margin-bottom: 0;
}

.teacher-dashboard-metric p {
    margin: 0;
}

.teacher-dashboard-info {
    display: grid;
    gap: 14px;
    align-content: start;
}

.teacher-dashboard-identity {
    display: flex;
    align-items: center;
    gap: 14px;
    min-width: 0;
}

.teacher-dashboard-avatar {
    width: 68px;
    height: 68px;
    border-radius: 50%;
    object-fit: cover;
    border: 1px solid rgba(16, 42, 67, 0.08);
    flex: 0 0 auto;
}

.teacher-dashboard-avatar-fallback {
    display: inline-grid;
    place-items: center;
    background: linear-gradient(135deg, var(--navy), var(--teal));
    color: white;
    font-size: 1.35rem;
    font-weight: 800;
}

.teacher-dashboard-identity .stacked-meta h2,
.teacher-dashboard-identity .stacked-meta p {
    margin: 0;
}

.teacher-dashboard-info .profile-meta-list {
    margin-top: 0;
}

.teacher-dashboard-info .profile-meta-list strong,
.teacher-dashboard-info .profile-meta-list span {
    overflow-wrap: anywhere;
    word-break: break-word;
}

.teacher-dashboard-table .panel-head {
    align-items: end;
}

.teacher-dashboard-table td {
    vertical-align: top;
}

.student-hero-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 18px;
}

.student-hero-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(280px, 0.85fr);
    gap: 24px;
    align-items: end;
}

.student-hero-copy h1 {
    overflow-wrap: anywhere;
    word-break: break-word;
}

.student-hero-chip {
    display: inline-flex;
    align-items: center;
    padding: 10px 14px;
    border-radius: 999px;
    background: rgba(16, 42, 67, 0.08);
    color: var(--navy);
    font-weight: 700;
}

.student-hero-summary {
    display: grid;
    gap: 18px;
    background: rgba(255, 255, 255, 0.92);
    color: var(--ink);
}

.student-hero-summary-top {
    display: grid;
    gap: 4px;
}

.student-hero-summary-top strong {
    font-size: 1.05rem;
    overflow-wrap: anywhere;
    word-break: break-word;
}

.student-hero-summary-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.student-hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.s-dashboard-hero {
    padding: 48px 0 40px;
    background: linear-gradient(135deg, rgba(15, 118, 110, 0.03), rgba(15, 118, 110, 0.08));
    border-bottom: 1px solid var(--border);
}

.s-dashboard-hero-inner {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 32px;
    flex-wrap: wrap;
}

.s-dashboard-welcome {
    display: flex;
    align-items: center;
    gap: 20px;
}

.s-dashboard-avatar {
    width: 72px;
    height: 72px;
    border-radius: 20px;
    background: linear-gradient(145deg, var(--navy), #1d4d7d);
    color: white;
    display: grid;
    place-items: center;
    font-weight: 700;
    font-size: 24px;
    flex-shrink: 0;
    overflow: hidden;
}

.s-dashboard-avatar-image,
.s-dashboard-avatar-fallback {
    width: 100%;
    height: 100%;
}

.s-dashboard-avatar-image {
    display: block;
    object-fit: cover;
}

.s-dashboard-avatar-fallback {
    display: grid;
    place-items: center;
}

.s-dashboard-welcome-text .eyebrow {
    display: block;
    margin-bottom: 4px;
}

.s-dashboard-welcome-text h1 {
    margin: 0 0 12px;
    font-size: 28px;
    color: var(--navy);
}

.s-dashboard-welcome-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.s-meta-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border-radius: 8px;
    background: white;
    border: 1px solid var(--border);
    font-size: 13px;
    color: var(--ink);
}

.s-meta-chip-success { background: rgba(34, 197, 94, 0.1); border-color: rgba(34, 197, 94, 0.2); color: #16a34a; }
.s-meta-chip-warning { background: rgba(234, 179, 8, 0.1); border-color: rgba(234, 179, 8, 0.2); color: #a16207; }
.s-meta-chip-danger { background: rgba(220, 38, 38, 0.1); border-color: rgba(220, 38, 38, 0.2); color: #dc2626; }

.s-dashboard-quick-stats {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.s-stat-card {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px 20px;
    background: white;
    border: 1px solid var(--border);
    border-radius: 14px;
    min-width: 140px;
}

.s-stat-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: grid;
    place-items: center;
}

.s-stat-icon-batches { background: rgba(15, 118, 110, 0.1); color: var(--teal); }
.s-stat-icon-requests { background: rgba(59, 130, 246, 0.1); color: #3b82f6; }
.s-stat-icon-due { background: rgba(234, 179, 8, 0.1); color: #a16207; }
.s-stat-icon-result { background: rgba(168, 85, 247, 0.1); color: #9333ea; }

.s-stat-info {
    display: flex;
    flex-direction: column;
}

.s-stat-value {
    font-size: 20px;
    font-weight: 700;
    color: var(--navy);
    line-height: 1.2;
}

.s-stat-label {
    font-size: 12px;
    color: var(--muted);
}

.s-dashboard-quick-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.s-quick-action {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 20px;
    border-radius: 10px;
    font-weight: 600;
    font-size: 14px;
    text-decoration: none;
    background: white;
    border: 1px solid var(--border);
    color: var(--navy);
    transition: all 0.2s ease;
}

.s-quick-action:hover {
    border-color: var(--teal);
    color: var(--teal);
}

.s-quick-action-primary {
    background: var(--teal);
    border-color: var(--teal);
    color: white;
}

.s-quick-action-primary:hover {
    background: #0d6360;
    border-color: #0d6360;
    color: white;
}

.s-section-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 24px;
}

.s-section-header h2 {
    margin: 4px 0 0;
    font-size: 24px;
    color: var(--navy);
}

.s-toolbox-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 16px;
}

.s-tool-card {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px;
    background: white;
    border: 1px solid var(--border);
    border-radius: 14px;
    text-decoration: none;
    transition: all 0.2s ease;
}

.s-tool-card:hover {
    border-color: var(--teal);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
    transform: translateY(-2px);
}

.s-tool-icon {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    background: rgba(15, 118, 110, 0.08);
    color: var(--teal);
    display: grid;
    place-items: center;
    flex-shrink: 0;
}

.s-tool-content {
    flex: 1;
}

.s-tool-content h3 {
    margin: 0 0 4px;
    font-size: 16px;
    color: var(--navy);
}

.s-tool-content p {
    margin: 0;
    font-size: 13px;
    color: var(--muted);
    line-height: 1.4;
}

.s-tool-arrow {
    color: var(--border);
    transition: all 0.2s ease;
}

.s-tool-card:hover .s-tool-arrow {
    color: var(--teal);
    transform: translateX(4px);
}

.s-batch-switcher {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    padding-bottom: 8px;
    margin-bottom: 24px;
}

.s-batch-tab {
    flex: 0 0 auto;
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 16px 20px;
    background: white;
    border: 2px solid var(--border);
    border-radius: 14px;
    text-decoration: none;
    transition: all 0.2s ease;
    min-width: 200px;
}

.s-batch-tab:hover {
    border-color: var(--teal);
}

.s-batch-tab.active {
    border-color: var(--teal);
    background: rgba(15, 118, 110, 0.03);
}

.s-batch-tab-info strong {
    display: block;
    font-size: 15px;
    color: var(--navy);
    margin-bottom: 2px;
}

.s-batch-tab-info small {
    font-size: 13px;
    color: var(--muted);
}

.s-batch-tab-schedule {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: var(--teal);
}

.s-batch-workspace {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.s-all-batches-panel {
    display: grid;
    gap: 16px;
    padding: 24px;
    background: white;
    border: 1px solid var(--border);
    border-radius: 16px;
}

.s-all-batches-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 14px;
}

.s-all-batch-card {
    display: grid;
    gap: 14px;
    padding: 16px 18px;
    border: 1px solid var(--border);
    border-radius: 14px;
    background: rgba(248, 250, 252, 0.85);
}

.s-all-batch-card.active {
    border-color: var(--teal);
    background: rgba(15, 118, 110, 0.04);
}

.s-all-batch-card-main strong,
.s-all-batch-card-main small {
    display: block;
}

.s-all-batch-card-main strong {
    color: var(--navy);
}

.s-all-batch-card-main small {
    margin-top: 4px;
    color: var(--muted);
}

.s-all-batch-card-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.s-batch-hero {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 24px;
    padding: 24px;
    background: white;
    border: 1px solid var(--border);
    border-radius: 16px;
}

.s-batch-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    background: rgba(15, 118, 110, 0.1);
    color: var(--teal);
    font-size: 12px;
    font-weight: 600;
    border-radius: 8px;
    margin-bottom: 8px;
}

.s-batch-hero-info h3 {
    margin: 0 0 4px;
    font-size: 22px;
    color: var(--navy);
}

.s-batch-hero-info > p {
    margin: 0 0 16px;
    color: var(--muted);
}

.s-batch-hero-meta {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.s-batch-hero-actions {
    flex-shrink: 0;
}

.s-workspace-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.s-workspace-card {
    background: white;
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 20px;
    display: flex;
    flex-direction: column;
}

.s-workspace-card-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}

.s-workspace-card-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: grid;
    place-items: center;
}

.s-workspace-card-icon-result { background: rgba(168, 85, 247, 0.1); color: #9333ea; }
.s-workspace-card-icon-attendance { background: rgba(34, 197, 94, 0.1); color: #16a34a; }
.s-workspace-card-icon-fees { background: rgba(234, 179, 8, 0.1); color: #a16207; }

.s-workspace-card-header h3 {
    margin: 0;
    font-size: 16px;
    color: var(--navy);
}

.s-workspace-card-body {
    flex: 1;
    margin-bottom: 16px;
}

.s-result-display {
    display: flex;
    align-items: center;
    gap: 12px;
}

.s-result-value {
    font-size: 32px;
    font-weight: 700;
    color: var(--navy);
}

.s-attendance-display {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.s-attendance-value {
    font-size: 28px;
    font-weight: 700;
    color: var(--navy);
}

.s-attendance-bar {
    height: 8px;
    background: var(--sand);
    border-radius: 4px;
    overflow: hidden;
}

.s-attendance-fill {
    height: 100%;
    border-radius: 4px;
    transition: width 0.3s ease;
}

.s-attendance-fill.success { background: #16a34a; }
.s-attendance-fill.warning { background: #a16207; }
.s-attendance-fill.danger { background: #dc2626; }

.s-fees-display {
    display: flex;
    align-items: center;
}

.s-fees-due {
    font-size: 24px;
    font-weight: 700;
    color: var(--navy);
}

.s-fees-due-warning {
    color: #a16207;
}

.s-workspace-empty {
    margin: 0;
    font-size: 14px;
    color: var(--muted);
}

.s-workspace-card-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    font-weight: 600;
    color: var(--teal);
    text-decoration: none;
}

.s-workspace-card-link:hover {
    text-decoration: underline;
}

.s-workspace-panels {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.s-panel {
    background: white;
    border: 1px solid var(--border);
    border-radius: 14px;
    overflow: hidden;
}

.s-panel-header {
    padding: 16px 20px;
    border-bottom: 1px solid var(--border);
    background: var(--sand);
}

.s-panel-header h3 {
    margin: 0 0 4px;
    font-size: 15px;
    color: var(--navy);
    display: flex;
    align-items: center;
    gap: 8px;
}

.s-panel-header p {
    margin: 0;
    font-size: 13px;
    color: var(--muted);
}

.s-panel-list {
    display: flex;
    flex-direction: column;
}

.s-list-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 14px 20px;
    border-bottom: 1px solid var(--border);
    text-decoration: none;
    transition: background 0.15s ease;
}

.s-list-item:last-child {
    border-bottom: none;
}

.s-list-item:hover {
    background: rgba(15, 118, 110, 0.03);
}

.s-list-item-main {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.s-list-item-main strong {
    font-size: 14px;
    color: var(--navy);
}

.s-list-item-main small {
    font-size: 12px;
    color: var(--muted);
}

.s-list-item-arrow {
    color: var(--border);
    flex-shrink: 0;
}

.s-list-item:hover .s-list-item-arrow {
    color: var(--teal);
}

.s-list-item-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.s-panel-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 40px 20px;
    text-align: center;
    color: var(--muted);
}

.s-panel-empty svg {
    opacity: 0.4;
}

.s-panel-empty p {
    margin: 0;
    font-size: 14px;
}

.s-two-column {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.s-available-list {
    display: flex;
    flex-direction: column;
}

.s-available-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 16px 20px;
    border-bottom: 1px solid var(--border);
}

.s-available-card:last-child {
    border-bottom: none;
}

.s-available-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.s-available-info strong {
    font-size: 15px;
    color: var(--navy);
}

.s-available-info small {
    font-size: 13px;
    color: var(--muted);
}

.s-empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 16px;
    padding: 60px 20px;
    background: white;
    border: 1px solid var(--border);
    border-radius: 16px;
    text-align: center;
}

.s-empty-icon {
    width: 80px;
    height: 80px;
    border-radius: 20px;
    background: rgba(15, 118, 110, 0.08);
    color: var(--teal);
    display: grid;
    place-items: center;
}

.s-empty-state h3 {
    margin: 0;
    font-size: 20px;
    color: var(--navy);
}

.s-empty-state p {
    margin: 0;
    max-width: 400px;
    font-size: 14px;
    color: var(--muted);
    line-height: 1.6;
}

@media (max-width: 1024px) {
    .s-workspace-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .s-workspace-panels {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .s-dashboard-hero {
        padding: 32px 0;
    }
    
    .s-dashboard-hero-inner {
        flex-direction: column;
    }
    
    .s-dashboard-welcome {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .s-dashboard-quick-stats {
        width: 100%;
    }
    
    .s-stat-card {
        flex: 1;
        min-width: calc(50% - 8px);
    }
    
    .s-batch-hero {
        flex-direction: column;
    }
    
    .s-batch-hero-actions {
        width: 100%;
    }
    
    .s-batch-hero-actions .button {
        width: 100%;
    }
    
    .s-workspace-grid {
        grid-template-columns: 1fr;
    }
    
    .s-two-column {
        grid-template-columns: 1fr;
    }
    
    .s-toolbox-grid {
        grid-template-columns: 1fr;
    }
    
    .s-batch-switcher {
        flex-wrap: nowrap;
    }
    
    .s-batch-tab {
        min-width: 160px;
    }
}

.student-home-hero-copy {
    display: grid;
    gap: 14px;
}

.student-home-focus-card {
    display: grid;
    gap: 16px;
}

.student-home-focus-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.student-home-focus-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.student-dashboard-stats {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 18px;
}

.student-batch-stats {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.student-toolbox-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.student-selected-toolbox-grid {
    margin-top: 18px;
}

.student-tool-card {
    display: grid;
    gap: 14px;
    min-height: 220px;
}

.student-tool-card h3,
.student-tool-card p {
    margin: 0;
}

.student-tool-card p {
    color: var(--muted);
    line-height: 1.6;
}

.student-tool-card h3,
.student-batch-workspace-copy h3,
.student-batch-switch-link strong,
.student-batch-card-head h3,
.student-batch-card-head h3 a,
.student-panel h2,
.student-panel h3 {
    color: var(--navy);
}

.student-batch-workspace-copy p,
.student-batch-switch-link small,
.student-batch-card-head p,
.student-panel .panel-subtitle,
.student-panel small {
    color: var(--muted);
}

.student-tool-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    border-radius: 16px;
    background: rgba(15, 118, 110, 0.1);
    font-size: 1.35rem;
}

.section-heading-inline {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 18px;
}

.student-batch-grid,
.student-result-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
}

.student-batch-grid-compact {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.student-batch-switcher {
    display: flex;
    gap: 12px;
    overflow: auto;
    padding-bottom: 6px;
}

.student-batch-switch-link {
    flex: 0 0 220px;
    display: grid;
    gap: 4px;
    padding: 14px 16px;
    border-radius: 18px;
    text-decoration: none;
    color: var(--ink);
    background: rgba(255, 255, 255, 0.86);
    border: 1px solid rgba(16, 42, 67, 0.08);
    box-shadow: 0 10px 24px rgba(16, 42, 67, 0.06);
}

.student-batch-switch-link small {
    color: var(--muted);
}

.student-batch-switch-link-active {
    background: linear-gradient(135deg, rgba(15, 118, 110, 0.12), rgba(15, 118, 110, 0.04));
    border-color: rgba(15, 118, 110, 0.22);
}

.student-batch-workspace {
    display: grid;
    gap: 18px;
    margin-top: 18px;
}

.student-batch-workspace-hero {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
}

.student-batch-workspace-copy {
    display: grid;
    gap: 12px;
}

.container-reset {
    width: 100%;
}

.student-batch-card,
.student-result-card,
.student-panel,
.student-empty-panel {
    display: grid;
    gap: 18px;
}

.student-batch-card-head,
.student-result-head,
.student-batch-card-foot {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
}

.student-batch-card-head h3 {
    margin: 0;
}

.student-batch-card-head p {
    margin: 0;
    color: var(--muted);
}

.student-batch-card-simple {
    min-height: 100%;
}

.student-batch-meta {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.student-batch-tool-links {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    padding-top: 4px;
}

.student-batch-tool-link,
.student-batch-anchor-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    padding: 0 14px;
    border-radius: 999px;
    text-decoration: none;
    font-weight: 700;
    color: var(--ink);
    background: rgba(16, 42, 67, 0.06);
    border: 1px solid rgba(16, 42, 67, 0.08);
}

.student-batch-anchor-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.student-result-scores {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
}

.student-result-scores > div {
    display: grid;
    gap: 6px;
    padding: 14px 15px;
    border-radius: 14px;
    background: rgba(16, 42, 67, 0.05);
}

.student-result-scores span {
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--muted);
}

.student-dashboard-columns {
    align-items: start;
}

.student-batch-detail-columns {
    align-items: start;
}

.student-compact-list {
    margin-top: 16px;
}

.student-lecture-row {
    text-decoration: none;
    color: inherit;
    border-radius: 14px;
    transition: background 0.15s ease, border-color 0.15s ease;
}

.student-lecture-row-active {
    background: rgba(15, 118, 110, 0.08);
}

.activity-log-toolbar {
    grid-template-columns: minmax(0, 1fr) auto auto;
    gap: 12px;
}

.log-file-label {
    display: block;
    max-width: 100%;
    font-size: 0.88rem;
    color: var(--ink);
    overflow-wrap: anywhere;
    word-break: break-word;
}

.system-log-card {
    overflow: hidden;
}

.system-log-insights {
    display: grid;
    gap: 18px;
    margin-bottom: 18px;
}

.system-log-latest-card,
.system-log-analytics-grid,
.system-log-entry-list {
    min-width: 0;
}

.system-log-latest-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
    padding: 0 22px 22px;
}

.system-log-metric {
    display: grid;
    gap: 6px;
    padding: 14px 16px;
    border-radius: 16px;
    background: rgba(16, 42, 67, 0.05);
}

.system-log-metric span {
    font-size: 0.78rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--muted);
    font-weight: 800;
}

.system-log-metric strong {
    overflow-wrap: anywhere;
    word-break: break-word;
}

.system-log-metric-wide {
    grid-column: 1 / -1;
}

.system-log-analytics-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

.system-log-chip-list,
.system-log-hints,
.system-log-entry-list {
    display: grid;
    gap: 12px;
    padding: 0 22px 22px;
}

.system-log-chip {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 14px;
    border-radius: 14px;
    background: rgba(16, 42, 67, 0.05);
}

.system-log-chip span {
    overflow-wrap: anywhere;
    word-break: break-word;
}

.system-log-hint {
    padding: 13px 15px;
    border-radius: 14px;
    background: rgba(15, 118, 110, 0.08);
    border: 1px solid rgba(15, 118, 110, 0.14);
    color: var(--ink);
}

.system-log-entry {
    border: 1px solid rgba(16, 42, 67, 0.08);
    border-radius: 16px;
    background: #fff;
    overflow: hidden;
}

.system-log-entry summary {
    display: grid;
    grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr) auto;
    gap: 12px;
    padding: 14px 16px;
    cursor: pointer;
    list-style: none;
    align-items: center;
}

.system-log-entry summary::-webkit-details-marker {
    display: none;
}

.system-log-entry-title {
    font-weight: 800;
    overflow-wrap: anywhere;
}

.system-log-entry-meta {
    color: var(--muted);
    font-size: 0.88rem;
    overflow-wrap: anywhere;
    text-align: right;
}

.system-log-entry-body {
    display: grid;
    gap: 10px;
    padding: 0 16px 16px;
}

.system-log-entry-body p {
    margin: 0;
}

.system-log-entry-body pre {
    margin: 0;
    padding: 14px;
    border-radius: 14px;
    background: rgba(13, 21, 37, 0.96);
    color: #dbe6ff;
    white-space: pre-wrap;
    word-break: break-word;
    font-size: 0.8rem;
    line-height: 1.5;
    overflow: auto;
}

.system-log-output {
    margin: 0;
    padding: 20px 22px;
    min-height: 320px;
    max-height: 72vh;
    overflow: auto;
    background: #0d1525;
    color: #dbe6ff;
    font-size: 0.82rem;
    line-height: 1.55;
    white-space: pre-wrap;
    word-break: break-word;
    font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
}

.activity-log-cell {
    display: grid;
    gap: 10px;
}

.activity-log-diff-list {
    display: grid;
    gap: 8px;
}

.activity-log-diff-item {
    display: grid;
    gap: 4px;
    padding: 10px 12px;
    border-radius: 12px;
    background: rgba(16, 42, 67, 0.05);
}

.activity-log-diff-label {
    color: var(--muted);
    font-size: 0.76rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.activity-log-diff-values {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.activity-log-old,
.activity-log-new {
    display: inline-flex;
    align-items: center;
    padding: 5px 8px;
    border-radius: 10px;
    font-size: 0.88rem;
    font-weight: 700;
}

.activity-log-old {
    background: rgba(192, 57, 43, 0.12);
    color: #9f2f22;
}

.activity-log-new {
    background: rgba(15, 118, 110, 0.14);
    color: var(--teal);
}

.activity-log-arrow {
    color: var(--muted);
    font-weight: 800;
}

.student-available-list {
    display: grid;
    gap: 14px;
}

.student-available-card {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px;
    padding: 16px 18px;
    border: 1px solid rgba(16, 42, 67, 0.08);
    border-radius: 18px;
    background: rgba(16, 42, 67, 0.03);
}

.student-panel-empty {
    margin: 0;
    color: var(--muted);
}

.student-result-scores {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
}

.student-result-scores div,
.student-result-summary {
    padding: 14px 16px;
    border-radius: 16px;
    background: rgba(16, 42, 67, 0.05);
}

.student-result-scores span {
    display: block;
    margin-bottom: 8px;
    color: var(--muted);
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.student-result-scores strong {
    color: var(--navy);
    font-size: 1.1rem;
}

.student-result-summary {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.student-result-remarks {
    margin: 0;
    padding: 14px 16px;
    border-left: 4px solid rgba(15, 118, 110, 0.35);
    border-radius: 14px;
    background: rgba(15, 118, 110, 0.08);
    color: var(--navy);
}

.student-profile-grid,
.student-profile-side {
    display: grid;
    gap: 22px;
}

.student-profile-grid {
    grid-template-columns: minmax(320px, 1.2fr) minmax(280px, 0.8fr);
    align-items: start;
}

.student-profile-card {
    text-align: center;
}

.student-profile-photo,
.student-profile-placeholder {
    width: 164px;
    height: 164px;
    margin: 0 auto 18px;
    border-radius: 28px;
    box-shadow: var(--shadow);
}

.student-profile-photo {
    object-fit: cover;
    border: 1px solid var(--border);
}

.student-profile-placeholder {
    display: grid;
    place-items: center;
    background: linear-gradient(135deg, var(--navy), var(--teal));
    color: white;
    font-size: 3.3rem;
    font-weight: 800;
}

.teacher-profile-grid {
    grid-template-columns: minmax(280px, 0.75fr) minmax(0, 1.25fr);
    align-items: start;
}

.teacher-summary-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin-top: 24px;
}

.teacher-profile-card {
    text-align: center;
}

.teacher-public-card {
    overflow: hidden;
    padding: 0;
}

.teacher-public-card .course-card-link {
    display: block;
}

.teacher-public-photo,
.teacher-public-placeholder {
    width: 100%;
    aspect-ratio: 4 / 3;
}

.teacher-public-photo {
    object-fit: cover;
}

.teacher-public-placeholder {
    width: 100%;
    height: auto;
    min-height: 260px;
    border-radius: 0;
    margin: 0;
}

.teacher-profile-photo,
.teacher-profile-placeholder {
    width: 180px;
    height: 180px;
    margin: 0 auto 20px;
    border-radius: 28px;
    box-shadow: var(--shadow);
}

.teacher-profile-photo {
    object-fit: cover;
    border: 1px solid var(--border);
}

.teacher-profile-placeholder {
    display: grid;
    place-items: center;
    background: linear-gradient(135deg, var(--navy), var(--teal));
    color: white;
    font-size: 4rem;
    font-weight: 800;
}

.compact-stat {
    padding: 22px;
}

.sidebar-actions {
    margin-top: 24px;
    flex-wrap: wrap;
}

.map-placeholder {
    min-height: 320px;
    display: grid;
    place-items: center;
    text-align: center;
    background: linear-gradient(135deg, rgba(16, 42, 67, 0.08), rgba(15, 118, 110, 0.12));
}

.site-footer {
    margin-top: 56px;
    padding: 42px 0;
    background: var(--navy);
    color: white;
}

.footer-grid {
    grid-template-columns: 1.2fr 1fr 1fr;
}

@media (max-width: 960px) {
    .hero-grid,
    .showcase-grid,
    .two-column,
    .footer-grid,
    .stats-grid,
    .feature-grid,
    .cards-grid,
    .testimonial-grid,
    .admin-grid,
    .student-dashboard-stats,
    .student-batch-grid,
    .student-result-grid,
    .student-profile-grid,
    .teacher-dashboard-grid,
    .course-detail-grid,
    .teacher-profile-grid,
    .teacher-summary-grid {
        grid-template-columns: 1fr;
    }

    .nav-toggle {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        margin-left: auto;
    }

    .main-nav {
        display: none;
        position: absolute;
        top: calc(100% + 10px);
        right: 0;
        left: 0;
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
        padding: 18px;
        border: 1px solid rgba(16, 42, 67, 0.08);
        border-radius: 22px;
        background: rgba(255, 250, 242, 0.98);
        box-shadow: var(--shadow);
    }

    .main-nav.nav-open {
        display: flex;
    }

    .main-nav a,
    .main-nav .nav-user,
    .account-menu,
    .account-toggle {
        width: 100%;
    }

    .account-dropdown {
        position: static;
        display: none;
        width: 100%;
        margin-top: 10px;
    }

    .cta-shell,
    .nav-shell {
        flex-direction: row;
        align-items: center;
    }

    .student-batch-card-head,
    .student-result-head,
    .student-batch-card-foot,
    .student-available-card,
    .section-heading-inline {
        flex-direction: column;
        align-items: flex-start;
    }

    .student-batch-meta,
    .student-result-scores,
    .student-result-summary {
        grid-template-columns: 1fr;
    }

    .payment-student-summary,
    .payment-student-result-card {
        grid-template-columns: 1fr;
    }

    .payment-student-summary-actions,
    .payment-student-result-actions {
        justify-content: flex-start;
    }

    .student-enrollment-selection-box {
        flex-direction: column;
        align-items: flex-start;
    }

    .stats-grid-5,
    .stats-grid-6,
    .feature-grid-4 {
        grid-template-columns: 1fr;
    }

    .toolbar-row,
    .student-toolbar,
    .student-search-wrap,
    .student-table-footer,
    .student-row-actions,
    .panel-head,
    .data-row,
    .inline-form,
    .report-actions,
    .student-table-head {
        flex-direction: column;
        align-items: flex-start;
    }

    .report-grid {
        grid-template-columns: 1fr;
    }

    .batch-filter-grid {
        grid-template-columns: 1fr;
    }

    .batch-promo-grid,
    .batch-promo-info-grid {
        grid-template-columns: 1fr;
    }

    .promo-batch-grid,
    .promo-batch-facts {
        grid-template-columns: 1fr;
    }

    .batch-promo-contact-card {
        flex-direction: column;
    }

    .batch-promo-meta,
    .batch-countdown-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .batch-promo-image-frame img {
        height: 320px;
    }

    .batch-promo-floating-card {
        position: static;
        margin-top: 14px;
    }

    .student-table-head-right,
    .student-table-meta-controls,
    .student-table-head-actions,
    .student-footer-meta,
    .student-pagination {
        width: 100%;
    }

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

    .student-search-wrap {
        flex-wrap: wrap;
    }

    .student-home-hero-grid,
    .student-home-focus-grid,
    .student-toolbox-grid,
    .student-enrollment-filter,
    .student-batch-grid-compact,
    .student-batch-stats,
    .student-result-scores,
    .student-enrollment-summary-grid,
    .student-enrollment-confirm-grid,
    .enrollment-toolbar,
    .enrollment-batch-summary,
    .enrollment-selected-grid,
    .detail-grid {
        grid-template-columns: 1fr;
    }

    .student-batch-workspace-hero {
        flex-direction: column;
    }

    .student-batch-switch-link {
        flex-basis: 84%;
    }

    .detail-item-wide {
        grid-column: span 1;
    }

    .admin-fold-summary,
    .admin-fold-meta {
        flex-direction: column;
        align-items: flex-start;
    }

    .student-toolbar-field,
    .enrollment-toolbar-field,
    .enrollment-toolbar-field select,
    .enrollment-toolbar-field input,
    .student-enrollment-filter,
    .student-toolbar-field select,
    .student-search-button,
    .table-action-link,
    .table-action-button {
        width: 100%;
    }

    .student-batch-meta {
        grid-template-columns: 1fr;
    }

    .system-log-latest-grid,
    .system-log-analytics-grid,
    .system-log-entry summary {
        grid-template-columns: 1fr;
    }

    .system-log-entry-meta {
        text-align: left;
    }

    .showcase-stack {
        min-height: auto;
    }

    .floating-panel {
        position: static;
        margin-top: 16px;
    }

    .course-sidebar {
        position: static;
    }

    .course-meta-row,
    .course-card-footer,
    .sidebar-actions {
        flex-direction: column;
        align-items: flex-start;
    }
}

.toast-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-width: 380px;
    width: calc(100% - 40px);
}

.toast {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 16px 18px;
    border-radius: 16px;
    background: white;
    box-shadow: 0 8px 24px rgba(16, 42, 67, 0.18);
    border-left: 4px solid var(--teal);
    transform: translateX(120%);
    opacity: 0;
    transition: transform 0.35s cubic-bezier(0.175, 0.885, 0.32, 1.275), opacity 0.25s ease;
}

.toast.toast-show {
    transform: translateX(0);
    opacity: 1;
}

.toast.toast-hiding {
    transform: translateX(120%);
    opacity: 0;
}

.toast-success { border-left-color: var(--teal); }
.toast-error { border-left-color: #c0392b; }
.toast-warning { border-left-color: var(--gold); }
.toast-info { border-left-color: #3b82f6; }

.toast-icon {
    flex: 0 0 24px;
    width: 24px;
    height: 24px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    font-size: 0.85rem;
    font-weight: 700;
}

.toast-success .toast-icon {
    background: rgba(15, 118, 110, 0.12);
    color: var(--teal);
}

.toast-error .toast-icon {
    background: rgba(192, 57, 43, 0.12);
    color: #c0392b;
}

.toast-warning .toast-icon {
    background: rgba(212, 166, 74, 0.15);
    color: #8b5e12;
}

.toast-info .toast-icon {
    background: rgba(59, 130, 246, 0.12);
    color: #3b82f6;
}

.toast-content {
    flex: 1;
    min-width: 0;
}

.toast-message {
    font-size: 0.95rem;
    line-height: 1.5;
    color: var(--ink);
}

.toast-close {
    flex: 0 0 20px;
    width: 20px;
    height: 20px;
    display: grid;
    place-items: center;
    border: none;
    border-radius: 6px;
    background: rgba(16, 42, 67, 0.06);
    color: var(--muted);
    font-size: 1.1rem;
    cursor: pointer;
    transition: background 0.15s ease, color 0.15s ease;
    line-height: 1;
}

.toast-close:hover {
    background: rgba(16, 42, 67, 0.12);
    color: var(--ink);
}

@media (max-width: 960px) {
    .toast-container {
        left: 16px;
        right: 16px;
        max-width: none;
        width: auto;
    }

    .toast {
        transform: translateY(-100%);
    }

    .toast.toast-show {
        transform: translateY(0);
    }

    .toast.toast-hiding {
        transform: translateY(-100%);
    }
}

.skeleton {
    display: block;
    background: linear-gradient(
        90deg,
        rgba(16, 42, 67, 0.06) 0%,
        rgba(16, 42, 67, 0.12) 50%,
        rgba(16, 42, 67, 0.06) 100%
    );
    background-size: 200% 100%;
    animation: skeleton-shimmer 1.5s ease-in-out infinite;
    border-radius: 8px;
}

.skeleton-text {
    height: 1em;
    margin-bottom: 0.5em;
}

.skeleton-text:last-child {
    margin-bottom: 0;
}

.skeleton-title {
    height: 1.4em;
    margin-bottom: 0.6em;
    width: 75%;
}

.skeleton-title-large {
    height: clamp(2rem, 4vw, 3.4rem);
    margin-bottom: 16px;
    width: 90%;
    border-radius: 12px;
}

.skeleton-button {
    height: 48px;
    width: 140px;
    border-radius: 999px;
}

.skeleton-avatar {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    flex-shrink: 0;
}

.skeleton-image {
    width: 100%;
    aspect-ratio: 16 / 10;
    border-radius: 16px;
}

.skeleton-card {
    padding: 28px;
    border-radius: var(--radius);
    background: rgba(255, 255, 255, 0.84);
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
}

.skeleton-grid {
    display: grid;
    gap: 22px;
}

.skeleton-grid-4 {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.skeleton-grid-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

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

.skeleton-stat-card {
    padding: 28px;
}

.skeleton-stat-value {
    height: 2.6rem;
    width: 60%;
    margin-bottom: 8px;
}

.skeleton-stat-label {
    height: 1.2rem;
    width: 80%;
}

.skeleton-table-row {
    display: flex;
    gap: 20px;
    padding: 18px 20px;
    border-bottom: 1px solid rgba(16, 42, 67, 0.08);
}

.skeleton-table-cell {
    height: 1.2rem;
    flex: 1;
}

.skeleton-table-cell:first-child {
    flex: 1.5;
}

.skeleton-table-cell:last-child {
    flex: 0.5;
}

.skeleton-form-field {
    height: 52px;
    width: 100%;
    border-radius: 16px;
}

.skeleton-pulse {
    animation: skeleton-pulse 1.5s ease-in-out infinite;
}

@keyframes skeleton-shimmer {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

@keyframes skeleton-pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

[data-loading] {
    pointer-events: none;
}

@media (max-width: 960px) {
    .skeleton-grid-4,
    .skeleton-grid-3,
    .skeleton-grid-2 {
        grid-template-columns: 1fr;
    }
}

.form-field {
    display: grid;
    gap: 8px;
}

.form-field label {
    font-weight: 600;
    color: var(--navy);
}

.form-field input,
.form-field select,
.form-field textarea {
    width: 100%;
    border: 1px solid rgba(16, 42, 67, 0.15);
    border-radius: 16px;
    padding: 14px 16px;
    font: inherit;
    background: #fff;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
    outline: none;
    border-color: var(--teal);
    box-shadow: 0 0 0 3px rgba(15, 118, 110, 0.12);
}

.form-field-error input,
.form-field-error select,
.form-field-error textarea {
    border-color: #c0392b;
    background-color: rgba(192, 57, 43, 0.02);
}

.form-field-error input:focus,
.form-field-error select:focus,
.form-field-error textarea:focus {
    border-color: #c0392b;
    box-shadow: 0 0 0 3px rgba(192, 57, 43, 0.12);
}

.form-field-success input,
.form-field-success select,
.form-field-success textarea {
    border-color: var(--teal);
}

.form-field-success input:focus,
.form-field-success select:focus,
.form-field-success textarea:focus {
    box-shadow: 0 0 0 3px rgba(15, 118, 110, 0.12);
}

.form-field-message {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    font-size: 0.85rem;
    line-height: 1.5;
}

.form-field-error .form-field-message {
    color: #c0392b;
}

.form-field-success .form-field-message {
    color: var(--teal);
}

.form-field-helper {
    color: var(--muted);
}

.form-field-icon {
    flex-shrink: 0;
    width: 16px;
    height: 16px;
    display: grid;
    place-items: center;
    font-size: 0.75rem;
    font-weight: 700;
    border-radius: 50%;
}

.form-field-error .form-field-icon {
    background: #c0392b;
    color: white;
}

.form-field-success .form-field-icon {
    background: var(--teal);
    color: white;
}

.form-required label::after {
    content: ' *';
    color: #c0392b;
}

.form-group {
    display: grid;
    gap: 20px;
}

.form-submit-error {
    padding: 14px 18px;
    border-radius: 12px;
    background: rgba(192, 57, 43, 0.08);
    border: 1px solid rgba(192, 57, 43, 0.15);
    color: #c0392b;
    font-weight: 600;
}

.empty-state {
    text-align: center;
    padding: 48px 32px;
    border-radius: var(--radius);
    background: rgba(255, 255, 255, 0.84);
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
}

.empty-state-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(16, 42, 67, 0.08), rgba(15, 118, 110, 0.08));
    font-size: 2.5rem;
}

.empty-state-title {
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--navy);
    margin: 0 0 10px;
}

.empty-state-description {
    color: var(--muted);
    max-width: 400px;
    margin: 0 auto 20px;
    line-height: 1.6;
}

.empty-state-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
}

.empty-state-compact {
    padding: 32px 24px;
}

.empty-state-compact .empty-state-icon {
    width: 56px;
    height: 56px;
    font-size: 1.8rem;
}

.empty-state-compact .empty-state-title {
    font-size: 1.15rem;
}

.empty-state-inline {
    display: flex;
    align-items: center;
    gap: 16px;
    text-align: left;
    padding: 24px;
}

.empty-state-inline .empty-state-icon {
    width: 48px;
    height: 48px;
    margin: 0;
    font-size: 1.5rem;
    flex-shrink: 0;
}

.empty-state-inline .empty-state-content {
    flex: 1;
}

.empty-state-inline .empty-state-title {
    margin: 0 0 4px;
}

.empty-state-inline .empty-state-description {
    margin: 0;
}

.empty-state-inline .empty-state-actions {
    margin-top: 12px;
    justify-content: flex-start;
}

.admin-dashboard {
    padding: 24px 0;
}

.quick-actions-bar {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 28px;
    padding: 18px 20px;
    background: linear-gradient(135deg, var(--navy), var(--teal));
    border-radius: 18px;
    box-shadow: var(--shadow);
}

.quick-actions-bar-compact {
    padding: 16px 18px;
}

.quick-action-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 18px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.12);
    color: white;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.2s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.quick-action-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

.quick-action-btn svg,
.quick-action-btn .icon {
    width: 18px;
    height: 18px;
}

.dashboard-card-row {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 20px;
    margin-bottom: 24px;
}

.dashboard-grid {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 24px;
}

.dashboard-grid-balanced {
    align-items: start;
}

.dashboard-main {
    display: grid;
    gap: 24px;
}

.dashboard-sidebar {
    display: grid;
    gap: 20px;
    align-content: start;
}

.stat-card-enhanced {
    position: relative;
    overflow: hidden;
    padding: 24px;
    background: white;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.stat-card-enhanced:hover {
    transform: translateY(-4px);
    box-shadow: 0 32px 64px rgba(16, 42, 67, 0.15);
}

.stat-card-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    margin-bottom: 12px;
}

.stat-card-icon {
    width: 48px;
    height: 48px;
    display: grid;
    place-items: center;
    border-radius: 14px;
    font-size: 1.5rem;
    background: linear-gradient(135deg, rgba(15, 118, 110, 0.12), rgba(15, 118, 110, 0.06));
}

.stat-card-icon-label {
    font-size: 0.8rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--teal);
}

.stat-card-trend {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 6px 10px;
    border-radius: 999px;
    font-size: 0.8rem;
    font-weight: 700;
}

.stat-card-trend.up {
    background: rgba(15, 118, 110, 0.12);
    color: var(--teal);
}

.stat-card-trend.down {
    background: rgba(192, 57, 43, 0.12);
    color: #c0392b;
}

.stat-card-value {
    font-size: 2.4rem;
    font-weight: 800;
    color: var(--navy);
    line-height: 1;
    margin: 0;
}

.stat-card-label {
    color: var(--muted);
    font-size: 0.9rem;
    margin-top: 8px;
}

.stat-card-meta {
    display: block;
    margin-top: 8px;
    color: var(--muted);
    font-size: 0.78rem;
    letter-spacing: 0.02em;
}

.stat-card-sparkline {
    height: 40px;
    margin-top: 16px;
}

.dashboard-section {
    background: white;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
    overflow: hidden;
}

.dashboard-section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px;
    border-bottom: 1px solid var(--border);
}

.dashboard-section-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--navy);
    margin: 0;
}

.dashboard-section-subtitle {
    margin: 6px 0 0;
    color: var(--muted);
    font-size: 0.86rem;
}

.dashboard-section-content {
    padding: 20px 24px;
}

.dashboard-section-content-flush {
    padding: 0;
}

.activity-feed {
    display: grid;
    gap: 0;
}

.activity-item {
    display: flex;
    gap: 14px;
    padding: 16px 20px;
    border-bottom: 1px solid rgba(16, 42, 67, 0.06);
    transition: background 0.15s ease;
    text-decoration: none;
    color: inherit;
}

.activity-item:last-child {
    border-bottom: none;
}

.activity-item:hover {
    background: rgba(16, 42, 67, 0.02);
}

.activity-icon {
    width: 40px;
    height: 40px;
    display: grid;
    place-items: center;
    border-radius: 12px;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.activity-icon.student { background: rgba(15, 118, 110, 0.12); }
.activity-icon.payment { background: rgba(212, 166, 74, 0.15); }
.activity-icon.enrollment { background: rgba(59, 130, 246, 0.12); }
.activity-icon.inquiry { background: rgba(139, 92, 246, 0.12); }
.activity-icon.student,
.activity-icon.payment,
.activity-icon.enrollment,
.activity-icon.inquiry {
    color: var(--navy);
    font-size: 0.76rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.activity-content {
    flex: 1;
    min-width: 0;
}

.activity-title {
    font-weight: 600;
    color: var(--ink);
    margin: 0 0 4px;
    font-size: 0.95rem;
}

.activity-meta {
    color: var(--muted);
    font-size: 0.85rem;
    margin: 0;
}

.activity-time {
    flex-shrink: 0;
    font-size: 0.8rem;
    color: var(--muted);
}

.chart-container {
    position: relative;
    height: 280px;
}

.chart-container-short {
    height: 220px;
}

.chart-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
}

.chart-legend {
    display: flex;
    gap: 16px;
}

.chart-legend-item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.85rem;
    color: var(--muted);
}

.chart-legend-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

.chart-legend-dot-teal {
    background: var(--teal);
}

.chart-legend-dot-gold {
    background: var(--gold);
}

.pending-alerts {
    background: linear-gradient(135deg, rgba(212, 166, 74, 0.08), rgba(212, 166, 74, 0.02));
    border: 1px solid rgba(212, 166, 74, 0.2);
}

.pending-alerts .dashboard-section-title {
    display: flex;
    align-items: center;
    gap: 8px;
}

.alert-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 22px;
    height: 22px;
    padding: 0 6px;
    border-radius: 999px;
    background: var(--gold);
    color: white;
    font-size: 0.75rem;
    font-weight: 800;
}

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

.alert-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    border-radius: 12px;
    background: white;
    border: 1px solid rgba(212, 166, 74, 0.15);
    text-decoration: none;
    color: inherit;
}

.alert-icon {
    width: 36px;
    height: 36px;
    display: grid;
    place-items: center;
    border-radius: 10px;
    background: rgba(212, 166, 74, 0.12);
    font-size: 0.76rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    flex-shrink: 0;
}

.alert-content {
    flex: 1;
}

.alert-title {
    font-weight: 600;
    font-size: 0.95rem;
    margin: 0 0 2px;
}

.alert-count {
    font-size: 0.85rem;
    color: var(--muted);
    margin: 0;
}

.alert-arrow {
    color: #8b5e12;
    font-size: 0.82rem;
    font-weight: 700;
}

.mini-stat-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

.mini-stat {
    padding: 18px;
    border-radius: 14px;
    background: rgba(16, 42, 67, 0.04);
}

.mini-stat-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--navy);
    margin: 0 0 4px;
}

.mini-stat-label {
    font-size: 0.85rem;
    color: var(--muted);
    margin: 0;
}

.dashboard-inline-list {
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid var(--border);
}

.dashboard-inline-heading {
    margin: 0 0 8px;
    color: var(--muted);
    font-size: 0.82rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.dashboard-inline-row {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding: 8px 0;
    font-size: 0.92rem;
}

.dashboard-inline-row span:last-child {
    color: #c0392b;
    font-weight: 700;
}

.dashboard-tool-list {
    display: grid;
    gap: 10px;
}

.dashboard-tool-link {
    display: block;
    padding: 12px 14px;
    border-radius: 10px;
    background: rgba(16, 42, 67, 0.04);
    color: var(--navy);
    font-weight: 600;
}

.dashboard-tool-link:hover {
    background: rgba(16, 42, 67, 0.08);
}

.dashboard-empty-flat {
    background: transparent;
    box-shadow: none;
    border: none;
}

.dashboard-batch-row {
    padding: 16px 24px;
}

.dashboard-batch-count {
    text-align: right;
}

.dashboard-batch-count strong {
    display: block;
    font-size: 1.2rem;
    color: var(--navy);
}

.dashboard-analytics {
    margin-top: 24px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: rgba(255, 255, 255, 0.82);
    box-shadow: var(--shadow-soft);
    overflow: hidden;
}

.dashboard-analytics summary {
    list-style: none;
    cursor: pointer;
    padding: 18px 22px;
    background: rgba(16, 42, 67, 0.03);
}

.dashboard-analytics summary::-webkit-details-marker {
    display: none;
}

.dashboard-analytics summary strong {
    display: block;
    color: var(--navy);
}

.dashboard-analytics summary span {
    display: block;
    margin-top: 4px;
    color: var(--muted);
    font-size: 0.86rem;
}

.dashboard-analytics-grid {
    display: grid;
    grid-template-columns: 1.3fr 1fr;
    gap: 24px;
    padding: 24px;
}

.attendance-sheet-table select,
.attendance-sheet-table input[type="text"] {
    width: 100%;
}

.attendance-workspace-columns {
    align-items: start;
}

.attendance-lecture-list {
    margin-top: 12px;
}

.attendance-lecture-row {
    text-decoration: none;
    color: inherit;
    border-radius: 14px;
    transition: background 0.15s ease, border-color 0.15s ease;
}

.attendance-lecture-row-active {
    background: rgba(15, 118, 110, 0.08);
}

.attendance-status-cell {
    display: grid;
    gap: 8px;
}

.attendance-row {
    transition: background 0.15s ease;
}

.attendance-row-present {
    background: rgba(15, 118, 110, 0.06);
}

.attendance-row-absent {
    background: rgba(192, 57, 43, 0.06);
}

.attendance-row-leave {
    background: rgba(212, 166, 74, 0.10);
}

.attendance-status-select-present {
    border-color: rgba(15, 118, 110, 0.45);
    background: rgba(15, 118, 110, 0.08);
}

.attendance-status-select-absent {
    border-color: rgba(192, 57, 43, 0.45);
    background: rgba(192, 57, 43, 0.08);
}

.attendance-status-select-leave {
    border-color: rgba(212, 166, 74, 0.45);
    background: rgba(212, 166, 74, 0.12);
}

.attendance-sheet-actions {
    display: flex;
    justify-content: flex-end;
    padding-top: 18px;
}

.attendance-summary-shell {
    overflow: hidden;
}

.attendance-report-page {
    padding-top: 18px;
}

.attendance-report-shell {
    display: grid;
    gap: 18px;
}

.attendance-report-actions {
    display: flex;
    justify-content: flex-end;
}

.attendance-report-brand,
.attendance-report-header,
.attendance-report-summary {
    background: rgba(255, 253, 250, 0.98);
    border: 1px solid rgba(16, 42, 67, 0.14);
    border-radius: 22px;
    box-shadow: 0 20px 48px rgba(16, 42, 67, 0.08);
}

.attendance-report-brand {
    display: grid;
    justify-items: center;
    text-align: center;
    gap: 8px;
    padding: 22px 20px;
}

.attendance-report-logo {
    width: 76px;
    height: 76px;
    object-fit: cover;
    border-radius: 20px;
    border: 1px solid rgba(16, 42, 67, 0.14);
    background: white;
    padding: 6px;
}

.attendance-report-brand h1,
.attendance-report-header h2 {
    margin: 0;
}

.attendance-report-tagline,
.attendance-report-address {
    margin: 0;
}

.attendance-report-contact {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
    color: var(--muted);
}

.attendance-report-header {
    padding: 18px 20px;
}

.attendance-report-header p {
    margin: 6px 0 0;
}

.attendance-report-summary {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1px;
    background: rgba(16, 42, 67, 0.12);
    overflow: hidden;
}

.attendance-report-summary-item {
    background: #fffdfa;
    padding: 16px 18px;
}

.attendance-report-summary-item span {
    display: block;
    margin-bottom: 8px;
    color: var(--muted);
    font-size: 0.76rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.attendance-summary-table-wrap {
    overflow-x: auto;
}

.attendance-summary-table {
    min-width: 980px;
}

.attendance-summary-lecture-col {
    min-width: 118px;
}

.attendance-summary-lecture-head {
    text-align: center;
}

.attendance-summary-lecture-head small {
    line-height: 1.2;
    word-break: break-word;
}

.attendance-summary-cell,
.attendance-summary-total-cell {
    text-align: center;
}

@media print {
    @page {
        size: A4 landscape;
        margin: 5mm;
    }

    body {
        background: white;
    }

    .site-header,
    .site-footer,
    .flash-wrap,
    .attendance-report-screen-only,
    .pwa-actions {
        display: none !important;
    }

    .attendance-report-page,
    .attendance-report-shell,
    .attendance-summary-shell,
    .attendance-report-brand,
    .attendance-report-header,
    .attendance-report-summary {
        padding: 0;
        margin: 0;
        box-shadow: none;
    }

    .attendance-report-brand,
    .attendance-report-header,
    .attendance-report-summary,
    .attendance-summary-shell {
        border-radius: 0;
        border-color: rgba(16, 42, 67, 0.16);
    }

    .attendance-report-shell {
        gap: 8px;
    }

    .attendance-report-brand {
        padding: 10px 10px 12px;
        gap: 4px;
    }

    .attendance-report-logo {
        width: 56px;
        height: 56px;
        border-radius: 14px;
        padding: 4px;
    }

    .attendance-report-brand h1 {
        font-size: 1.2rem;
    }

    .attendance-report-tagline,
    .attendance-report-contact,
    .attendance-report-address,
    .attendance-report-header p {
        font-size: 0.8rem;
        line-height: 1.35;
    }

    .attendance-report-header {
        padding: 10px 12px;
    }

    .attendance-report-summary-item {
        padding: 10px 12px;
    }

    .attendance-report-summary-item strong {
        font-size: 0.9rem;
    }

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

    .attendance-summary-table th,
    .attendance-summary-table td {
        padding: 6px 5px;
        font-size: 0.74rem;
    }

    .attendance-summary-table th {
        font-size: 0.62rem;
    }

    .attendance-summary-lecture-col {
        min-width: 72px;
    }

    .status-badge {
        min-width: 30px;
        padding: 4px 6px;
        font-size: 0.64rem;
    }
}

.feature-card-enhanced {
    padding: 20px;
    background: white;
    border-radius: 16px;
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
    transition: all 0.2s ease;
    cursor: pointer;
}

.feature-card-enhanced:hover {
    transform: translateY(-3px);
    box-shadow: 0 20px 40px rgba(16, 42, 67, 0.12);
    border-color: rgba(15, 118, 110, 0.3);
}

.feature-card-icon {
    width: 44px;
    height: 44px;
    display: grid;
    place-items: center;
    border-radius: 12px;
    font-size: 1.3rem;
    margin-bottom: 14px;
}

.feature-card-title {
    font-size: 1rem;
    font-weight: 700;
    color: var(--navy);
    margin: 0 0 6px;
}

.feature-card-desc {
    font-size: 0.85rem;
    color: var(--muted);
    margin: 0 0 12px;
    line-height: 1.5;
}

.feature-card-link {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--teal);
}

.feature-card-link:hover {
    gap: 8px;
}

@media (max-width: 960px) {
    .student-hero-layout,
    .dashboard-card-row,
    .dashboard-grid {
        grid-template-columns: 1fr;
    }

    .dashboard-analytics-grid {
        grid-template-columns: 1fr;
        padding: 16px;
    }

    .quick-actions-bar {
        overflow-x: auto;
        flex-wrap: nowrap;
        -webkit-overflow-scrolling: touch;
    }

    .quick-action-btn {
        white-space: nowrap;
    }

    .stat-card-value {
        font-size: 1.8rem;
    }

    .dashboard-section-header {
        align-items: start;
        gap: 12px;
    }

    .student-hero-summary-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 960px) {
    .empty-state-inline {
        flex-direction: column;
        text-align: center;
    }

    .empty-state-inline .empty-state-icon {
        margin: 0 auto;
    }

    .empty-state-inline .empty-state-actions {
        justify-content: center;
    }
}

.screen-reader-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.result-sheet-toolbar {
    justify-content: flex-end;
}

.result-sheet-meta {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
    margin: 20px 0;
}

.result-sheet-meta-wide {
    grid-column: span 1;
}

.result-sheet-meta label {
    display: grid;
    gap: 8px;
    font-weight: 600;
}

.result-sheet-form {
    display: grid;
    gap: 18px;
}

.result-sheet-action-row {
    justify-content: flex-end;
}

.result-sheet-table td {
    vertical-align: middle;
}

.result-mark-cell {
    min-width: 108px;
}

.result-mark-input {
    width: 84px;
    padding: 8px 10px;
    border: 1px solid rgba(16, 24, 40, 0.14);
    border-radius: 10px;
    background: #fff;
}

.result-mark-cell small {
    display: block;
    margin-top: 6px;
    color: #667085;
}

.quick-edit-form {
    display: grid;
    gap: 18px;
}

.quick-edit-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 14px;
}

.quick-edit-grid label {
    display: grid;
    gap: 8px;
    font-weight: 600;
}

.quick-edit-actions {
    justify-content: flex-end;
}

@media (max-width: 980px) {
    .batch-enroll-hero,
    .batch-search-grid,
    .batch-enroll-selected-head {
        grid-template-columns: 1fr;
        flex-direction: column;
        align-items: stretch;
    }

    .batch-search-actions,
    .batch-enroll-selected-actions {
        justify-content: stretch;
    }

    .candidate-results-grid {
        grid-template-columns: 1fr;
    }

    .result-sheet-meta {
        grid-template-columns: 1fr;
    }

    .result-sheet-toolbar {
        justify-content: stretch;
    }

    .result-sheet-toolbar .toolbar-field {
        width: 100%;
    }

    .result-mark-input {
        width: 100%;
    }

    .quick-edit-grid {
        grid-template-columns: 1fr;
    }
}

.student-hero-grid {
    display: flex;
    align-items: center;
    gap: 24px;
    padding: 8px 0;
}

.student-avatar-large {
    width: 80px;
    height: 80px;
    border-radius: 20px;
    background: linear-gradient(145deg, var(--navy), #1d4d7d);
    color: white;
    display: grid;
    place-items: center;
    font-weight: 800;
    font-size: 28px;
    flex-shrink: 0;
    box-shadow: 0 8px 24px rgba(16, 42, 67, 0.2);
    overflow: hidden;
}

.student-avatar-large-image,
.student-avatar-large-fallback {
    width: 100%;
    height: 100%;
}

.student-avatar-large-image {
    display: block;
    object-fit: cover;
}

.student-avatar-large-fallback {
    display: grid;
    place-items: center;
}

.student-hero-info {
    flex: 1;
}

.student-hero-info .eyebrow {
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--teal);
    font-weight: 600;
}

.student-hero-info h1 {
    margin: 4px 0 8px;
    font-size: 28px;
}

.student-hero-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    color: var(--muted);
    font-size: 14px;
}

.hero-meta-item {
    display: flex;
    align-items: center;
    gap: 6px;
}

.student-hero-actions {
    display: flex;
    gap: 12px;
    flex-shrink: 0;
}

.stat-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: grid;
    place-items: center;
}

.stat-icon-teal {
    background: rgba(15, 118, 110, 0.1);
    color: var(--teal);
}

.stat-icon-gold {
    background: rgba(212, 166, 74, 0.15);
    color: #b8941f;
}

.stat-icon-green {
    background: rgba(34, 197, 94, 0.1);
    color: #16a34a;
}

.stat-icon-orange {
    background: rgba(234, 179, 8, 0.1);
    color: #ca8a04;
}

.stat-icon-gray {
    background: var(--sand);
    color: var(--muted);
}

.stat-content {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.stat-content h2 {
    font-size: 22px;
    margin: 0;
}

.stat-content p {
    font-size: 13px;
    color: var(--muted);
    margin: 0;
}

.overview-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.profile-card {
    background: white;
    border: 1px solid var(--border);
    border-radius: 16px;
    overflow: hidden;
}

.profile-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    background: var(--sand);
    border-bottom: 1px solid var(--border);
}

.profile-card-header h3 {
    margin: 0;
    font-size: 15px;
}

.profile-action-buttons {
    display: flex;
    gap: 8px;
}

.profile-fields {
    padding: 20px;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

.profile-field {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.profile-field-full {
    grid-column: 1 / -1;
}

.profile-label {
    font-size: 12px;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.profile-value {
    font-size: 14px;
    font-weight: 500;
}

.pending-notice {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 20px;
    background: rgba(234, 179, 8, 0.1);
    border: 1px solid rgba(234, 179, 8, 0.3);
    border-radius: 12px;
    margin-top: 24px;
}

.pending-notice svg {
    color: #ca8a04;
    flex-shrink: 0;
    margin-top: 2px;
}

.pending-notice strong {
    display: block;
    margin-bottom: 4px;
}

.pending-notice p {
    margin: 0;
    color: var(--muted);
    font-size: 14px;
}

.request-cards {
    display: grid;
    gap: 12px;
}

.request-card {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 16px 20px;
    background: white;
    border: 1px solid var(--border);
    border-radius: 12px;
}

.request-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
    flex: 1;
}

.request-notes {
    color: var(--muted);
    font-size: 13px;
    flex: 1;
}

.request-actions {
    display: flex;
    gap: 8px;
}

.enrollment-cards {
    display: grid;
    gap: 16px;
}

.enrollment-card {
    background: white;
    border: 1px solid var(--border);
    border-radius: 16px;
    overflow: hidden;
}

.enrollment-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    background: var(--sand);
}

.enrollment-card-actions {
    display: flex;
    gap: 4px;
}

.enrollment-card-body {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    padding: 20px;
    gap: 20px;
}

.enrollment-main-info h3 {
    margin: 0 0 4px;
    font-size: 18px;
}

.enrollment-course {
    color: var(--teal);
    font-weight: 500;
    margin: 0 0 12px;
}

.enrollment-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    color: var(--muted);
    font-size: 13px;
}

.enrollment-meta span {
    display: flex;
    align-items: center;
    gap: 6px;
}

.fee-mini-stat {
    text-align: right;
}

.fee-mini-label {
    display: block;
    font-size: 12px;
    color: var(--muted);
}

.fee-mini-value {
    font-size: 24px;
    font-weight: 700;
}

.fee-mini-value.overdue {
    color: #dc2626;
}

.enrollment-card-footer {
    display: flex;
    gap: 12px;
    padding: 16px 20px;
    border-top: 1px solid var(--border);
    background: #fafafa;
}

.enrollment-action-link {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    color: var(--navy);
    background: white;
    border: 1px solid var(--border);
    transition: all 0.2s ease;
}

.enrollment-action-link:hover {
    border-color: var(--teal);
    color: var(--teal);
}

.enrollment-action-link-primary {
    background: var(--teal);
    color: white;
    border-color: var(--teal);
}

.enrollment-action-link-primary:hover {
    background: #0d6360;
    color: white;
}

.fee-summary-header {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-bottom: 24px;
}

.fee-summary-card-large {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px;
    background: white;
    border: 1px solid var(--border);
    border-radius: 16px;
}

.fee-summary-icon-large {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    display: grid;
    place-items: center;
}

.fee-icon-received {
    background: rgba(34, 197, 94, 0.1);
    color: #16a34a;
}

.fee-icon-due {
    background: rgba(220, 38, 38, 0.1);
    color: #dc2626;
}

.fee-icon-total {
    background: rgba(59, 130, 246, 0.1);
    color: #2563eb;
}

.fee-progress-large {
    padding: 20px;
    background: white;
    border: 1px solid var(--border);
    border-radius: 16px;
}

.fee-progress-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 12px;
    font-size: 14px;
    font-weight: 500;
}

.fee-progress-bar-large {
    height: 12px;
    background: var(--sand);
    border-radius: 6px;
    overflow: hidden;
}

.fee-progress-fill-large {
    height: 100%;
    background: linear-gradient(90deg, var(--teal), #14b8a6);
    border-radius: 6px;
    transition: width 0.3s ease;
}

.fee-amount-due {
    color: #dc2626 !important;
}

.payment-list {
    background: white;
    border: 1px solid var(--border);
    border-radius: 16px;
    overflow: hidden;
}

.payment-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px 20px;
    border-bottom: 1px solid var(--border);
}

.payment-item:last-child {
    border-bottom: none;
}

.payment-item-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: var(--sand);
    display: grid;
    place-items: center;
    color: var(--muted);
}

.payment-item-info {
    flex: 1;
}

.payment-item-info strong {
    display: block;
    font-size: 15px;
}

.payment-item-info small {
    color: var(--muted);
    font-size: 13px;
}

.payment-item-batch {
    font-size: 14px;
}

.payment-item-status {
    min-width: 100px;
}

.payment-item-receipt {
    min-width: 120px;
    text-align: right;
}

.fee-records-list {
    display: grid;
    gap: 12px;
}

.fee-record-item {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 16px 20px;
    background: white;
    border: 1px solid var(--border);
    border-radius: 12px;
}

.fee-record-unpaid {
    border-left: 4px solid #dc2626;
}

.fee-record-partial {
    border-left: 4px solid #ca8a04;
}

.fee-record-main {
    flex: 1;
}

.fee-record-main strong {
    display: block;
}

.fee-record-main small {
    color: var(--muted);
    font-size: 13px;
}

.fee-record-amounts {
    display: flex;
    gap: 24px;
}

.fee-record-amount {
    text-align: right;
}

.fee-record-label {
    display: block;
    font-size: 12px;
    color: var(--muted);
}

.fee-record-value {
    font-weight: 600;
}

.fee-record-value.paid {
    color: #16a34a;
}

.fee-record-status {
    min-width: 100px;
}

.fee-record-batch {
    min-width: 150px;
    font-size: 14px;
}

.attendance-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-bottom: 24px;
}

.attendance-stat-card {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px;
    background: white;
    border: 1px solid var(--border);
    border-radius: 16px;
}

.attendance-stat-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: grid;
    place-items: center;
}

.attendance-stat-present {
    background: rgba(34, 197, 94, 0.1);
    color: #16a34a;
}

.attendance-stat-absent {
    background: rgba(220, 38, 38, 0.1);
    color: #dc2626;
}

.attendance-stat-leave {
    background: rgba(234, 179, 8, 0.1);
    color: #ca8a04;
}

.attendance-stat-total {
    background: rgba(59, 130, 246, 0.1);
    color: #2563eb;
}

.attendance-stat-info {
    display: flex;
    flex-direction: column;
}

.attendance-stat-value {
    font-size: 28px;
    font-weight: 700;
}

.attendance-stat-label {
    font-size: 13px;
    color: var(--muted);
}

.attendance-timeline {
    position: relative;
    padding-left: 28px;
}

.attendance-timeline::before {
    content: '';
    position: absolute;
    left: 10px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--border);
}

.attendance-timeline-item {
    position: relative;
    padding-bottom: 20px;
}

.attendance-timeline-marker {
    position: absolute;
    left: -24px;
    top: 4px;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: white;
    border: 3px solid var(--border);
}

.attendance-timeline-item-present .attendance-timeline-marker {
    background: #22c55e;
    border-color: #22c55e;
}

.attendance-timeline-item-absent .attendance-timeline-marker {
    background: #ef4444;
    border-color: #ef4444;
}

.attendance-timeline-item-leave .attendance-timeline-marker {
    background: #eab308;
    border-color: #eab308;
}

.attendance-timeline-content {
    background: white;
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 16px;
}

.attendance-timeline-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 8px;
}

.attendance-timeline-topic {
    color: var(--teal);
    font-weight: 500;
    margin-bottom: 4px;
}

.attendance-timeline-remarks {
    font-size: 14px;
    color: var(--muted);
    margin-bottom: 8px;
}

.attendance-timeline-meta {
    font-size: 12px;
    color: var(--muted);
    font-style: italic;
}

.attendance-status-pill {
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
}

.attendance-status-pill-present {
    background: rgba(34, 197, 94, 0.1);
    color: #16a34a;
}

.attendance-status-pill-absent {
    background: rgba(220, 38, 38, 0.1);
    color: #dc2626;
}

.attendance-status-pill-leave {
    background: rgba(234, 179, 8, 0.1);
    color: #ca8a04;
}

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

.notice-item {
    display: flex;
    gap: 16px;
    padding: 20px;
    background: white;
    border: 1px solid var(--border);
    border-radius: 12px;
}

.notice-item-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: rgba(15, 118, 110, 0.1);
    color: var(--teal);
    display: grid;
    place-items: center;
    flex-shrink: 0;
}

.notice-item-content {
    flex: 1;
}

.notice-item-content strong {
    display: block;
    margin-bottom: 4px;
}

.notice-item-content p {
    margin: 0 0 8px;
    color: var(--muted);
    font-size: 14px;
}

.notice-item-content small {
    color: var(--muted);
    font-size: 12px;
}

.result-card {
    background: white;
    border: 1px solid var(--border);
    border-radius: 16px;
    overflow: hidden;
}

.result-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px;
    background: var(--sand);
    border-bottom: 1px solid var(--border);
}

.result-card-header h4 {
    margin: 0 0 4px;
}

.result-percentage {
    font-size: 32px;
    font-weight: 700;
    color: var(--teal);
}

.result-breakdown {
    padding: 20px;
}

.result-marks {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

.result-marks-item {
    text-align: center;
    padding: 16px;
    background: var(--sand);
    border-radius: 12px;
}

.result-marks-label {
    display: block;
    font-size: 12px;
    color: var(--muted);
    margin-bottom: 4px;
}

.result-marks-value {
    font-size: 20px;
    font-weight: 700;
}

.result-card-footer {
    display: flex;
    justify-content: space-between;
    padding: 16px 20px;
    background: #fafafa;
    border-top: 1px solid var(--border);
    font-size: 14px;
    color: var(--muted);
}

@media (max-width: 768px) {
    .student-hero-grid {
        flex-wrap: wrap;
    }
    
    .student-avatar-large {
        width: 60px;
        height: 60px;
        font-size: 22px;
    }
    
    .student-hero-info h1 {
        font-size: 22px;
    }
    
    .student-hero-actions {
        width: 100%;
        justify-content: flex-start;
    }
    
    .overview-grid {
        grid-template-columns: 1fr;
    }
    
    .profile-fields {
        grid-template-columns: 1fr;
    }
    
    .fee-summary-header {
        grid-template-columns: 1fr;
    }
    
    .attendance-stats {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .enrollment-card-body {
        flex-direction: column;
    }
    
    .fee-record-item {
        flex-wrap: wrap;
    }
    
    .result-marks {
        grid-template-columns: repeat(2, 1fr);
    }
}

.workspace-tabs {
    display: flex;
    gap: 4px;
    border-bottom: 2px solid var(--border);
    margin-bottom: 24px;
    overflow-x: auto;
}

.tab-button {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    background: none;
    border: none;
    font-family: inherit;
    font-size: 14px;
    font-weight: 600;
    color: var(--muted);
    cursor: pointer;
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.tab-button:hover {
    color: var(--navy);
}

.tab-button.active {
    color: var(--teal);
    border-bottom-color: var(--teal);
}

.tab-count {
    background: var(--sand);
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 700;
}

.tab-button.active .tab-count {
    background: rgba(15, 118, 110, 0.1);
    color: var(--teal);
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

.teacher-hero-grid {
    display: flex;
    align-items: center;
    gap: 24px;
    padding: 8px 0;
}

.teacher-hero-avatar {
    width: 100px;
    height: 100px;
    border-radius: 24px;
    background: linear-gradient(145deg, var(--navy), #1d4d7d);
    color: white;
    display: grid;
    place-items: center;
    font-weight: 800;
    font-size: 36px;
    flex-shrink: 0;
    box-shadow: 0 8px 24px rgba(16, 42, 67, 0.2);
    overflow: hidden;
}

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

.teacher-hero-info {
    flex: 1;
}

.teacher-hero-info .eyebrow {
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--teal);
    font-weight: 600;
}

.teacher-hero-info h1 {
    margin: 4px 0 8px;
    font-size: 28px;
}

.teacher-hero-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    color: var(--muted);
    font-size: 14px;
}

.teacher-hero-meta a {
    color: inherit;
    text-decoration: none;
}

.teacher-hero-meta a:hover {
    color: var(--teal);
}

.teacher-hero-actions {
    display: flex;
    gap: 12px;
    flex-shrink: 0;
}

.overview-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.profile-card {
    background: white;
    border: 1px solid var(--border);
    border-radius: 16px;
    overflow: hidden;
}

.profile-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    background: var(--sand);
    border-bottom: 1px solid var(--border);
}

.profile-card-header h3 {
    margin: 0;
    font-size: 15px;
}

.profile-fields {
    padding: 20px;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

.profile-field {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.profile-label {
    font-size: 12px;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.profile-value {
    font-size: 14px;
    font-weight: 500;
}

.profile-bio {
    padding: 20px;
}

.profile-bio p {
    margin: 0;
    line-height: 1.6;
    color: var(--ink);
}

.profile-empty {
    padding: 32px 20px;
    text-align: center;
    color: var(--muted);
}

.profile-empty svg {
    margin-bottom: 12px;
    opacity: 0.5;
}

.profile-empty p {
    margin: 0 0 16px;
}

.batch-cards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(380px, 1fr));
    gap: 20px;
}

.batch-card {
    background: white;
    border: 1px solid var(--border);
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.2s ease;
}

.batch-card:hover {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}

.batch-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    background: var(--sand);
    border-bottom: 1px solid var(--border);
}

.batch-card-title {
    display: flex;
    align-items: center;
    gap: 12px;
}

.batch-card-title h3 {
    margin: 0;
    font-size: 16px;
}

.batch-card-body {
    padding: 20px;
}

.batch-info-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    margin-bottom: 20px;
}

.batch-info-item {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.batch-info-label {
    font-size: 11px;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.batch-info-value {
    font-size: 13px;
    font-weight: 500;
}

.batch-stats-mini {
    display: flex;
    gap: 16px;
    padding-top: 16px;
    border-top: 1px solid var(--border);
}

.batch-stat-mini {
    display: flex;
    align-items: center;
    gap: 8px;
}

.batch-stat-value {
    font-size: 20px;
    font-weight: 700;
    color: var(--teal);
}

.batch-stat-label {
    font-size: 12px;
    color: var(--muted);
}

.batch-card-footer {
    display: flex;
    gap: 8px;
    padding: 16px 20px;
    background: #fafafa;
    border-top: 1px solid var(--border);
}

.teacher-action-link {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 500;
    color: var(--navy);
    background: white;
    border: 1px solid var(--border);
    text-decoration: none;
    transition: all 0.2s ease;
}

.teacher-action-link:hover {
    border-color: var(--teal);
    color: var(--teal);
}

@media (max-width: 768px) {
    .teacher-hero-grid {
        flex-wrap: wrap;
    }
    
    .teacher-hero-avatar {
        width: 80px;
        height: 80px;
        font-size: 28px;
    }
    
    .teacher-hero-info h1 {
        font-size: 22px;
    }
    
    .teacher-hero-actions {
        width: 100%;
        flex-wrap: wrap;
    }
    
    .overview-grid {
        grid-template-columns: 1fr;
    }
    
    .profile-fields {
        grid-template-columns: 1fr;
    }
    
    .batch-cards {
        grid-template-columns: 1fr;
    }
    
    .batch-info-grid {
        grid-template-columns: 1fr;
    }
}

.student-hero-grid {
    display: flex;
    align-items: center;
    gap: 24px;
    padding: 8px 0;
}

.student-avatar-large {
    width: 80px;
    height: 80px;
    border-radius: 20px;
    background: linear-gradient(145deg, var(--navy), #1d4d7d);
    color: white;
    display: grid;
    place-items: center;
    font-weight: 800;
    font-size: 28px;
    flex-shrink: 0;
    box-shadow: 0 8px 24px rgba(16, 42, 67, 0.2);
}

.student-hero-info {
    flex: 1;
}

.student-hero-info .eyebrow {
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--teal);
    font-weight: 600;
}

.student-hero-info h1 {
    margin: 4px 0 8px;
    font-size: 28px;
}

.student-hero-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    color: var(--muted);
    font-size: 14px;
}

.hero-meta-item {
    display: flex;
    align-items: center;
    gap: 6px;
}

.student-hero-actions {
    display: flex;
    gap: 12px;
    flex-shrink: 0;
}

.stat-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: grid;
    place-items: center;
}

.stat-icon-teal {
    background: rgba(15, 118, 110, 0.1);
    color: var(--teal);
}

.stat-icon-gold {
    background: rgba(212, 166, 74, 0.15);
    color: #b8941f;
}

.stat-icon-green {
    background: rgba(34, 197, 94, 0.1);
    color: #16a34a;
}

.stat-icon-orange {
    background: rgba(234, 179, 8, 0.1);
    color: #ca8a04;
}

.stat-icon-gray {
    background: var(--sand);
    color: var(--muted);
}

.stat-content {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.stat-content h2 {
    font-size: 22px;
    margin: 0;
}

.stat-content p {
    font-size: 13px;
    color: var(--muted);
    margin: 0;
}

.overview-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.profile-card {
    background: white;
    border: 1px solid var(--border);
    border-radius: 16px;
    overflow: hidden;
}

.profile-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    background: var(--sand);
    border-bottom: 1px solid var(--border);
}

.profile-card-header h3 {
    margin: 0;
    font-size: 15px;
}

.profile-action-buttons {
    display: flex;
    gap: 8px;
}

.profile-fields {
    padding: 20px;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

.profile-field {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.profile-field-full {
    grid-column: 1 / -1;
}

.profile-label {
    font-size: 12px;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.profile-value {
    font-size: 14px;
    font-weight: 500;
}

.pending-notice {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 20px;
    background: rgba(234, 179, 8, 0.1);
    border: 1px solid rgba(234, 179, 8, 0.3);
    border-radius: 12px;
    margin-top: 24px;
}

.pending-notice svg {
    color: #ca8a04;
    flex-shrink: 0;
    margin-top: 2px;
}

.pending-notice strong {
    display: block;
    margin-bottom: 4px;
}

.pending-notice p {
    margin: 0;
    color: var(--muted);
    font-size: 14px;
}

.request-cards {
    display: grid;
    gap: 12px;
}

.request-card {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 16px 20px;
    background: white;
    border: 1px solid var(--border);
    border-radius: 12px;
}

.request-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
    flex: 1;
}

.request-notes {
    color: var(--muted);
    font-size: 13px;
    flex: 1;
}

.request-actions {
    display: flex;
    gap: 8px;
}

.enrollment-cards {
    display: grid;
    gap: 16px;
}

.enrollment-card {
    background: white;
    border: 1px solid var(--border);
    border-radius: 16px;
    overflow: hidden;
}

.enrollment-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    background: var(--sand);
}

.enrollment-card-actions {
    display: flex;
    gap: 4px;
}

.enrollment-card-body {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    padding: 20px;
    gap: 20px;
}

.enrollment-main-info h3 {
    margin: 0 0 4px;
    font-size: 18px;
}

.enrollment-course {
    color: var(--teal);
    font-weight: 500;
    margin: 0 0 12px;
}

.enrollment-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    color: var(--muted);
    font-size: 13px;
}

.enrollment-meta span {
    display: flex;
    align-items: center;
    gap: 6px;
}

.fee-mini-stat {
    text-align: right;
}

.fee-mini-label {
    display: block;
    font-size: 12px;
    color: var(--muted);
}

.fee-mini-value {
    font-size: 24px;
    font-weight: 700;
}

.fee-mini-value.overdue {
    color: #dc2626;
}

.enrollment-card-footer {
    display: flex;
    gap: 12px;
    padding: 16px 20px;
    border-top: 1px solid var(--border);
    background: #fafafa;
}

.enrollment-action-link {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    color: var(--navy);
    background: white;
    border: 1px solid var(--border);
    transition: all 0.2s ease;
}

.enrollment-action-link:hover {
    border-color: var(--teal);
    color: var(--teal);
}

.enrollment-action-link-primary {
    background: var(--teal);
    color: white;
    border-color: var(--teal);
}

.enrollment-action-link-primary:hover {
    background: #0d6360;
    color: white;
}

.tab-header-actions {
    display: flex;
    gap: 12px;
    margin-bottom: 24px;
}

.fee-summary-header {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-bottom: 24px;
}

.fee-summary-card-large {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px;
    background: white;
    border: 1px solid var(--border);
    border-radius: 16px;
}

.fee-summary-icon-large {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    display: grid;
    place-items: center;
}

.fee-icon-received {
    background: rgba(34, 197, 94, 0.1);
    color: #16a34a;
}

.fee-icon-due {
    background: rgba(220, 38, 38, 0.1);
    color: #dc2626;
}

.fee-icon-total {
    background: rgba(59, 130, 246, 0.1);
    color: #2563eb;
}

.fee-progress-large {
    padding: 20px;
    background: white;
    border: 1px solid var(--border);
    border-radius: 16px;
}

.fee-progress-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 12px;
    font-size: 14px;
    font-weight: 500;
}

.fee-progress-bar-large {
    height: 12px;
    background: var(--sand);
    border-radius: 6px;
    overflow: hidden;
}

.fee-progress-fill-large {
    height: 100%;
    background: linear-gradient(90deg, var(--teal), #14b8a6);
    border-radius: 6px;
    transition: width 0.3s ease;
}

.fee-amount-due {
    color: #dc2626 !important;
}

.section-divider {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin: 32px 0 20px;
}

.section-divider span {
    font-weight: 700;
    font-size: 16px;
    color: var(--navy);
    position: relative;
}

.section-divider span::after {
    content: '';
    position: absolute;
    left: 100%;
    top: 50%;
    width: 40px;
    height: 1px;
    background: var(--border);
    margin-left: 16px;
}

.payment-list {
    background: white;
    border: 1px solid var(--border);
    border-radius: 16px;
    overflow: hidden;
}

.payment-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px 20px;
    border-bottom: 1px solid var(--border);
}

.payment-item:last-child {
    border-bottom: none;
}

.payment-item-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: var(--sand);
    display: grid;
    place-items: center;
    color: var(--muted);
}

.payment-item-info {
    flex: 1;
}

.payment-item-info strong {
    display: block;
    font-size: 15px;
}

.payment-item-info small {
    color: var(--muted);
    font-size: 13px;
}

.payment-item-batch {
    font-size: 14px;
}

.payment-item-status {
    min-width: 100px;
}

.payment-item-receipt {
    min-width: 120px;
    text-align: right;
}

.fee-records-list {
    display: grid;
    gap: 12px;
}

.fee-record-item {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 16px 20px;
    background: white;
    border: 1px solid var(--border);
    border-radius: 12px;
}

.fee-record-unpaid {
    border-left: 4px solid #dc2626;
}

.fee-record-partial {
    border-left: 4px solid #ca8a04;
}

.fee-record-main {
    flex: 1;
}

.fee-record-main strong {
    display: block;
}

.fee-record-main small {
    color: var(--muted);
    font-size: 13px;
}

.fee-record-amounts {
    display: flex;
    gap: 24px;
}

.fee-record-amount {
    text-align: right;
}

.fee-record-label {
    display: block;
    font-size: 12px;
    color: var(--muted);
}

.fee-record-value {
    font-weight: 600;
}

.fee-record-value.paid {
    color: #16a34a;
}

.fee-record-status {
    min-width: 100px;
}

.fee-record-batch {
    min-width: 150px;
    font-size: 14px;
}

.attendance-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-bottom: 24px;
}

.attendance-stat-card {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px;
    background: white;
    border: 1px solid var(--border);
    border-radius: 16px;
}

.attendance-stat-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: grid;
    place-items: center;
}

.attendance-stat-present {
    background: rgba(34, 197, 94, 0.1);
    color: #16a34a;
}

.attendance-stat-absent {
    background: rgba(220, 38, 38, 0.1);
    color: #dc2626;
}

.attendance-stat-leave {
    background: rgba(234, 179, 8, 0.1);
    color: #ca8a04;
}

.attendance-stat-total {
    background: rgba(59, 130, 246, 0.1);
    color: #2563eb;
}

.attendance-stat-info {
    display: flex;
    flex-direction: column;
}

.attendance-stat-value {
    font-size: 28px;
    font-weight: 700;
}

.attendance-stat-label {
    font-size: 13px;
    color: var(--muted);
}

.attendance-timeline {
    position: relative;
    padding-left: 28px;
}

.attendance-timeline::before {
    content: '';
    position: absolute;
    left: 10px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--border);
}

.attendance-timeline-item {
    position: relative;
    padding-bottom: 20px;
}

.attendance-timeline-marker {
    position: absolute;
    left: -24px;
    top: 4px;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: white;
    border: 3px solid var(--border);
}

.attendance-timeline-item-present .attendance-timeline-marker {
    background: #22c55e;
    border-color: #22c55e;
}

.attendance-timeline-item-absent .attendance-timeline-marker {
    background: #ef4444;
    border-color: #ef4444;
}

.attendance-timeline-item-leave .attendance-timeline-marker {
    background: #eab308;
    border-color: #eab308;
}

.attendance-timeline-content {
    background: white;
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 16px;
}

.attendance-timeline-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 8px;
}

.attendance-timeline-topic {
    color: var(--teal);
    font-weight: 500;
    margin-bottom: 4px;
}

.attendance-timeline-remarks {
    font-size: 14px;
    color: var(--muted);
    margin-bottom: 8px;
}

.attendance-timeline-meta {
    font-size: 12px;
    color: var(--muted);
    font-style: italic;
}

.attendance-status-pill {
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
}

.attendance-status-pill-present {
    background: rgba(34, 197, 94, 0.1);
    color: #16a34a;
}

.attendance-status-pill-absent {
    background: rgba(220, 38, 38, 0.1);
    color: #dc2626;
}

.attendance-status-pill-leave {
    background: rgba(234, 179, 8, 0.1);
    color: #ca8a04;
}

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

.notice-item {
    display: flex;
    gap: 16px;
    padding: 20px;
    background: white;
    border: 1px solid var(--border);
    border-radius: 12px;
}

.notice-item-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: rgba(15, 118, 110, 0.1);
    color: var(--teal);
    display: grid;
    place-items: center;
    flex-shrink: 0;
}

.notice-item-content {
    flex: 1;
}

.notice-item-content strong {
    display: block;
    margin-bottom: 4px;
}

.notice-item-content p {
    margin: 0 0 8px;
    color: var(--muted);
    font-size: 14px;
}

.notice-item-content small {
    color: var(--muted);
    font-size: 12px;
}

.result-card {
    background: white;
    border: 1px solid var(--border);
    border-radius: 16px;
    overflow: hidden;
}

.result-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px;
    background: var(--sand);
    border-bottom: 1px solid var(--border);
}

.result-card-header h4 {
    margin: 0 0 4px;
}

.result-percentage {
    font-size: 32px;
    font-weight: 700;
    color: var(--teal);
}

.result-breakdown {
    padding: 20px;
}

.result-marks {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

.result-marks-item {
    text-align: center;
    padding: 16px;
    background: var(--sand);
    border-radius: 12px;
}

.result-marks-label {
    display: block;
    font-size: 12px;
    color: var(--muted);
    margin-bottom: 4px;
}

.result-marks-value {
    font-size: 20px;
    font-weight: 700;
}

.result-card-footer {
    display: flex;
    justify-content: space-between;
    padding: 16px 20px;
    background: #fafafa;
    border-top: 1px solid var(--border);
    font-size: 14px;
    color: var(--muted);
}

.action-btn {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    display: grid;
    place-items: center;
    background: var(--sand);
    color: var(--muted);
    transition: all 0.2s ease;
    border: none;
    cursor: pointer;
    text-decoration: none;
}

.action-btn:hover {
    background: var(--teal);
    color: white;
}

.action-btn-danger:hover {
    background: #dc2626;
}

.button svg,
.button-primary svg,
.button-secondary svg {
    flex-shrink: 0;
}

.empty-state {
    text-align: center;
    padding: 48px 24px;
    background: white;
    border: 1px solid var(--border);
    border-radius: 16px;
}

.empty-state svg {
    margin: 0 auto 16px;
    color: var(--muted);
}

.empty-state h4 {
    margin: 0 0 8px;
    color: var(--navy);
}

.empty-state p {
    margin: 0 0 20px;
    color: var(--muted);
}

.empty-state-compact {
    padding: 24px;
}

@media (max-width: 768px) {
    .student-hero-grid {
        flex-wrap: wrap;
    }
    
    .student-avatar-large {
        width: 60px;
        height: 60px;
        font-size: 22px;
    }
    
    .student-hero-info h1 {
        font-size: 22px;
    }
    
    .student-hero-actions {
        width: 100%;
        justify-content: flex-start;
    }
    
    .overview-grid {
        grid-template-columns: 1fr;
    }
    
    .profile-fields {
        grid-template-columns: 1fr;
    }
    
    .fee-summary-header {
        grid-template-columns: 1fr;
    }
    
    .attendance-stats {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .enrollment-card-body {
        flex-direction: column;
    }
    
    .fee-record-item {
        flex-wrap: wrap;
    }
    
    .result-marks {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .tab-button {
        padding: 10px 14px;
        font-size: 13px;
    }
    
    .tab-button svg {
        display: none;
    }
}

.student-form {
    max-width: 800px;
}

.form-wizard {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.form-section {
    background: white;
    border: 1px solid var(--border);
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.form-section.active {
    border-color: var(--teal);
    box-shadow: 0 4px 20px rgba(15, 118, 110, 0.1);
}

.form-section-header {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px 24px;
    background: var(--sand);
    border-bottom: 1px solid var(--border);
}

.form-section.active .form-section-header {
    background: rgba(15, 118, 110, 0.05);
}

.form-section-number {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--muted);
    color: white;
    display: grid;
    place-items: center;
    font-weight: 700;
    font-size: 16px;
    flex-shrink: 0;
    transition: all 0.3s ease;
}

.form-section.active .form-section-number {
    background: var(--teal);
}

.form-section-info h3 {
    margin: 0 0 2px;
    font-size: 16px;
}

.form-section-info p {
    margin: 0;
    font-size: 13px;
    color: var(--muted);
}

.form-section-body {
    padding: 24px;
    display: none;
}

.form-section.active .form-section-body {
    display: block;
}

.form-row {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-bottom: 20px;
}

.form-row:last-child {
    margin-bottom: 0;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.form-group label {
    font-weight: 600;
    font-size: 14px;
    color: var(--navy);
}

.required {
    color: #dc2626;
}

.form-group input,
.form-group select,
.form-group textarea {
    padding: 12px 14px;
    border: 1px solid var(--border);
    border-radius: 10px;
    font-family: inherit;
    font-size: 14px;
    transition: all 0.2s ease;
    background: white;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--teal);
    box-shadow: 0 0 0 3px rgba(15, 118, 110, 0.1);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: #adb5bd;
}

.field-help {
    font-size: 12px;
    color: var(--muted);
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    font-weight: 500;
}

.checkbox-label input {
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.current-access-card {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px;
    background: var(--sand);
    border-radius: 12px;
    margin-top: 16px;
}

.current-access-icon {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    background: rgba(15, 118, 110, 0.1);
    color: var(--teal);
    display: grid;
    place-items: center;
}

.current-access-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.current-access-info strong {
    font-size: 14px;
}

.current-access-info span {
    font-size: 13px;
    color: var(--muted);
}

.form-actions {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    margin-top: 24px;
    padding-top: 24px;
    border-top: 1px solid var(--border);
}

.form-actions .button {
    display: flex;
    align-items: center;
    gap: 8px;
}

@media (max-width: 768px) {
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .form-section-header {
        padding: 16px;
    }
    
    .form-section-body {
        padding: 16px;
    }
}

.page-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.page-header-text {
    flex: 1;
}

.page-header-text .eyebrow {
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--teal);
    font-weight: 600;
}

.page-header-text h1 {
    margin: 4px 0 8px;
}

.page-header-text p {
    color: var(--muted);
    margin: 0;
}

.inquiry-stats {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 12px;
    margin-bottom: 24px;
}

.inquiry-stat-card {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px 20px;
    background: white;
    border: 1px solid var(--border);
    border-radius: 12px;
    transition: all 0.2s ease;
    text-decoration: none;
    color: inherit;
}

.inquiry-stat-card:hover {
    border-color: var(--teal);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
}

.inquiry-stat-card.active {
    border-color: var(--teal);
    background: rgba(15, 118, 110, 0.05);
}

.inquiry-stat-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: grid;
    place-items: center;
    background: var(--sand);
    color: var(--muted);
}

.inquiry-stat-new .inquiry-stat-icon { background: rgba(59, 130, 246, 0.1); color: #2563eb; }
.inquiry-stat-pending .inquiry-stat-icon { background: rgba(234, 179, 8, 0.1); color: #ca8a04; }
.inquiry-stat-approved .inquiry-stat-icon { background: rgba(34, 197, 94, 0.1); color: #16a34a; }
.inquiry-stat-closed .inquiry-stat-icon { background: rgba(107, 114, 128, 0.1); color: #6b7280; }

.inquiry-stat-new.active { border-color: #2563eb; }
.inquiry-stat-pending.active { border-color: #ca8a04; }
.inquiry-stat-approved.active { border-color: #16a34a; }
.inquiry-stat-closed.active { border-color: #6b7280; }

.inquiry-stat-info {
    display: flex;
    flex-direction: column;
}

.inquiry-stat-value {
    font-size: 24px;
    font-weight: 700;
    line-height: 1;
}

.inquiry-stat-label {
    font-size: 12px;
    color: var(--muted);
    margin-top: 2px;
}

.inquiry-toolbar {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 24px;
}

.inquiry-search-form {
    display: flex;
    gap: 12px;
    flex: 1;
}

.search-input-wrapper {
    position: relative;
    flex: 1;
    max-width: 400px;
}

.search-input-icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--muted);
    pointer-events: none;
}

.search-input {
    width: 100%;
    padding: 12px 14px 12px 44px;
    border: 1px solid var(--border);
    border-radius: 10px;
    font-family: inherit;
    font-size: 14px;
}

.search-input:focus {
    outline: none;
    border-color: var(--teal);
    box-shadow: 0 0 0 3px rgba(15, 118, 110, 0.1);
}

.inquiry-cards {
    display: grid;
    gap: 16px;
}

.inquiry-card {
    background: white;
    border: 1px solid var(--border);
    border-radius: 16px;
    overflow: hidden;
}

.inquiry-card-header {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px;
    border-bottom: 1px solid var(--border);
}

.inquiry-card-avatar {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: linear-gradient(145deg, var(--navy), #1d4d7d);
    color: white;
    display: grid;
    place-items: center;
    font-weight: 700;
    font-size: 16px;
    flex-shrink: 0;
}

.inquiry-card-contact {
    flex: 1;
}

.inquiry-card-contact strong {
    display: block;
    font-size: 16px;
    margin-bottom: 4px;
}

.inquiry-contact-links {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
}

.inquiry-contact-link {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: var(--muted);
    text-decoration: none;
}

.inquiry-contact-link:hover {
    color: var(--teal);
}

.inquiry-card-status {
    flex-shrink: 0;
}

.inquiry-card-course {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 20px;
    background: rgba(15, 118, 110, 0.05);
    color: var(--teal);
    font-size: 14px;
}

.inquiry-card-message {
    padding: 20px;
    background: var(--sand);
}

.inquiry-card-message p {
    margin: 0;
    color: var(--ink);
    line-height: 1.6;
}

.inquiry-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
}

.inquiry-card-meta {
    display: flex;
    align-items: center;
    gap: 16px;
    font-size: 13px;
    color: var(--muted);
}

.inquiry-card-meta span {
    display: flex;
    align-items: center;
    gap: 6px;
}

.inquiry-card-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.inquiry-status-form {
    display: contents;
}

.inquiry-status-select {
    padding: 8px 12px;
    border: 1px solid var(--border);
    border-radius: 8px;
    font-family: inherit;
    font-size: 13px;
    background: white;
    cursor: pointer;
}

.inquiry-status-select:focus {
    outline: none;
    border-color: var(--teal);
}

@media (max-width: 768px) {
    .inquiry-stats {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .inquiry-stats .inquiry-stat-card:first-child {
        grid-column: span 2;
    }
    
    .inquiry-toolbar {
        flex-direction: column;
    }
    
    .inquiry-search-form {
        flex-direction: column;
        width: 100%;
    }
    
    .search-input-wrapper {
        max-width: none;
    }
    
    .inquiry-card-header {
        flex-wrap: wrap;
    }
    
    .inquiry-card-contact {
        flex-basis: calc(100% - 64px);
    }
    
    .inquiry-card-footer {
        flex-direction: column;
        gap: 16px;
        align-items: stretch;
    }
    
    .inquiry-card-actions {
        justify-content: flex-start;
    }
}

.pagination {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px;
    margin-top: 24px;
    background: white;
    border: 1px solid var(--border);
    border-radius: 12px;
}

.pagination-info {
    font-size: 14px;
    color: var(--muted);
}

.pagination-controls {
    display: flex;
    align-items: center;
    gap: 4px;
}

.pagination-btn {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    display: grid;
    place-items: center;
    background: var(--sand);
    color: var(--muted);
    text-decoration: none;
    transition: all 0.2s ease;
}

.pagination-btn:hover:not(.disabled) {
    background: var(--teal);
    color: white;
}

.pagination-btn.disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.pagination-pages {
    display: flex;
    align-items: center;
    gap: 4px;
    margin: 0 8px;
}

.pagination-page {
    min-width: 36px;
    height: 36px;
    border-radius: 8px;
    display: grid;
    place-items: center;
    font-size: 14px;
    font-weight: 500;
    color: var(--muted);
    text-decoration: none;
    transition: all 0.2s ease;
}

.pagination-page:hover {
    background: var(--sand);
    color: var(--navy);
}

.pagination-page.current {
    background: var(--teal);
    color: white;
}

    .pagination-ellipsis {
        padding: 0 8px;
        color: var(--muted);
    }
}

.page-header-actions {
    flex-shrink: 0;
}

.teacher-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-bottom: 24px;
}

.teacher-stat-card {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px 20px;
    background: white;
    border: 1px solid var(--border);
    border-radius: 12px;
    transition: all 0.2s ease;
    text-decoration: none;
    color: inherit;
}

.teacher-stat-card:hover {
    border-color: var(--teal);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
}

.teacher-stat-card.active {
    border-color: var(--teal);
    background: rgba(15, 118, 110, 0.05);
}

.teacher-stat-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: grid;
    place-items: center;
    background: var(--sand);
    color: var(--muted);
}

.teacher-stat-active .teacher-stat-icon { background: rgba(34, 197, 94, 0.1); color: #16a34a; }
.teacher-stat-inactive .teacher-stat-icon { background: rgba(220, 38, 38, 0.1); color: #dc2626; }
.teacher-stat-active.active { border-color: #16a34a; }
.teacher-stat-inactive.active { border-color: #dc2626; }

.teacher-stat-info {
    display: flex;
    flex-direction: column;
}

.teacher-stat-value {
    font-size: 24px;
    font-weight: 700;
    line-height: 1;
}

.teacher-stat-label {
    font-size: 12px;
    color: var(--muted);
    margin-top: 2px;
}

.teacher-form {
    max-width: 800px;
}

.file-upload-wrapper {
    position: relative;
}

.file-upload-input {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
}

.file-upload-content {
    background: var(--sand);
    border: 2px dashed var(--border);
    border-radius: 12px;
    padding: 24px;
    text-align: center;
    transition: all 0.2s ease;
}

.file-upload-input:hover + .file-upload-content,
.file-upload-content:hover {
    border-color: var(--teal);
}

.file-upload-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    color: var(--muted);
}

.file-upload-placeholder span {
    font-weight: 500;
    color: var(--navy);
}

.file-upload-placeholder small {
    font-size: 12px;
}

.photo-preview {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.photo-preview img {
    width: 120px;
    height: 120px;
    border-radius: 12px;
    object-fit: cover;
}

.photo-preview-label {
    font-size: 12px;
    color: var(--muted);
}

.teacher-toolbar {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 24px;
}

.teacher-search-form {
    display: flex;
    gap: 12px;
    flex: 1;
}

.teacher-cards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 20px;
}

.teacher-card {
    background: white;
    border: 1px solid var(--border);
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.2s ease;
}

.teacher-card:hover {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
    transform: translateY(-2px);
}

.teacher-card-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    padding: 20px;
    background: linear-gradient(135deg, rgba(15, 118, 110, 0.05), rgba(15, 118, 110, 0.02));
}

.teacher-avatar {
    width: 64px;
    height: 64px;
    border-radius: 16px;
    background: linear-gradient(145deg, var(--navy), #1d4d7d);
    color: white;
    display: grid;
    place-items: center;
    font-weight: 700;
    font-size: 22px;
    overflow: hidden;
}

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

.teacher-card-body {
    padding: 0 20px 20px;
}

.teacher-card-body h3 {
    margin: 0 0 4px;
    font-size: 18px;
}

.teacher-designation {
    margin: 0 0 16px;
    color: var(--teal);
    font-weight: 500;
    font-size: 14px;
}

.teacher-contacts {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 16px;
}

.teacher-contact {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: var(--muted);
    text-decoration: none;
}

.teacher-contact:hover {
    color: var(--teal);
}

.teacher-batches {
    padding-top: 16px;
    border-top: 1px solid var(--border);
}

.teacher-batches-label {
    display: block;
    font-size: 12px;
    color: var(--muted);
    margin-bottom: 8px;
}

.teacher-batches-list {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.teacher-batch-tag {
    display: inline-block;
    padding: 4px 10px;
    background: var(--sand);
    border-radius: 6px;
    font-size: 12px;
    font-weight: 500;
    color: var(--navy);
    text-decoration: none;
}

.teacher-batch-tag:hover {
    background: var(--teal);
    color: white;
}

.teacher-batch-more {
    padding: 4px 10px;
    font-size: 12px;
    color: var(--muted);
}

.teacher-card-footer {
    display: flex;
    gap: 8px;
    padding: 16px 20px;
    background: #fafafa;
    border-top: 1px solid var(--border);
}

.teacher-action-link {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 500;
    color: var(--navy);
    background: white;
    border: 1px solid var(--border);
    text-decoration: none;
    transition: all 0.2s ease;
}

.teacher-action-link:hover {
    border-color: var(--teal);
    color: var(--teal);
}

.teacher-action-link-primary {
    background: var(--teal);
    color: white;
    border-color: var(--teal);
    margin-left: auto;
}

.teacher-action-link-primary:hover {
    background: #0d6360;
    color: white;
}

@media (max-width: 768px) {
    .page-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .teacher-stats {
        grid-template-columns: 1fr;
    }
    
    .teacher-toolbar {
        flex-direction: column;
    }
    
    .teacher-search-form {
        flex-direction: column;
        width: 100%;
    }
    
    .teacher-cards {
        grid-template-columns: 1fr;
    }
    
    .teacher-card-footer {
        flex-wrap: wrap;
    }
}

@media (max-width: 768px) {
    .pagination {
        flex-direction: column;
        gap: 16px;
    }
    
    .pagination-pages {
        flex-wrap: wrap;
        justify-content: center;
    }
}

.enroll-workspace {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 24px;
    min-height: 600px;
}

.enroll-workspace-reverse {
    grid-template-columns: 320px 1fr;
}

.enroll-sidebar {
    background: white;
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 24px;
    height: fit-content;
    position: sticky;
    top: 24px;
}

.enroll-sidebar-header {
    margin-bottom: 24px;
}

.enroll-sidebar-header h2 {
    margin: 0 0 4px;
    font-size: 18px;
}

.enroll-sidebar-header p {
    margin: 0;
    font-size: 13px;
    color: var(--muted);
}

.enroll-filter-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.enroll-filter-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.enroll-filter-field label {
    font-size: 13px;
    font-weight: 600;
    color: var(--navy);
}

.enroll-select {
    padding: 10px 12px;
    border: 1px solid var(--border);
    border-radius: 8px;
    font-family: inherit;
    font-size: 14px;
    background: white;
    cursor: pointer;
}

.enroll-select:focus {
    outline: none;
    border-color: var(--teal);
}

.enroll-filter-actions {
    display: flex;
    gap: 8px;
    margin-top: 8px;
}

.enroll-filter-actions .button {
    flex: 1;
}

.enroll-main {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.enroll-selection-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    background: white;
    border: 1px solid var(--border);
    border-radius: 12px;
    transition: all 0.2s ease;
}

.enroll-selection-bar.is-active {
    border-color: var(--teal);
    background: rgba(15, 118, 110, 0.03);
}

.enroll-selection-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.enroll-selection-info strong {
    font-size: 15px;
    color: var(--navy);
}

.enroll-selection-info small {
    font-size: 13px;
    color: var(--muted);
}

.enroll-selection-actions {
    display: flex;
    gap: 8px;
}

.enroll-results {
    background: white;
    border: 1px solid var(--border);
    border-radius: 16px;
    overflow: hidden;
}

.enroll-results.is-loading {
    min-height: 300px;
    position: relative;
}

.enroll-results.is-loading::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
}

.enrollment-modal {
    max-width: 540px;
    width: 100%;
}

.enrollment-confirm-cards {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    padding: 24px 0;
    border-bottom: 1px solid var(--border);
    margin-bottom: 24px;
}

.enrollment-confirm-card {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
    justify-content: center;
}

.enrollment-confirm-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: grid;
    place-items: center;
}

.enrollment-confirm-icon-student {
    background: rgba(15, 118, 110, 0.1);
    color: var(--teal);
}

.enrollment-confirm-icon-batch {
    background: rgba(59, 130, 246, 0.1);
    color: #3b82f6;
}

.enrollment-confirm-details {
    display: flex;
    flex-direction: column;
}

.enrollment-confirm-label {
    font-size: 12px;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.enrollment-confirm-details strong {
    font-size: 16px;
    color: var(--navy);
}

.enrollment-confirm-details small {
    font-size: 13px;
    color: var(--muted);
}

.enrollment-confirm-arrow {
    color: var(--border);
    flex-shrink: 0;
}

.enrollment-confirm-notes {
    margin-bottom: 24px;
}

.enrollment-confirm-notes label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: var(--navy);
    margin-bottom: 8px;
}

.enrollment-confirm-notes textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--border);
    border-radius: 8px;
    font-family: inherit;
    font-size: 14px;
    resize: vertical;
}

.enrollment-confirm-notes textarea:focus {
    outline: none;
    border-color: var(--teal);
}

.enroll-hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.enroll-hero-student {
    display: flex;
    align-items: center;
    gap: 16px;
}

.enroll-student-avatar {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    background: linear-gradient(145deg, var(--navy), #1d4d7d);
    color: white;
    display: grid;
    place-items: center;
    font-weight: 700;
    font-size: 20px;
}

.enroll-student-info .eyebrow {
    display: block;
    font-size: 12px;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 4px;
}

.enroll-student-info h1 {
    margin: 0 0 8px;
    font-size: 24px;
    color: var(--ink);
}

.enroll-student-meta {
    display: flex;
    align-items: center;
    gap: 16px;
    font-size: 14px;
    color: var(--ink);
}

.enroll-hero-actions {
    flex-shrink: 0;
}

.enroll-batch-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.enroll-batch-summary {
    margin-top: 24px;
    padding: 20px;
    background: var(--sand);
    border-radius: 12px;
}

.enroll-batch-summary h3 {
    margin: 0 0 4px;
    font-size: 18px;
    color: var(--navy);
}

.enroll-batch-summary p {
    margin: 0 0 12px;
    font-size: 14px;
    color: var(--teal);
}

.enroll-batch-details {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    font-size: 13px;
    color: var(--muted);
    margin-bottom: 16px;
}

.enroll-batch-actions {
    display: flex;
    gap: 8px;
}

.enroll-search-bar {
    display: flex;
    gap: 12px;
    align-items: center;
}

.enroll-search-bar .search-input-wrapper {
    flex: 1;
}

.enroll-results-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    background: var(--sand);
    border-bottom: 1px solid var(--border);
}

.enroll-results-header h2 {
    margin: 0;
    font-size: 16px;
}

.enroll-results-header p {
    margin: 0;
    font-size: 13px;
    color: var(--muted);
}

.enroll-quick-enroll {
    padding: 20px;
    background: rgba(15, 118, 110, 0.05);
    border: 1px solid rgba(15, 118, 110, 0.1);
    border-radius: 12px;
}

.enroll-quick-student {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 12px;
}

.enroll-quick-student-info strong {
    display: block;
    font-size: 16px;
    color: var(--navy);
}

.enroll-quick-student-info small {
    font-size: 13px;
    color: var(--muted);
}

.enroll-quick-actions {
    display: flex;
    gap: 8px;
}

.enroll-students-table {
    overflow-x: auto;
}

.enroll-students-table .data-table {
    margin: 0;
}

.enroll-action-group {
    display: flex;
    gap: 8px;
}

.enroll-action-group form {
    display: contents;
}

.enroll-action-group .button {
    white-space: nowrap;
}

@media (max-width: 768px) {
    .enroll-workspace,
    .enroll-workspace-reverse {
        grid-template-columns: 1fr;
    }
    
    .enroll-sidebar {
        position: static;
    }
    
    .enroll-hero {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .enroll-selection-bar {
        flex-direction: column;
        gap: 12px;
    }
    
    .enroll-selection-actions {
        width: 100%;
    }
    
    .enroll-selection-actions .button {
        flex: 1;
    }
    
    .enrollment-confirm-cards {
        flex-direction: column;
        gap: 12px;
    }
    
    .enrollment-confirm-arrow {
        transform: rotate(90deg);
    }
    
    .enroll-search-bar {
        flex-direction: column;
    }
    
    .enroll-quick-student {
        flex-direction: column;
        align-items: flex-start;
    }
}

.student-batch-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 16px;
    padding: 20px;
}

.student-batch-card {
    background: white;
    border: 2px solid var(--border);
    border-radius: 14px;
    padding: 20px;
    transition: all 0.2s ease;
}

.student-batch-card:hover {
    border-color: var(--teal);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
}

.student-batch-card.is-selected {
    border-color: var(--teal);
    background: rgba(15, 118, 110, 0.03);
}

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

.student-batch-course {
    display: block;
    font-size: 12px;
    font-weight: 600;
    color: var(--teal);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 4px;
}

.student-batch-card-head h3 {
    margin: 0;
    font-size: 17px;
    color: var(--navy);
}

.student-batch-meta {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    padding: 16px 0;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    margin-bottom: 16px;
}

.student-batch-meta > div {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.student-batch-meta strong {
    font-size: 13px;
    color: var(--navy);
}

.student-batch-meta small {
    font-size: 12px;
    color: var(--muted);
}

.student-batch-card-actions {
    display: flex;
    gap: 8px;
}

.student-batch-card-actions .button {
    flex: 1;
}

@media (max-width: 768px) {
    .student-batch-grid {
        grid-template-columns: 1fr;
    }
    
    .student-batch-meta {
        grid-template-columns: 1fr;
        gap: 8px;
    }
}

.s-profile-hero {
    padding: 48px 0 40px;
    background: linear-gradient(135deg, rgba(15, 118, 110, 0.03), rgba(15, 118, 110, 0.08));
    border-bottom: 1px solid var(--border);
}

.s-profile-hero-inner {
    display: flex;
    align-items: center;
    gap: 24px;
}

.s-profile-avatar {
    width: 96px;
    height: 96px;
    border-radius: 24px;
    background: linear-gradient(145deg, var(--navy), #1d4d7d);
    color: white;
    display: grid;
    place-items: center;
    font-weight: 700;
    font-size: 32px;
    overflow: hidden;
    flex-shrink: 0;
}

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

.s-profile-hero-info .eyebrow {
    display: block;
    margin-bottom: 4px;
}

.s-profile-hero-info h1 {
    margin: 0 0 12px;
    font-size: 28px;
    color: var(--navy);
}

.s-profile-hero-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.s-profile-tabs {
    display: flex;
    gap: 4px;
    padding: 4px;
    background: white;
    border: 1px solid var(--border);
    border-radius: 12px;
    margin-bottom: 24px;
    width: fit-content;
}

.s-profile-tab {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    border: none;
    background: transparent;
    border-radius: 8px;
    font-family: inherit;
    font-size: 14px;
    font-weight: 600;
    color: var(--muted);
    cursor: pointer;
    transition: all 0.2s ease;
}

.s-profile-tab:hover {
    color: var(--navy);
    background: var(--sand);
}

.s-profile-tab.active {
    background: var(--teal);
    color: white;
}

.s-profile-content {
    background: white;
    border: 1px solid var(--border);
    border-radius: 16px;
    overflow: hidden;
}

.s-profile-panel {
    display: none;
}

.s-profile-panel.active {
    display: block;
}

.s-profile-layout {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 24px;
}

.s-profile-form-section {
    padding: 32px;
}

.s-form-section {
    margin-bottom: 32px;
}

.s-form-section:last-child {
    margin-bottom: 0;
}

.s-form-section h3 {
    margin: 0 0 16px;
    font-size: 16px;
    color: var(--navy);
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border);
}

.s-form-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

.s-form-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.s-form-field-full {
    grid-column: span 2;
}

.s-form-field label {
    font-size: 13px;
    font-weight: 600;
    color: var(--navy);
}

.s-form-field input,
.s-form-field select,
.s-form-field textarea {
    padding: 12px 14px;
    border: 1px solid var(--border);
    border-radius: 10px;
    font-family: inherit;
    font-size: 14px;
    background: white;
    transition: border-color 0.2s ease;
}

.s-form-field input:focus,
.s-form-field select:focus,
.s-form-field textarea:focus {
    outline: none;
    border-color: var(--teal);
}

.s-form-field textarea {
    resize: vertical;
    min-height: 80px;
}

.s-form-hint {
    font-size: 12px;
    color: var(--muted);
    margin-top: 4px;
}

.s-photo-upload {
    position: relative;
    cursor: pointer;
}

.s-photo-input {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
}

.s-photo-upload-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    padding: 32px;
    background: var(--sand);
    border: 2px dashed var(--border);
    border-radius: 14px;
    transition: all 0.2s ease;
}

.s-photo-upload:hover .s-photo-upload-content,
.s-photo-upload.drag-over .s-photo-upload-content {
    border-color: var(--teal);
}

.s-photo-upload-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    color: var(--muted);
}

.s-photo-upload-placeholder span {
    font-weight: 600;
    font-size: 16px;
    color: var(--navy);
}

.s-photo-upload-placeholder small {
    font-size: 13px;
}

.s-photo-preview {
    width: 120px;
    height: 120px;
    border-radius: 12px;
    object-fit: cover;
}

.s-photo-hint {
    font-size: 12px;
    color: var(--muted);
}

.s-form-actions {
    display: flex;
    gap: 12px;
    margin-top: 24px;
    padding-top: 24px;
    border-top: 1px solid var(--border);
}

.s-profile-info-section {
    padding: 32px 32px 32px 0;
}

.s-info-card {
    background: var(--sand);
    border-radius: 14px;
    padding: 24px;
    height: fit-content;
}

.s-info-card h3 {
    margin: 0 0 20px;
    font-size: 16px;
    color: var(--navy);
}

.s-info-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.s-info-item {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.s-info-label {
    font-size: 12px;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.s-info-value {
    font-size: 14px;
    color: var(--ink);
}

.s-password-section {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 48px 32px;
}

.s-password-card {
    max-width: 480px;
    width: 100%;
}

.s-password-card-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 24px;
}

.s-password-icon {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    background: rgba(15, 118, 110, 0.1);
    color: var(--teal);
    display: grid;
    place-items: center;
}

.s-password-card-header h3 {
    margin: 0 0 4px;
    font-size: 20px;
    color: var(--navy);
}

.s-password-card-header p {
    margin: 0;
    font-size: 14px;
    color: var(--muted);
}

.s-password-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

@media (max-width: 1024px) {
    .s-profile-layout {
        grid-template-columns: 1fr;
    }
    
    .s-profile-info-section {
        padding: 0 32px 32px;
        order: -1;
    }
    
    .s-info-card {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }
    
    .s-info-card h3 {
        grid-column: span 2;
    }
}

@media (max-width: 768px) {
    .s-profile-hero-inner {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .s-profile-tabs {
        width: 100%;
    }
    
    .s-profile-tab {
        flex: 1;
        justify-content: center;
    }
    
    .s-form-grid {
        grid-template-columns: 1fr;
    }
    
    .s-form-field-full {
        grid-column: span 1;
    }
    
    .s-profile-form-section,
    .s-profile-info-section {
        padding: 24px;
    }
    
    .s-info-card {
        grid-template-columns: 1fr;
    }
    
    .s-info-card h3 {
        grid-column: span 1;
    }
}

.sb-hero {
    padding: 48px 0 40px;
    background: linear-gradient(135deg, rgba(15, 118, 110, 0.03), rgba(15, 118, 110, 0.08));
    border-bottom: 1px solid var(--border);
}

.sb-hero-inner {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 24px;
    flex-wrap: wrap;
}

.sb-hero-info .eyebrow {
    display: block;
    margin-bottom: 4px;
}

.sb-hero-info h1 {
    margin: 0 0 8px;
    font-size: 28px;
    color: var(--navy);
}

.sb-hero-course {
    margin: 0 0 16px;
    font-size: 16px;
    color: var(--teal);
    font-weight: 500;
}

.sb-hero-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.sb-hero-actions {
    flex-shrink: 0;
}

.sb-stats {
    padding: 24px 0;
    background: white;
    border-bottom: 1px solid var(--border);
}

.sb-stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

.sb-stat-card {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px 20px;
    background: var(--sand);
    border-radius: 12px;
}

.sb-stat-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: grid;
    place-items: center;
}

.sb-stat-icon-attendance { background: rgba(34, 197, 94, 0.1); color: #16a34a; }
.sb-stat-icon-lectures { background: rgba(15, 118, 110, 0.1); color: var(--teal); }
.sb-stat-icon-fees { background: rgba(234, 179, 8, 0.1); color: #a16207; }
.sb-stat-icon-result { background: rgba(168, 85, 247, 0.1); color: #9333ea; }

.sb-stat-info {
    display: flex;
    flex-direction: column;
}

.sb-stat-value {
    font-size: 20px;
    font-weight: 700;
    color: var(--navy);
    line-height: 1.2;
}

.sb-stat-label {
    font-size: 12px;
    color: var(--muted);
}

.sb-nav-sticky {
    position: sticky;
    top: 0;
    z-index: 100;
    background: white;
    border-bottom: 1px solid var(--border);
    padding: 12px 0;
}

.sb-nav {
    display: flex;
    gap: 8px;
    overflow-x: auto;
}

.sb-nav-link {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    color: var(--muted);
    text-decoration: none;
    white-space: nowrap;
    transition: all 0.2s ease;
}

.sb-nav-link:hover {
    background: var(--sand);
    color: var(--navy);
}

.sb-section-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 24px;
}

.sb-section-header h2 {
    margin: 4px 0 0;
    font-size: 22px;
    color: var(--navy);
}

.sb-lectures-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

.sb-lectures-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.sb-lecture-card {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px;
    background: white;
    border: 2px solid var(--border);
    border-radius: 12px;
    text-decoration: none;
    transition: all 0.2s ease;
}

.sb-lecture-card:hover {
    border-color: var(--teal);
}

.sb-lecture-card.active {
    border-color: var(--teal);
    background: rgba(15, 118, 110, 0.03);
}

.sb-lecture-date {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    border-radius: 10px;
    background: var(--sand);
    flex-shrink: 0;
}

.sb-lecture-day {
    font-size: 18px;
    font-weight: 700;
    color: var(--navy);
    line-height: 1;
}

.sb-lecture-month {
    font-size: 11px;
    color: var(--muted);
    text-transform: uppercase;
}

.sb-lecture-content {
    flex: 1;
    min-width: 0;
}

.sb-lecture-content strong {
    display: block;
    font-size: 14px;
    color: var(--navy);
    margin-bottom: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.sb-lecture-content small {
    font-size: 12px;
    color: var(--muted);
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.sb-lecture-status {
    flex-shrink: 0;
}

.sb-status-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    display: block;
}

.sb-status-present { background: #16a34a; }
.sb-status-absent { background: #dc2626; }
.sb-status-late { background: #a16207; }
.sb-status-pending { background: var(--border); }

.sb-lecture-detail {
    background: white;
    border: 1px solid var(--border);
    border-radius: 14px;
    overflow: hidden;
}

.sb-detail-header {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px;
    background: var(--sand);
    border-bottom: 1px solid var(--border);
}

.sb-detail-date {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 64px;
    height: 64px;
    border-radius: 12px;
    background: white;
    flex-shrink: 0;
}

.sb-detail-day {
    font-size: 24px;
    font-weight: 700;
    color: var(--navy);
    line-height: 1;
}

.sb-detail-month {
    font-size: 12px;
    color: var(--muted);
}

.sb-detail-info {
    flex: 1;
}

.sb-detail-info h3 {
    margin: 0 0 8px;
    font-size: 18px;
    color: var(--navy);
}

.sb-detail-badges {
    display: flex;
    gap: 8px;
}

.sb-attendance-badge {
    display: inline-flex;
    align-items: center;
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
}

.sb-attendance-badge-present { background: rgba(34, 197, 94, 0.1); color: #16a34a; }
.sb-attendance-badge-absent { background: rgba(220, 38, 38, 0.1); color: #dc2626; }
.sb-attendance-badge-late { background: rgba(234, 179, 8, 0.1); color: #a16207; }
.sb-attendance-badge-pending { background: var(--sand); color: var(--muted); }

.sb-detail-body {
    padding: 20px;
}

.sb-detail-section {
    margin-bottom: 20px;
}

.sb-detail-section:last-child {
    margin-bottom: 0;
}

.sb-detail-section h4 {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0 0 8px;
    font-size: 13px;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.sb-detail-section p {
    margin: 0;
    font-size: 14px;
    color: var(--ink);
    line-height: 1.6;
}

.sb-detail-empty,
.sb-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 60px 20px;
    text-align: center;
    color: var(--muted);
}

.sb-detail-empty svg,
.sb-empty svg {
    opacity: 0.4;
}

.sb-detail-empty h3,
.sb-empty h3 {
    margin: 0;
    font-size: 18px;
    color: var(--navy);
}

.sb-detail-empty p,
.sb-empty p {
    margin: 0;
    max-width: 300px;
    font-size: 14px;
    color: var(--muted);
}

.sb-info-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.sb-info-card {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 20px;
    background: white;
    border: 1px solid var(--border);
    border-radius: 12px;
}

.sb-info-icon {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    background: rgba(15, 118, 110, 0.08);
    color: var(--teal);
    display: grid;
    place-items: center;
    flex-shrink: 0;
}

.sb-info-content {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.sb-info-label {
    font-size: 12px;
    color: var(--muted);
}

.sb-info-content strong {
    font-size: 15px;
    color: var(--navy);
}

.sb-info-content small {
    font-size: 13px;
    color: var(--muted);
}

.sb-results-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

.sb-result-scores {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

.sb-score-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: white;
    border: 1px solid var(--border);
    border-radius: 12px;
    text-align: center;
}

.sb-score-label {
    font-size: 12px;
    color: var(--muted);
    margin-bottom: 8px;
}

.sb-score-value {
    font-size: 28px;
    font-weight: 700;
    color: var(--navy);
}

.sb-result-summary {
    background: white;
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 24px;
}

.sb-result-total {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    text-align: center;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border);
    margin-bottom: 20px;
}

.sb-result-total-label {
    font-size: 13px;
    color: var(--muted);
}

.sb-result-total-value {
    font-size: 36px;
    font-weight: 700;
    color: var(--navy);
}

.sb-result-remarks h4 {
    font-size: 13px;
    color: var(--muted);
    margin: 0 0 8px;
}

.sb-result-remarks p {
    margin: 0;
    font-size: 14px;
    color: var(--ink);
    line-height: 1.6;
}

.sb-attendance-summary {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

.sb-attendance-percent {
    font-size: 32px;
    font-weight: 700;
    color: var(--navy);
}

.sb-attendance-label {
    font-size: 13px;
    color: var(--muted);
}

.sb-attendance-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.sb-attendance-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px;
    background: white;
    border: 1px solid var(--border);
    border-radius: 12px;
}

.sb-attendance-date {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    border-radius: 10px;
    background: var(--sand);
    flex-shrink: 0;
}

.sb-attendance-day {
    font-size: 18px;
    font-weight: 700;
    color: var(--navy);
    line-height: 1;
}

.sb-attendance-month {
    font-size: 11px;
    color: var(--muted);
    text-transform: uppercase;
}

.sb-attendance-content {
    flex: 1;
}

.sb-attendance-content strong {
    display: block;
    font-size: 14px;
    color: var(--navy);
    margin-bottom: 4px;
}

.sb-attendance-content small {
    font-size: 12px;
    color: var(--muted);
}

.sb-attendance-status {
    flex-shrink: 0;
}

.sb-status-badge {
    display: inline-flex;
    align-items: center;
    padding: 6px 12px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
}

.sb-status-badge-present { background: rgba(34, 197, 94, 0.1); color: #16a34a; }
.sb-status-badge-absent { background: rgba(220, 38, 38, 0.1); color: #dc2626; }
.sb-status-badge-late { background: rgba(234, 179, 8, 0.1); color: #a16207; }

.sb-fees-layout {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.sb-fee-summary {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

.sb-fee-summary-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: white;
    border: 1px solid var(--border);
    border-radius: 12px;
    text-align: center;
}

.sb-fee-summary-card.warning {
    border-color: #a16207;
    background: rgba(234, 179, 8, 0.05);
}

.sb-fee-summary-label {
    font-size: 12px;
    color: var(--muted);
    margin-bottom: 8px;
}

.sb-fee-summary-value {
    font-size: 22px;
    font-weight: 700;
    color: var(--navy);
}

.sb-fee-summary-card.warning .sb-fee-summary-value {
    color: #a16207;
}

.sb-payments-section h3,
.sb-fee-records-section h3 {
    margin: 0 0 16px;
    font-size: 16px;
    color: var(--navy);
}

.sb-payments-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.sb-payment-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 16px;
    background: white;
    border: 1px solid var(--border);
    border-radius: 10px;
}

.sb-payment-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.sb-payment-info strong {
    font-size: 14px;
    color: var(--navy);
}

.sb-payment-info small {
    font-size: 12px;
    color: var(--muted);
}

.sb-fee-table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    border: 1px solid var(--border);
    border-radius: 12px;
    overflow: hidden;
}

.sb-fee-table th,
.sb-fee-table td {
    padding: 14px 16px;
    text-align: left;
}

.sb-fee-table th {
    background: var(--sand);
    font-size: 12px;
    font-weight: 600;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.sb-fee-table td {
    font-size: 14px;
    color: var(--ink);
    border-bottom: 1px solid var(--border);
}

.sb-fee-table tr:last-child td {
    border-bottom: none;
}

@media (max-width: 1024px) {
    .sb-stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .sb-lectures-layout {
        grid-template-columns: 1fr;
    }
    
    .sb-info-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .sb-results-layout {
        grid-template-columns: 1fr;
    }
    
    .sb-fee-summary {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .sb-hero-inner {
        flex-direction: column;
    }
    
    .sb-hero-actions {
        width: 100%;
    }
    
    .sb-hero-actions .button {
        width: 100%;
    }
    
    .sb-stats-grid {
        grid-template-columns: 1fr;
    }
    
    .sb-nav {
        gap: 4px;
    }
    
    .sb-nav-link {
        padding: 8px 12px;
        font-size: 13px;
    }
    
    .sb-nav-link svg {
        display: none;
    }
    
    .sb-info-grid {
        grid-template-columns: 1fr;
    }
    
    .sb-result-scores {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .sb-attendance-summary {
        align-items: flex-start;
    }
    
    .sb-fee-summary {
        grid-template-columns: 1fr;
    }
    
    .sb-section-header {
        flex-direction: column;
    }
}

.ad-hero {
    padding: 48px 0 40px;
    background: linear-gradient(135deg, rgba(15, 118, 110, 0.03), rgba(15, 118, 110, 0.08));
    border-bottom: 1px solid var(--border);
}

.ad-hero-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    flex-wrap: wrap;
}

.ad-hero-welcome {
    display: flex;
    align-items: center;
    gap: 20px;
}

.ad-hero-avatar {
    width: 64px;
    height: 64px;
    border-radius: 18px;
    background: linear-gradient(145deg, var(--navy), #1d4d7d);
    color: white;
    display: grid;
    place-items: center;
    font-weight: 700;
    font-size: 22px;
    flex-shrink: 0;
}

.ad-hero-text .eyebrow {
    display: block;
    margin-bottom: 4px;
}

.ad-hero-text h1 {
    margin: 0 0 4px;
    font-size: 26px;
    color: var(--navy);
}

.ad-hero-text p {
    margin: 0;
    font-size: 14px;
    color: var(--muted);
}

.ad-hero-actions {
    display: flex;
    gap: 12px;
}

.ad-action-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 18px;
    border-radius: 10px;
    font-weight: 600;
    font-size: 14px;
    text-decoration: none;
    background: white;
    border: 1px solid var(--border);
    color: var(--navy);
    transition: all 0.2s ease;
}

.ad-action-btn:hover {
    border-color: var(--teal);
    color: var(--teal);
}

.ad-action-btn-primary {
    background: var(--teal);
    border-color: var(--teal);
    color: white;
}

.ad-action-btn-primary:hover {
    background: #0d6360;
    border-color: #0d6360;
    color: white;
}

.ad-dashboard {
    padding: 24px 0;
}

.ad-stats-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-bottom: 24px;
}

.ad-stat-card {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px;
    background: white;
    border: 1px solid var(--border);
    border-radius: 14px;
    transition: all 0.2s ease;
}

.ad-stat-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
    transform: translateY(-2px);
}

.ad-stat-icon {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    display: grid;
    place-items: center;
    flex-shrink: 0;
}

.ad-stat-icon-1 { background: rgba(15, 118, 110, 0.1); color: var(--teal); }
.ad-stat-icon-2 { background: rgba(59, 130, 246, 0.1); color: #3b82f6; }
.ad-stat-icon-3 { background: rgba(168, 85, 247, 0.1); color: #9333ea; }
.ad-stat-icon-4 { background: rgba(234, 179, 8, 0.1); color: #a16207; }

.ad-stat-content {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.ad-stat-value {
    font-size: 26px;
    font-weight: 700;
    color: var(--navy);
    line-height: 1.2;
}

.ad-stat-label {
    font-size: 13px;
    color: var(--muted);
}

.ad-stat-trend {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 6px 10px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 600;
}

.ad-stat-trend-up { background: rgba(15, 118, 110, 0.1); color: var(--teal); }
.ad-stat-trend-down { background: rgba(220, 38, 38, 0.1); color: #dc2626; }

.ad-pending-bar {
    background: white;
    border: 1px solid var(--border);
    border-radius: 14px;
    margin-bottom: 24px;
    overflow: hidden;
}

.ad-pending-header {
    padding: 16px 20px;
    background: var(--sand);
    border-bottom: 1px solid var(--border);
}

.ad-pending-title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
    color: var(--navy);
}

.ad-pending-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 24px;
    height: 24px;
    padding: 0 8px;
    background: var(--teal);
    color: white;
    font-size: 12px;
    font-weight: 700;
    border-radius: 12px;
}

.ad-pending-items {
    display: flex;
    gap: 12px;
    padding: 16px 20px;
    overflow-x: auto;
}

.ad-pending-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    background: var(--sand);
    border-radius: 10px;
    text-decoration: none;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.ad-pending-item:hover {
    background: rgba(15, 118, 110, 0.08);
}

.ad-pending-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: grid;
    place-items: center;
    flex-shrink: 0;
}

.ad-pending-icon-enrollment { background: rgba(59, 130, 246, 0.1); color: #3b82f6; }
.ad-pending-icon-inquiry { background: rgba(168, 85, 247, 0.1); color: #9333ea; }
.ad-pending-icon-student { background: rgba(15, 118, 110, 0.1); color: var(--teal); }

.ad-pending-info {
    display: flex;
    flex-direction: column;
}

.ad-pending-info strong {
    font-size: 14px;
    color: var(--navy);
}

.ad-pending-info span {
    font-size: 12px;
    color: var(--muted);
}

.ad-pending-arrow {
    color: var(--border);
    flex-shrink: 0;
}

.ad-pending-item:hover .ad-pending-arrow {
    color: var(--teal);
}

.ad-main-grid {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 24px;
    margin-bottom: 24px;
}

.ad-main-content {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.ad-section {
    background: white;
    border: 1px solid var(--border);
    border-radius: 14px;
    overflow: hidden;
}

.ad-section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 20px;
    border-bottom: 1px solid var(--border);
}

.ad-section-header h2 {
    margin: 0;
    font-size: 16px;
    color: var(--navy);
}

.ad-section-header p {
    margin: 4px 0 0;
    font-size: 13px;
    color: var(--muted);
}

.ad-link {
    font-size: 13px;
    font-weight: 600;
    color: var(--teal);
    text-decoration: none;
}

.ad-link:hover {
    text-decoration: underline;
}

.ad-batch-list {
    display: flex;
    flex-direction: column;
}

.ad-batch-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 16px 20px;
    border-bottom: 1px solid var(--border);
    text-decoration: none;
    transition: background 0.15s ease;
}

.ad-batch-item:last-child {
    border-bottom: none;
}

.ad-batch-item:hover {
    background: rgba(15, 118, 110, 0.03);
}

.ad-batch-info {
    display: flex;
    align-items: center;
    gap: 14px;
}

.ad-batch-icon {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    background: rgba(15, 118, 110, 0.1);
    color: var(--teal);
    display: grid;
    place-items: center;
    flex-shrink: 0;
}

.ad-batch-details {
    display: flex;
    flex-direction: column;
}

.ad-batch-details strong {
    font-size: 15px;
    color: var(--navy);
}

.ad-batch-details span {
    font-size: 13px;
    color: var(--muted);
}

.ad-batch-count {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 8px 16px;
    background: var(--sand);
    border-radius: 8px;
}

.ad-batch-count strong {
    font-size: 18px;
    font-weight: 700;
    color: var(--navy);
}

.ad-batch-count span {
    font-size: 11px;
    color: var(--muted);
}

.ad-activity-list {
    display: flex;
    flex-direction: column;
}

.ad-activity-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 20px;
    border-bottom: 1px solid var(--border);
    text-decoration: none;
    transition: background 0.15s ease;
}

.ad-activity-item:last-child {
    border-bottom: none;
}

.ad-activity-item:hover {
    background: rgba(15, 118, 110, 0.03);
}

.ad-activity-icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    display: grid;
    place-items: center;
    flex-shrink: 0;
}

.ad-activity-icon-student { background: rgba(15, 118, 110, 0.1); color: var(--teal); }
.ad-activity-icon-payment { background: rgba(234, 179, 8, 0.1); color: #a16207; }
.ad-activity-icon-enrollment { background: rgba(59, 130, 246, 0.1); color: #3b82f6; }
.ad-activity-icon-inquiry { background: rgba(168, 85, 247, 0.1); color: #9333ea; }

.ad-activity-content {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.ad-activity-content strong {
    font-size: 14px;
    color: var(--navy);
}

.ad-activity-content span {
    font-size: 12px;
    color: var(--muted);
}

.ad-activity-time {
    font-size: 12px;
    color: var(--muted);
    flex-shrink: 0;
}

.ad-sidebar {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.ad-quick-stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    padding: 16px 20px;
}

.ad-quick-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 14px 10px;
    background: var(--sand);
    border-radius: 10px;
}

.ad-quick-value {
    font-size: 20px;
    font-weight: 700;
    color: var(--navy);
}

.ad-quick-label {
    font-size: 11px;
    color: var(--muted);
    margin-top: 4px;
}

.ad-alert-box {
    margin: 0 16px 16px;
    padding: 14px;
    background: rgba(234, 179, 8, 0.08);
    border: 1px solid rgba(234, 179, 8, 0.2);
    border-radius: 10px;
}

.ad-alert-box h4 {
    margin: 0 0 10px;
    font-size: 13px;
    color: #a16207;
}

.ad-alert-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 13px;
    color: var(--ink);
    padding: 6px 0;
    border-bottom: 1px solid rgba(234, 179, 8, 0.1);
}

.ad-alert-row:last-child {
    border-bottom: none;
}

.ad-alert-badge {
    font-size: 11px;
    font-weight: 600;
    padding: 4px 8px;
    background: rgba(234, 179, 8, 0.15);
    color: #a16207;
    border-radius: 6px;
}

.ad-tools-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    padding: 16px;
}

.ad-tool-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 16px 12px;
    background: var(--sand);
    border-radius: 10px;
    text-decoration: none;
    transition: all 0.2s ease;
}

.ad-tool-btn:hover {
    background: rgba(15, 118, 110, 0.1);
    color: var(--teal);
}

.ad-tool-btn svg {
    color: var(--navy);
}

.ad-tool-btn:hover svg {
    color: var(--teal);
}

.ad-tool-btn span {
    font-size: 12px;
    font-weight: 500;
    color: var(--ink);
    text-align: center;
}

.ad-tool-btn:hover span {
    color: var(--teal);
}

.ad-analytics {
    background: white;
    border: 1px solid var(--border);
    border-radius: 14px;
    overflow: hidden;
}

.ad-analytics summary {
    padding: 18px 20px;
    cursor: pointer;
    list-style: none;
}

.ad-analytics summary::-webkit-details-marker {
    display: none;
}

.ad-analytics-toggle {
    display: flex;
    align-items: center;
    gap: 12px;
}

.ad-analytics-toggle svg:first-child {
    color: var(--teal);
}

.ad-analytics-toggle div {
    flex: 1;
}

.ad-analytics-toggle strong {
    display: block;
    font-size: 15px;
    color: var(--navy);
}

.ad-analytics-toggle span {
    font-size: 13px;
    color: var(--muted);
}

.ad-analytics-chevron {
    color: var(--muted);
    transition: transform 0.2s ease;
}

.ad-analytics[open] .ad-analytics-chevron {
    transform: rotate(180deg);
}

.ad-analytics-content {
    padding: 0 20px 20px;
}

.ad-charts-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 20px;
}

.ad-chart-card {
    background: var(--sand);
    border-radius: 12px;
    padding: 20px;
}

.ad-chart-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
}

.ad-chart-header h3 {
    margin: 0;
    font-size: 14px;
    color: var(--navy);
}

.ad-chart-legend {
    display: flex;
    gap: 16px;
}

.ad-legend-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: var(--muted);
}

.ad-legend-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

.ad-legend-dot-teal { background: var(--teal); }
.ad-legend-dot-gold { background: #d4a64a; }

.ad-chart-body {
    height: 240px;
}

.ad-chart-body-short {
    height: 200px;
}

.ad-chart-error {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    color: var(--muted);
    font-size: 14px;
}

.ad-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 40px 20px;
    text-align: center;
    color: var(--muted);
}

.ad-empty svg {
    opacity: 0.4;
}

.ad-empty p {
    margin: 0;
    font-size: 14px;
}

@media (max-width: 1200px) {
    .ad-main-grid {
        grid-template-columns: 1fr;
    }
    
    .ad-sidebar {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 1024px) {
    .ad-stats-row {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .ad-charts-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .ad-hero-inner {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .ad-hero-actions {
        width: 100%;
    }
    
    .ad-action-btn {
        flex: 1;
        justify-content: center;
    }
    
    .ad-stats-row {
        grid-template-columns: 1fr;
    }
    
    .ad-pending-items {
        flex-direction: column;
    }
    
    .ad-sidebar {
        grid-template-columns: 1fr;
    }
    
    .ad-tools-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 480px) {
    .ad-tools-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.pay-hero {
    padding: 48px 0 40px;
    background: linear-gradient(135deg, rgba(15, 118, 110, 0.03), rgba(15, 118, 110, 0.08));
    border-bottom: 1px solid var(--border);
}

.pay-hero-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.pay-hero .eyebrow {
    display: block;
    margin-bottom: 4px;
}

.pay-hero h1 {
    margin: 0;
    font-size: 28px;
    color: var(--navy);
}

.pay-action-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    border-radius: 10px;
    font-weight: 600;
    font-size: 14px;
    text-decoration: none;
    background: var(--teal);
    color: white;
    transition: all 0.2s ease;
}

.pay-action-btn:hover {
    background: #0d6360;
    color: white;
}

.pay-stats-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-bottom: 24px;
}

.pay-stat-card {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 18px 20px;
    background: white;
    border: 1px solid var(--border);
    border-radius: 12px;
}

.pay-stat-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: grid;
    place-items: center;
    flex-shrink: 0;
}

.pay-stat-icon-total { background: rgba(15, 118, 110, 0.1); color: var(--teal); }
.pay-stat-icon-confirmed { background: rgba(34, 197, 94, 0.1); color: #16a34a; }
.pay-stat-icon-pending { background: rgba(234, 179, 8, 0.1); color: #a16207; }
.pay-stat-icon-rejected { background: rgba(220, 38, 38, 0.1); color: #dc2626; }

.pay-stat-content {
    display: flex;
    flex-direction: column;
}

.pay-stat-value {
    font-size: 22px;
    font-weight: 700;
    color: var(--navy);
    line-height: 1.2;
}

.pay-stat-label {
    font-size: 13px;
    color: var(--muted);
}

.pay-workspace {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 24px;
    align-items: start;
}

.pay-sidebar {
    background: white;
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 20px;
    position: sticky;
    top: 24px;
}

.pay-filter-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
}

.pay-filter-header h3 {
    margin: 0;
    font-size: 16px;
    color: var(--navy);
}

.pay-filter-reset {
    font-size: 12px;
    color: var(--teal);
    text-decoration: none;
}

.pay-filter-reset:hover {
    text-decoration: underline;
}

.pay-search-wrap {
    position: relative;
    margin-bottom: 20px;
}

.pay-search-icon {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--muted);
}

.pay-search-input {
    width: 100%;
    padding: 10px 12px 10px 38px;
    border: 1px solid var(--border);
    border-radius: 8px;
    font-family: inherit;
    font-size: 14px;
    background: white;
}

.pay-search-input:focus {
    outline: none;
    border-color: var(--teal);
}

.pay-filter-section {
    margin-bottom: 16px;
}

.pay-filter-section label {
    display: block;
    font-size: 12px;
    font-weight: 600;
    color: var(--navy);
    margin-bottom: 6px;
}

.pay-select {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid var(--border);
    border-radius: 8px;
    font-family: inherit;
    font-size: 14px;
    background: white;
    cursor: pointer;
}

.pay-select:focus {
    outline: none;
    border-color: var(--teal);
}

.pay-date-range {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.pay-date-range .pay-date-row {
    display: flex;
    align-items: center;
    gap: 8px;
}

.pay-date-range span {
    font-size: 12px;
    color: var(--muted);
    flex-shrink: 0;
}

.pay-date-input {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid var(--border);
    border-radius: 8px;
    font-family: inherit;
    font-size: 13px;
    background: white;
    box-sizing: border-box;
}

.pay-date-input:focus {
    outline: none;
    border-color: var(--teal);
}

.pay-filter-actions {
    margin-top: 20px;
    padding-top: 16px;
    border-top: 1px solid var(--border);
}

.pay-filter-actions .button {
    width: 100%;
}

.pay-main {
    background: white;
    border: 1px solid var(--border);
    border-radius: 14px;
    overflow: hidden;
}

.pay-main-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    border-bottom: 1px solid var(--border);
    background: var(--sand);
}

.pay-main-title {
    display: flex;
    align-items: center;
    gap: 12px;
}

.pay-main-title h2 {
    margin: 0;
    font-size: 18px;
    color: var(--navy);
}

.pay-main-title span {
    font-size: 13px;
    color: var(--muted);
}

.pay-per-page {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: var(--muted);
}

.pay-per-page select {
    padding: 6px 10px;
    border: 1px solid var(--border);
    border-radius: 6px;
    font-size: 13px;
    background: white;
    cursor: pointer;
}

.pay-table-wrap {
    overflow-x: auto;
}

.pay-table {
    width: 100%;
    border-collapse: collapse;
}

.pay-table th {
    padding: 12px 16px;
    text-align: left;
    font-size: 12px;
    font-weight: 600;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    background: white;
    border-bottom: 1px solid var(--border);
}

.pay-table td {
    padding: 14px 16px;
    border-bottom: 1px solid var(--border);
    vertical-align: middle;
}

.pay-table tbody tr:last-child td {
    border-bottom: none;
}

.pay-table tbody tr:hover {
    background: rgba(15, 118, 110, 0.02);
}

.pay-date-cell {
    white-space: nowrap;
}

.pay-date {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: var(--navy);
}

.pay-date-cell small {
    font-size: 12px;
    color: var(--muted);
}

.pay-student-link {
    display: block;
    font-weight: 600;
    color: var(--navy);
    text-decoration: none;
}

.pay-student-link:hover {
    color: var(--teal);
}

.pay-student-cell small {
    font-size: 12px;
    color: var(--muted);
}

.pay-batch-link {
    display: block;
    font-weight: 500;
    color: var(--ink);
    text-decoration: none;
}

.pay-batch-link:hover {
    color: var(--teal);
}

.pay-batch-cell small {
    font-size: 12px;
    color: var(--muted);
}

.pay-receipt-link {
    display: block;
    font-weight: 600;
    color: var(--teal);
    text-decoration: none;
}

.pay-receipt-link:hover {
    text-decoration: underline;
}

.pay-receipt-cell small {
    font-size: 12px;
    color: var(--muted);
}

.pay-method-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 10px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 500;
    background: var(--sand);
    color: var(--ink);
}

.pay-method-cash { background: rgba(34, 197, 94, 0.1); color: #16a34a; }
.pay-method-bank_transfer { background: rgba(59, 130, 246, 0.1); color: #3b82f6; }
.pay-method-easypaisa { background: rgba(236, 72, 153, 0.1); color: #db2777; }
.pay-method-jazzcash { background: rgba(234, 179, 8, 0.1); color: #a16207; }
.pay-method-card { background: rgba(139, 92, 246, 0.1); color: #9333ea; }

.pay-amount-cell {
    font-weight: 700;
    color: var(--navy);
}

.pay-status-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 10px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
}

.pay-status-confirmed { background: rgba(34, 197, 94, 0.1); color: #16a34a; }
.pay-status-pending_verification { background: rgba(234, 179, 8, 0.1); color: #a16207; }
.pay-status-rejected { background: rgba(220, 38, 38, 0.1); color: #dc2626; }

.pay-actions {
    display: flex;
    gap: 8px;
}

.pay-action {
    width: 32px;
    height: 32px;
    border-radius: 6px;
    display: grid;
    place-items: center;
    background: var(--sand);
    color: var(--muted);
    text-decoration: none;
    transition: all 0.2s ease;
}

.pay-action:hover {
    background: var(--teal);
    color: white;
}

.pay-pagination {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    border-top: 1px solid var(--border);
    background: var(--sand);
}

.pay-pagination-info {
    font-size: 13px;
    color: var(--muted);
}

.pay-pagination-controls {
    display: flex;
    align-items: center;
    gap: 4px;
}

.pay-pagination-btn {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    display: grid;
    place-items: center;
    background: white;
    color: var(--muted);
    text-decoration: none;
    border: 1px solid var(--border);
    transition: all 0.2s ease;
}

.pay-pagination-btn:hover {
    border-color: var(--teal);
    color: var(--teal);
}

.pay-pagination-page {
    min-width: 36px;
    height: 36px;
    border-radius: 8px;
    display: grid;
    place-items: center;
    font-size: 14px;
    font-weight: 500;
    color: var(--muted);
    text-decoration: none;
    border: 1px solid transparent;
    transition: all 0.2s ease;
}

.pay-pagination-page:hover {
    background: var(--sand);
    color: var(--navy);
}

.pay-pagination-page.active {
    background: var(--teal);
    color: white;
}

.pay-pagination-ellipsis {
    padding: 0 8px;
    color: var(--muted);
}

.pay-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 80px 20px;
    text-align: center;
}

.pay-empty svg {
    opacity: 0.4;
    color: var(--muted);
}

.pay-empty h3 {
    margin: 0;
    font-size: 18px;
    color: var(--navy);
}

.pay-empty p {
    margin: 0;
    font-size: 14px;
    color: var(--muted);
}

.pay-na {
    color: var(--muted);
    font-style: italic;
}

@media (max-width: 1200px) {
    .pay-workspace {
        grid-template-columns: 240px 1fr;
    }

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

@media (max-width: 1024px) {
    .pay-stats-row {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .pay-hero-inner {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .pay-action-btn {
        width: 100%;
        justify-content: center;
    }
    
    .pay-stats-row {
        grid-template-columns: 1fr;
    }
    
    .pay-workspace {
        grid-template-columns: 1fr;
    }
    
    .pay-sidebar {
        position: static;
    }
    
    .pay-pagination {
        flex-direction: column;
        gap: 12px;
    }
}

.finance-group-grid {
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.finance-group-card,
.batch-finance-inline-panel {
    border: 1px solid rgba(15, 45, 82, 0.08);
}

.batch-finance-inline-actions {
    margin-top: 20px;
}

.finance-control-grid {
    align-items: start;
}

.finance-note-box {
    margin-top: 18px;
    padding: 16px 18px;
    border-radius: 18px;
    background: rgba(15, 45, 82, 0.05);
    border: 1px solid rgba(15, 45, 82, 0.08);
}

.finance-note-box strong {
    display: block;
    margin-bottom: 6px;
}

.finance-note-box p {
    margin: 0;
    color: var(--muted);
}

.finance-action-form {
    margin-top: 20px;
}

.finance-action-form textarea {
    min-height: 120px;
}
