/* ================================================
   SSC Phase XIV Dashboard — v2.0 Clean Light
   Last Updated: 14 April 2026
   ================================================ */

/* ---- CSS Reset & Variables ---- */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Primary palette — Indigo blue */
    --primary: #4f46e5;
    --primary-dark: #4338ca;
    --primary-light: #e0e7ff;
    --primary-50: #eef2ff;

    /* Accent — Teal */
    --accent: #0d9488;
    --accent-light: #ccfbf1;

    /* Success / Warning / Danger */
    --success: #059669;
    --success-light: #d1fae5;
    --warning: #d97706;
    --warning-light: #fef3c7;
    --danger: #dc2626;
    --danger-light: #fee2e2;

    /* Neutrals */
    --bg: #f9fafb;
    --bg-card: #ffffff;
    --bg-section: #f3f4f6;
    --border: #e5e7eb;
    --border-light: #f3f4f6;
    --text: #111827;
    --text-secondary: #4b5563;
    --text-muted: #9ca3af;

    /* Shadows */
    --shadow-sm: 0 1px 2px rgba(0,0,0,0.04);
    --shadow: 0 1px 3px rgba(0,0,0,0.08), 0 1px 2px rgba(0,0,0,0.04);
    --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.07), 0 2px 4px -2px rgba(0,0,0,0.05);
    --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.08), 0 4px 6px -4px rgba(0,0,0,0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0,0,0,0.08), 0 8px 10px -6px rgba(0,0,0,0.04);

    /* Radius */
    --radius-sm: 8px;
    --radius: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;

    /* Font */
    --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-mono: 'JetBrains Mono', 'Fira Code', monospace;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font);
    background: var(--bg);
    background-image: radial-gradient(circle at 1px 1px, rgba(0,0,0,0.03) 1px, transparent 0);
    background-size: 24px 24px;
    color: var(--text);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* ---- Header ---- */
#main-header {
    background: linear-gradient(135deg, #1e1b4b 0%, #312e81 30%, #1e3a5f 70%, #0f172a 100%);
    color: #fff;
    padding: 2.5rem 0 2rem;
    position: relative;
    overflow: hidden;
}

#main-header::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at 20% 60%, rgba(79, 70, 229, 0.2) 0%, transparent 60%),
                radial-gradient(ellipse at 80% 30%, rgba(13, 148, 136, 0.12) 0%, transparent 50%),
                radial-gradient(ellipse at 50% 90%, rgba(168, 85, 247, 0.08) 0%, transparent 50%);
    pointer-events: none;
}

.header-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(99, 102, 241, 0.2);
    border: 1px solid rgba(99, 102, 241, 0.3);
    padding: 0.35rem 1rem;
    border-radius: 999px;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin-bottom: 1rem;
    color: #c7d2fe;
}

#page-title {
    font-size: clamp(1.5rem, 4vw, 2.5rem);
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 0.5rem;
}

.gradient-text {
    background: linear-gradient(135deg, #818cf8, #6ee7b7, #a78bfa);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.header-subtitle {
    color: #94a3b8;
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
}

.header-dates {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.date-chip {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    background: rgba(255,255,255,0.07);
    border: 1px solid rgba(255,255,255,0.1);
    padding: 0.6rem 1rem;
    border-radius: var(--radius);
    backdrop-filter: blur(8px);
    transition: background 0.2s;
}

.date-chip:hover {
    background: rgba(255,255,255,0.12);
}

.date-icon {
    font-size: 1.25rem;
}

.date-label {
    display: block;
    font-size: 0.65rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #94a3b8;
}

.date-value {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    color: #e2e8f0;
}

/* ---- Stats Strip ---- */
#stats-strip {
    padding: 1.5rem 0;
    margin-top: -1px;
    background: var(--bg-card);
    border-bottom: 1px solid var(--border);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
}

.stat-card {
    text-align: center;
    padding: 1.25rem 1rem;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    background: var(--bg);
    transition: transform 0.2s, box-shadow 0.2s;
}

.stat-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.stat-card.highlight {
    background: linear-gradient(135deg, var(--primary-50), var(--accent-light));
    border-color: var(--primary);
}

.stat-number {
    font-size: 2rem;
    font-weight: 800;
    color: var(--primary);
    line-height: 1;
    margin-bottom: 0.25rem;
    font-family: var(--font-mono);
}

.stat-card.highlight .stat-number {
    background: linear-gradient(135deg, var(--primary), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-label {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-muted);
}

/* ---- Section Titles ---- */
.section-title {
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 1.25rem;
}

/* ---- Region Table ---- */
#region-summary {
    padding: 2rem 0;
    background: var(--bg);
}

.region-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.88rem;
}

.region-table thead {
    background: var(--bg-section);
    border-bottom: 2px solid var(--border);
}

.region-table th {
    padding: 0.65rem 1rem;
    font-weight: 700;
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--text-secondary);
    text-align: left;
}

