/* ═══════════════════════════════════════════════════════════════
   WEXFORD TRACKER - Performance Pro Theme
   Industrial Precision Design System
═══════════════════════════════════════════════════════════════ */

/* Import fonts */
@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@400;500;600;700&family=Inter:wght@400;500;600&family=JetBrains+Mono:wght@400;500&display=swap');

:root {
    --wex-bg: #0a0a0f;
    --wex-surface: #1e1e2e;
    --wex-surface-highlight: #2d2d41;
    --wex-border: rgba(99, 102, 241, 0.15);
    --wex-primary: #6366f1;
    --wex-primary-glow: rgba(99,102,241,0.3);
    --wex-accent: #a78bfa;
    --wex-success: #22c55e;
    --wex-danger: #ef4444;
    --wex-warning: #f59e0b;
    --wex-muted: #94a3b8;
    --wex-text: #e2e8f0;
    --wex-text-secondary: #94a3b8;

    --font-heading: 'Manrope', sans-serif;
    --font-body: 'Inter', sans-serif;
    --font-mono: 'JetBrains Mono', monospace;
}

body {
    background: linear-gradient(135deg, #0a0a0f 0%, #111827 50%, #0a0a0f 100%);
    background-attachment: fixed;
    font-family: var(--font-body);
    color: var(--wex-text);
}

/* Typography */
h1, h2, h3, h4, h5 {
    font-family: var(--font-heading);
    font-weight: 600;
    letter-spacing: -0.025em;
}

.font-mono, code, .sku-text, .order-id, .barcode {
    font-family: var(--font-mono);
}

/* Navbar Styles - Glassmorphism */
.navbar-dark-custom {
    background: rgba(10, 10, 15, 0.85) !important;
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(99, 102, 241, 0.08);
}

.navbar-brand-logo {
    font-family: var(--font-heading);
    font-weight: 700;
    color: var(--wex-primary) !important;
    letter-spacing: -0.025em;
}

.nav-link {
    font-weight: 500;
    color: var(--wex-text-secondary) !important;
    transition: color 0.2s ease;
}

.nav-link:hover {
    color: var(--wex-text) !important;
}

.dropdown-menu-dark {
    background: rgba(30, 30, 46, 0.95);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(99, 102, 241, 0.15);
    box-shadow: 0 10px 40px rgba(0,0,0,0.5);
}

.dropdown-item {
    font-weight: 500;
    padding: 0.6rem 1rem;
    transition: background-color 0.15s ease;
}

.dropdown-item:hover {
    background-color: var(--wex-surface-highlight);
}

/* Buttons - Glassmorphism */
.btn {
    font-family: var(--font-body);
    font-weight: 600;
    border-radius: 8px;
    transition: all 0.2s ease;
}

.btn-primary {
    background: linear-gradient(135deg, #6366f1, #4f46e5);
    border: none;
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.25);
}

.btn-primary:hover {
    background: linear-gradient(135deg, #818cf8, #6366f1);
    box-shadow: 0 6px 20px rgba(99, 102, 241, 0.35);
    transform: translateY(-1px);
}

.btn-primary:active {
    transform: scale(0.98);
}

.btn-success {
    background-color: var(--wex-success);
    border-color: var(--wex-success);
}

.btn-warning {
    background-color: var(--wex-accent);
    border-color: var(--wex-accent);
    color: #000;
}

.btn-danger {
    background-color: var(--wex-danger);
    border-color: var(--wex-danger);
}

.btn-outline-secondary {
    border-color: var(--wex-border);
    color: var(--wex-text-secondary);
}

.btn-outline-secondary:hover {
    background-color: var(--wex-surface-highlight);
    border-color: var(--wex-border);
    color: var(--wex-text);
}

/* Cards and Panels */
.card, .panel {
    background: rgba(30, 30, 46, 0.7);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(99, 102, 241, 0.1);
    border-radius: 12px;
}

.card:hover {
    border-color: rgba(99, 102, 241, 0.2);
}

/* Form Controls */
.form-control, .form-select {
    background-color: var(--wex-bg);
    border: 1px solid var(--wex-border);
    color: var(--wex-text);
    font-family: var(--font-body);
    border-radius: 6px;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.form-control:focus, .form-select:focus {
    background-color: var(--wex-bg);
    border-color: rgba(99, 102, 241, 0.5);
    box-shadow: 0 0 15px rgba(99, 102, 241, 0.1);
    color: var(--wex-text);
}

.form-control::placeholder {
    color: var(--wex-muted);
}

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

/* Tables - Dense Industrial */
.table {
    --bs-table-bg: transparent;
    --bs-table-hover-bg: var(--wex-surface-highlight);
    border-color: var(--wex-border);
}

.table thead th {
    background: rgba(30, 30, 46, 0.95);
    backdrop-filter: blur(8px);
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--wex-muted);
    border-bottom: 1px solid var(--wex-border);
    padding: 0.75rem 1rem;
    position: sticky;
    top: 0;
    z-index: 10;
}

.table tbody td {
    font-size: 0.875rem;
    padding: 0.75rem 1rem;
    border-bottom: 1px solid var(--wex-border);
    vertical-align: middle;
}

.table tbody tr:hover {
    background: rgba(99, 102, 241, 0.06);
}

/* Status Badges */
.badge-status {
    font-family: var(--font-mono);
    font-weight: 500;
    font-size: 0.7rem;
    padding: 0.35em 0.65em;
    border-radius: 6px;
    text-transform: uppercase;
    letter-spacing: 0.025em;
    backdrop-filter: blur(4px);
}

.badge-production {
    background-color: rgba(59,130,246,0.15);
    color: #60a5fa;
    border: 1px solid rgba(59,130,246,0.3);
}

.badge-completed {
    background-color: rgba(34,197,94,0.15);
    color: #4ade80;
    border: 1px solid rgba(34,197,94,0.3);
}

.badge-pending {
    background-color: rgba(245,158,11,0.15);
    color: #fbbf24;
    border: 1px solid rgba(245,158,11,0.3);
}

.badge-error {
    background-color: rgba(239,68,68,0.15);
    color: #f87171;
    border: 1px solid rgba(239,68,68,0.3);
}

/* Lightbox Modal */
.lightbox-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0,0,0,0.9);
    backdrop-filter: blur(8px);
    z-index: 9999;
    display: none;
    justify-content: center;
    align-items: center;
    padding: 2rem;
}

