/* ============================================================
   SAMS-STC Admin Dashboard — Enterprise Version
   Solid Backgrounds, High Density, Light Sidebar in Light Mode
   ============================================================ */

:root {
    /* Light Theme Variables */
    --clr-primary-h: 221;
    --clr-primary-s: 83%;
    --clr-primary-l: 53%;
    --clr-primary: hsl(var(--clr-primary-h), var(--clr-primary-s), var(--clr-primary-l));
    --clr-primary-dark: hsl(var(--clr-primary-h), var(--clr-primary-s), 40%);
    --clr-primary-light: hsl(var(--clr-primary-h), var(--clr-primary-s), 95%);

    --clr-success: hsl(142, 71%, 45%);
    --clr-warning: hsl(38, 92%, 50%);
    --clr-danger: hsl(0, 84%, 60%);
    --clr-info: hsl(199, 89%, 48%);

    --clr-bg: hsl(220, 20%, 97%);
    --clr-surface: hsl(0, 0%, 100%);
    --clr-border: hsl(220, 13%, 85%);
    --clr-text: hsl(220, 9%, 15%);
    --clr-text-muted: hsl(220, 9%, 46%);
    
    /* Dark Sidebar in both modes */
    --clr-sidebar-bg: hsl(222, 47%, 30%);
    --clr-sidebar-text: hsl(215, 20%, 65%);
    --clr-sidebar-border: hsl(222, 47%, 20%);
    --clr-sidebar-active-bg: hsl(222, 47%, 15%);
    --clr-sidebar-active-text: white;

    --sidebar-width: 240px;
    --sidebar-collapsed: 60px;
    --topbar-height: 56px;
    --radius: 4px; /* Sharper for Enterprise */
    --radius-sm: 2px;

    --font-sans: Arial, Helvetica, sans-serif;
    --font-mono: Arial, Helvetica, sans-serif; /* Also use Arial for consistency if needed, but let's override globally */
    
    --shadow: 0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    
    --transition: all 0.2s ease;
    
    /* No glassmorphism, use solid surfaces */
    --glass-bg: var(--clr-surface);
    --glass-border: var(--clr-border);
    --glass-blur: none;
}

/* Dark Theme Variables */
[data-bs-theme="dark"] {
    --clr-bg: hsl(222, 47%, 7%);
    --clr-surface: hsl(222, 47%, 12%);
    --clr-border: hsl(222, 47%, 20%);
    --clr-text: hsl(210, 40%, 98%);
    --clr-text-muted: hsl(215, 20%, 65%);
    
    /* Dark Sidebar in Dark Mode */
    --clr-sidebar-bg: hsl(222, 47%, 10%);
    --clr-sidebar-text: hsl(215, 20%, 65%);
    --clr-sidebar-border: hsl(222, 47%, 20%);
    --clr-sidebar-active-bg: hsl(222, 47%, 15%);
    --clr-sidebar-active-text: white;
    
    --glass-bg: var(--clr-surface);
    --glass-border: var(--clr-border);
}

/* ============================================================
   GLOBAL & LAYOUT
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; }

body {
    font-family: var(--font-sans);
    background: var(--clr-bg);
    color: var(--clr-text);
    margin: 0;
    font-size: 0.875rem; /* High density */
    line-height: 1.5;
    transition: var(--transition);
}

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

.main-wrapper {
    flex: 1;
    margin-left: var(--sidebar-width);
    display: flex;
    flex-direction: column;
    transition: var(--transition);
    min-width: 0;
}

.app-shell.sidebar-collapsed .main-wrapper { 
    margin-left: var(--sidebar-collapsed); 
}

/* ============================================================
   SIDEBAR
   ============================================================ */
.sidebar {
    position: fixed;
    top: 0;
    left: 0;
    width: var(--sidebar-width);
    height: 100vh;
    background: var(--clr-sidebar-bg);
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    overflow-x: hidden;
    transition: var(--transition);
    z-index: 1000;
    border-right: 1px solid var(--clr-sidebar-border);
}

.sidebar-brand {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem;
    min-height: var(--topbar-height);
    border-bottom: 1px solid var(--clr-sidebar-border);
}

.brand-logo {
    width: 32px;
    height: 32px;
    object-fit: contain;
}

.brand-name {
    font-size: 1rem;
    font-weight: 700;
    color: var(--clr-sidebar-active-text);
    letter-spacing: -0.01em;
    white-space: nowrap;
    opacity: 1;
    transition: opacity 0.2s ease;
}

.sidebar-nav {
    flex: 1;
    padding: 1rem 0.5rem;
}

.nav-section-label {
    font-size: 0.65rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--clr-sidebar-text);
    padding: 1rem 0.75rem 0.25rem;
    white-space: nowrap;
}

.sidebar-nav .nav-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0.75rem;
    border-radius: var(--radius);
    color: var(--clr-sidebar-text);
    text-decoration: none;
    font-size: 0.8125rem;
    font-weight: 500;
    transition: var(--transition);
    white-space: nowrap;
    margin-bottom: 1px;
}

.sidebar-nav .nav-link:hover {
    background: var(--clr-sidebar-active-bg);
    color: var(--clr-sidebar-active-text);
}

.sidebar-nav .nav-link.active {
    background: var(--clr-sidebar-active-bg);
    color: var(--clr-sidebar-active-text);
    font-weight: 600;
}

.sidebar-nav .nav-link i {
    font-size: 1.1rem;
    width: 20px;
    text-align: center;
    flex-shrink: 0;
}

.sidebar-footer {
    padding: 0.75rem 1rem;
    border-top: 1px solid var(--clr-sidebar-border);
    color: var(--clr-sidebar-text);
    font-size: 0.7rem;
}

/* Sidebar Collapsed State */
.app-shell.sidebar-collapsed .sidebar {
    width: var(--sidebar-collapsed);
}

.app-shell.sidebar-collapsed .sidebar .brand-name,
.app-shell.sidebar-collapsed .sidebar .nav-section-label,
.app-shell.sidebar-collapsed .sidebar .nav-link span,
.app-shell.sidebar-collapsed .sidebar .sidebar-footer {
    opacity: 0;
    visibility: hidden;
    width: 0;
    padding: 0;
    margin: 0;
}

.app-shell.sidebar-collapsed .sidebar .nav-link {
    justify-content: center;
    padding: 0.5rem;
}

/* ============================================================
   TOPBAR
   ============================================================ */
.topbar {
    height: var(--topbar-height);
    background: var(--clr-surface);
    border-bottom: 1px solid var(--clr-border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 1rem;
    position: sticky;
    top: 0;
    z-index: 900;
    transition: var(--transition);
}

.topbar-left, .topbar-right { 
    display: flex; 
    align-items: center; 
    gap: 0.75rem; 
}

.topbar-search {
    position: relative;
    max-width: 260px;
}

.topbar-search input {
    background: var(--clr-bg);
    border: 1px solid var(--clr-border);
    border-radius: var(--radius);
    padding: 0.4rem 0.75rem 0.4rem 2.2rem;
    font-size: 0.8125rem;
    width: 100%;
    transition: var(--transition);
}

.topbar-search input:focus {
    border-color: var(--clr-primary);
    box-shadow: none;
    outline: none;
}

.topbar-search i {
    position: absolute;
    left: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--clr-text-muted);
}

.btn-icon {
    background: none;
    border: none;
    width: 32px;
    height: 32px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius);
    color: var(--clr-text-muted);
    font-size: 1.1rem;
    cursor: pointer;
    transition: var(--transition);
}

.btn-icon:hover { 
    background: var(--clr-primary-light); 
    color: var(--clr-primary); 
}

.admin-name { 
    font-size: 0.8125rem; 
    font-weight: 600; 
    color: var(--clr-text); 
}

.badge-role {
    font-size: 0.65rem;
    background: var(--clr-primary-light);
    color: var(--clr-primary);
    border-radius: 2px;
    padding: 0.15rem 0.4rem;
    font-weight: 600;
}

/* ============================================================
   PAGE CONTENT
   ============================================================ */
.page-content {
    padding: 1.25rem; /* High density */
    flex: 1;
}

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

.page-title {
    font-size: 1.25rem; /* High density */
    font-weight: 700;
    color: var(--clr-text);
    margin: 0;
}

.page-subtitle {
    font-size: 0.75rem;
    color: var(--clr-text-muted);
    margin: 0.15rem 0 0;
}

/* ============================================================
   CARDS
   ============================================================ */
