/* ============================================================
   RecruitMatrix Portal – Design System
   Font    : Segoe UI / system stack (matches reference templates)
   Primary : #4F46E5 indigo + #8B5CF6 violet gradient
   Shadow  : neutral grey shadows
   Shapes  : 999px pills for buttons/chips, 18px for cards
   ============================================================ */

:root {
    --font:          "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
    --primary:       #4F46E5;
    --primary-dark:  #4338CA;
    --primary-light: #EEF2FF;
    --violet:        #8B5CF6;
    --violet-light:  #F5F3FF;
    --violet-border: #C4B5FD;
    --text:          #1F2937;
    --text-secondary:#374151;
    --text-muted:    #6B7280;
    --text-light:    #4B5563;
    --border:        #E5E7EB;
    --border-light:  #F3F4F6;
    --bg:            #F9FAFB;
    --white:         #FFFFFF;
    --success:       #15803D;
    --success-bg:    #ECFDF3;
    --danger:        #B91C1C;
    --danger-bg:     #FEF2F2;
    --warning:       #D97706;
    --warning-bg:    #FFFBEB;
    --radius-card:   18px;
    --radius-input:  12px;
    --radius-pill:   999px;
    --shadow-card:   0 4px 20px rgba(0, 0, 0, 0.08);
    --shadow-sm:     0 1px 3px rgba(0,0,0,0.08), 0 1px 2px rgba(0,0,0,0.05);
    --shadow-btn:    0 4px 12px rgba(0, 0, 0, 0.18);
    --shadow-dropdown: 0 8px 32px rgba(0, 0, 0, 0.12);
}

* { box-sizing: border-box; }

body {
    font-family: var(--font);
    background: var(--bg);
    color: var(--text);
    margin: 0;
    padding: 0;
    font-size: 15px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

/* ── Sidebar layout ──────────────────────────────────────────────── */
#masterForm {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* Sidebar — fixed left column */
.rm-sidebar {
    width: 260px;
    background: linear-gradient(170deg, #0a0918 0%, #4a2060 50%, #c486c5 100%);
    border-right: none;
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    z-index: 200;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    overflow-x: hidden;
}

/* Content column — offset right of sidebar */
.rm-content-wrap {
    margin-left: 260px;
    flex: 1;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* ── Sidebar brand / logo ────────────────────────────────────────── */
.rm-sidebar-header {
    padding: 1.25rem 1rem 0.75rem;
    border-bottom: 1px solid rgba(255,255,255,0.15);
    flex-shrink: 0;
}

.rm-sidebar-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: #ffffff;
}

.rm-sidebar-brand:hover { text-decoration: none; color: #ffffff; }

.rm-logo-badge {
    background: linear-gradient(135deg, var(--violet), var(--primary));
    color: white;
    width: 36px;
    height: 36px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: -0.5px;
    flex-shrink: 0;
}

.rm-logo-text {
    font-size: 1.05rem;
    font-weight: 700;
    color: #ffffff;
}

/* ── Sidebar nav links ───────────────────────────────────────────── */
.rm-sidebar-nav {
    flex: 1;
    padding: 0.5rem 0.75rem;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.rm-sidebar-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.7rem 0.875rem;
    color: rgba(255,255,255,0.82);
    text-decoration: none;
    border-radius: 10px;
    font-size: 0.9375rem;
    font-weight: 500;
    transition: background 0.15s, color 0.15s;
    letter-spacing: 0.01em;
}

.rm-sidebar-link:hover {
    background: #f9e8ff3d;
    color: #ffffff;
    text-decoration: none;
}

.rm-sidebar-link.active {
    background: #f9e8ff3d;
    color: #ffffff;
    text-decoration: none;
    font-weight: 600;
}

.rm-sidebar-link.active:hover {
    background: #f9e8ff3d;
    color: #ffffff;
}

/* ── Sidebar footer (user section) ──────────────────────────────── */
.rm-sidebar-footer {
    flex-shrink: 0;
    border-top: 1px solid rgba(255,255,255,0.15);
    padding: 1rem 0.75rem 0.875rem;
}

.rm-sidebar-chip-row {
    padding: 0 0.25rem 0.625rem;
}

.rm-sidebar-user-drop { position: relative; }

.rm-sidebar-user-drop .rm-sidebar-user-btn {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    width: 100%;
    padding: 0.625rem 0.75rem;
    background: rgba(80, 30, 160, 0.55) !important;
    border: 1px solid rgba(150, 100, 230, 0.5) !important;
    border-radius: 10px;
    cursor: pointer;
    transition: background 0.15s, border-color 0.15s, box-shadow 0.15s;
    font-family: var(--font);
    text-align: left;
    box-shadow: 0 2px 10px rgba(50, 10, 120, 0.4);
}

.rm-sidebar-user-drop .rm-sidebar-user-btn:hover {
    background: rgba(95, 40, 185, 0.7) !important;
    border-color: rgba(170, 120, 245, 0.65) !important;
    box-shadow: 0 3px 14px rgba(50, 10, 120, 0.5);
}

/* Dropdown opens upward */
.rm-sidebar-user-menu {
    bottom: calc(100% + 8px) !important;
    top: auto !important;
    left: 0 !important;
    right: 0 !important;
    transform: translateY(6px) !important;
    min-width: 0 !important;
}

.rm-sidebar-user-drop.open .rm-sidebar-user-menu {
    transform: translateY(0) !important;
}

.rm-sidebar-user-chevron {
    color: rgba(255,255,255,0.6);
    flex-shrink: 0;
    transition: transform 0.2s;
}

.rm-sidebar-user-drop.open .rm-sidebar-user-chevron {
    transform: rotate(180deg);
}

.rm-sidebar-avatar {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: rgba(255,255,255,0.2);
    border: 1px solid rgba(255,255,255,0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 700;
    color: white;
    flex-shrink: 0;
    letter-spacing: -0.3px;
}

.rm-sidebar-user-info {
    flex: 1;
    min-width: 0;
}

.rm-sidebar-user-name,
.rm-sidebar .rm-dd-name {
    display: block;
    font-size: 0.8125rem;
    font-weight: 600;
    color: #ffffff !important;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.rm-sidebar-user-email,
.rm-sidebar .rm-dd-email {
    display: block;
    font-size: 0.71875rem;
    color: rgba(255,255,255,0.6) !important;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    margin-top: 1px;
}

/* Dropdown opens upward from the user button */
.rm-sidebar-user-menu {
    bottom: calc(100% + 8px) !important;
    top: auto !important;
    left: 0 !important;
    right: 0 !important;
    transform: translateY(6px) !important;
    min-width: 0 !important;
}

.rm-sidebar-user-drop.open .rm-sidebar-user-menu {
    transform: translateY(0) !important;
}

/* ── Mobile topbar (hidden on desktop) ──────────────────────────── */
.rm-topbar {
    display: none;
    height: 56px;
    background: #0a0918;
    align-items: center;
    justify-content: space-between;
    padding: 0 0.875rem;
    position: sticky;
    top: 0;
    z-index: 150;
    box-shadow: 0 1px 8px rgba(0,0,0,0.3);
}

.rm-topbar-spacer { width: 40px; }

/* ── Sidebar backdrop (mobile overlay) ──────────────────────────── */
.rm-sidebar-backdrop {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.5);
    z-index: 199;
}

.rm-sidebar-backdrop.open { display: block; }

/* ── Legacy navbar classes (candidate portal still uses these) ───── */
.rm-navbar {
    background: #111827;
    border-bottom: none;
    padding: 0;
    height: 64px;
    display: flex;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 1px 8px rgba(0, 0, 0, 0.3);
}

.rm-navbar-inner {
    max-width: 1180px;
    margin: 0 auto;
    padding: 0 1.5rem;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
}

.rm-navbar-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: white;
}

.rm-navbar-brand:hover { text-decoration: none; color: white; }

.rm-navbar-left {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.rm-nav-links {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.rm-nav-link {
    color: white;
    text-decoration: none;
    padding: 0.4rem 0.875rem;
    border-radius: var(--radius-pill);
    font-size: 0.9375rem;
    font-weight: 500;
    transition: all 0.15s;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.rm-nav-link:hover, .rm-nav-link.active {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    text-decoration: none;
}

.rm-navbar-actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.rm-user-badge {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.6);
    font-weight: 500;
}

/* ── Nav Dropdown ────────────────────────────────────────────────── */
.rm-nav-dropdown {
    position: relative;
}

.rm-nav-dropdown-toggle {
    background: none;
    border: none;
    cursor: pointer;
    font-family: var(--font);
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.rm-nav-chevron {
    font-size: 10px;
    opacity: 0.55;
    transition: transform 0.2s;
    line-height: 1;
}

.rm-nav-dropdown.open .rm-nav-chevron {
    transform: rotate(180deg);
}

.rm-nav-dropdown-menu {
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 14px;
    box-shadow: var(--shadow-dropdown);
    min-width: 190px;
    padding: 6px;
    z-index: 300;
    visibility: hidden;
    opacity: 0;
    pointer-events: none;
    transform: translateY(-6px);
    transition: opacity 0.15s, transform 0.15s, visibility 0s 0.15s;
}

.rm-nav-dropdown.open .rm-nav-dropdown-menu {
    visibility: visible;
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
    transition: opacity 0.15s, transform 0.15s, visibility 0s 0s;
}

.rm-nav-dropdown-right { left: auto; right: 0; min-width: 260px; }

.rm-nav-dropdown-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 0.5rem 0.75rem;
    color: var(--text);
    font-size: 0.9rem;
    text-decoration: none;
    border-radius: 8px;
    transition: background 0.12s;
    font-weight: 500;
    width: 100%;
    background: none;
    border: none;
    text-align: left;
    cursor: pointer;
    font-family: var(--font);
}

.rm-nav-dropdown-item:hover {
    background: var(--border-light);
    color: var(--text);
    text-decoration: none;
}

.rm-nav-dropdown-danger { color: var(--danger) !important; }
.rm-nav-dropdown-danger:hover { background: var(--danger-bg) !important; color: var(--danger) !important; }

.rm-nav-dropdown-divider {
    height: 1px;
    background: var(--border-light);
    margin: 4px 2px;
}

.rm-nav-dropdown-header {
    padding: 0.375rem 0.75rem 0.25rem;
}
.rm-dd-name {
    display: block;
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--text-primary);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.rm-dd-email {
    display: block;
    font-size: 0.75rem;
    color: var(--text-muted);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* ── User Avatar Button ──────────────────────────────────────────── */
.rm-user-avatar-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--violet), var(--primary));
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: opacity 0.15s, transform 0.15s;
    padding: 0;
}

.rm-user-avatar-btn:hover { opacity: 0.85; transform: scale(1.05); }

.rm-user-avatar-initials {
    color: white;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: -0.3px;
    line-height: 1;
    pointer-events: none;
}

/* ── Page Overlay Spinner ────────────────────────────────────────── */
.rm-page-overlay {
    position: fixed;
    inset: 0;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 1.25rem;
}

.rm-page-overlay.d-none { display: none !important; }

.rm-spinner-ring {
    width: 52px;
    height: 52px;
    border: 4px solid var(--border);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 0.75s linear infinite;
}

.rm-overlay-label {
    font-size: 0.9375rem;
    font-weight: 500;
    color: var(--text-muted);
}

/* ── Main Layout ─────────────────────────────────────────────────── */
.rm-main {
    width: 100%;
    padding: 2rem 1.5rem;
    flex: 1;
}

/* Candidate portal (top-navbar layout) — keep centred max-width */
.rm-navbar ~ * .rm-main,
.rm-navbar + .rm-main {
    max-width: 1180px;
    margin: 0 auto;
}

/* ── Welcome Hero ────────────────────────────────────────────────── */
.rm-welcome-hero {
    background: var(--white);
    border-radius: var(--radius-card);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-card);
    padding: 1.75rem 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.rm-welcome-title {
    font-size: 1.375rem;
    font-weight: 700;
    color: var(--text);
    margin: 0 0 0.25rem;
}

.rm-welcome-sub {
    color: var(--text-muted);
    font-size: 0.9375rem;
    margin: 0;
}

.rm-welcome-actions {
    display: flex;
    gap: 0.625rem;
    align-items: center;
    flex-shrink: 0;
}

/* ── Cards ───────────────────────────────────────────────────────── */
.rm-card {
    background: var(--white);
    border-radius: var(--radius-card);
    border: 1px solid rgba(229, 231, 235, 0.8);
    box-shadow: var(--shadow-card);
    padding: 1.5rem;
}

.rm-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.25rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border-light);
}

.rm-card-title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text);
    margin: 0;
}