.region-table td {
    padding: 0.6rem 1rem;
    border-top: 1px solid var(--border-light);
    color: var(--text);
    vertical-align: middle;
}

.region-table .text-center {
    text-align: center;
}

.region-table tbody tr {
    cursor: pointer;
    transition: background 0.15s;
}

.region-table tbody tr:hover {
    background: var(--primary-50);
}

.region-table tbody tr.active {
    background: var(--primary-light);
}

.region-table .region-code {
    font-family: var(--font-mono);
    font-weight: 700;
    font-size: 0.82rem;
    color: var(--primary);
    margin-right: 0.5rem;
}

.region-table .region-name {
    font-weight: 500;
    color: var(--text);
}

.region-table .num-cell {
    font-family: var(--font-mono);
    font-weight: 600;
    font-size: 0.85rem;
    text-align: center;
}

.region-table .total-cell {
    font-family: var(--font-mono);
    font-weight: 800;
    font-size: 0.9rem;
    text-align: center;
    color: var(--primary-dark);
}

.region-table tfoot {
    border-top: 2px solid var(--border);
    background: var(--bg-section);
}

.region-table tfoot td {
    padding: 0.7rem 1rem;
    font-weight: 800;
    font-size: 0.88rem;
}

.region-table tfoot .num-cell {
    font-weight: 800;
    color: var(--primary-dark);
}

.region-table tfoot .total-cell {
    font-weight: 900;
    font-size: 1rem;
    color: var(--primary);
}
}

/* ---- Eligibility Checker ---- */
#eligibility-section {
    position: relative;
    z-index: 999;
    padding: 1.5rem 0;
    background: linear-gradient(135deg, var(--primary-50), var(--accent-light));
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.eligibility-subtitle {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-bottom: 1rem;
}

.eligibility-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    align-items: flex-end;
    background: var(--bg-card);
    padding: 1.25rem;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
}

.elig-group {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
    min-width: 180px;
}

.elig-group label {
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--text-muted);
}

.elig-group input,
.elig-group select {
    padding: 0.55rem 0.75rem;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    background: var(--bg);
    color: var(--text);
    font-family: var(--font);
    font-size: 0.85rem;
    transition: border-color 0.2s, box-shadow 0.2s;
    outline: none;
}

.elig-group input:focus,
.elig-group select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px var(--primary-light);
}

.elig-result {
    padding: 0.5rem 1rem;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    text-align: center;
    min-width: 160px;
}

.elig-age-label {
    font-size: 0.6rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--text-muted);
}

.elig-age-value {
    font-family: var(--font-mono);
    font-size: 1.3rem;
    font-weight: 800;
    color: var(--primary);
    line-height: 1.2;
}

.elig-relaxation {
    font-size: 0.7rem;
    color: var(--success);
    font-weight: 600;
}

.btn-check-elig {
    padding: 0.55rem 1.25rem;
    border: none;
    border-radius: var(--radius-sm);
    background: var(--primary);
    color: #fff;
    font-family: var(--font);
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
}

.btn-check-elig:hover:not(:disabled) {
    background: var(--primary-dark);
    box-shadow: var(--shadow-md);
    transform: translateY(-1px);
}

.btn-check-elig:disabled {
    opacity: 0.45;
    cursor: not-allowed;
}

.btn-check-elig.active {
    background: var(--success);
}

.btn-clear-elig {
    padding: 0.55rem 1rem;
    border: 1px solid var(--text-muted);
    border-radius: var(--radius-sm);
    background: transparent;
    color: var(--text-muted);
    font-family: var(--font);
    font-size: 0.82rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
}

.btn-clear-elig:hover {
    border-color: var(--danger);
    color: var(--danger);
}

/* ---- Filters ---- */
#filters-section {
    padding: 1.5rem 0 1rem;
    background: var(--bg-card);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 50;
    box-shadow: var(--shadow-sm);
}

/* ---- AI Smart Search ---- */
.ai-search-container {
    display: flex;
    align-items: center;
    background: linear-gradient(to right, rgba(79, 70, 229, 0.05), rgba(168, 85, 247, 0.05));
    border: 2px solid var(--primary-light);
    border-radius: var(--radius-xl);
    padding: 0.5rem 1rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 4px 15px rgba(79, 70, 229, 0.1);
    transition: all 0.3s ease;
}

.ai-search-container:focus-within {
    border-color: var(--primary);
    box-shadow: 0 0 0 4px var(--primary-50), 0 4px 20px rgba(79, 70, 229, 0.2);
    transform: translateY(-1px);
}

.ai-icon {
    font-size: 1.2rem;
    margin-right: 0.75rem;
    animation: pulse 2s infinite;
}

#ai-search-input {
    flex: 1;
    border: none;
    background: transparent;
    font-size: 0.95rem;
    color: var(--text);
    font-family: var(--font);
    outline: none;
}