.lightbox-overlay.active {
    display: flex;
}

.lightbox-content {
    max-width: 90vw;
    max-height: 90vh;
    position: relative;
}

.lightbox-image {
    max-width: 100%;
    max-height: 85vh;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 25px 50px rgba(0,0,0,0.5);
}

.lightbox-close {
    position: absolute;
    top: -40px;
    right: 0;
    background: var(--wex-surface);
    border: 1px solid var(--wex-border);
    color: var(--wex-text);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.15s ease;
}

.lightbox-close:hover {
    background: var(--wex-danger);
    border-color: var(--wex-danger);
}

.lightbox-info {
    position: absolute;
    bottom: -50px;
    left: 0;
    right: 0;
    text-align: center;
    font-family: var(--font-mono);
    color: var(--wex-muted);
    font-size: 0.875rem;
}

.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: var(--wex-surface);
    border: 1px solid var(--wex-border);
    color: var(--wex-text);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.15s ease;
}

.lightbox-nav:hover {
    background: var(--wex-primary);
    border-color: var(--wex-primary);
}

.lightbox-prev { left: -60px; }
.lightbox-next { right: -60px; }

/* Ocultar mensajes de Django, ya que usaremos Toasts */
.django-messages { display: none; }

/* Scrollbar styling */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: var(--wex-bg);
}

::-webkit-scrollbar-thumb {
    background: rgba(99, 102, 241, 0.3);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(99, 102, 241, 0.5);
}

/* ═══════════════════════════════════════════════════════════════
   ENTERPRISE DESIGN SYSTEM - Professional Components
═══════════════════════════════════════════════════════════════ */

/* Enterprise Page Headers - Glassmorphism */
.enterprise-header {
    background: rgba(30, 30, 46, 0.8);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(99, 102, 241, 0.1);
    border-radius: 16px;
    padding: 1.5rem 2rem;
    margin-bottom: 1.5rem;
    position: relative;
    overflow: hidden;
}

.enterprise-header::before {
    content: '';
    position: absolute;
    inset: 0;
    opacity: 0.03;
    background: radial-gradient(circle at 25% 0%, rgba(99,102,241,0.5), transparent 50%),
                radial-gradient(circle at 75% 100%, rgba(139,92,246,0.4), transparent 50%);
    pointer-events: none;
}