/* ── Stat / KPI Cards ────────────────────────────────────────────── */
.rm-stat-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.rm-stat-card {
    background: var(--white);
    border-radius: var(--radius-card);
    border: 1px solid rgba(229, 231, 235, 0.8);
    box-shadow: var(--shadow-card);
    padding: 1.25rem 1.5rem;
    transition: transform 0.2s, box-shadow 0.2s;
}

.rm-stat-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.12);
}

.rm-stat-label {
    font-size: 0.8125rem;
    font-weight: 500;
    color: var(--text-muted);
    margin-bottom: 0.5rem;
}

.rm-stat-value {
    font-size: 2.25rem;
    font-weight: 700;
    color: var(--text);
    line-height: 1;
    margin-bottom: 0.5rem;
}

.rm-stat-trend {
    font-size: 0.8rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.3rem;
    color: var(--text-muted);
}

.rm-stat-trend.up   { color: var(--success); }
.rm-stat-trend.down { color: var(--danger); }

/* ── Buttons ─────────────────────────────────────────────────────── */
/* Base: icon-friendly, uniform border-box sizing */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.375rem;
    font-family: var(--font);
    font-size: 0.875rem;
    font-weight: 500;
    padding: 0.5625rem 1.375rem;
    border-radius: var(--radius-pill);
    border: 1.5px solid transparent;
    line-height: 1.25;
    transition: all 0.15s;
    cursor: pointer;
    text-decoration: none;
    white-space: nowrap;
}
.btn.w-100 { width: 100%; }
.btn svg   { flex-shrink: 0; }

.btn-primary {
    background: linear-gradient(90deg, var(--violet), var(--primary));
    color: white;
    font-weight: 600;
    box-shadow: var(--shadow-btn);
}
.btn-primary:hover, .btn-primary:focus {
    opacity: 0.92;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.22);
    transform: translateY(-1px);
    color: white;
}
.btn-primary:active  { transform: translateY(0); box-shadow: var(--shadow-btn); color: white; }
.btn-primary:disabled { opacity: 0.6; cursor: default; box-shadow: none; transform: none; color: white; }

.btn-outline-primary {
    color: var(--primary);
    border-color: var(--primary);
    background: transparent;
    font-weight: 600;
}
.btn-outline-primary:hover { background: var(--primary-light); color: var(--primary); }

.btn-outline-secondary, .btn-secondary {
    background: var(--bg);
    color: var(--text-light);
    border-color: var(--border);
}
.btn-outline-secondary:hover, .btn-secondary:hover {
    background: var(--border-light);
    color: var(--text);
    border-color: var(--border);
}