#ai-search-input::placeholder {
    color: var(--text-muted);
    font-style: italic;
}

#btn-ai-search {
    background: linear-gradient(135deg, var(--primary), #8b5cf6);
    color: white;
    border: none;
    border-radius: var(--radius-xl);
    padding: 0.5rem 1.25rem;
    font-weight: 600;
    font-family: var(--font);
    cursor: pointer;
    margin-left: 0.5rem;
    transition: all 0.2s;
    box-shadow: var(--shadow-sm);
}

#btn-ai-search:hover {
    transform: scale(1.05);
    box-shadow: var(--shadow-md);
}

@keyframes pulse {
    0% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.2); opacity: 0.7; }
    100% { transform: scale(1); opacity: 1; }
}

.filters-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    align-items: flex-end;
}

.filter-group {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
    min-width: 140px;
}

.filter-group.search-group {
    flex: 1;
    min-width: 220px;
}

.filter-group label {
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--text-muted);
}

.filter-group input,
.filter-group select {
    padding: 0.55rem 0.75rem;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    background: var(--bg);
    color: var(--text);
    font-family: var(--font);
    font-size: 0.85rem;
    transition: border-color 0.2s, box-shadow 0.2s;
    outline: none;
}

.filter-group input:focus,
.filter-group select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px var(--primary-light);
}

/* ---- Custom Multi-Select ---- */
.ms-container {
    position: relative;
    user-select: none;
    min-width: 150px;
}
.ms-button {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.55rem 0.75rem;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    background: var(--bg);
    color: var(--text);
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.2s;
    height: 100%;
}
.ms-button:hover {
    border-color: var(--primary);
}
.ms-button.active {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px var(--primary-light);
}
.ms-button-text {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    padding-right: 10px;
}
.ms-badge {
    background: var(--primary);
    color: white;
    font-size: 0.65rem;
    font-weight: bold;
    padding: 2px 6px;
    border-radius: 10px;
    margin-left: 5px;
}
.ms-dropdown {
    position: absolute;
    top: calc(100% + 5px);
    left: 0;
    width: max-content;
    min-width: 100%;
    max-height: 250px;
    overflow-y: auto;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-md);
    z-index: 9999;
    display: none;
}
.ms-dropdown.show {
    display: block;
    animation: fadeInDown 0.2s ease-out;
}
.ms-option {
    padding: 0.5rem 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.82rem;
    cursor: pointer;
    transition: background 0.1s;
    border-bottom: 1px solid var(--border-light);
}
.ms-option:last-child {
    border-bottom: none;
}
.ms-option:hover {
    background: var(--bg);
}
.ms-option input[type="checkbox"] {
    accent-color: var(--primary);
    cursor: pointer;
    margin: 0;
    padding: 0;
    width: 14px;
    height: 14px;
    outline: none;
    box-shadow: none;
    border-radius: 3px;
}

.btn-clear {
    padding: 0.55rem 1.1rem;
    border: 1px solid var(--danger);
    border-radius: var(--radius-sm);
    background: var(--danger-light);
    color: var(--danger);
    font-family: var(--font);
    font-size: 0.82rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
}

.btn-clear:hover {
    background: var(--danger);
    color: #fff;
}

/* ---- Data Table ---- */
#data-section {
    padding: 1.5rem 0 2rem;
    background: var(--bg);
}

.table-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.75rem;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.results-info {
    font-size: 0.82rem;
    color: var(--text-muted);
    font-weight: 500;
}

.table-wrapper {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    background: var(--bg-card);
    box-shadow: var(--shadow);
}

#vacancy-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.82rem;
    white-space: nowrap;
}

#vacancy-table thead {
    background: var(--bg-section);
    border-bottom: 2px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 10;
}

#vacancy-table th {
    padding: 0.7rem 0.6rem;
    text-align: left;
    font-weight: 700;
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--text-secondary);
    border-right: 1px solid var(--border-light);
    user-select: none;
}

#vacancy-table th:last-child {
    border-right: none;
}

#vacancy-table th.sortable {
    cursor: pointer;
    position: relative;
    padding-right: 1.2rem;
    transition: color 0.2s;
}

#vacancy-table th.sortable:hover {
    color: var(--primary);
}

#vacancy-table th.sortable::after {
    content: '⇅';
    position: absolute;
    right: 0.3rem;
    top: 50%;
    transform: translateY(-50%);
    font-size: 0.65rem;
    opacity: 0.3;
}

#vacancy-table th.sortable.asc::after {
    content: '↑';
    opacity: 1;
    color: var(--primary);
}

#vacancy-table th.sortable.desc::after {
    content: '↓';
    opacity: 1;
    color: var(--primary);
}

#vacancy-table td {
    padding: 0.55rem 0.6rem;
    border-top: 1px solid var(--border-light);
    color: var(--text);
    vertical-align: middle;
}