.enterprise-header h1 {
    font-size: 1.75rem;
    font-weight: 700;
    background: linear-gradient(135deg, #818cf8, #6366f1, #a78bfa);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin: 0 0 0.5rem 0;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.enterprise-header h1 i {
    color: var(--wex-primary);
    -webkit-text-fill-color: var(--wex-primary);
}

.enterprise-header p {
    color: var(--wex-muted);
    margin: 0;
    font-size: 0.95rem;
}

/* Enterprise Cards - Glassmorphism */
.enterprise-card-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(99, 102, 241, 0.1);
}

.enterprise-card-header i {
    font-size: 1.25rem;
    color: var(--wex-primary);
}

.enterprise-card-header h3 {
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--wex-text);
    margin: 0;
}

/* Enterprise Stats Grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.25rem;
    margin-bottom: 2rem;
}

.stat-card {
    background: rgba(30, 30, 46, 0.6);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(99, 102, 241, 0.1);
    border-radius: 12px;
    padding: 1.25rem;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--wex-primary), var(--wex-accent));
    opacity: 0.6;
}

.stat-card::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 80px;
    height: 80px;
    background: radial-gradient(circle at top right, rgba(99,102,241,0.08), transparent);
}

.stat-card:hover {
    border-color: rgba(99, 102, 241, 0.2);
    box-shadow: 0 8px 24px rgba(99, 102, 241, 0.08);
}

.stat-card .stat-value {
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 700;
    color: var(--wex-text);
    line-height: 1;
    margin-bottom: 0.5rem;
}

.stat-card .stat-label {
    font-size: 0.8rem;
    color: var(--wex-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Enterprise Buttons - Gradient */
.btn-enterprise {
    background: linear-gradient(135deg, #6366f1 0%, #4f46e5 100%);
    color: white;
    font-weight: 600;
    padding: 0.75rem 1.5rem;
    border-radius: 10px;
    border: none;
    transition: all 0.2s ease;
    box-shadow: 0 4px 15px rgba(99,102,241,0.3);
}

.btn-enterprise:hover {
    transform: translateY(-2px);
    background: linear-gradient(135deg, #818cf8 0%, #6366f1 100%);
    box-shadow: 0 8px 25px rgba(99,102,241,0.4);
    color: white;
}

.btn-enterprise:active {
    transform: translateY(0);
}

.btn-enterprise-success {
    background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
    box-shadow: 0 4px 15px rgba(34,197,94,0.25);
}

.btn-enterprise-success:hover {
    box-shadow: 0 8px 25px rgba(34,197,94,0.35);
}

/* Enterprise Form Controls */
.enterprise-input {
    background: rgba(10, 10, 15, 0.8);
    border: 1px solid rgba(99, 102, 241, 0.12);
    border-radius: 10px;
    padding: 0.75rem 1rem;
    color: var(--wex-text);
    transition: all 0.2s ease;
}

.enterprise-input:focus {
    border-color: rgba(99, 102, 241, 0.5);
    box-shadow: 0 0 20px rgba(99, 102, 241, 0.15);
    outline: none;
}

.enterprise-label {
    display: block;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--wex-muted);
    margin-bottom: 0.5rem;
}

/* Enterprise Sections */
.enterprise-section {
    background: rgba(30, 30, 46, 0.7);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(99, 102, 241, 0.1);
    border-radius: 16px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

.enterprise-section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.25rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--wex-border);
}

