@import url('https://fonts.googleapis.com/css2?family=Source+Sans+3:ital,wght@0,200..900;1,200..900&display=swap');

:root {
    --font-family: 'Source Sans 3', sans-serif;
}

body,
.fi-body,
.fi-main,
.fi-sidebar,
.fi-topbar {
    font-family: var(--font-family) !important;
}

/* ── Premium Background ────────────────────────────────────── */
.fi-main-ctn {
    position: relative;
    background-image: url('/images/dashboard-bg.png') !important;
    background-size: cover !important;
    background-position: center !important;
    background-attachment: fixed !important;
}

.fi-main-ctn::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(248, 250, 252, 0.93);
    /* Glassy overlay for readability */
    backdrop-filter: blur(8px);
    pointer-events: none;
    z-index: 0;
}

/* Ensure content sits above the overlay */
.fi-main {
    position: relative;
    z-index: 1;
}

.dark .fi-main-ctn::before {
    background: rgba(15, 23, 42, 0.9);
}

/* Custom admin styles for Curator Modal - AGGRESSIVE FIX */

/* Force the main container to be horizontal (split view) */
div.curator-panel>div[class*="flex-1"] {
    display: flex !important;
    flex-direction: row !important;
    align-items: stretch !important;
    height: calc(100vh - 80px) !important;
}

/* Left side: Gallery images */
.curator-panel-gallery {
    flex: 1 1 auto !important;
    overflow-y: auto !important;
    padding: 1.5rem !important;
    background: #fff !important;
}

/* Right side: Upload Section (Sidebar) */
.curator-panel-sidebar {
    width: 450px !important;
    min-width: 450px !important;
    max-width: 450px !important;
    border-left: 1px solid #e0e0e0 !important;
    background-color: #f7f7f7 !important;
    display: flex !important;
    flex-direction: column !important;
    height: 100% !important;
    overflow-y: auto !important;
    padding: 0 !important;
}

/* Ensure the library images are in a nice grid */
.curator-picker-grid {
    display: grid !important;
    grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)) !important;
    gap: 15px !important;
    padding-bottom: 50px !important;
    /* Leave space for Load More if any */
}

.curator-picker-grid li img {
    width: 130px !important;
    height: 130px !important;
    object-fit: cover !important;
    border-radius: 6px !important;
}

/* Fix "Add Files" title and dropzone in the sidebar */
.curator-panel-sidebar h4 {
    margin-top: 1rem !important;
    padding-left: 1rem !important;
    color: #333 !important;
}

.curator-panel-sidebar .flex-1 {
    padding: 1rem !important;
}

/* Dark mode support */
.dark div.curator-panel>div[class*="flex-1"] {
    background: #000 !important;
}

.dark .curator-panel-sidebar {
    background-color: #1a1a1a !important;
    border-color: #333 !important;
}

.dark .curator-panel-gallery {
    background: #000 !important;
}

/* FORCE MEDIA ACTIONS VISIBILITY */
.fi-ta-content-grid-item .fi-ta-actions {
    display: flex !important;
    visibility: visible !important;
    opacity: 1 !important;
    margin-top: 0.5rem !important;
    justify-content: center !important;
    gap: 0.5rem !important;
}

.fi-ta-content-grid-item>div {
    display: flex !important;
    flex-direction: column !important;
    padding: 1rem !important;
}

.fi-ta-content-grid-item .fi-ta-actions {
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    padding-top: 0.75rem !important;
}

/* Reduce login page logo height and overall height */
.fi-simple-main {
    padding-top: 0.5rem !important;
}

.fi-simple-header img {
    max-height: 140px !important;
    width: auto !important;
    margin-bottom: 0 !important;
}

.fi-simple-header {
    margin-bottom: 0.5rem !important;
}

.fi-simple-card {
    margin-top: 0 !important;
}

/* Hide language switcher in admin panel */
.fi-user-menu~div>div>button[class*="filament-language-switch"] {
    display: none !important;
}

/* General selector for the language switcher if the above is too specific */
[class*="filament-language-switch"] {
    display: none !important;
}