#vacancy-table tbody tr {
    transition: background 0.15s;
}

#vacancy-table tbody tr:hover {
    background: var(--primary-50);
}

#vacancy-table tbody tr:nth-child(even) {
    background: rgba(241, 245, 249, 0.5);
}

#vacancy-table tbody tr:nth-child(even):hover {
    background: var(--primary-50);
}

/* Column-specific */
.col-sno {
    width: 50px;
    text-align: center;
    color: var(--text-muted) !important;
    font-family: var(--font-mono);
    font-size: 0.75rem !important;
}

.col-action {
    width: 55px;
    text-align: center;
}

.col-name {
    min-width: 200px;
    white-space: normal;
    font-weight: 500;
    color: var(--text) !important;
}

.col-dept {
    min-width: 180px;
    white-space: normal;
    color: var(--text-secondary) !important;
    font-size: 0.78rem !important;
}

.col-code {
    font-family: var(--font-mono);
    font-weight: 600;
    font-size: 0.8rem !important;
    color: var(--primary) !important;
}

.col-age, .col-pay {
    font-family: var(--font-mono);
    font-size: 0.78rem !important;
}

.col-exp {
    text-align: center;
    width: 42px;
}

.col-vac, .col-total {
    text-align: center;
    font-family: var(--font-mono);
    font-size: 0.78rem !important;
    width: 42px;
}

/* Pills and Badges */
.region-pill {
    display: inline-block;
    padding: 0.15rem 0.45rem;
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: 700;
    font-family: var(--font-mono);
    background: var(--primary-light);
    color: var(--primary-dark);
    letter-spacing: 0.02em;
}

.level-pill {
    display: inline-block;
    padding: 0.15rem 0.5rem;
    border-radius: 4px;
    font-size: 0.68rem;
    font-weight: 700;
}

.level-pill.matric {
    background: #fef3c7;
    color: #92400e;
}

.level-pill.hs {
    background: #d1fae5;
    color: #065f46;
}

.level-pill.grad {
    background: var(--primary-light);
    color: var(--primary-dark);
}

.vac-positive {
    color: var(--text) !important;
    font-weight: 600;
}

.vac-zero {
    color: var(--text-muted) !important;
    opacity: 0.4;
}

.vac-total {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 26px;
    height: 22px;
    font-weight: 700;
    border-radius: 4px;
}

.vac-total-highlight {
    background: var(--primary);
    color: #fff;
    font-size: 0.75rem;
}

.exp-badge {
    display: inline-block;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    font-size: 0.65rem;
    font-weight: 700;
    line-height: 22px;
    text-align: center;
}

.exp-badge.exp-yes {
    background: var(--warning-light);
    color: var(--warning);
}

.exp-badge.exp-no {
    background: var(--success-light);
    color: var(--success);
}

/* View Button */
.btn-view {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border: none;
    border-radius: var(--radius-sm);
    background: var(--primary-light);
    color: var(--primary);
    cursor: pointer;
    font-size: 1rem;
    transition: all 0.2s;
}

.btn-view:hover {
    background: var(--primary);
    color: #fff;
    box-shadow: var(--shadow-md);
    transform: scale(1.1);
}

/* Search highlight */
mark {
    background: #fef08a;
    color: var(--text);
    padding: 0 2px;
    border-radius: 2px;
}

/* Loading */
.loading-cell {
    text-align: center;
    padding: 3rem 1rem !important;
    color: var(--text-muted);
    font-size: 0.9rem;
}

.loader {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 2px solid var(--border);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
    margin-right: 0.5rem;
    vertical-align: middle;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* No results */
.no-results {
    text-align: center;
    padding: 3rem 1rem;
}

.no-results-icon {
    font-size: 2.5rem;
    margin-bottom: 0.75rem;
    opacity: 0.6;
}

.no-results-text {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 0.25rem;
}

.no-results-hint {
    font-size: 0.82rem;
    color: var(--text-muted);
}

/* ---- Pagination ---- */
.table-footer {
    margin-top: 1rem;
    display: flex;
    justify-content: center;
}

.pagination {
    display: flex;
    gap: 0.35rem;
    flex-wrap: wrap;
    justify-content: center;
}

.page-btn {
    padding: 0.45rem 0.75rem;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    background: var(--bg-card);
    color: var(--text-secondary);
    font-family: var(--font);
    font-size: 0.82rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}

.page-btn:hover {
    border-color: var(--primary);
    color: var(--primary);
    background: var(--primary-50);
}

.page-btn.active {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
    font-weight: 700;
}

/* ---- Modal ---- */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.5);
    backdrop-filter: blur(8px);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    animation: fadeIn 0.2s ease;
}

.modal-container {
    background: var(--bg-card);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-xl);
    width: 100%;
    max-width: 720px;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    animation: slideUp 0.3s ease;
    border: 1px solid var(--border);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 1.5rem 1.75rem 1rem;
    border-bottom: 1px solid var(--border);
}