.enterprise-section-title {
    font-family: var(--font-heading);
    font-size: 1rem;
    font-weight: 600;
    color: var(--wex-text);
    margin: 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.enterprise-section-title i {
    color: var(--wex-primary);
}

/* Enterprise Empty States */
.enterprise-empty {
    text-align: center;
    padding: 3rem 2rem;
    color: var(--wex-muted);
}

.enterprise-empty i {
    font-size: 3rem;
    color: var(--wex-border);
    margin-bottom: 1rem;
}

.enterprise-empty h4 {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    color: var(--wex-text);
    margin-bottom: 0.5rem;
}

.enterprise-empty p {
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
}

/* Enterprise Alerts */
.enterprise-alert {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1rem 1.25rem;
    border-radius: 12px;
    margin-bottom: 1rem;
}

.enterprise-alert-icon {
    font-size: 1.25rem;
    flex-shrink: 0;
}

.enterprise-alert-content h5 {
    font-size: 0.9rem;
    font-weight: 600;
    margin: 0 0 0.25rem 0;
}

.enterprise-alert-content p {
    font-size: 0.85rem;
    margin: 0;
    opacity: 0.9;
}

.enterprise-alert-success {
    background: rgba(34,197,94,0.1);
    border: 1px solid rgba(34,197,94,0.2);
}

.enterprise-alert-success .enterprise-alert-icon { color: var(--wex-success); }
.enterprise-alert-success h5 { color: var(--wex-success); }

.enterprise-alert-warning {
    background: rgba(245,158,11,0.1);
    border: 1px solid rgba(245,158,11,0.2);
}

.enterprise-alert-warning .enterprise-alert-icon { color: var(--wex-accent); }
.enterprise-alert-warning h5 { color: var(--wex-accent); }

.enterprise-alert-danger {
    background: rgba(239,68,68,0.1);
    border: 1px solid rgba(239,68,68,0.2);
}

.enterprise-alert-danger .enterprise-alert-icon { color: var(--wex-danger); }
.enterprise-alert-danger h5 { color: var(--wex-danger); }

/* Enterprise Navigation Tabs */
.enterprise-tabs {
    display: flex;
    gap: 0.5rem;
    padding: 0.5rem;
    background: rgba(30, 30, 46, 0.6);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(99, 102, 241, 0.08);
    border-radius: 12px;
    margin-bottom: 1.5rem;
}

.enterprise-tab {
    flex: 1;
    padding: 0.75rem 1rem;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--wex-muted);
    background: transparent;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: center;
}

.enterprise-tab:hover {
    color: var(--wex-text);
    background: var(--wex-surface-highlight);
}

.enterprise-tab.active {
    color: var(--wex-text);
    background: var(--wex-primary);
}

/* Enterprise Loading States */
.enterprise-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.enterprise-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid var(--wex-border);
    border-top-color: var(--wex-primary);
    border-radius: 50%;
    animation: enterprise-spin 0.8s linear infinite;
}

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

/* Enterprise Dividers */
.enterprise-divider {
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(99, 102, 241, 0.15), transparent);
    margin: 1.5rem 0;
}

/* Enterprise Quick Actions */
.enterprise-quick-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.enterprise-quick-action {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 1rem;
    background: rgba(45, 45, 65, 0.6);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(99, 102, 241, 0.1);
    border-radius: 8px;
    color: var(--wex-text);
    font-size: 0.875rem;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.2s ease;
}

.enterprise-quick-action:hover {
    background: linear-gradient(135deg, #6366f1, #4f46e5);
    border-color: rgba(99, 102, 241, 0.3);
    color: white;
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.25);
}

.enterprise-quick-action i {
    font-size: 1rem;
}

/* Page Title - Enterprise Style */
h1.page-title {
    font-family: var(--font-heading);
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--wex-text);
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

h1.page-title i {
    color: var(--wex-primary);
}

.page-subtitle {
    color: var(--wex-muted);
    font-size: 0.95rem;
    margin-bottom: 2rem;
}

/* Language Selector Styles */
.language-dropdown {
    min-width: 180px;
    padding: 0.5rem 0;
}

.language-dropdown .dropdown-item {
    padding: 0.6rem 1rem;
    border-radius: 6px;
    margin: 2px 8px;
    transition: all 0.2s ease;
}

.language-dropdown .dropdown-item:hover {
    background: var(--wex-surface-highlight);
}

.language-dropdown .dropdown-item.active {
    background: var(--wex-primary) !important;
    color: white;
}

.language-dropdown .dropdown-header {
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-size: 10px;
    padding: 0.5rem 1rem;
}

#languageDropdown {
    padding: 0.4rem 0.8rem;
    border-radius: 8px;
    background: rgba(30, 30, 46, 0.6);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(99, 102, 241, 0.1);
    transition: all 0.2s ease;
}

#languageDropdown:hover {
    background: rgba(45, 45, 65, 0.8);
    border-color: rgba(99, 102, 241, 0.3);
}

/* ── Focus Visible (Accessibility) ─────────────────── */
.nav-link:focus-visible,
.btn:focus-visible,
.form-control:focus-visible,
.form-select:focus-visible,
a:focus-visible {
    outline: 2px solid var(--wex-primary);
    outline-offset: 2px;
    border-radius: 4px;
}

