/* ==========================================================================
   ADMIN & PORTAL MODULES STYLESHEET (Areas)
   Centralized module stylesheet linked to SchoolManager Design System tokens
   ========================================================================== */

/* --- Source: Areas\About\Views\Home\About.cshtml --- */
/* Hero */
        .about-hero {
            position: relative;
            background: var(--sm-hero-gradient);
            color: #fff;
            border-radius: .75rem;
        }

            .about-hero .overlay {
                position: absolute;
                inset: 0;
                background: radial-gradient(ellipse at top left, rgba(255,255,255,.12), transparent 55%);
            }

            .about-hero .hero-content {
                position: relative;
                z-index: 2;
            }

        /* Section titles */
        .section-title {
            display: flex;
            align-items: center;
            gap: .5rem;
            font-weight: 700;
            margin-bottom: .75rem;
        }

        .section-subtitle {
            color: var(--sm-text-muted);
            margin-bottom: 1rem;
        }

        /* Timeline */
        .timeline {
            position: relative;
            padding-left: 1.25rem;
            margin: 0;
        }

            .timeline::before {
                content: "";
                position: absolute;
                left: 8px;
                top: 0;
                bottom: 0;
                width: 2px;
                background: #e9ecef;
            }

        .timeline-item {
            position: relative;
            margin-bottom: 1rem;
            padding-left: 1.25rem;
        }

            .timeline-item::before {
                content: "";
                position: absolute;
                left: -2px;
                top: .2rem;
                width: 12px;
                height: 12px;
                background: var(--sm-primary);
                border-radius: 50%;
                box-shadow: 0 0 0 3px #e7f1ff;
            }

        /* Stat cards */
        .stat-card .display-6 {
            font-weight: 700;
        }

        .badge-soft {
            background: rgba(13,110,253,.12);
            color: #ffc107;
            border: 1px dashed rgba(13,110,253,.35);
        }

        /* Map */
        .map-embed {
            width: 100%;
            min-height: 320px;
            border: 0;
            border-radius: .5rem;
        }

/* --- Source: Areas\About\Views\Home\Contact.cshtml --- */
.contact-hero {
            background: linear-gradient(135deg, #071936 0%, var(--sm-primary) 100%);
            color: #fff;
            border-radius: 1.25rem;
        }
        .map-embed {
            width: 100%;
            min-height: 300px;
            border: 0;
            border-radius: 0.85rem;
        }
        .contact-info-row {
            display: flex;
            align-items: flex-start;
            gap: 0.85rem;
            padding: 0.85rem;
            border-radius: 0.85rem;
            background: #f8fafc;
            border: 1px solid #eef2f6;
            margin-bottom: 0.75rem;
        }
        .contact-info-icon {
            width: 40px;
            height: 40px;
            border-radius: 0.65rem;
            background: var(--sm-primary-light);
            color: var(--sm-primary);
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 1.2rem;
            flex-shrink: 0;
        }

/* --- Source: Areas\Accreditation\Views\HoSo\Copy.cshtml --- */
:root {
        --primary-color: var(--sm-primary);
        --secondary-color: var(--sm-text-muted);
        --light-bg: var(--sm-bg-body);
        --border-color: var(--sm-border-color);
    }

    .copy-wizard-container {
        max-width: 700px;
        margin: 2rem auto;
    }

    .wizard-card {
        border: none;
        border-radius: 12px;
        box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
        overflow: hidden;
    }

    .wizard-header {
        background: linear-gradient(45deg, var(--primary-color), #0056b3);
        color: white;
        padding: 1.5rem;
        text-align: center;
    }

        .wizard-header .icon {
            font-size: 2.5rem;
            margin-bottom: 0.5rem;
        }

        .wizard-header h2 {
            font-weight: 600;
            margin: 0;
        }

    .wizard-body {
        padding: 2rem;
    }

    .step {
        display: flex;
        align-items: flex-start;
        gap: 1.5rem;
        margin-bottom: 1.5rem;
    }

    .step-number {
        flex-shrink: 0;
        width: 40px;
        height: 40px;
        background-color: var(--light-bg);
        color: var(--primary-color);
        border: 2px solid var(--border-color);
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        font-weight: bold;
        font-size: 1.2rem;
    }

    .step-content {
        flex-grow: 1;
    }

    .form-label {
        font-weight: 500;
        color: #495057;
    }

    .form-control:read-only {
        background-color: #e9ecef;
        cursor: not-allowed;
    }

    .btn-primary {
        background-color: var(--primary-color);
        border-color: var(--primary-color);
        padding: 0.75rem 1.5rem;
        font-size: 1rem;
        font-weight: 500;
    }

/* --- Source: Areas\Admin\Views\Contact\Edit.cshtml --- */
.contact-preview-box {
            border: 1px solid var(--sm-border-color);
            border-radius: 1rem;
            background: #ffffff;
            box-shadow: 0 4px 16px rgba(15, 23, 42, 0.04);
            position: sticky;
            top: 20px;
        }
        .contact-info-item {
            display: flex;
            align-items: flex-start;
            gap: 0.85rem;
            padding: 0.85rem;
            border-radius: 0.85rem;
            background: #f8fafc;
            border: 1px solid #eef2f6;
            margin-bottom: 0.75rem;
        }
        .contact-info-icon {
            width: 38px;
            height: 38px;
            border-radius: 0.65rem;
            background: var(--sm-primary-light);
            color: var(--sm-primary);
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 1.15rem;
            flex-shrink: 0;
        }
        .preview-map-frame {
            width: 100%;
            height: 220px;
            border: 0;
            border-radius: 0.75rem;
        }

/* --- Source: Areas\Admin\Views\Contact\Messages.cshtml --- */
.contact-stat-card {
            border: 1px solid rgba(0,0,0,0.06);
            border-radius: 1rem;
            transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
            background: #fff;
            position: relative;
            overflow: hidden;
            text-decoration: none !important;
            display: block;
        }
        .contact-stat-card:hover {
            transform: translateY(-3px);
            box-shadow: 0 10px 20px rgba(0,0,0,0.06);
        }
        .contact-stat-card.active-stat {
            border-width: 2px;
            box-shadow: 0 4px 14px rgba(15, 82, 186, 0.15);
        }
        .contact-stat-icon {
            width: 48px;
            height: 48px;
            border-radius: 0.75rem;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 1.35rem;
        }
        .avatar-initial {
            width: 42px;
            height: 42px;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            font-weight: 700;
            font-size: 1rem;
            color: #fff;
            flex-shrink: 0;
            text-shadow: 0 1px 2px rgba(0,0,0,0.2);
        }
        .pulse-dot {
            width: 9px;
            height: 9px;
            border-radius: 50%;
            background-color: #ef4444;
            display: inline-block;
            box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.7);
            animation: pulse-ring 1.8s infinite;
        }
        @keyframes pulse-ring {
            0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.7); }
            70% { transform: scale(1); box-shadow: 0 0 0 8px rgba(239, 68, 68, 0); }
            100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(239, 68, 68, 0); }
        }
        .msg-row:hover {
            background-color: #f8fafc !important;
        }
        .msg-preview-text {
            display: -webkit-box;
            -webkit-line-clamp: 2;
            -webkit-box-orient: vertical;
            overflow: hidden;
            text-overflow: ellipsis;
            line-height: 1.45;
        }
        .table > :not(caption) > * > * {
            padding: 0.95rem 0.85rem;
        }

/* --- Source: Areas\Admin\Views\Home\Index.cshtml --- */
.exec-dashboard {
        max-width: 1400px;
        margin: 0 auto;
    }
    .exec-hero {
        background: var(--sm-hero-gradient);
        color: #ffffff;
        border-radius: 18px;
        padding: 1.5rem 1.75rem;
        box-shadow: 0 10px 25px rgba(15, 23, 42, 0.12);
    }
    .exec-hero-badge {
        display: inline-flex;
        align-items: center;
        gap: 0.45rem;
        background: rgba(255, 255, 255, 0.14);
        padding: 0.3rem 0.85rem;
        border-radius: 999px;
        font-size: 0.82rem;
        font-weight: 600;
        color: #e2e8f0;
    }
    .exec-quick-btn {
        display: inline-flex;
        align-items: center;
        gap: 0.45rem;
        padding: 0.5rem 1rem;
        border-radius: 10px;
        font-size: 0.86rem;
        font-weight: 600;
        text-decoration: none;
        transition: all 0.16s ease;
    }
    .exec-quick-btn.btn-glass {
        background: rgba(255, 255, 255, 0.12);
        color: #ffffff;
        border: 1px solid rgba(255, 255, 255, 0.2);
    }
    .exec-quick-btn.btn-glass:hover {
        background: rgba(255, 255, 255, 0.22);
        color: #ffffff;
    }

    .exec-kpi-card {
        background: #ffffff;
        border: 1px solid var(--sm-border-color);
        border-radius: 16px;
        padding: 1.25rem;
        height: 100%;
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        box-shadow: 0 2px 6px rgba(15, 23, 42, 0.03);
        transition: transform 0.16s ease, box-shadow 0.16s ease;
    }
    .exec-kpi-card:hover {
        transform: translateY(-2px);
        box-shadow: 0 8px 20px rgba(15, 23, 42, 0.07);
    }
    .exec-kpi-icon {
        width: 44px;
        height: 44px;
        border-radius: 12px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        font-size: 1.3rem;
        flex-shrink: 0;
    }
    .exec-kpi-value {
        font-size: 1.85rem;
        font-weight: 800;
        color: #0f172a;
        line-height: 1.15;
    }
    .exec-kpi-label {
        font-size: 0.85rem;
        font-weight: 700;
        color: #475569;
    }

    .section-card {
        background: #ffffff;
        border: 1px solid var(--sm-border-color);
        border-radius: 16px;
        padding: 1.35rem;
        box-shadow: 0 2px 6px rgba(15, 23, 42, 0.03);
    }
    .section-title {
        font-size: 1.05rem;
        font-weight: 700;
        color: #0f172a;
        margin-bottom: 0;
        display: flex;
        align-items: center;
        gap: 0.5rem;
    }

    .grade-pill-card {
        background: #f8fafc;
        border: 1px solid var(--sm-border-color);
        border-radius: 12px;
        padding: 0.85rem 1rem;
        height: 100%;
    }
    .dept-table th {
        font-size: 0.78rem;
        text-transform: uppercase;
        letter-spacing: 0.03em;
        color: var(--sm-text-muted);
        background: #f8fafc;
        border-bottom: 1px solid var(--sm-border-color);
        padding: 0.7rem 0.85rem;
    }
    .dept-table td {
        padding: 0.75rem 0.85rem;
        vertical-align: middle;
        border-bottom: 1px solid #f1f5f9;
        font-size: 0.9rem;
    }
    .dept-table tr.row-total td {
        background: #f8fafc;
        font-weight: 700;
        border-top: 2px solid #cbd5e1;
    }

    .feed-item {
        padding: 0.75rem 0.9rem;
        border-radius: 12px;
        border: 1px solid #f1f5f9;
        background: #f8fafc;
        transition: all 0.15s ease;
        text-decoration: none;
        display: block;
    }
    .feed-item:hover {
        background: var(--sm-primary-light);
        border-color: #bfdbfe;
    }