.modal-code {
    display: inline-block;
    font-family: var(--font-mono);
    font-weight: 700;
    font-size: 0.75rem;
    background: var(--primary-light);
    color: var(--primary-dark);
    padding: 0.15rem 0.6rem;
    border-radius: 4px;
    margin-bottom: 0.35rem;
}

.modal-title {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--text);
    line-height: 1.3;
}

.modal-close {
    width: 36px;
    height: 36px;
    border: none;
    border-radius: 50%;
    background: var(--bg-section);
    color: var(--text-secondary);
    font-size: 1.3rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all 0.2s;
}

.modal-close:hover {
    background: var(--danger-light);
    color: var(--danger);
}

.modal-body {
    padding: 1.25rem 1.75rem 1.75rem;
    overflow-y: auto;
}

.modal-section {
    margin-bottom: 1.25rem;
}

.modal-section:last-child {
    margin-bottom: 0;
}

.modal-section-title {
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--text-muted);
    margin-bottom: 0.5rem;
    padding-bottom: 0.35rem;
    border-bottom: 1px solid var(--border-light);
}

.modal-info-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.65rem;
}

.modal-info-item {
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
}

.modal-info-label {
    font-size: 0.68rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    color: var(--text-muted);
}

.modal-info-value {
    font-size: 0.88rem;
    font-weight: 500;
    color: var(--text);
}

.modal-vac-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 0.5rem;
}

.modal-vac-item {
    text-align: center;
    padding: 0.5rem 0.25rem;
    border-radius: var(--radius-sm);
    background: var(--bg);
    border: 1px solid var(--border-light);
}

.modal-vac-item.total-item {
    background: var(--primary-light);
    border-color: var(--primary);
}

.modal-vac-num {
    display: block;
    font-family: var(--font-mono);
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text);
}

.modal-vac-item.total-item .modal-vac-num {
    color: var(--primary-dark);
}

.modal-vac-cat {
    display: block;
    font-size: 0.6rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--text-muted);
}

.modal-qual-text {
    font-size: 0.88rem;
    line-height: 1.7;
    color: var(--text-secondary);
    background: var(--bg);
    padding: 0.85rem 1rem;
    border-radius: var(--radius);
    border: 1px solid var(--border-light);
}

.modal-pwd-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.5rem;
}

.modal-pwd-item {
    text-align: center;
    padding: 0.4rem;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-light);
    background: var(--bg);
}

.modal-pwd-item.pwd-yes {
    background: var(--success-light);
    border-color: var(--success);
}

.modal-pwd-cat {
    display: block;
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--text-muted);
    margin-bottom: 0.15rem;
}

.modal-pwd-val {
    display: block;
    font-size: 0.8rem;
    font-weight: 600;
}

.modal-pwd-item.pwd-yes .modal-pwd-val {
    color: var(--success);
}

.modal-tag {
    display: inline-block;
    padding: 0.2rem 0.55rem;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
}

.modal-tag.tag-yes {
    background: var(--success-light);
    color: var(--success);
}

.modal-tag.tag-no {
    background: var(--bg);
    color: var(--text-muted);
    border: 1px solid var(--border);
}

/* ---- Animations ---- */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

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

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

/* ---- Exam Scheme & Info Sections ---- */
#exam-scheme-section,
#fee-section,
#age-section,
#syllabus-section,
#rules-section,
#offices-section,
#notes-section {
    padding: 2.5rem 0;
    border-top: 1px solid var(--border);
}

#exam-scheme-section {
    background: var(--bg-card);
}

#fee-section {
    background: var(--bg);
}

#age-section {
    background: var(--bg-card);
}

#syllabus-section {
    background: var(--bg);
}

#rules-section {
    background: var(--bg-card);
}

#offices-section {
    background: var(--bg);
}

#notes-section {
    background: var(--bg-card);
}

.scheme-wrapper,
.age-content {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.scheme-overview {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.75rem;
}

.scheme-card {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1rem;
    transition: transform 0.2s;
}

.scheme-card:hover {
    transform: translateY(-2px);
}

.scheme-card.highlight-card {
    background: var(--primary-50);
    border-color: var(--primary);
}

.scheme-card.warning-card {
    background: var(--danger-light);
    border-color: var(--danger);
}

.scheme-card-label {
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--text-muted);
    margin-bottom: 0.35rem;
}

.scheme-card-value {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 0.15rem;
}

.scheme-card-sub {
    font-size: 0.78rem;
    color: var(--text-muted);
}

.exam-table-wrap {
    overflow-x: auto;
    border: 1px solid var(--border);
    border-radius: var(--radius);
}

.exam-pattern-table,
.age-relaxation-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.85rem;
}

.exam-pattern-table th,
.age-relaxation-table th {
    background: var(--bg-section);
    padding: 0.65rem 1rem;
    text-align: left;
    font-weight: 700;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--text-secondary);
    border-bottom: 2px solid var(--border);
}