.btn-success {
    background: #059669;
    color: white;
    font-weight: 600;
    box-shadow: 0 2px 8px rgba(5,150,105,0.2);
}
.btn-success:hover { background: #047857; color: white; transform: translateY(-1px); box-shadow: 0 4px 14px rgba(5,150,105,0.3); }
.btn-success:active { transform: translateY(0); }
.btn-success:disabled { opacity: 0.6; cursor: default; transform: none; }

.btn-outline-warning {
    color: #B45309;
    border-color: #F59E0B;
    background: transparent;
}
.btn-outline-warning:hover  { background: #FEF3C7; border-color: #D97706; color: #92400E; }
.btn-outline-warning:active { background: #FDE68A; }
.btn-outline-warning:disabled { opacity: 0.55; cursor: default; }

.btn-outline-danger {
    color: var(--danger);
    border-color: var(--danger);
    background: transparent;
    font-weight: 500;
}
.btn-outline-danger:hover { background: rgba(239,68,68,0.07); color: var(--danger); }

.btn-sm  { padding: 0.375rem 0.875rem; font-size: 0.8125rem; }
.btn-lg  { padding: 0.6875rem 1.75rem; font-size: 0.9375rem; font-weight: 600; }

/* ── Forms ───────────────────────────────────────────────────────── */
.form-control {
    border-radius: var(--radius-input);
    border: 1px solid var(--border);
    padding: 0.625rem 0.875rem;
    font-size: 0.9375rem;
    transition: border-color 0.2s, box-shadow 0.2s;
    font-family: var(--font);
    color: var(--text);
    background: var(--white);
}

.form-control:focus {
    border-color: #6366F1;
    box-shadow: 0 0 0 1px rgba(99, 102, 241, 0.4);
    outline: none;
}

textarea.form-control {
    resize: none;
    overflow: hidden;
    field-sizing: content; /* Chrome 123+ / Firefox 130+ — auto-height with no JS */
    min-height: 80px;
}

.form-label {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-secondary);
    margin-bottom: 0.375rem;
    display: block;
}

/* ── Table ───────────────────────────────────────────────────────── */
.rm-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.875rem;
}

.rm-table th {
    text-align: left;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 0.75rem 1rem;
    border-bottom: 1px solid var(--border);
    white-space: nowrap;
}

.rm-table td {
    padding: 0.9rem 1rem;
    border-bottom: 1px solid var(--border-light);
    color: var(--text);
    vertical-align: middle;
}

.rm-table tr:last-child td { border-bottom: none; }
.rm-table tbody tr:hover td { background: #FAFBFF; }

/* ── AJAX Grid (toolbar, search, skeleton) ───────────────────────── */
.rm-grid-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.875rem;
    padding-bottom: 1.25rem;
    flex-wrap: wrap;
}

.rm-grid-search {
    position: relative;
    flex: 1;
    min-width: 180px;
    max-width: 340px;
}
.rm-grid-search-icon {
    position: absolute;
    left: 0.875rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    pointer-events: none;
}
.rm-grid-search input {
    padding-left: 2.375rem;
    padding-right: 2.25rem;
    border-radius: var(--radius-pill);
    width: 100%;
}

/* Search spinner dot */
.rm-search-spinner {
    position: absolute;
    right: 0.875rem;
    top: 50%;
    transform: translateY(-50%);
    width: 14px;
    height: 14px;
    border: 2px solid var(--border);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: rm-spin 0.6s linear infinite;
}
@keyframes rm-spin { to { transform: translateY(-50%) rotate(360deg); } }

/* Grid search overlay (covers table while debounce fires) */
.rm-grid-search-overlay {
    position: absolute;
    inset: 0;
    background: rgba(255,255,255,0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    border-radius: var(--radius);
}
.rm-grid-search-overlay .rm-grid-spinner {
    width: 28px;
    height: 28px;
    border-width: 3px;
}

/* Filter pills bar */
.rm-filter-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 0.375rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border-light);
    margin-bottom: 0.25rem;
}

.rm-filter-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.3125rem 0.875rem;
    border-radius: var(--radius-pill);
    border: 1.5px solid var(--border);
    background: var(--white);
    color: var(--text-light);
    font-size: 0.8rem;
    font-weight: 500;
    font-family: var(--font);
    cursor: pointer;
    transition: background 0.12s, color 0.12s, border-color 0.12s;
    white-space: nowrap;
}

.rm-filter-pill:hover {
    border-color: var(--primary);
    color: var(--primary);
    background: var(--primary-light);
}

.rm-filter-pill.active {
    background: var(--primary);
    border-color: var(--primary);
    color: white;
    font-weight: 600;
}

/* Grid loading spinner */
.rm-grid-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 4rem 1rem;
    gap: 0.875rem;
}

.rm-grid-spinner {
    width: 38px;
    height: 38px;
    border: 3px solid var(--border);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: rm-spin 0.7s linear infinite;
}

.rm-grid-loading-text {
    color: var(--text-muted);
    font-size: 0.875rem;
    margin: 0;
}

.rm-grid-noresults {
    padding: 2rem 1rem;
    text-align: center;
    color: var(--text-muted);
    font-size: 0.9rem;
    display: none;
}

/* Pagination */
.rm-pagination-wrap {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.875rem 0 0.25rem;
    border-top: 1px solid var(--border-light);
    gap: 1rem;
    flex-wrap: wrap;
}
.rm-pagination-info {
    font-size: 0.8125rem;
    color: var(--text-muted);
}
.rm-pagination-right {
    display: flex;
    align-items: center;
    gap: 0.875rem;
    flex-wrap: wrap;
}
.rm-page-size-label {
    font-size: 0.8125rem;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 0.375rem;
    margin: 0;
    white-space: nowrap;
}
.rm-page-size-select {
    font-size: 0.8125rem;
    padding: 0.2rem 0.5rem;
    border: 1px solid var(--border);
    border-radius: 6px;
    background: var(--surface);
    color: var(--text);
    cursor: pointer;
    outline: none;
}
.rm-page-size-select:focus { border-color: var(--primary); }
.rm-pagination {
    display: flex;
    align-items: center;
    gap: 0.2rem;
}
.rm-page-btn {
    min-width: 30px;
    height: 30px;
    padding: 0 0.375rem;
    border: 1px solid var(--border);
    border-radius: 6px;
    background: var(--surface);
    color: var(--text);
    font-size: 0.8125rem;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: border-color 0.15s, color 0.15s, background 0.15s;
    line-height: 1;
}
.rm-page-btn:hover:not(:disabled):not(.active) {
    border-color: var(--primary);
    color: var(--primary);
}
.rm-page-btn.active {
    background: var(--primary);
    border-color: var(--primary);
    color: #fff;
    font-weight: 600;
}
.rm-page-btn:disabled {
    opacity: 0.35;
    cursor: not-allowed;
}
.rm-page-ellipsis {
    padding: 0 0.2rem;
    color: var(--text-muted);
    font-size: 0.8125rem;
    line-height: 30px;
}

/* ── Badges ──────────────────────────────────────────────────────── */
.rm-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.2rem 0.75rem;
    border-radius: var(--radius-pill);
    font-size: 0.75rem;
    font-weight: 600;
}

.rm-badge-active   { background: #D1FAE5; color: #065F46; }
.rm-badge-inactive { background: #FEE2E2; color: #991B1B; }
.rm-badge-draft    { background: var(--primary-light); color: var(--primary); }

/* ── Empty State ─────────────────────────────────────────────────── */
.rm-empty {
    text-align: center;
    padding: 3rem 1rem;
    color: var(--text-muted);
}

.rm-empty-icon  { font-size: 3rem; margin-bottom: 1rem; opacity: 0.4; }
.rm-empty-title { font-size: 1rem; font-weight: 600; color: var(--text); margin-bottom: 0.5rem; }

/* ── Auth Pages ──────────────────────────────────────────────────── */
.auth-body {
    min-height: 100vh;
    background: linear-gradient(135deg, #EEF2FF 0%, #F5F3FF 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    font-family: var(--font);
}

.auth-wrapper { width: 100%; max-width: 520px; }

.auth-card {
    background: var(--white);
    border-radius: var(--radius-card);
    box-shadow: var(--shadow-card);
    padding: 2.5rem;
    border: 1px solid rgba(229, 231, 235, 0.8);
}

.auth-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 2rem;
}

.auth-logo-badge {
    background: linear-gradient(135deg, var(--violet), var(--primary));
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 700;
}

.auth-logo-text { font-size: 1.15rem; font-weight: 700; color: var(--text); }

.auth-title    { font-size: 1.5rem; font-weight: 700; color: var(--text); margin: 0 0 0.5rem; }
.auth-subtitle { color: var(--text-muted); font-size: 0.9375rem; margin: 0 0 1.75rem; line-height: 1.5; }

.auth-help {
    text-align: center;
    color: var(--text-muted);
    font-size: 0.8125rem;
    margin-top: 1rem;
    margin-bottom: 0;
}

.auth-back {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.875rem;
    margin-bottom: 1.5rem;
    transition: color 0.15s;
}

.auth-back:hover { color: var(--primary); text-decoration: none; }

.auth-email-highlight {
    background: var(--primary-light);
    color: var(--primary);
    padding: 0.5rem 0.875rem;
    border-radius: 8px;
    font-size: 0.9375rem;
    font-weight: 500;
    margin-bottom: 1.5rem;
}

/* ── Saved Session Card (Login page) ────────────────────────────── */
.rm-saved-session {
    display: flex;
    align-items: center;
    gap: 0.875rem;
    background: var(--border-light);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 0.875rem 1rem;
    margin-bottom: 0.75rem;
    cursor: pointer;
    transition: border-color 0.15s, box-shadow 0.15s;
}

.rm-saved-session:hover {
    border-color: var(--primary);
    box-shadow: 0 0 0 1px rgba(99, 102, 241, 0.2);
}

.rm-saved-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--violet), var(--primary));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 700;
    color: white;
    flex-shrink: 0;
    letter-spacing: -0.3px;
}

