


* { margin: 0; padding: 0; box-sizing: border-box; }

:root {
    --primary: #6366F1;
    --primary-dark: #4F46E5;
    --primary-light: #EEF2FF;
    --accent-violet: #7C3AED;
    --accent-violet-soft: #A78BFA;

    --success: #10B981;
    --success-light: #D1FAE5;
    --danger: #EF4444;
    --danger-light: #FEE2E2;
    --warning: #F59E0B;
    --warning-light: #FEF3C7;
    --info: #3B82F6;
    --info-light: #DBEAFE;

    --text: #111827;
    --text-muted: #6B7280;
    --text-light: #9CA3AF;

    --bg: #F9FAFB;
    --bg-card: #FFFFFF;
    --border: #E5E7EB;
    --border-soft: #F1F5F9;

    
    --slate-bg: #161B22;
    --slate-header: #1A2029;
    --slate-border: #21262D;
    --slate-hover: #21262D;
    --slate-text-idle: #8B949E;
    --slate-text-hover: #E6EDF3;
    --slate-text-active: #FFFFFF;
    --slate-icon-idle: #6E7681;
    --slate-label: #6E7681;

    --sidebar-w: 260px;

    --shadow-sm: 0 1px 2px rgba(15,23,42,0.04);
    --shadow: 0 1px 3px rgba(15,23,42,0.06), 0 1px 2px rgba(15,23,42,0.04);
    --shadow-md: 0 4px 6px -1px rgba(15,23,42,0.07), 0 2px 4px -1px rgba(15,23,42,0.04);
    --shadow-lg: 0 10px 20px -5px rgba(15,23,42,0.10), 0 4px 6px -2px rgba(15,23,42,0.05);

    --r-sm: 6px;
    --r: 10px;
    --r-md: 12px;
    --r-lg: 16px;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, Arial, sans-serif;
    background: var(--bg);
    color: var(--text);
    font-size: 14px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

a { text-decoration: none; color: var(--primary); }
img { max-width: 100%; display: block; }
button { font-family: inherit; cursor: pointer; }
input, select, textarea { font-family: inherit; }


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

.main-content {
    margin-left: var(--sidebar-w);
    flex: 1;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background: var(--bg);
}

.page-content {
    padding: 28px 32px 40px;
    flex: 1;
}


.sidebar {
    width: var(--sidebar-w);
    background: var(--slate-bg);
    color: var(--slate-text-idle);
    position: fixed;
    top: 0;
    left: 0;
    height: 100vh;
    overflow-y: auto;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    border-right: 1px solid var(--slate-border);
}

.sidebar-header {
    padding: 22px 20px;
    border-bottom: 1px solid var(--slate-border);
    background: var(--slate-header);
}

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

.brand-logo {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--primary), var(--accent-violet));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: white;
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(99,102,241,0.35);
}

.brand-text h2 {
    font-size: 15px;
    font-weight: 800;
    color: var(--slate-text-hover);
    line-height: 1.2;
    letter-spacing: -0.2px;
}

.brand-text small {
    font-size: 10px;
    color: var(--slate-label);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 500;
}

.sidebar-menu {
    padding: 14px 0;
    flex: 1;
}






.menu-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 10.5px;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--slate-label);
    letter-spacing: 1px;
    padding: 16px 18px 6px;
    margin-top: 4px;
    position: relative;
}

.menu-label::after {
    content: "";
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg, var(--slate-border), transparent);
    margin-left: 4px;
}

.menu-label i {
    font-size: 12px;
    color: var(--accent-violet-soft);
    width: 14px;
    text-align: center;
    flex-shrink: 0;
    opacity: 0.7;
}


.menu-item {
    display: flex;
    align-items: center;
    padding: 9px 14px;
    margin: 2px 8px;
    color: var(--slate-text-idle);
    border-radius: 8px;
    font-size: 13.5px;
    font-weight: 500;
    transition: all 0.16s ease;
    gap: 12px;
    line-height: 1.3;
    position: relative;
    border-left: 2px solid transparent;
}

.menu-item i {
    width: 18px;
    font-size: 14px;
    text-align: center;
    color: var(--slate-icon-idle);
    transition: color 0.16s ease;
    flex-shrink: 0;
}

.menu-item:hover {
    background: var(--slate-hover);
    color: var(--slate-text-hover);
}

.menu-item:hover i {
    color: var(--accent-violet-soft);
}

.menu-item.active {
    background: var(--slate-hover);
    color: var(--slate-text-active);
    font-weight: 600;
    border-left-color: var(--accent-violet);
}

.menu-item.active i {
    color: var(--accent-violet-soft);
}


.menu-item.logout {
    color: #F87171;
    margin-top: 12px;
    border-top: 1px solid var(--slate-border);
    padding-top: 14px;
}

.menu-item.logout i {
    color: #F87171;
}

.menu-item.logout:hover {
    background: rgba(239,68,68,0.10);
    color: #FCA5A5;
}

.sidebar-footer {
    padding: 14px 14px 18px;
    border-top: 1px solid var(--slate-border);
}

.user-box {
    padding: 12px 14px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    gap: 11px;
    margin-bottom: 10px;
    background: linear-gradient(135deg, var(--primary), var(--accent-violet));
    box-shadow: 0 4px 14px rgba(99,102,241,0.30);
}

.user-box .avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255,255,255,0.20);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 700;
    font-size: 14px;
    flex-shrink: 0;
}

.user-box .info { flex: 1; min-width: 0; }

.user-box .name {
    color: white;
    font-weight: 700;
    font-size: 13px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.user-box .role {
    font-size: 10px;
    color: rgba(255,255,255,0.75);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}


.command-bar {
    background: var(--slate-bg);
    padding: 18px 30px;
    color: var(--slate-text-hover);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
    border-bottom: 1px solid var(--slate-border);
    position: sticky;
    top: 0;
    z-index: 999;
}

.command-bar h1 {
    font-size: 19px;
    font-weight: 700;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 10px;
    letter-spacing: -0.3px;
    color: var(--slate-text-hover);
}

.command-bar h1 i {
    color: var(--accent-violet-soft);
    font-size: 18px;
}

.command-bar p {
    font-size: 10.5px;
    color: var(--slate-text-idle);
    margin-top: 3px;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    font-weight: 600;
}

.command-right {
    text-align: right;
    font-size: 13px;
    color: var(--slate-text-hover);
}

.command-right strong {
    font-weight: 700;
    color: var(--slate-text-active);
}


.session-select {
    background: var(--slate-header) !important;
    color: var(--slate-text-hover) !important;
    border: 1.5px solid var(--slate-border) !important;
    padding: 6px 12px;
    border-radius: 8px;
    font-size: 12.5px;
    font-weight: 600;
    cursor: pointer;
    font-family: inherit;
}


.card {
    background: var(--bg-card);
    border-radius: var(--r-lg);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
    margin-bottom: 20px;
    overflow: hidden;
    transition: box-shadow 0.2s;
}

.card:hover {
    box-shadow: var(--shadow);
}

.card-header {
    padding: 16px 22px;
    border-bottom: 1px solid var(--border-soft);
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #FFFFFF;
    flex-wrap: wrap;
    gap: 10px;
}

.card-header h3 {
    font-size: 15px;
    font-weight: 700;
    color: var(--text);
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0;
    letter-spacing: -0.2px;
}

.card-header h3 i { color: var(--primary); }

.card-body { padding: 20px 22px; }


.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 16px;
    margin-bottom: 24px;
}

.stat-card {
    background: var(--bg-card);
    padding: 20px;
    border-radius: var(--r-lg);
    border: 1px solid var(--border);
    display: flex;
    align-items: center;
    gap: 14px;
    box-shadow: var(--shadow-sm);
    transition: all 0.2s;
}

.stat-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
    border-color: rgba(99,102,241,0.3);
}

.stat-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: white;
    flex-shrink: 0;
}