.exam-pattern-table td,
.age-relaxation-table td {
    padding: 0.6rem 1rem;
    border-top: 1px solid var(--border-light);
    color: var(--text);
}

.exam-pattern-table tr:hover,
.age-relaxation-table tr:hover {
    background: var(--primary-50);
}

.total-row {
    background: var(--bg-section) !important;
}

.scheme-notes {
    padding: 1rem 1.25rem;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
}

.scheme-notes p {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-bottom: 0.35rem;
}

.scheme-notes p:last-child {
    margin-bottom: 0;
}

/* ---- Info Grid ---- */
.info-grid.two-col {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.25rem;
}

.info-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
}

.info-card h3 {
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    color: var(--text);
}

.info-card ul {
    padding-left: 1.5rem;
}

.info-card li {
    margin-bottom: 0.35rem;
    font-size: 0.88rem;
    color: var(--text-secondary);
}

.fee-amount {
    font-size: 2rem;
    font-weight: 800;
    color: var(--primary);
    font-family: var(--font-mono);
    margin-bottom: 0.5rem;
}

.fee-mode {
    font-size: 0.82rem;
    color: var(--text-muted);
    margin-bottom: 0.75rem;
}

.fee-exempt-title {
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--success);
    margin-bottom: 0.35rem;
}

.fee-warning {
    margin-top: 0.75rem;
    font-size: 0.82rem;
    color: var(--danger);
    padding: 0.5rem 0.75rem;
    background: var(--danger-light);
    border-radius: var(--radius-sm);
}

.crucial-dates {
    margin-top: 1rem;
    padding-top: 0.75rem;
    border-top: 1px solid var(--border);
}

.crucial-dates h4 {
    font-size: 0.82rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.cd-row {
    display: flex;
    justify-content: space-between;
    padding: 0.3rem 0;
    font-size: 0.85rem;
}

.cd-row span {
    color: var(--text-secondary);
}

.cd-row strong {
    color: var(--primary);
    font-family: var(--font-mono);
}

.small-note {
    margin-top: 0.75rem;
    font-size: 0.78rem;
    color: var(--text-muted);
    font-style: italic;
}

/* ---- Age Limits Grid ---- */
.age-limits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 0.75rem;
}

.age-limit-chip {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 0.75rem;
    text-align: center;
}

.age-range {
    font-size: 1.15rem;
    font-weight: 700;
    font-family: var(--font-mono);
    color: var(--primary);
    margin-bottom: 0.15rem;
}

.age-born {
    font-size: 0.72rem;
    color: var(--text-muted);
}

/* ---- Syllabus ---- */
.syllabus-tabs {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1.25rem;
}

.syllabus-tab {
    padding: 0.55rem 1.25rem;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    background: var(--bg-card);
    color: var(--text-secondary);
    font-family: var(--font);
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.syllabus-tab:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.syllabus-tab.active {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
}

.syllabus-content {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
}

.syllabus-subject {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1rem 1.25rem;
}

.syllabus-subject h4 {
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
    color: var(--text);
}

.syllabus-subject p {
    font-size: 0.82rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* ---- Offices ---- */
.offices-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 0.75rem;
}

.office-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 0.85rem 1rem;
    transition: border-color 0.2s;
}

.office-card:hover {
    border-color: var(--primary);
}

.office-code {
    font-family: var(--font-mono);
    font-weight: 700;
    font-size: 0.8rem;
    color: var(--primary);
}

.office-name {
    font-weight: 600;
    font-size: 0.85rem;
    color: var(--text);
}

.office-hq {
    font-size: 0.78rem;
    color: var(--text-secondary);
    margin-top: 0.25rem;
}

.office-states {
    font-size: 0.72rem;
    color: var(--text-muted);
    margin-top: 0.15rem;
}

/* ---- Notes ---- */
.notes-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.note-item {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 0.65rem 1rem;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.note-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    min-width: 24px;
    height: 24px;
    background: var(--primary-light);
    color: var(--primary);
    font-size: 0.7rem;
    font-weight: 700;
    border-radius: 50%;
    flex-shrink: 0;
}

/* ---- Footer ---- */
#main-footer {
    background: #0f172a;
    color: #94a3b8;
    padding: 1.5rem 0;
    text-align: center;
}

.disclaimer {
    font-size: 0.78rem;
    margin-bottom: 0.35rem;
}

.disclaimer a {
    color: #818cf8;
    text-decoration: underline;
}

.credit {
    font-size: 0.72rem;
    color: #64748b;
}

