﻿/* ==========================================================================
   QDeskPro Premium Components Design System
   Modern, stunning UI components with glassmorphism, gradients & animations
   ========================================================================== */

/* ==========================================================================
   CSS Custom Properties - Premium Theme Colors
   ========================================================================== */
:root {
    /* Theme Color Sets - RGB values for alpha support */
    --premium-blue-rgb: 25, 118, 210;
    --premium-purple-rgb: 99, 102, 241;
    --premium-green-rgb: 16, 185, 129;
    --premium-orange-rgb: 245, 158, 11;
    --premium-teal-rgb: 20, 184, 166;
    --premium-red-rgb: 239, 68, 68;

    /* ============================================================
       OBSIDIAN & AMBER — Primary Design System
       ============================================================ */
    /* Obsidian Dark Chrome */
    --theme-obsidian-darkest: #061e1e;
    --theme-obsidian: #0c4a4a;
    --theme-obsidian-light: #125e5e;
    --theme-obsidian-mid: #1a7a7a;
    --theme-obsidian-gradient: linear-gradient(135deg, #0c4a4a 0%, #125e5e 100%);

    /* Primary = Amber (alias to orange theme) */
    --theme-primary-dark: #b45309;
    --theme-primary: #d97706;
    --theme-primary-light: #fbbf24;
    --theme-primary-gradient: linear-gradient(135deg, #d97706 0%, #f59e0b 50%, #fbbf24 100%);
    --theme-primary-shadow: rgba(217, 119, 6, 0.25);
    --theme-primary-rgb: 217, 119, 6;

    /* Blue Theme (Reports, Dashboard) */
    --theme-blue-dark: #1565C0;
    --theme-blue: #1976D2;
    --theme-blue-light: #42A5F5;
    --theme-blue-gradient: linear-gradient(135deg, #1565C0 0%, #1976D2 50%, #42A5F5 100%);
    --theme-blue-shadow: rgba(25, 118, 210, 0.25);

    /* Purple Theme (Analytics, Performance) */
    --theme-purple-dark: #4f46e5;
    --theme-purple: #6366f1;
    --theme-purple-light: #a78bfa;
    --theme-purple-gradient: linear-gradient(135deg, #6366f1 0%, #8b5cf6 50%, #a78bfa 100%);
    --theme-purple-shadow: rgba(99, 102, 241, 0.25);

    /* Green Theme (Finance, Exports, Success) */
    --theme-green-dark: #047857;
    --theme-green: #059669;
    --theme-green-light: #34d399;
    --theme-green-gradient: linear-gradient(135deg, #059669 0%, #10b981 50%, #34d399 100%);
    --theme-green-shadow: rgba(16, 185, 129, 0.25);

    /* Orange Theme (Alerts, Warnings, Operations) */
    --theme-orange-dark: #d97706;
    --theme-orange: #f59e0b;
    --theme-orange-light: #fbbf24;
    --theme-orange-gradient: linear-gradient(135deg, #d97706 0%, #f59e0b 50%, #fbbf24 100%);
    --theme-orange-shadow: rgba(245, 158, 11, 0.25);

    /* Teal Theme (unified dark teal — matches sidebar & page headers) */
    --theme-teal-dark: #0c4a4a;
    --theme-teal: #125e5e;
    --theme-teal-light: #1a7a7a;
    --theme-teal-gradient: linear-gradient(135deg, #0c4a4a 0%, #125e5e 100%);
    --theme-teal-shadow: rgba(12, 74, 74, 0.25);

    /* Red Theme (Admin, Users) */
    --theme-red-dark: #b91c1c;
    --theme-red: #dc2626;
    --theme-red-light: #f87171;
    --theme-red-gradient: linear-gradient(135deg, #b91c1c 0%, #dc2626 50%, #f87171 100%);
    --theme-red-shadow: rgba(239, 68, 68, 0.25);

    /* Indigo Theme (Accounting) */
    --theme-indigo-dark: #3730a3;
    --theme-indigo: #4f46e5;
    --theme-indigo-light: #818cf8;
    --theme-indigo-gradient: linear-gradient(135deg, #3730a3 0%, #4f46e5 50%, #818cf8 100%);
    --theme-indigo-shadow: rgba(79, 70, 229, 0.25);

    /* Premium Shadows */
    --premium-shadow-sm: 0 4px 12px rgba(0, 0, 0, 0.05);
    --premium-shadow-md: 0 10px 40px rgba(0, 0, 0, 0.08), 0 4px 12px rgba(0, 0, 0, 0.04);
    --premium-shadow-lg: 0 20px 60px rgba(0, 0, 0, 0.12), 0 8px 20px rgba(0, 0, 0, 0.06);
    --premium-shadow-glow: 0 0 30px var(--premium-glow-color, rgba(25, 118, 210, 0.2));

    /* Premium Border Radius */
    --premium-radius-sm: 12px;
    --premium-radius-md: 16px;
    --premium-radius-lg: 20px;
    --premium-radius-xl: 24px;

    /* Premium Transitions */
    --premium-transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    --premium-transition-fast: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    --premium-transition-bounce: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* ==========================================================================
   Animations
   ========================================================================== */
@keyframes patternFloat {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-10px) rotate(1deg); }
}

@keyframes iconPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

@keyframes shimmer {
    0% { left: -100%; }
    100% { left: 100%; }
}

@keyframes bounceDown {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(3px); }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes glowPulse {
    0%, 100% { box-shadow: 0 0 20px var(--premium-glow-color, rgba(25, 118, 210, 0.2)); }
    50% { box-shadow: 0 0 40px var(--premium-glow-color, rgba(25, 118, 210, 0.4)); }
}

/* ==========================================================================
   Premium Page Header
   ========================================================================== */
.premium-page-header {
    border-radius: var(--premium-radius-lg);
    overflow: hidden;
    box-shadow: var(--premium-shadow-md);
    position: relative;
    margin-bottom: 8px;
    animation: fadeInUp 0.5s ease-out;
}

/* Theme Variants */
.premium-page-header.theme-blue {
    background: var(--theme-blue-gradient);
    --premium-glow-color: var(--theme-blue-shadow);
}

.premium-page-header.theme-purple {
    background: var(--theme-purple-gradient);
    --premium-glow-color: var(--theme-purple-shadow);
}

.premium-page-header.theme-green {
    background: var(--theme-green-gradient);
    --premium-glow-color: var(--theme-green-shadow);
}

.premium-page-header.theme-orange {
    background: var(--theme-orange-gradient);
    --premium-glow-color: var(--theme-orange-shadow);
}

.premium-page-header.theme-teal {
    background: var(--theme-teal-gradient);
    --premium-glow-color: var(--theme-teal-shadow);
}

.premium-page-header.theme-red {
    background: var(--theme-red-gradient);
    --premium-glow-color: var(--theme-red-shadow);
}

.premium-page-header.theme-indigo {
    background: var(--theme-indigo-gradient);
    --premium-glow-color: var(--theme-indigo-shadow);
}

/* Header Pattern Overlay */
.premium-header-pattern {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image:
        radial-gradient(circle at 20% 80%, rgba(255, 255, 255, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(255, 255, 255, 0.1) 0%, transparent 40%),
        url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.06'%3E%3Ccircle cx='30' cy='30' r='4'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    animation: patternFloat 20s ease-in-out infinite;
    pointer-events: none;
}

/* Header Content */
.premium-header-content {
    position: relative;
    z-index: 1;
    padding: 28px 32px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.premium-header-left {
    display: flex;
    align-items: center;
    gap: 20px;
}

/* Icon Wrapper with Glassmorphism */
.premium-icon-wrapper {
    width: 64px;
    height: 64px;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: var(--premium-radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
    animation: iconPulse 3s ease-in-out infinite;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.premium-icon-wrapper.size-small {
    width: 48px;
    height: 48px;
}

.premium-icon-wrapper.size-large {
    width: 72px;
    height: 72px;
}

/* Header Text */
.premium-header-text .premium-title {
    color: white !important;
    font-weight: 700 !important;
    letter-spacing: -0.5px;
    margin-bottom: 4px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    -webkit-background-clip: unset !important;
    -webkit-text-fill-color: unset !important;
    background-clip: unset !important;
    background: none !important;
}

.premium-header-text .premium-subtitle {
    color: rgba(255, 255, 255, 0.9) !important;
    font-weight: 400;
}

/* Header Right Actions */
.premium-header-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

/* ==========================================================================
   Premium Section Card
   ========================================================================== */
.premium-section {
    border-radius: var(--premium-radius-lg);
    overflow: hidden;
    box-shadow: var(--premium-shadow-md);
    transition: var(--premium-transition);
    animation: fadeInUp 0.5s ease-out;
}

.premium-section:hover {
    box-shadow: var(--premium-shadow-lg);
    transform: translateY(-2px);
}

/* Section Header */
.premium-section-header {
    padding: 28px 32px;
    position: relative;
    overflow: hidden;
}

.premium-section-header.theme-blue { background: var(--theme-blue-gradient); }
.premium-section-header.theme-purple { background: var(--theme-purple-gradient); }
.premium-section-header.theme-green { background: var(--theme-green-gradient); }
.premium-section-header.theme-orange { background: var(--theme-orange-gradient); }
.premium-section-header.theme-teal { background: var(--theme-teal-gradient); }
.premium-section-header.theme-red { background: var(--theme-red-gradient); }
.premium-section-header.theme-indigo { background: var(--theme-indigo-gradient); }

.premium-section-header-content {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    gap: 20px;
}

.premium-section-title {
    color: white !important;
    font-weight: 700 !important;
    letter-spacing: -0.5px;
    margin-bottom: 4px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.premium-section-subtitle {
    color: rgba(255, 255, 255, 0.9) !important;
    font-weight: 400;
}

/* Section Body */
.premium-section-body {
    background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
    padding: 28px;
    position: relative;
}

/* ==========================================================================
   Premium Category Chips
   ========================================================================== */
.premium-chips-container {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 28px;
    padding-bottom: 20px;
    border-bottom: 1px dashed rgba(0, 0, 0, 0.1);
}

.premium-chip-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
}

.premium-chip {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    border-radius: var(--premium-radius-sm);
    font-size: 0.85rem;
    font-weight: 600;
    transition: var(--premium-transition-fast);
    cursor: default;
}

.premium-chip:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* Chip Color Variants */
.premium-chip.chip-sales {
    background: linear-gradient(135deg, #dcfce7 0%, #bbf7d0 100%);
    color: #16a34a;
    border: 1px solid rgba(22, 163, 74, 0.2);
}

.premium-chip.chip-expenses {
    background: linear-gradient(135deg, #fee2e2 0%, #fecaca 100%);
    color: #dc2626;
    border: 1px solid rgba(220, 38, 38, 0.2);
}

.premium-chip.chip-fuel {
    background: linear-gradient(135deg, #ffedd5 0%, #fed7aa 100%);
    color: #c2410c;
    border: 1px solid rgba(194, 65, 12, 0.2);
}

.premium-chip.chip-banking {
    background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 100%);
    color: #2563eb;
    border: 1px solid rgba(37, 99, 235, 0.2);
}

.premium-chip.chip-analytics {
    background: linear-gradient(135deg, #e0e7ff 0%, #c7d2fe 100%);
    color: #4338ca;
    border: 1px solid rgba(99, 102, 241, 0.2);
}

.premium-chip.chip-users {
    background: linear-gradient(135deg, #ede9fe 0%, #ddd6fe 100%);
    color: #7c3aed;
    border: 1px solid rgba(139, 92, 246, 0.2);
}

.premium-chip.chip-quarries {
    background: linear-gradient(135deg, #ccfbf1 0%, #99f6e4 100%);
    color: #0d9488;
    border: 1px solid rgba(20, 184, 166, 0.2);
}

.premium-chip.chip-products {
    background: linear-gradient(135deg, #fae8ff 0%, #f5d0fe 100%);
    color: #a21caf;
    border: 1px solid rgba(168, 85, 247, 0.2);
}

.premium-chip.chip-accounting {
    background: linear-gradient(135deg, #e0e7ff 0%, #c7d2fe 100%);
    color: #3730a3;
    border: 1px solid rgba(79, 70, 229, 0.2);
}

/* ==========================================================================
   Premium Action Buttons
   ========================================================================== */
.premium-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 28px;
    border: none;
    border-radius: var(--premium-radius-sm);
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--premium-transition-fast);
    position: relative;
    overflow: hidden;
}

.premium-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.premium-btn:hover::before {
    left: 100%;
}

.premium-btn:hover {
    transform: translateY(-2px);
}

.premium-btn:active {
    transform: translateY(0);
}

.premium-btn:disabled {
    background: linear-gradient(135deg, #9ca3af 0%, #6b7280 100%) !important;
    cursor: not-allowed;
    box-shadow: none !important;
}

.premium-btn:disabled::before {
    display: none;
}

/* Button Theme Variants */
.premium-btn.btn-blue {
    background: linear-gradient(135deg, #1565C0 0%, #1976D2 100%);
    color: white;
    box-shadow: 0 4px 16px rgba(25, 118, 210, 0.3);
}

.premium-btn.btn-blue:hover {
    box-shadow: 0 8px 24px rgba(25, 118, 210, 0.4);
    background: linear-gradient(135deg, #0D47A1 0%, #1565C0 100%);
}

.premium-btn.btn-purple {
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    color: white;
    box-shadow: 0 4px 16px rgba(99, 102, 241, 0.3);
}

.premium-btn.btn-purple:hover {
    box-shadow: 0 8px 24px rgba(99, 102, 241, 0.4);
    background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%);
}

.premium-btn.btn-green {
    background: linear-gradient(135deg, #059669 0%, #10b981 100%);
    color: white;
    box-shadow: 0 4px 16px rgba(16, 185, 129, 0.3);
}

.premium-btn.btn-green:hover {
    box-shadow: 0 8px 24px rgba(16, 185, 129, 0.4);
    background: linear-gradient(135deg, #047857 0%, #059669 100%);
}

.premium-btn.btn-orange {
    background: linear-gradient(135deg, #d97706 0%, #f59e0b 100%);
    color: white;
    box-shadow: 0 4px 16px rgba(245, 158, 11, 0.3);
}

.premium-btn.btn-orange:hover {
    box-shadow: 0 8px 24px rgba(245, 158, 11, 0.4);
    background: linear-gradient(135deg, #b45309 0%, #d97706 100%);
}

/* btn-primary: Primary amber — alias of btn-orange for semantic clarity */
.premium-btn.btn-primary {
    background: linear-gradient(135deg, #d97706 0%, #f59e0b 100%);
    color: white;
    box-shadow: 0 4px 16px rgba(217, 119, 6, 0.35);
}

.premium-btn.btn-primary:hover {
    box-shadow: 0 8px 24px rgba(217, 119, 6, 0.45);
    background: linear-gradient(135deg, #b45309 0%, #d97706 100%);
}

.premium-btn.btn-teal {
    background: linear-gradient(135deg, #0d9488 0%, #14b8a6 100%);
    color: white;
    box-shadow: 0 4px 16px rgba(20, 184, 166, 0.3);
}

.premium-btn.btn-teal:hover {
    box-shadow: 0 8px 24px rgba(20, 184, 166, 0.4);
    background: linear-gradient(135deg, #0f766e 0%, #0d9488 100%);
}

.premium-btn.btn-red {
    background: linear-gradient(135deg, #dc2626 0%, #ef4444 100%);
    color: white;
    box-shadow: 0 4px 16px rgba(239, 68, 68, 0.3);
}

.premium-btn.btn-red:hover {
    box-shadow: 0 8px 24px rgba(239, 68, 68, 0.4);
    background: linear-gradient(135deg, #b91c1c 0%, #dc2626 100%);
}

.premium-btn.btn-indigo {
    background: linear-gradient(135deg, #4f46e5 0%, #6366f1 100%);
    color: white;
    box-shadow: 0 4px 16px rgba(79, 70, 229, 0.3);
}

.premium-btn.btn-indigo:hover {
    box-shadow: 0 8px 24px rgba(79, 70, 229, 0.4);
    background: linear-gradient(135deg, #3730a3 0%, #4f46e5 100%);
}

/* Header Action Buttons (for use on gradient headers) */
.premium-header-btn {
    background: rgba(255, 255, 255, 0.15) !important;
    color: white !important;
    border: 1px solid rgba(255, 255, 255, 0.3) !important;
    backdrop-filter: blur(10px);
    transition: all 0.2s ease !important;
}

.premium-header-btn:hover {
    background: rgba(255, 255, 255, 0.25) !important;
    border-color: rgba(255, 255, 255, 0.5) !important;
    transform: translateY(-1px);
}

.premium-header-btn .mud-icon-root {
    color: white !important;
}

/* ==========================================================================
   Premium Empty State
   ========================================================================== */
.premium-empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 48px 24px;
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border-radius: var(--premium-radius-md);
    border: 2px dashed rgba(0, 0, 0, 0.1);
    text-align: center;
}

.premium-empty-state-icon {
    width: 72px;
    height: 72px;
    background: rgba(217, 119, 6, 0.1);
    border: 2px solid rgba(217, 119, 6, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #d97706;
    margin-bottom: 16px;
}

.premium-empty-state.theme-purple .premium-empty-state-icon {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.1) 0%, rgba(99, 102, 241, 0.05) 100%);
    color: #6366f1;
}

.premium-empty-state.theme-green .premium-empty-state-icon {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.1) 0%, rgba(16, 185, 129, 0.05) 100%);
    color: #10b981;
}

.premium-empty-state.theme-teal .premium-empty-state-icon {
    background: linear-gradient(135deg, rgba(20, 184, 166, 0.1) 0%, rgba(20, 184, 166, 0.05) 100%);
    color: #14b8a6;
}

.premium-empty-state-text {
    max-width: 300px;
}

/* ==========================================================================
   Premium Stats Row (Mini Stats)
   ========================================================================== */
.premium-stats-row {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    padding: 16px;
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border-radius: var(--premium-radius-md);
    border: 1px solid rgba(0, 0, 0, 0.04);
}

.premium-mini-stat {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 20px;
    border-radius: var(--premium-radius-sm);
    background: white;
    border: 1px solid rgba(0, 0, 0, 0.06);
    box-shadow: var(--premium-shadow-sm);
    transition: var(--premium-transition-fast);
    flex: 1;
    min-width: 140px;
}

.premium-mini-stat:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

.premium-mini-stat-icon {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--premium-radius-sm);
    flex-shrink: 0;
}

.premium-mini-stat-content {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.premium-mini-stat-value {
    font-size: 1.25rem;
    font-weight: 700;
    color: #125e5e;
    line-height: 1.2;
}

.premium-mini-stat-label {
    font-size: 0.75rem;
    color: #64748b;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

/* Mini Stat Color Variants */
.premium-mini-stat.stat-blue {
    border-left: 3px solid #1976D2;
}
.premium-mini-stat.stat-blue .premium-mini-stat-icon {
    background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 100%);
    color: #1976D2;
}

.premium-mini-stat.stat-green {
    border-left: 3px solid #10b981;
}
.premium-mini-stat.stat-green .premium-mini-stat-icon {
    background: linear-gradient(135deg, #dcfce7 0%, #bbf7d0 100%);
    color: #16a34a;
}

.premium-mini-stat.stat-purple {
    border-left: 3px solid #6366f1;
}
.premium-mini-stat.stat-purple .premium-mini-stat-icon {
    background: linear-gradient(135deg, #e0e7ff 0%, #c7d2fe 100%);
    color: #4f46e5;
}

.premium-mini-stat.stat-orange {
    border-left: 3px solid #f59e0b;
}
.premium-mini-stat.stat-orange .premium-mini-stat-icon {
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    color: #d97706;
}

.premium-mini-stat.stat-teal {
    border-left: 3px solid #14b8a6;
}
.premium-mini-stat.stat-teal .premium-mini-stat-icon {
    background: linear-gradient(135deg, #ccfbf1 0%, #99f6e4 100%);
    color: #0d9488;
}

.premium-mini-stat.stat-red {
    border-left: 3px solid #ef4444;
}
.premium-mini-stat.stat-red .premium-mini-stat-icon {
    background: linear-gradient(135deg, #fee2e2 0%, #fecaca 100%);
    color: #dc2626;
}

.premium-mini-stat.stat-indigo {
    border-left: 3px solid #4f46e5;
}
.premium-mini-stat.stat-indigo .premium-mini-stat-icon {
    background: linear-gradient(135deg, #e0e7ff 0%, #c7d2fe 100%);
    color: #3730a3;
}

/* ==========================================================================
   Premium Table Card
   ========================================================================== */
.premium-table-card {
    background: white;
    border-radius: var(--premium-radius-md);
    overflow: hidden;
    box-shadow: var(--premium-shadow-md);
    border: 1px solid rgba(0, 0, 0, 0.04);
}

.premium-table-card .mud-table {
    background: transparent !important;
}

.premium-table-card .mud-table-head th {
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    font-weight: 600;
    color: #475569;
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 0.5px;
    padding: 16px !important;
}

.premium-table-card .mud-table-body tr:hover {
    background: rgba(25, 118, 210, 0.02) !important;
}

.premium-table-card .mud-table-body td {
    padding: 14px 16px !important;
}

/* ==========================================================================
   Premium Filter Card
   ========================================================================== */
.premium-filter-card {
    background: white;
    border-radius: var(--premium-radius-md);
    padding: 24px;
    box-shadow: var(--premium-shadow-sm);
    border: 1px solid rgba(0, 0, 0, 0.06);
}

/* ==========================================================================
   Premium Report Cards (for accounting/reports pages)
   ========================================================================== */
.premium-report-card {
    background: white;
    border-radius: var(--premium-radius-md);
    overflow: hidden;
    box-shadow: var(--premium-shadow-sm);
    border: 1px solid rgba(0, 0, 0, 0.06);
    transition: var(--premium-transition);
    cursor: pointer;
}

.premium-report-card:hover {
    box-shadow: var(--premium-shadow-md);
    transform: translateY(-4px);
    border-color: rgba(25, 118, 210, 0.2);
}

.premium-report-card-content {
    padding: 24px;
}

.premium-report-card-icon {
    width: 56px;
    height: 56px;
    border-radius: var(--premium-radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.premium-report-card-icon.icon-blue {
    background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 100%);
    color: #1976D2;
}

.premium-report-card-icon.icon-green {
    background: linear-gradient(135deg, #dcfce7 0%, #bbf7d0 100%);
    color: #16a34a;
}

.premium-report-card-icon.icon-purple {
    background: linear-gradient(135deg, #e0e7ff 0%, #c7d2fe 100%);
    color: #4f46e5;
}

.premium-report-card-icon.icon-orange {
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    color: #d97706;
}

.premium-report-card-icon.icon-red {
    background: linear-gradient(135deg, #fee2e2 0%, #fecaca 100%);
    color: #dc2626;
}

.premium-report-card-icon.icon-teal {
    background: linear-gradient(135deg, #ccfbf1 0%, #99f6e4 100%);
    color: #0d9488;
}

.premium-report-card-icon.icon-indigo {
    background: linear-gradient(135deg, #e0e7ff 0%, #c7d2fe 100%);
    color: #3730a3;
}

/* ==========================================================================
   Premium Form Field
   ========================================================================== */
.premium-form-field {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.premium-form-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #475569;
}

.premium-form-label.label-blue { color: #1976D2; }
.premium-form-label.label-green { color: #059669; }
.premium-form-label.label-purple { color: #6366f1; }
.premium-form-label.label-teal { color: #0d9488; }

/* Premium Input Styling */
.premium-input .mud-input-outlined {
    border-radius: var(--premium-radius-sm) !important;
}

.premium-input .mud-input-outlined:hover {
    border-color: #1976D2 !important;
}

.premium-input .mud-input-outlined.mud-input-focused {
    border-color: #1565C0 !important;
    box-shadow: 0 0 0 3px rgba(25, 118, 210, 0.15) !important;
}

/* ==========================================================================
   Premium Selector (Quarry Select, etc.)
   ========================================================================== */
.premium-selector-wrapper {
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-width: 250px;
}

.premium-selector-label {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.75rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.9);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.premium-selector .mud-input-outlined {
    background: rgba(255, 255, 255, 0.95);
    border-radius: var(--premium-radius-sm) !important;
}

/* ==========================================================================
   Premium Info Panel
   ========================================================================== */
.premium-info-panel {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    padding: 16px 20px;
    background: linear-gradient(135deg, rgba(25, 118, 210, 0.05) 0%, rgba(25, 118, 210, 0.02) 100%);
    border-radius: var(--premium-radius-sm);
    border: 1px solid rgba(25, 118, 210, 0.1);
}

.premium-info-panel.theme-green {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.05) 0%, rgba(16, 185, 129, 0.02) 100%);
    border-color: rgba(16, 185, 129, 0.1);
}

.premium-info-panel.theme-purple {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.05) 0%, rgba(99, 102, 241, 0.02) 100%);
    border-color: rgba(99, 102, 241, 0.1);
}

.premium-info-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.875rem;
}

.premium-info-item .mud-icon-root {
    color: #1976D2;
}

.premium-info-label {
    color: #6b7280;
    font-weight: 500;
}

.premium-info-value {
    color: #1f2937;
    font-weight: 600;
}

/* ==========================================================================
   Premium Expansion Panels
   ========================================================================== */
.premium-panels .mud-expand-panel {
    border-radius: var(--premium-radius-sm) !important;
    margin-bottom: 12px;
    border: 1px solid rgba(0, 0, 0, 0.06) !important;
    overflow: hidden;
    box-shadow: var(--premium-shadow-sm);
}

.premium-panels .mud-expand-panel-header {
    padding: 16px 20px;
    font-weight: 600;
}

.premium-panels .mud-expand-panel-content {
    padding: 20px;
    background: #fafafa;
}

/* ==========================================================================
   Responsive Adjustments
   ========================================================================== */
@media (max-width: 960px) {
    .premium-header-content {
        flex-direction: column;
        align-items: flex-start;
        text-align: left;
        padding: 20px;
        gap: 12px;
    }

    .premium-header-left {
        /* Keep icon + title side by side on tablet */
        flex-direction: row;
        align-items: center;
    }

    .premium-header-actions {
        width: 100%;
    }

    .premium-selector-wrapper {
        width: 100%;
        min-width: auto;
    }

    .premium-selector-label {
        justify-content: flex-start;
    }

    .premium-section-header {
        padding: 24px;
    }

    .premium-section-header-content {
        flex-direction: column;
        text-align: center;
    }

    .premium-section-body {
        padding: 20px;
    }

    .premium-chips-container {
        justify-content: center;
    }

    .premium-stats-row {
        padding: 12px;
        gap: 8px;
    }

    .premium-mini-stat {
        padding: 12px 16px;
        min-width: calc(50% - 8px);
    }
}

@media (max-width: 600px) {
    .premium-header-content {
        padding: 14px 16px;
        gap: 10px;
    }

    .premium-header-left {
        gap: 12px;
    }

    .premium-icon-wrapper {
        width: 44px;
        height: 44px;
        flex-shrink: 0;
    }

    .premium-header-text .premium-title {
        font-size: 1.05rem !important;
        line-height: 1.3 !important;
        word-break: break-word;
    }

    .premium-header-text .premium-subtitle {
        font-size: 0.72rem !important;
    }

    /* Buttons: share space equally in a row — don't go full-width */
    .premium-btn {
        flex: 1 1 0;
        width: auto;
        padding: 10px 12px;
        font-size: 0.8rem;
        min-width: 0;
    }

    .premium-btn span {
        white-space: nowrap;
    }

    .premium-section-header {
        padding: 20px;
    }

    .premium-section-body {
        padding: 16px;
    }

    .premium-chip {
        flex: 1 1 calc(50% - 6px);
        justify-content: center;
        padding: 8px 14px;
        font-size: 0.8rem;
    }

    .premium-mini-stat {
        flex: 1 1 100%;
    }

    .premium-empty-state {
        padding: 32px 20px;
    }

    .premium-empty-state-icon {
        width: 56px;
        height: 56px;
    }
}
/* ==========================================================================
   Additional Premium Utility Classes
   ========================================================================== */
.premium-info-card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 20px;
    background: linear-gradient(135deg, rgba(25, 118, 210, 0.08) 0%, rgba(25, 118, 210, 0.03) 100%);
    border-radius: 12px;
    border: 1px solid rgba(25, 118, 210, 0.2);
}

.premium-warning-card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 20px;
    background: linear-gradient(135deg, rgba(255, 152, 0, 0.08) 0%, rgba(255, 152, 0, 0.03) 100%);
    border-radius: 12px;
    border: 1px solid rgba(255, 152, 0, 0.3);
}

.premium-pending-changes-card {
    padding: 16px 20px;
    background: linear-gradient(90deg, rgba(76, 175, 80, 0.1) 0%, rgba(76, 175, 80, 0.05) 100%);
    border-radius: 12px;
    border: 1px dashed rgba(76, 175, 80, 0.4);
}

.premium-action-card {
    border-radius: 16px;
    border: 1px solid rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    background: white;
}

.premium-action-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

.premium-action-icon {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.premium-action-icon.export-icon {
    background: linear-gradient(135deg, rgba(76, 175, 80, 0.15) 0%, rgba(76, 175, 80, 0.05) 100%);
    color: #4CAF50;
}

.premium-action-icon.import-icon {
    background: linear-gradient(135deg, rgba(25, 118, 210, 0.15) 0%, rgba(25, 118, 210, 0.05) 100%);
    color: #1976D2;
}

/* ==========================================================================
   Premium Header Selector (for page header quarry/date selectors)
   ========================================================================== */
.premium-header-selector {
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-width: 200px;
}

.premium-header-selector .selector-label {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: rgba(255, 255, 255, 0.9);
}

.premium-header-selector .selector-input {
    background: rgba(255, 255, 255, 0.15);
    border-radius: var(--premium-radius-sm);
}

.premium-header-selector .selector-input .mud-input-control-input-container {
    background: rgba(255, 255, 255, 0.1);
    border-radius: var(--premium-radius-sm);
}

.premium-header-selector .selector-input .mud-select-input {
    color: white !important;
}

/* ==========================================================================
   Premium Field Wrapper (form fields with labels)
   ========================================================================== */
.premium-field-wrapper {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.premium-field-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #475569;
}

.premium-field-label.label-blue { color: #1976D2; }
.premium-field-label.label-green { color: #059669; }
.premium-field-label.label-purple { color: #6366f1; }
.premium-field-label.label-teal { color: #0d9488; }
.premium-field-label.label-orange { color: #ea580c; }
.premium-field-label.label-red { color: #dc2626; }

/* ==========================================================================
   Premium Table Header (title + action buttons)
   ========================================================================== */
.premium-table-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px;
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.premium-table-header .table-title {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #125e5e;
}

.premium-table-header .table-title .mud-icon-root {
    color: #64748b;
}

.premium-table-header .table-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

/* ==========================================================================
   Premium Totals Row (footer totals for tables)
   ========================================================================== */
.premium-totals-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 24px;
    margin-top: 16px;
    border-radius: var(--premium-radius-sm);
    background: linear-gradient(135deg, rgba(25, 118, 210, 0.08) 0%, rgba(25, 118, 210, 0.04) 100%);
    border: 1px solid rgba(25, 118, 210, 0.15);
}

.premium-totals-row .totals-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    color: #475569;
    text-transform: uppercase;
    font-size: 0.875rem;
    letter-spacing: 0.3px;
}

.premium-totals-row .totals-value {
    font-size: 1.25rem;
    font-weight: 700;
    color: #1976D2;
}

/* Theme variants for totals row */
.premium-totals-row.totals-green {
    background: linear-gradient(135deg, rgba(76, 175, 80, 0.1) 0%, rgba(76, 175, 80, 0.05) 100%);
    border-color: rgba(76, 175, 80, 0.2);
}

.premium-totals-row.totals-green .totals-value {
    color: #2E7D32;
}

.premium-totals-row.totals-orange {
    background: linear-gradient(135deg, rgba(255, 152, 0, 0.1) 0%, rgba(255, 152, 0, 0.05) 100%);
    border-color: rgba(255, 152, 0, 0.2);
}

.premium-totals-row.totals-orange .totals-value {
    color: #E65100;
}

/* ==========================================================================
   Premium Button Variants (outline styles)
   ========================================================================== */
.premium-btn.btn-outline-red {
    background: white;
    color: #dc2626;
    border: 1.5px solid rgba(220, 38, 38, 0.3);
}

.premium-btn.btn-outline-red:hover {
    background: rgba(220, 38, 38, 0.08);
    border-color: #dc2626;
}

.premium-btn.btn-outline-green {
    background: white;
    color: #059669;
    border: 1.5px solid rgba(5, 150, 105, 0.3);
}

.premium-btn.btn-outline-green:hover {
    background: rgba(5, 150, 105, 0.08);
    border-color: #059669;
}

.premium-btn.btn-outline-blue {
    background: white;
    color: #1976D2;
    border: 1.5px solid rgba(25, 118, 210, 0.3);
}

.premium-btn.btn-outline-blue:hover {
    background: rgba(25, 118, 210, 0.08);
    border-color: #1976D2;
}

.premium-btn.btn-sm {
    padding: 8px 16px;
    font-size: 0.8rem;
    gap: 6px;
}

/* Premium data table styling */
.premium-data-table {
    background: transparent !important;
}