.stat-icon.blue   { background: linear-gradient(135deg, #3B82F6, #1D4ED8); }
.stat-icon.purple { background: linear-gradient(135deg, #8B5CF6, #6D28D9); }
.stat-icon.green  { background: linear-gradient(135deg, #10B981, #047857); }
.stat-icon.orange { background: linear-gradient(135deg, #F59E0B, #B45309); }
.stat-icon.pink   { background: linear-gradient(135deg, #EC4899, #BE185D); }
.stat-icon.teal   { background: linear-gradient(135deg, #14B8A6, #0D9488); }

.stat-info { flex: 1; min-width: 0; }

.stat-value {
    font-size: 24px;
    font-weight: 800;
    color: var(--text);
    display: block;
    line-height: 1.1;
    letter-spacing: -0.5px;
}

.stat-label {
    font-size: 11px;
    color: var(--text-muted);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-top: 2px;
    display: block;
}


.quick-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 14px;
    margin-bottom: 24px;
}

.quick-card {
    background: white;
    padding: 20px;
    border-radius: var(--r-lg);
    border: 1px solid var(--border);
    text-align: center;
    transition: all 0.25s;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.quick-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
    border-color: rgba(99,102,241,0.3);
}

.quick-icon {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    color: white;
}

.quick-label {
    font-size: 13px;
    font-weight: 700;
    color: var(--text);
}

.quick-sub {
    font-size: 11px;
    color: var(--text-muted);
}


.table-responsive { overflow-x: auto; }

.table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}

.table thead { background: #F9FAFB; }

.table th {
    padding: 11px 14px;
    text-align: left;
    font-weight: 700;
    font-size: 11px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 2px solid var(--border);
    white-space: nowrap;
}

.table td {
    padding: 12px 14px;
    border-bottom: 1px solid var(--border-soft);
    color: var(--text);
}

.table tbody tr:hover { background: #FAFBFC; }
.table tbody tr:last-child td { border-bottom: none; }


.badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 700;
}

.badge-success { background: var(--success-light); color: #065F46; }
.badge-danger  { background: var(--danger-light); color: #991B1B; }
.badge-warning { background: var(--warning-light); color: #92400E; }
.badge-info    { background: var(--info-light); color: #1E40AF; }
.badge-primary { background: var(--primary-light); color: var(--primary-dark); }


.btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 9px 18px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: all 0.18s ease;
    text-decoration: none;
    letter-spacing: -0.1px;
}

.btn:hover {
    transform: translateY(-1px);
    box-shadow: var(--shadow);
}

.btn-primary {
    background: var(--primary);
    color: white;
    box-shadow: 0 1px 2px rgba(99,102,241,0.25);
}
.btn-primary:hover { background: var(--primary-dark); color: white; }

.btn-success { background: var(--success); color: white; }
.btn-success:hover { background: #059669; color: white; }

.btn-danger { background: var(--danger); color: white; }
.btn-danger:hover { background: #DC2626; color: white; }

.btn-secondary {
    background: white;
    color: var(--text);
    border: 1.5px solid var(--border);
}

.btn-secondary:hover {
    background: #F9FAFB;
    color: var(--text);
    border-color: #D1D5DB;
}

.btn-sm { padding: 6px 12px; font-size: 12px; }


.alert {
    padding: 14px 18px;
    border-radius: 10px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 13px;
    font-weight: 500;
}

.alert-success { background: var(--success-light); color: #065F46; border-left: 4px solid var(--success); }
.alert-error   { background: var(--danger-light); color: #991B1B; border-left: 4px solid var(--danger); }
.alert-warning { background: var(--warning-light); color: #92400E; border-left: 4px solid var(--warning); }
.alert-info    { background: var(--info-light); color: #1E40AF; border-left: 4px solid var(--info); }


.empty-state {
    text-align: center;
    padding: 50px 20px;
    color: var(--text-muted);
}

.empty-state i {
    font-size: 48px;
    color: #D1D5DB;
    display: block;
    margin-bottom: 12px;
}

.empty-state h3 {
    font-size: 16px;
    color: var(--text);
    margin-bottom: 6px;
}

.empty-state p { font-size: 13px; }


.mobile-menu-toggle {
    display: none;
    position: fixed;
    top: 14px;
    left: 14px;
    z-index: 1100;
    width: 44px;
    height: 44px;
    border-radius: 10px;
    background: var(--primary);
    color: white;
    border: none;
    font-size: 18px;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(99,102,241,0.35);
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}
.mobile-menu-toggle:hover {
    background: var(--primary-dark);
    transform: scale(1.05);
}

.sidebar-close {
    display: none;
    position: absolute;
    top: 16px;
    right: 16px;
    width: 36px;
    height: 36px;
    border-radius: 8px;
    background: rgba(255,255,255,0.08);
    color: var(--slate-text-idle);
    border: none;
    font-size: 16px;
    cursor: pointer;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}
.sidebar-close:hover {
    background: rgba(239,68,68,0.20);
    color: #FCA5A5;
}

.sidebar-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.5);
    z-index: 999;
    opacity: 0;
    transition: opacity 0.3s;
}
.sidebar-overlay.active {
    display: block;
    opacity: 1;
}





@media (max-width: 1024px) {
    :root { --sidebar-w: 220px; }
    .page-content { padding: 20px 22px 30px; }
    .command-bar h1 { font-size: 17px; }
    .command-right { font-size: 12px; }
    .stats-grid { grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); }
}

@media (max-width: 768px) {
    :root { --sidebar-w: 260px; }

    .sidebar {
        transform: translateX(-100%);
        transition: transform 0.3s ease;
        z-index: 1050;
        box-shadow: 4px 0 20px rgba(0,0,0,0.4);
    }
    .sidebar.active {
        transform: translateX(0);
    }

    .mobile-menu-toggle { display: flex; }
    .sidebar-close      { display: flex; }

    .main-content { margin-left: 0 !important; }

    .command-bar {
        padding: 14px 16px 14px 70px;
        flex-wrap: wrap;
        gap: 10px;
    }
    .command-bar h1 { font-size: 15px; }
    .command-bar p  { font-size: 10px; }

    .command-right {
        width: 100%;
        flex-direction: column;
        align-items: flex-start !important;
        gap: 8px !important;
        font-size: 11px;
        text-align: left !important;
    }
    .session-switcher {
        width: 100%;
        flex-wrap: wrap;
    }
    .session-select {
        flex: 1;
        min-width: 140px;
        font-size: 11px !important;
        padding: 5px 8px !important;
    }

    .page-content { padding: 14px 12px 30px; }

    .stats-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
    .stat-card { padding: 14px; gap: 10px; }
    .stat-icon { width: 40px; height: 40px; font-size: 16px; }
    .stat-value { font-size: 18px; }
    .stat-label { font-size: 10px; }

    .table-responsive {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    .table { min-width: 700px; font-size: 12px; }
    .table th, .table td { padding: 8px 10px; white-space: nowrap; }

    .card-body { padding: 16px; }
    .card-header { padding: 14px 16px; }
    .card-header h3 { font-size: 14px; }

    .form-row, .form-row.three {
        grid-template-columns: 1fr !important;
        gap: 12px;
    }

    .btn { padding: 10px 16px; font-size: 13px; }
    .btn-sm { padding: 7px 12px; font-size: 12px; }

    .brand-logo { width: 40px; height: 40px; }
    .brand-text h2 { font-size: 13px; }
    .brand-text small { font-size: 9px; }

    .user-box { padding: 10px; }
    .user-box .avatar { width: 32px; height: 32px; font-size: 13px; }
    .user-box .name { font-size: 12px; }
    .user-box .role { font-size: 9px; }

    .menu-item { padding: 9px 12px; font-size: 13px; }
    .menu-label { padding: 14px 14px 6px; font-size: 10px; }

    .print-toolbar {
        width: 100% !important;
        flex-direction: column;
        align-items: stretch;
    }
    .print-toolbar button,
    .print-toolbar a {
        width: 100%;
        justify-content: center;
    }

    .print-doc {
        width: 100% !important;
        min-height: auto !important;
        padding: 8mm !important;
        overflow-x: auto !important;
    }

    .dash-hero-title { font-size: 11px; }
    .dash-hero-sub   { font-size: 9px; }
}

@media (max-width: 480px) {
    .stats-grid { grid-template-columns: 1fr; }
    .command-bar h1 { font-size: 14px; }
    .command-bar p  { display: none; }

    .command-right > div:last-child { font-size: 10px; }

    .modal-content { padding: 20px !important; }

    .print-doc { border-radius: 0 !important; }
}









.list-card {
    background: #FFFFFF;
    border-radius: 16px;
    border: 1px solid #E5E7EB;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
    overflow: hidden;
}


.list-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    padding: 20px 24px;
    border-bottom: 1px solid #E5E7EB;
    background: linear-gradient(to bottom, #FCFDFE, #F8FAFC);
}

.list-header h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 800;
    color: #1F2937;
    display: flex;
    align-items: center;
    gap: 10px;
}

.list-header h3 i { color: #4F46E5; }

.list-subtitle {
    margin: 4px 0 0;
    font-size: 12px;
    color: #9CA3AF;
    font-weight: 500;
}


.list-filters {
    padding: 16px 24px;
    border-bottom: 1px solid #F3F4F6;
    background: #F9FAFB;
}

.filter-form {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    align-items: center;
}

.filter-input-wrap {
    position: relative;
    flex: 1;
    min-width: 220px;
}

.filter-input-wrap i {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: #9CA3AF;
    font-size: 13px;
}

.filter-input-wrap input {
    width: 100%;
    padding: 10px 14px 10px 38px;
    border: 1.5px solid #E5E7EB;
    border-radius: 8px;
    font-size: 13px;
    background: #FFFFFF;
    transition: all 0.2s;
}

.filter-input-wrap input:focus {
    outline: none;
    border-color: #4F46E5;
    box-shadow: 0 0 0 4px rgba(79, 70, 229, 0.1);
}

.filter-select {
    padding: 10px 14px;
    border: 1.5px solid #E5E7EB;
    border-radius: 8px;
    font-size: 13px;
    background: #FFFFFF;
    cursor: pointer;
    transition: all 0.2s;
    min-width: 140px;
}

.filter-select:focus {
    outline: none;
    border-color: #4F46E5;
    box-shadow: 0 0 0 4px rgba(79, 70, 229, 0.1);
}


.list-body { padding: 0; }


.row-num {
    display: inline-block;
    width: 26px;
    height: 26px;
    line-height: 26px;
    text-align: center;
    background: #F3F4F6;
    color: #6B7280;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
}


.action-buttons {
    display: flex;
    gap: 6px;
    justify-content: center;
}

.btn-icon {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    font-size: 13px;
    transition: all 0.2s;
    border: none;
    cursor: pointer;
}

.btn-icon.view {
    background: #DBEAFE;
    color: #1E40AF;
}
.btn-icon.view:hover {
    background: #1E40AF;
    color: white;
    transform: translateY(-2px);
}

.btn-icon.edit {
    background: #D1FAE5;
    color: #065F46;
}
.btn-icon.edit:hover {
    background: #10B981;
    color: white;
    transform: translateY(-2px);
}

.btn-icon.delete {
    background: #FEE2E2;
    color: #991B1B;
}
.btn-icon.delete:hover {
    background: #EF4444;
    color: white;
    transform: translateY(-2px);
}


.badge-pink {
    background: #FCE7F3;
    color: #BE185D;
    border: 1px solid #FBCFE8;
}


@media (max-width: 768px) {
    .list-header,
    .list-filters,
    .list-body {
        padding-left: 16px;
        padding-right: 16px;
    }

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

    .filter-input-wrap,
    .filter-select {
        min-width: 100%;
    }
}




.dropdown-wrap {
    position: relative;
    display: inline-block;
}

.btn-icon.primary {
    background: #EEF2FF;
    color: #4F46E5;
}
.btn-icon.primary:hover {
    background: #4F46E5;
    color: white;
    transform: translateY(-2px);
}

.btn-icon.success {
    background: #D1FAE5;
    color: #065F46;
    animation: pulse-key 2s infinite;
}
.btn-icon.success:hover {
    background: #10B981;
    color: white;
    transform: translateY(-2px);
}

@keyframes pulse-key {
    0%, 100% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.5); }
    50% { box-shadow: 0 0 0 6px rgba(16, 185, 129, 0); }
}

.btn-icon.more {
    background: #F3F4F6;
    color: #4B5563;
}
.btn-icon.more:hover {
    background: #1F2937;
    color: white;
    transform: translateY(-2px);
}


.action-dropdown {
    position: fixed;
    top: 0;
    right: auto;
    background: #FFFFFF;
    border: 1px solid #E5E7EB;
    border-radius: 10px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    min-width: 210px;
    max-width: min(280px, calc(100vw - 16px));
    max-height: calc(100vh - 16px);
    overflow-y: auto;
    padding: 6px;
    z-index: 100000;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-4px);
    transition: opacity 0.15s ease, transform 0.15s ease, visibility 0.15s ease;
}

.action-dropdown.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px 12px;
    font-size: 13px;
    color: #374151;
    text-decoration: none;
    border-radius: 7px;
    transition: all 0.15s;
    font-weight: 500;
}

.dropdown-link:hover {
    background: #F3F4F6;
    color: #1F2937;
}

.dropdown-link i {
    width: 16px;
    font-size: 13px;
    color: #6B7280;
    text-align: center;
}

.dropdown-link:hover i {
    color: #4F46E5;
}

.dropdown-link.danger {
    color: #DC2626;
}
.dropdown-link.danger:hover {
    background: #FEE2E2;
    color: #991B1B;
}
.dropdown-link.danger i {
    color: #DC2626;
}

.dropdown-divider {
    height: 1px;
    background: #F3F4F6;
    margin: 4px 0;
}


.table-responsive {
    overflow-x: auto;
    overflow-y: visible;
}

.list-body {
    overflow: visible;
}










.admission-wrapper {
    max-width: 1200px;
    margin: 0 auto;
}


.admission-card {
    background: #FFFFFF;
    border-radius: 16px;
    border: 1px solid #E5E7EB;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
    overflow: hidden;
}


.admission-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    padding: 20px 28px;
    background: linear-gradient(to bottom, #FCFDFE, #F8FAFC);
    border-bottom: 1px solid #E5E7EB;
}

.admission-header h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 800;
    color: #1F2937;
    display: flex;
    align-items: center;
    gap: 10px;
}

.admission-header h3 i {
    color: #4F46E5;
    font-size: 18px;
}

.admission-badge {
    background: #EEF2FF;
    color: #4F46E5;
    font-size: 12px;
    font-weight: 600;
    padding: 6px 14px;
    border-radius: 20px;
}


.admission-body {
    padding: 28px 32px;
}


.form-section {
    padding-bottom: 22px;
    margin-bottom: 22px;
    border-bottom: 1px solid #F3F4F6;
}

.form-section:last-of-type {
    border-bottom: none;
    padding-bottom: 0;
    margin-bottom: 0;
}


.section-heading {
    margin: 0 0 16px 0;
    font-size: 14px;
    font-weight: 700;
    color: #1F2937;
    display: flex;
    align-items: center;
    gap: 8px;
}

.section-heading i {
    color: #4F46E5;
    font-size: 15px;
}

.optional-text {
    color: #9CA3AF;
    font-weight: 500;
    font-size: 12px;
    margin-left: 4px;
}


.form-section-photo {
    padding-bottom: 22px;
    margin-bottom: 22px;
    border-bottom: 1px solid #F3F4F6;
}

.photo-upload-wrapper {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

.photo-preview {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: #DBEAFE;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 40px;
    color: #4F46E5;
    border: 3px solid #4F46E5;
    overflow: hidden;
    flex-shrink: 0;
}

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

.photo-upload-controls {
    flex: 1;
    min-width: 200px;
}

.photo-upload-controls input[type="file"] {
    padding: 8px;
    border: 1.5px solid #E5E7EB;
    border-radius: 8px;
    background: #F9FAFB;
    width: 100%;
    font-size: 13px;
    cursor: pointer;
}


.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
}

.form-row.full  { grid-template-columns: 1fr; }
.form-row.three { grid-template-columns: 1fr 1fr 1fr; }

.mt-8  { margin-top: 8px; }
.mt-14 { margin-top: 14px; }


.field-label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: #374151;
    margin-bottom: 6px;
}

.field-label .req {
    color: #EF4444;
    margin-left: 2px;
}


.field-hint {
    display: block;
    font-size: 11px;
    color: #9CA3AF;
    margin-top: 5px;
}


.field-input,
.field-select,
.field-textarea {
    width: 100%;
    padding: 11px 14px;
    font-size: 14px;
    color: #1F2937;
    border: 1.5px solid #E5E7EB;
    border-radius: 8px;
    background: #FFFFFF;
    transition: all 0.2s;
    font-family: inherit;
}

.field-input:focus,
.field-select:focus,
.field-textarea:focus {
    outline: none;
    border-color: #4F46E5;
    box-shadow: 0 0 0 4px rgba(79, 70, 229, 0.1);
}

.field-input::placeholder,
.field-textarea::placeholder {
    color: #9CA3AF;
}

.field-textarea {
    resize: vertical;
    min-height: 70px;
}

.field-select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23475569' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    padding-right: 38px;
    cursor: pointer;
}


.sibling-entry {
    background: #F9FAFB;
    border: 1px dashed #D1D5DB;
    border-radius: 10px;
    padding: 16px;
    margin-bottom: 12px;
    position: relative;
}

.sibling-entry .remove-btn {
    position: absolute;
    top: 8px;
    right: 8px;
    background: #FEE2E2;
    color: #DC2626;
    border: none;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    cursor: pointer;
    display: none;
    font-size: 12px;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.sibling-entry .remove-btn:hover {
    background: #DC2626;
    color: white;
}

.sibling-entry:hover .remove-btn {
    display: flex;
}


.form-actions-clean {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    padding-top: 20px;
    margin-top: 22px;
    border-top: 1px solid #F3F4F6;
}


@media (max-width: 768px) {
    .form-row,
    .form-row.three {
        grid-template-columns: 1fr;
    }

    .admission-body {
        padding: 20px 18px;
    }

    .admission-header {
        padding: 16px 18px;
    }

    .admission-header h3 {
        font-size: 16px;
    }
}




.family-box {
    background: linear-gradient(135deg, #ECFDF5, #D1FAE5);
    border: 2px solid #10B981;
    border-left: 5px solid #10B981;
    border-radius: 12px;
    padding: 16px 20px;
    margin-top: 16px;
    animation: slideDown 0.3s ease-out;
}

@keyframes slideDown {
    from { opacity: 0; transform: translateY(-10px); }
    to   { opacity: 1; transform: translateY(0); }
}

.family-box-header {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #065F46;
    font-size: 15px;
    font-weight: 700;
    margin-bottom: 8px;
}

.family-box-header i {
    font-size: 18px;
}

.family-box-text {
    margin: 0 0 12px 0;
    font-size: 13px;
    color: #047857;
    line-height: 1.5;
}

.family-children-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 12px;
}

.family-child-row {
    background: #FFFFFF;
    padding: 10px 14px;
    border-radius: 8px;
    font-size: 13px;
    border-left: 3px solid #10B981;
    color: #1F2937;
}

.family-child-meta {
    font-size: 12px;
    color: #6B7280;
    font-weight: 500;
}

.family-box-info {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    background: rgba(255, 255, 255, 0.6);
    border-radius: 8px;
    font-size: 12px;
    color: #065F46;
    font-weight: 600;
}

.family-box-info i {
    color: #10B981;
    font-size: 14px;
}













.dash-wrap { display: block; }




.dash-hero {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 10px;
    margin-bottom: 24px;
}
.dash-hero-btn {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    padding: 14px;
    background: #ffffff;
    border: 1.5px solid #E5E7EB;
    border-radius: 14px;
    text-decoration: none;
    color: #1F2937;
    transition: all 0.2s;
}
.dash-hero-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 24px rgba(0,0,0,0.08);
    background: #F9FAFB;
    border-color: #C7D2FE;
}
.dash-hero-icon {
    width: 40px;
    height: 40px;
    border-radius: 11px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 17px;
    background: #F3F4F6;
    color: #6B7280;
    flex-shrink: 0;
}
.dash-hero-icon.indigo { background: #EEF2FF; color: #4F46E5; }
.dash-hero-icon.green  { background: #ECFDF5; color: #10B981; }
.dash-hero-icon.orange { background: #FFF7ED; color: #F59E0B; }
.dash-hero-icon.purple { background: #F5F3FF; color: #8B5CF6; }
.dash-hero-icon.red    { background: #FEF2F2; color: #EF4444; }
.dash-hero-icon.blue   { background: #EFF6FF; color: #3B82F6; }
.dash-hero-title {
    font-size: 13px;
    font-weight: 800;
    color: #1F2937;
    line-height: 1.2;
}
.dash-hero-sub {
    font-size: 10.5px;
    color: #9CA3AF;
    font-weight: 500;
    margin-top: 2px;
}




.dash-section-head {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 24px 0 14px;
}
.dash-section-head i { font-size: 18px; }
.dash-section-head h2 {
    font-size: 15px;
    font-weight: 800;
    color: #1F2937;
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.dash-section-head span {
    font-size: 11.5px;
    color: #9CA3AF;
    font-weight: 500;
}




.dash-today-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
    margin-bottom: 24px;
}
.dash-card {
    background: #ffffff;
    border: 1.5px solid #E5E7EB;
    border-radius: 14px;
    padding: 18px;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: all 0.2s;
}
.dash-card::before {
    content: "";
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 3px;
    background: #E5E7EB;
}
.dash-card.accent-green::before  { background: #10B981; }
.dash-card.accent-blue::before   { background: #3B82F6; }
.dash-card.accent-red::before    { background: #EF4444; }
.dash-card.accent-orange::before { background: #F59E0B; }
.dash-card.accent-purple::before { background: #8B5CF6; }
.dash-card.accent-teal::before   { background: #14B8A6; }
.dash-card.accent-yellow::before { background: #EAB308; }
.dash-card.accent-pink::before   { background: #EC4899; }
.dash-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 24px rgba(0,0,0,0.07);
    border-color: transparent;
}

.dash-card.accent-green:hover  { background: #F0FDF4; }
.dash-card.accent-blue:hover   { background: #EFF6FF; }
.dash-card.accent-red:hover    { background: #FEF2F2; }
.dash-card.accent-orange:hover { background: #FFFBEB; }
.dash-card.accent-purple:hover { background: #F5F3FF; }
.dash-card.accent-teal:hover   { background: #F0FDFA; }
.dash-card.accent-yellow:hover { background: #FEFCE8; }
.dash-card.accent-pink:hover   { background: #FDF2F8; }

.dash-card-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 14px;
}
.dash-card-icon {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 17px;
    flex-shrink: 0;
}
.dash-card-icon.green  { background: #ECFDF5; color: #10B981; }
.dash-card-icon.blue   { background: #EFF6FF; color: #3B82F6; }
.dash-card-icon.red    { background: #FEF2F2; color: #EF4444; }
.dash-card-icon.orange { background: #FFF7ED; color: #F59E0B; }
.dash-card-icon.purple { background: #F5F3FF; color: #8B5CF6; }
.dash-card-icon.teal   { background: #F0FDFA; color: #14B8A6; }
.dash-card-icon.yellow { background: #FEFCE8; color: #EAB308; }
.dash-card-icon.pink   { background: #FDF2F8; color: #EC4899; }

.dash-card-badge {
    font-size: 9.5px;
    font-weight: 800;
    padding: 3px 9px;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.dash-card-badge.green  { background: #ECFDF5; color: #10B981; }
.dash-card-badge.orange { background: #FEF3C7; color: #F59E0B; }

.dash-card-value {
    font-size: 30px;
    font-weight: 800;
    color: #1F2937;
    line-height: 1;
    letter-spacing: -1px;
    margin-bottom: 6px;
}
.dash-card-value small {
    font-size: 13px;
    color: #9CA3AF;
    font-weight: 600;
    letter-spacing: 0;
}
.dash-card-label {
    font-size: 12px;
    color: #4B5563;
    font-weight: 600;
    line-height: 1.3;
    margin-bottom: 12px;
}
.dash-card-bar {
    height: 5px;
    background: #F3F4F6;
    border-radius: 20px;
    overflow: hidden;
    margin-bottom: 8px;
}
.dash-card-bar-fill {
    height: 100%;
    border-radius: 20px;
    background: #10B981;
}
.dash-card-meta {
    font-size: 11px;
    color: #9CA3AF;
    font-weight: 500;
    display: flex;
    gap: 6px;
    align-items: center;
    flex-wrap: wrap;
    margin-top: auto;
}
.dash-card-meta strong { color: #1F2937; font-weight: 700; }
.dash-card-link {
    font-size: 11px;
    font-weight: 700;
    color: #4F46E5;
    text-decoration: none;
}
.dash-card-link:hover { text-decoration: underline; }




.dash-lists {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 24px;
}
.dash-panel {
    background: #ffffff;
    border: 1.5px solid #E5E7EB;
    border-radius: 14px;
    overflow: hidden;
}
.dash-panel-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    border-bottom: 1px solid #F3F4F6;
    background: #FAFBFC;
}
.dash-panel-title {
    display: flex;
    align-items: center;
    gap: 12px;
}
.dash-panel-icon {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    flex-shrink: 0;
}
.dash-panel-icon.red    { background: #FEF2F2; color: #EF4444; }
.dash-panel-icon.orange { background: #FFF7ED; color: #F59E0B; }
.dash-panel-title h3 {
    font-size: 14px;
    font-weight: 800;
    color: #1F2937;
    margin: 0;
}
.dash-panel-title span {
    font-size: 11px;
    color: #9CA3AF;
    font-weight: 500;
}
.dash-panel-count {
    font-size: 11.5px;
    font-weight: 800;
    padding: 4px 12px;
    border-radius: 20px;
}
.dash-panel-count.red    { background: #FEF2F2; color: #EF4444; }
.dash-panel-count.orange { background: #FFF7ED; color: #F59E0B; }
.dash-panel-body { padding: 8px; }

.dash-row {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    border-radius: 9px;
    transition: background 0.15s;
}
.dash-row:hover { background: #F9FAFB; }

.dash-avatar {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 14px;
    flex-shrink: 0;
}
.dash-avatar.red    { background: #FEF2F2; color: #EF4444; border: 2px solid #FECACA; }
.dash-avatar.orange { background: #FFF7ED; color: #F59E0B; border: 2px solid #FED7AA; }

.dash-row-info { flex: 1; min-width: 0; }
.dash-row-name {
    font-size: 13px;
    font-weight: 700;
    color: #1F2937;
    line-height: 1.2;
}
.dash-row-sub {
    font-size: 11px;
    color: #9CA3AF;
    font-weight: 500;
    margin-top: 2px;
}
.dash-row-amount { text-align: right; margin-right: 8px; }
.dash-row-amount .amt {
    font-size: 12.5px;
    font-weight: 800;
    color: #EF4444;
}
.dash-row-amount .due {
    font-size: 10.5px;
    color: #9CA3AF;
    margin-top: 2px;
}

.dash-call-btn {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: #ECFDF5;
    color: #10B981;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    font-size: 12px;
    flex-shrink: 0;
    transition: all 0.15s;
}
.dash-call-btn:hover {
    background: #10B981;
    color: white;
    transform: scale(1.05);
}

.dash-empty {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 30px 20px;
}
.dash-empty i { font-size: 32px; color: #10B981; }
.dash-empty strong {
    display: block;
    font-size: 13px;
    color: #10B981;
    font-weight: 800;
}
.dash-empty span {
    display: block;
    font-size: 11.5px;
    color: #9CA3AF;
    margin-top: 2px;
}

.dash-panel-footer {
    display: block;
    text-align: center;
    padding: 12px;
    background: #F9FAFB;
    color: #4F46E5;
    font-size: 12px;
    font-weight: 700;
    text-decoration: none;
    border-top: 1px solid #F3F4F6;
    transition: background 0.15s;
}
.dash-panel-footer:hover { background: #EEF2FF; }




.dash-month-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-bottom: 24px;
}
.dash-month-card {
    background: #ffffff;
    border: 1.5px solid #E5E7EB;
    border-radius: 14px;
    padding: 18px;
    display: flex;
    gap: 16px;
    align-items: flex-start;
    position: relative;
    overflow: hidden;
    transition: all 0.2s;
}
.dash-month-card::before {
    content: "";
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 3px;
}
.dash-month-card.accent-green::before  { background: #10B981; }
.dash-month-card.accent-orange::before { background: #F59E0B; }
.dash-month-card.accent-blue::before   { background: #3B82F6; }
.dash-month-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 24px rgba(0,0,0,0.07);
    border-color: transparent;
}
.dash-month-card.accent-green:hover  { background: #F0FDF4; }
.dash-month-card.accent-orange:hover { background: #FFFBEB; }
.dash-month-card.accent-blue:hover   { background: #EFF6FF; }

.dash-month-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    flex-shrink: 0;
}
.dash-month-icon.green  { background: #ECFDF5; color: #10B981; }
.dash-month-icon.orange { background: #FFF7ED; color: #F59E0B; }
.dash-month-icon.blue   { background: #EFF6FF; color: #3B82F6; }
.dash-month-body { flex: 1; min-width: 0; }
.dash-month-label {
    font-size: 11.5px;
    color: #6B7280;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 6px;
}
.dash-month-value {
    font-size: 22px;
    font-weight: 800;
    color: #1F2937;
    margin-bottom: 8px;
}
.dash-month-link {
    font-size: 11.5px;
    font-weight: 700;
    color: #4F46E5;
    text-decoration: none;
}
.dash-month-link:hover { text-decoration: underline; }




.dash-alerts {
    background: #FFFBEB;
    border: 1.5px solid #FDE68A;
    border-radius: 14px;
    padding: 14px 18px;
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}
.dash-alerts-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12.5px;
    font-weight: 800;
    color: #92400E;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    flex-shrink: 0;
}
.dash-alerts-chips {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    flex: 1;
}
.dash-chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    border-radius: 10px;
    text-decoration: none;
    font-size: 12px;
    font-weight: 700;
    background: #ffffff;
    transition: all 0.15s;
}
.dash-chip.red    { color: #991B1B; background: #FEF2F2; border: 1.5px solid #FECACA; }
.dash-chip.orange { color: #92400E; background: #FFF7ED; border: 1.5px solid #FED7AA; }
.dash-chip.blue   { color: #1E40AF; background: #EFF6FF; border: 1.5px solid #BFDBFE; }
.dash-chip:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 14px rgba(0,0,0,0.06);
}




.dash-trend {
    background: #ffffff;
    border: 1.5px solid #E5E7EB;
    border-radius: 14px;
    padding: 20px 22px;
    margin-bottom: 24px;
}
.dash-trend-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    flex-wrap: wrap;
    gap: 10px;
}
.dash-trend-title {
    display: flex;
    align-items: center;
    gap: 12px;
}
.dash-trend-icon {
    width: 42px;
    height: 42px;
    border-radius: 11px;
    background: #EEF2FF;
    color: #4F46E5;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 17px;
}
.dash-trend-title h3 {
    font-size: 14px;
    font-weight: 800;
    color: #1F2937;
    margin: 0;
}
.dash-trend-title span {
    font-size: 11.5px;
    color: #9CA3AF;
}
.dash-trend-link {
    font-size: 12px;
    font-weight: 700;
    color: #4F46E5;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}
.dash-trend-link:hover { text-decoration: underline; }

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




.dash-class-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
    gap: 10px;
}
.dash-class-item {
    padding: 14px 16px;
    background: #F9FAFB;
    border-radius: 10px;
    border-left: 3px solid #4F46E5;
    transition: all 0.2s;
}
.dash-class-item:hover {
    background: #EEF2FF;
    transform: translateX(3px);
    box-shadow: 0 4px 12px rgba(79,70,229,0.10);
}
.dash-class-name {
    font-size: 11px;
    color: #6B7280;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.4px;
}
.dash-class-count {
    font-size: 24px;
    font-weight: 800;
    color: #1F2937;
    margin-top: 4px;
    line-height: 1;
}
.dash-class-sub {
    font-size: 10.5px;
    color: #9CA3AF;
    margin-top: 4px;
    font-weight: 500;
}




.age-breakdown-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 12px;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #F3F4F6;
}
.age-breakdown-card {
    padding: 14px 16px;
    background: #F9FAFB;
    border-radius: 10px;
    border-left: 3px solid #4F46E5;
    transition: all 0.2s;
}
.age-breakdown-card:hover {
    background: #EEF2FF;
    transform: translateX(3px);
}
.age-breakdown-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}
.age-breakdown-label {
    font-size: 13px;
    font-weight: 800;
    color: #1F2937;
}
.age-breakdown-total {
    font-size: 11px;
    color: #6B7280;
    font-weight: 700;
    background: #FFFFFF;
    padding: 3px 10px;
    border-radius: 20px;
    border: 1px solid #E5E7EB;
}
.age-breakdown-bar {
    display: flex;
    height: 8px;
    border-radius: 20px;
    overflow: hidden;
    background: #F3F4F6;
    margin-bottom: 10px;
}
.age-bar-male {
    background: #14B8A6;
    height: 100%;
    transition: width 0.4s;
}
.age-bar-female {
    background: #EC4899;
    height: 100%;
    transition: width 0.4s;
}
.age-breakdown-legend {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    font-size: 11px;
    font-weight: 600;
}
.age-leg {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}
.age-leg.male { color: #14B8A6; }
.age-leg.female { color: #EC4899; }
.age-leg.other { color: #6B7280; }




@media (max-width: 1200px) {
    .dash-hero { grid-template-columns: repeat(4, 1fr); }
}
@media (max-width: 1000px) {
    .dash-hero { grid-template-columns: repeat(3, 1fr); }
    .dash-today-grid { grid-template-columns: repeat(2, 1fr); }
    .dash-lists { grid-template-columns: 1fr; }
    .dash-month-grid { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
    .dash-hero { grid-template-columns: repeat(2, 1fr); }
    .dash-today-grid { grid-template-columns: 1fr; }
    .dash-card-value { font-size: 24px; }
    .dash-alerts { padding: 12px 14px; }
    .dash-alerts-chips { width: 100%; }
    .dash-chip { font-size: 11px; padding: 7px 12px; }
}




html { width:100%; min-width:0; }
body { width:100%; min-width:0; overflow-x:hidden; }
.app-container, .main-content, .page-content { min-width:0; max-width:100%; }
.page-content > *, .list-card, .card, .stats-grid, .form-grid { min-width:0; }
img, video, canvas, iframe { max-width:100%; }
.table-responsive { max-width:100%; overflow-x:auto; overflow-y:visible; }
.table-responsive table { width:100%; }
input, select, textarea { max-width:100%; }
.fee-tools-card { overflow:visible !important; }
.fee-tools-dropdown[open] { z-index:9999; }
.fee-tools-menu a:hover { background:#EEF2FF; color:#4338CA !important; }
@media (max-width: 1200px) {
  .page-content { padding-left:clamp(12px,2vw,24px); padding-right:clamp(12px,2vw,24px); }
  .stats-grid { grid-template-columns:repeat(auto-fit,minmax(min(100%,190px),1fr)); }
}
@media (max-width: 900px) {
  .fee-tools-card > div { min-width:0; }
  .fee-tools-card [style*="display:flex"] { flex-wrap:wrap; }
  .fee-tools-dropdown { margin-left:0 !important; }
  .fee-tools-menu { right:0; max-width:min(90vw,280px); }
}
@media (max-width: 600px) {
  .page-content { padding:12px 10px 24px; }
  .stats-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .list-header { gap:10px; align-items:flex-start; }
  .list-header > * { min-width:0; }
  .btn { max-width:100%; white-space:normal; }
  .fee-tools-card > div { padding:8px !important; }
  .fee-tools-card a { max-width:100%; }
}


/* Modern Professional Navigation Refresh — navigation only */
:root {
    --nav-blue: #3B82F6;
    --nav-blue-hover: #2563EB;
    --nav-blue-soft: rgba(59, 130, 246, 0.14);
    --nav-border: rgba(148, 163, 184, 0.16);
}

.sidebar {
    background: #161B22;
    border-right: 1px solid #263244;
    box-shadow: 4px 0 24px rgba(15, 23, 42, 0.08);
    scrollbar-width: thin;
    scrollbar-color: #334155 #161B22;
}

.sidebar::-webkit-scrollbar { width: 6px; }
.sidebar::-webkit-scrollbar-track { background: #161B22; }
.sidebar::-webkit-scrollbar-thumb { background: #334155; border-radius: 10px; }
.sidebar::-webkit-scrollbar-thumb:hover { background: #475569; }

.sidebar-header {
    background: #1A2029;
    border-bottom-color: #2B3544 !important;
}

.menu-label {
    color: #94A3B8;
    letter-spacing: 1.15px;
}
.menu-label::after {
    background: linear-gradient(90deg, #334155, transparent);
}
.menu-label i { color: #60A5FA; opacity: .9; }

.menu-item {
    color: #B6C2D1;
    border-left: 3px solid transparent;
    border-radius: 8px;
    padding: 10px 13px;
    margin: 3px 9px;
    gap: 11px;
    transition: background-color .18s ease, color .18s ease, border-color .18s ease, transform .18s ease;
}
.menu-item i {
    color: #8B9AAF;
    font-size: 14px;
    width: 18px;
}
.menu-item:hover {
    color: #F8FAFC;
    background: rgba(148, 163, 184, .10);
}
.menu-item:hover i { color: #93C5FD; }
.menu-item.active {
    color: #FFFFFF;
    background: linear-gradient(90deg, rgba(59, 130, 246, .22), rgba(59, 130, 246, .08));
    border-left-color: #60A5FA;
    box-shadow: inset 0 0 0 1px rgba(96, 165, 250, .08);
}
.menu-item.active i { color: #93C5FD; }
.menu-item:focus-visible,
.mobile-menu-toggle:focus-visible,
.sidebar-close:focus-visible {
    outline: 2px solid #93C5FD;
    outline-offset: 2px;
}

.sidebar-footer { border-top-color: #2B3544; }
.menu-item.logout { border-top-color: #2B3544; }
.menu-item.logout:hover { background: rgba(248, 113, 113, .10); }

.command-bar {
    background: #1A2029;
    border-bottom: 1px solid #2B3544;
    box-shadow: 0 4px 14px rgba(15, 23, 42, .08);
}
.command-bar h1 { color: #F1F5F9; }
.command-bar h1 i { color: #60A5FA; }
.command-bar p { color: #A0AEC0; }
.command-right { color: #D8E1EC; }
.command-right strong { color: #FFFFFF; }

.mobile-menu-toggle {
    background: #2563EB;
    box-shadow: 0 5px 16px rgba(37, 99, 235, .30);
}
.mobile-menu-toggle:hover { background: #1D4ED8; }
.sidebar-overlay { background: rgba(2, 6, 23, .62); }

@media (prefers-reduced-motion: reduce) {
    .menu-item, .mobile-menu-toggle, .sidebar { transition: none !important; }
}


/* ================================================================
   PCA Modern Navigation UI
   Scope: sidebar and top header only. Main content colors are preserved.
   ================================================================ */
:root {
    --pca-nav-bg: #10233F;
    --pca-nav-bg-deep: #0B1A30;
    --pca-nav-panel: #142B4B;
    --pca-nav-border: rgba(191, 211, 238, .14);
    --pca-nav-text: #D7E3F3;
    --pca-nav-muted: #91A8C6;
    --pca-nav-blue: #4C9AFF;
    --pca-nav-blue-soft: rgba(76, 154, 255, .15);
    --pca-nav-shadow: 0 14px 36px rgba(7, 20, 40, .18);
}

.sidebar {
    background: linear-gradient(180deg, var(--pca-nav-bg) 0%, var(--pca-nav-bg-deep) 100%) !important;
    color: var(--pca-nav-text) !important;
    border-right: 1px solid var(--pca-nav-border) !important;
    box-shadow: var(--pca-nav-shadow) !important;
    scrollbar-width: thin;
    scrollbar-color: #365170 var(--pca-nav-bg-deep);
}
.sidebar::-webkit-scrollbar { width: 6px; }
.sidebar::-webkit-scrollbar-track { background: var(--pca-nav-bg-deep); }
.sidebar::-webkit-scrollbar-thumb { background: #365170; border-radius: 20px; }
.sidebar::-webkit-scrollbar-thumb:hover { background: #52749A; }

.sidebar-header {
    background: linear-gradient(145deg, #17365D, #102642) !important;
    border-bottom: 1px solid var(--pca-nav-border) !important;
    box-shadow: inset 0 -1px rgba(255,255,255,.025);
}
.sidebar-header h2 { color: #F4F8FF !important; }
.sidebar-header img { transition: transform .2s ease, box-shadow .2s ease; }
.sidebar-header img:hover { transform: scale(1.025); }

.sidebar-menu { padding: 13px 0 18px; }
.menu-label {
    color: var(--pca-nav-muted) !important;
    font-size: 10px !important;
    letter-spacing: 1.35px !important;
    font-weight: 800 !important;
    padding-top: 19px !important;
}
.menu-label::after {
    background: linear-gradient(90deg, rgba(145,168,198,.32), transparent) !important;
}
.menu-label i { color: #78B6FF !important; opacity: 1 !important; }

.sidebar .menu-item {
    position: relative;
    display: flex;
    align-items: center;
    min-height: 42px;
    margin: 3px 10px !important;
    padding: 10px 13px !important;
    gap: 12px !important;
    color: var(--pca-nav-text) !important;
    border: 1px solid transparent !important;
    border-left: 3px solid transparent !important;
    border-radius: 10px !important;
    background: transparent;
    font-size: 13px !important;
    font-weight: 550 !important;
    line-height: 1.35;
    transition: background .18s ease, color .18s ease, border-color .18s ease, transform .18s ease, box-shadow .18s ease;
}
.sidebar .menu-item i {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    flex: 0 0 22px;
    width: 22px !important;
    min-width: 22px;
    height: 22px;
    font-size: 15px !important;
    line-height: 1;
    color: #9DB5D4 !important;
    opacity: 1 !important;
    text-align: center;
    transition: color .18s ease, transform .18s ease;
}
.sidebar .menu-item:hover {
    color: #FFFFFF !important;
    background: rgba(164, 196, 235, .09) !important;
    border-color: rgba(164,196,235,.08) !important;
    transform: translateX(2px);
}
.sidebar .menu-item:hover i { color: #9BCBFF !important; transform: scale(1.06); }
.sidebar .menu-item.active {
    color: #FFFFFF !important;
    background: linear-gradient(100deg, rgba(59,130,246,.28), rgba(59,130,246,.10)) !important;
    border-color: rgba(96,165,250,.15) !important;
    border-left-color: #60A5FA !important;
    box-shadow: inset 0 1px rgba(255,255,255,.04), 0 5px 14px rgba(2,10,24,.12) !important;
    font-weight: 700 !important;
}
.sidebar .menu-item.active i { color: #8FC5FF !important; }
.sidebar .menu-item.logout {
    margin-top: 13px !important;
    padding-top: 12px !important;
    border-top: 1px solid var(--pca-nav-border) !important;
    color: #FFB6B6 !important;
}
.sidebar .menu-item.logout i { color: #FF9D9D !important; }
.sidebar .menu-item.logout:hover { background: rgba(239,68,68,.13) !important; }

.sidebar-footer {
    padding: 14px 12px 17px !important;
    border-top: 1px solid var(--pca-nav-border) !important;
    background: rgba(4,13,27,.18);
}
.sidebar .user-box {
    border: 1px solid rgba(255,255,255,.13);
    border-radius: 13px !important;
    background: linear-gradient(135deg, #1D4E89, #2563A6) !important;
    box-shadow: 0 8px 20px rgba(0,0,0,.16) !important;
    padding: 11px 12px !important;
}
.sidebar .user-box .avatar {
    border: 1px solid rgba(255,255,255,.26);
    box-shadow: 0 2px 8px rgba(0,0,0,.12);
}
.sidebar .user-box .name { color: #FFFFFF !important; }
.sidebar .user-box .role { color: #D5E8FF !important; }

.command-bar {
    background: linear-gradient(105deg, #12315A 0%, #17477B 55%, #1D5A91 100%) !important;
    color: #F5F9FF !important;
    border-bottom: 1px solid rgba(255,255,255,.10) !important;
    box-shadow: 0 5px 18px rgba(16,42,76,.13) !important;
    padding: 17px 28px !important;
}
.command-bar h1 {
    color: #FFFFFF !important;
    font-size: 19px !important;
    font-weight: 750 !important;
    letter-spacing: -.35px !important;
}
.command-bar h1 i {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border: 1px solid rgba(191,219,254,.24);
    border-radius: 10px;
    background: rgba(191,219,254,.12);
    color: #B9DCFF !important;
    font-size: 15px !important;
}
.command-bar p {
    color: #C2D7EF !important;
    font-size: 10px !important;
    letter-spacing: 1.25px !important;
}
.command-right { color: #EAF3FF !important; }
.command-right strong { color: #FFFFFF !important; }
.command-bar select {
    outline: none;
    transition: background .18s ease, border-color .18s ease;
}
.command-bar select:hover { border-color: rgba(255,255,255,.62) !important; }
.command-bar select:focus-visible { outline: 2px solid #BFDBFE; outline-offset: 2px; }

.mobile-menu-toggle {
    border: 1px solid rgba(255,255,255,.18) !important;
    background: linear-gradient(135deg, #1D4ED8, #2563A6) !important;
    color: #FFFFFF !important;
    box-shadow: 0 8px 20px rgba(29,78,216,.30) !important;
}
.mobile-menu-toggle:hover { filter: brightness(1.08); }
.sidebar-overlay { background: rgba(5, 15, 32, .68) !important; backdrop-filter: blur(2px); }

/* Restore real Font Awesome glyphs; do not replace icons with dots or emoji. */
i.fas, i.far, i.fab, i.fa {
    font-style: normal;
    line-height: 1;
    text-align: center;
    -webkit-font-smoothing: antialiased;
}
i[class*="fa-"]::before { font-family: "Font Awesome 6 Free", "Font Awesome 5 Free", sans-serif; }
i.fas::before, i.fa-solid::before { font-weight: 900; }
i.far::before, i.fa-regular::before { font-weight: 400; }
i.fab::before, i.fa-brands::before { font-family: "Font Awesome 6 Brands", "Font Awesome 5 Brands", sans-serif; font-weight: 400; }

@media (max-width: 768px) {
    .command-bar { padding: 15px 16px !important; }
    .command-bar h1 { font-size: 16px !important; }
    .sidebar .menu-item { min-height: 42px; }
}
@media (prefers-reduced-motion: reduce) {
    .sidebar .menu-item, .sidebar .menu-item i, .sidebar-header img { transition: none !important; }
}


/* Age-Wise Students: align with the dashboard's standard card spacing.
   Weekly Attendance Trend keeps its original, unchanged styling. */
.age-wise-panel {
    width: 100%;
    box-sizing: border-box;
    padding: 20px 22px;
    margin: 0 0 24px;
}
.age-wise-panel .dash-trend-head {
    margin-bottom: 16px;
    gap: 10px;
}
.age-wise-panel .dash-trend-title h3 {
    font-size: 14px;
    line-height: 1.4;
}
.age-wise-panel .dash-trend-title span {
    display: inline-block;
    margin-top: 0;
    font-size: 11.5px;
    line-height: 1.5;
}
.age-wise-panel .dash-chart-container {
    width: 100%;
    height: 200px;
    min-height: 0;
    position: relative;
}
.age-wise-panel .dash-chart-container canvas {
    display: block;
    width: 100% !important;
    max-width: 100%;
}
.age-wise-panel .age-breakdown-grid {
    margin-top: 20px;
    padding-top: 20px;
}
@media (max-width: 640px) {
    .age-wise-panel { padding: 16px; }
    .age-wise-panel .dash-chart-container {
        height: 200px;
        min-height: 0;
    }
}


/* Approved dashboard analytics layout: Age-Wise Students beside the existing weekly chart. */
.dashboard-analytics-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 20px;
    align-items: stretch;
    margin-bottom: 24px;
}
.dashboard-analytics-grid > .dash-trend { min-width: 0; margin-bottom: 0; }
.age-wise-panel { padding: 20px 18px; display: flex; flex-direction: column; }
.age-wise-panel .dash-trend-head { align-items: flex-start; margin-bottom: 12px; }
.age-wise-panel .dash-trend-title h3 { font-size: 18px; line-height: 1.35; color: #15315B; }
.age-wise-panel .dash-trend-title span { display: block; margin-top: 5px; color: #6681A7; font-size: 12px; line-height: 1.4; }
.age-chart-type { flex: 0 0 auto; display: inline-flex; align-items: center; gap: 8px; padding: 10px 12px; border: 1px solid #D8E5F5; border-radius: 8px; color: #2477F3; font-size: 12px; font-weight: 700; white-space: nowrap; }
.age-chart-container { height: 270px; min-height: 270px; width: 100%; }
.age-chart-container canvas { display: block; width: 100% !important; height: 100% !important; }
.age-wise-panel .age-breakdown-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-top: 12px; padding: 12px; border: 0; border-radius: 9px; background: #F3F8FE; }
.age-wise-panel .age-breakdown-card { min-width: 0; padding: 8px 7px; border: 0; border-radius: 7px; background: transparent; }
.age-wise-panel .age-breakdown-card:hover { transform: none; background: #E8F2FF; }
.age-wise-panel .age-breakdown-head { margin-bottom: 5px; }
.age-wise-panel .age-breakdown-label { display: inline-flex; align-items: center; gap: 7px; font-size: 12px; font-weight: 700; color: #19365E; }
.age-color-dot { width: 10px; height: 10px; border-radius: 50%; display: inline-block; flex: 0 0 10px; }
.age-wise-panel .age-breakdown-total { color: #19365E; font-size: 12px; font-weight: 700; }
.age-breakdown-share { margin-top: 4px; color: #6681A7; font-size: 10px; line-height: 1.4; }
.age-report-link { display: flex; align-items: center; gap: 10px; margin-top: 12px; padding: 12px 14px; border-radius: 8px; background: #EAF3FF; color: #1769E8; font-size: 12px; font-weight: 700; text-decoration: none; }
.age-report-link i:last-child { margin-left: auto; }
.age-report-link:hover { background: #DCEBFF; }
@media (max-width: 900px) {
    .dashboard-analytics-grid { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 520px) {
    .age-wise-panel { padding: 16px 12px; }
    .age-wise-panel .age-breakdown-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); padding: 8px; }
    .age-chart-container { height: 245px; min-height: 245px; }
    .age-chart-type { padding: 8px; }
}


/* Age-Wise Students: compact metric tiles; scoped to this card only. */
.age-wise-panel .age-breakdown-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    margin-top: 14px;
    padding: 0;
    background: transparent;
    border: 0;
}
.age-wise-panel .age-breakdown-card {
    min-width: 0;
    padding: 13px 12px 12px;
    border: 1px solid #E3ECF7;
    border-top: 3px solid var(--age-accent, #2477F3);
    border-radius: 10px;
    background: #FFFFFF;
    box-shadow: 0 2px 8px rgba(25, 54, 94, 0.045);
    transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}
.age-wise-panel .age-breakdown-card:hover {
    background: #FFFFFF;
    border-color: #D2E1F4;
    border-top-color: var(--age-accent, #2477F3);
    box-shadow: 0 5px 14px rgba(25, 54, 94, 0.09);
    transform: translateY(-1px);
}
.age-wise-panel .age-breakdown-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 6px;
    margin: 0 0 9px;
}
.age-wise-panel .age-breakdown-label {
    color: #19365E;
    font-size: 12px;
    font-weight: 750;
    line-height: 1.3;
}
.age-wise-panel .age-breakdown-percent {
    flex: 0 0 auto;
    padding: 3px 6px;
    border-radius: 5px;
    background: color-mix(in srgb, var(--age-accent, #2477F3) 12%, white);
    color: var(--age-accent, #2477F3);
    font-size: 10px;
    font-weight: 800;
    line-height: 1.2;
}
.age-wise-panel .age-breakdown-total {
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    color: #15315B;
    font-size: 22px;
    font-weight: 800;
    line-height: 1.15;
}
.age-wise-panel .age-breakdown-total span {
    color: #7184A0;
    font-size: 10px;
    font-weight: 600;
}
.age-wise-panel .age-breakdown-genders {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 5px 10px;
    margin-top: 8px;
    color: #526783;
    font-size: 10px;
    line-height: 1.35;
}
.age-wise-panel .age-breakdown-genders span {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    white-space: nowrap;
}
.age-wise-panel .age-breakdown-genders strong {
    color: #19365E;
    font-size: 11px;
    font-weight: 800;
}
.age-wise-panel .age-gender-male i { color: #2477F3; }
.age-wise-panel .age-gender-female i { color: #E84A8A; }
.age-wise-panel .age-breakdown-progress {
    width: 100%;
    height: 5px;
    margin-top: 11px;
    overflow: hidden;
    border-radius: 20px;
    background: #EDF2F8;
}
.age-wise-panel .age-breakdown-progress span {
    display: block;
    height: 100%;
    min-width: 0;
    border-radius: inherit;
    background: var(--age-accent, #2477F3);
    transition: width .3s ease;
}
.age-wise-panel .age-breakdown-caption {
    margin-top: 6px;
    color: #7A8CA6;
    font-size: 9px;
    line-height: 1.35;
}
@media (max-width: 520px) {
    .age-wise-panel .age-breakdown-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
    .age-wise-panel .age-breakdown-card { padding: 11px 10px; }
    .age-wise-panel .age-breakdown-total { font-size: 20px; }
}


/* Weekly Attendance Trend: align its card styling with Age-Wise Students only. */
.weekly-attendance-panel {
    box-sizing: border-box;
    min-width: 0;
    padding: 20px 18px;
    display: flex;
    flex-direction: column;
    border-radius: 12px;
}
.weekly-attendance-panel .dash-trend-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 12px;
}
.weekly-attendance-panel .dash-trend-title h3 {
    color: #15315B;
    font-size: 18px;
    line-height: 1.35;
}
.weekly-attendance-panel .dash-trend-title span {
    display: block;
    margin-top: 5px;
    color: #6681A7;
    font-size: 12px;
    line-height: 1.4;
}
.weekly-chart-type {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 12px;
    border: 1px solid #D8E5F5;
    border-radius: 8px;
    background: #FFFFFF;
    color: #2477F3;
    font-size: 12px;
    font-weight: 700;
    white-space: nowrap;
}
.weekly-attendance-panel .weekly-chart-container {
    position: relative;
    width: 100%;
    height: 270px;
    min-height: 270px;
    margin: 0;
}
.weekly-attendance-panel .weekly-chart-container canvas {
    display: block;
    width: 100% !important;
    height: 100% !important;
    max-width: 100%;
}
.weekly-report-link {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 14px;
    padding: 12px 14px;
    border: 0;
    border-radius: 8px;
    background: #EAF3FF;
    color: #1769E8;
    font-size: 12px;
    font-weight: 700;
    text-decoration: none;
    transition: background .18s ease;
}
.weekly-report-link i:last-child { margin-left: auto; }
.weekly-report-link:hover { background: #DCEBFF; }
@media (max-width: 520px) {
    .weekly-attendance-panel { padding: 16px 12px; }
    .weekly-attendance-panel .dash-trend-head { gap: 8px; }
    .weekly-chart-type { padding: 8px; font-size: 11px; }
    .weekly-attendance-panel .weekly-chart-container { height: 245px; min-height: 245px; }
}

/* Attendance Overview: monthly, weekly and daily summaries inside one card. */
.weekly-attendance-panel .attendance-period-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    margin: 4px 0 14px;
}
.weekly-attendance-panel .attendance-period-card {
    min-width: 0;
    padding: 12px 11px 10px;
    border: 1px solid #DCE8F8;
    border-radius: 10px;
    background: linear-gradient(145deg, #F8FBFF, #EEF5FF);
}
.weekly-attendance-panel .attendance-period-green { background: linear-gradient(145deg, #F5FCF9, #EAF8F2); border-color: #D5F0E4; }
.weekly-attendance-panel .attendance-period-purple { background: linear-gradient(145deg, #FBF9FF, #F2EEFF); border-color: #E6DEFF; }
.weekly-attendance-panel .attendance-period-heading { display:flex; align-items:center; gap:7px; min-width:0; }
.weekly-attendance-panel .attendance-period-icon { display:inline-flex; align-items:center; justify-content:center; flex:0 0 30px; width:30px; height:30px; border-radius:50%; background:#2477F3; color:#fff; font-size:13px; }
.weekly-attendance-panel .attendance-period-green .attendance-period-icon { background:#10B981; }
.weekly-attendance-panel .attendance-period-purple .attendance-period-icon { background:#8750F5; }
.weekly-attendance-panel .attendance-period-name { min-width:0; color:#18365F; font-size:11px; font-weight:750; line-height:1.3; }
.weekly-attendance-panel .attendance-period-percent { margin-left:auto; color:#1769E8; font-size:11px; font-weight:800; white-space:nowrap; }
.weekly-attendance-panel .attendance-period-green .attendance-period-percent { color:#059669; }
.weekly-attendance-panel .attendance-period-purple .attendance-period-percent { color:#7042D8; }
.weekly-attendance-panel .attendance-period-count { margin-top:10px; color:#15315B; font-size:23px; font-weight:800; line-height:1.1; }
.weekly-attendance-panel .attendance-period-count span { color:#6B82A3; font-size:14px; font-weight:650; }
.weekly-attendance-panel .attendance-period-caption { margin-top:5px; color:#6C82A2; font-size:9px; line-height:1.35; }
.weekly-attendance-panel .attendance-period-progress { height:5px; margin-top:9px; overflow:hidden; border-radius:20px; background:#DCE6F2; }
.weekly-attendance-panel .attendance-period-progress span { display:block; height:100%; border-radius:inherit; background:#2477F3; }
.weekly-attendance-panel .attendance-period-green .attendance-period-progress span { background:#10B981; }
.weekly-attendance-panel .attendance-period-purple .attendance-period-progress span { background:#8750F5; }
.weekly-attendance-panel .attendance-gender-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:6px; margin-top:10px; padding-top:9px; border-top:1px solid rgba(116,143,180,.22); }
.weekly-attendance-panel .attendance-gender-item { display:flex; align-items:center; gap:6px; min-width:0; }
.weekly-attendance-panel .attendance-gender-symbol { display:inline-flex; align-items:center; justify-content:center; flex:0 0 25px; width:25px; height:25px; border-radius:50%; background:#DDEBFF; color:#2477F3; font-size:13px; }
.weekly-attendance-panel .attendance-gender-symbol.female { background:#FFE6F0; color:#E83E8C; }
.weekly-attendance-panel .attendance-gender-item div { display:flex; flex-direction:column; min-width:0; line-height:1.25; }
.weekly-attendance-panel .attendance-gender-item small { color:#6B82A3; font-size:9px; }
.weekly-attendance-panel .attendance-gender-item strong { margin-top:2px; color:#18365F; font-size:10px; white-space:nowrap; }
.weekly-attendance-panel .attendance-gender-item em { margin-top:2px; color:#6B82A3; font-size:9px; font-style:normal; }
@media (max-width: 900px) {
    .weekly-attendance-panel .attendance-period-grid { grid-template-columns:1fr; }
    .weekly-attendance-panel .attendance-period-card { padding:13px; }
    .weekly-attendance-panel .attendance-period-name { font-size:12px; }
    .weekly-attendance-panel .attendance-gender-item strong { font-size:11px; }
}