/* ---- Responsive ---- */
@media (max-width: 1024px) {
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .scheme-overview {
        grid-template-columns: repeat(2, 1fr);
    }
    .modal-info-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .info-grid.two-col {
        grid-template-columns: 1fr;
    }
    .syllabus-content {
        grid-template-columns: 1fr;
    }
    .offices-grid {
        grid-template-columns: 1fr;
    }
    .header-dates {
        flex-direction: column;
    }
    .date-chip {
        width: 100%;
    }
    #filters-section {
        position: relative;
        top: auto;
    }
    .filter-group {
        min-width: 47%;
        flex: 1;
    }
    .filter-group.search-group {
        min-width: 100%;
        flex: 1 1 100%;
    }
    .syllabus-tabs {
        gap: 0.35rem;
        flex-wrap: wrap;
    }
    .syllabus-tab {
        padding: 0.5rem 1rem;
        font-size: 0.78rem;
    }
    .modal-container {
        max-height: 95vh;
    }
    .modal-header {
        padding: 1rem 1.25rem 0.75rem;
    }
    .modal-body {
        padding: 1rem 1.25rem 1.25rem;
    }
    .modal-vac-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    .modal-pwd-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .region-cards {
        grid-template-columns: 1fr;
    }
}

/* ---- Wishlist Heart Button ---- */
.btn-wishlist {
    background: none;
    border: none;
    font-size: 1.1rem;
    cursor: pointer;
    padding: 4px;
    transition: all 0.2s;
    opacity: 0.5;
}
.btn-wishlist:hover { opacity: 1; transform: scale(1.2); }
.btn-wishlist.wishlisted { opacity: 1; color: #e11d48; }

/* ---- Wishlist Floating Badge ---- */
.wishlist-badge {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, #e11d48, #f43f5e);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 20px rgba(225, 29, 72, 0.4);
    z-index: 10000;
    transition: all 0.3s;
    flex-direction: column;
    gap: 0;
    line-height: 1;
}
.wishlist-badge:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 28px rgba(225, 29, 72, 0.5);
}
.wishlist-badge-icon { font-size: 1.4rem; }
.wishlist-badge-count {
    font-size: 0.65rem;
    font-weight: 700;
    font-family: var(--font);
    background: white;
    color: #e11d48;
    border-radius: 50%;
    width: 18px;
    height: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    top: -2px;
    right: -2px;
}
.wishlist-badge.empty { opacity: 0.4; }

/* ---- Wishlist Overlay & Panel ---- */
.wishlist-overlay {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.5);
    z-index: 10001;
    display: none;
    justify-content: flex-end;
}
.wishlist-overlay.show { display: flex; }

.wishlist-panel {
    width: min(520px, 90vw);
    height: 100%;
    background: var(--bg);
    box-shadow: -4px 0 30px rgba(0,0,0,0.2);
    display: flex;
    flex-direction: column;
    animation: slideInRight 0.3s ease-out;
}

@keyframes slideInRight {
    from { transform: translateX(100%); }
    to { transform: translateX(0); }
}