/* ── Print Styles ──────────────────────────────────── */
@media print {
    /* Hide non-content elements */
    .navbar, .sidebar, .page-header-actions, .filters-bar,
    .btn, .bulk-action-bar, footer, .quick-actions-grid,
    .filter-bar, .form-check, .enterprise-table-wrap .delete-row-btn,
    .toast-container, .live-indicator { display: none !important; }

    /* Reset colors for print */
    body { background: white !important; color: black !important; font-size: 10pt; }
    .enterprise-header { background: none !important; border-bottom: 2px solid #333; padding: 0.5rem 0; margin-bottom: 1rem; break-after: avoid; }
    .enterprise-header h1 { color: black !important; font-size: 14pt; }
    .enterprise-header p { color: #666 !important; font-size: 9pt; }

    /* Tables */
    .enterprise-table { font-size: 9pt; border-collapse: collapse; }
    .enterprise-table th, .enterprise-table td { border: 1px solid #ccc !important; padding: 4px 8px !important; color: black !important; background: white !important; }
    .enterprise-table thead th { background: #f0f0f0 !important; font-weight: bold; }

    /* Cards */
    .section-card, .stat-card { border: 1px solid #ccc !important; background: white !important; break-inside: avoid; }

    /* Badges — make readable in B&W */
    .badge { border: 1px solid #999 !important; background: white !important; color: black !important; }

    /* Page layout */
    .page-container, .page-container-wide { max-width: 100% !important; padding: 0 !important; }

    /* Charts — hide since they don't print well */
    .chart-card canvas, .chart-wrapper { display: none !important; }
    .chart-card::after { content: "[Chart — see digital version]"; font-style: italic; color: #999; }

    /* Generic .table class (PO / Invoice detail pages) */
    .table, .table th, .table td { border: 1px solid #ccc !important; color: black !important; background: white !important; }
    .table thead th { background: #f0f0f0 !important; font-weight: bold; border-bottom: 2px solid #999 !important; }

    /* PO / Invoice info grids */
    .po-info-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.5rem; }
    .po-info-item small { color: #666 !important; }
    .po-info-item .val { color: black !important; }

    /* Progress bars — hide in print */
    .progress { display: none !important; }

    /* Section cards for detail pages */
    .section-header { background: #f0f0f0 !important; color: black !important; border-bottom: 1px solid #999; }
    .section-header h3, .section-header .fw-semibold { color: black !important; }
    .section-body, .section-body-flush { background: white !important; color: black !important; }

    /* Add-line form — hide in print */
    .add-line-form { display: none !important; }

    /* Filters bar — already hidden via .filters-bar but be explicit */
    .filters-bar, .stats-row { display: none !important; }
}

/* ── Button Loading State ──────────────────────────── */
.btn-loading {
    pointer-events: none;
    opacity: 0.7;
    position: relative;
}
.btn-loading .btn-text { visibility: hidden; }
.btn-loading::after {
    content: "";
    position: absolute;
    width: 1rem; height: 1rem;
    top: 50%; left: 50%;
    margin: -0.5rem 0 0 -0.5rem;
    border: 2px solid transparent;
    border-top-color: currentColor;
    border-radius: 50%;
    animation: enterprise-spin 0.6s linear infinite;
}

/* ── Required Field Indicator ──────────────────────── */
label.required::after,
.required-label::after {
    content: " *";
    color: var(--wex-danger, #ef4444);
    font-weight: 700;
}

/* ── Skeleton Loader ───────────────────────────────── */
.skeleton {
    background: linear-gradient(90deg, rgba(30,30,46,0.9) 25%, rgba(45,45,65,0.8) 50%, rgba(30,30,46,0.9) 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
    border-radius: 6px;
}
@keyframes shimmer {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* ── Improved Empty States ─────────────────────────── */
.empty-state-lg {
    text-align: center;
    padding: 3rem 1.5rem;
    color: var(--wex-muted);
}
.empty-state-lg i {
    font-size: 3rem;
    margin-bottom: 1rem;
    display: block;
    opacity: 0.5;
}
.empty-state-lg p {
    font-size: 0.95rem;
    margin-bottom: 1rem;
}

/* ── Sticky Table Header ───────────────────────────── */
.enterprise-table-wrap.sticky-header {
    max-height: 70vh;
    overflow-y: auto;
}
.enterprise-table-wrap.sticky-header thead th {
    position: sticky;
    top: 0;
    z-index: 2;
    background: var(--wex-surface);
}