.card {
    background: var(--clr-surface);
    border: 1px solid var(--clr-border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    transition: var(--transition);
    overflow: hidden;
}

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

.card-header {
    padding: 0.75rem 1rem;
    border-bottom: 1px solid var(--clr-border);
    background: transparent;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
}

.card-title { 
    font-size: 0.875rem; 
    font-weight: 600; 
    margin: 0; 
    color: var(--clr-text);
}

.card-body { 
    padding: 1rem; /* High density */
}

/* ============================================================
   STAT CARDS
   ============================================================ */
.stat-card {
    background: var(--clr-surface);
    border: 1px solid var(--clr-border);
    border-radius: var(--radius);
    padding: 1rem; /* High density */
    display: flex;
    align-items: center;
    gap: 1rem;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.stat-icon {
    width: 40px; /* High density */
    height: 40px;
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    flex-shrink: 0;
}

.stat-icon.primary { background: var(--clr-primary-light); color: var(--clr-primary); }
.stat-icon.success { background: hsl(142, 71%, 90%); color: var(--clr-success); }
.stat-icon.warning { background: hsl(38, 92%, 90%); color: var(--clr-warning); }
.stat-icon.danger  { background: hsl(0, 84%, 90%); color: var(--clr-danger); }
.stat-icon.info    { background: hsl(199, 89%, 90%); color: var(--clr-info); }

[data-bs-theme="dark"] .stat-icon.success { background: rgba(34, 197, 94, 0.1); }
[data-bs-theme="dark"] .stat-icon.warning { background: rgba(245, 158, 11, 0.1); }
[data-bs-theme="dark"] .stat-icon.danger  { background: rgba(239, 68, 68, 0.1); }
[data-bs-theme="dark"] .stat-icon.info    { background: rgba(14, 165, 233, 0.1); }

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

.stat-value { 
    font-size: 1.5rem; /* High density */
    font-weight: 700; 
    line-height: 1.1;
    color: var(--clr-text);
}

/* ============================================================
   TABLES
   ============================================================ */
.table { 
    font-size: 0.8125rem; /* High density */
    margin-bottom: 0;
}

.table thead th {
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    color: var(--clr-text-muted);
    border-bottom: 1px solid var(--clr-border);
    padding: 0.75rem;
    background: var(--clr-bg);
}

.table td { 
    padding: 0.75rem; 
    vertical-align: middle; 
    border-bottom: 1px solid var(--clr-border);
    color: var(--clr-text);
}

/* ============================================================
   LOGIN PAGE
   ============================================================ */
.login-page {
    background: var(--clr-bg);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.login-card {
    background: var(--clr-surface);
    border: 1px solid var(--clr-border);
    border-radius: var(--radius);
    padding: 2rem;
    width: 100%;
    max-width: 360px; /* More compact */
    box-shadow: var(--shadow-lg);
}

/* ============================================================
   UTILITIES & ANIMATIONS
   ============================================================ */
.fade-in {
    animation: fadeIn 0.3s ease-in-out;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Dropdown Coexistence Fix */
.dropdown-menu {
    border-radius: var(--radius) !important;
    border: 1px solid var(--clr-border) !important;
    box-shadow: var(--shadow-lg) !important;
    background: var(--clr-surface) !important;
}

/* Strict Arial Font Enforcement for All Elements */
*, *::before, *::after, body, button, input, select, textarea, .form-control, .btn, .nav-link, .brand-name, .admin-name, .table, h1, h2, h3, h4, h5, h6, p, span, div, strong, small {
    font-family: Arial, Helvetica, sans-serif !important;
}

/* ============================================================
   GLOBAL UTILITIES & SHARED ELEMENTS
   ============================================================ */
.cursor-pointer {
    cursor: pointer !important;
}
.fw-600 {
    font-weight: 600 !important;
}
.fw-700 {
    font-weight: 700 !important;
}
.fw-800 {
    font-weight: 800 !important;
}
.border-dashed {
    border-style: dashed !important;
    border-width: 2px !important;
    background-color: var(--bs-body-bg);
}
.fade-in {
    animation: fadeIn 0.3s ease-in-out;
}
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(5px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Custom Scrollbar for Searchable Dropdowns */
.scrollable-options::-webkit-scrollbar {
    width: 6px;
}
.scrollable-options::-webkit-scrollbar-track {
    background: transparent;
}
.scrollable-options::-webkit-scrollbar-thumb {
    background-color: rgba(0, 0, 0, 0.15);
    border-radius: 4px;
}
.scrollable-options::-webkit-scrollbar-thumb:hover {
    background-color: rgba(0, 0, 0, 0.25);
}

/* Options dropdown matching rules */
.option-item-wrapper {
    border-radius: 4px;
    transition: background-color 0.15s ease;
}
.option-item-wrapper:hover {
    background-color: var(--bs-secondary-bg-subtle, #f1f3f5) !important;
}
.option-item-wrapper.selected-highlight {
    background-color: var(--bs-primary-bg-subtle, #e7f5ff) !important;
    font-weight: 600;
}

/* Shared Status Badges & Pills */
.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 11px;
    font-weight: 500;
    padding: 3px 8px;
    border-radius: 20px;
    white-space: nowrap;
    letter-spacing: 0.03em;
}
.status-active, .status-active-badge { background: #EAF3DE; color: #3B6D11; }
.status-inactive, .status-inactive-badge { background: #FCEBEB; color: #A32D2D; }
.status-pending { background: #FFF8E1; color: #F57F17; }
.status-rejected { background: #FFEBEE; color: #C62828; }
.status-deactive, .status-closed, .status-expired { background: #F5F5F5; color: #616161; }

/* ============================================================
   SAMS STC REPORT COMPONENT
   ============================================================ */
.report-container {
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
    color: #1e293b;
}
.filter-section {
    background: var(--clr-surface);
    border: 1px solid var(--clr-border);
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
    padding: 16px 20px;
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
}
.filter-controls {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}
.filter-select {
    min-width: 180px;
    height: 38px;
    border-radius: 8px;
    border: 1px solid var(--clr-border);
    font-size: 14px;
    font-weight: 500;
    padding: 0 12px;
    outline: none;
    transition: border-color 0.15s;
    background: var(--clr-surface);
    color: var(--clr-text);
}
.filter-select:focus {
    border-color: var(--clr-primary);
}
.date-picker-group {
    display: none; /* Controlled by JS */
    align-items: center;
    gap: 8px;
}
.date-input {
    height: 38px;
    border-radius: 8px;
    border: 1px solid var(--clr-border);
    font-size: 13.5px;
    padding: 0 10px;
    outline: none;
    background: var(--clr-surface);
    color: var(--clr-text);
}
.date-input:focus {
    border-color: var(--clr-primary);
}
.btn-apply {
    height: 38px;
    background: #2563eb;
    color: white;
    border: none;
    border-radius: 8px;
    padding: 0 16px;
    font-size: 13.5px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.15s;
}
.btn-apply:hover {
    background: #1d4ed8;
}
.btn-export {
    height: 38px;
    background: #10b981;
    color: white;
    border: none;
    border-radius: 8px;
    padding: 0 18px;
    font-size: 13.5px;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    transition: background 0.15s;
}
.btn-export:hover {
    background: #059669;
    color: white;
}
.dashboard-grid {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 24px;
    margin-bottom: 24px;
}
@media (max-width: 992px) {
    .dashboard-grid {
        grid-template-columns: 1fr;
    }
}
.kpi-column {
    display: flex;
    flex-direction: column;
    gap: 16px;
}
.kpi-card {
    background: var(--clr-surface);
    border: 1px solid var(--clr-border);
    border-radius: 12px;
    padding: 16px 20px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.02);
    display: flex;
    align-items: center;
    gap: 16px;
    transition: transform 0.2s, box-shadow 0.2s;
}
.kpi-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
}
.kpi-icon {
    width: 48px;
    height: 48px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    flex-shrink: 0;
}
.kpi-details {
    flex: 1;
}
.kpi-label {
    font-size: 12.5px;
    color: var(--clr-text-muted);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    margin-bottom: 4px;
}
.kpi-value {
    font-size: 24px;
    font-weight: 700;
    color: var(--clr-text);
    line-height: 1;
}
.icon-jobs { background: #eff6ff; color: #2563eb; }
.icon-apps { background: #f0fdf4; color: #16a34a; }
.icon-pending { background: #fffbeb; color: #d97706; }
.icon-eligible { background: #faf5ff; color: #7c3aed; }
.icon-candidates { background: #f5f3ff; color: #6d28d9; }
.icon-employers { background: #fdf2f8; color: #db2777; }

.report-card {
    background: var(--clr-surface);
    border: 1px solid var(--clr-border);
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.02);
    overflow: hidden;
}
.report-header {
    padding: 16px 20px;
    border-bottom: 1px solid var(--clr-border);
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.report-title {
    font-size: 15px;
    font-weight: 700;
    color: var(--clr-text);
    margin: 0;
    display: flex;
    align-items: center;
    gap: 8px;
}
.report-title i {
    color: var(--clr-text-muted);
}
.report-body {
    padding: 0;
}
.table-wrap {
    overflow-x: auto;
}
.custom-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
    text-align: left;
}
.custom-table thead th {
    background: var(--clr-bg);
    padding: 12px 16px;
    font-weight: 600;
    color: var(--clr-text-muted);
    border-bottom: 1px solid var(--clr-border);
    white-space: nowrap;
    text-transform: uppercase;
    font-size: 11px;
    letter-spacing: 0.03em;
}
.custom-table tbody tr {
    border-bottom: 1px solid var(--clr-border);
    transition: background 0.15s;
}
.custom-table tbody tr:last-child {
    border-bottom: none;
}
.custom-table tbody tr:hover {
    background: var(--clr-bg);
}
.custom-table tbody td {
    padding: 12px 16px;
    color: var(--clr-text);
    vertical-align: middle;
}
.salary-range {
    font-weight: 600;
    color: var(--clr-text);
}
.badge-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--clr-bg);
    color: var(--clr-text-muted);
    font-weight: 600;
    font-size: 11px;
    padding: 3px 8px;
    border-radius: 12px;
}
.badge-pending { background: #fffbe5; color: #854f0b; }
.badge-eligible { background: #f0fdf4; color: #166534; }

.empty-state {
    text-align: center;
    padding: 48px 24px;
    color: var(--clr-text-muted);
}
.empty-state i {
    font-size: 36px;
    margin-bottom: 12px;
    opacity: 0.5;
}

/* ============================================================
   BILLING PLANS COMPONENT
   ============================================================ */
.plan-card {
    transition: box-shadow 0.15s, transform 0.15s;
}
.plan-card:hover {
    box-shadow: 0 4px 16px rgba(0,0,0,0.12);
    transform: translateY(-2px);
}
.plan-card:active {
    transform: scale(0.98);
}

/* ============================================================
   DASHBOARD INDEX METRIC CARDS & TIMELINE
   ============================================================ */
.enterprise-card {
    background-color: var(--clr-surface);
    border: 1px solid var(--clr-border);
    border-radius: 0.5rem;
    box-shadow: 0 1px 3px rgba(0,0,0,0.04);
    transition: box-shadow 0.2s ease-in-out;
}
.enterprise-card:hover {
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
}
.kpi-icon-box {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 0.375rem;
}
.section-title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--clr-text);
}
.activity-timeline {
    border-left: 2px solid var(--clr-border);
    padding-left: 1.5rem;
    margin-left: 0.5rem;
}
.activity-timeline-item {
    position: relative;
    padding-bottom: 1.5rem;
}
.activity-timeline-item::before {
    content: '';
    position: absolute;
    left: -1.85rem;
    top: 0.25rem;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: var(--clr-surface);
    border: 2px solid #6366f1;
}

/* ============================================================
   EMPLOYER & JOB DETAIL TABS & COMPONENT SHELLS
   ============================================================ */
.ed-back, .jd-back {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: var(--clr-text-muted);
    text-decoration: none;
    margin-bottom: 1.25rem;
    transition: color 0.15s;
}
.ed-back:hover, .jd-back:hover { color: var(--clr-text); }

.emp-hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}
.emp-hero-left { display: flex; align-items: center; gap: 14px; }
.emp-avatar {
    width: 52px; height: 52px;
    border-radius: 50%;
    background: #E6F1FB;
    display: flex; align-items: center; justify-content: center;
    font-size: 18px; font-weight: 600;
    color: #0C447C;
    flex-shrink: 0;
}
.emp-name { font-size: 20px; font-weight: 600; color: var(--clr-text); }
.emp-sub  { font-size: 13px; color: var(--clr-text-muted); margin-top: 2px; }

.emp-badge {
    display: inline-flex; align-items: center; gap: 4px;
    font-size: 11px; font-weight: 600;
    padding: 4px 10px; border-radius: 20px;
    white-space: nowrap; letter-spacing: 0.03em;
}
.emp-badge-dot { width: 5px; height: 5px; border-radius: 50%; display: inline-block; }
.b-active    { background: #EAF3DE; color: #3B6D11; }
.b-active    .emp-badge-dot { background: #639922; }
.b-expired   { background: #FCEBEB; color: #A32D2D; }
.b-expired   .emp-badge-dot { background: #E24B4A; }
.b-exhausted { background: #FAEEDA; color: #854F0B; }
.b-exhausted .emp-badge-dot { background: #BA7517; }

.emp-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 10px;
    margin-bottom: 1.25rem;
}
.emp-stat-card { background: var(--clr-bg); border-radius: 8px; padding: 14px 16px; }
.emp-stat-label { font-size: 11px; color: var(--clr-text-muted); margin-bottom: 4px; letter-spacing: 0.02em; }
.emp-stat-val   { font-size: 20px; font-weight: 600; color: var(--clr-text); }
.emp-stat-val.green { color: #3B6D11; }
.credit-bar-bg  { height: 5px; background: var(--clr-border); border-radius: 3px; margin-top: 6px; overflow: hidden; }
.credit-bar-fill { height: 100%; border-radius: 3px; }

/* Info layout cards */
.info-split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
    margin-bottom: 1.25rem;
}
@media (max-width: 600px) { .info-split { grid-template-columns: 1fr; } }

.info-card-head {
    display: flex; align-items: center; gap: 10px;
    padding: 13px 16px;
    border-bottom: 1px solid var(--clr-border);
}
.info-card-head-icon {
    width: 30px; height: 30px; border-radius: 8px;
    display: flex; align-items: center; justify-content: center;
    font-size: 14px; flex-shrink: 0;
}
.icon-contact { background: #E6F1FB; color: #185FA5; }
.icon-plan    { background: #EAF3DE; color: #3B6D11; }
.info-card-title { font-size: 12px; font-weight: 600; color: var(--clr-text); }
.info-card-sub   { font-size: 11px; color: var(--clr-text-muted); margin-top: 1px; }

.info-row {
    display: flex; align-items: center;
    justify-content: space-between;
    padding: 10px 16px;
    border-bottom: 1px solid var(--clr-border);
    gap: 12px;
}
.info-row:last-child { border-bottom: none; }
.info-row-label {
    display: flex; align-items: center; gap: 6px;
    font-size: 12px; color: var(--clr-text-muted);
    white-space: nowrap; flex-shrink: 0;
}
.info-row-label i { font-size: 12px; color: var(--clr-text-muted); }
.info-row-val {
    font-size: 12px; font-weight: 600; color: var(--clr-text);
    text-align: right; word-break: break-word;
}
.info-row-val a { color: #185FA5; text-decoration: none; }
.info-row-val a:hover { text-decoration: underline; }

.about-card { margin-bottom: 1.25rem; }
.about-card .info-card-head { border-bottom: 1px solid var(--clr-border); }
.about-body {
    padding: 14px 16px;
    font-size: 12px; color: var(--clr-text); line-height: 1.65;
}
.about-body h1, .about-body h2, .about-body h3, .about-body h4, .about-body h5 {
    font-size: 13px; font-weight: 700; color: var(--clr-text);
    margin: 10px 0 4px;
}
.about-body p  { margin: 0 0 8px; }
.about-body ul, .about-body ol { padding-left: 18px; margin: 0 0 8px; }
.about-body li { margin-bottom: 3px; }
.about-body b, .about-body strong { font-weight: 600; color: var(--clr-text); }
.about-body a  { color: #185FA5; }

.plan-name-badge {
    display: inline-flex; align-items: center;
    background: #EAF3DE; color: #3B6D11;
    font-size: 11px; font-weight: 600;
    padding: 3px 9px; border-radius: 20px;
}

.credit-section {
    padding: 12px 16px;
    border-top: 1px solid var(--clr-border);
}
.credit-header {
    display: flex; align-items: center;
    justify-content: space-between;
    margin-bottom: 7px;
}
.credit-label   { font-size: 11px; color: var(--clr-text-muted); }
.credit-numbers { font-size: 11px; color: var(--clr-text-muted); }
.credit-numbers strong { color: var(--clr-text); }
.credit-track { height: 5px; background: var(--clr-border); border-radius: 3px; overflow: hidden; }
.credit-fill  { height: 100%; border-radius: 3px; }

/* Employer Detail and Job Detail Tabs */
.emp-tabs-bar {
    display: flex;
    gap: 2px;
    border-bottom: 1px solid var(--clr-border);
    margin-bottom: 16px;
    overflow-x: auto;
    overflow-y: hidden;
    white-space: nowrap;
    scrollbar-width: none; /* Hide for Firefox */
}
.emp-tabs-bar::-webkit-scrollbar {
    display: none; /* Hide for Chrome, Safari, Opera */
}
.emp-tab {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 9px 16px;
    font-size: 12px; font-weight: 500;
    color: var(--clr-text-muted);
    border: none; background: transparent; cursor: pointer;
    border-bottom: 2px solid transparent;
    margin-bottom: -1px;
    white-space: nowrap;
}
.emp-tab.active { color: var(--clr-text); border-bottom-color: var(--clr-text); }
.emp-tab-badge {
    background: var(--clr-bg); color: var(--clr-text-muted);
    font-size: 10px; font-weight: 500;
    padding: 1px 7px; border-radius: 20px;
}
.emp-tab.active .emp-tab-badge { background: var(--clr-text); color: var(--clr-surface); }
.emp-tab-panel { display: none; }
.emp-tab-panel.active { display: block; }
.emp-tab-empty { text-align: center; padding: 40px 20px; color: var(--clr-text-muted); font-size: 13px; }

.emp-table-wrap { overflow-x: auto; }
.emp-table { width: 100%; border-collapse: collapse; table-layout: fixed; font-size: 12px; }
.emp-table thead th {
    padding: 10px 14px; text-align: left; font-size: 11px; font-weight: 600;
    color: var(--clr-text-muted); letter-spacing: .04em; text-transform: uppercase;
    background: var(--clr-bg); border-bottom: 1px solid var(--clr-border); white-space: nowrap;
}
.emp-table tbody tr { border-bottom: 1px solid var(--clr-border); transition: background .15s; }
.emp-table tbody tr:last-child { border-bottom: none; }
.emp-table tbody tr:hover { background: var(--clr-bg); }
.emp-table tbody td {
    padding: 12px 14px; color: var(--clr-text); vertical-align: middle;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}

.member-cell { display: flex; align-items: center; gap: 10px; }
.member-avatar {
    width: 32px; height: 32px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 11px; font-weight: 700; flex-shrink: 0;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
    border: 1.5px solid var(--clr-surface);
}
.text-muted-sm { color: var(--clr-text-muted); font-size: 12px; }

.emp-card-head {
    display: flex; align-items: center; justify-content: space-between;
    padding: 14px 16px; border-bottom: 1px solid var(--clr-border);
}
.emp-card-title {
    font-size: 13px; font-weight: 600; color: var(--clr-text);
    display: flex; align-items: center; gap: 7px;
}
.emp-card-count {
    font-size: 11px; color: var(--clr-text-muted);
    background: var(--clr-bg); padding: 2px 8px; border-radius: 20px;
}

/* Premium team member layout styles */
.designation-badge {
    display: inline-flex; align-items: center;
    background: var(--clr-bg); color: var(--clr-text);
    font-size: 11px; font-weight: 600;
    padding: 3px 10px; border-radius: 12px;
    border: 1px solid var(--clr-border);
}
.member-email-link {
    display: inline-flex; align-items: center; gap: 6px;
    color: #2563EB; text-decoration: none; font-weight: 500;
    transition: color 0.15s;
}
.member-email-link:hover { color: #1D4ED8; text-decoration: underline; }
.member-email-link i { font-size: 13px; color: var(--clr-text-muted); }
.member-phone {
    display: inline-flex; align-items: center; gap: 6px;
    color: var(--clr-text);
}
.member-phone i { font-size: 12px; color: var(--clr-text-muted); }
.member-added-date {
    display: inline-flex; align-items: center; gap: 6px;
    color: var(--clr-text-muted);
}
.member-added-date i { font-size: 12px; color: var(--clr-text-muted); }
.member-name { font-weight: 600; color: var(--clr-text); }

/* Job Card nested elements */
.job-card {
    background: var(--clr-surface); border: 1px solid var(--clr-border);
    border-radius: 10px; margin-bottom: 10px; overflow: hidden;
}
.job-card-top {
    padding: 13px 16px 9px;
    display: flex; align-items: flex-start;
    justify-content: space-between; gap: 12px; flex-wrap: wrap;
}
.job-title-row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 5px; }
.job-title { font-size: 13px; font-weight: 600; color: var(--clr-text); }
.status-pill { display: inline-flex; align-items: center; gap: 4px; font-size: 10px; font-weight: 500; padding: 2px 8px; border-radius: 20px; }
.pill-active   { background: #EAF3DE; color: #3B6D11; }
.pill-expired  { background: #FCEBEB; color: #A32D2D; }
.pill-draft    { background: #F1EFE8; color: #5F5E5A; }
.pill-dot { width: 4px; height: 4px; border-radius: 50%; display: inline-block; }
.job-meta { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.meta-item { display: inline-flex; align-items: center; gap: 4px; font-size: 11px; color: var(--clr-text-muted); }
.job-total-badge {
    display: inline-flex; background: var(--clr-text); color: var(--clr-surface);
    font-size: 11px; font-weight: 500; padding: 5px 12px;
    border-radius: 8px; white-space: nowrap; flex-shrink: 0;
}
.job-card-mid {
    padding: 6px 16px 9px;
    display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
    border-bottom: 1px solid var(--clr-border);
}
.assign-tag {
    display: inline-flex; align-items: center; gap: 5px;
    font-size: 11px; color: var(--clr-text);
    background: var(--clr-bg); border-radius: 6px; padding: 3px 8px;
}
.job-stats-row { display: grid; grid-template-columns: repeat(7, 1fr); }
.job-stat { padding: 10px 0; text-align: center; border-right: 1px solid var(--clr-border); }
.job-stat:last-child { border-right: none; }
.job-stat-num { font-size: 16px; font-weight: 600; line-height: 1; margin-bottom: 3px; }
.job-stat-lbl { font-size: 9px; font-weight: 500; color: var(--clr-text-muted); letter-spacing: .04em; text-transform: uppercase; }
.num-pending     { color: #BA7517; }
.num-shortlisted { color: #185FA5; }
.num-hmreview    { color: #534AB7; }
.num-selection   { color: #0F6E56; }
.num-offered     { color: #854F0B; }
.num-joined      { color: #3B6D11; }
.num-ineligible  { color: #A32D2D; }
.num-zero        { color: #d1d5db; }

/* Job Detail Page Scoped styles */
.jd-wrap { font-family: Arial, Helvetica, sans-serif; color: var(--clr-text); }
.jh-card {
    background: var(--clr-surface); border: 1px solid var(--clr-border);
    border-radius: var(--radius); box-shadow: var(--shadow);
    padding: 18px 20px 14px; margin-bottom: 14px;
}
.jh-top { display: flex; align-items: flex-start; gap: 14px; }
.jh-logo {
    width: 52px; height: 52px; border-radius: 10px;
    background: #FFF3E0; color: #E65100;
    display: flex; align-items: center; justify-content: center;
    font-size: 17px; font-weight: 800; flex-shrink: 0;
    border: 1px solid #FFE0B2;
}
.jh-info { flex: 1; min-width: 0; }
.jh-title { font-size: 17px; font-weight: 700; color: var(--clr-text); line-height: 1.3; margin: 0 0 6px; }
.jh-tags  { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 4px; }
.jh-tag   { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; color: var(--clr-text); font-weight: 500; }
.jh-tag i { font-size: 12px; color: #E65100; }
.jh-tag.expiry   { color: #c0392b; }
.jh-tag.expiry i { color: #c0392b; }

.jh-badge {
    display: inline-flex; align-items: center; gap: 4px;
    font-size: 11px; font-weight: 700; letter-spacing: .04em;
    padding: 3px 10px; border-radius: 20px;
}
.jh-badge.active   { background: #E8F5E9; color: #2E7D32; }
.jh-badge.deactive,
.jh-badge.closed   { background: var(--clr-bg); color: var(--clr-text-muted); }
.jh-badge.pending  { background: #FFF8E1; color: #F57F17; }
.jh-badge.rejected { background: #FFEBEE; color: #C62828; }
.jh-badge-dot      { width: 6px; height: 6px; border-radius: 50%; display: inline-block; }
.active .jh-badge-dot    { background: #43A047; }
.deactive .jh-badge-dot,
.closed .jh-badge-dot    { background: #9E9E9E; }
.pending .jh-badge-dot   { background: #FFA000; }
.rejected .jh-badge-dot  { background: #E53935; }

.jh-divider { border: none; border-top: 1px solid var(--clr-border); margin: 12px 0; }
.jh-action-row { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px; }
.jh-meta-chips  { display: flex; gap: 8px; flex-wrap: wrap; }
.jh-chip {
    display: inline-flex; align-items: center; gap: 5px;
    background: var(--clr-bg); border: 1px solid var(--clr-border);
    border-radius: 6px; padding: 4px 10px;
    font-size: 11.5px; color: var(--clr-text); font-weight: 500;
}
.jh-chip i { color: #E65100; font-size: 11px; }
.jh-admin-btns { display: flex; gap: 6px; }
.jh-btn {
    font-size: 12px; font-weight: 700; padding: 6px 14px;
    border-radius: 6px; border: 1px solid transparent; cursor: pointer;
    display: inline-flex; align-items: center; gap: 5px;
    text-decoration: none; transition: all .15s; white-space: nowrap;
}
.jh-btn.activate   { background: #E8F5E9; color: #2E7D32; border-color: #A5D6A7; }
.jh-btn.activate:hover  { background: #C8E6C9; }
.jh-btn.deactivate { background: #FFF8E1; color: #F57F17; border-color: #FFE082; }
.jh-btn.deactivate:hover { background: #FFECB3; }
.jh-btn.delete     { background: transparent; color: #C62828; border-color: #EF9A9A; }
.jh-btn.delete:hover { background: #FFEBEE; }

.jd-desc-card {
    background: var(--clr-surface); border: 1px solid var(--clr-border);
    border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden;
}
.jd-desc-head {
    padding: 10px 18px; border-bottom: 2px solid #E65100;
    background: var(--clr-bg);
}
.jd-desc-head-title { font-size: 14px; font-weight: 700; color: var(--clr-text); margin: 0; text-decoration: underline; text-underline-offset: 3px; }
.jd-desc-body { padding: 18px 20px; }
.jd-content {
    font-family: Arial, Helvetica, sans-serif !important;
    font-size: 13px; line-height: 1.65; color: var(--clr-text);
}
.jd-content p          { margin: 0 0 8px; }
.jd-content p:empty    { display: none; }
.jd-content br + br    { display: none; }
.jd-content h1,.jd-content h2,.jd-content h3,
.jd-content h4,.jd-content h5,.jd-content h6 {
    font-weight: 700; color: var(--clr-text); margin: 14px 0 4px; line-height: 1.3;
}
.jd-content h1 { font-size: 15px; } .jd-content h2 { font-size: 14px; }
.jd-content h3,.jd-content h4 { font-size: 13px; }
.jd-content h5,.jd-content h6 { font-size: 12.5px; }
.jd-content ul,.jd-content ol { margin: 0 0 8px; padding-left: 20px; }
.jd-content li  { margin-bottom: 3px; line-height: 1.55; }
.jd-content b,.jd-content strong { font-weight: 700; }
.jd-content a   { color: #E65100; }
.jd-content hr  { margin: 12px 0; border-color: var(--clr-border); }
.jd-content table { font-size: 12px; border-collapse: collapse; width: 100%; margin-bottom: 8px; }
.jd-content table td,.jd-content table th { padding: 5px 8px; border: 1px solid var(--clr-border); }
.jd-empty { text-align: center; padding: 40px 16px; color: var(--clr-text-muted); font-size: 13px; }
.jd-empty i { font-size: 32px; display: block; margin-bottom: 8px; opacity: .35; }

/* Job Detail Moderation Reason Modals */
.jd-modal .modal-content {
    border-radius: var(--radius); border: 1px solid var(--clr-border);
    background: var(--clr-surface); box-shadow: var(--shadow-lg);
    font-family: Arial, Helvetica, sans-serif;
}
.jd-modal .modal-header  { border-bottom: 1px solid var(--clr-border); padding: .75rem 1rem; background: var(--clr-bg); }
.jd-modal .modal-title   { font-size: .875rem; font-weight: 700; color: var(--clr-text); }
.jd-modal .modal-body    { padding: 1rem; }
.jd-modal .modal-footer  { border-top: 1px solid var(--clr-border); padding: .6rem 1rem; gap: .5rem; }
.jd-modal .form-label    { font-size: .78rem; font-weight: 700; color: var(--clr-text); }
.jd-modal textarea {
    font-size: .8125rem; background: var(--clr-bg); border: 1px solid var(--clr-border);
    border-radius: var(--radius); color: var(--clr-text); resize: vertical;
    width: 100%; padding: .5rem .7rem; transition: border-color .15s;
}
.jd-modal textarea:focus { outline: none; border-color: #E65100; box-shadow: 0 0 0 3px rgba(230,81,0,.1); }
.jd-modal-btn { font-size: .775rem; font-weight: 700; padding: .4rem 1rem; border-radius: var(--radius); border: 1px solid transparent; cursor: pointer; transition: all .15s; }
.jd-modal-btn.cancel { background: var(--clr-bg); border-color: var(--clr-border); color: var(--clr-text); }
.jd-modal-btn.cancel:hover { background: var(--clr-border); }
.jd-modal-btn.submit { background: #E65100; color: #fff; border-color: #E65100; }
.jd-modal-btn.submit:hover { background: #BF360C; }

/* ============================================================
   EMPLOYER & JOB INDEX TABLES (LIST COLUMNS)
   ============================================================ */
.jobs-table-wrapper {
    overflow-x: auto;
    overflow-y: auto;
    max-height: 560px;
}
.jobs-table-wrapper table {
    width: 100%;
    min-width: 900px;
    table-layout: fixed;
    border-collapse: collapse;
}
.jobs-table-wrapper thead th {
    position: sticky;
    top: 0;
    z-index: 2;
    background: var(--clr-bg);
    white-space: nowrap;
}
.jobs-table-wrapper tbody td {
    vertical-align: middle;
    word-break: break-word;
}
.employers-table-wrapper {
    overflow-x: auto;
}
.employers-table-wrapper table {
    width: 100%;
    min-width: 900px;
    table-layout: fixed;
    border-collapse: collapse;
}
.employers-table-wrapper thead th {
    position: sticky;
    top: 0;
    z-index: 2;
    background: var(--clr-bg);
    white-space: nowrap;
    padding: 10px 14px;
    font-size: 11px;
    font-weight: 500;
    color: var(--clr-text-muted);
    letter-spacing: 0.05em;
    text-transform: uppercase;
    border-bottom: 1px solid var(--clr-border);
    text-align: left;
}
.employers-table-wrapper tbody td {
    vertical-align: middle;
    padding: 12px 14px;
    border-bottom: 1px solid var(--clr-border);
    font-size: 13px;
}
.employers-table-wrapper tbody tr:last-child td {
    border-bottom: none;
}
.employers-table-wrapper tbody tr:hover {
    background: var(--clr-bg);
}

/* Col width constraints */
.col-company { width: 24%; }
.col-status  { width: 11%; }
.col-plan    { width: 16%; }
.col-credits { width: 12%; }
.col-rem     { width: 13%; }
.col-date    { width: 12%; }
.col-action  { width: 5%; }
.col-title   { width: 22%; }
.col-employer{ width: 14%; }
.col-location{ width: 10%; }
.col-type    { width: 10%; }
.col-apps    { width: 5%; }
.col-posted  { width: 9%; }
.col-expiry  { width: 9%; }
.col-days    { width: 8%; }

.company-name-cell {
    font-weight: 500;
    font-size: 13px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.badge-active { background: #EAF3DE; color: #3B6D11; }
.badge-expired { background: #FCEBEB; color: #A32D2D; }
.badge-exhausted { background: #FAEEDA; color: #854F0B; }
.dot-active { background: #639922; }
.dot-expired { background: #E24B4A; }
.dot-exhausted { background: #BA7517; }

/* Credit Bar styles */
.credit-bar-wrap { display: flex; align-items: center; gap: 8px; }
.bar-high { background: #639922; }
.bar-med  { background: #BA7517; }
.bar-low  { background: #E24B4A; }
.credit-num { font-size: 12px; color: var(--clr-text-muted); min-width: 28px; text-align: right; }
.plan-text { font-size: 12px; color: var(--clr-text-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: block; }
.date-text { font-size: 12px; color: var(--clr-text-muted); white-space: nowrap; }

/* Search suggestion popups */
.filter-row { display: flex; align-items: center; gap: 8px; margin-bottom: 1rem; flex-wrap: wrap; }
.search-wrap { position: relative; flex: 1; min-width: 180px; max-width: 300px; }
.search-wrap .search-icon { position: absolute; left: 9px; top: 50%; transform: translateY(-50%); font-size: 15px; color: var(--clr-text-muted); pointer-events: none; }
.search-wrap .select-caret { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); font-size: 11px; color: var(--clr-text-muted); pointer-events: none; }
.search-wrap input {
    width: 100%; font-size: 13px; padding: 7px 38px 7px 30px; border-radius: 8px;
    border: 1px solid var(--clr-border); background: var(--clr-surface); color: var(--clr-text); height: 34px; outline: none;
}
.search-wrap input:focus { border-color: var(--clr-text-muted); }
.search-submit-btn {
    position: absolute; right: 6px; top: 50%; transform: translateY(-50%); display: inline-flex; align-items: center; justify-content: center;
    width: 22px; height: 22px; border-radius: 5px; border: none; background: var(--clr-text); color: var(--clr-surface); font-size: 12px; cursor: pointer; padding: 0;
}
.search-submit-btn:hover { background: var(--clr-text-muted); }

.status-tabs { display: flex; gap: 4px; flex-wrap: wrap; }
.status-tab {
    font-size: 12px; font-weight: 500; padding: 5px 12px; height: 34px; display: inline-flex; align-items: center; border-radius: 8px;
    border: 1px solid var(--clr-border); background: var(--clr-surface); color: var(--clr-text-muted); cursor: pointer; white-space: nowrap;
    text-decoration: none; transition: background 0.1s, color 0.1s;
}
.status-tab:hover { background: var(--clr-bg); color: var(--clr-text); }
.status-tab.tab-all.is-active { background: var(--clr-text); color: var(--clr-surface); border-color: transparent; }
.status-tab.tab-active.is-active { background: #3B6D11; color: #EAF3DE; border-color: transparent; }
.status-tab.tab-expired.is-active { background: #A32D2D; color: #FCEBEB; border-color: transparent; }
.status-tab.tab-exhausted.is-active { background: #854F0B; color: #FAEEDA; border-color: transparent; }

.btn-icon-sm {
    display: inline-flex; align-items: center; justify-content: center; width: 28px; height: 28px; border-radius: 6px;
    border: 1px solid var(--clr-border); background: transparent; color: var(--clr-text-muted); font-size: 15px; text-decoration: none; transition: background 0.1s, color 0.1s;
}
.btn-icon-sm:hover { background: var(--clr-bg); color: var(--clr-text); border-color: var(--clr-text-muted); }

.metrics-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 10px; margin-bottom: 1.5rem; }
.metric-card { background: var(--clr-bg); border-radius: 8px; padding: 14px 16px; }
.metric-label { font-size: 12px; color: var(--clr-text-muted); margin-bottom: 4px; }
.metric-value { font-size: 24px; font-weight: 500; color: var(--clr-text); }
.metric-value.green { color: #3B6D11; }
.metric-value.red   { color: #A32D2D; }
.metric-value.amber { color: #854F0B; }

.pagination-bar { display: flex; align-items: center; justify-content: space-between; padding: 12px 14px; border-top: 1px solid var(--clr-border); flex-wrap: wrap; gap: 8px; }
.pagination-bar .range-info { font-size: 12px; color: var(--clr-text-muted); }

.suggest-drop {
    display: none; position: absolute; top: calc(100% + 4px); left: 0; right: 0; background: var(--clr-surface);
    border: 1px solid var(--clr-border); border-radius: 8px; overflow: hidden; z-index: 100; box-shadow: 0 4px 12px rgba(0,0,0,.06);
}
.suggest-item { display: flex; align-items: center; gap: 8px; padding: 9px 12px; font-size: 13px; cursor: pointer; color: var(--clr-text); }
.suggest-item:hover { background: var(--clr-bg); }
.suggest-item i { font-size: 14px; color: var(--clr-text-muted); flex-shrink: 0; }
.suggest-item em { font-style: normal; font-weight: 500; }
.suggest-no-results { padding: 10px 12px; font-size: 12px; color: var(--clr-text-muted); }

.no-wrap { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.job-title-cell { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; line-height: 1.4; word-break: break-word; }

/* ============================================================
   JOBSEEKER DEACTIVATION QUEUE & DETAIL
   ============================================================ */
.dq-page-header { display: flex; align-items: flex-start; justify-content: space-between; flex-wrap: wrap; gap: 1rem; margin-bottom: 1.75rem; }
.dq-summary-strip { display: flex; gap: 1rem; flex-wrap: wrap; margin-bottom: 1.5rem; }
.dq-summary-chip {
    display: flex; align-items: center; gap: 8px; padding: .45rem 1rem; border-radius: 50px; font-size: .82rem; font-weight: 600;
    border: 1px solid var(--clr-border); background: var(--clr-surface); color: var(--clr-text);
}
.dq-summary-chip .chip-dot { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; }

.filter-card { background: var(--clr-surface); border: 1px solid var(--clr-border); border-radius: 14px; padding: 1rem 1.25rem; margin-bottom: 1.25rem; }
.dq-table-card { background: var(--clr-surface); border: 1px solid var(--clr-border); border-radius: 14px; overflow: hidden; }
.dq-table-card .table thead th {
    background: var(--clr-bg); color: var(--clr-text-muted); font-size: .72rem; font-weight: 700; text-transform: uppercase;
    letter-spacing: .06em; border-bottom: 1px solid var(--clr-border); padding: .75rem 1rem; white-space: nowrap;
}
.dq-table-card .table tbody td { padding: .85rem 1rem; vertical-align: middle; border-bottom: 1px solid var(--clr-border); font-size: .875rem; }
.dq-table-card .table tbody tr:last-child td { border-bottom: none; }
.dq-table-card .table tbody tr:hover { background: var(--clr-bg); }

.candidate-avatar { width: 36px; height: 36px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: .78rem; font-weight: 700; color: #fff; flex-shrink: 0; }
.av-blue   { background: linear-gradient(135deg,#3b82f6,#1d4ed8); }
.av-purple { background: linear-gradient(135deg,#8b5cf6,#6d28d9); }
.av-green  { background: linear-gradient(135deg,#22c55e,#15803d); }
.av-orange { background: linear-gradient(135deg,#f97316,#c2410c); }
.av-pink   { background: linear-gradient(135deg,#ec4899,#9d174d); }

.name-primary { font-weight: 600; color: var(--clr-text); font-size: .9rem; }
.name-sub     { font-size: .775rem; color: var(--clr-text-muted); margin-top: 1px; }

.sla-pill { display: inline-flex; align-items: center; gap: 5px; padding: 3px 9px; border-radius: 50px; font-size: .72rem; font-weight: 600; }
.sla-overdue { background: #fef2f2; color: #dc2626; }
.sla-today   { background: #fff7ed; color: #ea580c; }
.sla-soon    { background: #fffbeb; color: #d97706; }
.sla-ok      { background: #f0fdf4; color: #16a34a; }

.empty-state .es-icon {
    width: 72px; height: 72px; border-radius: 50%; background: #f0fdf4; color: #16a34a; font-size: 1.8rem;
    display: flex; align-items: center; justify-content: center; margin: 0 auto 1rem;
}
.empty-state h6 { font-weight: 700; color: var(--clr-text); margin-bottom: .35rem; }
.empty-state p  { color: var(--clr-text-muted); font-size: .875rem; margin: 0; }

.pagination-row { display: flex; align-items: center; justify-content: space-between; padding: .85rem 1.25rem; border-top: 1px solid var(--clr-border); flex-wrap: wrap; gap: .5rem; }
.pagination-info { font-size: .8rem; color: var(--clr-text-muted); }

.btn-action-review {
    font-size: .78rem; font-weight: 600; padding: 5px 12px; border-radius: 8px; border: 1px solid var(--clr-border);
    background: var(--clr-surface); color: var(--clr-text-muted); text-decoration: none; display: inline-flex; align-items: center; gap: 5px; transition: all .15s;
}
.btn-action-review:hover { border-color: var(--clr-text-muted); background: var(--clr-bg); color: var(--clr-text); }
.btn-action-deactivate {
    font-size: .78rem; font-weight: 600; padding: 5px 12px; border-radius: 8px; border: none; background: #fef2f2; color: #dc2626;
    display: inline-flex; align-items: center; gap: 5px; transition: all .15s; cursor: pointer;
}
.btn-action-deactivate:hover { background: #dc2626; color: #fff; }

.profile-hero {
    background: linear-gradient(135deg, #1e3a5f 0%, #2d6a9f 60%, #3b82c4 100%);
    border-radius: 16px; padding: 2rem 2.5rem; color: #fff; margin-bottom: 1.75rem; position: relative; overflow: hidden;
}
.profile-hero::before { content: ''; position: absolute; top: -60px; right: -60px; width: 220px; height: 220px; background: rgba(255,255,255,0.06); border-radius: 50%; }
.profile-hero::after  { content: ''; position: absolute; bottom: -80px; right: 80px; width: 160px; height: 160px; background: rgba(255,255,255,0.04); border-radius: 50%; }
.profile-avatar {
    width: 72px; height: 72px; border-radius: 50%; background: rgba(255,255,255,0.18);
    display: flex; align-items: center; justify-content: center; font-size: 1.8rem; font-weight: 700; color: #fff;
    border: 3px solid rgba(255,255,255,0.35); flex-shrink: 0;
}
.profile-hero .hero-name { font-size: 1.5rem; font-weight: 700; margin-bottom: 0.2rem; line-height: 1.2; }
.profile-hero .hero-meta { opacity: 0.85; font-size: 0.875rem; }
.profile-hero .hero-meta i { margin-right: 4px; }
.profile-hero .hero-stat { background: rgba(255,255,255,0.13); border-radius: 10px; padding: 0.6rem 1.1rem; text-align: center; min-width: 90px; }
.profile-hero .hero-stat-val { font-size: 1.35rem; font-weight: 700; line-height: 1; }
.profile-hero .hero-stat-lbl { font-size: 0.72rem; opacity: 0.8; text-transform: uppercase; letter-spacing: .04em; margin-top: 3px; }
.profile-hero .hero-badge { display: inline-flex; align-items: center; gap: 6px; padding: 5px 14px; border-radius: 50px; font-size: 0.8rem; font-weight: 600; letter-spacing: .03em; }
.hero-badge.active-badge   { background: rgba(34,197,94,.2);  color: #6ee7b7; border: 1px solid rgba(34,197,94,.35); }
.hero-badge.inactive-badge { background: rgba(239,68,68,.2);  color: #fca5a5; border: 1px solid rgba(239,68,68,.35); }
.hero-badge.other-badge    { background: rgba(234,179,8,.2);  color: #fde68a; border: 1px solid rgba(234,179,8,.35); }

.info-label { font-size: 0.75rem; font-weight: 600; text-transform: uppercase; letter-spacing: .05em; color: var(--clr-text-muted); margin-bottom: 4px; }
.info-value { font-size: 0.95rem; font-weight: 600; color: var(--clr-text); }
.info-value.empty { font-weight: 400; color: var(--clr-text-muted); font-style: italic; }

.stat-card { border-radius: 12px; border: 1px solid var(--clr-border); padding: 1.25rem 1.5rem; display: flex; align-items: center; gap: 1rem; background: var(--clr-surface); transition: box-shadow .2s; }
.stat-card:hover { box-shadow: 0 4px 16px rgba(0,0,0,.08); }
.stat-icon { width: 46px; height: 46px; border-radius: 12px; display: flex; align-items: center; justify-content: center; font-size: 1.2rem; flex-shrink: 0; }
.stat-icon.blue  { background: #eff6ff; color: #2563eb; }
.stat-icon.green { background: #f0fdf4; color: #16a34a; }
.stat-icon.amber { background: #fffbeb; color: #d97706; }
.stat-icon.red   { background: #fef2f2; color: #dc2626; }
.stat-val { font-size: 1.5rem; font-weight: 700; color: var(--clr-text); line-height: 1; }
.stat-lbl { font-size: 0.78rem; color: var(--clr-text-muted); margin-top: 2px; }

.section-card { border-radius: 14px; border: 1px solid var(--clr-border); background: var(--clr-surface); margin-bottom: 1.25rem; overflow: hidden; }
.section-card .section-hdr { padding: 1rem 1.5rem; border-bottom: 1px solid var(--clr-border); display: flex; align-items: center; gap: 10px; background: var(--clr-bg); }
.section-hdr-icon { width: 32px; height: 32px; border-radius: 8px; display: flex; align-items: center; justify-content: center; font-size: .9rem; }
.section-hdr-icon.blue  { background: #eff6ff; color: #2563eb; }
.section-hdr-icon.green { background: #f0fdf4; color: #16a34a; }
.section-hdr-icon.purple{ background: #f5f3ff; color: #7c3aed; }
.section-hdr-title { font-size: .9rem; font-weight: 700; color: var(--clr-text); }
.section-card .section-body { padding: 1.25rem 1.5rem; }

.info-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem 2rem; }
@media (max-width: 576px) { .info-grid { grid-template-columns: 1fr; } }

.action-card { border-radius: 14px; border: 1px solid var(--clr-border); background: var(--clr-surface); overflow: hidden; }
.action-card .action-hdr { padding: .9rem 1.25rem; background: var(--clr-bg); border-bottom: 1px solid var(--clr-border); }
.action-card .action-hdr-title { font-size: .85rem; font-weight: 700; color: var(--clr-text); }
.action-card .action-body { padding: 1.1rem 1.25rem; }

.status-btn {
    display: flex; align-items: center; gap: 10px; padding: .65rem 1rem; border-radius: 10px; border: 2px solid transparent;
    cursor: pointer; transition: all .15s; background: var(--clr-bg); margin-bottom: .5rem; width: 100%; text-align: left;
}
.status-btn:last-child { margin-bottom: 0; }
.status-btn .sb-dot { width: 10px; height: 10px; border-radius: 50%; flex-shrink: 0; }
.status-btn .sb-label { font-size: .85rem; font-weight: 600; color: var(--clr-text); }
.status-btn:hover { border-color: var(--clr-border); background: var(--clr-bg); }
.status-btn.selected-active   { border-color: #16a34a; background: #f0fdf4; }
.status-btn.selected-inactive { border-color: #dc2626; background: #fef2f2; }

/* ============================================================
   REPORTS PAGE GENERATOR & SYSTEM LOGS
   ============================================================ */
.reports-header { display: flex; align-items: flex-start; justify-content: space-between; margin-bottom: 1.5rem; gap: 1rem; flex-wrap: wrap; }
.reports-title-block h1 { font-size: 1.375rem; font-weight: 700; margin: 0; color: var(--clr-text); }
.reports-title-block p { margin: 0.2rem 0 0; font-size: 0.8rem; color: var(--clr-text-muted); }

.reports-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0.875rem; margin-bottom: 1.5rem; }
@media (max-width: 900px) { .reports-stats { grid-template-columns: repeat(2,1fr); } }
@media (max-width: 480px) { .reports-stats { grid-template-columns: 1fr; } }

.rstat {
    background: var(--clr-surface); border: 1px solid var(--clr-border); border-radius: 8px; padding: 1rem 1.125rem; display: flex;
    align-items: center; gap: 0.875rem; box-shadow: var(--shadow); position: relative; overflow: hidden; transition: box-shadow 0.2s ease, transform 0.2s ease;
}
.rstat:hover { box-shadow: var(--shadow-lg); transform: translateY(-1px); }
.rstat::before { content: ''; position: absolute; top: 0; left: 0; width: 3px; height: 100%; border-radius: 8px 0 0 8px; }
.rstat.all::before   { background: var(--clr-primary); }
.rstat.done::before  { background: var(--clr-success); }
.rstat.fail::before  { background: var(--clr-danger); }
.rstat.pend::before  { background: var(--clr-warning); }
.rstat-icon { width: 40px; height: 40px; border-radius: 8px; display: flex; align-items: center; justify-content: center; font-size: 1.2rem; flex-shrink: 0; }
.rstat.all  .rstat-icon { background: var(--clr-primary-light); color: var(--clr-primary); }
.rstat.done .rstat-icon { background: hsl(142,71%,92%); color: var(--clr-success); }
.rstat.fail .rstat-icon { background: hsl(0,84%,93%); color: var(--clr-danger); }
.rstat.pend .rstat-icon { background: hsl(38,92%,92%); color: var(--clr-warning); }

[data-bs-theme="dark"] .rstat.done .rstat-icon { background: rgba(34,197,94,0.12); }
[data-bs-theme="dark"] .rstat.fail .rstat-icon { background: rgba(239,68,68,0.12); }
[data-bs-theme="dark"] .rstat.pend .rstat-icon { background: rgba(245,158,11,0.12); }

.rstat-body { min-width: 0; }
.rstat-val { font-size: 1.625rem; font-weight: 700; line-height: 1; color: var(--clr-text); }
.rstat-lbl { font-size: 0.72rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.04em; color: var(--clr-text-muted); margin-top: 0.2rem; }

.reports-layout { display: grid; grid-template-columns: 380px 1fr; gap: 1.25rem; align-items: start; }
@media (max-width: 1050px) { .reports-layout { grid-template-columns: 1fr; } }

.gen-card { background: var(--clr-surface); border: 1px solid var(--clr-border); border-radius: 10px; box-shadow: var(--shadow); overflow: hidden; position: sticky; top: 72px; }
.gen-card-header { padding: 1rem 1.25rem; border-bottom: 1px solid var(--clr-border); background: linear-gradient(135deg, hsl(221,83%,53%) 0%, hsl(221,83%,43%) 100%); display: flex; align-items: center; gap: 0.6rem; }
.gen-card-header i { font-size: 1.1rem; color: rgba(255,255,255,0.9); }
.gen-card-header span { font-size: 0.9rem; font-weight: 600; color: #fff; }
.gen-card-body { padding: 1.25rem; }

.type-grid { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 0.5rem; margin-bottom: 1.25rem; }
.type-pill { border: 1.5px solid var(--clr-border); border-radius: 8px; padding: 0.6rem 0.5rem; text-align: center; cursor: pointer; transition: all 0.18s ease; background: var(--clr-surface); position: relative; }
.type-pill input[type="radio"] { position: absolute; opacity: 0; width: 0; height: 0; }
.type-pill-icon { font-size: 1.3rem; display: block; margin-bottom: 0.2rem; transition: transform 0.18s ease; }
.type-pill-lbl { font-size: 0.72rem; font-weight: 600; color: var(--clr-text-muted); line-height: 1.2; }
.type-pill:hover { border-color: var(--clr-primary); background: var(--clr-primary-light); }
.type-pill:hover .type-pill-lbl { color: var(--clr-primary); }
.type-pill:hover .type-pill-icon { transform: scale(1.1); }
.type-pill.selected { border-color: var(--clr-primary); background: var(--clr-primary-light); box-shadow: 0 0 0 3px hsl(221,83%,53%,0.12); }
.type-pill.selected .type-pill-lbl { color: var(--clr-primary); font-weight: 700; }
.type-pill.selected .type-pill-icon { transform: scale(1.1); }

.field-group { margin-bottom: 1rem; }
.field-label { display: block; font-size: 0.78rem; font-weight: 600; color: var(--clr-text); margin-bottom: 0.35rem; }
.field-label .opt { font-weight: 400; color: var(--clr-text-muted); font-size: 0.72rem; }
.field-input {
    width: 100%; background: var(--clr-bg); border: 1.5px solid var(--clr-border); border-radius: 6px; padding: 0.5rem 0.75rem;
    font-size: 0.825rem; color: var(--clr-text); transition: all 0.2s ease; font-family: var(--font-sans);
}
.field-input:focus { outline: none; border-color: var(--clr-primary); background: var(--clr-surface); box-shadow: 0 0 0 3px hsl(221,83%,53%,0.12); }
.date-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0.5rem; }

.gen-btn {
    width: 100%; background: linear-gradient(135deg, hsl(221,83%,53%) 0%, hsl(221,83%,43%) 100%); color: #fff; border: none; border-radius: 8px;
    padding: 0.7rem 1rem; font-size: 0.875rem; font-weight: 600; cursor: pointer; display: flex; align-items: center; justify-content: center; gap: 0.5rem;
    transition: all 0.2s ease; margin-top: 0.25rem; font-family: var(--font-sans); letter-spacing: 0.01em;
}
.gen-btn:hover { background: linear-gradient(135deg, hsl(221,83%,45%) 0%, hsl(221,83%,36%) 100%); box-shadow: 0 4px 15px hsl(221,83%,53%,0.35); transform: translateY(-1px); }
.gen-btn:active { transform: translateY(0); }
.gen-btn.loading { opacity: 0.75; cursor: not-allowed; }

.reports-table-card { background: var(--clr-surface); border: 1px solid var(--clr-border); border-radius: 10px; box-shadow: var(--shadow); overflow: hidden; }
.rtable-header { padding: 0.875rem 1.25rem; border-bottom: 1px solid var(--clr-border); display: flex; align-items: center; justify-content: space-between; gap: 0.75rem; flex-wrap: wrap; background: var(--clr-surface); }
.rtable-title { font-size: 0.875rem; font-weight: 600; color: var(--clr-text); display: flex; align-items: center; gap: 0.5rem; }
.rtable-count { font-size: 0.72rem; background: var(--clr-primary-light); color: var(--clr-primary); padding: 0.15rem 0.5rem; border-radius: 20px; font-weight: 600; }
.rtable { width: 100%; border-collapse: collapse; font-size: 0.8125rem; }
.rtable thead th {
    font-size: 0.68rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; color: var(--clr-text-muted);
    background: var(--clr-bg); padding: 0.65rem 1rem; border-bottom: 1px solid var(--clr-border); white-space: nowrap;
}
.rtable tbody td { padding: 0.75rem 1rem; border-bottom: 1px solid var(--clr-border); color: var(--clr-text); vertical-align: middle; }
.rtable tbody tr:last-child td { border-bottom: none; }
.rtable tbody tr { transition: background 0.15s ease; }
.rtable tbody tr:hover td { background: var(--clr-bg); }

.type-chip {
    display: inline-flex; align-items: center; gap: 0.3rem; font-size: 0.7rem; font-weight: 600; padding: 0.2rem 0.55rem; border-radius: 4px;
    background: var(--clr-bg); color: var(--clr-text-muted); border: 1px solid var(--clr-border); white-space: nowrap; text-transform: uppercase; letter-spacing: 0.03em;
}
.sbadge { display: inline-flex; align-items: center; gap: 0.3rem; font-size: 0.72rem; font-weight: 600; padding: 0.25rem 0.6rem; border-radius: 20px; white-space: nowrap; }
.sbadge.completed { background: hsl(142,71%,92%); color: hsl(142,71%,30%); }
.sbadge.failed    { background: hsl(0,84%,93%); color: hsl(0,84%,38%); }
.sbadge.pending   { background: hsl(38,92%,92%); color: hsl(38,92%,28%); }

[data-bs-theme="dark"] .sbadge.completed { background: rgba(34,197,94,0.15); color: hsl(142,71%,65%); }
[data-bs-theme="dark"] .sbadge.failed    { background: rgba(239,68,68,0.15); color: hsl(0,84%,75%); }
[data-bs-theme="dark"] .sbadge.pending   { background: rgba(245,158,11,0.15); color: hsl(38,92%,65%); }

.sbadge .dot { width: 6px; height: 6px; border-radius: 50%; flex-shrink: 0; }
.sbadge.completed .dot { background: var(--clr-success); }
.sbadge.failed    .dot { background: var(--clr-danger); }
.sbadge.pending   .dot { background: var(--clr-warning); animation: pulse 1.5s infinite; }

@keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50%       { opacity: 0.5; transform: scale(0.85); }
}

.dl-btn {
    display: inline-flex; align-items: center; gap: 0.35rem; font-size: 0.75rem; font-weight: 600; padding: 0.3rem 0.65rem; border-radius: 6px;
    background: hsl(142,71%,92%); color: hsl(142,71%,30%); border: 1px solid hsl(142,71%,82%); text-decoration: none; transition: all 0.15s ease; white-space: nowrap;
}
.dl-btn:hover { background: hsl(142,71%,82%); color: hsl(142,71%,25%); box-shadow: 0 2px 8px rgba(34,197,94,0.25); }

[data-bs-theme="dark"] .dl-btn { background: rgba(34,197,94,0.12); color: hsl(142,71%,65%); border-color: rgba(34,197,94,0.2); }

.rpagination { padding: 0.75rem 1.25rem; border-top: 1px solid var(--clr-border); display: flex; align-items: center; justify-content: space-between; gap: 0.75rem; flex-wrap: wrap; background: var(--clr-surface); }
.rpagination-info { font-size: 0.75rem; color: var(--clr-text-muted); }
.rpagination-btns { display: flex; gap: 0.25rem; }
.rpagination-btns a, .rpagination-btns span {
    display: inline-flex; align-items: center; justify-content: center; width: 30px; height: 30px; border-radius: 6px; font-size: 0.78rem;
    font-weight: 500; text-decoration: none; border: 1px solid var(--clr-border); color: var(--clr-text-muted); background: var(--clr-surface); transition: all 0.15s ease;
}
.rpagination-btns a:hover { background: var(--clr-primary-light); border-color: var(--clr-primary); color: var(--clr-primary); }
.rpagination-btns span.active { background: var(--clr-primary); border-color: var(--clr-primary); color: #fff; }

.rpt-alert { border-radius: 8px; font-size: 0.82rem; padding: 0.7rem 1rem; margin-bottom: 1.25rem; display: flex; align-items: flex-start; gap: 0.6rem; border: 1px solid; }
.rpt-alert.success { background: hsl(142,71%,95%); border-color: hsl(142,71%,82%); color: hsl(142,71%,25%); }
.rpt-alert.danger { background: hsl(0,84%,96%); border-color: hsl(0,84%,85%); color: hsl(0,84%,35%); }

[data-bs-theme="dark"] .rpt-alert.success { background: rgba(34,197,94,0.08); border-color: rgba(34,197,94,0.2); color: hsl(142,71%,65%); }
[data-bs-theme="dark"] .rpt-alert.danger { background: rgba(239,68,68,0.08); border-color: rgba(239,68,68,0.2); color: hsl(0,84%,75%); }

.rpt-alert i { flex-shrink: 0; font-size: 1rem; }
.rpt-alert-close { margin-left: auto; background: none; border: none; cursor: pointer; opacity: 0.55; font-size: 1rem; color: inherit; padding: 0; line-height: 1; flex-shrink: 0; }
.rpt-alert-close:hover { opacity: 1; }

.fade-in-up { animation: fadeUp 0.35s ease both; }
@keyframes fadeUp {
    from { opacity:0; transform: translateY(10px); }
    to   { opacity:1; transform: translateY(0); }
}

/* ============================================================
   TAX INVOICE COMPONENT (PRINTABLE INVOICES)
   ============================================================ */
.inv-page {
    background: #fff;
    color: #000;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 13px;
    line-height: 1.45;
    padding: 24px 28px;
    max-width: 960px;
    margin: 0 auto 2rem;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-shadow: 0 2px 12px rgba(0,0,0,.08);
}
.inv-page p { margin: 0; line-height: 1.4; }
.inv-page strong { font-weight: bold; }
.inv-title {
    font-size: 22px;
    font-weight: bold;
    text-align: center;
    margin-bottom: 18px;
    color: #000;
}
.inv-tbl {
    border-collapse: collapse;
    width: 100%;
    margin-bottom: 0;
}
.inv-tbl td,
.inv-tbl th {
    border: 1px solid #000000;
    padding: 4px 6px;
    vertical-align: top;
    color: #000;
}
.inv-tbl th {
    background: #f5f5f5;
    font-weight: bold;
}
.inv-border-top-0    { border-top: 0 !important; }
.inv-border-bottom-0 { border-bottom: 0 !important; }
.inv-border-start-0  { border-left: 0 !important; }
.inv-border-end-0    { border-right: 0 !important; }
.inv-border-0        { border: 0 !important; }
.inv-border-end      { border-right: 1px solid #000000 !important; }
.inv-border-start    { border-left: 1px solid #000000 !important; }
.inv-tc { text-align: center; }
.inv-tr { text-align: right; }
.inv-fw { font-weight: bold; }
.inv-logo {
    width: 60px;
    height: 60px;
    object-fit: contain;
    flex-shrink: 0;
}
.inv-sig {
    text-align: right;
    padding-top: 4px;
}
.inv-stamp-area {
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: flex-end;
}
.inv-stamp {
    width: 80px;
    height: auto;
}

/* Print Specific Rules */
@page {
    margin: 0;
}
@media print {
    html, body {
        margin: 0 !important;
        padding: 0 !important;
        height: auto !important;
        min-height: auto !important;
        overflow: visible !important;
        background: #fff !important;
    }
    .page-header, .sidebar, .topbar, .navbar, footer, .footer, #btnDownload, .btn, .alert {
        display: none !important;
    }
    .main-wrapper, .page-content, .content, .container, .container-fluid {
        margin: 0 !important;
        padding: 0 !important;
        width: 100% !important;
        max-width: 100% !important;
        height: auto !important;
        min-height: auto !important;
    }
    .inv-page {
        border: none !important;
        box-shadow: none !important;
        padding: 10mm !important;
        margin: 0 !important;
        width: 100% !important;
        max-width: none !important;
        box-sizing: border-box !important;
        page-break-after: auto;
        page-break-inside: avoid;
    }
}

/* ============================================================
   GLOBAL FONT AND EQUAL SIZES ENFORCEMENT
   ============================================================ */
body, input, select, textarea, button, .table, .card, .modal-content, p, span, div, td, th {
    font-family: Arial, Helvetica, sans-serif !important;
}

/* Base font-size normalization to keep dashboard text equal */
body, .table td, .table th, .form-control, .form-select, p, span, div {
    font-size: 0.875rem; /* 14px */
}

/* Empty tab icons */
.emp-tab-empty i {
    font-size: 26px !important;
    display: block !important;
    margin-bottom: 8px !important;
    color: #d1d5db !important;
}

/* ============================================================
   FONT SIZE & WIDTH UTILITIES (REPLACING INLINE STYLES)
   ============================================================ */
.fs-xs { font-size: 0.78rem !important; }
.fs-xxs { font-size: 0.65rem !important; }
.fs-10px { font-size: 10px !important; }
.fs-11px { font-size: 11px !important; }
.fs-12px { font-size: 12px !important; }
.fs-13px { font-size: 13px !important; }
.fs-15px { font-size: 15px !important; }
.fs-26px { font-size: 26px !important; }
.fs-0-6rem { font-size: 0.6rem !important; }
.fs-0-7rem { font-size: 0.7rem !important; }
.fs-0-8rem { font-size: 0.8rem !important; }
.fs-0-84rem { font-size: 0.84rem !important; }
.fs-0-75rem { font-size: 0.75rem !important; }
.fs-0-83rem { font-size: 0.83rem !important; }
.fs-1rem { font-size: 1rem !important; }
.fs-1-1rem { font-size: 1.1rem !important; }
.fs-14-5px { font-size: 14.5px !important; }

.w-150px { width: 150px !important; }
.w-160px { width: 160px !important; }
.w-170px { width: 170px !important; }
.w-210px { width: 210px !important; }
.w-250px { width: 250px !important; }
.w-260px { width: 260px !important; }
.w-280px { width: 280px !important; }
.w-300px { width: 300px !important; }

.max-w-480px { max-width: 480px !important; }
.max-w-680px { max-width: 680px !important; }

/* Table Column Widths */
.w-col-11 { width: 11% !important; }
.w-col-14 { width: 14% !important; }
.w-col-18 { width: 18% !important; }
.w-col-20 { width: 20% !important; }
.w-col-28 { width: 28% !important; }
.w-col-34 { width: 34% !important; }
.w-col-35 { width: 35% !important; }

/* Border Radius Helper Utilities */
.br-8 { border-radius: 8px !important; }
.br-start-8 { border-radius: 8px 0 0 8px !important; }
.br-end-8 { border-radius: 0 8px 8px 0 !important; }
.br-6 { border-radius: 6px !important; }
.status-dot-sm { width: 7px; height: 7px; border-radius: 50%; display: inline-block; }
.form-label-xs { font-size: 10px !important; letter-spacing: .05em !important; color: var(--bs-secondary-color) !important; }

/* ============================================================
   BILLING & PLANS PAGE REDESIGN
   ============================================================ */
.plans-page-container {
    font-family: Arial, sans-serif !important;
}

/* Premium Plan Cards */
.premium-plan-card {
    background: #fff;
    border: 1px solid #d1d5db;
    border-radius: 16px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
    padding: 35px 25px;
    cursor: pointer;
    user-select: none;
    position: relative;
}

.premium-plan-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
    border-color: #f08b3b;
}

.premium-plan-card.recommended-card {
    border: 2.5px solid #f08b3b;
    box-shadow: 0 15px 35px rgba(240, 139, 59, 0.12);
}

.premium-plan-card .recommended-badge {
    position: absolute;
    top: 25px;
    right: 25px;
    background-color: #f08b3b;
    color: #fff;
    font-size: 9px;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 50px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.premium-plan-card .plan-name {
    font-size: 1.6rem;
    font-weight: 800;
    color: #2b2d42;
    margin-bottom: 5px;
    text-transform: uppercase;
}

.premium-plan-card .plan-price-large {
    font-size: 2.4rem;
    font-weight: 800;
    color: #f08b3b;
    margin: 15px 0;
}

/* Card Separator Divider */
.plan-divider {
    display: flex;
    align-items: center;
    text-align: center;
    color: #777;
    font-size: 0.8rem;
    margin: 15px 0 25px 0;
    width: 100%;
}

.plan-divider::before,
.plan-divider::after {
    content: '';
    flex: 1;
    border-bottom: 1px solid #e5e7eb;
}

.plan-divider:not(:empty)::before {
    margin-right: .8em;
}

.plan-divider:not(:empty)::after {
    margin-left: .8em;
}

/* Card Bullet Points */
.plan-features-list {
    list-style: none;
    padding-left: 0;
    margin-bottom: 30px;
    flex-grow: 1;
}

.plan-features-list li {
    position: relative;
    padding-left: 22px;
    margin-bottom: 14px;
    font-size: 0.85rem;
    color: #4a4a4a;
    text-align: left;
    line-height: 1.5;
}

.plan-features-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    top: -1px;
    color: #f08b3b;
    font-weight: 800;
    font-size: 1.05rem;
}

/* Card Button */
.plan-btn-orange {
    background-color: #f08b3b;
    border: 1px solid #f08b3b;
    color: #fff !important;
    font-weight: 700;
    border-radius: 6px;
    padding: 12px 20px;
    font-size: 0.95rem;
    transition: all 0.2s ease;
    text-align: center;
    text-decoration: none;
    display: block;
    width: 100%;
}

.plan-btn-orange:hover {
    background-color: #d67427;
    border-color: #d67427;
    box-shadow: 0 4px 10px rgba(240, 139, 59, 0.25);
}

/* Comparison Table Styling */
.pricing-table-container {
    margin-top: 40px;
}

.pricing-table {
    border-collapse: separate;
    border-spacing: 0;
    width: 100%;
    background: #fff;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    border-radius: 8px;
    overflow: hidden;
    font-family: Arial, sans-serif !important;
}

.pricing-table th, .pricing-table td {
    border: 1px solid #dee2e6 !important;
    padding: 12px 15px !important;
    vertical-align: middle;
}

.pricing-table th:first-child, .pricing-table td:first-child {
    text-align: left;
    font-weight: 600;
    color: #333;
}

.pricing-table thead th {
    font-weight: 700;
    color: #fff;
    text-align: center;
}

.pricing-table thead th.details-header {
    background-color: #ffffff !important;
    color: #333333 !important;
    text-align: left;
    font-size: 0.95rem;
}

.pricing-table thead th.plan-header-blue {
    background-color: #3e64ad !important;
    color: #ffffff !important;
}

.pricing-table thead th.plan-header-orange {
    background-color: #f08b3b !important;
    color: #ffffff !important;
}

.pricing-table thead th small {
    display: block;
    font-weight: 400;
    font-size: 0.72rem;
    opacity: 0.95;
    margin-top: 4px;
    text-transform: none;
}

.pricing-table thead th .plan-price {
    display: block;
    font-size: 1.45rem;
    font-weight: 800;
    margin: 4px 0;
}

/* Olive-tan row headers */
.pricing-table tr.category-header-row th {
    background-color: #eae7d3 !important;
    color: #4b4938 !important;
    font-weight: 700;
    font-size: 1.05rem;
    text-align: left !important;
    padding: 10px 15px !important;
    border-top: 1px solid #dee2e6 !important;
    border-bottom: 1px solid #dee2e6 !important;
}

/* Dots and wrappers */
.check-span-wrapper {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-align: left;
}

.check-span-wrapper .check,
.check-span-wrapper .cross,
.check-span-wrapper .wait {
    display: inline-block;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    flex-shrink: 0;
}

.check-span-wrapper .check {
    background-color: #2ec773; /* Green circle */
}

.check-span-wrapper .cross {
    background-color: #f65252; /* Red circle */
}

.check-span-wrapper .wait {
    background-color: #ffcc00; /* Yellow circle */
}

.check-span-wrapper .spanCls {
    font-size: 0.85rem;
    color: #333;
    font-weight: 500;
}

.pricing-table tbody tr:nth-of-type(odd) {
    background-color: rgba(0,0,0,.02);
}

.pricing-table tfoot td {
    background-color: #fafafa;
    text-align: center;
}

.pricing-table tfoot td:first-child {
    background-color: #fff;
    border-bottom: none;
    border-left: none;
}

.pricing-table tfoot td .btn-outline-orange {
    color: #f08b3b;
    border: 1.5px solid #f08b3b;
    background-color: transparent;
    font-weight: 700;
    border-radius: 50px;
    padding: 6px 18px;
    font-size: 0.85rem;
    transition: all 0.2s ease;
    text-decoration: none;
    display: inline-block;
}

.pricing-table tfoot td .btn-outline-orange:hover {
    color: #fff;
    background-color: #f08b3b;
    border-color: #f08b3b;
    box-shadow: 0 3px 8px rgba(240, 139, 59, 0.2);
}




/* -- Active plan card ring (View Details selected) -- */
.plan-card-active {
    outline: 3px solid #1565C0;
    outline-offset: 2px;
    box-shadow: 0 0 0 4px rgba(21,101,192,.15), var(--card-shadow, 0 4px 18px rgba(0,0,0,.1));
}
.plan-card-active.recommended-card {
    outline-color: #f08b3b;
    box-shadow: 0 0 0 4px rgba(240,139,59,.15), var(--card-shadow, 0 4px 18px rgba(0,0,0,.1));
}

/* -- Subscription Grant Modal & Custom Reason -- */
#grantFreeSubscriptionModal .modal-content {
    border-radius: 12px;
}
.reason-custom-box {
    animation: slideDown 0.25s ease-out;
}
@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ============================================================
   MOBILE RESPONSIVENESS AND TABLE SCROLL FIXES
   ============================================================ */
@media (max-width: 768px) {
    .page-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    
    .filter-row {
        flex-direction: column;
        align-items: stretch !important;
        gap: 0.75rem;
    }
    
    .filter-row .search-wrap {
        max-width: 100%;
        width: 100%;
    }
    
    .filter-row .status-tabs {
        width: 100%;
        display: flex;
        justify-content: flex-start;
        overflow-x: auto;
        padding-bottom: 4px;
        -webkit-overflow-scrolling: touch;
    }
    
    .filter-row .ms-auto,
    .filter-row a.btn-success {
        margin-left: 0 !important;
        width: 100% !important;
        justify-content: center;
        margin-top: 0.25rem;
    }
    
    .metrics-row {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}

/* ============================================================
   RFP Detail Page — Reusable classes
   ============================================================ */
.rfp-detail-wrapper { background: #f4f6fb; min-height: 100vh; }
.rfp-breadcrumb { font-size: 0.8rem; color: #888; }
.rfp-breadcrumb a { color: #5a6acf; text-decoration: none; }
.rfp-title { font-size: 1.5rem; font-weight: 800; color: #1a1a2e; line-height: 1.35; }
.rfp-org-badge { background: #eef0ff; color: #5a6acf; padding: 4px 14px; border-radius: 20px; font-size: 0.8rem; font-weight: 600; display: inline-block; }
.rfp-status-badge { padding: 5px 16px; border-radius: 20px; font-size: 0.78rem; font-weight: 700; letter-spacing: 0.03em; }
.rfp-status-active { background: #d4f7e7; color: #0d7f4e; }
.rfp-status-inactive { background: #fde8e8; color: #c0392b; }
.rfp-main-card { background: #fff; border-radius: 16px; box-shadow: 0 2px 16px rgba(0,0,0,0.07); padding: 28px 32px; margin-bottom: 20px; }
.rfp-section-title { font-size: 0.7rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.08em; color: #888; margin-bottom: 14px; padding-bottom: 8px; border-bottom: 2px solid #f0f0f0; }
.rfp-section-title i { color: #5a6acf; margin-right: 6px; }
.info-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.info-item { display: flex; flex-direction: column; gap: 3px; }
.info-label { font-size: 0.68rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.07em; color: #aaa; }
.info-value { font-size: 0.9rem; font-weight: 600; color: #1a1a2e; }
.info-value.mono { font-family: 'Courier New', monospace; font-size: 0.82rem; }
.info-value a { color: #5a6acf; text-decoration: none; }
.info-value a:hover { text-decoration: underline; }
.rfp-description { font-size: 0.9rem; line-height: 1.75; color: #444; }
.rfp-sidebar-card { background: #fff; border-radius: 16px; box-shadow: 0 2px 12px rgba(0,0,0,0.06); padding: 20px 22px; margin-bottom: 18px; }
.sidebar-section-title { font-size: 0.65rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.08em; color: #aaa; margin-bottom: 12px; }
.deadline-box { background: linear-gradient(135deg, #ff6b6b 0%, #ee5a24 100%); border-radius: 14px; padding: 20px; text-align: center; color: #fff; margin-bottom: 18px; }
.deadline-box .days-num { font-size: 2.8rem; font-weight: 900; line-height: 1; }
.deadline-box .days-label { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.1em; opacity: 0.9; }
.deadline-box .deadline-date { font-size: 0.82rem; margin-top: 8px; opacity: 0.85; }
.deadline-expired { background: linear-gradient(135deg, #636e72 0%, #2d3436 100%) !important; }
.deadline-soon { background: linear-gradient(135deg, #f9ca24 0%, #f0932b 100%) !important; }
.contact-avatar { width: 44px; height: 44px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 1.1rem; font-weight: 800; }
.contact-row { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.contact-info-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 8px; }
.contact-info-list li a { font-size: 0.82rem; color: #555; text-decoration: none; display: flex; align-items: center; gap: 8px; }
.contact-info-list li a:hover { color: #5a6acf; }
.contact-info-list li a i { color: #5a6acf; width: 16px; text-align: center; }
.doc-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 8px; }
.doc-item { display: flex; align-items: center; gap: 10px; background: #f8f9ff; border-radius: 10px; padding: 10px 14px; font-size: 0.82rem; color: #333; }
.doc-item i { color: #e74c3c; font-size: 1rem; flex-shrink: 0; }
.doc-item a { color: #333; text-decoration: none; font-weight: 600; }
.doc-item a:hover { color: #5a6acf; }
.no-docs { font-size: 0.82rem; color: #aaa; text-align: center; padding: 14px 0; }
.corr-item { border-left: 3px solid #5a6acf; padding-left: 12px; margin-bottom: 12px; }
.corr-item:last-child { margin-bottom: 0; }
.corr-title { font-size: 0.82rem; font-weight: 700; color: #1a1a2e; }
.corr-date { font-size: 0.72rem; color: #aaa; }
.prebid-box { background: #fffbe6; border: 1px solid #ffe58f; border-radius: 12px; padding: 16px; }
.prebid-box .prebid-row { display: flex; justify-content: space-between; align-items: center; font-size: 0.82rem; margin-bottom: 6px; }
.prebid-box .prebid-row:last-child { margin-bottom: 0; }
.prebid-label { color: #888; font-weight: 600; }
.prebid-value { color: #333; font-weight: 700; }
.tag-badge { display: inline-block; padding: 4px 10px; border-radius: 20px; font-size: 0.72rem; font-weight: 700; }
.tag-blue { background: #eef0ff; color: #5a6acf; }
.tag-green { background: #d4f7e7; color: #0d7f4e; }
.tag-orange { background: #fff3e0; color: #e67e22; }
.rfp-logo { width: 70px; height: 70px; border-radius: 12px; object-fit: contain; background: #f8f9ff; border: 1px solid #eee; padding: 6px; }
.rfp-logo-placeholder { width: 70px; height: 70px; border-radius: 12px; background: linear-gradient(135deg, #eef0ff, #d9dcff); display: flex; align-items: center; justify-content: center; color: #5a6acf; font-size: 1.8rem; border: 1px solid #d9dcff; }
.back-btn { display: inline-flex; align-items: center; gap: 6px; color: #5a6acf; font-size: 0.82rem; font-weight: 600; text-decoration: none; background: #eef0ff; padding: 6px 14px; border-radius: 20px; margin-bottom: 16px; transition: background 0.2s; }
.back-btn:hover { background: #d9dcff; color: #3a4abf; }
@media (max-width: 768px) {
    .info-grid { grid-template-columns: 1fr; }
    .rfp-main-card { padding: 18px; }
}
