/* Institute palette: navy + teal + soft gray */
:root {
    --app-primary: #1f3a5f;
    --app-primary-dark: #162a44;
    --app-accent: #1f8a8a;
    --app-bg: #f5f7fb;
}

/* Mobile: theme color for tab/status bar, safe areas for notch */
html {
    -webkit-tap-highlight-color: rgba(31, 58, 95, 0.2);
}

body {
    font-family: "Plus Jakarta Sans", "Segoe UI", Tahoma, Arial, sans-serif;
    background-color: var(--app-bg);
}

@supports (padding: env(safe-area-inset-top)) {
    .app-topbar {
        padding-top: calc(16px + env(safe-area-inset-top));
        padding-left: calc(24px + env(safe-area-inset-left));
        padding-right: calc(24px + env(safe-area-inset-right));
    }
    .app-sidebar .app-brand { padding-top: calc(20px + env(safe-area-inset-top)); padding-left: calc(20px + env(safe-area-inset-left)); }
    .app-nav-footer { padding-bottom: env(safe-area-inset-bottom); }
}

@media (max-width: 768px) {
    @supports (padding: env(safe-area-inset-left)) {
        .app-topbar {
            padding-left: calc(16px + env(safe-area-inset-left));
            padding-right: calc(16px + env(safe-area-inset-right));
        }
    }
}

@media (max-width: 575px) {
    @supports (padding: env(safe-area-inset-left)) {
        .app-topbar {
            padding-left: calc(12px + env(safe-area-inset-left));
            padding-right: calc(12px + env(safe-area-inset-right));
        }
    }
}

.form-label.required::after {
    content: " *";
    color: #dc3545;
}

.app-navbar {
    background: var(--app-primary);
}