.rm-saved-info { flex: 1; min-width: 0; }

.rm-saved-email {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.rm-saved-hint {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-top: 1px;
}

.rm-forget-link {
    background: none;
    border: none;
    padding: 0;
    font-size: 0.8rem;
    color: var(--text-muted);
    text-decoration: underline;
    cursor: pointer;
    display: block;
    text-align: center;
    margin: 0.125rem auto 0.75rem;
    transition: color 0.12s;
}
.rm-forget-link:hover { color: var(--danger); }

.rm-or-divider {
    text-align: center;
    position: relative;
    margin: 1.25rem 0 1rem;
}

.rm-or-divider::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: var(--border);
}

.rm-or-divider span {
    background: var(--white);
    padding: 0 0.75rem;
    position: relative;
    font-size: 0.8125rem;
    color: var(--text-muted);
}

/* ── PIN Input ───────────────────────────────────────────────────── */
.pin-inputs {
    display: flex;
    gap: 0.75rem;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.pin-input {
    width: 60px;
    height: 64px;
    text-align: center;
    font-size: 1.5rem;
    font-weight: 700;
    border: 1.5px solid var(--border);
    border-radius: var(--radius-input);
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
    color: var(--text);
    font-family: var(--font);
    background: var(--white);
}

.pin-input:focus {
    border-color: #6366F1;
    box-shadow: 0 0 0 2px rgba(99, 102, 241, 0.2);
}

.pin-input.error { border-color: #EF4444; }

/* ── Create Job Hero ─────────────────────────────────────────────── */
.rm-create-hero {
    text-align: center;
    padding: 2.25rem 1rem 0;
    max-width: 640px;
    margin: 0 auto 2rem;
}

.rm-create-hero-title {
    font-size: 2rem;
    font-weight: 600;
    color: var(--text);
    margin: 0 0 0.625rem;
    line-height: 1.2;
}

.rm-create-hero-sub {
    color: var(--text-muted);
    font-size: 0.9375rem;
    margin: 0 0 1.5rem;
    line-height: 1.5;
}

/* ── Suggestion Chips ────────────────────────────────────────────── */
.rm-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: center;
}

.rm-chip {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-pill);
    padding: 6px 14px;
    font-size: 13px;
    font-weight: 400;
    color: var(--text-light);
    cursor: pointer;
    transition: all 0.15s;
    text-decoration: none;
    display: inline-block;
    font-family: var(--font);
}

.rm-chip:hover {
    border-color: #A855F7;
    box-shadow: 0 0 0 1px rgba(168, 85, 247, 0.25);
    color: var(--primary);
    text-decoration: none;
}

/* ── Create Job Card ─────────────────────────────────────────────── */
.rm-create-card {
    max-width: 1100px;
    margin: 0 auto;
}

.rm-create-card .form-control {
    min-height: 220px;
    resize: vertical;
    line-height: 1.45;
    font-size: 14px;
}

.rm-create-field-label {
    font-size: 0.9375rem;
    font-weight: 500;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
    display: block;
}

/* ── Add File Button ─────────────────────────────────────────────── */
.rm-add-file-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    border-radius: var(--radius-pill);
    padding: 6px 14px;
    border: 1px dashed var(--violet-border);
    background: var(--violet-light);
    font-size: 13px;
    color: var(--primary);
    cursor: pointer;
    font-weight: 500;
    transition: all 0.15s;
    font-family: var(--font);
}

.rm-add-file-btn:hover {
    border-color: var(--violet);
    background: #EDE9FE;
}

.rm-file-name {
    font-size: 12px;
    color: var(--text-muted);
    font-style: italic;
}

/* ── Getting Started Guide ───────────────────────────────────────── */
.rm-getting-started {
    margin-top: 18px;
    padding-top: 14px;
    border-top: 1px solid var(--border-light);
}

.rm-getting-started h4 {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-light);
    margin: 0 0 6px;
}

.rm-getting-started ol {
    margin: 0;
    padding-left: 1.25rem;
    color: var(--text-muted);
    font-size: 13px;
    line-height: 1.9;
}

.rm-getting-started ol strong { color: var(--text-secondary); }

/* ── Alerts ──────────────────────────────────────────────────────── */
.alert {
    border-radius: 10px;
    border: none;
    font-size: 0.875rem;
    padding: 0.75rem 1rem;
}

.alert-danger  { background: var(--danger-bg);  color: var(--danger); }
.alert-success { background: var(--success-bg); color: var(--success); }
.alert-warning { background: var(--warning-bg); color: var(--warning); }
.alert-info    { background: var(--primary-light); color: var(--primary); }

/* ── Inline Spinner ──────────────────────────────────────────────── */
.rm-spinner {
    display: inline-block;
    width: 15px;
    height: 15px;
    border: 2px solid rgba(255,255,255,0.35);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 0.7s linear infinite;
    vertical-align: middle;
    margin-right: 0.375rem;
}

@keyframes spin { to { transform: rotate(360deg); } }

/* ── Manage Job Page ─────────────────────────────────────────────── */

/* 3-column layout: sidenav | main content | (right col via mj-col) */
.mj-layout {
    display: grid;
    grid-template-columns: 190px minmax(0, 1fr) 380px;
    gap: 1.5rem;
    align-items: start;
    min-width: 0;
}

.mj-layout > * { min-width: 0; }
.mj-col { display: flex; flex-direction: column; gap: 1.25rem; min-width: 0; }

/* Sticky left sidenav — sticky must be on the grid item itself */
.mj-sidenav {
    position: sticky;
    top: 5rem;
    align-self: start;
}

.mj-sidenav-inner {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-card);
    padding: 1rem 0;
    overflow: hidden;
}

.mj-sidenav-heading {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.125rem 0.875rem 0.75rem;
    margin-bottom: 0.375rem;
    border-bottom: 1px solid var(--border-light);
}

.mj-sidenav-heading-dot {
    width: 20px;
    height: 20px;
    border-radius: 6px;
    background: linear-gradient(135deg, var(--primary), var(--violet));
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mj-sidenav-heading-dot svg { display: block; }

.mj-sidenav-heading-label {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--text);
    letter-spacing: -0.01em;
}

.mj-sidenav-link {
    display: block;
    font-size: 0.8125rem;
    color: var(--text-light);
    text-decoration: none;
    padding: 0.4375rem 1rem 0.4375rem 1.125rem;
    border-left: 3px solid transparent;
    transition: color 0.12s, background 0.12s, border-color 0.12s;
    line-height: 1.4;
}

.mj-sidenav-link:hover {
    color: var(--primary);
    background: var(--primary-light);
}

.mj-sidenav-link.active {
    color: var(--primary);
    font-weight: 600;
    background: var(--primary-light);
    border-left-color: var(--primary);
}

.mj-sidenav-sep {
    height: 1px;
    background: var(--border-light);
    margin: 0.375rem 1rem;
}

/* Scroll offset for sticky navbar */
section[id] { scroll-margin-top: 5rem; }