.wishlist-header {
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: linear-gradient(135deg, #fff1f2, #ffe4e6);
}
.wishlist-header h3 {
    margin: 0;
    font-size: 1.2rem;
    color: #e11d48;
}
.wishlist-actions { display: flex; gap: 0.5rem; }

.btn-print-wl {
    background: linear-gradient(135deg, var(--primary), #8b5cf6);
    color: white;
    border: none;
    border-radius: var(--radius);
    padding: 0.4rem 1rem;
    font-weight: 600;
    font-family: var(--font);
    cursor: pointer;
    font-size: 0.8rem;
    transition: all 0.2s;
}
.btn-print-wl:hover { transform: scale(1.05); }

.btn-clear-wl {
    background: transparent;
    border: 1px solid #e11d48;
    color: #e11d48;
    border-radius: var(--radius);
    padding: 0.4rem 0.75rem;
    font-family: var(--font);
    cursor: pointer;
    font-size: 0.8rem;
    font-weight: 500;
}
.btn-clear-wl:hover { background: #fff1f2; }

.btn-close-wl {
    background: transparent;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 0.4rem 0.6rem;
    cursor: pointer;
    font-size: 1rem;
    color: var(--text-muted);
}

.wishlist-body {
    flex: 1;
    overflow-y: auto;
    padding: 1rem;
}

.wishlist-empty {
    text-align: center;
    padding: 3rem 1rem;
    color: var(--text-muted);
}
.wishlist-empty-icon { font-size: 3rem; margin-bottom: 1rem; opacity: 0.3; }
.wishlist-empty-hint { font-size: 0.8rem; margin-top: 0.5rem; }

/* Wishlist card */
.wl-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 1rem;
    margin-bottom: 0.75rem;
    position: relative;
    transition: all 0.2s;
}
.wl-card:hover { border-color: var(--primary-light); box-shadow: var(--shadow-sm); }
.wl-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 0.5rem;
}
.wl-card-code {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--primary);
    background: var(--primary-50);
    padding: 2px 8px;
    border-radius: var(--radius);
}
.wl-card-remove {
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    font-size: 1rem;
    padding: 0 4px;
    opacity: 0.5;
}
.wl-card-remove:hover { opacity: 1; color: #e11d48; }
.wl-card-name { font-weight: 600; font-size: 0.95rem; margin-bottom: 0.4rem; }
.wl-card-dept { font-size: 0.8rem; color: var(--text-muted); line-height: 1.4; }
.wl-card-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin-top: 0.5rem;
}
.wl-tag {
    font-size: 0.65rem;
    padding: 2px 8px;
    border-radius: var(--radius);
    font-weight: 500;
    background: var(--bg);
    border: 1px solid var(--border);
}
.wl-tag.region { background: #ede9fe; color: #6d28d9; border-color: #ddd6fe; }
.wl-tag.level { background: #ecfdf5; color: #065f46; border-color: #a7f3d0; }
.wl-tag.vac { background: #fef3c7; color: #92400e; border-color: #fde68a; }

/* ---- Print Container ---- */
.print-container {
    display: none;
}

/* ---- Print-Only Styles ---- */
@media print {
    /* Hide everything except print container */
    body > *:not(.print-container) {
        display: none !important;
    }
    .print-container {
        display: block !important;
        user-select: none;
        -webkit-user-select: none;
        -moz-user-select: none;
        -ms-user-select: none;
    }

    .print-page {
        position: relative;
        padding: 1.5cm;
        font-family: 'Inter', sans-serif;
        color: #1a1a2e;
        font-size: 11pt;
        page-break-after: always;
    }
    .print-page:last-child { page-break-after: avoid; }

    /* Watermark */
    .print-page::before {
        content: "EzSSC";
        position: fixed;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%) rotate(-45deg);
        font-size: 120pt;
        font-weight: 900;
        color: rgba(0, 0, 0, 0.04);
        pointer-events: none;
        z-index: 0;
        font-family: 'Inter', sans-serif;
        letter-spacing: 10px;
    }

    /* Logo Header */
    .print-logo {
        text-align: center;
        margin-bottom: 1rem;
        padding-bottom: 0.75rem;
        border-bottom: 3px solid #4f46e5;
    }
    .print-logo-text {
        font-size: 28pt;
        font-weight: 900;
        color: #4f46e5;
        letter-spacing: 3px;
    }
    .print-logo-sub {
        font-size: 10pt;
        color: #666;
        margin-top: 2px;
    }
    .print-title {
        text-align: center;
        font-size: 14pt;
        font-weight: 700;
        color: #1a1a2e;
        margin: 0.75rem 0;
    }
    .print-date {
        text-align: center;
        font-size: 8pt;
        color: #888;
        margin-bottom: 1rem;
    }

    /* Print cards */
    .print-card {
        border: 1.5px solid #ddd;
        border-radius: 8px;
        padding: 0.75rem 1rem;
        margin-bottom: 0.75rem;
        page-break-inside: avoid;
        position: relative;
        z-index: 1;
    }
    .print-card-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        border-bottom: 1px solid #eee;
        padding-bottom: 0.5rem;
        margin-bottom: 0.5rem;
    }
    .print-card-code {
        font-family: 'JetBrains Mono', monospace;
        font-weight: 700;
        color: #4f46e5;
        font-size: 9pt;
    }
    .print-card-region {
        font-size: 8pt;
        background: #f3f4f6;
        padding: 2px 8px;
        border-radius: 4px;
    }
    .print-card-name {
        font-size: 12pt;
        font-weight: 700;
        margin-bottom: 4px;
    }
    .print-card-dept {
        font-size: 9pt;
        color: #555;
        margin-bottom: 0.5rem;
    }
    .print-info-row {
        display: flex;
        gap: 1rem;
        flex-wrap: wrap;
        font-size: 8.5pt;
        margin-bottom: 0.4rem;
    }
    .print-info-item {
        display: flex;
        gap: 4px;
    }
    .print-info-label {
        font-weight: 600;
        color: #333;
    }
    .print-vac-row {
        display: flex;
        gap: 0.5rem;
        flex-wrap: wrap;
        margin-top: 0.4rem;
        font-size: 8pt;
    }
    .print-vac-item {
        background: #f9fafb;
        border: 1px solid #e5e7eb;
        padding: 2px 6px;
        border-radius: 4px;
        text-align: center;
    }
    .print-vac-item strong { color: #4f46e5; }
    .print-qual {
        margin-top: 0.5rem;
        padding: 0.5rem;
        background: #f9fafb;
        border-radius: 6px;
        font-size: 8.5pt;
        line-height: 1.5;
        border: 1px solid #e5e7eb;
    }
    .print-qual-title {
        font-weight: 700;
        font-size: 8pt;
        color: #6d28d9;
        margin-bottom: 4px;
    }

    .print-footer {
        text-align: center;
        font-size: 7pt;
        color: #999;
        margin-top: 1rem;
        padding-top: 0.5rem;
        border-top: 1px solid #eee;
    }
}