.app-body {
    background-color: var(--app-bg);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

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

.app-sidebar {
    width: 260px;
    min-width: 260px;
    background: linear-gradient(180deg, #152238 0%, #0f1929 100%);
    color: #fff;
    display: flex;
    flex-direction: column;
    position: sticky;
    top: 0;
    height: 100vh;
    box-shadow: 4px 0 20px rgba(0, 0, 0, 0.15);
}

.app-sidebar-inner {
    display: flex;
    flex-direction: column;
    height: 100%;
    padding: 0;
}

.app-brand {
    padding: 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    flex-shrink: 0;
}

.app-brand-link {
    display: flex;
    align-items: center;
    gap: 12px;
    color: #fff;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    letter-spacing: 0.01em;
}

.app-brand-link:hover {
    color: #fff;
    opacity: 0.95;
}

.app-brand-text {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.app-sidebar-toggle {
    display: none;
    background: rgba(255, 255, 255, 0.1);
    border: 0;
    padding: 8px;
    width: 36px;
    height: 36px;
    border-radius: 8px;
    color: #fff;
    font-size: 1.25rem;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.2s;
}

.app-sidebar-toggle:hover {
    background: rgba(255, 255, 255, 0.18);
}

.app-topbar-menu-btn {
    display: none;
    background: var(--app-primary);
    border: 0;
    padding: 8px 12px;
    border-radius: 8px;
    color: #fff;
    font-size: 1.35rem;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.2s;
}

.app-topbar-menu-btn:hover {
    background: var(--app-primary-dark);
    color: #fff;
}

.app-sidebar-backdrop {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
    z-index: 1040;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
    touch-action: none;
}

.app-logo {
    width: 40px;
    height: 40px;
    object-fit: contain;
    border-radius: 10px;
    background: #fff;
    padding: 6px;
    flex-shrink: 0;
}

.app-nav {
    flex: 1;
    overflow-y: auto;
    padding: 16px 12px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.app-nav-section {
    margin-bottom: 20px;
}

.app-nav-section:last-of-type {
    margin-bottom: 0;
}

.app-nav-label {
    display: block;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: rgba(255, 255, 255, 0.45);
    padding: 0 12px 8px;
}

.app-nav-link {
    display: flex;
    align-items: center;
    gap: 12px;
    color: rgba(255, 255, 255, 0.75);
    text-decoration: none;
    padding: 10px 12px;
    border-radius: 10px;
    transition: all 0.2s ease;
    font-size: 0.95rem;
    border-left: 3px solid transparent;
}

.app-nav-link i {
    font-size: 1.15rem;
    width: 24px;
    text-align: center;
    opacity: 0.85;
}

.app-nav-link:hover {
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
}

.app-sidebar .app-nav-link.active {
    background: rgba(31, 138, 138, 0.25);
    color: #fff !important;
    font-weight: 600;
    border-left-color: var(--app-accent);
}

.app-sidebar .app-nav-link.active i {
    opacity: 1;
}

.app-nav-footer {
    padding: 16px 12px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    flex-shrink: 0;
}

.app-nav-logout {
    color: rgba(255, 255, 255, 0.6) !important;
}

.app-nav-logout:hover {
    background: rgba(220, 53, 69, 0.2) !important;
    color: #ff6b7a !important;
}

.app-user {
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
    padding: 12px 0;
    display: flex;
    align-items: center;
    gap: 12px;
}

.app-user-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    color: #fff;
}

.app-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-width: 0;
    overflow-x: hidden;
}

.app-topbar {
    background: #fff;
    border-bottom: 1px solid #e6e9f0;
    padding: 16px 24px;
    position: sticky;
    top: 0;
    z-index: 10;
    min-height: 56px;
    display: flex;
    align-items: center;
}

.app-topbar-inner {
    width: 100%;
    min-width: 0;
    flex-wrap: nowrap;
    gap: 12px;
}

.app-topbar-left {
    min-width: 0;
}

.app-topbar-left .app-page-title {
    min-width: 0;
}

.app-page-title {
    font-weight: 600;
    color: var(--app-primary-dark);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.app-top-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #e8f0f4;
    color: var(--app-primary-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    position: relative;
    overflow: hidden;
}

.app-avatar-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.app-user-menu {
    position: relative;
    cursor: pointer;
}

.app-user-dropdown {
    position: absolute;
    right: 0;
    top: 48px;
    background: #fff;
    border: 1px solid #e6e9f0;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.12);
    min-width: 160px;
    display: none;
    z-index: 100;
}

.app-user-dropdown::before {
    content: "";
    position: absolute;
    top: -10px;
    right: 12px;
    width: 16px;
    height: 16px;
    background: #fff;
    border-left: 1px solid #e6e9f0;
    border-top: 1px solid #e6e9f0;
    transform: rotate(45deg);
}

.app-user-dropdown a {
    display: block;
    padding: 10px 12px;
    color: #1f2a44;
    text-decoration: none;
}

.app-user-dropdown a:hover {
    background: #f5f7fb;
}

.app-user-menu:hover .app-user-dropdown,
.app-user-dropdown:hover,
.app-user-menu.app-user-menu-open .app-user-dropdown {
    display: block;
}

.app-profile-avatar {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: #e8f0f4;
    color: var(--app-primary-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    overflow: hidden;
}

.app-profile-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Student list avatar (photo or placeholder) */
.student-list-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    overflow: hidden;
    background: #e8f0f4;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.student-list-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.student-list-avatar-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #dee2e6;
    color: #6c757d;
    font-size: 1.25rem;
}

/* Student view – Information card */
.student-info-section {
    margin-bottom: 1.25rem;
}
.student-info-section:last-child {
    margin-bottom: 0;
}
.student-info-row {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.35rem 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    font-size: 0.9375rem;
}
.student-info-row:last-child {
    border-bottom: none;
}
.student-info-label {
    color: #6c757d;
    flex-shrink: 0;
    min-width: 0;
}
.student-info-value {
    text-align: right;
    font-weight: 500;
    color: #1f2a44;
}
@media (min-width: 768px) {
    .student-info-col-right {
        border-left: 1px solid rgba(0, 0, 0, 0.08);
        padding-left: 1.5rem;
    }
}
@media (min-width: 992px) {
    .border-start-lg {
        border-left: 1px solid rgba(0, 0, 0, 0.08);
    }
}
.edit-form-section:last-of-type {
    margin-bottom: 0;
}

/* Student view – issued documents & semesters */
.issued-doc-link {
    color: inherit;
    transition: border-color 0.2s, background-color 0.2s;
}
.issued-doc-link:hover {
    border-color: var(--app-accent) !important;
    background-color: rgba(31, 138, 138, 0.06);
    color: inherit;
}
.issued-doc-icon {
    width: 2rem;
    height: 2rem;
    border-radius: 8px;
    background: rgba(31, 138, 138, 0.12);
    color: var(--app-accent);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
}
.issued-doc-empty,
.semesters-empty {
    background: #f8f9fa;
    border: 1px dashed #dee2e6;
}

.app-main {
    flex: 1;
    padding: 24px;
    min-width: 0;
    max-width: 100%;
}

.app-public-main {
    flex: 1;
}

.card {
    border-radius: 12px;
}

.table > :not(caption) > * > * {
    vertical-align: middle;
}

.text-primary-dark {
    color: var(--app-primary-dark);
}

.btn-primary {
    background-color: var(--app-accent);
    border-color: var(--app-accent);
}

.btn-primary:hover {
    background-color: #177070;
    border-color: #177070;
}

.btn-outline-primary {
    color: var(--app-primary);
    border-color: var(--app-primary);
}

.btn-outline-primary:hover {
    background-color: var(--app-primary);
    border-color: var(--app-primary);
}

.table-light {
    --bs-table-bg: #eef2f7;
}

.app-footer {
    color: #6c757d;
    background: #fff;
    border-top: 1px solid #e6e9f0;
    padding: 12px 0;
}

.app-footer-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.app-login-panel {
    background: linear-gradient(135deg, var(--app-primary-dark), var(--app-primary));
}

.app-logo-preview {
    width: 120px;
    height: 120px;
    object-fit: contain;
    border-radius: 12px;
    border: 1px solid #e6e9f0;
    background: #fff;
    padding: 8px;
}

.public-main-content .login-wrapper {
    padding: 2rem 1rem;
}

.auth-page {
    position: relative;
    min-height: 100vh;
    height: 100vh;
    overflow: hidden;
    background: linear-gradient(180deg, #f5f7fb 0%, #eef2f7 100%);
}

.auth-page::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url('https://images.unsplash.com/photo-1523240795612-9a054b0db644?w=1600&q=30') center/cover;
    opacity: 0.08;
    pointer-events: none;
}

.login-wrapper {
    position: relative;
    z-index: 1;
    min-height: 100vh;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem;
}

.login-card {
    width: 100%;
    max-width: 960px;
    max-height: calc(100vh - 1.5rem);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.login-card .row {
    flex: 1;
    min-height: 0;
}

.auth-form-col {
    overflow-y: auto;
    min-height: 0;
}

/* Back to Home link must sit above login card so it remains clickable */
.auth-page .back-to-home-link {
    z-index: 1050;
    pointer-events: auto;
    top: 0.75rem;
    left: 0.75rem;
}

/* ----- Register page & auth mobile responsive ----- */
@media (max-width: 991.98px) {
    .auth-page {
        height: auto;
        min-height: 100vh;
        overflow-y: auto;
    }
    .login-wrapper {
        align-items: flex-start;
        padding: 0.5rem;
        min-height: 100vh;
    }
    .register-page-wrapper {
        padding-top: calc(3.25rem + env(safe-area-inset-top, 0px));
        padding-bottom: 1.5rem;
    }
    .login-card {
        max-height: none;
        max-width: 100%;
    }
    .register-card .row {
        min-height: 0;
    }
    .register-panel {
        padding: 1rem 1.25rem;
    }
    .register-panel .h4 {
        font-size: 1.15rem;
    }
    .register-form-col {
        overflow-y: visible;
    }
    .register-form-col .card-body {
        padding-bottom: calc(1rem + env(safe-area-inset-bottom, 0px));
    }
    .auth-page .back-to-home-link {
        padding: 0.5rem 0.75rem;
        font-size: 0.9rem;
        top: env(safe-area-inset-top, 0.5rem);
        left: env(safe-area-inset-left, 0.5rem);
        margin: 0;
    }
}

@media (max-width: 575.98px) {
    .login-wrapper {
        padding: 0.35rem;
    }
    .register-page-wrapper {
        padding-top: calc(3rem + env(safe-area-inset-top, 0px));
    }
    .register-form-col .card-body {
        padding: 1rem 1.25rem 1.5rem;
    }
    .register-form .form-control {
        font-size: 16px;
    }
    .btn-submit-register {
        min-height: 48px;
        font-weight: 600;
    }
    .auth-page .back-to-home-link {
        padding: 0.5rem 0.6rem;
        font-size: 0.85rem;
        top: env(safe-area-inset-top, 0.35rem);
        left: env(safe-area-inset-left, 0.35rem);
    }
}

@supports (padding: env(safe-area-inset-bottom)) {
    .register-form-col .card-body {
        padding-bottom: max(1rem, env(safe-area-inset-bottom));
    }
}

.login-brand {
    font-size: 0.9rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    opacity: 0.85;
    margin-bottom: 10px;
}

.landing-hero {
    background: linear-gradient(120deg, #ffffff, #f3f6fb);
    border-radius: 16px;
    padding: 28px;
    border: 1px solid #e9edf5;
}

.landing-badge {
    display: inline-block;
    background: #e9f1f7;
    color: var(--app-primary-dark);
    padding: 6px 12px;
    border-radius: 999px;
    font-size: 0.8rem;
    margin-bottom: 12px;
}

.landing-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 12px;
}

.landing-stat-value {
    font-weight: 700;
    color: var(--app-primary-dark);
}

.landing-stat-label {
    font-size: 0.85rem;
    color: #6c757d;
}

.landing-step {
    display: flex;
    align-items: center;
    gap: 10px;
    background: #f8fafc;
    border-radius: 10px;
    padding: 12px;
    border: 1px solid #eef2f7;
}

.landing-step-num {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--app-primary);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 0.9rem;
}

.chart-canvas {
    height: 180px;
    min-height: 160px;
    position: relative;
    width: 100%;
}

.chart-canvas canvas {
    width: 100% !important;
    height: 100% !important;
    min-height: 160px;
    display: block;
}

/* Main Office dashboard — payments row (table + single stacked chart) */
.dashboard-payments-card .dashboard-pay-metric {
    background: #fff;
    border-color: #e8ecf2 !important;
    transition: box-shadow 0.15s ease, border-color 0.15s ease;
}
.dashboard-payments-card .dashboard-pay-metric:hover {
    box-shadow: 0 4px 14px rgba(31, 58, 95, 0.08);
    border-color: #d5dde8 !important;
}
.dashboard-payments-table thead th {
    font-size: 0.72rem;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    white-space: nowrap;
}
.dashboard-payments-table tbody td {
    font-size: 0.9rem;
}
/* Payments: full-width stacked blocks (table row, then chart row) */
.dashboard-payments-stack {
    width: 100%;
}
.dashboard-payments-block {
    width: 100%;
    min-width: 0;
}
.dashboard-payments-chart-card {
    min-height: 280px;
}
.dashboard-payments-chart-wrap {
    position: relative;
    width: 100%;
    min-height: 260px;
    height: min(400px, 50vh);
}
.dashboard-payments-chart-wrap canvas {
    display: block;
}

/* Dashboard — hero, KPI cards, distribution charts */
.letter-spacing-tight {
    letter-spacing: 0.06em;
}
.dashboard-hero {
    background: linear-gradient(135deg, rgba(31, 58, 95, 0.06) 0%, rgba(31, 138, 138, 0.08) 100%);
}
.dashboard-hero .dashboard-hero-body {
    padding: 0.875rem 1rem;
}
@media (min-width: 992px) {
    .dashboard-hero .dashboard-hero-body {
        padding: 1rem 1.25rem;
    }
}
.dashboard-hero-kicker {
    font-size: 0.65rem;
    line-height: 1.3;
}
.dashboard-hero-title {
    font-size: 1.15rem;
    line-height: 1.25;
}
@media (min-width: 992px) {
    .dashboard-hero-title {
        font-size: 1.25rem;
    }
}
.dashboard-hero-lead {
    font-size: 0.8125rem;
    line-height: 1.45;
    max-width: 36rem;
}
.dashboard-hero .dashboard-quick-links .btn {
    padding-top: 0.25rem;
    padding-bottom: 0.25rem;
    font-size: 0.8125rem;
}
.dashboard-stat-card {
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.dashboard-stat-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(31, 58, 95, 0.1) !important;
}
.dashboard-stat-card .dashboard-stat-card-body {
    padding: 0.55rem 0.75rem;
}
@media (min-width: 992px) {
    .dashboard-stat-card .dashboard-stat-card-body {
        padding: 0.65rem 0.85rem;
    }
}
.dashboard-stat-label {
    font-size: 0.65rem;
    line-height: 1.25;
    letter-spacing: 0.04em;
    margin-bottom: 0.1rem;
}
.dashboard-stat-value {
    font-size: 1.2rem;
    line-height: 1.2;
    margin: 0;
}
@media (min-width: 1200px) {
    .dashboard-stat-value {
        font-size: 1.3rem;
    }
}
.dashboard-stat-icon {
    width: 36px;
    height: 36px;
    border-radius: 9px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.05rem;
    flex-shrink: 0;
}
.dashboard-stat-icon-accent {
    color: #9a3412;
    background: rgba(154, 52, 18, 0.12);
}
.dashboard-chart-card-title {
    font-size: 0.9375rem;
    line-height: 1.3;
    margin: 0;
}
.dashboard-chart-card-desc {
    font-size: 0.8125rem;
    line-height: 1.4;
    margin: 0;
}
.dashboard-chart-card .dashboard-doughnut-wrap {
    position: relative;
    height: 228px;
    max-width: 220px;
    margin: 0 auto;
}
.dashboard-chart-card .dashboard-bar-chart-wrap {
    position: relative;
    height: 220px;
    min-height: 200px;
    width: 100%;
}
.dashboard-legend-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    flex-shrink: 0;
}
.dashboard-combined-chart-card .chart-canvas--tall {
    height: 280px;
    min-height: 240px;
}

/* Dashboard — activity overview (combined + mini line charts) */
.dashboard-activity {
    background: #fff;
}
.dashboard-activity-header {
    padding: 1.1rem 1.25rem 1rem;
    background: linear-gradient(135deg, rgba(31, 58, 95, 0.07) 0%, rgba(31, 138, 138, 0.09) 55%, rgba(255, 255, 255, 0) 100%);
    border-bottom: 1px solid rgba(31, 58, 95, 0.08);
}
.dashboard-activity-title {
    font-size: 1.05rem;
    font-weight: 700;
    line-height: 1.3;
    margin: 0;
    color: var(--bs-body-color, #1a1d21);
}
.dashboard-activity-subtitle {
    font-size: 0.8125rem;
    line-height: 1.45;
    max-width: 36rem;
}
.dashboard-activity-body {
    padding-top: 1.25rem !important;
}
.dashboard-activity-range .btn {
    border-radius: 2rem;
    padding: 0.35rem 0.95rem;
    font-size: 0.8125rem;
    font-weight: 600;
    border: 1px solid rgba(31, 58, 95, 0.2);
    background: #fff;
    color: var(--bs-primary, #0d6efd);
}
.dashboard-activity-range .btn:hover {
    background: rgba(31, 58, 95, 0.06);
    border-color: rgba(31, 58, 95, 0.35);
}
.dashboard-activity-range .btn.active {
    background: var(--bs-primary, #0d6efd);
    border-color: var(--bs-primary, #0d6efd);
    color: #fff;
}
.dashboard-activity-combined {
    border-radius: 0.75rem;
    background: linear-gradient(145deg, rgba(31, 58, 95, 0.04), rgba(31, 138, 138, 0.05));
    padding: 1px;
}
.dashboard-activity-combined-inner {
    background: #fafbfd;
    border-radius: calc(0.75rem - 1px);
    padding: 1rem 1.1rem 0.85rem;
    border: 1px solid rgba(31, 58, 95, 0.06);
}
.dashboard-activity-combined-label {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: rgba(31, 58, 95, 0.85);
}
.dashboard-activity-hint {
    font-size: 0.75rem;
}
.dashboard-activity-section-label {
    letter-spacing: 0.05em;
    font-size: 0.68rem !important;
}
.dashboard-activity-chart-wrap {
    position: relative;
    width: 100%;
}
.dashboard-activity-chart-wrap--combined {
    height: min(300px, 42vh);
    min-height: 240px;
}
.dashboard-activity-chart-wrap--mini {
    height: 168px;
    min-height: 150px;
}
.dashboard-activity-mini {
    border-radius: 0.65rem;
    border: 1px solid rgba(31, 58, 95, 0.1);
    background: #fff;
    padding: 0.75rem 0.85rem 0.65rem;
    box-shadow: 0 2px 8px rgba(31, 58, 95, 0.04);
    transition: box-shadow 0.15s ease, border-color 0.15s ease;
    border-left: 3px solid var(--activity-accent, #1f3a5f);
}
.dashboard-activity-mini:hover {
    box-shadow: 0 6px 20px rgba(31, 58, 95, 0.08);
    border-color: rgba(31, 58, 95, 0.14);
}
.dashboard-activity-mini-head {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.35rem;
}
.dashboard-activity-mini-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--activity-accent);
    flex-shrink: 0;
}
.dashboard-activity-mini-title {
    font-size: 0.78rem;
    font-weight: 600;
    color: rgba(31, 58, 95, 0.9);
    line-height: 1.25;
}
.dashboard-activity-chart-wrap canvas {
    display: block;
    width: 100% !important;
    height: 100% !important;
}

/* Tablet & phone: off-canvas sidebar (hidden off-screen until .open) */
@media (max-width: 991.98px) {
    .app-shell {
        flex-direction: row;
        min-height: 100vh;
        min-height: 100dvh;
    }

    body.app-sidebar-drawer-open {
        overflow: hidden;
        overscroll-behavior: none;
    }

    .app-sidebar-toggle,
    .app-topbar-menu-btn {
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }

    .app-sidebar {
        position: fixed;
        left: 0;
        top: 0;
        bottom: 0;
        width: min(280px, 88vw);
        min-width: 0;
        height: 100vh;
        height: 100dvh;
        max-height: 100dvh;
        z-index: 1050;
        transform: translateX(-100%);
        transition: transform 0.28s ease-out;
        box-shadow: 4px 0 24px rgba(0, 0, 0, 0.22);
        /* Off layout flow so main content is full width */
        flex: none;
    }

    .app-sidebar.open {
        transform: translateX(0);
    }

    .app-sidebar.open + .app-sidebar-backdrop {
        display: block;
    }

    .app-sidebar-inner {
        height: 100%;
        max-height: 100dvh;
        overflow: hidden;
        display: flex;
        flex-direction: column;
        padding-left: env(safe-area-inset-left);
    }

    .app-nav {
        flex: 1;
        flex-direction: column;
        align-items: stretch;
        overflow-x: hidden;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        overscroll-behavior: contain;
        padding: 12px 16px;
        gap: 4px;
    }

    .app-nav-section {
        display: block;
        margin-bottom: 12px;
    }

    .app-nav-section:last-of-type {
        margin-bottom: 0;
    }

    .app-nav-label {
        display: block;
        padding: 8px 12px 6px;
    }

    .app-nav-link {
        padding: 10px 12px;
        font-size: 0.95rem;
        white-space: normal;
    }

    .app-nav-footer {
        display: flex;
        padding: 12px 16px;
        padding-bottom: calc(12px + env(safe-area-inset-bottom));
        border-top: 1px solid rgba(255, 255, 255, 0.08);
        flex-shrink: 0;
    }

    .app-content {
        flex: 1;
        width: 100%;
        min-width: 0;
    }

    .app-topbar {
        padding: 12px 16px;
        min-height: 52px;
    }

    .app-topbar-inner {
        flex-wrap: nowrap;
    }

    .app-topbar-left {
        flex: 1;
        min-width: 0;
    }

    .app-topbar .app-page-title {
        font-size: 1rem;
    }

    .app-topbar .text-end {
        display: none;
    }

    .app-main {
        padding: 20px;
    }

    .app-footer-inner {
        flex-direction: column;
        gap: 4px;
        text-align: center;
    }
}

@media (max-width: 575.98px) {
    .app-sidebar-toggle,
    .app-topbar-menu-btn {
        min-width: 44px;
        min-height: 44px;
        padding: 10px;
    }

    .app-top-avatar {
        min-width: 44px;
        min-height: 44px;
    }

    .app-brand {
        padding: 14px 16px;
    }

    .app-topbar {
        padding: 10px 12px 10px 16px;
        min-height: 48px;
    }

    .app-topbar-inner {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        flex-wrap: nowrap;
        gap: 8px;
    }

    .app-topbar .app-page-title {
        font-size: 0.9375rem;
    }

    .app-top-avatar {
        width: 44px;
        height: 44px;
        font-size: 0.9rem;
        flex-shrink: 0;
    }

    .app-user-menu {
        flex-shrink: 0;
    }

    .app-main {
        padding: 16px;
    }
}

/* Toast notifications - top right */
.toast-container {
    position: fixed;
    top: 80px;
    right: 20px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-width: 360px;
    pointer-events: none;
}

/* Auth pages (login, register): toast at top right with no navbar offset */
.auth-page .toast-container {
    top: 20px;
    right: 20px;
}

.toast-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 14px 18px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
    pointer-events: auto;
    animation: toastSlideIn 0.35s ease;
}

.toast-item.success { border-left: 4px solid #198754; }
.toast-item.error { border-left: 4px solid #dc3545; }
.toast-item.warning { border-left: 4px solid #ffc107; }
.toast-item.info { border-left: 4px solid #0dcaf0; }

.toast-item .toast-icon {
    flex-shrink: 0;
    font-size: 1.25rem;
}

.toast-item.success .toast-icon { color: #198754; }
.toast-item.error .toast-icon { color: #dc3545; }
.toast-item.warning .toast-icon { color: #ffc107; }
.toast-item.info .toast-icon { color: #0dcaf0; }

.toast-item .toast-body {
    flex: 1;
    font-size: 0.9rem;
    color: #333;
}

.toast-item .toast-close {
    flex-shrink: 0;
    background: none;
    border: none;
    color: #999;
    cursor: pointer;
    padding: 0;
    font-size: 1.1rem;
    line-height: 1;
}

.toast-item .toast-close:hover { color: #333; }

@keyframes toastSlideIn {
    from {
        opacity: 0;
        transform: translateX(100%);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* ===== Public Header ===== */
.public-header {
    background: linear-gradient(135deg, var(--app-primary-dark) 0%, var(--app-primary) 100%);
    box-shadow: 0 4px 20px rgba(21, 42, 68, 0.15);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.public-header .navbar {
    padding: 0.75rem 0;
}

.public-brand {
    display: inline-flex;
    align-items: center;
    font-weight: 700;
    font-size: 1.25rem;
    color: #fff !important;
}

.public-brand i {
    font-size: 1.5rem;
    opacity: 0.95;
}

.public-brand:hover {
    color: #fff !important;
    opacity: 0.9;
}

.public-header .nav-link {
    color: rgba(255, 255, 255, 0.9) !important;
    font-weight: 500;
    padding: 0.5rem 1rem !important;
    border-radius: 8px;
    transition: all 0.2s;
}

.public-header .nav-link:hover {
    color: #fff !important;
    background: rgba(255, 255, 255, 0.1);
}

.public-header .nav-link.active {
    color: #fff !important;
    background: rgba(255, 255, 255, 0.2);
    font-weight: 600;
}

.public-header .btn.active {
    background: rgba(255, 255, 255, 0.3) !important;
    border-color: rgba(255, 255, 255, 0.6) !important;
    color: #fff !important;
    font-weight: 600;
}

.public-header .btn-outline-light {
    border-color: rgba(255, 255, 255, 0.6);
    color: #fff;
}

.public-header .btn-outline-light:hover {
    background: #fff;
    color: var(--app-primary);
    border-color: #fff;
}

.public-header .navbar-toggler {
    color: #fff;
}

.public-main-content {
    flex: 1;
    min-height: calc(100vh - 200px);
}

/* ===== Public Footer ===== */
.public-footer {
    background: linear-gradient(180deg, #0f1929 0%, #152238 100%);
    color: rgba(255, 255, 255, 0.9);
}

/* Ensure all footer text is readable on dark background */
.public-footer .text-muted,
.public-footer p {
    color: rgba(255, 255, 255, 0.85) !important;
}

.public-footer-brand {
    display: inline-flex;
    align-items: center;
    font-weight: 700;
    font-size: 1.1rem;
    color: #fff !important;
}

.public-footer-brand i {
    font-size: 1.25rem;
}

.public-footer h6 {
    color: #fff !important;
    font-size: 0.85rem;
    letter-spacing: 0.05em;
}

.public-footer ul a,
.public-footer ul li,
.public-footer .public-footer-links-top a {
    color: rgba(255, 255, 255, 0.85) !important;
    text-decoration: none;
    margin-bottom: 0.5rem;
}

.public-footer ul a:hover,
.public-footer .public-footer-links-top a:hover {
    color: #fff !important;
}

.public-footer hr {
    border-color: rgba(255, 255, 255, 0.2) !important;
}

/* ===== Landing Hero V2 ===== */
.landing-hero-v2 {
    position: relative;
    overflow: hidden;
}

.landing-hero-bg {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, #0f1929 0%, #152238 50%, #1f3a5f 100%);
    background-image: url('https://images.unsplash.com/photo-1523050854058-8df90110c9f1?w=1920&q=60');
    background-size: cover;
    background-position: center;
}

.landing-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(15, 25, 41, 0.92) 0%, rgba(31, 58, 95, 0.88) 100%);
}

.min-vh-75 {
    min-height: 75vh;
}

.landing-badge-v2 {
    display: inline-block;
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
    padding: 0.4rem 1rem;
    border-radius: 999px;
    font-size: 0.85rem;
    font-weight: 500;
    margin-bottom: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.landing-hero-title {
    font-size: clamp(2rem, 5vw, 3.25rem);
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

.landing-hero-lead {
    font-size: 1.15rem;
    opacity: 0.9;
    line-height: 1.6;
    max-width: 540px;
}

.landing-hero-stats {
    display: flex;
    gap: 2.5rem;
    flex-wrap: wrap;
}

.landing-stat-item {
    display: flex;
    flex-direction: column;
}

.landing-stat-num {
    font-size: 1.75rem;
    font-weight: 700;
    color: #fff;
}

.landing-stat-txt {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.75);
}

.landing-hero-img-wrap {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 24px 48px rgba(0, 0, 0, 0.3);
}

.landing-hero-img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 16px;
}

/* ===== Landing Features ===== */
.landing-features {
    background: #fff;
}

.landing-section-title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--app-primary-dark);
}

.landing-section-sub {
    font-size: 1.05rem;
}

.landing-feature-card {
    background: #fff;
    border-radius: 16px;
    padding: 1.75rem;
    height: 100%;
    border: 1px solid #eef2f7;
    transition: all 0.3s ease;
    overflow: hidden;
}

.landing-feature-card:hover {
    box-shadow: 0 12px 40px rgba(31, 58, 95, 0.12);
    border-color: transparent;
    transform: translateY(-4px);
}

.landing-feature-icon {
    width: 80px;
    height: 80px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.25rem;
    overflow: hidden;
}

.bg-primary-subtle { background: #e8f4f8; }
.bg-success-subtle { background: #e8f8f0; }
.bg-info-subtle { background: #e8f2fa; }

.landing-feature-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.landing-feature-title {
    font-weight: 600;
    color: var(--app-primary-dark);
    margin-bottom: 0.5rem;
}

.landing-feature-desc {
    font-size: 0.95rem;
    color: #6c757d;
    margin: 0;
    line-height: 1.55;
}

/* ===== Landing Verify ===== */
.landing-verify-v2 {
    background: linear-gradient(180deg, #f8fafc 0%, #f0f4f8 100%);
}

.landing-verify-card {
    background: #fff;
    border-radius: 20px;
    padding: 2rem;
    box-shadow: 0 10px 40px rgba(31, 58, 95, 0.08);
    border: 1px solid #eef2f7;
}

.landing-verify-img {
    width: 100%;
    height: 220px;
    object-fit: cover;
}

/* ===== Landing CTA ===== */
.landing-cta {
    background: linear-gradient(135deg, var(--app-primary) 0%, var(--app-primary-dark) 100%);
    color: #fff;
}

.landing-cta h2,
.landing-cta p {
    color: #fff !important;
}

.landing-cta .text-muted {
    color: rgba(255, 255, 255, 0.85) !important;
}

.landing-cta .btn-primary {
    background: #fff;
    color: var(--app-primary);
    border-color: #fff;
}

.landing-cta .btn-primary:hover {
    background: #f0f4f8;
    border-color: #f0f4f8;
    color: var(--app-primary-dark);
}

/* ===== Verify Page ===== */
.verify-page {
    min-height: 100vh;
}

.verify-hero {
    position: relative;
    background: linear-gradient(135deg, var(--app-primary-dark) 0%, var(--app-primary) 100%);
}

.verify-hero-bg {
    position: absolute;
    inset: 0;
    background: url('https://images.unsplash.com/photo-1564981797816-1043664bf78d?w=1920&q=40') center/cover;
    opacity: 0.15;
}

.verify-search-card {
    background: #fff;
    border-radius: 20px;
    padding: 2.5rem;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
}

.verify-search-header {
    color: var(--app-primary-dark);
}

.verify-search-icon {
    width: 64px;
    height: 64px;
    border-radius: 16px;
    background: linear-gradient(135deg, var(--app-primary) 0%, var(--app-accent) 100%);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    font-size: 1.75rem;
}

.verify-search-form .input-group {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(31, 58, 95, 0.12);
}

.verify-search-form .input-group-text {
    border: 1px solid #eef2f7;
    padding: 0 1rem;
}

.verify-search-form .form-control {
    border: 1px solid #eef2f7;
}

.verify-search-form .form-control:focus {
    box-shadow: none;
    border-color: var(--app-accent);
}

.verify-search-form .btn-primary {
    border-radius: 0 12px 12px 0;
}

.verify-search-card a {
    color: var(--app-primary);
    text-decoration: none;
}

.verify-search-card a:hover {
    text-decoration: underline;
}

/* Verify Result Cards */
.verify-result-card {
    background: #fff;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(31, 58, 95, 0.1);
    border: 1px solid #eef2f7;
}

.verify-result-verified {
    border-left: 4px solid #198754;
}

.verify-result-pending {
    border-left: 4px solid #ffc107;
}

.verify-result-registered {
    border-left: 4px solid #6c757d;
}

.verify-result-notfound {
    border-left: 4px solid #6c757d;
}

.verify-result-badge {
    padding: 1.5rem 2rem;
    text-align: center;
}

.verify-result-verified .verify-result-badge {
    background: linear-gradient(135deg, rgba(25, 135, 84, 0.08) 0%, rgba(25, 135, 84, 0.04) 100%);
}

.verify-result-pending .verify-result-badge {
    background: linear-gradient(135deg, rgba(255, 193, 7, 0.12) 0%, rgba(255, 193, 7, 0.04) 100%);
}

.verify-result-registered .verify-result-badge {
    background: linear-gradient(135deg, rgba(108, 117, 125, 0.12) 0%, rgba(108, 117, 125, 0.04) 100%);
}

.verify-result-notfound .verify-result-badge {
    background: linear-gradient(135deg, rgba(108, 117, 125, 0.08) 0%, rgba(108, 117, 125, 0.04) 100%);
}

.verify-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1.25rem;
    border-radius: 999px;
    font-weight: 600;
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

.verify-badge.verified {
    background: #198754;
    color: #fff;
}

.verify-badge.verified i {
    font-size: 1.25rem;
}

.verify-badge.pending {
    background: #ffc107;
    color: #000;
}

.verify-badge.registered {
    background: #6c757d;
    color: #fff;
}

.verify-badge.pending i {
    font-size: 1.25rem;
}

.verify-badge.notfound {
    background: #6c757d;
    color: #fff;
}

.verify-badge.notfound i {
    font-size: 1.25rem;
}

.verify-result-desc {
    color: #6c757d;
    margin: 0;
    font-size: 0.95rem;
}

.verify-result-body {
    padding: 2rem;
    border-top: 1px solid #eef2f7;
}

.verify-result-title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--app-primary-dark);
    margin-bottom: 1.25rem;
}

.verify-detail-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 1rem;
}

.verify-detail-item {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    padding: 0.75rem 1rem;
    background: #f8fafc;
    border-radius: 10px;
}

.verify-detail-label {
    font-size: 0.8rem;
    font-weight: 500;
    color: #6c757d;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.verify-detail-value {
    font-size: 1rem;
    font-weight: 500;
    color: var(--app-primary-dark);
}

/* Verification approve page – professional layout */
.verification-approve-card {
    border-radius: 12px;
    overflow: hidden;
}

.verification-approve-header {
    background: linear-gradient(135deg, var(--app-primary) 0%, var(--app-primary-dark) 100%);
    color: #fff;
    padding: 1rem 1.5rem;
    border: 0;
}

.verification-approve-body {
    padding: 1.5rem 1.75rem;
    background: #fff;
}

.verification-approve-body .alert {
    border-radius: 10px;
}

.verification-approve-summary {
    background: linear-gradient(180deg, #f8fafc 0%, #f1f5f9 100%);
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 1.25rem 1.5rem;
    margin-bottom: 1.75rem;
}

.verification-approve-summary-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 1rem 2rem;
}

.verification-approve-summary-block {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.verification-approve-summary-block.verification-approve-fee {
    font-weight: 600;
    color: var(--app-primary);
}

.verification-approve-label {
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #64748b;
}

.verification-approve-value {
    font-size: 0.95rem;
    font-weight: 500;
    color: #1e293b;
}

.verification-approve-form {
    margin-top: 0;
}

.verification-approve-section {
    margin-bottom: 2rem;
}

.verification-approve-section-marks {
    padding-bottom: 1.5rem;
    border-bottom: 1px solid #e2e8f0;
}

.verification-approve-section-head {
    margin-bottom: 1rem;
}

.verification-approve-section-title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--app-primary-dark);
    margin: 0 0 0.35rem 0;
    display: flex;
    align-items: center;
}

.verification-approve-section-title .bi {
    opacity: 0.9;
}

.verification-approve-section-desc {
    font-size: 0.875rem;
    color: #64748b;
    margin: 0;
    line-height: 1.45;
}

.verification-approve-empty {
    padding: 1rem;
    background: #f8fafc;
    border-radius: 10px;
    border: 1px dashed #cbd5e1;
}

.verification-approve-semester {
    background: #fafbfc;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 1rem 1.25rem;
    margin-bottom: 1rem;
}

.verification-approve-semester:last-child {
    margin-bottom: 0;
}

.verification-approve-semester-title {
    font-size: 0.9rem;
    font-weight: 600;
    color: #334155;
    margin: 0 0 0.75rem 0;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid #e2e8f0;
}

.verification-approve-table {
    font-size: 0.875rem;
    border-radius: 8px;
    overflow: hidden;
}

.verification-approve-table thead {
    background: var(--app-primary);
    color: #fff;
}

.verification-approve-table thead th {
    border: 0;
    padding: 0.6rem 0.75rem;
    font-weight: 600;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.verification-approve-table tbody td {
    padding: 0.5rem 0.75rem;
    vertical-align: middle;
    border-color: #e2e8f0;
}

.verification-approve-table tbody tr:hover {
    background: rgba(31, 58, 95, 0.03);
}

.verification-approve-table .form-control {
    font-size: 0.875rem;
    padding: 0.35rem 0.5rem;
}

.verification-approve-section-actions {
    background: linear-gradient(180deg, #f8fafc 0%, #fff 100%);
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 1.5rem;
}

.verification-approve-remarks {
    max-width: 400px;
    margin-bottom: 1.25rem;
}

.verification-approve-remarks .form-label {
    font-size: 0.875rem;
    font-weight: 500;
    color: #475569;
}

.verification-approve-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    align-items: center;
}

.verification-approve-buttons .btn {
    font-weight: 500;
}

.verification-approve-buttons .btn-success {
    background: var(--app-primary);
    border-color: var(--app-primary);
}

.verification-approve-buttons .btn-success:hover {
    background: var(--app-primary-dark);
    border-color: var(--app-primary-dark);
    color: #fff;
}

/* Send verification list (eligible students) – professional layout + search */
.send-verification-list-card {
    border-radius: 12px;
    overflow: hidden;
}

.send-verification-list-header {
    background: linear-gradient(135deg, var(--app-primary) 0%, var(--app-primary-dark) 100%);
    color: #fff;
    padding: 1rem 1.5rem;
    border: 0;
}

.send-verification-list-body {
    padding: 1.5rem 1.75rem;
    background: #fff;
}

.send-verification-intro {
    background: linear-gradient(180deg, #f8fafc 0%, #f1f5f9 100%);
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 1rem 1.25rem;
    margin-bottom: 1.5rem;
}

.send-verification-intro-text {
    font-size: 0.9rem;
    color: #475569;
    line-height: 1.5;
    margin: 0;
}

.send-verification-empty {
    padding: 1.5rem;
    background: #f8fafc;
    border: 1px dashed #cbd5e1;
    border-radius: 10px;
    text-align: center;
}

.send-verification-empty-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: center;
    margin-top: 1rem;
}

.send-verification-search-wrap {
    margin-bottom: 1rem;
}

.send-verification-search-input-wrap {
    position: relative;
    max-width: 400px;
}

.send-verification-search-icon {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: #94a3b8;
    font-size: 1rem;
    pointer-events: none;
}

.send-verification-search-input {
    padding-left: 2.5rem;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
}

.send-verification-search-input:focus {
    border-color: var(--app-primary);
    box-shadow: 0 0 0 3px rgba(31, 58, 95, 0.1);
}

.send-verification-search-summary {
    display: block;
    margin-top: 0.35rem;
}

.send-verification-table {
    font-size: 0.875rem;
    border-radius: 8px;
    overflow: hidden;
}

.send-verification-table thead {
    background: var(--app-primary);
    color: #fff;
}

.send-verification-table thead th {
    border: 0;
    padding: 0.65rem 0.75rem;
    font-weight: 600;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.send-verification-table tbody td {
    padding: 0.6rem 0.75rem;
    vertical-align: middle;
    border-color: #e2e8f0;
}

.send-verification-table tbody tr:hover {
    background: rgba(31, 58, 95, 0.04);
}

.send-verification-footer {
    border-color: #e2e8f0 !important;
}

/* Report summary cards (institute report page) */
.report-summary-cards .report-summary-card {
    transition: box-shadow 0.2s ease, transform 0.2s ease;
}
.report-summary-cards .report-summary-card:hover {
    box-shadow: 0 0.25rem 0.5rem rgba(0, 0, 0, 0.08) !important;
}
.report-summary-icon {
    width: 3.25rem;
    height: 3.25rem;
}
.report-summary-icon i {
    font-size: 1.5rem;
}
.report-summary-label {
    letter-spacing: 0.04em;
}
.report-summary-value {
    line-height: 1.2;
    letter-spacing: -0.02em;
}
.report-summary-sublabel {
    line-height: 1.3;
}

/* Compact report summary cards (small boxes) – same position/height */
.report-summary-cards-compact .report-summary-card-sm {
    min-height: 0;
}
.report-summary-cards-compact .report-summary-card-body {
    padding: 0.75rem 1rem !important;
    min-height: 4.5rem;
    width: 100%;
}
.report-summary-icon-sm {
    width: 2.25rem;
    height: 2.25rem;
}
.report-summary-icon-sm i {
    font-size: 1.1rem;
}
.report-summary-cards-compact .report-summary-label {
    font-size: 0.7rem;
    letter-spacing: 0.03em;
}
.report-summary-cards-compact .report-summary-value {
    font-size: 1.2rem !important;
    line-height: 1.2;
}
.report-summary-cards-compact .report-summary-sublabel {
    font-size: 0.65rem;
    line-height: 1.2;
}
.report-charts-row .card-header {
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}
.report-chart-body {
    min-height: 280px;
}
.report-chart-wrap {
    max-width: 260px;
    margin: 0 auto;
    width: 100%;
    position: relative;
    height: 260px;
}
.report-chart-wrap canvas {
    max-height: 100%;
    width: 100% !important;
}
.report-chart-card .card-body:not(.d-flex) .report-chart-wrap {
    max-width: 100%;
}

/* Report page – mobile responsive */
@media (max-width: 575.98px) {
    .report-page-header .h5 { font-size: 1.1rem; }
    .report-summary-cards-compact .report-summary-card-body {
        min-height: 3.75rem;
        padding: 0.6rem 0.75rem !important;
    }
    .report-summary-icon-sm {
        width: 2rem;
        height: 2rem;
    }
    .report-summary-icon-sm i { font-size: 1rem; }
    .report-summary-cards-compact .report-summary-label { font-size: 0.65rem; }
    .report-summary-cards-compact .report-summary-value { font-size: 1.05rem !important; }
    .report-summary-cards-compact .report-summary-sublabel { font-size: 0.6rem; }
    .report-chart-body { min-height: 240px; }
    .report-chart-wrap { height: 240px; }
    .report-table-header {
        flex-direction: column;
        align-items: stretch;
    }
    .report-table-search {
        min-width: 100%;
        max-width: 100%;
    }
    .report-table-responsive .table {
        font-size: 0.8125rem;
    }
    .report-table-responsive .table th,
    .report-table-responsive .table td {
        padding: 0.5rem 0.35rem;
        white-space: nowrap;
    }
    .report-table-responsive .table th:nth-child(2),
    .report-table-responsive .table td:nth-child(2),
    .report-table-responsive .table th:nth-child(4),
    .report-table-responsive .table td:nth-child(4) {
        white-space: normal;
        min-width: 80px;
    }
}
@media (min-width: 576px) and (max-width: 991.98px) {
    .report-summary-cards-compact .report-summary-card-body {
        min-height: 4.25rem;
    }
}

/* ---------- Chat (Institute <-> Main Office) ---------- */
/* One-screen layout: no page scroll, only messages area scrolls */
.app-body:has(.app-main-chat) {
    overflow: hidden;
    height: 100vh;
}
.app-shell:has(.app-main-chat) {
    min-height: 100vh;
    height: 100vh;
    overflow: hidden;
}
.app-content:has(.app-main-chat) {
    min-height: 0;
    overflow: hidden;
}
.app-main.app-main-chat {
    overflow: hidden;
    height: calc(100vh - var(--app-topbar-height, 56px));
    min-height: 0;
    display: flex;
    flex-direction: column;
    padding: 0;
}
.app-main.app-main-chat .chat-app {
    border-radius: 0;
    box-shadow: none;
    margin: 0;
    max-width: none;
    height: 100%;
    min-height: 0;
    overflow: hidden;
}
.chat-app {
    display: flex;
    flex-direction: column;
    height: calc(100vh - var(--app-topbar-height, 56px) - 2rem);
    min-height: 360px;
    max-width: 900px;
    margin: 0 auto;
    background: var(--bs-body-bg);
    border-radius: 0.5rem;
    box-shadow: 0 1px 3px rgba(0,0,0,0.08);
    overflow: hidden;
}
.app-main.app-main-chat .chat-app.chat-app-institute {
    height: 100%;
    min-height: 0;
    max-width: none;
    display: flex;
    flex-direction: row;
    overflow: hidden;
}
.chat-sidebar-institute {
    width: 220px;
    min-width: 200px;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    background: #f8f9fa;
    border-right: 1px solid rgba(0,0,0,0.1);
    overflow: hidden;
}
.chat-sidebar-institute .chat-sidebar-list {
    overflow-y: auto;
    overflow-x: hidden;
    min-height: 0;
}
.chat-conv-item-active {
    cursor: default;
    background: rgba(13, 110, 253, 0.08);
}
.chat-conv-item-active:hover {
    background: rgba(13, 110, 253, 0.1);
}
.chat-main-institute {
    flex: 1;
    min-width: 0;
    min-height: 0;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}
.chat-main-institute .chat-panel {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-height: 0;
    overflow: hidden;
}
.chat-main-institute .chat-messages {
    flex: 1;
    min-height: 0;
    overflow-y: auto;
    overflow-x: hidden;
}
.chat-app-main {
    display: flex;
    flex-direction: row;
    flex: 1;
    min-height: 0;
    max-width: none;
}
.app-main.app-main-chat .chat-app-main {
    height: 100%;
}
/* Left: institute list */
.chat-sidebar {
    width: 280px;
    min-width: 240px;
    max-width: 320px;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    background: #f8f9fa;
    border-right: 1px solid rgba(0,0,0,0.1);
    order: 0;
}
.chat-sidebar-header {
    padding: 1rem 1.25rem;
    border-bottom: 1px solid rgba(0,0,0,0.08);
    background: #fff;
    flex-shrink: 0;
}
.chat-sidebar-header .h6 { font-size: 0.95rem; color: #212529; }
.chat-sidebar-list {
    overflow-y: auto;
    flex: 1;
    min-height: 0;
}
.chat-conv-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.875rem 1.25rem;
    color: inherit;
    text-decoration: none;
    border-bottom: 1px solid rgba(0,0,0,0.05);
    transition: background 0.12s ease;
}
.chat-conv-item:hover { background: #f8f9fa; }
.chat-conv-item.unread { font-weight: 600; background: rgba(13, 110, 253, 0.04); }
.chat-conv-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(13, 110, 253, 0.12);
    color: #0d6efd;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 1.1rem;
    overflow: hidden;
}
.chat-conv-avatar-img,
.chat-header-avatar-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}
.chat-conv-name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 0.9rem; }
.chat-conv-status-wrap {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    flex-shrink: 0;
}
.chat-conv-status { width: 10px; height: 10px; border-radius: 50%; flex-shrink: 0; }
.chat-conv-status.online { background: #198754; box-shadow: 0 0 0 2px rgba(25, 135, 84, 0.3); }
.chat-conv-status.offline { background: #adb5bd; }
.chat-conv-badge {
    background: #dc3545;
    color: #fff;
    font-size: 0.7rem;
    font-weight: 600;
    padding: 0.15rem 0.4rem;
    border-radius: 10px;
    min-width: 1.1rem;
    line-height: 1;
    text-align: center;
}
/* Right: chat box / conversation area */
.chat-main {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-width: 0;
    min-height: 0;
    order: 1;
    background: #fff;
    border-left: 1px solid rgba(0,0,0,0.06);
    overflow: hidden;
}
.chat-empty-state {
    flex: 1;
    min-height: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--bs-secondary);
    padding: 2rem;
    overflow: hidden;
}
.chat-empty-state.hidden { display: none !important; }
.chat-panel {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-height: 0;
}
.chat-panel.hidden { display: none !important; }
.chat-app-main .chat-panel {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-height: 0;
    overflow: hidden;
    background: #fff;
}
.chat-app-main .chat-messages {
    flex: 1;
    min-height: 0;
    overflow-y: auto;
    overflow-x: hidden;
}
.chat-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    border-bottom: 1px solid rgba(0,0,0,0.08);
    background: #fff;
}
.chat-header-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(13, 110, 253, 0.12);
    color: #0d6efd;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    overflow: hidden;
}
.chat-header-info { min-width: 0; }
.chat-header-title { font-size: 1rem; font-weight: 600; margin: 0; }
.chat-header-status {
    font-size: 0.8rem;
    color: #6c757d;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}
.chat-header-status.online { color: #198754; }
.chat-status-icon {
    font-size: 0.5rem;
    flex-shrink: 0;
}
.chat-header-status.online .chat-status-icon { color: #198754; }
.chat-header-status.offline .chat-status-icon { color: #adb5bd; }
.chat-messages {
    flex: 1;
    min-height: 0;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 1rem;
    background: #f0f2f5;
}
.chat-messages-inner { display: flex; flex-direction: column; gap: 0.5rem; }
.chat-bubble {
    max-width: 75%;
    padding: 0.5rem 0.75rem;
    border-radius: 1rem;
    font-size: 0.9rem;
}
.chat-bubble-me {
    align-self: flex-end;
    background: #0d6efd;
    color: #fff;
    border-bottom-right-radius: 0.25rem;
}
.chat-bubble-them {
    align-self: flex-start;
    background: #fff;
    color: #212529;
    border-bottom-left-radius: 0.25rem;
    box-shadow: 0 1px 2px rgba(0,0,0,0.06);
}
.chat-bubble-meta { font-size: 0.7rem; opacity: 0.85; margin-top: 0.2rem; }
.chat-bubble-them .chat-bubble-meta { color: #6c757d; }
.chat-attachment-link { color: inherit; text-decoration: underline; }
.chat-bubble-me .chat-attachment-link { color: rgba(255,255,255,0.95); }
.chat-input-wrap {
    padding: 0.75rem 1rem;
    background: #fff;
    border-top: 1px solid rgba(0,0,0,0.08);
}
.chat-form { margin: 0; }
.chat-input-row {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.chat-attach-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid #dee2e6;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #6c757d;
    flex-shrink: 0;
}
.chat-attach-btn:hover { background: #f8f9fa; color: #0d6efd; }
.chat-input {
    flex: 1;
    min-width: 0;
    padding: 0.5rem 1rem;
    border: 1px solid #dee2e6;
    border-radius: 2rem;
    font-size: 0.9rem;
}
.chat-send-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: none;
    background: #0d6efd;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    flex-shrink: 0;
}
.chat-send-btn:hover { background: #0b5ed7; }
.chat-send-btn:disabled { opacity: 0.7; cursor: not-allowed; }
/* Back button: visible only on mobile */
.chat-back-btn {
    display: none;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    margin: 0 -0.25rem 0 0;
    padding: 0;
    border: none;
    border-radius: 50%;
    background: transparent;
    color: #495057;
    cursor: pointer;
    flex-shrink: 0;
    -webkit-tap-highlight-color: transparent;
}
.chat-back-btn:hover { background: rgba(0,0,0,0.06); color: #212529; }
.chat-back-btn:active { background: rgba(0,0,0,0.1); }
.chat-back-btn .bi { font-size: 1.35rem; }
/* ---------- Chat: mobile responsive ---------- */
@media (max-width: 767.98px) {
    .chat-back-btn { display: flex; }
    .chat-header { padding-left: 0.25rem; }
    .app-main.app-main-chat {
        height: calc(100vh - var(--app-topbar-height, 56px));
        height: calc(100dvh - var(--app-topbar-height, 56px));
    }
    /* Main Office: list view (sidebar) or conversation view (panel full screen) */
    .chat-app-main {
        flex-direction: column;
        min-height: 0;
    }
    .chat-app-main .chat-sidebar {
        width: 100%;
        max-width: none;
        min-width: 0;
        max-height: 38vh;
        min-height: 140px;
        border-right: none;
        border-bottom: 1px solid rgba(0,0,0,0.08);
        flex-shrink: 0;
    }
    .chat-app-main .chat-sidebar-header { padding: 0.75rem 1rem; }
    .chat-app-main .chat-sidebar-list {
        flex: 1;
        min-height: 80px;
        -webkit-overflow-scrolling: touch;
    }
    .chat-app-main .chat-main {
        flex: 1;
        min-height: 0;
        border-left: none;
    }
    /* Main Office: conversation open – hide list, show chat full screen */
    .chat-app-main.mobile-panel-open .chat-sidebar {
        display: none !important;
    }
    .chat-app-main.mobile-panel-open .chat-main {
        flex: 1;
        min-height: 0;
        display: flex !important;
    }
    .chat-app-main .chat-conv-item {
        padding: 0.75rem 1rem;
        gap: 0.5rem;
        min-height: 44px;
    }
    .chat-app-main .chat-conv-avatar {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
    .chat-app-main .chat-conv-name { font-size: 0.875rem; }
    /* Chat panel: header, messages, input */
    .chat-app-main .chat-header {
        padding: 0.625rem 0.75rem;
        gap: 0.5rem;
        min-height: 52px;
    }
    .chat-app-main .chat-header-avatar {
        width: 40px;
        height: 40px;
        font-size: 1.1rem;
    }
    .chat-app-main .chat-header-title { font-size: 0.9375rem; }
    .chat-app-main .chat-header-status { font-size: 0.75rem; }
    .chat-app-main .chat-messages {
        padding: 0.75rem;
        -webkit-overflow-scrolling: touch;
    }
    .chat-app-main .chat-bubble {
        max-width: 88%;
        padding: 0.5rem 0.75rem;
        font-size: 0.875rem;
    }
    .chat-app-main .chat-empty-state {
        padding: 1rem;
    }
    .chat-app-main .chat-empty-state .bi { font-size: 2.25rem !important; }
    .chat-app-main .chat-input-wrap { padding: 0.5rem 0.75rem; }
    .chat-app-main .chat-input-row { gap: 0.5rem; }
    .chat-app-main .chat-input {
        min-height: 44px;
        padding: 0.5rem 0.75rem;
        font-size: 16px; /* avoids zoom on focus in iOS */
    }
    .chat-app-main .chat-attach-btn,
    .chat-app-main .chat-send-btn {
        min-width: 44px;
        min-height: 44px;
    }
    .chat-app-main .chat-send-btn { width: 44px; height: 44px; }
    /* Institute chat: list view (sidebar) or conversation view (panel full screen) */
    .chat-app-institute {
        flex-direction: column;
    }
    .chat-sidebar-institute {
        width: 100%;
        min-width: 0;
        flex: 1;
        min-height: 0;
        flex-direction: column;
        border-right: none;
        border-bottom: none;
        -webkit-overflow-scrolling: touch;
    }
    .chat-sidebar-institute .chat-sidebar-header {
        padding: 0.75rem 1rem;
        border-bottom: 1px solid rgba(0,0,0,0.08);
    }
    .chat-sidebar-institute .chat-sidebar-header .h6 { font-size: 0.875rem; }
    .chat-sidebar-institute .chat-sidebar-list {
        flex: 1;
        overflow-y: auto;
        overflow-x: hidden;
        min-height: 0;
    }
    .chat-sidebar-institute .chat-conv-item {
        padding: 0.75rem 1rem;
        min-height: 44px;
        cursor: pointer;
        -webkit-tap-highlight-color: transparent;
    }
    .chat-sidebar-institute .chat-conv-avatar {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
    /* Institute: default mobile = list view only */
    .chat-app-institute .chat-main-institute {
        display: none !important;
        flex: 1;
        min-height: 0;
    }
    /* Institute: conversation view = panel full screen, list hidden */
    .chat-app-institute.mobile-panel-open .chat-sidebar-institute {
        display: none !important;
    }
    .chat-app-institute.mobile-panel-open .chat-main-institute {
        display: flex !important;
    }
    .chat-main-institute {
        flex: 1;
        min-height: 0;
    }
    .chat-main-institute .chat-header {
        padding: 0.625rem 0.75rem;
        min-height: 52px;
    }
    .chat-main-institute .chat-header-avatar {
        width: 40px;
        height: 40px;
    }
    .chat-main-institute .chat-messages {
        padding: 0.75rem;
        -webkit-overflow-scrolling: touch;
    }
    .chat-main-institute .chat-bubble {
        max-width: 88%;
        font-size: 0.875rem;
    }
    .chat-main-institute .chat-input {
        font-size: 16px;
        min-height: 44px;
    }
    .chat-main-institute .chat-attach-btn,
    .chat-main-institute .chat-send-btn {
        min-width: 44px;
        min-height: 44px;
    }
    /* Safe area for notched devices */
    .chat-app-main .chat-input-wrap,
    .chat-main-institute .chat-input-wrap {
        padding-bottom: max(0.5rem, env(safe-area-inset-bottom));
    }
    .chat-app-main .chat-messages,
    .chat-main-institute .chat-messages {
        padding-left: max(0.75rem, env(safe-area-inset-left));
        padding-right: max(0.75rem, env(safe-area-inset-right));
    }
}
@media (max-width: 575.98px) {
    .chat-app-main .chat-sidebar {
        max-height: 35vh;
        min-height: 120px;
    }
    .chat-app-main .chat-conv-item { padding: 0.625rem 0.75rem; }
    .chat-app-main .chat-header,
    .chat-main-institute .chat-header {
        padding: 0.5rem 0.75rem;
    }
    .chat-messages { padding: 0.5rem 0.75rem; }
    .chat-bubble { max-width: 90%; font-size: 0.875rem; }
    .chat-input-wrap { padding: 0.5rem; }
    .chat-input { padding: 0.5rem 0.625rem; }
}

/* Main Office — course view (view course page) */
.course-view-page {
    padding-top: 0.25rem;
    padding-left: clamp(0.5rem, 2.5vw, 1.5rem);
    padding-right: clamp(0.5rem, 2.5vw, 1.5rem);
    padding-bottom: 1.5rem;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}
.course-view-toolbar {
    padding-bottom: 0.25rem;
    border-bottom: 1px solid rgba(31, 58, 95, 0.08);
}
/* Vertical breathing room above/below each major block row */
.course-view-page > .course-view-section {
    padding-top: 1.25rem;
    padding-bottom: 1.25rem;
    margin-top: 0;
    margin-bottom: 0;
}
/* First block after toolbar (toolbar is also a div; avoid :first-of-type) */
.course-view-page > .course-view-toolbar + .course-view-section {
    padding-top: 0.75rem;
}
.course-view-page > .course-view-section:last-of-type {
    padding-bottom: 1.75rem;
}
@media (min-width: 768px) {
    .course-view-page > .course-view-section {
        padding-top: 1.5rem;
        padding-bottom: 1.5rem;
    }
    .course-view-page > .course-view-toolbar + .course-view-section {
        padding-top: 1rem;
    }
    .course-view-page > .course-view-section:last-of-type {
        padding-bottom: 2rem;
    }
}
@media (min-width: 1400px) {
    .course-view-page {
        max-width: 1280px;
    }
}
.course-view-panel {
    border: 1px solid rgba(31, 58, 95, 0.1);
    border-radius: 0.85rem;
    box-shadow: 0 6px 24px rgba(31, 58, 95, 0.07);
    overflow: hidden;
    background: #fff;
    transition: box-shadow 0.2s ease, transform 0.2s ease;
}
.course-view-panel:hover {
    box-shadow: 0 10px 32px rgba(31, 58, 95, 0.1);
}
.course-view-panel-body {
    padding: 1.25rem 1.35rem;
}
@media (min-width: 992px) {
    .course-view-panel-body {
        padding: 1.35rem 1.5rem;
    }
}
.course-view-panel-title {
    font-size: 0.95rem;
    font-weight: 700;
    margin: 0;
    line-height: 1.35;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.25rem;
}
.course-view-panel--info {
    border-left: 4px solid var(--app-primary);
    background: linear-gradient(165deg, rgba(31, 58, 95, 0.07) 0%, #fff 42%, #fff 100%);
}
.course-view-panel--info .course-view-panel-title {
    color: var(--app-primary-dark);
}
.course-view-panel--payment {
    border-left: 4px solid var(--app-accent);
    background: linear-gradient(165deg, rgba(31, 138, 138, 0.1) 0%, #fff 48%, #fff 100%);
}
.course-view-panel--payment .course-view-panel-title {
    color: #156b6b;
}
.course-view-payment-table td {
    border-color: rgba(31, 138, 138, 0.15);
    vertical-align: middle;
}
.course-view-payment-table tr:last-child td {
    font-weight: 600;
    color: var(--app-primary-dark);
}
.course-view-panel--semesters {
    border-left: 4px solid #6d28d9;
    background: linear-gradient(165deg, rgba(109, 40, 217, 0.07) 0%, #fff 38%, #fff 100%);
}
.course-view-panel--semesters .course-view-panel-title {
    color: #5b21b6;
}
.course-view-panel--semesters .semester-structure > .card {
    border-color: rgba(109, 40, 217, 0.18);
    background: rgba(255, 255, 255, 0.85);
}
.course-view-panel--institutes {
    border-left: 4px solid #15803d;
    background: linear-gradient(165deg, rgba(21, 128, 61, 0.08) 0%, #fff 40%, #fff 100%);
}
.course-view-panel--institutes .course-view-panel-title {
    color: #166534;
}
.course-view-panel--institutes .table thead th {
    background: rgba(21, 128, 61, 0.08) !important;
    color: #14532d;
    font-size: 0.72rem;
    letter-spacing: 0.02em;
    text-transform: uppercase;
}
.course-view-panel--institutes .table-bordered {
    border-color: rgba(21, 128, 61, 0.15);
}

/* Main Office — institute edit (sectioned form, matches view-course palette) */
.institute-edit-page {
    max-width: 920px;
    margin-left: auto;
    margin-right: auto;
    padding-left: clamp(0.25rem, 1.5vw, 0.75rem);
    padding-right: clamp(0.25rem, 1.5vw, 0.75rem);
    padding-bottom: 1.5rem;
}
.institute-edit-page-title {
    color: var(--app-primary-dark);
}
.institute-edit-panel {
    border-radius: 0.85rem;
    border: 1px solid rgba(31, 58, 95, 0.1);
    box-shadow: 0 4px 20px rgba(31, 58, 95, 0.06);
    margin-bottom: 1.25rem;
    overflow: hidden;
    background: #fff;
}
.institute-edit-panel-head {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 1rem 1.25rem;
    border-bottom: 1px solid rgba(31, 58, 95, 0.08);
}
.institute-edit-panel-icon {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 0.65rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.15rem;
    flex-shrink: 0;
}
.institute-edit-panel-title {
    font-size: 0.95rem;
    font-weight: 700;
    margin: 0 0 0.2rem;
    line-height: 1.3;
}
.institute-edit-panel-desc {
    font-size: 0.8125rem;
    color: #5c6574;
    line-height: 1.4;
}
.institute-edit-panel-body {
    padding: 1.15rem 1.25rem 1.25rem;
}
.institute-edit-panel--core {
    border-left: 4px solid var(--app-primary);
}
.institute-edit-panel--core .institute-edit-panel-head {
    background: linear-gradient(165deg, rgba(31, 58, 95, 0.07) 0%, #fff 100%);
}
.institute-edit-panel--core .institute-edit-panel-icon {
    background: rgba(31, 58, 95, 0.12);
    color: var(--app-primary);
}
.institute-edit-panel--core .institute-edit-panel-title {
    color: var(--app-primary-dark);
}
.institute-edit-panel--account {
    border-left: 4px solid #c2410c;
}
.institute-edit-panel--account .institute-edit-panel-head {
    background: linear-gradient(165deg, rgba(194, 65, 12, 0.09) 0%, #fff 100%);
}
.institute-edit-panel--account .institute-edit-panel-icon {
    background: rgba(194, 65, 12, 0.16);
    color: #9a3412;
}
.institute-edit-panel--account .institute-edit-panel-title {
    color: #7c2d12;
}
.institute-edit-panel--logo {
    border-left: 4px solid #64748b;
}
.institute-edit-panel--logo .institute-edit-panel-head {
    background: linear-gradient(165deg, rgba(100, 116, 139, 0.1) 0%, #fff 100%);
}
.institute-edit-panel--logo .institute-edit-panel-icon {
    background: rgba(100, 116, 139, 0.16);
    color: #475569;
}
.institute-edit-panel--logo .institute-edit-panel-title {
    color: #334155;
}
.institute-edit-panel--courses {
    border-left: 4px solid #6d28d9;
}
.institute-edit-panel--courses .institute-edit-panel-head {
    background: linear-gradient(165deg, rgba(109, 40, 217, 0.08) 0%, #fff 100%);
}
.institute-edit-panel--courses .institute-edit-panel-icon {
    background: rgba(109, 40, 217, 0.14);
    color: #5b21b6;
}
.institute-edit-panel--courses .institute-edit-panel-title {
    color: #5b21b6;
}
.institute-edit-panel--banks {
    border-left: 4px solid var(--app-accent);
}
.institute-edit-panel--banks .institute-edit-panel-head {
    background: linear-gradient(165deg, rgba(31, 138, 138, 0.1) 0%, #fff 100%);
}
.institute-edit-panel--banks .institute-edit-panel-icon {
    background: rgba(31, 138, 138, 0.16);
    color: #0f766e;
}
.institute-edit-panel--banks .institute-edit-panel-title {
    color: #115e59;
}
.institute-edit-checkboxes {
    background: rgba(109, 40, 217, 0.05);
    border: 1px solid rgba(109, 40, 217, 0.14);
}
.institute-edit-checkboxes--banks {
    background: rgba(31, 138, 138, 0.06);
    border-color: rgba(31, 138, 138, 0.18);
}
.institute-edit-readonly {
    background: rgba(31, 58, 95, 0.05) !important;
    border-color: rgba(31, 58, 95, 0.12) !important;
    color: var(--app-primary-dark);
}
.institute-edit-dmc-check {
    padding: 0.65rem 0.85rem;
    background: rgba(31, 58, 95, 0.04);
    border-radius: 0.5rem;
    border: 1px solid rgba(31, 58, 95, 0.1);
}
.institute-edit-hint {
    padding: 0.5rem 0.75rem;
    background: rgba(194, 65, 12, 0.07);
    border-radius: 0.5rem;
    border-left: 3px solid #ea580c;
    color: #7c2d12;
}
.institute-edit-alert-warn {
    background: rgba(234, 179, 8, 0.14) !important;
    color: #713f12 !important;
}
.institute-edit-actions {
    border-top: 1px solid rgba(31, 58, 95, 0.1);
}