.mj-section {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-card);
    padding: 1.5rem;
}

/* Creative section title: larger with gradient left accent bar */
.mj-section-title {
    position: relative;
    font-size: 0.9375rem;
    font-weight: 700;
    color: var(--text);
    padding: 0.25rem 0 1rem 1rem;
    margin-bottom: 1.375rem;
    border-bottom: 1px solid var(--border-light);
    letter-spacing: -0.01em;
}

.mj-section-title::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.1rem;
    bottom: 1rem;
    width: 3px;
    border-radius: 2px;
    background: linear-gradient(180deg, var(--primary) 0%, var(--violet) 100%);
}

.mj-section-title small {
    display: block;
    font-size: 0.75rem;
    font-weight: 400;
    color: var(--text-muted);
    margin-top: 0.125rem;
    letter-spacing: 0;
}

.mj-field { margin-bottom: 1rem; }
.mj-field:last-child { margin-bottom: 0; }

.mj-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.mj-money { position: relative; }

.mj-money-prefix {
    position: absolute;
    top: 50%;
    left: 0.875rem;
    transform: translateY(-50%);
    color: var(--text-muted);
    font-size: 0.875rem;
    pointer-events: none;
}

.mj-money input { padding-left: 2rem; }

.mj-multicheck {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    padding: 0.625rem;
    border: 1px solid var(--border);
    border-radius: var(--radius-input);
    min-height: 42px;
}

.mj-check-label {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 3px 10px 3px 6px;
    border: 1px solid var(--border);
    border-radius: var(--radius-pill);
    font-size: 0.8125rem;
    cursor: pointer;
    user-select: none;
    transition: background 0.12s, border-color 0.12s;
    color: var(--text-light);
}

.mj-check-label input { display: none; }

.mj-check-label:has(input:checked) {
    background: var(--primary-light);
    border-color: var(--primary);
    color: var(--primary);
    font-weight: 600;
}

.mj-radio-group {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem 1.25rem;
    align-items: center;
    padding: 0.25rem 0;
}

.mj-nonneg {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.8125rem;
    color: var(--text-muted);
    cursor: pointer;
    user-select: none;
}

.mj-radio-label {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.875rem;
    color: var(--text);
    cursor: pointer;
}

/* Fixed full-viewport action bar */
.mj-action-bar {
    position: fixed;
    bottom: 0;
    left: 260px; /* offset for sidebar */
    right: 0;
    z-index: 300;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-top: 1px solid var(--border);
    box-shadow: 0 -2px 16px rgba(0,0,0,0.06);
    padding: 0.75rem 1.5rem;
}

.btn-label-short { display: none; }
.btn-label-full  { display: inline; }

.mj-action-bar-inner {
    max-width: 1180px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
}

.mj-breadcrumb {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.8125rem;
    color: var(--text-muted);
    margin-bottom: 1.25rem;
}

.mj-breadcrumb a { color: var(--text-muted); text-decoration: none; }
.mj-breadcrumb a:hover { color: var(--primary); }
.mj-breadcrumb-sep { opacity: 0.4; }