/* ─── Dashboard stat cards — PREMIUM REDESIGN ──────────────── */
.migrantdb-stat-card {
    position: relative;
    background: #ffffff;
    border: none !important;
    border-radius: 1.25rem !important;
    padding: 1.75rem !important;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 10px 15px -3px rgba(0, 0, 0, 0.03) !important;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1) !important;
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: space-between !important;
    min-height: 130px !important;
}

.migrantdb-stat-card .stat-content {
    display: flex;
    flex-direction: column;
    z-index: 1;
}

.migrantdb-stat-card .stat-icon-wrapper {
    background: #f8fafc;
    width: 60px;
    height: 60px;
    border-radius: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.4s ease;
}

.migrantdb-stat-card.migrant:hover .stat-icon-wrapper {
    background: #e0e7ff;
    color: #4f46e5;
    transform: scale(1.1) rotate(5deg);
}

.migrantdb-stat-card.helpline:hover .stat-icon-wrapper {
    background: #dcfce7;
    color: #059669;
    transform: scale(1.1) rotate(-5deg);
}

.stat-widget-icon {
    width: 28px !important;
    height: 28px !important;
    color: #94a3b8;
}

.migrantdb-stat-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04) !important;
}

.migrantdb-stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 6px;
    height: 100%;
}

.migrantdb-stat-card.migrant::before {
    background: linear-gradient(to bottom, #6366f1, #818cf8);
}

.migrantdb-stat-card.helpline::before {
    background: linear-gradient(to bottom, #10b981, #34d399);
}

.migrantdb-stat-card dt {
    font-size: 0.75rem !important;
    font-weight: 700 !important;
    color: #6b7280 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.05em !important;
    margin-bottom: 0.5rem !important;
}

.migrantdb-stat-card dd {
    margin: 0 !important;
    font-size: 2.25rem !important;
    font-weight: 800 !important;
    letter-spacing: -0.02em !important;
    line-height: 1 !important;
}

.migrantdb-stat-card.migrant dd {
    background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.migrantdb-stat-card.helpline dd {
    background: linear-gradient(135deg, #059669 0%, #10b981 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Dark mode adjustments */
.dark .migrantdb-stat-card {
    background: #1e1e1e !important;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.4) !important;
}

.dark .migrantdb-stat-card dt {
    color: #9ca3af !important;
}

/* ─── Dashboard Layout ─────────────────────────────────────── */
.dashboard-section {
    position: relative;
    padding-top: 2.5rem;
}

.dashboard-section:first-child {
    padding-top: 0;
}

.dashboard-section-title {
    font-size: 1.375rem !important;
    font-weight: 800 !important;
    color: #0f172a !important;
    margin-bottom: 2rem !important;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.dashboard-section-title::after {
    content: '';
    flex: 1;
    height: 1px;
    background: linear-gradient(to right, #e2e8f0, transparent);
}

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

@media (min-width: 640px) {
    .dashboard-stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .dashboard-stats-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* ─── Registration wizard — circular progress layout ───────── */
ol.fi-sc-wizard-header {
    position: relative !important;
    display: flex !important;
    justify-content: center !important;
    gap: 3.5rem !important;
    padding-top: 3.5rem !important;
    padding-bottom: 95px !important;
    margin-bottom: 2.5rem !important;
    border: none !important;
    background: transparent !important;
    box-shadow: none !important;
    counter-reset: wizard-step !important;
}

/* Hide default separator slanted SVGs */
.fi-sc-wizard-header-step-separator {
    display: none !important;
}

.fi-sc-wizard-header-step {
    position: static !important;
    display: flex !important;
    align-items: center !important;
    flex: 0 0 auto !important;
    padding: 0 !important;
    background: transparent !important;
}

/* Horizontal connecting lines between steps, attached to the step icon container */
.fi-sc-wizard-header-step:not(:last-child) .fi-sc-wizard-header-step-icon-ctn::after {
    content: "" !important;
    position: absolute !important;
    left: 38px !important;
    /* Starts near the right edge of the 40px circle */
    width: 42px !important;
    /* Spans the gap to the next step */
    top: 50% !important;
    transform: translateY(-50%) !important;
    height: 2px !important;
    background-color: #e5e7eb !important;
    z-index: 0 !important;
}

.fi-sc-wizard-header-step.fi-completed:not(:last-child) .fi-sc-wizard-header-step-icon-ctn::after {
    background-color: #6366f1 !important;
}

.fi-sc-wizard-header-step-btn {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 0 !important;
    z-index: 10 !important;
    background: transparent !important;
    cursor: pointer !important;
    position: static !important;
}

/* Circular step container styling */
.fi-sc-wizard-header-step-icon-ctn {
    counter-increment: wizard-step !important;
    width: 40px !important;
    height: 40px !important;
    border-radius: 50% !important;
    border: 2px solid #d1d5db !important;
    background-color: #fff !important;
    color: #9ca3af !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-weight: 600 !important;
    font-size: 0.95rem !important;
    transition: all 0.2s ease !important;
    z-index: 20 !important;
    position: relative !important;
}

/* Force hiding checkmark icons and original padded numbers */
.fi-sc-wizard-header-step-icon-ctn * {
    display: none !important;
}

/* Inject single-digit counter value */
.fi-sc-wizard-header-step-icon-ctn::before {
    content: counter(wizard-step) !important;
    display: block !important;
}

/* Active step styling */
.fi-sc-wizard-header-step.fi-active .fi-sc-wizard-header-step-icon-ctn {
    border-color: #6366f1 !important;
    color: #6366f1 !important;
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.2) !important;
    background-color: #fff !important;
}

/* Completed step styling */
.fi-sc-wizard-header-step.fi-completed .fi-sc-wizard-header-step-icon-ctn {
    border-color: #6366f1 !important;
    color: #6366f1 !important;
    background-color: #fff !important;
}

/* Hide step label/description by default */
.fi-sc-wizard-header-step-text {
    display: none !important;
}

/* Absolutely center active step text below the entire indicators list */
.fi-sc-wizard-header-step.fi-active .fi-sc-wizard-header-step-text {
    display: block !important;
    position: absolute !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    top: 90px !important;
    width: 800px !important;
    text-align: center !important;
    z-index: 30 !important;
}

.fi-sc-wizard-header-step-label {
    display: block !important;
    font-size: 1.25rem !important;
    font-weight: 700 !important;
    color: #1f2937 !important;
    margin-bottom: 2px !important;
    margin-top: 20px;
}

.fi-sc-wizard-header-step-description {
    display: block !important;
    font-size: 0.875rem !important;
    color: #6b7280 !important;
    white-space: nowrap !important;
    /* Show description in one line as requested */
}

/* ─── Nav group labels match index.html ─────────────────── */
.fi-sidebar-group-label {
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #6b7280;
}

/* ─── Premium Form Controls: Checkbox lists, Radio groups, and Toggles ─── */
.fi-fo-checkbox-list,
.fi-fo-radio {
    gap: 0.75rem !important;
}

/* Make checkboxes and radios look like cards */
.fi-fo-checkbox-list label,
.fi-fo-radio label {
    display: flex !important;
    align-items: center !important;
    gap: 0.75rem !important;
    padding: 0.75rem 1rem !important;
    background-color: #ffffff !important;
    border: 1px solid #e5e7eb !important;
    border-radius: 0.5rem !important;
    transition: all 0.2s ease !important;
    cursor: pointer !important;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.02) !important;
    margin-bottom: 0px !important;
}

/* Hover effect */
.fi-fo-checkbox-list label:hover,
.fi-fo-radio label:hover {
    background-color: #f9fafb !important;
    border-color: #d1d5db !important;
}

/* Selected state: highlight card with theme colors */
.fi-fo-checkbox-list label:has(input[type="checkbox"]:checked),
.fi-fo-radio label:has(input[type="radio"]:checked) {
    background-color: #f5f3ff !important;
    /* Very light purple/indigo background */
    border-color: #6366f1 !important;
    /* Brand indigo border */
    box-shadow: 0 0 0 1px #6366f1, 0 2px 4px rgba(99, 102, 241, 0.05) !important;
}

/* Adjust the native checkboxes and radio input alignment slightly */
.fi-fo-checkbox-list label input[type="checkbox"],
.fi-fo-radio label input[type="radio"] {
    margin: 0 !important;
    cursor: pointer !important;
}

/* Premium toggle design */
.fi-fo-toggle {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 1rem !important;
    padding: 0.75rem 1rem !important;
    background-color: #ffffff !important;
    border: 1px solid #e5e7eb !important;
    border-radius: 0.5rem !important;
    transition: all 0.2s ease !important;
    cursor: pointer !important;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.02) !important;
}

.fi-fo-toggle:hover {
    background-color: #f9fafb !important;
    border-color: #d1d5db !important;
}

.fi-fo-toggle:has(button[aria-checked="true"]) {
    background-color: #f5f3ff !important;
    border-color: #6366f1 !important;
    box-shadow: 0 0 0 1px #6366f1, 0 2px 4px rgba(99, 102, 241, 0.05) !important;
}

/* ─── Migrant List Header Styles ────────────────────────── */
.migrant-list-header {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    padding: 1rem !important;
    border-bottom: 1px solid #f3f4f6 !important;
    background: #ffffff !important;
}

.migrant-search-container {
    position: relative !important;
    width: 280px !important;
}

.migrant-search-icon {
    position: absolute !important;
    left: 0.75rem !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    color: #9ca3af !important;
    pointer-events: none !important;
}

.migrant-search-input {
    width: 100% !important;
    padding: 0.375rem 0.75rem 0.375rem 2.25rem !important;
    font-size: 0.875rem !important;
    line-height: 1.25rem !important;
    border: 1px solid #d1d5db !important;
    border-radius: 0.375rem !important;
    outline: none !important;
    background-color: #ffffff !important;
}

.migrant-actions-container {
    display: flex !important;
    align-items: center !important;
    gap: 0.5rem !important;
}

.migrant-region-select {
    width: 160px !important;
    padding: 0.375rem 1.75rem 0.375rem 0.75rem !important;
    font-size: 0.75rem !important;
    border: 1px solid #d1d5db !important;
    border-radius: 0.375rem !important;
    outline: none !important;
    background-color: #ffffff !important;
}

.migrant-filter-btn {
    padding: 0.375rem 0.75rem !important;
    font-size: 0.75rem !important;
    font-weight: 600 !important;
    border: 1px solid #d1d5db !important;
    border-radius: 0.375rem !important;
    background-color: #ffffff !important;
    color: #374151 !important;
    cursor: pointer !important;
}

.migrant-filter-btn:hover {
    background-color: #f9fafb !important;
}

.migrant-add-btn {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 0.375rem 1rem !important;
    font-size: 0.75rem !important;
    font-weight: 600 !important;
    color: #ffffff !important;
    background-color: #4f46e5 !important;
    border-radius: 0.375rem !important;
    text-decoration: none !important;
    border: none !important;
    cursor: pointer !important;
}

.migrant-add-btn:hover {
    background-color: #4338ca !important;
}

/* ─── Migrant List Table Name Column Styles ─────────────── */
.migrant-name-cell {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    gap: 0.75rem !important;
    padding-top: 0.25rem !important;
    padding-bottom: 0.25rem !important;
}

.migrant-avatar-circle {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 2rem !important;
    height: 2rem !important;
    border-radius: 9999px !important;
    background-color: #eef2ff !important;
    color: #4f46e5 !important;
    font-weight: 700 !important;
    font-size: 0.875rem !important;
    border: 1px solid #e0e7ff !important;
    flex-shrink: 0 !important;
}

.migrant-name-text-wrapper {
    display: flex !important;
    flex-direction: column !important;
}

.migrant-name-title {
    font-weight: 600 !important;
    color: #111827 !important;
}

.migrant-name-subtitle {
    font-size: 0.75rem !important;
    color: #6b7280 !important;
}

/* ─── Migrant Detail View Custom Fields ──────────────────── */
/* 1. Bold labels */
.migrant-details-infolist .fi-in-entry-label {
    font-weight: 700 !important;
    color: #374151 !important;
    font-size: 0.8125rem !important;
    margin-bottom: 0.375rem !important;
}

/* 2. Format the value container as a read-only input box */
.migrant-details-infolist .fi-in-entry-content {
    display: block !important;
    width: 100% !important;
    padding: 0.5rem 0.75rem !important;
    font-size: 0.8125rem !important;
    /* Reduced size slightly */
    font-weight: 500 !important;
    line-height: 1.25rem !important;
    background-color: #f9fafb !important;
    /* Light gray box background to look like disabled/readonly input */
    border: 1px solid #d1d5db !important;
    border-radius: 0.375rem !important;
    color: #1f2937 !important;
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.02) !important;
    min-height: 2.25rem !important;
}

/* If it contains a badge, icon, or svg, remove the input box styling */
.migrant-details-infolist .fi-in-entry-content:has(.fi-badge),
.migrant-details-infolist .fi-in-entry-content:has(.fi-in-icon),
.migrant-details-infolist .fi-in-entry-content:has(svg) {
    background-color: transparent !important;
    border: none !important;
    padding: 0 !important;
    box-shadow: none !important;
    min-height: auto !important;
}

/* Make sure the container takes full width */
.migrant-details-infolist .fi-in-entry-content-ctn {
    width: 100% !important;
}

/* ─── Fix select dropdown z-index overlap with wizard footer buttons ─── */
.fi-dropdown-panel {
    z-index: 9999 !important;
}

.fi-sc-wizard-step.fi-active {
    position: relative !important;
    z-index: 10 !important;
}

/* ─── Premium Toggle Switches: Bright Blue Active and Gray Inactive ─── */
.fi-toggle.fi-toggle-on {
    background-color: #3b82f6 !important;
    /* Bright blue when active (ON) */
}

.fi-toggle.fi-toggle-off {
    background-color: #d1d5db !important;
    /* Clearly visible gray when inactive (OFF) */
}

/* Ensure the white circle knob inside the toggle switch stands out sharply */
.fi-toggle>span {
    background-color: #ffffff !important;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2) !important;
}



/* ═══════════════════════════════════════════════════════════════
   HELPLINE DESK — Tab-based Dashboard / Registration / Resolved
   ═══════════════════════════════════════════════════════════════ */

/* ── Animation ─────────────────────────────────────────────── */
@keyframes fadeSlideUp {
    from {
        opacity: 0;
        transform: translateY(12px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ── Tab Navigation ────────────────────────────────────────── */
.helpdesk-tabs {
    display: flex;
    gap: 0;
    border-bottom: 2px solid #e5e7eb;
    margin-bottom: 1.75rem;
}

.helpdesk-tab {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    font-size: 0.8125rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #6b7280;
    background: transparent;
    border: none;
    border-bottom: 3px solid transparent;
    margin-bottom: -2px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.helpdesk-tab:hover {
    color: #374151;
    background: #f9fafb;
}

.helpdesk-tab.active {
    color: #4f46e5;
    border-bottom-color: #4f46e5;
}

.helpdesk-tab svg {
    flex-shrink: 0;
}

/* ── Stats Grid ────────────────────────────────────────────── */
.helpdesk-stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
    margin-bottom: 1.75rem;
}

.helpdesk-stat-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    background: #ffffff;
    border: none;
    border-radius: 1.25rem;
    padding: 1.75rem 2rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 10px 15px -3px rgba(0, 0, 0, 0.03);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.helpdesk-stat-content {
    display: flex;
    flex-direction: column;
}

.helpdesk-stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

.helpdesk-stat-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    border-radius: 1rem;
    flex-shrink: 0;
    font-size: 1.5rem;
    box-shadow: inset 0 2px 4px rgba(255, 255, 255, 0.3);
}

.helpdesk-stat-label {
    font-size: 0.8125rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #64748b;
    margin-bottom: 0.25rem;
}

.helpdesk-stat-value {
    font-size: 2.25rem;
    font-weight: 800;
    line-height: 1;
    letter-spacing: -0.02em;
}

/* ── Table Card ────────────────────────────────────────────── */
.helpdesk-table-card {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 0.75rem;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0, 0, 0, .04);
}

.helpdesk-table-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid #f3f4f6;
}

.helpdesk-table-title {
    font-size: 1rem;
    font-weight: 700;
    color: #1f2937;
    margin: 0 0 0.125rem;
}

.helpdesk-table-subtitle {
    font-size: 0.8125rem;
    color: #9ca3af;
    margin: 0;
}

/* ── Table ─────────────────────────────────────────────────── */
.helpdesk-table {
    width: 100%;
    border-collapse: collapse;
}

.helpdesk-table thead th {
    padding: 0.75rem 1.5rem;
    font-size: 0.6875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #6b7280;
    background: #f9fafb;
    border-bottom: 1px solid #e5e7eb;
    text-align: left;
    white-space: nowrap;
}

.helpdesk-table tbody tr {
    border-bottom: 1px solid #f3f4f6;
    transition: background 0.15s ease;
}

.helpdesk-table tbody tr:last-child {
    border-bottom: none;
}

.helpdesk-table tbody tr:hover {
    background: #f9fafb;
}

.helpdesk-table tbody td {
    padding: 0.875rem 1.5rem;
    font-size: 0.875rem;
    color: #374151;
    vertical-align: middle;
}

.helpdesk-case-link {
    font-weight: 600;
    color: #4f46e5;
    text-decoration: none;
    transition: color 0.15s ease;
}

.helpdesk-case-link:hover {
    color: #3730a3;
    text-decoration: underline;
}

.helpdesk-worker-name {
    font-weight: 500;
    color: #1f2937;
}

/* ── Badges ────────────────────────────────────────────────── */
.helpdesk-badge {
    display: inline-block;
    padding: 0.2rem 0.625rem;
    font-size: 0.6875rem;
    font-weight: 600;
    border-radius: 9999px;
    white-space: nowrap;
    line-height: 1.3;
}

.helpdesk-badge.info {
    background: #ede9fe;
    color: #5b21b6;
}

.helpdesk-badge.success {
    background: #d1fae5;
    color: #065f46;
}

.helpdesk-badge.warning {
    background: #fef3c7;
    color: #92400e;
}

.helpdesk-badge.danger {
    background: #fee2e2;
    color: #991b1b;
}

.helpdesk-badge.gray {
    background: #f3f4f6;
    color: #6b7280;
}

/* ── Action Link ───────────────────────────────────────────── */
.helpdesk-action-link {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.8125rem;
    font-weight: 500;
    color: #6b7280;
    text-decoration: none;
    transition: color 0.15s ease;
}

.helpdesk-action-link:hover {
    color: #4f46e5;
}

/* ── Button ────────────────────────────────────────────────── */
.helpdesk-btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.5rem 1rem;
    font-size: 0.8125rem;
    font-weight: 600;
    color: #ffffff;
    background: linear-gradient(135deg, #6366f1 0%, #4f46e5 100%);
    border: none;
    border-radius: 0.5rem;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 1px 3px rgba(99, 102, 241, .3);
}

.helpdesk-btn-primary:hover {
    background: linear-gradient(135deg, #4f46e5 0%, #4338ca 100%);
    box-shadow: 0 4px 12px rgba(99, 102, 241, .35);
    transform: translateY(-1px);
    color: #ffffff;
    text-decoration: none;
}

/* ── Register Tab Card ─────────────────────────────────────── */
.helpdesk-register-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 3rem 2rem;
    background: #ffffff;
    border: 2px dashed #e5e7eb;
    border-radius: 0.75rem;
    text-align: center;
}

.helpdesk-register-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: #eef2ff;
    margin-bottom: 1.25rem;
}

/* ── Resolved Banner ───────────────────────────────────────── */
.helpdesk-resolved-banner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.25rem 1.5rem;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 0.75rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, .04);
}

/* ── Form Container ────────────────────────────────────────── */
.helpdesk-form-container {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 1.25rem;
    padding: 3.5rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}

/* ── Responsive ────────────────────────────────────────────── */
@media (max-width: 768px) {
    .helpdesk-stats-grid {
        grid-template-columns: 1fr;
    }

    .helpdesk-tabs {
        overflow-x: auto;
    }

    .helpdesk-tab {
        white-space: nowrap;
        padding: 0.625rem 1rem;
        font-size: 0.75rem;
    }
}