/* --- Source: Areas\Admin\Views\Menu\Edit.cshtml --- */
.menu-edit-wrap {
        max-width: 1120px;
        margin: 0 auto;
    }
    .type-selector-grid {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 0.75rem;
    }
    @media (max-width: 768px) {
        .type-selector-grid {
            grid-template-columns: 1fr;
        }
    }
    .type-card {
        border: 2px solid var(--sm-border-color);
        border-radius: 12px;
        padding: 0.85rem 1rem;
        cursor: pointer;
        background: #ffffff;
        display: flex;
        align-items: center;
        gap: 0.75rem;
        transition: all 0.16s ease;
        user-select: none;
    }
    .type-card:hover {
        border-color: #93c5fd;
        background: #f8fafc;
    }
    .type-card.active {
        border-color: var(--sm-primary);
        background: var(--sm-primary-light);
        box-shadow: 0 2px 10px rgba(37, 99, 235, 0.1);
    }
    .type-card-icon {
        width: 40px;
        height: 40px;
        border-radius: 10px;
        background: #f1f5f9;
        color: #475569;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        font-size: 1.2rem;
        flex-shrink: 0;
    }
    .type-card.active .type-card-icon {
        background: var(--sm-primary);
        color: #ffffff;
    }
    .type-card-title {
        font-weight: 700;
        color: #0f172a;
        font-size: 0.95rem;
        margin-bottom: 0.1rem;
    }
    .type-card-sub {
        font-size: 0.78rem;
        color: var(--sm-text-muted);
        line-height: 1.25;
    }

    .icon-picker-grid {
        display: grid;
        grid-template-columns: repeat(auto-fill, minmax(135px, 1fr));
        gap: 0.5rem;
        max-height: 240px;
        overflow-y: auto;
        padding: 0.5rem;
        border: 1px solid var(--sm-border-color);
        border-radius: 10px;
        background: #f8fafc;
    }
    .icon-tile {
        display: flex;
        align-items: center;
        gap: 0.5rem;
        padding: 0.45rem 0.6rem;
        border-radius: 8px;
        border: 1px solid var(--sm-border-color);
        background: #ffffff;
        cursor: pointer;
        font-size: 0.8rem;
        color: #334155;
        transition: all 0.14s ease;
    }
    .icon-tile i {
        font-size: 1rem;
        color: var(--sm-primary);
        width: 20px;
        text-align: center;
        flex-shrink: 0;
    }
    .icon-tile:hover {
        border-color: #93c5fd;
        background: var(--sm-primary-light);
    }
    .icon-tile.active {
        border-color: var(--sm-primary);
        background: var(--sm-primary-light);
        font-weight: 600;
        color: var(--sm-primary);
    }

    .role-check-grid {
        display: flex;
        flex-direction: column;
        gap: 0.45rem;
    }
    .role-chip-item {
        display: flex;
        align-items: center;
        gap: 0.6rem;
        padding: 0.55rem 0.8rem;
        border-radius: 10px;
        border: 1px solid var(--sm-border-color);
        background: #ffffff;
        cursor: pointer;
        transition: all 0.15s ease;
        margin: 0;
    }
    .role-chip-item:hover {
        background: #f8fafc;
        border-color: #cbd5e1;
    }
    .role-chip-item:has(input:checked) {
        background: var(--sm-primary-light);
        border-color: #60a5fa;
        color: var(--sm-primary-dark);
        font-weight: 600;
    }

    .sidebar-live-preview {
        background: linear-gradient(145deg, #1e293b, #0f172a);
        border-radius: 12px;
        padding: 1rem;
        color: #f8fafc;
    }
    .preview-heading-sample {
        font-size: 0.72rem;
        text-transform: uppercase;
        letter-spacing: 0.06em;
        color: #94a3b8;
        font-weight: 700;
        padding: 0.35rem 0.5rem;
    }
    .preview-item-sample {
        display: flex;
        align-items: center;
        gap: 0.65rem;
        padding: 0.6rem 0.85rem;
        border-radius: 8px;
        background: rgba(255, 255, 255, 0.1);
        font-weight: 600;
        font-size: 0.9rem;
    }

/* --- Source: Areas\Admin\Views\Menu\Index.cshtml --- */
.menu-admin-wrap {
        max-width: 1280px;
        margin: 0 auto;
    }
    .menu-tabs-bar {
        display: flex;
        gap: 0.75rem;
        flex-wrap: wrap;
        background: #f8fafc;
        padding: 0.5rem;
        border-radius: 14px;
        border: 1px solid var(--sm-border-color);
    }
    .menu-tab-btn {
        display: inline-flex;
        align-items: center;
        gap: 0.6rem;
        padding: 0.65rem 1.15rem;
        border-radius: 10px;
        font-weight: 600;
        font-size: 0.95rem;
        color: #475569;
        text-decoration: none;
        transition: all 0.18s ease;
        border: 1px solid transparent;
    }
    .menu-tab-btn:hover {
        background: #ffffff;
        color: #1e293b;
    }
    .menu-tab-btn.active {
        background: #ffffff;
        color: var(--sm-primary);
        border-color: #bfdbfe;
        box-shadow: 0 2px 8px rgba(37, 99, 235, 0.08);
    }
    .menu-tab-count {
        font-size: 0.78rem;
        padding: 0.15rem 0.55rem;
        border-radius: 999px;
        background: var(--sm-border-color);
        color: #334155;
        font-weight: 700;
    }
    .menu-tab-btn.active .menu-tab-count {
        background: var(--sm-primary-light);
        color: var(--sm-primary);
    }

    .group-card {
        background: #ffffff;
        border: 1px solid var(--sm-border-color);
        border-radius: 14px;
        box-shadow: 0 1px 3px rgba(15, 23, 42, 0.04);
        margin-bottom: 1rem;
        overflow: hidden;
        transition: box-shadow 0.2s ease, border-color 0.2s ease;
    }
    .group-card:hover {
        border-color: #cbd5e1;
        box-shadow: 0 4px 12px rgba(15, 23, 42, 0.06);
    }
    .group-card.item-inactive {
        opacity: 0.68;
        background: #f8fafc;
    }
    .group-header {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 0.75rem;
        padding: 0.85rem 1.15rem;
        background: linear-gradient(to right, #f8fafc, #ffffff);
        border-bottom: 1px solid #f1f5f9;
    }
    .group-title-btn {
        background: none;
        border: none;
        padding: 0;
        display: inline-flex;
        align-items: center;
        gap: 0.55rem;
        font-size: 1rem;
        font-weight: 700;
        color: #0f172a;
        cursor: pointer;
        text-align: left;
    }
    .group-title-btn .chevron-icon {
        transition: transform 0.2s ease;
        color: var(--sm-text-muted);
    }
    .group-card.collapsed-group .group-title-btn .chevron-icon {
        transform: rotate(-90deg);
    }
    .group-card.collapsed-group .group-body {
        display: none;
    }

    .menu-tree-list {
        list-style: none;
        margin: 0;
        padding: 0.5rem 1rem 0.85rem 1rem;
    }
    .menu-node {
        border: 1px solid var(--sm-border-color);
        border-radius: 10px;
        background: #ffffff;
        margin-top: 0.5rem;
        transition: all 0.15s ease;
    }
    .menu-node:hover {
        border-color: #cbd5e1;
    }
    .menu-node.item-inactive > .menu-node-row {
        opacity: 0.62;
        background: #f8fafc;
    }
    .menu-node-row {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 0.75rem;
        padding: 0.6rem 0.85rem;
        border-radius: 10px;
    }
    .menu-node-left {
        display: flex;
        align-items: center;
        gap: 0.65rem;
        min-width: 0;
        flex: 1;
    }
    .menu-icon-box {
        width: 34px;
        height: 34px;
        border-radius: 8px;
        background: var(--sm-primary-light);
        color: var(--sm-primary);
        display: inline-flex;
        align-items: center;
        justify-content: center;
        font-size: 0.95rem;
        flex-shrink: 0;
    }
    .menu-node-sub .menu-icon-box {
        width: 28px;
        height: 28px;
        background: #f1f5f9;
        color: #475569;
        font-size: 0.85rem;
    }
    .menu-title-text {
        font-weight: 600;
        color: #1e293b;
        font-size: 0.94rem;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }
    .menu-node-sub .menu-title-text {
        font-weight: 500;
        font-size: 0.9rem;
    }
    .menu-children-list {
        list-style: none;
        margin: 0 0.75rem 0.65rem 2.15rem;
        padding: 0.25rem 0 0 0.85rem;
        border-left: 2px dashed #cbd5e1;
    }
    .menu-node-sub {
        border: 1px solid #f1f5f9;
        background: #f8fafc;
        border-radius: 8px;
        margin-top: 0.4rem;
    }
    .menu-node-sub:hover {
        background: #ffffff;
        border-color: #cbd5e1;
    }

    .role-pill {
        display: inline-flex;
        align-items: center;
        padding: 0.18rem 0.55rem;
        border-radius: 6px;
        font-size: 0.75rem;
        font-weight: 600;
        background: #f1f5f9;
        color: #475569;
    }
    .role-pill.all-users {
        background: #ecfdf5;
        color: #059669;
    }
    .type-pill {
        display: inline-flex;
        align-items: center;
        gap: 0.25rem;
        padding: 0.15rem 0.5rem;
        border-radius: 6px;
        font-size: 0.73rem;
        font-weight: 600;
        background: #eef2ff;
        color: #4f46e5;
    }

    .drag-handle {
        cursor: grab;
        color: #94a3b8;
        padding: 0.2rem 0.35rem;
        border-radius: 6px;
    }
    .drag-handle:hover {
        color: #475569;
        background: #f1f5f9;
    }
    .sortable-ghost {
        opacity: 0.4;
        background: var(--sm-primary-light) !important;
        border: 1px dashed #3b82f6 !important;
    }

    .action-btn-group {
        display: inline-flex;
        align-items: center;
        gap: 0.35rem;
        flex-shrink: 0;
    }
    .btn-icon-soft {
        width: 30px;
        height: 30px;
        padding: 0;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        border-radius: 7px;
        border: 1px solid var(--sm-border-color);
        background: #ffffff;
        color: #475569;
        transition: all 0.15s ease;
        text-decoration: none;
    }
    .btn-icon-soft:hover {
        background: #f1f5f9;
        color: #0f172a;
        border-color: #cbd5e1;
    }
    .btn-icon-soft.text-danger:hover {
        background: #fef2f2;
        border-color: #fecaca;
        color: #dc2626 !important;
    }
    .btn-add-child {
        font-size: 0.78rem;
        font-weight: 600;
        padding: 0.25rem 0.6rem;
        border-radius: 7px;
        background: var(--sm-primary-light);
        color: var(--sm-primary);
        border: 1px solid var(--sm-primary-light);
        text-decoration: none;
        display: inline-flex;
        align-items: center;
        gap: 0.25rem;
        transition: all 0.15s ease;
    }
    .btn-add-child:hover {
        background: var(--sm-primary);
        color: #ffffff;
        border-color: var(--sm-primary);
    }

/* --- Source: Areas\AiHub\Views\AiHub\GoogleBatches.cshtml --- */
:root {
        --bg-dark: #0f1117;
        --card-bg: #1a1d2e;
        --card-border: rgba(99,102,241,0.18);
        --accent: #6366f1;
        --accent2: #22d3ee;
        --success: #22c55e;
        --danger: #ef4444;
        --warning: #f59e0b;
        --text-primary: #f1f5f9;
        --text-muted: var(--sm-text-muted);
        --badge-bg: rgba(99,102,241,0.15);
    }
    .sm-google-batches-page { background: var(--bg-dark); color: var(--text-primary); border-radius: 16px; }
    .page-header { background: var(--sm-hero-gradient); border-radius: 16px; padding: 28px 32px; margin-bottom: 28px; border: 1px solid var(--card-border); }
    .page-title { font-size: 1.6rem; font-weight: 700; background: linear-gradient(90deg, #818cf8, #22d3ee); -webkit-background-clip: text; -webkit-text-fill-color: transparent; margin: 0; }
    .page-subtitle { color: var(--text-muted); font-size: 0.88rem; margin-top: 4px; }
    .section-card { background: var(--card-bg); border: 1px solid var(--card-border); border-radius: 14px; padding: 24px; margin-bottom: 24px; }
    .section-title { font-size: 1rem; font-weight: 600; color: var(--accent2); margin-bottom: 18px; display: flex; align-items: center; gap: 8px; }
    .batch-table { width: 100%; border-collapse: collapse; font-size: 0.85rem; }
    .batch-table th { background: rgba(99,102,241,0.1); color: var(--text-muted); font-weight: 600; padding: 10px 14px; text-align: left; border-bottom: 1px solid var(--card-border); white-space: nowrap; }
    .batch-table td { padding: 10px 14px; border-bottom: 1px solid rgba(255,255,255,0.04); vertical-align: middle; }
    .batch-table tr:hover td { background: rgba(99,102,241,0.05); }
    .badge-state { display: inline-flex; align-items: center; gap: 5px; padding: 3px 10px; border-radius: 20px; font-size: 0.78rem; font-weight: 600; }
    .badge-state.success  { background: rgba(34,197,94,.15);  color: #4ade80; border: 1px solid rgba(34,197,94,.3); }
    .badge-state.danger   { background: rgba(239,68,68,.15);  color: #f87171; border: 1px solid rgba(239,68,68,.3); }
    .badge-state.warning  { background: rgba(245,158,11,.15); color: #fbbf24; border: 1px solid rgba(245,158,11,.3); }
    .badge-state.info     { background: rgba(34,211,238,.15); color: #67e8f9; border: 1px solid rgba(34,211,238,.3); }
    .badge-state.secondary{ background: rgba(148,163,184,.1); color: var(--text-muted); border: 1px solid rgba(148,163,184,.2); }
    .btn-sync { background: linear-gradient(135deg, #6366f1, #22d3ee); color: #fff; border: none; padding: 5px 14px; border-radius: 8px; font-size: 0.8rem; font-weight: 600; cursor: pointer; transition: opacity .2s; white-space: nowrap; }
    .btn-sync:hover { opacity: .85; }
    .btn-sync:disabled { opacity: .45; cursor: not-allowed; }
    .btn-refresh { background: rgba(99,102,241,0.15); color: #818cf8; border: 1px solid rgba(99,102,241,0.3); padding: 7px 18px; border-radius: 8px; font-size: 0.84rem; font-weight: 600; cursor: pointer; text-decoration: none; transition: background .2s; }
    .btn-refresh:hover { background: rgba(99,102,241,0.25); color: #818cf8; }
    .alert-error { background: rgba(239,68,68,.1); border: 1px solid rgba(239,68,68,.3); color: #fca5a5; border-radius: 10px; padding: 12px 16px; margin-bottom: 20px; font-size: 0.88rem; }
    .batch-id-text { font-family: monospace; font-size: 0.78rem; color: var(--text-muted); max-width: 180px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; display: block; }
    .sync-result-toast { position: fixed; bottom: 24px; right: 24px; background: #1e2235; border: 1px solid var(--card-border); border-radius: 12px; padding: 14px 20px; box-shadow: 0 8px 32px rgba(0,0,0,.4); z-index: 9999; display: none; max-width: 380px; font-size: 0.88rem; }
    .empty-state { text-align: center; padding: 40px; color: var(--text-muted); }
    .empty-state .icon { font-size: 2.5rem; margin-bottom: 8px; }
    .tabs { display: flex; gap: 4px; margin-bottom: 20px; }
    .tab-btn { background: transparent; border: 1px solid var(--card-border); color: var(--text-muted); padding: 7px 20px; border-radius: 8px; cursor: pointer; font-size: 0.84rem; transition: all .2s; }
    .tab-btn.active { background: rgba(99,102,241,0.2); border-color: var(--accent); color: #818cf8; font-weight: 600; }
    .tab-panel { display: none; }
    .tab-panel.active { display: block; }
    .count-badge { background: var(--badge-bg); color: #818cf8; border-radius: 20px; padding: 1px 8px; font-size: 0.75rem; font-weight: 700; margin-left: 6px; }
    .matched-badge { background: rgba(34,197,94,.12); color: #4ade80; border-radius: 8px; padding: 2px 7px; font-size: 0.72rem; }
    .unmatched-badge { background: rgba(245,158,11,.12); color: #fbbf24; border-radius: 8px; padding: 2px 7px; font-size: 0.72rem; }
    .key-selector { background: rgba(15,17,30,0.8); border: 1px solid var(--card-border); color: var(--text-primary); border-radius: 8px; padding: 7px 14px; font-size: 0.84rem; min-width: 220px; cursor: pointer; }
    .key-selector:focus { outline: none; border-color: var(--accent); }
    .key-selector option { background: #1a1d2e; }
    .key-badge { display: inline-flex; align-items: center; gap: 5px; padding: 3px 10px; border-radius: 20px; font-size: 0.76rem; font-weight: 600; }
    .key-badge.free     { background: rgba(34,211,238,.12); color: #67e8f9; }
    .key-badge.paid     { background: rgba(251,191,36,.12); color: #fbbf24; }
    .key-badge.exhaust  { background: rgba(239,68,68,.12);  color: #f87171; }

/* --- Source: Areas\AiHub\Views\AiHub\Index.cshtml --- */
.text-gradient-ai {
        background: linear-gradient(135deg, #667eea, #764ba2);
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
        background-clip: text;
    }
    .text-xs { font-size: 0.75rem; }

/* --- Source: Areas\DataImport\Views\GradeImport\Index.cshtml --- */
.grade-import-page {
            --gi-border: var(--sm-border-color);
            --gi-bg-soft: #f8fafc;
            color: #0f172a;
        }

        .gi-card {
            background: #fff;
            border: 1px solid var(--gi-border);
            border-radius: 16px;
            box-shadow: 0 1px 3px rgba(15, 23, 42, 0.03);
            overflow: hidden;
        }

        .gi-tabs {
            background: var(--gi-bg-soft);
            border-bottom: 1px solid var(--gi-border);
            padding: 0.75rem 1.25rem 0;
            gap: 0.5rem;
        }

        .gi-tabs .nav-link {
            border: 1px solid transparent;
            border-bottom: none;
            border-radius: 12px 12px 0 0;
            color: #475569;
            font-weight: 600;
            padding: 0.7rem 1.35rem;
            font-size: 0.92rem;
            transition: all 0.15s ease;
        }

        .gi-tabs .nav-link:hover {
            color: #0f172a;
            background: rgba(255, 255, 255, 0.6);
        }

        .gi-tabs .nav-link.active {
            background: #fff;
            color: #0f172a;
            border-color: var(--gi-border);
            margin-bottom: -1px;
        }

        .excel-dropzone {
            border: 2px dashed #93c5fd;
            border-radius: 14px;
            background: #f8fafc;
            padding: 2rem 1.25rem;
            text-align: center;
            position: relative;
            cursor: pointer;
            transition: all 0.18s ease;
            min-height: 215px;
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
        }

        .excel-dropzone:hover,
        .excel-dropzone.dragover {
            border-color: var(--sm-primary);
            background: var(--sm-primary-light);
        }

        .excel-dropzone input[type="file"] {
            position: absolute;
            inset: 0;
            width: 100%;
            height: 100%;
            opacity: 0;
            cursor: pointer;
        }

        .gi-table th {
            font-size: 0.76rem;
            text-transform: uppercase;
            letter-spacing: 0.04em;
            color: #475569;
            font-weight: 700;
            background: #f8fafc;
            border-bottom: 1px solid var(--gi-border);
            padding: 0.75rem 1rem;
        }

        .gi-table td {
            padding: 0.75rem 1rem;
            vertical-align: middle;
            border-bottom: 1px solid #f1f5f9;
        }

        .subject-tag {
            display: inline-block;
            background: var(--sm-primary-light);
            color: var(--sm-primary);
            border: 1px solid #bfdbfe;
            border-radius: 6px;
            padding: 0.12rem 0.45rem;
            font-size: 0.75rem;
            font-weight: 600;
            margin: 0.1rem;
        }

/* --- Source: Areas\ExamOnline\Views\Exam\Create.cshtml --- */
/* ===== MODE CARDS (BƯỚC 1) ===== */
    .mode-card {
        cursor: pointer;
        border-radius: 12px;
        border: 2px solid var(--sm-border-color);
        padding: 14px 16px;
        background: #fff;
        transition: all .18s ease;
        display: flex;
        align-items: flex-start;
        gap: 12px;
        position: relative;
        height: 100%;
    }
    .mode-card:hover {
        border-color: #93c5fd;
        background: #f8fbff;
        transform: translateY(-2px);
        box-shadow: 0 6px 16px rgba(37, 99, 235, .08);
    }
    .mode-card.selected {
        border-color: var(--sm-primary);
        background: var(--sm-primary-light);
        box-shadow: 0 0 0 3px rgba(37, 99, 235, .12);
    }
    .mode-card .mode-icon {
        font-size: 1.55rem;
        line-height: 1;
        flex-shrink: 0;
        margin-top: 2px;
    }
    .mode-card .mode-body {
        flex: 1;
        min-width: 0;
    }
    .mode-card .mode-title {
        font-weight: 700;
        font-size: .9rem;
        color: #1e293b;
        margin-bottom: 4px;
    }
    .mode-card.selected .mode-title {
        color: var(--sm-primary);
    }
    .mode-card .mode-desc {
        font-size: .78rem;
        color: var(--sm-text-muted);
        line-height: 1.42;
        margin-bottom: 8px;
    }
    .mode-card .mode-check {
        position: absolute;
        top: 10px;
        right: 12px;
        color: var(--sm-primary);
        font-size: .95rem;
        display: none;
    }
    .mode-card.selected .mode-check {
        display: block;
    }

    /* ===== SOURCE TABS (BƯỚC 2) ===== */
    .src-tab-btn {
        border: 1.5px solid var(--sm-border-color) !important;
        border-radius: 9px !important;
        font-size: .83rem;
        font-weight: 600;
        color: #475569 !important;
        background: #f8fafc !important;
        padding: 7px 14px !important;
        transition: all .18s;
        white-space: nowrap;
    }
    .src-tab-btn.active {
        background: var(--sm-primary) !important;
        border-color: var(--sm-primary) !important;
        color: #fff !important;
        box-shadow: 0 3px 10px rgba(37, 99, 235, .22) !important;
    }
    .src-tab-btn:hover:not(.active) {
        border-color: #93c5fd !important;
        background: var(--sm-primary-light) !important;
        color: var(--sm-primary) !important;
    }

    /* ===== STEP SECTION CARD ===== */
    .step-section {
        border: 1.5px solid var(--sm-border-color);
        border-radius: 14px;
        overflow: hidden;
        margin-bottom: 18px;
        background: #fff;
        box-shadow: 0 1px 3px rgba(15, 23, 42, .03);
    }
    .step-section .section-header {
        background: linear-gradient(135deg, #f8fafc 0%, var(--sm-primary-light) 100%);
        padding: 12px 18px;
        border-bottom: 1px solid var(--sm-border-color);
        display: flex;
        align-items: center;
        gap: 10px;
        flex-wrap: wrap;
        justify-content: space-between;
    }
    .step-section .section-header .section-label {
        font-weight: 700;
        font-size: .92rem;
        color: #1e293b;
        display: flex;
        align-items: center;
        gap: 9px;
    }
    .step-number-badge {
        width: 24px;
        height: 24px;
        border-radius: 50%;
        background: var(--sm-primary);
        color: #fff;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        font-size: .78rem;
        font-weight: 700;
        flex-shrink: 0;
    }
    .step-section .section-body {
        background: #fff;
        padding: 16px 18px;
    }

    /* ===== RESULT ZONE & ANIMATIONS ===== */
    #ai-result-section {
        animation: fadeIn .3s ease;
    }
    @keyframes fadeIn {
        from { opacity: 0; transform: translateY(8px); }
        to { opacity: 1; transform: none; }
    }

    /* ===== GENERATE BUTTON ===== */
    #btn-generate-ai {
        background: var(--sm-hero-gradient);
        border: none;
        border-radius: 10px;
        font-size: .98rem;
        font-weight: 700;
        padding: 12px 26px;
        box-shadow: 0 4px 12px rgba(37, 99, 235, .28);
        transition: all .2s;
    }
    #btn-generate-ai:hover:not(:disabled) {
        background: linear-gradient(135deg, var(--sm-primary) 0%, var(--sm-primary) 100%);
        box-shadow: 0 6px 16px rgba(37, 99, 235, .38);
        transform: translateY(-1px);
    }
    #btn-generate-ai:disabled {
        opacity: .72;
        transform: none;
    }

    /* ===== CHEDOTAILIEU PILLS ===== */
    .chedotailieu-pill {
        cursor: pointer;
        margin-bottom: 0;
    }
    .chedotailieu-pill input[type="radio"] {
        display: none;
    }
    .chedotailieu-pill .pill-inner {
        padding: 5px 13px;
        border-radius: 20px;
        font-size: .8rem;
        font-weight: 600;
        border: 1.5px solid var(--sm-border-color);
        background: #f8fafc;
        color: #475569;
        transition: all .15s;
        display: inline-block;
    }
    .chedotailieu-pill input:checked + .pill-inner {
        background: var(--sm-primary-light);
        border-color: var(--sm-primary);
        color: var(--sm-primary);
    }

    /* ===== STATUS BADGE ===== */
    .gen-status-badge {
        display: inline-flex;
        align-items: center;
        gap: 8px;
        background: #f0fdf4;
        border: 1px solid #bbf7d0;
        border-radius: 8px;
        padding: 8px 14px;
        font-size: .875rem;
        font-weight: 600;
        color: #16a34a;
        animation: fadeIn .3s ease;
    }
    .ai-progress-box {
        background: var(--sm-primary-light);
        border: 1px solid #bfdbfe;
        border-radius: 10px;
        padding: 10px 16px;
        display: inline-flex;
        align-items: center;
        gap: 10px;
    }

/* --- Source: Areas\ExamOnline\Views\Exam\Dashboard.cshtml --- */
.dash-kpi-card {
        border: 1px solid var(--sm-border-color);
        border-radius: 14px;
        background: #fff;
        transition: transform 0.15s ease, box-shadow 0.15s ease;
    }
    .dash-kpi-card:hover {
        transform: translateY(-2px);
        box-shadow: 0 6px 16px rgba(15, 23, 42, 0.06) !important;
    }
    .dash-kpi-icon {
        width: 42px;
        height: 42px;
        border-radius: 10px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        font-size: 1.2rem;
        flex-shrink: 0;
    }
    .role-segmented-bar {
        background: #f1f5f9;
        padding: 4px;
        border-radius: 999px;
        display: inline-flex;
        flex-wrap: wrap;
        gap: 4px;
        border: 1px solid var(--sm-border-color);
    }
    .role-tab-btn {
        border: none;
        background: transparent;
        color: #475569;
        font-weight: 600;
        font-size: 0.84rem;
        padding: 0.4rem 0.9rem;
        border-radius: 999px;
        transition: all 0.15s ease;
        display: inline-flex;
        align-items: center;
        gap: 0.35rem;
    }
    .role-tab-btn:hover {
        color: #0f172a;
        background: rgba(255, 255, 255, 0.6);
    }
    .role-tab-btn.active {
        background: var(--sm-primary);
        color: #fff;
        box-shadow: 0 2px 6px rgba(37, 99, 235, 0.25);
    }
    .sub-nav-pills .nav-link {
        color: #475569;
        font-weight: 600;
        font-size: 0.85rem;
        border-radius: 8px;
        padding: 0.45rem 0.85rem;
    }
    .sub-nav-pills .nav-link.active {
        background-color: var(--sm-primary-light);
        color: var(--sm-primary);
        border: 1px solid #bfdbfe;
    }
    @media (max-width: 575.98px) {
        .dash-kpi-card .card-body {
            padding: 0.75rem !important;
        }
        .dash-kpi-value {
            font-size: 1.35rem !important;
        }
        .role-segmented-bar {
            width: 100%;
            border-radius: 12px;
            justify-content: stretch;
        }
        .role-tab-btn {
            flex: 1 1 auto;
            justify-content: center;
            padding: 0.45rem 0.5rem;
            font-size: 0.78rem;
        }
    }

/* --- Source: Areas\ExamOnline\Views\Exam\Index.cshtml --- */
/* Bảng bài kiểm tra: Chống phình to chiều rộng, chống tràn ngang và tối ưu cuộn */
    .table-exam-custom {
        margin-bottom: 0;
    }

    /* Cột 1: Tên bài kiểm tra & KHBD */
    .col-exam-title {
        min-width: 230px;
        max-width: 310px;
    }
    .col-exam-title .exam-title-text {
        word-break: break-word;
        line-height: 1.35;
        font-size: 0.93rem;
    }
    .col-exam-title .khbd-badge {
        white-space: normal !important;
        text-align: left;
        line-height: 1.3;
        display: inline-block;
        max-width: 100%;
        word-break: break-word;
        font-weight: 500;
        font-size: 0.72rem;
    }

    /* Cột 2: Môn / Khối */
    .col-subject-grade {
        width: 105px;
        min-width: 95px;
    }

    /* Cột 3: Người tạo */
    .col-creator {
        width: 135px;
        min-width: 120px;
    }

    /* Cột 4: KPI & Lớp đã giao */
    .col-kpi-stats {
        min-width: 185px;
        max-width: 235px;
    }
    .col-kpi-stats .assigned-classes-badge {
        white-space: normal !important;
        text-align: left;
        line-height: 1.3;
        display: inline-block;
        max-width: 100%;
        word-break: break-word;
        font-weight: 500;
        font-size: 0.72rem;
    }

    /* Cột 5: Ngày tạo */
    .col-created-date {
        width: 95px;
        min-width: 90px;
        white-space: nowrap;
    }

    /* Cột 6: Làm bài / Tổ chức (Bố trí 2 dòng gọn gàng) */
    .col-play-host {
        width: 170px;
        min-width: 170px;
        max-width: 170px;
        white-space: nowrap;
    }
    .play-host-grid {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 4px;
        width: 100%;
    }
    .play-host-grid .btn {
        font-size: 0.74rem;
        padding: 0.22rem 0.35rem;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        white-space: nowrap;
    }
    .play-host-grid .btn-span-2 {
        grid-column: span 2;
    }

    /* Cột 7: Hành động (Bố trí 2 dòng gọn gàng) */
    .col-actions {
        width: 85px;
        min-width: 85px;
        max-width: 85px;
        white-space: nowrap;
    }
    .actions-grid {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 4px;
        width: 100%;
    }
    .actions-grid .btn {
        font-size: 0.74rem;
        padding: 0.22rem 0.35rem;
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }
    .actions-grid .btn-span-2 {
        grid-column: span 2;
    }

    /* Thanh cuộn ngang đồng bộ ở đỉnh bảng (Top Scrollbar) */
    .table-scroll-top-wrapper {
        overflow-x: auto;
        overflow-y: hidden;
        height: 12px;
        margin-bottom: 6px;
        background: #eef2f6;
        border-radius: 6px;
        scrollbar-width: thin;
        box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.05);
    }
    .table-scroll-top-wrapper::-webkit-scrollbar,
    #tableResponsiveContainer::-webkit-scrollbar {
        height: 8px;
    }
    .table-scroll-top-wrapper::-webkit-scrollbar-track,
    #tableResponsiveContainer::-webkit-scrollbar-track {
        background: #f1f3f5;
        border-radius: 4px;
    }
    .table-scroll-top-wrapper::-webkit-scrollbar-thumb,
    #tableResponsiveContainer::-webkit-scrollbar-thumb {
        background: #0d6efd99;
        border-radius: 4px;
    }
    .table-scroll-top-wrapper::-webkit-scrollbar-thumb:hover,
    #tableResponsiveContainer::-webkit-scrollbar-thumb:hover {
        background: var(--sm-primary);
    }
    .table-scroll-top-inner {
        height: 1px;
    }

    /* Ghim 2 cột thao tác bên phải (Sticky Actions) trên màn hình desktop */
    @media (min-width: 992px) {
        .table-sticky-actions th.col-play-host,
        .table-sticky-actions td.col-play-host {
            position: sticky;
            right: 85px;
            z-index: 2;
            background-color: #fff;
            border-left: 1px solid var(--sm-border-color);
        }
        .table-sticky-actions thead th.col-play-host {
            background-color: #f8f9fa;
            z-index: 4;
        }

        .table-sticky-actions th.col-actions,
        .table-sticky-actions td.col-actions {
            position: sticky;
            right: 0;
            z-index: 2;
            background-color: #fff;
            box-shadow: -3px 0 6px -2px rgba(0,0,0,0.08);
        }
        .table-sticky-actions thead th.col-actions {
            background-color: #f8f9fa;
            z-index: 4;
        }

        .table-striped tbody tr:nth-of-type(odd) td.col-play-host,
        .table-striped tbody tr:nth-of-type(odd) td.col-actions {
            background-color: #f8fafc;
        }
        .table-hover tbody tr:hover td.col-play-host,
        .table-hover tbody tr:hover td.col-actions {
            background-color: #eef2f7;
        }
    }

    /* Quick filter pills */
    .status-pill-bar {
        overflow-x: auto;
        scrollbar-width: none;
        -ms-overflow-style: none;
    }
    .status-pill-bar::-webkit-scrollbar {
        display: none;
    }
    .status-pill-btn {
        white-space: nowrap;
        border-radius: 99px;
        font-size: 0.78rem;
        font-weight: 600;
        padding: 0.3rem 0.75rem;
        transition: all 0.15s ease;
    }

    /* KPI Card compact on mobile */
    .kpi-stat-card {
        transition: transform 0.15s ease, box-shadow 0.15s ease;
    }
    .kpi-stat-card:hover {
        transform: translateY(-2px);
        box-shadow: 0 4px 12px rgba(0,0,0,0.06);
    }
    .kpi-icon-circle {
        width: 44px;
        height: 44px;
        flex-shrink: 0;
    }
    @media (max-width: 767.98px) {
        .kpi-stat-card {
            padding: 0.65rem 0.75rem !important;
        }
        .kpi-icon-circle {
            width: 34px;
            height: 34px;
        }
        .kpi-stat-card .fs-4 {
            font-size: 1.15rem !important;
        }
        .kpi-stat-card .kpi-subtext {
            font-size: 0.7rem !important;
        }
    }

    /* Mobile Exam Cards */
    .exam-mobile-card {
        border-radius: 12px;
        border: 1px solid var(--sm-border-color);
        background: #fff;
        box-shadow: 0 1px 3px rgba(15, 23, 42, 0.04);
    }
    .exam-mobile-card .mobile-action-grid {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 6px;
    }

/* --- Source: Areas\ExamOnline\Views\ExamHistory\Index.cshtml --- */
/* ===== HEADER BANNER ===== */
    .history-header-card {
        background: #ffffff;
        border: 1px solid var(--sm-border-color);
        border-radius: 14px;
        padding: 16px 20px;
        box-shadow: 0 1px 3px rgba(15, 23, 42, .04);
        margin-bottom: 20px;
    }
    .history-header-icon {
        width: 48px;
        height: 48px;
        border-radius: 12px;
        background: var(--sm-hero-gradient);
        display: flex;
        align-items: center;
        justify-content: center;
        color: #ffffff;
        font-size: 1.35rem;
        box-shadow: 0 4px 12px rgba(37, 99, 235, 0.22);
        flex-shrink: 0;
    }

    /* ===== KPI STAT CARDS ===== */
    .kpi-stat-card {
        border-radius: 12px;
        border: 1px solid var(--sm-border-color);
        background: #ffffff;
        padding: 16px;
        height: 100%;
        display: flex;
        align-items: center;
        justify-content: space-between;
        transition: all 0.2s ease;
        box-shadow: 0 1px 3px rgba(15, 23, 42, 0.03);
    }
    .kpi-stat-card:hover {
        transform: translateY(-2px);
        box-shadow: 0 6px 16px rgba(15, 23, 42, 0.07);
    }
    .kpi-stat-icon {
        width: 46px;
        height: 46px;
        border-radius: 12px;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 1.25rem;
        flex-shrink: 0;
    }

    /* ===== FILTER CARD ===== */
    .filter-card {
        background: #ffffff;
        border: 1px solid var(--sm-border-color);
        border-radius: 14px;
        padding: 18px 20px;
        margin-bottom: 20px;
        box-shadow: 0 1px 3px rgba(15, 23, 42, 0.03);
    }

    /* ===== ROOM CODE BADGE ===== */
    .room-code-badge {
        font-family: 'SFMono-Regular', Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
        letter-spacing: 0.06em;
        font-size: 0.95rem;
        font-weight: 700;
        cursor: pointer;
        padding: 5px 10px;
        border-radius: 8px;
        background: var(--sm-primary-light);
        color: var(--sm-primary);
        border: 1px solid #bfdbfe;
        transition: all 0.15s ease;
        display: inline-flex;
        align-items: center;
        gap: 6px;
    }
    .room-code-badge:hover {
        background: var(--sm-primary-light);
        color: var(--sm-primary);
        border-color: #93c5fd;
        transform: scale(1.03);
    }

    /* ===== MODERN TABLE STYLING ===== */
    .table-card {
        background: #ffffff;
        border: 1px solid var(--sm-border-color);
        border-radius: 14px;
        overflow: hidden;
        box-shadow: 0 1px 3px rgba(15, 23, 42, 0.03);
    }
    .table-card-header {
        background: #ffffff;
        padding: 14px 20px;
        border-bottom: 1px solid var(--sm-border-color);
        display: flex;
        align-items: center;
        justify-content: space-between;
        flex-wrap: wrap;
        gap: 12px;
    }
    .table-history thead th {
        background: #f8fafc;
        color: #475569;
        font-weight: 700;
        font-size: 0.78rem;
        text-transform: uppercase;
        letter-spacing: 0.04em;
        padding: 12px 16px;
        border-bottom: 2px solid var(--sm-border-color);
        white-space: nowrap;
    }
    .table-history tbody td {
        padding: 14px 16px;
        vertical-align: middle;
        border-bottom: 1px solid #f1f5f9;
        color: #1e293b;
    }
    .table-history tbody tr {
        transition: background-color 0.15s ease;
    }
    .table-history tbody tr:hover {
        background-color: #f8fbff;
    }

    /* ===== PROGRESS MINI BAR ===== */
    .progress-bar-mini {
        height: 6px;
        border-radius: 4px;
        background: var(--sm-border-color);
        overflow: hidden;
        width: 100%;
        margin-top: 4px;
    }
    .progress-fill {
        height: 100%;
        border-radius: 4px;
        background: linear-gradient(90deg, #10b981 0%, #059669 100%);
        transition: width 0.3s ease;
    }

    /* ===== ACTION BUTTONS ===== */
    .action-icon-btn {
        width: 32px;
        height: 32px;
        border-radius: 8px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        padding: 0;
        transition: all 0.15s ease;
        border: 1px solid var(--sm-border-color);
        background: #ffffff;
    }
    .action-icon-btn:hover {
        transform: translateY(-1px);
        box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
    }

/* --- Source: Areas\ExamOnline\Views\ExamLobby\Host.cshtml --- */
.compact-qr .qr-img { max-width: 100%; transition: max-width .2s ease; cursor: zoom-in; }
    .compact-qr .room-code { font-size: 2rem; transition: font-size .2s ease; cursor: zoom-in; }
    .compact-qr.expanded .qr-img { max-width: 100%; cursor: zoom-out; }
    .compact-qr.expanded .room-code { font-size: clamp(2.5rem, 5vw, 4rem); cursor: zoom-out; }
    .player-badge { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; }

/* --- Source: Areas\Financial\Views\Asset\Index.cshtml --- */
.as-kpi .card-body { padding: .6rem .75rem; }
    .as-kpi .kpi-value { font-size: 1.5rem; font-weight: 800; line-height: 1.1; }
    .as-kpi .kpi-sub { font-size: .75rem; color: var(--sm-text-muted); }
    .as-kpi a.stretched-link:hover { text-decoration: none; }
    .as-class-badge { font-size: .7rem; }
    .as-dep-bar { height: 4px; background: #e9ecef; border-radius: 2px; overflow: hidden; margin-top: 3px; }
    .as-dep-bar > div { height: 100%; background: linear-gradient(90deg, #20c997, #fd7e14); }
    #assetTable td { font-size: .875rem; }
    #assetTable .as-name { min-width: 180px; }
    .as-bulkbar { position: sticky; top: 60px; z-index: 5; display: none; }
    .as-bulkbar.show { display: flex; }
    @media (max-width: 575.98px) {
        .as-header-actions .btn { flex: 1 1 45%; }
        .as-kpi .kpi-value { font-size: 1.2rem; }
    }

/* --- Source: Areas\Financial\Views\AssetCategory\Index.cshtml --- */
.ac-tree-name { display: inline-flex; align-items: center; gap: .35rem; }
    .ac-level-0 { font-weight: 700; }
    .ac-level-0 td { background: #f8fafc; }
    .ac-inactive { opacity: .55; }
    .ac-indent { display: inline-block; }
    .nav-tabs .nav-link { font-weight: 600; }

/* --- Source: Areas\Financial\Views\DanhMucThuChi\DanhMucKhoanThu.cshtml --- */
.fin-card {
        border: none;
        border-radius: 14px;
        box-shadow: 0 4px 18px rgba(15, 23, 42, 0.06);
    }
    .bank-badge-default {
        background: var(--sm-hero-gradient);
        color: #fff;
        font-size: 0.75rem;
        padding: 3px 10px;
        border-radius: 20px;
        white-space: nowrap;
    }
    .fee-catalog-table th {
        font-size: 0.82rem;
        text-transform: uppercase;
        letter-spacing: 0.3px;
        color: #475569;
        background-color: #f8fafc;
        border-bottom: 2px solid var(--sm-border-color);
        white-space: nowrap;
        padding: 12px 14px;
    }
    .fee-catalog-table td {
        padding: 14px;
        vertical-align: middle;
        border-bottom: 1px solid #f1f5f9;
    }
    .fee-code-pill {
        font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
        font-size: 0.75rem;
        font-weight: 700;
        padding: 2px 8px;
        border-radius: 6px;
        background: #1e293b;
        color: #fff;
        letter-spacing: 0.5px;
    }
    .pkg-mini-grid {
        display: flex;
        flex-wrap: wrap;
        gap: 4px;
        justify-content: flex-end;
        margin-top: 6px;
    }
    .pkg-mini-chip {
        font-size: 0.73rem;
        background: #f1f5f9;
        border: 1px solid #cbd5e1;
        color: #334155;
        border-radius: 6px;
        padding: 2px 7px;
        white-space: nowrap;
    }

    /* Tối ưu hiển thị dạng thẻ (Card) trên màn hình nhỏ / điện thoại (< 768px) */
    @media (max-width: 767.98px) {
        .fee-catalog-table thead {
            display: none;
        }
        .fee-catalog-table,
        .fee-catalog-table tbody,
        .fee-catalog-table tr,
        .fee-catalog-table td {
            display: block;
            width: 100%;
        }
        .fee-catalog-table tr {
            border: 1px solid var(--sm-border-color);
            border-radius: 12px;
            margin-bottom: 12px;
            padding: 10px 12px;
            background: #fff;
            box-shadow: 0 2px 6px rgba(0,0,0,0.03);
        }
        .fee-catalog-table td {
            padding: 6px 0;
            border-bottom: 1px dashed #f1f5f9;
            text-align: left !important;
        }
        .fee-catalog-table td:last-child {
            border-bottom: none;
            padding-top: 10px;
        }
        .fee-catalog-table td::before {
            content: attr(data-label);
            display: block;
            font-size: 0.72rem;
            font-weight: 700;
            text-transform: uppercase;
            color: var(--sm-text-muted);
            margin-bottom: 2px;
        }
        .pkg-mini-grid {
            justify-content: flex-start;
        }
    }

/* --- Source: Areas\Financial\Views\DanhMucThuChi\DanhMucNguonTien.cshtml --- */
/* CSS được tinh chỉnh để có giao diện hiện đại và sạch sẽ */
    .page-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        margin-bottom: 1.5rem;
    }

    .page-title {
        color: #495057;
    }

    .card {
        border: none;
        border-radius: 12px;
        box-shadow: 0 8px 16px rgba(0, 0, 0, 0.05);
    }

    .card-header {
        background-color: transparent;
        border-bottom: 1px solid var(--sm-border-color);
        padding: 1rem 1.5rem;
    }

    .table thead th {
        background-color: #f8f9fa;
        color: #495057;
        font-weight: 600;
        border-bottom-width: 1px;
    }

    .table td, .table th {
        vertical-align: middle;
        padding: 1rem;
    }

    /* Căn chỉnh cột văn bản sang trái, cột trạng thái ra giữa */
    .text-column {
        text-align: left;
    }

    .status-column {
        text-align: center;
    }

    .action-column {
        width: 150px;
        text-align: center;
    }

    /* Tô nền cho dòng đang được sửa */
    .editing-row {
        background-color: #fff3cd !important;
    }

    .edit-mode {
        display: none;
    }

/* --- Source: Areas\Financial\Views\Dashboard\Index.cshtml --- */
.section-header {
        background: linear-gradient(135deg, #f8f9fc 0%, #e8f4f8 100%);
        border-left: 4px solid #4e73df;
        padding: 10px 16px;
        margin-bottom: 16px;
        border-radius: 4px;
    }
    .section-header.income { border-left-color: #1cc88a; background: linear-gradient(135deg, #f0fdf7 0%, #e0f7ef 100%); }
    .section-header.asset  { border-left-color: #36b9cc; background: linear-gradient(135deg, #f0fcfe 0%, #e0f4f8 100%); }
    .section-header.proposal { border-left-color: #f6c23e; background: linear-gradient(135deg, #fefdf0 0%, #fdf8e0 100%); }
    .fin-kpi-card {
        border: 0;
        border-radius: 12px;
        box-shadow: 0 2px 8px rgba(0,0,0,0.08);
        transition: transform .15s;
    }
    .fin-kpi-card:hover { transform: translateY(-2px); }
    .fin-kpi-card .icon-circle {
        width: 52px; height: 52px;
        border-radius: 50%;
        display: flex; align-items: center; justify-content: center;
        font-size: 1.3rem;
    }
    .fin-kpi-card .kpi-value { font-size: 1.4rem; font-weight: 700; line-height: 1.2; }
    .fin-kpi-card .kpi-label { font-size: 0.75rem; text-transform: uppercase; letter-spacing: .04em; font-weight: 600; }
    .income-section { background: linear-gradient(135deg, #f0fdf9 0%, #eafaf3 100%); border-radius: 12px; padding: 20px; margin-bottom: 24px; }
    .asset-section  { background: linear-gradient(135deg, #f4f6f9 0%, #eef1f5 100%); border-radius: 12px; padding: 20px; margin-bottom: 24px; }
    .proposal-section { background: linear-gradient(135deg, #fffef5 0%, #fdfbeb 100%); border-radius: 12px; padding: 20px; margin-bottom: 24px; }

/* --- Source: Areas\Financial\Views\Incomes\Index.cshtml --- */
.fin-kpi-card {
        border: none;
        border-radius: 14px;
        box-shadow: 0 4px 16px rgba(15, 23, 42, 0.06);
        transition: transform 0.15s ease;
    }
    .fin-kpi-card:hover {
        transform: translateY(-2px);
    }
    .fee-matrix-table th, .fee-matrix-table td {
        vertical-align: middle;
        font-size: 0.87rem;
        padding: 10px 12px;
    }
    .fee-matrix-table thead th {
        background-color: #f8fafc;
        border-bottom: 2px solid #cbd5e1;
    }
    .sticky-student-col {
        position: sticky;
        left: 0;
        z-index: 2;
        background-color: #ffffff;
        box-shadow: 2px 0 6px rgba(15, 23, 42, 0.04);
    }
    .fee-matrix-table thead th.sticky-student-col {
        background-color: #f8fafc;
        z-index: 3;
    }
    @media (max-width: 991.98px) {
        .fee-matrix-table th, .fee-matrix-table td {
            font-size: 0.82rem;
            padding: 8px 10px;
        }
    }
    .qr-preview-box {
        background: #f8fafc;
        border: 2px dashed #cbd5e1;
        border-radius: 14px;
        padding: 16px;
        text-align: center;
    }
    .qr-code-img {
        max-width: 240px;
        border-radius: 10px;
        background: #fff;
        padding: 8px;
        box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    }
    .nav-pills-custom .nav-link {
        border-radius: 20px;
        font-weight: 600;
        padding: 8px 18px;
    }
    .fin-main-tabs {
        border-bottom: 2px solid #cbd5e1;
    }
    .fin-main-tabs .nav-link {
        font-size: 0.95rem;
        padding: 12px 22px;
        color: #475569;
        background: #f8fafc;
        border: 1px solid #cbd5e1;
        border-bottom: 2px solid #cbd5e1;
        transition: all 0.2s ease;
        margin-bottom: -2px;
    }
    .fin-main-tabs .nav-link:hover {
        background: #ffffff;
        color: #0f172a;
    }
    .fin-main-tabs .nav-link.active {
        background: #ffffff;
        color: var(--sm-primary);
        border-color: #cbd5e1 #cbd5e1 #ffffff #cbd5e1;
        border-top: 3px solid var(--sm-primary);
        border-bottom: 2px solid #ffffff;
        font-weight: 700;
        box-shadow: 0 -3px 12px rgba(15, 23, 42, 0.05);
    }
    .fin-main-tabs .nav-link#tab-receipts-btn.active {
        color: #198754;
        border-top-color: #198754;
    }

/* --- Source: Areas\Financial\Views\Incomes\OtherIncomes.cshtml --- */
.other-card {
        border: none;
        border-radius: 14px;
        box-shadow: 0 4px 16px rgba(15, 23, 42, 0.06);
    }

/* --- Source: Areas\Financial\Views\Incomes\StudentExemptions.cshtml --- */
.fin-kpi-card {
        border: none;
        border-radius: 14px;
        box-shadow: 0 4px 16px rgba(15, 23, 42, 0.06);
    }
    .exemption-matrix-table th, .exemption-matrix-table td {
        vertical-align: middle;
        font-size: 0.86rem;
        padding: 10px 12px;
    }
    .sticky-student-col {
        position: sticky;
        left: 0;
        z-index: 2;
        background-color: #ffffff;
        box-shadow: 2px 0 6px rgba(15, 23, 42, 0.04);
    }
    .exemption-matrix-table thead th.sticky-student-col {
        background-color: #f8fafc;
        z-index: 3;
    }
    @media (max-width: 991.98px) {
        .exemption-matrix-table th, .exemption-matrix-table td {
            font-size: 0.81rem;
            padding: 8px 10px;
        }
    }

/* --- Source: Areas\Financial\Views\Incomes\ZaloReconciliation.cshtml --- */
.recon-card {
        border: none;
        border-radius: 14px;
        box-shadow: 0 4px 16px rgba(15, 23, 42, 0.06);
    }
    .bill-thumb {
        width: 110px;
        height: 145px;
        object-fit: cover;
        border-radius: 10px;
        border: 2px solid var(--sm-border-color);
        cursor: zoom-in;
        transition: transform 0.15s ease;
    }
    .bill-thumb:hover {
        transform: scale(1.04);
        border-color: var(--sm-primary);
    }

/* --- Source: Areas\Financial\Views\Proposal\Create.cshtml --- */
.pc-section-title { font-size: .95rem; font-weight: 700; color: #1e3a5f; display: flex; align-items: center; gap: .5rem; }
    .pc-section-title .step { width: 26px; height: 26px; border-radius: 50%; background: #1e56a0; color: #fff; font-size: .8rem; display: inline-flex; align-items: center; justify-content: center; }
    .pc-required::after { content: " *"; color: #dc3545; }

    /* Danh sách hạng mục: dạng bảng trên màn hình lớn, dạng thẻ trên điện thoại/máy tính bảng */
    .pc-item-head, .pc-item-row { display: grid; grid-template-columns: 34px minmax(0, 3fr) 100px 90px 140px 140px 74px; gap: .5rem; align-items: start; }
    .pc-item-head { font-size: .75rem; font-weight: 700; text-transform: uppercase; color: var(--sm-text-muted); padding: .5rem .75rem; background: #f1f5f9; border-radius: .375rem; }
    .pc-item-row { padding: .6rem .75rem; border-bottom: 1px dashed var(--sm-border-color); }
    .pc-item-row:hover { background: #f8fbff; }
    .pc-item-row .pc-no { font-weight: 700; color: #1e56a0; padding-top: .35rem; text-align: center; }
    .pc-item-row .pc-line-total { font-weight: 700; color: #198754; padding-top: .35rem; text-align: right; white-space: nowrap; }
    .pc-item-row .pc-label { display: none; font-size: .7rem; font-weight: 600; color: var(--sm-text-muted); margin-bottom: 2px; }
    .pc-item-row .pc-desc { margin-top: .35rem; }
    .pc-actions { display: flex; gap: .25rem; justify-content: flex-end; }
    .pc-money { text-align: right; }

    @media (max-width: 991.98px) {
        .pc-item-head { display: none; }
        .pc-item-row { grid-template-columns: 1fr 1fr; border: 1px solid #e3e8ef; border-radius: .5rem; margin-bottom: .75rem; background: #fff; box-shadow: 0 1px 2px rgba(0,0,0,.04); }
        .pc-item-row .pc-no { grid-column: 1 / 2; text-align: left; padding-top: 0; }
        .pc-item-row .pc-actions { grid-column: 2 / 3; grid-row: 1; }
        .pc-item-row .pc-name { grid-column: 1 / -1; }
        .pc-item-row .pc-line-total { grid-column: 1 / -1; text-align: left; border-top: 1px solid #f1f1f1; padding-top: .4rem; }
        .pc-item-row .pc-label { display: block; }
    }

    .pc-summary { position: sticky; top: 80px; }
    .pc-summary .pc-total { font-size: 1.6rem; font-weight: 800; color: #1e56a0; line-height: 1.2; word-break: break-word; }
    .pc-summary .pc-words { font-size: .8rem; font-style: italic; color: var(--sm-text-muted); }
    .pc-flow { list-style: none; padding-left: 0; margin: 0; }
    .pc-flow li { position: relative; padding: 0 0 .65rem 1.6rem; font-size: .82rem; color: #495057; }
    .pc-flow li::before { content: ""; position: absolute; left: .35rem; top: .35rem; width: .55rem; height: .55rem; border-radius: 50%; background: #adb5bd; }
    .pc-flow li::after { content: ""; position: absolute; left: .58rem; top: 1rem; bottom: 0; width: 1px; background: var(--sm-border-color); }
    .pc-flow li:last-child::after { display: none; }
    .pc-flow li.active::before { background: #1e56a0; box-shadow: 0 0 0 3px rgba(30,86,160,.2); }

    .pc-dropzone { border: 2px dashed #9fb8d9; border-radius: .5rem; padding: 1.25rem; text-align: center; background: #f8fbff; cursor: pointer; transition: all .15s; }
    .pc-dropzone.dragover { background: #e7f0ff; border-color: #1e56a0; }
    .pc-file-list .list-group-item { font-size: .85rem; }

    .pc-priority .btn { font-size: .8rem; }
    @media (max-width: 575.98px) {
        .pc-summary { position: static; }
        .pc-toolbar .btn { flex: 1 1 auto; }
        .pc-priority { flex-wrap: wrap; }
    }

/* --- Source: Areas\Financial\Views\Proposal\Details.cshtml --- */
.timeline { list-style: none; padding-left: 0; position: relative; }
    .timeline:before { content: ''; position: absolute; top: 0; bottom: 0; width: 4px; background: #e9ecef; left: 14px; margin-left: -2px; }
    .timeline-item { margin-bottom: 20px; position: relative; }
    .timeline-item:last-child { margin-bottom: 0; }
    .timeline-icon { position: absolute; left: 0; top: 0; width: 32px; height: 32px; border-radius: 50%; background: #adb5bd; color: white; display: flex; align-items: center; justify-content: center; z-index: 1; border: 2px solid white; font-size: 0.8rem; }
    .timeline-body { margin-left: 50px; background: #f8f9fa; padding: 15px; border-radius: 5px; border: 1px solid var(--sm-border-color); }
    .timeline-item.active .timeline-icon { background: var(--sm-primary); }
    .timeline-item.completed .timeline-icon { background: #198754; }
    .timeline-item.rejected .timeline-icon { background: #dc3545; }

/* --- Source: Areas\Gallery\Views\GalleryAlbums\Details.cshtml --- */
.gallery-card {
            transition: transform 0.25s ease, box-shadow 0.25s ease;
        }

        .gallery-card:hover {
            transform: translateY(-5px);
            box-shadow: 0 12px 26px rgba(15, 82, 186, 0.12) !important;
        }

        .gallery-thumb {
            transition: transform 0.45s ease;
        }

        .gallery-card:hover .gallery-thumb {
            transform: scale(1.06);
        }

        .gallery-zoom-overlay {
            position: absolute;
            inset: 0;
            background: rgba(7, 25, 54, 0.35);
            opacity: 0;
            transition: opacity 0.25s ease;
        }

        .gallery-card:hover .gallery-zoom-overlay {
            opacity: 1;
        }

        .drop-shadow {
            filter: drop-shadow(0 2px 4px rgba(0,0,0,0.5));
        }

/* --- Source: Areas\Gallery\Views\GalleryAlbums\Index.cshtml --- */
.text-truncate-2 {
            display: -webkit-box;
            -webkit-line-clamp: 2;
            -webkit-box-orient: vertical;
            overflow: hidden;
        }

        .hover-primary:hover {
            color: var(--sm-primary) !important;
        }

        .album-card {
            transition: transform 0.25s ease, box-shadow 0.25s ease;
        }

        .album-card:hover {
            transform: translateY(-4px);
            box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08) !important;
        }

        .album-card .album-thumb-img {
            transition: transform 0.35s ease;
        }

        .album-card:hover .album-thumb-img {
            transform: scale(1.05);
        }

        .album-hover-overlay {
            position: absolute;
            inset: 0;
            background: rgba(15, 23, 42, 0.45);
            opacity: 0;
            transition: opacity 0.25s ease;
            backdrop-filter: blur(2px);
        }

        .album-card:hover .album-hover-overlay {
            opacity: 1;
        }

        .shadow-xs {
            box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
        }

/* --- Source: Areas\Gallery\Views\GalleryAlbums\ListAlbum.cshtml --- */
.album-card {
            box-shadow: 0 4px 16px rgba(15, 23, 42, 0.05);
            transition: all 0.28s ease;
        }

        .album-card:hover {
            transform: translateY(-6px);
            box-shadow: 0 16px 32px rgba(15, 82, 186, 0.12);
            border-color: rgba(15, 82, 186, 0.3) !important;
        }

        .album-img {
            transition: transform 0.45s ease;
        }

        .album-card:hover .album-img {
            transform: scale(1.06);
        }

/* --- Source: Areas\Gallery\Views\GalleryAlbums\Manage.cshtml --- */
.gallery-grid {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
            gap: 16px;
        }

        .gallery-item-card {
            height: 160px;
            transition: transform 0.2s ease, box-shadow 0.2s ease;
        }

        .gallery-item-card:hover {
            transform: translateY(-3px);
            box-shadow: 0 6px 18px rgba(0, 0, 0, 0.1) !important;
        }

        .gallery-item-overlay {
            position: absolute;
            bottom: 0;
            left: 0;
            right: 0;
            background: linear-gradient(to top, rgba(0, 0, 0, 0.75) 0%, rgba(0, 0, 0, 0) 100%);
            opacity: 0;
            transition: opacity 0.2s ease;
        }

        .gallery-item-card:hover .gallery-item-overlay {
            opacity: 1;
        }

        .cursor-pointer {
            cursor: pointer;
        }

        #dropZone.drag-over {
            border-color: var(--sm-primary) !important;
            background-color: rgba(13, 110, 253, 0.08) !important;
        }

        .shadow-xs {
            box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
        }

/* --- Source: Areas\HuongDan\Views\Home\Index.cshtml --- */
.help-hero {
        background: var(--sm-hero-gradient);
        border-radius: 14px;
        color: #fff;
    }
    .guide-card {
        border-radius: 12px;
        border: 1px solid var(--sm-border-color);
        transition: all .18s ease;
        background: #fff;
    }
    .guide-card.highlight-guide {
        border: 2px solid var(--sm-primary);
        box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.12);
    }
    .step-badge {
        width: 28px;
        height: 28px;
        border-radius: 50%;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        font-weight: 700;
        font-size: 0.85rem;
        flex-shrink: 0;
    }
    .role-pill.active, .area-pill.active {
        background-color: var(--sm-primary) !important;
        color: #fff !important;
        border-color: var(--sm-primary) !important;
    }

/* --- Source: Areas\News\Views\HeroSlides\Index.cshtml --- */
.slide-kpi-card {
            background: #ffffff;
            border-radius: 1rem;
            border: 1px solid rgba(0,0,0,0.06);
            padding: 1.15rem 1.25rem;
            display: flex;
            align-items: center;
            gap: 1rem;
            box-shadow: 0 4px 14px rgba(15, 23, 42, 0.03);
            transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
            text-decoration: none !important;
        }
        .slide-kpi-card:hover {
            transform: translateY(-3px);
            box-shadow: 0 10px 22px rgba(15, 23, 42, 0.08);
        }
        .slide-kpi-card.active-stat {
            border-width: 2px;
            box-shadow: 0 6px 18px rgba(15, 82, 186, 0.15);
        }
        .slide-kpi-icon {
            width: 48px;
            height: 48px;
            border-radius: 12px;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 1.35rem;
            flex-shrink: 0;
        }
        .slide-thumb {
            width: 140px;
            height: 80px;
            border-radius: 0.65rem;
            object-fit: cover;
            border: 1px solid var(--sm-border-color);
            background: #0f172a;
            flex-shrink: 0;
            transition: transform 0.2s ease;
        }
        .slide-thumb:hover {
            transform: scale(1.05);
        }
        .pulse-dot-green {
            width: 8px;
            height: 8px;
            border-radius: 50%;
            background-color: #10b981;
            display: inline-block;
            box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
            animation: pulse-green 1.8s infinite;
        }
        @keyframes pulse-green {
            0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7); }
            70% { transform: scale(1); box-shadow: 0 0 0 6px rgba(16, 185, 129, 0); }
            100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
        }
        .table > :not(caption) > * > * {
            padding: 0.95rem 0.85rem;
        }
        .slide-row:hover {
            background-color: #f8fafc !important;
        }

/* --- Source: Areas\News\Views\NewsCategories\Index.cshtml --- */
.cat-kpi-card {
            background: #ffffff;
            border-radius: 1rem;
            border: 1px solid rgba(0,0,0,0.06);
            padding: 1.15rem 1.25rem;
            display: flex;
            align-items: center;
            gap: 1rem;
            box-shadow: 0 4px 14px rgba(15, 23, 42, 0.03);
            transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
            text-decoration: none !important;
        }
        .cat-kpi-card:hover {
            transform: translateY(-3px);
            box-shadow: 0 10px 22px rgba(15, 23, 42, 0.08);
        }
        .cat-kpi-card.active-stat {
            border-width: 2px;
            box-shadow: 0 6px 18px rgba(15, 82, 186, 0.15);
        }
        .cat-kpi-icon {
            width: 48px;
            height: 48px;
            border-radius: 12px;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 1.35rem;
            flex-shrink: 0;
        }
        .cat-icon-avatar {
            width: 38px;
            height: 38px;
            border-radius: 0.65rem;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 1.15rem;
            flex-shrink: 0;
        }
        .tree-indent {
            display: inline-block;
            width: 22px;
            color: #94a3b8;
            font-family: monospace;
            font-size: 1.1rem;
            user-select: none;
        }
        .table > :not(caption) > * > * {
            padding: 0.9rem 0.85rem;
        }
        .cat-row:hover {
            background-color: #f8fafc !important;
        }

/* --- Source: Areas\News\Views\NewsPosts\Create.cshtml --- */
.ck-editor__editable_inline {
        min-height: 440px;
    }

    .editor-section-card {
        background: #ffffff;
        border: 1px solid var(--sm-border-color);
        border-radius: 1rem;
        box-shadow: 0 4px 16px rgba(15, 23, 42, 0.03);
    }

    .cover-dropzone {
        border: 2px dashed #cbd5e1;
        border-radius: 0.85rem;
        background: #f8fafc;
        padding: 1rem;
        text-align: center;
        transition: all 0.2s ease;
        cursor: pointer;
    }

    .cover-dropzone:hover {
        border-color: var(--sm-primary);
        background: var(--sm-primary-light);
    }

    .cat-checklist-box {
        max-height: 230px;
        overflow-y: auto;
        border: 1px solid var(--sm-border-color);
        border-radius: 0.75rem;
        padding: 0.5rem;
        background: #f8fafc;
    }

    .news-cat-item {
        padding: 0.4rem 0.65rem;
        border-radius: 0.5rem;
        transition: background 0.15s ease;
    }

    .news-cat-item:hover {
        background: #e0ecff;
    }

/* --- Source: Areas\News\Views\NewsPosts\Edit.cshtml --- */
.ck-editor__editable_inline {
        min-height: 440px;
    }

    .editor-section-card {
        background: #ffffff;
        border: 1px solid var(--sm-border-color);
        border-radius: 1rem;
        box-shadow: 0 4px 16px rgba(15, 23, 42, 0.03);
    }

    .cover-dropzone {
        border: 2px dashed #cbd5e1;
        border-radius: 0.85rem;
        background: #f8fafc;
        padding: 1rem;
        text-align: center;
        transition: all 0.2s ease;
        cursor: pointer;
    }

    .cover-dropzone:hover {
        border-color: var(--sm-primary);
        background: var(--sm-primary-light);
    }

    .cat-checklist-box {
        max-height: 230px;
        overflow-y: auto;
        border: 1px solid var(--sm-border-color);
        border-radius: 0.75rem;
        padding: 0.5rem;
        background: #f8fafc;
    }

    .news-cat-item {
        padding: 0.4rem 0.65rem;
        border-radius: 0.5rem;
        transition: background 0.15s ease;
    }

    .news-cat-item:hover {
        background: #e0ecff;
    }

/* --- Source: Areas\News\Views\NewsPosts\Index.cshtml --- */
.news-kpi-card {
            background: #ffffff;
            border-radius: 1rem;
            border: 1px solid rgba(0,0,0,0.06);
            padding: 1.15rem 1.25rem;
            display: flex;
            align-items: center;
            gap: 1rem;
            box-shadow: 0 4px 14px rgba(15, 23, 42, 0.03);
            transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
            text-decoration: none !important;
        }
        .news-kpi-card:hover {
            transform: translateY(-3px);
            box-shadow: 0 10px 22px rgba(15, 23, 42, 0.08);
        }
        .news-kpi-card.active-stat {
            border-width: 2px;
            box-shadow: 0 6px 18px rgba(15, 82, 186, 0.15);
        }
        .news-kpi-icon {
            width: 48px;
            height: 48px;
            border-radius: 12px;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 1.35rem;
            flex-shrink: 0;
        }
        .post-row-thumb {
            width: 96px;
            height: 64px;
            border-radius: 0.65rem;
            object-fit: cover;
            border: 1px solid var(--sm-border-color);
            background: #f8fafc;
            flex-shrink: 0;
            transition: transform 0.2s ease;
        }
        .post-row-thumb:hover {
            transform: scale(1.04);
        }
        .post-title-link {
            color: #0f172a;
            font-weight: 700;
            text-decoration: none;
            line-height: 1.35;
            display: -webkit-box;
            -webkit-line-clamp: 2;
            -webkit-box-orient: vertical;
            overflow: hidden;
            transition: color 0.15s ease;
        }
        .post-title-link:hover {
            color: var(--sm-primary);
        }
        .post-summary-text {
            display: -webkit-box;
            -webkit-line-clamp: 1;
            -webkit-box-orient: vertical;
            overflow: hidden;
            text-overflow: ellipsis;
            line-height: 1.4;
        }
        .cat-pill {
            background: var(--sm-primary-light);
            color: var(--sm-primary);
            border: 1px solid #bfdbfe;
            font-size: 0.72rem;
            font-weight: 600;
            padding: 0.2rem 0.6rem;
            border-radius: 50rem;
            display: inline-block;
        }
        .pulse-dot-green {
            width: 8px;
            height: 8px;
            border-radius: 50%;
            background-color: #10b981;
            display: inline-block;
            box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
            animation: pulse-green 1.8s infinite;
        }
        @keyframes pulse-green {
            0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7); }
            70% { transform: scale(1); box-shadow: 0 0 0 6px rgba(16, 185, 129, 0); }
            100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
        }
        .table > :not(caption) > * > * {
            padding: 0.95rem 0.85rem;
        }
        .post-row:hover {
            background-color: #f8fafc !important;
        }

/* --- Source: Areas\News\Views\TienIch\XemTkb.cshtml --- */
.tkb-hero {
        background: linear-gradient(135deg, #071936 0%, var(--sm-primary) 100%);
        color: #ffffff;
        border-radius: 1.25rem;
        padding: 1.75rem 2rem;
    }

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

    .sticky-th thead th {
        position: sticky;
        top: 0;
        z-index: 1;
        background: var(--sm-primary) !important;
        color: #ffffff !important;
        border-color: rgba(255, 255, 255, 0.2) !important;
        padding: 0.75rem;
    }

    .tkb-class-card {
        border: 1px solid var(--sm-border-color);
        border-radius: 1rem;
        padding: 1.25rem;
        margin-bottom: 1.25rem;
        background: #ffffff;
        box-shadow: 0 4px 12px rgba(15, 23, 42, 0.03);
    }

    @media print {
        .academic-topbar, .school-header, .public-navbar, .school-footer, .no-print, .page-head, .school-ai-fab {
            display: none !important;
        }
    }

/* --- Source: Areas\NghiepVu\Views\BienBanKiemTra\Dashboard.cshtml --- */
.exec-hero {
        background: var(--sm-hero-gradient);
        border-radius: 14px;
        color: #fff;
    }
    .kpi-card-exec {
        border-radius: 12px;
        border: 1px solid var(--sm-border-color);
        transition: transform .15s ease, box-shadow .15s ease;
        background: #fff;
    }
    .kpi-card-exec:hover {
        transform: translateY(-2px);
        box-shadow: 0 8px 20px rgba(15, 23, 42, 0.08);
    }
    .kpi-icon-box {
        width: 48px;
        height: 48px;
        border-radius: 12px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        font-size: 1.3rem;
    }
    .progress-thin {
        height: 8px;
        border-radius: 999px;
        background-color: var(--sm-border-color);
    }
    .dept-table th {
        font-size: 0.78rem;
        text-transform: uppercase;
        letter-spacing: 0.03em;
        color: #475569;
        background-color: #f8fafc;
    }
    .scrollable-panel {
        max-height: 430px;
        overflow-y: auto;
    }

/* --- Source: Areas\NghiepVu\Views\BienBanKiemTra\Index.cshtml --- */
.chip-signed { font-size: .75rem; }
    .title-link { text-decoration: none; }
    .title-link:hover { text-decoration: underline; }

/* --- Source: Areas\NghiepVu\Views\DriveHoSo\Index.cshtml --- */
/* ─── Tree styles ─── */
    .file-tree { list-style: none; padding-left: .75rem; margin: 0; }
    .tree-item { border-left: 2px solid transparent; transition: border-color .15s; }
    .tree-item:hover { border-left-color: #3b82f6; }
    .folder-header { cursor: pointer; user-select: none; transition: background .15s; }
    .folder-header:hover { background: var(--bs-light); }
    .folder-header .toggle-icon { transition: transform .2s; }
    .folder-header.open .toggle-icon { transform: rotate(90deg); }
    .children.hidden { display: none; }
    .hover-bg { transition: background .12s; }
    .hover-bg:hover { background: rgba(59,130,246,.06); border-radius: .375rem; }

    /* ─── Loading state ─── */
    #tree-container.loading { opacity: .5; pointer-events: none; }

    /* ─── Stat cards ─── */
    .stat-card { border: none; border-radius: .875rem; transition: transform .2s, box-shadow .2s; }
    .stat-card:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(0,0,0,.1)!important; }

    /* ─── Header gradient ─── */
    .page-header-gradient {
        background: var(--sm-hero-gradient);
        border-radius: 1rem;
    }

/* --- Source: Areas\NghiepVu\Views\TeachingAssignment\Dashboard.cshtml --- */
:root {
        --clr-vang:  #f59e0b;
        --clr-thay:  #3b82f6;
        --clr-bu:    #10b981;
        --clr-dark: var(--sm-text-main);
        --clr-muted: var(--sm-text-muted);
    }

    .db-header { background: var(--sm-hero-gradient); }

    /* KPI cards */
    .kpi-card {
        border-radius: 16px;
        border: none;
        transition: transform .2s, box-shadow .2s;
        position: relative; overflow: hidden;
    }
    .kpi-card:hover { transform: translateY(-4px); box-shadow: 0 12px 32px rgba(0,0,0,.15)!important; }
    .kpi-card .kpi-icon {
        width: 52px; height: 52px; border-radius: 14px;
        display: flex; align-items: center; justify-content: center;
        font-size: 1.4rem;
    }
    .kpi-card .kpi-num { font-size: 2.2rem; font-weight: 800; letter-spacing: -1px; }
    .kpi-card::after {
        content: ''; position: absolute; bottom: -20px; right: -20px;
        width: 80px; height: 80px; border-radius: 50%;
        background: rgba(255,255,255,.06);
    }

    /* Chart containers */
    .chart-wrap { position: relative; height: 260px; }

    /* Table styling */
    .stat-table thead { background: var(--clr-dark); color: #fff; }
    .stat-table tbody tr:hover { background-color: rgba(59,130,246,.06); }
    .badge-vang  { background: #fef3c7; color: #92400e; }
    .badge-thay  { background: var(--sm-primary-light); color: var(--sm-primary); }
    .badge-bu    { background: #d1fae5; color: #065f46; }

    /* Filter panel */
    .filter-panel { background: #f8fafc; border-radius: 14px; }

    /* Tabs */
    .nav-pills .nav-link.active { background: var(--clr-dark); }
    .nav-pills .nav-link        { color: var(--clr-dark); }

    .section-title { font-size: .7rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--clr-muted); }

/* --- Source: Areas\NghiepVu\Views\TeachingAssignment\Index.cshtml --- */
.chip-signed {
        font-size: 0.72rem;
        padding: 0.22rem 0.55rem;
    }
    .title-link {
        text-decoration: none;
        color: var(--bs-primary);
        font-weight: 600;
    }
    .title-link:hover {
        text-decoration: underline;
    }
    .pdf-lifecycle-box {
        min-width: 210px;
    }
    @media (max-width: 768px) {
        .hide-mobile {
            display: none;
        }
        .table-responsive {
            border: 0;
        }
    }

/* --- Source: Areas\OfficeAi\Views\HoSoVanBanAi\ChiTiet.cshtml --- */
.info-card {
        border-radius: 15px;
        transition: transform 0.3s;
        border: none;
        overflow: hidden;
    }
    .info-card:hover {
        transform: translateY(-5px);
        box-shadow: 0 10px 20px rgba(0,0,0,0.1);
    }
    .timeline-badge {
        width: 40px;
        height: 40px;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        color: white;
        font-weight: bold;
    }
    .abstract-text {
        font-size: 1.15rem;
        line-height: 1.6;
        color: #333;
        border-left: 4px solid var(--sm-primary);
        padding-left: 1.5rem;
        background-color: #f8f9fa;
        padding: 1.5rem;
        border-radius: 0 10px 10px 0;
    }
    .suggestion-card {
        background: linear-gradient(135deg, #fff 0%, #eef2f7 100%);
        border-right: 5px solid #ffc107;
        position: relative;
    }
    .suggestion-card::before {
        content: '\f0eb'; /* lightbulb */
        font-family: "Font Awesome 5 Free";
        font-weight: 900;
        position: absolute;
        right: 20px;
        top: 20px;
        font-size: 3rem;
        opacity: 0.1;
        color: #ffc107;
    }
    /* ── Task content truncate ── */
    .task-content-wrap {
        word-break: break-word;
        overflow-wrap: anywhere;
        line-height: 1.5;
    }
    .task-text {
        white-space: pre-wrap;
    }

/* --- Source: Areas\OfficeAi\Views\HoSoVanBanAi\Dashboard.cshtml --- */
/* ── Tổng thể: nền sáng, chữ tối, xanh primary ── */
.db-page { background: #f0f4f8; min-height: 100vh; }

/* Header */
.db-header {
    background: var(--sm-hero-gradient);
    padding: 28px 36px 24px;
    border-radius: 0 0 20px 20px;
    margin-bottom: 28px;
    box-shadow: 0 4px 20px rgba(13,110,253,.25);
}
.db-header h1 { font-size: 1.6rem; font-weight: 800; color: #fff; margin: 0; letter-spacing: -0.3px; }
.db-header p  { color: rgba(255,255,255,.8); margin: 4px 0 0; font-size: .9rem; }

/* KPI Cards — 2 hàng 4 cột */
.kpi-grid-4 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
    margin-bottom: 6px;
}
@media (max-width: 992px) {
    .kpi-grid-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 576px) {
    .kpi-grid-4 { grid-template-columns: 1fr; }
}
.kpi-section-label {
    font-size: .72rem; font-weight: 700; text-transform: uppercase;
    letter-spacing: .08em; color: var(--sm-text-muted);
    margin: 16px 0 8px;
    display: flex; align-items: center; gap: 8px;
}
.kpi-section-label::after {
    content: ''; flex: 1; height: 1px; background: var(--sm-border-color);
}
.kpi-card {
    background: #fff;
    border-radius: 16px;
    padding: 22px 20px 18px;
    border: 1px solid var(--sm-border-color);
    box-shadow: 0 2px 8px rgba(0,0,0,.06);
    transition: transform .2s, box-shadow .2s;
    position: relative;
    overflow: hidden;
}
.kpi-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(0,0,0,.1);
}
.kpi-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 4px;
    border-radius: 16px 16px 0 0;
}
.kpi-icon  { font-size: 1.8rem; margin-bottom: 10px; }
.kpi-value { font-size: 2.2rem; font-weight: 800; line-height: 1; color: #1e293b; }
.kpi-label { font-size: .73rem; font-weight: 600; text-transform: uppercase;
             letter-spacing: .06em; margin-top: 6px; color: var(--sm-text-muted); }

/* Màu theo loại */
.kpi-blue   { border-top: 4px solid var(--sm-primary); }
.kpi-blue   .kpi-value { color: var(--sm-primary); }
.kpi-green  { border-top: 4px solid #16a34a; }
.kpi-green  .kpi-value { color: #16a34a; }
.kpi-amber  { border-top: 4px solid #d97706; }
.kpi-amber  .kpi-value { color: #d97706; }
.kpi-red    { border-top: 4px solid #dc2626; }
.kpi-red    .kpi-value { color: #dc2626; }
.kpi-indigo { border-top: 4px solid #4f46e5; }
.kpi-indigo .kpi-value { color: #4f46e5; }

/* Panel Cards */
.panel-card {
    background: #fff;
    border-radius: 16px;
    border: 1px solid var(--sm-border-color);
    box-shadow: 0 2px 8px rgba(0,0,0,.05);
    overflow: hidden;
    height: 100%;
}
.panel-card .panel-header {
    background: #f8fafc;
    border-bottom: 1px solid var(--sm-border-color);
    padding: 14px 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}
.panel-card .panel-header h5 {
    font-size: .95rem; font-weight: 700;
    color: #1e293b; margin: 0;
}
.panel-card .panel-header .panel-icon {
    width: 32px; height: 32px;
    background: rgba(13,110,253,.1);
    border-radius: 8px;
    display: flex; align-items: center; justify-content: center;
    color: var(--sm-primary); font-size: .9rem;
}
.panel-body { padding: 20px; }

/* Bar chart */
.bar-chart { display: flex; align-items: flex-end; gap: 6px; height: 140px; }
.bar-wrap  { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 3px; height: 100%; }
.bar       { width: 100%; background: linear-gradient(180deg, var(--sm-primary) 0%, rgba(13,110,253,.2) 100%);
             border-radius: 6px 6px 0 0; min-height: 3px; transition: height .9s ease; }
.bar-lbl   { font-size: .65rem; color: var(--sm-text-muted); font-weight: 500; }
.bar-cnt   { font-size: .7rem; font-weight: 700; color: var(--sm-primary); }

/* Progress bar - dept */
.dept-row { margin-bottom: 14px; }
.dept-name {
    font-size: .84rem; font-weight: 600; color: #1e293b;
    display: flex; justify-content: space-between; margin-bottom: 6px;
}
.dept-name span:last-child { color: var(--sm-primary); font-weight: 700; }
.prog-bg   { height: 10px; background: var(--sm-border-color); border-radius: 99px; overflow: hidden; }
.prog-fill { height: 100%; border-radius: 99px;
             background: linear-gradient(90deg, var(--sm-primary), #60a5fa);
             transition: width 1.3s cubic-bezier(.4,0,.2,1); }

/* Deadline table */
.dl-table   { width: 100%; border-collapse: collapse; }
.dl-table th {
    font-size: .73rem; font-weight: 700; text-transform: uppercase;
    letter-spacing: .05em; color: var(--sm-text-muted);
    padding: 8px 14px; border-bottom: 2px solid var(--sm-border-color); text-align: left;
}
.dl-table td { padding: 11px 14px; border-bottom: 1px solid #f1f5f9;
               font-size: .85rem; color: #334155; }
.dl-table tr:last-child td { border-bottom: none; }
.dl-table tbody tr:hover td { background: #f0f7ff; }
.badge-cat  {
    background: rgba(13,110,253,.08); color: var(--sm-primary);
    border: 1px solid rgba(13,110,253,.2);
    border-radius: 6px; padding: 3px 9px; font-size: .73rem; font-weight: 600;
}
.badge-warn { background: #fef3c7; color: #92400e;
              border: 1px solid #fde68a; border-radius: 6px; padding: 3px 9px;
              font-size: .73rem; font-weight: 600; }
.badge-danger { background: #fee2e2; color: #991b1b;
                border: 1px solid #fca5a5; border-radius: 6px; padding: 3px 9px;
                font-size: .73rem; font-weight: 600; }

/* Alert empty */
.empty-box {
    text-align: center; padding: 36px 20px;
    color: var(--sm-text-muted); font-size: .9rem;
}
.empty-box i { font-size: 2.5rem; color: #93c5fd; margin-bottom: 12px; display: block; }

/* --- Source: Areas\OfficeAi\Views\HoSoVanBanAi\Index.cshtml --- */
@keyframes fadeInDown {
        from { opacity: 0; transform: translateY(-10px); }
        to { opacity: 1; transform: translateY(0); }
    }

/* --- Source: Areas\OfficeAi\Views\HoSoVanBanAi\ThanhTraView.cshtml --- */
body.sm-thanhtra-body { background-color: #f8fafc; font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; color: #1e293b; }
        .inspect-header {
            background: var(--sm-hero-gradient);
            color: white;
            padding: 30px 0;
            border-bottom: 4px solid #3b82f6;
            margin-bottom: 30px;
        }
        .inspect-header h2 { font-weight: 700; letter-spacing: -0.5px; }
        .kpi-card {
            background: white; border-radius: 12px; padding: 20px;
            box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1); border: 1px solid var(--sm-border-color);
            text-align: center;
        }
        .kpi-val { font-size: 2.5rem; font-weight: 800; color: #3b82f6; }
        .kpi-lbl { font-size: 0.85rem; font-weight: 600; text-transform: uppercase; color: var(--sm-text-muted); margin-top: 5px; }
        .task-card {
            background: white; border-radius: 12px; padding: 20px; margin-bottom: 20px;
            box-shadow: 0 2px 4px rgba(0,0,0,0.05); border: 1px solid var(--sm-border-color);
            border-left: 4px solid #94a3b8;
        }
        .task-card.done { border-left-color: #22c55e; }
        .task-card.pending { border-left-color: #f59e0b; }
        .task-card.overdue { border-left-color: #ef4444; }
        
        .badge-info-custom { background-color: var(--sm-primary-light); color: #0369a1; padding: 5px 10px; border-radius: 6px; font-size: 0.8rem; font-weight: 600; }
        .evidence-box { background-color: #f1f5f9; padding: 15px; border-radius: 8px; margin-top: 15px; }
        .evidence-link {
            display: inline-flex; align-items: center; gap: 8px;
            background: white; padding: 8px 12px; border-radius: 6px;
            border: 1px solid #cbd5e1; color: #334155; text-decoration: none;
            font-size: 0.85rem; font-weight: 500; transition: all 0.2s;
            margin-right: 10px; margin-bottom: 10px;
        }
        .evidence-link:hover { background: #f8fafc; border-color: #475569; color: #0f172a; }

/* --- Source: Areas\OfficeAi\Views\HoSoVanBanAi\Upload.cshtml --- */
.hover-scale {
        transition: transform 0.2s ease-in-out;
    }
    .hover-scale:hover {
        transform: scale(1.02);
    }

/* --- Source: Areas\OfficeAi\Views\QuanLyCongViec\Index.cshtml --- */
:root {
        --premium-blue: var(--sm-text-main);
        --premium-accent: #3b82f6;
        --glass-bg: rgba(255, 255, 255, 0.7);
    }

    .dashboard-card {
        border: 1px solid var(--sm-border-color);
        border-radius: 1.1rem;
        transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
        overflow: hidden;
        background: white;
        box-shadow: 0 2px 4px rgba(15, 23, 42, 0.04);
        cursor: pointer;
    }

    .dashboard-card:hover {
        transform: translateY(-3px);
        box-shadow: 0 12px 20px -5px rgba(15, 23, 42, 0.1);
        border-color: #cbd5e1;
    }

    .dashboard-card.active-kpi {
        ring: 2px solid var(--sm-primary);
        border-color: var(--sm-primary) !important;
        background: #f8fafc;
    }

    .icon-box {
        width: 44px;
        height: 44px;
        border-radius: 12px;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 1.15rem;
        flex-shrink: 0;
    }

    .task-table {
        border-radius: 1rem;
        overflow: hidden;
        border: none;
        box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1);
        table-layout: fixed;
        width: 100%;
    }

    .task-table thead th {
        background-color: #f8fafc;
        color: #475569;
        font-weight: 700;
        text-transform: uppercase;
        font-size: 0.73rem;
        letter-spacing: 0.04em;
        padding: 0.9rem 1rem;
        border: none;
    }

    .task-table tbody td {
        padding: 1rem;
        vertical-align: middle;
        color: #1e293b;
        border-bottom: 1px solid #f1f5f9;
        font-size: 0.92rem;
        max-width: 0;
        overflow: hidden;
        word-wrap: break-word;
        overflow-wrap: anywhere;
    }

    .badge-premium {
        padding: 0.4rem 0.75rem;
        border-radius: 9999px;
        font-weight: 600;
        font-size: 0.75rem;
        display: inline-flex;
        align-items: center;
        gap: 0.35rem;
    }

    .btn-premium {
        background: var(--sm-hero-gradient);
        color: white;
        border: none;
        padding: 0.6rem 1.25rem;
        border-radius: 0.75rem;
        font-weight: 600;
        transition: all 0.2s;
    }

    .btn-premium:hover {
        background: linear-gradient(135deg, var(--sm-primary), var(--sm-primary));
        color: white;
        transform: translateY(-1px);
    }

    .filter-bar {
        background: white;
        border-radius: 1rem;
        padding: 1.1rem 1.25rem;
        box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
        margin-bottom: 1.25rem;
    }

    .quick-chip {
        border-radius: 999px;
        font-size: 0.8rem;
        font-weight: 600;
        padding: 0.35rem 0.85rem;
        transition: all 0.15s;
        border: 1px solid var(--sm-border-color);
        background: #f8fafc;
        color: #475569;
        text-decoration: none;
        display: inline-flex;
        align-items: center;
        gap: 0.35rem;
    }

    .quick-chip:hover {
        background: var(--sm-border-color);
        color: #0f172a;
    }

    .quick-chip.active {
        background: #0f172a;
        color: #fff;
        border-color: #0f172a;
    }

    .progress-compact {
        height: 6px;
        border-radius: 3px;
        background-color: #f1f5f9;
    }

    .avatar-sm {
        width: 32px;
        height: 32px;
        border-radius: 50%;
        background-color: var(--sm-border-color);
        display: flex;
        align-items: center;
        justify-content: center;
        font-weight: bold;
        color: #475569;
        font-size: 0.8rem;
    }

    /* Kanban Styles */
    .kanban-column {
        background-color: #f1f5f9;
        border-radius: 1rem;
        padding: 1rem;
        min-height: 500px;
        height: 100%;
    }
    .kanban-list {
        min-height: 400px;
    }
    .kanban-card {
        background: white;
        border-radius: 0.75rem;
        padding: 0.9rem;
        margin-bottom: 0.85rem;
        box-shadow: 0 1px 3px rgba(0,0,0,0.08);
        border-left: 4px solid #cbd5e1;
        cursor: grab;
        transition: transform 0.2s, box-shadow 0.2s;
    }
    .kanban-card:active {
        cursor: grabbing;
    }
    .kanban-card:hover {
        box-shadow: 0 6px 12px rgba(0,0,0,0.1);
        transform: translateY(-2px);
    }
    .kanban-column-title {
        font-weight: 700;
        margin-bottom: 1rem;
        display: flex;
        justify-content: space-between;
        align-items: center;
    }
    .kanban-count {
        background: var(--sm-border-color);
        color: #475569;
        border-radius: 1rem;
        padding: 0.1rem 0.6rem;
        font-size: 0.8rem;
    }
    .sortable-ghost {
        opacity: 0.4;
        background-color: #f8fafc;
    }

    /* Task Detail Slide-over Drawer */
    .drawer-section-card {
        background: #ffffff;
        border: 1px solid var(--sm-border-color);
        border-radius: 0.85rem;
        padding: 1rem;
        margin-bottom: 1rem;
    }

/* --- Source: Areas\OfficeAi\Views\QuanLyCongViec\XacNhanThanhCong.cshtml --- */
body.sm-xacnhan-body {
            font-family: 'Inter', sans-serif;
            background: var(--sm-hero-gradient);
            min-height: 100vh;
            display: flex;
            align-items: center;
            justify-content: center;
            padding: 1rem;
        }
        .sm-xacnhan-body .card {
            background: rgba(255,255,255,0.07);
            backdrop-filter: blur(20px);
            border: 1px solid rgba(255,255,255,0.15);
            border-radius: 20px;
            padding: 2.5rem 2rem;
            max-width: 480px;
            width: 100%;
            text-align: center;
            color: #fff;
            box-shadow: 0 25px 60px rgba(0,0,0,0.4);
        }
        .sm-xacnhan-body .icon { font-size: 4rem; margin-bottom: 1rem; animation: pop 0.4s ease; }
        @keyframes pop {
            0%   { transform: scale(0.5); opacity: 0; }
            70%  { transform: scale(1.15); }
            100% { transform: scale(1); opacity: 1; }
        }
        .sm-xacnhan-body h1 { font-size: 1.5rem; font-weight: 700; margin-bottom: 0.5rem; }
        .sm-xacnhan-body .subtitle { color: rgba(255,255,255,0.65); font-size: 0.9rem; margin-bottom: 2rem; }
        .sm-xacnhan-body .info-box {
            background: rgba(255,255,255,0.08);
            border-radius: 12px;
            padding: 1.2rem;
            text-align: left;
            margin-bottom: 1.5rem;
        }
        .sm-xacnhan-body .info-row { display: flex; gap: 0.5rem; margin-bottom: 0.6rem; font-size: 0.875rem; }
        .sm-xacnhan-body .info-row:last-child { margin-bottom: 0; }
        .sm-xacnhan-body .info-label { color: rgba(255,255,255,0.55); min-width: 100px; flex-shrink: 0; }
        .sm-xacnhan-body .info-value { color: #e2e8f0; font-weight: 500; }
        .sm-xacnhan-body .badge {
            display: inline-block;
            padding: 0.2rem 0.75rem;
            border-radius: 20px;
            font-size: 0.78rem;
            font-weight: 600;
            background: #22c55e;
            color: #fff;
        }
        .sm-xacnhan-body .badge-info { background: #3b82f6; }
        .sm-xacnhan-body .deadline {
            color: #fbbf24;
            font-weight: 600;
        }
        .sm-xacnhan-body .btn-close {
            display: inline-block;
            margin-top: 0.5rem;
            padding: 0.75rem 2rem;
            background: linear-gradient(135deg, #3b82f6, var(--sm-primary));
            color: #fff;
            border-radius: 12px;
            font-weight: 600;
            text-decoration: none;
            font-size: 0.9rem;
            transition: transform 0.15s, box-shadow 0.15s;
        }
        .sm-xacnhan-body .btn-close:hover {
            transform: translateY(-2px);
            box-shadow: 0 8px 20px rgba(37,99,235,0.4);
            color: #fff;
        }
        .sm-xacnhan-body .footer-note {
            margin-top: 1.5rem;
            color: rgba(255,255,255,0.35);
            font-size: 0.78rem;
        }

/* --- Source: Areas\Settings\Views\Users\Index.cshtml --- */
.perm-page {
            --perm-border: var(--sm-border-color);
            --perm-bg-soft: #f8fafc;
            --perm-text-main: #0f172a;
            --perm-text-muted: var(--sm-text-muted);
            color: var(--perm-text-main);
        }

        /* Quick Filter Stat Cards */
        .stat-filter-grid {
            display: grid;
            grid-template-columns: repeat(5, 1fr);
            gap: 0.85rem;
            margin-bottom: 1.25rem;
        }

        @media (max-width: 1199.98px) {
            .stat-filter-grid {
                grid-template-columns: repeat(3, 1fr);
            }
        }

        @media (max-width: 767.98px) {
            .stat-filter-grid {
                grid-template-columns: repeat(2, 1fr);
            }
        }

        .stat-filter-card {
            background: #fff;
            border: 1px solid var(--perm-border);
            border-radius: 14px;
            padding: 0.95rem 1.1rem;
            cursor: pointer;
            transition: all 0.18s ease;
            display: flex;
            align-items: center;
            justify-content: space-between;
            user-select: none;
        }

        .stat-filter-card:hover {
            border-color: #cbd5e1;
            transform: translateY(-2px);
            box-shadow: 0 6px 16px -6px rgba(15, 23, 42, 0.08);
        }

        .stat-filter-card.active {
            border-color: var(--sm-primary);
            background: var(--sm-primary-light);
            box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
        }

        .stat-filter-num {
            font-size: 1.5rem;
            font-weight: 800;
            line-height: 1.1;
            color: #0f172a;
        }

        .stat-filter-label {
            font-size: 0.8rem;
            font-weight: 600;
            color: var(--perm-text-muted);
            margin-top: 0.2rem;
        }

        .stat-filter-icon {
            width: 40px;
            height: 40px;
            border-radius: 10px;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 1.05rem;
            flex-shrink: 0;
        }

        /* Main Surface Card */
        .perm-card {
            background: #fff;
            border: 1px solid var(--perm-border);
            border-radius: 16px;
            box-shadow: 0 1px 3px rgba(15, 23, 42, 0.03);
            overflow: hidden;
        }

        .perm-toolbar {
            padding: 1rem 1.25rem;
            background: var(--perm-bg-soft);
            border-bottom: 1px solid var(--perm-border);
        }

        /* Bulk Action Bar */
        .bulk-bar {
            background: #1e293b;
            color: #fff;
            padding: 0.75rem 1.25rem;
            display: none;
            align-items: center;
            justify-content: space-between;
            gap: 1rem;
            flex-wrap: wrap;
            border-bottom: 1px solid #334155;
        }

        .bulk-bar.show {
            display: flex;
        }

        /* User Avatar & Info */
        .user-cell {
            display: flex;
            align-items: center;
            gap: 0.75rem;
        }

        .user-avatar {
            width: 38px;
            height: 38px;
            border-radius: 10px;
            background: #e0e7ff;
            color: #3730a3;
            font-weight: 700;
            font-size: 0.82rem;
            display: flex;
            align-items: center;
            justify-content: center;
            flex-shrink: 0;
        }

        .user-row.inactive-user .user-avatar {
            background: #f1f5f9;
            color: #94a3b8;
        }

        .user-row.inactive-user .user-name {
            color: var(--sm-text-muted);
            text-decoration: line-through;
        }

        .user-name {
            font-weight: 600;
            font-size: 0.92rem;
            color: #0f172a;
            line-height: 1.25;
        }

        .user-email {
            font-size: 0.78rem;
            color: var(--perm-text-muted);
        }

        .dept-badge {
            display: inline-flex;
            align-items: center;
            gap: 0.35rem;
            padding: 0.3rem 0.65rem;
            border-radius: 8px;
            font-size: 0.78rem;
            font-weight: 600;
            background: #f1f5f9;
            color: #334155;
            border: 1px solid var(--sm-border-color);
        }

        /* Interactive Role Chips */
        .role-chips-wrap {
            display: flex;
            flex-wrap: wrap;
            gap: 0.4rem;
            align-items: center;
        }

        .role-chip {
            border-radius: 999px;
            padding: 0.28rem 0.72rem;
            font-size: 0.78rem;
            font-weight: 600;
            display: inline-flex;
            align-items: center;
            gap: 0.35rem;
            cursor: pointer;
            transition: all 0.15s ease;
            border: 1px dashed #cbd5e1;
            background: #fff;
            color: var(--sm-text-muted);
            user-select: none;
        }

        .role-chip:hover {
            border-style: solid;
            border-color: #94a3b8;
            color: #0f172a;
            background: #f8fafc;
        }

        .role-chip .chip-icon {
            font-size: 0.7rem;
            opacity: 0.65;
        }

        /* Active states by badge color */
        .role-chip.active {
            border-style: solid;
        }

        .role-chip.active .chip-icon {
            opacity: 1;
        }

        .role-chip.active.chip-danger {
            background: #fef2f2;
            color: #dc2626;
            border-color: #fca5a5;
        }

        .role-chip.active.chip-primary {
            background: var(--sm-primary-light);
            color: var(--sm-primary);
            border-color: #93c5fd;
        }

        .role-chip.active.chip-info {
            background: #ecfeff;
            color: #0891b2;
            border-color: #67e8f9;
        }

        .role-chip.active.chip-success {
            background: #f0fdf4;
            color: #16a34a;
            border-color: #86efac;
        }

        .role-chip.active.chip-warning {
            background: #fffbeb;
            color: #d97706;
            border-color: #fcd34d;
        }

        .role-chip.active.chip-secondary {
            background: #f1f5f9;
            color: #334155;
            border-color: #94a3b8;
        }

        /* Save feedback pill */
        .save-badge {
            font-size: 0.75rem;
            font-weight: 600;
            padding: 0.2rem 0.55rem;
            border-radius: 6px;
            display: inline-flex;
            align-items: center;
            gap: 0.3rem;
        }

        .table-perm th {
            font-size: 0.76rem;
            text-transform: uppercase;
            letter-spacing: 0.04em;
            color: #475569;
            font-weight: 700;
            background: #f8fafc;
            border-bottom: 1px solid var(--perm-border);
            padding: 0.8rem 1rem;
        }

        .table-perm td {
            padding: 0.85rem 1rem;
            vertical-align: middle;
            border-bottom: 1px solid #f1f5f9;
        }

        .table-perm tbody tr:hover {
            background-color: #f8fafc;
        }

        .status-switch-wrap {
            display: inline-flex;
            align-items: center;
            gap: 0.45rem;
        }

        .status-switch-wrap .form-check-input {
            width: 2.35rem;
            height: 1.2rem;
            cursor: pointer;
        }

        .status-label {
            font-size: 0.78rem;
            font-weight: 600;
        }

        /* Floating Toast */
        .perm-toast {
            position: fixed;
            bottom: 1.5rem;
            right: 1.5rem;
            z-index: 1080;
            background: #0f172a;
            color: #fff;
            padding: 0.75rem 1.15rem;
            border-radius: 12px;
            box-shadow: 0 10px 25px -5px rgba(15, 23, 42, 0.35);
            font-size: 0.86rem;
            font-weight: 500;
            display: flex;
            align-items: center;
            gap: 0.6rem;
            transform: translateY(20px);
            opacity: 0;
            pointer-events: none;
            transition: all 0.2s ease;
        }

        .perm-toast.show {
            transform: translateY(0);
            opacity: 1;
        }

/* --- Source: Areas\Settings\Views\XsltTemplate\Create.cshtml --- */
/* Dùng lại style của trang Edit */
    .xslt-editor {
        font-family: Consolas, 'Courier New', monospace;
        font-size: 0.9rem;
        line-height: 1.6;
        background-color: #f4f4f4;
        border: 1px solid #ccc;
        border-radius: 4px;
        min-height: 500px;
    }

/* --- Source: Areas\Settings\Views\XsltTemplate\Edit.cshtml --- */
.xslt-editor { font-family: Consolas, 'Courier New', monospace; font-size: 0.9rem; min-height: 500px; }

/* --- Source: Areas\StudentManagement\Views\Dashboard\Index.cshtml --- */
/* =========================================================
       CSS TÙY BIẾN CHO DASHBOARD ĐIỀU HÀNH DÀNH CHO HIỆU TRƯỞNG
       ========================================================= */
    :root {
        --dash-primary: var(--sm-primary);
        --dash-card-radius: 1rem;
    }

    /* Executive Header */
    .executive-header {
        background: var(--sm-hero-gradient);
        color: #fff;
        border-radius: var(--dash-card-radius);
        padding: 1.5rem 1.75rem;
        box-shadow: 0 10px 25px -5px rgba(15, 23, 42, 0.25);
        margin-bottom: 1.5rem;
    }

    /* KPI Cards */
    .kpi-card {
        border: 0;
        border-radius: var(--dash-card-radius);
        color: #fff;
        padding: 1.25rem 1.4rem;
        min-height: 125px;
        transition: transform 0.2s ease, box-shadow 0.2s ease;
        position: relative;
        overflow: hidden;
    }

    .kpi-card:hover {
        transform: translateY(-3px);
        box-shadow: 0 12px 24px -6px rgba(0, 0, 0, 0.2);
    }

    .kpi-card::after {
        content: "";
        position: absolute;
        top: -20px;
        right: -20px;
        width: 100px;
        height: 100px;
        background: rgba(255, 255, 255, 0.08);
        border-radius: 50%;
        pointer-events: none;
    }

    .kpi-card .kpi-icon {
        font-size: 2.25rem;
        opacity: 0.8;
    }

    .kpi-card .kpi-title {
        font-size: 0.8rem;
        font-weight: 600;
        letter-spacing: 0.05em;
        text-transform: uppercase;
        opacity: 0.88;
        margin-bottom: 0.35rem;
    }

    .kpi-card .kpi-value {
        font-size: 1.85rem;
        font-weight: 700;
        line-height: 1.2;
    }

    .kpi-card .kpi-sub {
        font-size: 0.8rem;
        opacity: 0.9;
        margin-top: 0.4rem;
    }

    /* Card Gradients */
    .bg-grad-students { background: var(--sm-hero-gradient); }
    .bg-grad-classes  { background: linear-gradient(135deg, #065f46, #10b981); }
    .bg-grad-gender   { background: linear-gradient(135deg, #0e7490, #06b6d4); }
    .bg-grad-bhyt     { background: linear-gradient(135deg, #15803d, #22c55e); }
    .bg-grad-honors   { background: linear-gradient(135deg, #b45309, #f59e0b); }
    .bg-grad-zalo     { background: linear-gradient(135deg, #4338ca, #6366f1); }
    .bg-grad-policy   { background: linear-gradient(135deg, #be123c, #f43f5e); }
    .bg-grad-absence  { background: linear-gradient(135deg, #c2410c, #ea580c); }

    /* Standard Cards */
    .card-dashboard {
        border: 0;
        border-radius: var(--dash-card-radius);
        box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04);
        background: #fff;
        margin-bottom: 1.5rem;
    }

    .card-dashboard .card-header {
        background: #fff;
        border-bottom: 1px solid #f1f5f9;
        padding: 1rem 1.25rem;
        border-top-left-radius: var(--dash-card-radius);
        border-top-right-radius: var(--dash-card-radius);
    }

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

    .donut-container {
        position: relative;
        height: 250px;
    }

    /* Table */
    .table-modern thead th {
        background: #f8fafc;
        color: #475569;
        font-weight: 600;
        font-size: 0.82rem;
        text-transform: uppercase;
        letter-spacing: 0.03em;
        border-bottom: 2px solid var(--sm-border-color);
        white-space: nowrap;
    }

    .table-modern tbody td {
        vertical-align: middle;
        font-size: 0.9rem;
    }

    .badge-dot {
        width: 8px;
        height: 8px;
        border-radius: 50%;
        display: inline-block;
        margin-right: 6px;
    }

    /* Print Stylesheet */
    @media print {
        #sidebar, #topbar, .navbar, .btn, .d-print-none, form, .modal {
            display: none !important;
        }
        body, #wrapper, #content-wrapper, #content, .container-fluid {
            background: #fff !important;
            color: #000 !important;
            padding: 0 !important;
            margin: 0 !important;
        }
        .card, .card-dashboard {
            border: 1px solid #ddd !important;
            box-shadow: none !important;
            break-inside: avoid;
        }
        .executive-header {
            background: #f8fafc !important;
            color: #000 !important;
            border: 1px solid #ccc !important;
            box-shadow: none !important;
        }
        .d-print-block {
            display: block !important;
        }
    }

/* --- Source: Areas\StudentManagement\Views\Dashboard\ZaloLinkStats.cshtml --- */
/* ====== Custom Styles ====== */
    .stat-card {
        border: 0;
        border-radius: .9rem;
        box-shadow: 0 6px 18px rgba(0,0,0,.06);
        color: #fff;
        min-height: 112px;
    }

        .stat-card .card-body {
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 12px;
        }

    .progress-compact {
        height: 8px;
    }

    .pct-inline {
        display: flex;
        align-items: center;
        gap: 10px;
        white-space: nowrap;
    }

        .pct-inline .progress {
            flex: 1 1 auto;
            min-width: 120px;
            margin: 0;
        }

    .table td, .table th {
        vertical-align: middle;
    }

    /* 👇 dùng CSS @media thường, không bị Razor hiểu nhầm */
    @media (max-width: 575.98px) {
        .pct-inline .progress

    {
        min-width: 90px;
    }

    }

/* --- Source: Areas\StudentManagement\Views\Students\PrintAccountCards.cshtml --- */
:root {
            --primary-color: var(--sm-primary);
            --accent-color: #d97706;
            --border-card: var(--sm-border-color);
        }

        body.sm-print-cards-body {
            font-family: 'Segoe UI', Arial, sans-serif;
            background-color: #f1f5f9;
            color: #1e293b;
            margin: 0;
            padding: 0;
        }

        /* Thanh điều khiển trên cùng (Ẩn khi in) */
        .control-bar {
            background: #ffffff;
            border-bottom: 2px solid var(--sm-border-color);
            padding: 12px 24px;
            position: sticky;
            top: 0;
            z-index: 1000;
            box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.08);
        }

        .print-container {
            max-width: 210mm;
            margin: 20px auto;
            background: #ffffff;
            box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1);
            padding: 10mm;
            box-sizing: border-box;
        }

        /* Lưới 2 cột cho thẻ */
        .cards-grid {
            display: grid;
            grid-template-columns: repeat(2, 1fr);
            gap: 12px;
        }

        /* Từng thẻ tài khoản */
        .account-card {
            border: 1.5px dashed #94a3b8;
            border-radius: 8px;
            padding: 12px 14px;
            background: #ffffff;
            page-break-inside: avoid;
            break-inside: avoid;
            position: relative;
            display: flex;
            flex-direction: column;
            justify-content: space-between;
            box-sizing: border-box;
            min-height: 86mm;
        }

        .account-card::before {
            content: "\f0c4";
            font-family: "Font Awesome 6 Free";
            font-weight: 900;
            position: absolute;
            top: -9px;
            left: 12px;
            font-size: 11px;
            color: #94a3b8;
            background: #ffffff;
            padding: 0 4px;
        }

        .card-header-mini {
            border-bottom: 1px solid var(--sm-border-color);
            padding-bottom: 6px;
            margin-bottom: 8px;
            display: flex;
            justify-content: space-between;
            align-items: center;
        }

        .school-title {
            font-size: 0.72rem;
            text-transform: uppercase;
            font-weight: 700;
            color: var(--primary-color);
            line-height: 1.2;
        }

        .card-badge {
            background-color: var(--sm-primary-light);
            color: var(--primary-color);
            border: 1px solid #bfdbfe;
            border-radius: 4px;
            padding: 2px 6px;
            font-size: 0.68rem;
            font-weight: 700;
            text-transform: uppercase;
            letter-spacing: 0.5px;
        }

        .student-name {
            font-size: 1rem;
            font-weight: 800;
            color: #0f172a;
            text-transform: uppercase;
            margin-bottom: 2px;
        }

        .student-meta {
            font-size: 0.78rem;
            color: #475569;
            margin-bottom: 8px;
        }

        .student-meta span {
            margin-right: 8px;
        }

        /* Hộp mật khẩu & Tên đăng nhập */
        .credential-box {
            background: #f8fafc;
            border: 1px solid var(--sm-border-color);
            border-left: 3.5px solid var(--primary-color);
            border-radius: 6px;
            padding: 8px 10px;
            margin-bottom: 8px;
        }

        .credential-row {
            display: flex;
            justify-content: space-between;
            align-items: center;
            font-size: 0.8rem;
            margin-bottom: 4px;
        }

        .credential-row:last-child {
            margin-bottom: 0;
        }

        .credential-label {
            color: var(--sm-text-muted);
            font-weight: 600;
        }

        .credential-val {
            font-family: 'Consolas', 'Courier New', monospace;
            font-weight: 700;
            font-size: 0.95rem;
            letter-spacing: 0.5px;
            color: #0f172a;
        }

        .pin-val {
            color: #b45309;
            background: #fef3c7;
            padding: 1px 6px;
            border-radius: 4px;
            border: 1px dashed #f59e0b;
        }

        .card-footer-mini {
            border-top: 1px dotted #cbd5e1;
            padding-top: 6px;
            font-size: 0.68rem;
            color: var(--sm-text-muted);
            line-height: 1.3;
        }

        .card-footer-mini .instruction {
            font-style: italic;
        }

        .portal-url {
            color: var(--primary-color);
            font-weight: 600;
            word-break: break-all;
        }

        /* Cấu hình IN ẤN CHUẨN A4 */
        @media print {
            .no-print {
                display: none !important;
            }

            body {
                background: #ffffff !important;
                padding: 0 !important;
            }

            .print-container {
                max-width: 100% !important;
                margin: 0 !important;
                padding: 0 !important;
                box-shadow: none !important;
            }

            .cards-grid {
                grid-template-columns: repeat(2, 1fr) !important;
                gap: 8mm !important;
            }

            .account-card {
                border: 1px dashed var(--sm-text-muted) !important;
                min-height: 85mm !important;
                -webkit-print-color-adjust: exact !important;
                print-color-adjust: exact !important;
            }

            .pin-val {
                background-color: #fef3c7 !important;
                -webkit-print-color-adjust: exact !important;
                print-color-adjust: exact !important;
            }

            .card-badge {
                background-color: var(--sm-primary-light) !important;
                -webkit-print-color-adjust: exact !important;
                print-color-adjust: exact !important;
            }

            .credential-box {
                background-color: #f8fafc !important;
                -webkit-print-color-adjust: exact !important;
                print-color-adjust: exact !important;
            }
        }

        @page {
            size: A4 portrait;
            margin: 8mm;
        }

/* --- Source: Areas\StudentManagement\Views\TuyenSinh\CapNhatThongTin.cshtml --- */
.update-card {
            max-width: 780px;
            margin: 1rem auto;
            border-radius: 20px;
            overflow: hidden;
            box-shadow: 0 12px 32px rgba(15, 23, 42, 0.08);
            border: 1px solid var(--sm-border-color);
            background: #ffffff;
        }

        .update-header {
            background: linear-gradient(135deg, var(--sm-primary-dark) 0%, var(--sm-primary) 100%);
            padding: 1.5rem 1.75rem;
            color: #ffffff;
        }

        .readonly-field {
            background-color: #f1f5f9;
            color: #334155;
            font-weight: 600;
        }

/* --- Source: Areas\StudentManagement\Views\TuyenSinh\DaToTon.cshtml --- */
.lookup-card {
            max-width: 640px;
            margin: 1rem auto;
            border-radius: 20px;
            overflow: hidden;
            box-shadow: 0 12px 32px rgba(15, 23, 42, 0.08);
            border: 1px solid var(--sm-border-color);
            background: #ffffff;
        }

        .lookup-header {
            background: linear-gradient(135deg, var(--sm-primary-dark) 0%, var(--sm-primary) 100%);
            padding: 1.6rem 1.75rem;
            color: #ffffff;
        }

        .info-table td {
            padding: 0.65rem 0.85rem;
            border-bottom: 1px solid #f1f5f9;
            font-size: 0.95rem;
        }

        .info-table tr:last-child td {
            border-bottom: none;
        }

        .info-table td:first-child {
            color: var(--sm-text-muted);
            width: 42%;
            font-weight: 500;
        }

        .info-table td:last-child {
            font-weight: 600;
            color: #0f172a;
        }

        .masked-value {
            font-family: monospace;
            letter-spacing: 1.5px;
        }

        .verify-box {
            background: #f8fbff;
            border: 2px dashed #60a5fa;
            border-radius: 16px;
            padding: 1.25rem;
        }

        .code-display {
            font-family: monospace;
            font-size: 1.6rem;
            font-weight: 800;
            letter-spacing: 4px;
            color: var(--sm-primary);
            background: #ffffff;
            border: 1px solid #bfdbfe;
            border-radius: 12px;
            padding: 0.5rem 1.25rem;
            display: inline-block;
        }

/* --- Source: Areas\StudentManagement\Views\TuyenSinh\Index.cshtml --- */
.ts-hero-banner {
            background: linear-gradient(135deg, var(--sm-primary-dark) 0%, var(--sm-primary) 100%);
            border-radius: 18px;
            padding: 1.5rem 1.75rem;
            color: #ffffff;
            margin-bottom: 1.5rem;
            box-shadow: 0 8px 24px rgba(15, 76, 129, 0.16);
        }

        /* Thanh tiến trình 5 bước trực quan */
        .ts-stepper {
            display: flex;
            justify-content: space-between;
            position: relative;
            margin-bottom: 1.75rem;
            background: #ffffff;
            padding: 1rem 0.75rem;
            border-radius: 16px;
            border: 1px solid var(--sm-border-color);
            box-shadow: 0 4px 14px rgba(15, 23, 42, 0.04);
            overflow-x: auto;
            gap: 0.25rem;
        }

        .ts-step-item {
            flex: 1;
            min-width: 115px;
            text-align: center;
            position: relative;
            cursor: pointer;
            user-select: none;
            padding: 0.35rem 0.25rem;
            border-radius: 12px;
            transition: all 0.2s ease;
        }

        .ts-step-item:hover {
            background-color: #f8fafc;
        }

        .ts-step-circle {
            width: 38px;
            height: 38px;
            border-radius: 50%;
            background: var(--sm-border-color);
            color: #475569;
            font-weight: 700;
            font-size: 0.95rem;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            margin-bottom: 0.4rem;
            transition: all 0.25s ease;
            border: 2px solid transparent;
        }

        .ts-step-label {
            display: block;
            font-size: 0.82rem;
            font-weight: 600;
            color: var(--sm-text-muted);
            line-height: 1.25;
        }

        .ts-step-item.active .ts-step-circle {
            background: var(--sm-primary);
            color: #ffffff;
            box-shadow: 0 0 0 4px rgba(29, 78, 216, 0.18);
        }

        .ts-step-item.active .ts-step-label {
            color: var(--sm-primary-dark);
            font-weight: 700;
        }

        .ts-step-item.completed .ts-step-circle {
            background: #16a34a;
            color: #ffffff;
        }

        .ts-step-item.completed .ts-step-label {
            color: #15803d;
        }

        .step-content {
            display: none;
            animation: fadeInStep 0.25s ease-in-out;
        }

        .step-content.active {
            display: block;
        }

        @keyframes fadeInStep {
            from { opacity: 0; transform: translateY(6px); }
            to { opacity: 1; transform: translateY(0); }
        }

        /* Bảng chọn nhanh kết quả tiểu học */
        .quick-fill-btn {
            border-radius: 999px;
            font-size: 0.85rem;
            font-weight: 600;
            padding: 0.35rem 0.9rem;
        }

        .grade-card {
            background: #f8fafc;
            border: 1px solid var(--sm-border-color);
            border-radius: 12px;
            padding: 0.85rem 1rem;
            transition: border-color 0.2s ease;
        }

        .grade-card:hover {
            border-color: #93c5fd;
        }

        /* Khung chọn ảnh chụp giấy tờ */
        .upload-zone {
            border: 2px dashed #93c5fd;
            background: #f8fbff;
            border-radius: 14px;
            padding: 1.15rem;
            transition: all 0.2s ease;
        }

        .upload-zone:hover {
            background: var(--sm-primary-light);
            border-color: var(--sm-primary);
        }

        .summary-table th {
            width: 38%;
            color: #475569;
            font-weight: 600;
            background-color: #f8fafc;
        }

        .summary-table td {
            font-weight: 600;
            color: #0f172a;
        }

        .sticky-bottom-bar {
            position: sticky;
            bottom: 0;
            background: rgba(255, 255, 255, 0.96);
            backdrop-filter: blur(8px);
            padding: 1rem 1.25rem;
            border-top: 1px solid var(--sm-border-color);
            border-radius: 0 0 18px 18px;
            z-index: 990;
            box-shadow: 0 -4px 16px rgba(15, 23, 42, 0.05);
        }

        .zalo-code-badge {
            font-family: monospace;
            font-size: 1.45rem;
            font-weight: 800;
            letter-spacing: 3px;
            color: var(--sm-primary);
            background: var(--sm-primary-light);
            border: 2px dashed #3b82f6;
            border-radius: 12px;
            padding: 0.5rem 1.25rem;
            display: inline-block;
        }

/* --- Source: Areas\StudentManagement\Views\TuyenSinh\Success.cshtml --- */
.receipt-card {
            max-width: 650px;
            margin: 1rem auto;
            border-radius: 22px;
            overflow: hidden;
            box-shadow: 0 14px 36px rgba(15, 23, 42, 0.08);
            border: 1px solid #dcfce7;
            background: #ffffff;
        }

        .receipt-header {
            background: linear-gradient(135deg, #15803d 0%, #16a34a 100%);
            padding: 2rem 1.5rem;
            color: #ffffff;
            text-align: center;
        }

        .receipt-table td {
            padding: 0.65rem 0.9rem;
            border-bottom: 1px dashed var(--sm-border-color);
            font-size: 0.95rem;
        }

        .receipt-table tr:last-child td {
            border-bottom: none;
        }

        .receipt-table td:first-child {
            color: var(--sm-text-muted);
            width: 42%;
            font-weight: 500;
        }

        .receipt-table td:last-child {
            color: #0f172a;
            font-weight: 700;
        }

        @media print {
            .ts-header, .ts-footer, .no-print {
                display: none !important;
            }
            body {
                background: #ffffff !important;
            }
            .receipt-card {
                box-shadow: none !important;
                border: 2px solid #000 !important;
            }
        }

/* --- Source: Areas\StudentManagement\Views\TuyenSinh\XacNhanOtp.cshtml --- */
.verify-card {
            max-width: 560px;
            margin: 1rem auto;
            border-radius: 20px;
            overflow: hidden;
            box-shadow: 0 12px 32px rgba(15, 23, 42, 0.08);
            border: 1px solid var(--sm-border-color);
            background: #ffffff;
        }

        .verify-header {
            background: linear-gradient(135deg, var(--sm-primary-dark) 0%, var(--sm-primary) 100%);
            padding: 1.75rem 1.5rem;
            color: #ffffff;
            text-align: center;
        }

        .otp-input {
            letter-spacing: 0.65rem;
            font-size: 1.75rem;
            text-align: center;
            font-weight: 800;
            color: var(--sm-primary-dark);
            border: 2px solid #93c5fd;
            border-radius: 14px;
            background: #f8fbff;
        }

        .otp-input:focus {
            border-color: var(--sm-primary);
            background: #ffffff;
        }

        .code-badge {
            font-family: monospace;
            font-size: 1.45rem;
            font-weight: 800;
            letter-spacing: 3px;
            color: var(--sm-primary);
            background: var(--sm-primary-light);
            padding: 0.6rem 1.25rem;
            border-radius: 12px;
            border: 2px dashed var(--sm-primary);
            display: inline-block;
        }

/* --- Source: Areas\StudentManagement\Views\TuyenSinh\XacNhanOtpCapNhat.cshtml --- */
.verify-update-card {
            max-width: 520px;
            margin: 1.5rem auto;
            border-radius: 20px;
            overflow: hidden;
            box-shadow: 0 12px 32px rgba(15, 23, 42, 0.08);
            border: 1px solid var(--sm-border-color);
            background: #ffffff;
        }

        .verify-update-header {
            background: linear-gradient(135deg, var(--sm-primary-dark) 0%, var(--sm-primary) 100%);
            padding: 1.75rem 1.5rem;
            color: #ffffff;
            text-align: center;
        }

        .otp-input {
            letter-spacing: 0.65rem;
            font-size: 1.75rem;
            text-align: center;
            font-weight: 800;
            color: var(--sm-primary-dark);
            border: 2px solid #93c5fd;
            border-radius: 14px;
            background: #f8fbff;
        }