/* Status badges */
.rm-badge-status-draft          { background: #FEF3C7; color: #92400E; }
.rm-badge-status-active         { background: #D1FAE5; color: #065F46; }
.rm-badge-status-cancelled      { background: #FEE2E2; color: #991B1B; }
.rm-badge-status-applications   { background: #DBEAFE; color: #1E40AF; }
.rm-badge-status-shortlisted    { background: #EDE9FE; color: #4C1D95; }
.rm-badge-status-interviewing   { background: #FEF9C3; color: #713F12; }
.rm-badge-status-offered        { background: #DCFCE7; color: #14532D; }
.rm-badge-status-closed         { background: #F1F5F9; color: #475569; }
.rm-badge-status-other          { background: var(--border-light); color: var(--text-muted); }

/* Responsive: collapse sidenav on medium screens */
@media (max-width: 1100px) {
    .mj-layout { grid-template-columns: 1fr 360px; }
    .mj-sidenav { display: none; }
}

@media (max-width: 768px) {
    .mj-layout { grid-template-columns: 1fr; }
    .mj-row { grid-template-columns: 1fr; }
}

/* ── Profile Page ────────────────────────────────────────────────── */
.rm-profile-avatar {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--violet), var(--primary));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    font-weight: 700;
    color: white;
    flex-shrink: 0;
    letter-spacing: -1px;
}

.rm-profile-header {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--border-light);
}

.rm-profile-name {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text);
    margin: 0 0 0.2rem;
}

.rm-profile-email {
    font-size: 0.875rem;
    color: var(--text-muted);
    margin: 0;
}

.rm-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem 1.25rem;
}

.rm-form-group {
    display: flex;
    flex-direction: column;
    gap: 0.375rem;
}

.rm-field-readonly {
    background: var(--border-light);
    border: 1px solid var(--border);
    border-radius: var(--radius-input);
    padding: 0.625rem 0.875rem;
    font-size: 0.9375rem;
    color: var(--text-muted);
    font-family: var(--font);
}

@media (max-width: 640px) {
    .rm-form-row { grid-template-columns: 1fr; }
}

/* ── Page header (generic) ───────────────────────────────────────── */
.rm-page-header    { margin-bottom: 2rem; }
.rm-page-title     { font-size: 1.75rem; font-weight: 700; color: var(--text); margin: 0 0 0.25rem; }
.rm-page-subtitle  { color: var(--text-muted); margin: 0; font-size: 0.9375rem; }

/* ── Responsive ──────────────────────────────────────────────────── */
@media (max-width: 768px) {
    .rm-main          { padding: 0.875rem; }
    .rm-stat-grid     { grid-template-columns: repeat(2, 1fr); }
    .rm-page-title    { font-size: 1.375rem; }
    .rm-welcome-hero  { flex-direction: column; align-items: flex-start; }
    .rm-create-hero-title { font-size: 1.5rem; }
}

@media (max-width: 540px) {
    .auth-body    { align-items: flex-start; padding: 0; }
    .auth-wrapper { max-width: 100%; }
    .auth-card    { border-radius: 0; border-left: none; border-right: none; box-shadow: none; padding: 1.75rem 1.25rem; min-height: 100vh; }
}

@media (max-width: 480px) {
    .rm-stat-grid          { grid-template-columns: 1fr 1fr; }
    .pin-input             { width: 52px; height: 56px; font-size: 1.25rem; }
    .rm-portal-select      { grid-template-columns: 1fr 1fr; gap: 0.5rem; }
    .rm-portal-option      { padding: 0.75rem 0.5rem; gap: 0.375rem; }
    .rm-portal-option-icon { width: 36px; height: 36px; border-radius: 10px; }
    .rm-portal-option-desc { display: none; }
}

/* ── Phone Country Picker ────────────────────────────────────────── */
.rm-phone-hidden { display: none !important; }

.rm-phone-wrap {
    position: relative;
    display: flex;
    border: 1px solid var(--border);
    border-radius: var(--radius-input);
    background: var(--white);
    transition: border-color 0.2s, box-shadow 0.2s;
    overflow: visible;
}

.rm-phone-wrap:focus-within {
    border-color: #6366F1;
    box-shadow: 0 0 0 1px rgba(99, 102, 241, 0.4);
}

.rm-phone-flag-btn {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 0.625rem 0.5rem 0.625rem 0.75rem;
    background: var(--border-light);
    border: none;
    border-right: 1px solid var(--border);
    border-radius: var(--radius-input) 0 0 var(--radius-input);
    cursor: pointer;
    font-family: var(--font);
    color: var(--text);
    font-size: 0.875rem;
    font-weight: 500;
    flex-shrink: 0;
    transition: background 0.12s;
    min-width: 82px;
    user-select: none;
    white-space: nowrap;
}

.rm-phone-flag-btn:hover,
.rm-phone-wrap.open .rm-phone-flag-btn { background: var(--border); }

.rm-phone-flag { font-size: 1.15rem; line-height: 1; }
.rm-phone-flag img { width: 20px; height: 15px; object-fit: cover; border-radius: 2px; display: block; }

.rm-phone-dial {
    font-size: 0.8125rem;
    color: var(--text-muted);
    letter-spacing: -0.01em;
}

.rm-phone-chevron {
    color: var(--text-muted);
    transition: transform 0.2s;
    flex-shrink: 0;
}

.rm-phone-wrap.open .rm-phone-chevron { transform: rotate(180deg); }

.rm-phone-number-input {
    flex: 1;
    border: none;
    padding: 0.625rem 0.875rem;
    font-size: 0.9375rem;
    background: transparent;
    color: var(--text);
    outline: none;
    font-family: var(--font);
    min-width: 0;
    border-radius: 0 var(--radius-input) var(--radius-input) 0;
}

.rm-phone-dropdown {
    position: absolute;
    top: calc(100% + 5px);
    left: 0;
    width: 280px;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 14px;
    box-shadow: var(--shadow-dropdown);
    z-index: 500;
    overflow: hidden;
    visibility: hidden;
    opacity: 0;
    pointer-events: none;
    transform: translateY(-4px);
    transition: opacity 0.15s, transform 0.15s, visibility 0s 0.15s;
}

.rm-phone-wrap.open .rm-phone-dropdown {
    visibility: visible;
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
    transition: opacity 0.15s, transform 0.15s;
}

.rm-phone-search-wrap {
    padding: 8px;
    border-bottom: 1px solid var(--border-light);
}

.rm-phone-search {
    width: 100%;
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 0.375rem 0.625rem;
    font-size: 0.8125rem;
    outline: none;
    font-family: var(--font);
    color: var(--text);
    background: var(--white);
}

.rm-phone-search:focus { border-color: var(--primary); }

.rm-phone-country-list {
    max-height: 210px;
    overflow-y: auto;
    padding: 4px;
}

.rm-phone-country-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 0.375rem 0.625rem;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.875rem;
    transition: background 0.1s;
    color: var(--text);
}

.rm-phone-country-item:hover { background: var(--border-light); }

.rm-phone-country-item.selected {
    background: var(--primary-light);
    color: var(--primary);
    font-weight: 500;
}

.rm-phone-country-flag   { font-size: 1.1rem; flex-shrink: 0; }
.rm-phone-country-flag img { width: 20px; height: 15px; object-fit: cover; border-radius: 2px; display: block; }

.rm-phone-number-input.rm-phone-input-error { color: var(--danger, #DC2626); }
.rm-phone-number-input.rm-phone-input-ok    { color: var(--text); }
.rm-phone-country-name   { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rm-phone-country-dial   { font-size: 0.8rem; color: var(--text-muted); flex-shrink: 0; }
.rm-phone-country-item.selected .rm-phone-country-dial { color: var(--primary); opacity: 0.7; }

/* ── Mobile Hamburger Button ─────────────────────────────────────── */
.rm-hamburger {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 38px;
    height: 38px;
    padding: 0 0.5rem;
    background: none;
    border: none;
    cursor: pointer;
    border-radius: 8px;
    flex-shrink: 0;
    transition: background 0.15s;
}

.rm-hamburger:hover { background: rgba(255,255,255,0.1); }

.rm-hamburger-line {
    display: block;
    width: 18px;
    height: 2px;
    background: white;
    border-radius: 1px;
    transition: all 0.22s;
    transform-origin: center;
}

.rm-hamburger.open .rm-hamburger-line:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.rm-hamburger.open .rm-hamburger-line:nth-child(2) { opacity: 0; transform: scaleX(0); }
.rm-hamburger.open .rm-hamburger-line:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ── Mobile Nav Menu ─────────────────────────────────────────────── */
.rm-mobile-menu {
    display: none;
    position: fixed;
    top: 64px;
    left: 0;
    right: 0;
    background: #1a2235;
    z-index: 98;
    padding: 0.5rem 0.75rem 1rem;
    border-bottom: 1px solid rgba(255,255,255,0.08);
    box-shadow: 0 8px 32px rgba(0,0,0,0.35);
    max-height: calc(100vh - 64px);
    overflow-y: auto;
}

.rm-mobile-menu.open { display: block; }

.rm-mobile-menu-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.625rem;
    padding: 0.625rem 0.75rem 0.375rem;
}

.rm-mobile-menu-user {
    flex: 1;
    min-width: 0;
}

/* kept for any legacy references */
.rm-mobile-menu-email {
    padding: 0.625rem 0.75rem 0.375rem;
    font-size: 0.75rem;
    color: rgba(255,255,255,0.65);
    word-break: break-all;
}

.rm-mobile-menu-link {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    padding: 0.75rem 0.75rem;
    color: rgba(255,255,255,0.85);
    text-decoration: none;
    border-radius: 10px;
    font-size: 0.9375rem;
    font-weight: 500;
    transition: background 0.15s;
    cursor: pointer;
    background: none;
    border: none;
    width: 100%;
    font-family: var(--font);
    text-align: left;
}

.rm-mobile-menu-link:hover {
    background: rgba(255,255,255,0.08);
    color: white;
    text-decoration: none;
}

.rm-mobile-menu-link.danger { color: #FCA5A5; }
.rm-mobile-menu-link.danger:hover { background: rgba(239,68,68,0.15); }

.rm-mobile-menu-divider {
    height: 1px;
    background: rgba(255,255,255,0.08);
    margin: 0.375rem 0.75rem;
}

/* ── Responsive: candidate portal mobile navbar ───────────────────── */
@media (max-width: 767px) {
    .rm-nav-links  { display: none; }
    .rm-navbar .rm-nav-dropdown { display: none; }
}

/* ── Responsive: mobile layout improvements ──────────────────────── */
@media (max-width: 768px) {
    /* Dashboard toolbar stacks vertically */
    .rm-grid-toolbar {
        flex-direction: column;
        align-items: stretch;
        gap: 0.625rem;
    }

    .rm-grid-search { max-width: 100%; }

    .rm-grid-toolbar > a,
    .rm-grid-toolbar > button {
        align-self: flex-start;
    }

    /* Welcome hero action buttons fill width */
    .rm-welcome-actions {
        width: 100%;
    }

    .rm-welcome-actions .btn {
        flex: 1;
        min-width: 110px;
        justify-content: center;
    }

    /* Pagination stacks on mobile */
    .rm-pagination-wrap {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }

    .rm-pagination-right {
        width: 100%;
        justify-content: space-between;
    }

    /* Tighter page header */
    .rm-page-header { margin-bottom: 1.25rem; }

    /* Hide secondary table columns */
    .rm-col-hide-mobile { display: none; }

    /* Manage job action bar */
    .mj-action-bar { padding: 0.625rem 0.875rem; left: 0; }
    .btn-label-full { display: none; }
    .btn-label-short { display: inline; }

    /* Profile card full width on mobile */
    .rm-card[style*="max-width:760px"] { max-width: 100% !important; }

    /* ── Sidebar → mobile drawer ── */
    .rm-topbar { display: flex; }

    .rm-sidebar {
        transform: translateX(-260px);
        transition: transform 0.25s ease;
        top: 0; /* covers full height including topbar */
        z-index: 201;
    }

    .rm-sidebar.open { transform: translateX(0); }

    .rm-content-wrap {
        margin-left: 0;
    }
}

/* ── Custom Date Picker ───────────────────────────────────────────── */
.rm-dp-wrap {
    position: relative;
    display: block;
}

.rm-dp-field {
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    user-select: none;
    gap: 0.5rem;
    min-height: 42px;
    background: var(--white);
    color: var(--text);
}

.rm-dp-field:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(99,102,241,0.15); }

.rm-dp-display { flex: 1; font-size: 0.9375rem; }
.rm-dp-display.rm-dp-placeholder { color: var(--text-muted); }

.rm-dp-icon {
    flex-shrink: 0;
    color: var(--text-muted);
    transition: color 0.15s;
}
.rm-dp-field:hover .rm-dp-icon,
.rm-dp-wrap.open .rm-dp-icon { color: var(--primary); }

.rm-dp-dropdown {
    position: absolute;
    top: calc(100% + 5px);
    left: 0;
    width: 288px;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 14px;
    box-shadow: var(--shadow-dropdown);
    z-index: 600;
    overflow: hidden;
    visibility: hidden;
    opacity: 0;
    pointer-events: none;
    transform: translateY(-4px);
    transition: opacity 0.15s, transform 0.15s, visibility 0s 0.15s;
    padding: 12px;
}

.rm-dp-wrap.open .rm-dp-dropdown {
    visibility: visible;
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
    transition: opacity 0.15s, transform 0.15s;
}

.rm-dp-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 10px;
}

.rm-dp-month-label {
    font-weight: 600;
    font-size: 0.875rem;
    color: var(--text);
}

.rm-dp-nav {
    background: none;
    border: 1px solid var(--border);
    border-radius: 8px;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 1rem;
    color: var(--text-muted);
    line-height: 1;
    transition: background 0.12s, color 0.12s;
}
.rm-dp-nav:hover { background: var(--border-light); color: var(--text); }

.rm-dp-weekdays {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    margin-bottom: 4px;
}
.rm-dp-weekdays span {
    text-align: center;
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--text-muted);
    padding: 2px 0;
    text-transform: uppercase;
}

.rm-dp-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 2px;
}

.rm-dp-empty { height: 32px; }

.rm-dp-day {
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    border-radius: 8px;
    background: none;
    font-size: 0.8125rem;
    font-family: var(--font);
    color: var(--text);
    cursor: pointer;
    transition: background 0.1s, color 0.1s;
}
.rm-dp-day:hover { background: var(--border-light); }
.rm-dp-day.today { color: var(--primary); font-weight: 700; }
.rm-dp-day.selected {
    background: var(--primary);
    color: white;
    font-weight: 600;
}
.rm-dp-day.selected:hover { background: var(--primary-dark, #4F46E5); }
.rm-dp-day.today.selected { background: var(--primary); color: white; }

.rm-dp-footer {
    display: flex;
    justify-content: space-between;
    margin-top: 10px;
    padding-top: 8px;
    border-top: 1px solid var(--border-light);
}

.rm-dp-footer button {
    background: none;
    border: none;
    font-size: 0.8rem;
    font-family: var(--font);
    cursor: pointer;
    padding: 3px 8px;
    border-radius: 6px;
    transition: background 0.1s;
}
.rm-dp-today-btn { color: var(--primary); font-weight: 500; }
.rm-dp-today-btn:hover { background: var(--primary-light); }
.rm-dp-clear-btn { color: var(--text-muted); }
.rm-dp-clear-btn:hover { background: var(--border-light); color: var(--text); }

/* ── Login – Portal Selector ─────────────────────────────────────── */
.rm-portal-select-label {
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-bottom: 0.625rem;
}

.rm-portal-select {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.625rem;
    margin-bottom: 1.5rem;
}

.rm-portal-option {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 0.5rem;
    padding: 1rem 0.75rem;
    border: 2px solid var(--border);
    border-radius: 14px;
    background: var(--white);
    cursor: pointer;
    transition: border-color 0.15s, background 0.15s, box-shadow 0.15s;
    color: var(--text);
    font-family: var(--font);
    width: 100%;
}

.rm-portal-option:hover {
    border-color: var(--primary);
    background: var(--primary-light);
}

.rm-portal-option.active {
    border-color: var(--primary);
    background: var(--primary-light);
    box-shadow: 0 0 0 3px rgba(99,102,241,0.12);
}

/* Candidate option — green theme */
.rm-portal-option[data-mode="candidate"]:hover {
    border-color: #10B981;
    background: rgba(16,185,129,0.08);
}

.rm-portal-option[data-mode="candidate"].active {
    border-color: #10B981;
    background: rgba(16,185,129,0.08);
    box-shadow: 0 0 0 3px rgba(16,185,129,0.12);
}

.rm-portal-option-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: rgba(99,102,241,0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    transition: background 0.15s, color 0.15s;
    flex-shrink: 0;
}

.rm-portal-option.active .rm-portal-option-icon {
    background: var(--primary);
    color: white;
}

.rm-portal-option[data-mode="candidate"] .rm-portal-option-icon {
    background: rgba(16,185,129,0.1);
    color: #059669;
}

.rm-portal-option[data-mode="candidate"].active .rm-portal-option-icon {
    background: #10B981;
    color: white;
}

.rm-portal-option-title {
    font-weight: 600;
    font-size: 0.875rem;
    color: var(--text);
}

.rm-portal-option-desc {
    font-size: 0.7rem;
    color: var(--text-muted);
    line-height: 1.35;
}

/* ── Portal mode chip ────────────────────────────────────────────── */
.rm-portal-chip {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 20px;
    font-size: 0.6875rem;
    font-weight: 600;
    letter-spacing: 0.01em;
    margin-top: 3px;
}

.rm-portal-chip-employer  { background: rgba(99,102,241,0.1);  color: var(--primary); }
.rm-portal-chip-candidate { background: rgba(16,185,129,0.1);  color: #059669; }

/* Lighter chip colours inside dark mobile menu */
.rm-mobile-menu .rm-portal-chip-employer  { background: rgba(165,180,252,0.2); color: #a5b4fc; }
.rm-mobile-menu .rm-portal-chip-candidate { background: rgba(110,231,183,0.2); color: #6ee7b7; }

/* Sidebar chip — on dark gradient */
.rm-sidebar .rm-portal-chip-employer {
    background: rgba(255,255,255,0.15);
    color: rgba(255,255,255,0.9);
    border: 1px solid rgba(255,255,255,0.25);
    font-weight: 600;
}
.rm-sidebar .rm-portal-chip-candidate {
    background: rgba(255,255,255,0.15);
    color: rgba(255,255,255,0.9);
    border: 1px solid rgba(255,255,255,0.25);
    font-weight: 600;
}

/* ── Candidate topbar ────────────────────────────────────────────── */
.rm-topbar-candidate { background: #071a0e; }

.rm-sidebar-candidate .rm-logo-badge,
.rm-topbar-candidate .rm-logo-badge {
    background: linear-gradient(135deg, #16a34a, #4ade80);
}

/* ── Candidate sidebar — dark green theme ────────────────────────── */
.rm-sidebar-candidate {
    background: linear-gradient(170deg, #071a0e 0%, #0f4c2a 50%, #16a34a 100%);
}

.rm-sidebar-candidate .rm-sidebar-header {
    border-bottom-color: rgba(255,255,255,0.15);
}

.rm-sidebar-candidate .rm-sidebar-footer {
    border-top-color: rgba(255,255,255,0.15);
}

.rm-sidebar-candidate .rm-sidebar-link {
    color: rgba(255,255,255,0.82);
}

.rm-sidebar-candidate .rm-sidebar-link:hover {
    background: #f9e8ff3d;
    color: #ffffff;
}

.rm-sidebar-candidate .rm-sidebar-link.active {
    background: #f9e8ff3d;
    color: #ffffff;
}

.rm-sidebar-candidate .rm-sidebar-link.active:hover {
    background: #f9e8ff3d;
    color: #ffffff;
}

.rm-sidebar-candidate .rm-sidebar-user-drop .rm-sidebar-user-btn {
    background: rgba(10, 80, 40, 0.55) !important;
    border: 1px solid rgba(74, 222, 128, 0.4) !important;
    box-shadow: 0 2px 10px rgba(0, 60, 20, 0.4);
}

.rm-sidebar-candidate .rm-sidebar-user-drop .rm-sidebar-user-btn:hover {
    background: rgba(15, 100, 50, 0.7) !important;
    border-color: rgba(74, 222, 128, 0.6) !important;
    box-shadow: 0 3px 14px rgba(0, 60, 20, 0.5);
}

.rm-sidebar-candidate .rm-portal-chip-candidate {
    background: rgba(255,255,255,0.15);
    color: rgba(255,255,255,0.9);
    border: 1px solid rgba(255,255,255,0.25);
    font-weight: 600;
}

/* Switch portal nav item */
.rm-nav-dropdown-switch { color: var(--primary); font-weight: 500; }
.rm-nav-dropdown-switch:hover { background: var(--primary-light) !important; }

/* ── Candidate portal navbar accent ──────────────────────────────── */
.rm-navbar-candidate { border-bottom-color: #10B981; }
.rm-navbar-candidate .rm-logo-badge {
    background: linear-gradient(135deg, #10B981, #059669);
}

/* ── Candidate dashboard ─────────────────────────────────────────── */
.rm-candidate-welcome {
    background: linear-gradient(135deg, #ECFDF5 0%, #F0FDF4 100%);
    border: 1px solid #A7F3D0;
    border-radius: var(--radius-card);
    padding: 2rem 2.25rem;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.rm-candidate-welcome-icon {
    width: 56px;
    height: 56px;
    border-radius: 16px;
    background: linear-gradient(135deg, #10B981, #059669);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    flex-shrink: 0;
}

.rm-candidate-welcome h2 {
    font-size: 1.25rem;
    font-weight: 700;
    color: #065F46;
    margin: 0 0 0.25rem;
}

.rm-candidate-welcome p {
    color: #047857;
    margin: 0;
    font-size: 0.9375rem;
}

.rm-quick-actions {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin-bottom: 1.5rem;
}
@media (max-width: 768px) {
    .rm-quick-actions { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
    .rm-quick-actions { grid-template-columns: 1fr; }
}

.rm-quick-action-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-card);
    padding: 1.25rem 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    text-decoration: none;
    color: var(--text);
    transition: border-color 0.15s, box-shadow 0.15s;
    cursor: pointer;
}

.rm-quick-action-card:hover {
    border-color: var(--primary);
    box-shadow: 0 2px 8px rgba(99,102,241,0.12);
    color: var(--text);
    text-decoration: none;
}

.rm-quick-action-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: var(--primary);
    background: var(--primary-light);
}

.rm-quick-action-title { font-weight: 600; font-size: 0.9375rem; }
.rm-quick-action-desc  { font-size: 0.8125rem; color: var(--text-muted); }

/* ── View Candidates page ──────────────────────────────────────── */
.vc-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}
.vc-header-left { flex: 1; min-width: 0; }
.vc-job-title {
    font-size: 1.625rem;
    font-weight: 700;
    margin: 0 0 0.5rem;
    color: var(--text);
    line-height: 1.2;
}
.vc-job-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-muted);
    font-size: 0.875rem;
}
.vc-job-meta-sep { color: rgba(0,0,0,0.18); }
.vc-header-actions { flex-shrink: 0; }

.vc-stat-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    margin-bottom: 1.5rem;
}
.vc-stat-card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 1.25rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    box-shadow: 0 1px 2px rgba(0,0,0,0.03);
}
.vc-stat-icon {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.vc-stat-icon-purple {
    background: #EEF2FF;
    color: #4F46E5;
}
.vc-stat-body { flex: 1; min-width: 0; }
.vc-stat-value {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--text);
    line-height: 1;
    margin-bottom: 0.25rem;
}
.vc-stat-label {
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 0.125rem;
}
.vc-stat-sub {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.vc-list-heading { flex: 1; min-width: 0; }
.vc-list-title {
    font-size: 1.125rem;
    font-weight: 700;
    margin: 0 0 0.125rem;
    color: var(--text);
}
.vc-list-subtitle {
    font-size: 0.8125rem;
    color: var(--text-muted);
    margin: 0;
}
.vc-grid-search { max-width: 320px; }

.vc-card-list {
    display: flex;
    flex-direction: column;
    gap: 0.875rem;
    padding: 0.25rem 0;
}

.vc-card {
    display: grid;
    grid-template-columns: minmax(240px, 1.4fr) minmax(220px, 1.5fr) 200px 36px;
    gap: 1.25rem;
    align-items: center;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 1.125rem 1.25rem;
    transition: border-color 0.15s, box-shadow 0.15s, transform 0.15s;
}
.vc-card:hover {
    border-color: #C7D2FE;
    box-shadow: 0 4px 14px rgba(79,70,229,0.08);
}

.vc-card-identity {
    display: flex;
    align-items: center;
    gap: 0.875rem;
    min-width: 0;
}
.vc-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: linear-gradient(135deg, #6366F1 0%, #8B5CF6 100%);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 1rem;
    flex-shrink: 0;
    letter-spacing: 0.02em;
    overflow: hidden;
}
.vc-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    display: block;
}
.vc-card-name-block { min-width: 0; flex: 1; }
.vc-card-name {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    font-weight: 600;
    font-size: 0.9375rem;
    color: var(--text);
    margin-bottom: 0.125rem;
    line-height: 1.3;
}
.vc-verified { flex-shrink: 0; }
.vc-card-title {
    font-size: 0.8125rem;
    color: var(--text-muted);
    margin-bottom: 0.25rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.vc-card-meta {
    font-size: 0.75rem;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 0.25rem;
    flex-wrap: wrap;
}
.vc-dot { margin: 0 0.25rem; color: rgba(0,0,0,0.25); }

.vc-card-skills { min-width: 0; }
.vc-skills-label {
    font-size: 0.6875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-muted);
    margin-bottom: 0.4rem;
}
.vc-skill-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 0.375rem;
}
.vc-skill-chip {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.625rem;
    border-radius: 999px;
    background: #F3F1FF;
    color: #4F46E5;
    font-size: 0.75rem;
    font-weight: 500;
    border: 1px solid #E0E7FF;
}
.vc-skill-more {
    font-size: 0.75rem;
    color: var(--text-muted);
    align-self: center;
}
.vc-skill-empty {
    font-size: 0.8125rem;
    color: var(--text-muted);
    font-style: italic;
}

.vc-card-score { text-align: left; min-width: 0; }
.vc-score-label {
    font-size: 0.6875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-muted);
    margin-bottom: 0.25rem;
}
.vc-score-value {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--text);
    line-height: 1;
    margin-bottom: 0.5rem;
}
.vc-score-bar {
    height: 6px;
    background: #F3F4F6;
    border-radius: 999px;
    overflow: hidden;
    margin-bottom: 0.375rem;
}
.vc-score-bar-fill {
    height: 100%;
    border-radius: 999px;
    transition: width 0.3s ease;
}
.vc-score-excellent      { background: linear-gradient(90deg, #10B981 0%, #059669 100%); }
.vc-score-good           { background: linear-gradient(90deg, #10B981 0%, #059669 100%); }
.vc-score-fair           { background: linear-gradient(90deg, #F59E0B 0%, #D97706 100%); }
.vc-score-low            { background: linear-gradient(90deg, #9CA3AF 0%, #6B7280 100%); }
.vc-score-excellent-text { color: #059669; }
.vc-score-good-text      { color: #059669; }
.vc-score-fair-text      { color: #D97706; }
.vc-score-low-text       { color: #6B7280; }
.vc-score-band           { font-size: 0.75rem; font-weight: 600; }

.vc-star {
    background: transparent;
    border: 1px solid transparent;
    border-radius: 8px;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #9CA3AF;
    cursor: pointer;
    transition: background 0.15s, color 0.15s, border-color 0.15s;
    flex-shrink: 0;
}
.vc-star:hover {
    background: #FFFBEB;
    color: #F59E0B;
    border-color: #FDE68A;
}
.vc-star-active {
    background: #FFFBEB;
    color: #F59E0B;
    border-color: #FDE68A;
}
.vc-star-active svg { fill: currentColor; }

@media (max-width: 1100px) {
    .vc-stat-grid { grid-template-columns: repeat(2, 1fr); }
    .vc-card {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    .vc-card-score { border-top: 1px solid var(--border); padding-top: 0.75rem; }
    .vc-star { position: absolute; top: 1rem; right: 1rem; }
    .vc-card { position: relative; }
}

@media (max-width: 640px) {
    .vc-stat-grid { grid-template-columns: 1fr; }
    .vc-job-title { font-size: 1.375rem; }
    .vc-grid-search { max-width: 100%; width: 100%; }
}

/* ── Manage Job page header ────────────────────────────────────── */
.mj-page-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
}
.mj-page-header-left {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
    min-width: 0;
}
.mj-page-header-right {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-shrink: 0;
}
