/**
 * MultiWare Engine - Reports Page Styles
 *
 * @package    MultiWareEngine
 * @subpackage Assets/CSS
 * @since      1.0.0
 */

/* ==========================================================================
   CSS Variables
   ========================================================================== */

:root {
    --mw-primary: #6366f1;
    --mw-primary-light: #818cf8;
    --mw-primary-dark: #4f46e5;
    --mw-primary-glow: rgba(99, 102, 241, 0.3);
    
    --mw-purple: #8b5cf6;
    --mw-purple-light: #a78bfa;
    --mw-purple-bg: rgba(139, 92, 246, 0.1);
    
    --mw-success: #10b981;
    --mw-success-light: #34d399;
    --mw-success-bg: rgba(16, 185, 129, 0.1);
    
    --mw-warning: #f59e0b;
    --mw-warning-light: #fbbf24;
    --mw-warning-bg: rgba(245, 158, 11, 0.1);
    
    --mw-danger: #ef4444;
    --mw-danger-light: #f87171;
    --mw-danger-bg: rgba(239, 68, 68, 0.1);
    
    --mw-info: #3b82f6;
    --mw-info-light: #60a5fa;
    --mw-info-bg: rgba(59, 130, 246, 0.1);
    
    --mw-cyan: #06b6d4;
    --mw-cyan-light: #22d3ee;
    --mw-cyan-bg: rgba(6, 182, 212, 0.1);
    
    --mw-dark: #1e293b;
    --mw-dark-lighter: #334155;
    --mw-gray: #64748b;
    --mw-gray-light: #94a3b8;
    --mw-border: #e2e8f0;
    --mw-bg: #f8fafc;
    --mw-white: #ffffff;
    
    --mw-gradient-primary: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    --mw-gradient-success: linear-gradient(135deg, #10b981 0%, #34d399 100%);
    --mw-gradient-warning: linear-gradient(135deg, #f59e0b 0%, #fbbf24 100%);
    --mw-gradient-danger: linear-gradient(135deg, #ef4444 0%, #f87171 100%);
    --mw-gradient-info: linear-gradient(135deg, #3b82f6 0%, #60a5fa 100%);
    --mw-gradient-cyan: linear-gradient(135deg, #06b6d4 0%, #22d3ee 100%);
    --mw-gradient-dark: linear-gradient(135deg, #1e293b 0%, #334155 100%);
    --mw-gradient-purple: linear-gradient(135deg, #8b5cf6 0%, #a78bfa 100%);
    
    --mw-shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --mw-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --mw-shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --mw-shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    
    --mw-font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --mw-transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    
    --mw-radius-sm: 8px;
    --mw-radius: 12px;
    --mw-radius-lg: 16px;
    --mw-radius-xl: 24px;
}

/* ==========================================================================
   Page Container
   ========================================================================== */

.multiware-reports {
    font-family: var(--mw-font);
    background: var(--mw-bg);
    margin-left: -20px;
    margin-right: -20px;
    margin-top: -10px;
    padding: 0;
    min-height: 100vh;
}

.multiware-reports > h1 {
    display: none;
}

/* ==========================================================================
   Page Header
   ========================================================================== */

.mw-page-header {
    background: var(--mw-gradient-dark);
    padding: 32px 40px 60px;
    position: relative;
    overflow: hidden;
}

.mw-reports-header::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.25) 0%, transparent 70%);
    border-radius: 50%;
}

.mw-reports-header::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: 10%;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(139, 92, 246, 0.2) 0%, transparent 70%);
    border-radius: 50%;
}

.mw-header-content {
    position: relative;
    z-index: 1;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.mw-header-left h2 {
    color: var(--mw-white);
    font-size: 26px;
    font-weight: 700;
    margin: 0 0 8px 0;
    display: flex;
    align-items: center;
    gap: 12px;
}

.mw-header-left h2 .dashicons {
    font-size: 32px;
    width: 32px;
    height: 32px;
    background: var(--mw-gradient-primary);
    border-radius: var(--mw-radius);
    padding: 8px;
}

.mw-page-subtitle {
    color: var(--mw-gray-light);
    font-size: 14px;
    margin: 0;
}

.mw-header-actions {
    display: flex;
    gap: 12px;
}

/* ==========================================================================
   Report Tabs
   ========================================================================== */

.mw-report-tabs {
    display: flex;
    gap: 8px;
    padding: 0 40px;
    margin-top: -20px;
    position: relative;
    z-index: 10;
    margin-bottom: 24px;
    flex-wrap: wrap;
}

.mw-report-tab {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 24px;
    background: var(--mw-white);
    border: 1px solid var(--mw-border);
    border-radius: var(--mw-radius);
    font-size: 14px;
    font-weight: 500;
    color: var(--mw-gray);
    text-decoration: none;
    transition: var(--mw-transition);
    box-shadow: var(--mw-shadow-sm);
}

.mw-report-tab .dashicons {
    font-size: 18px;
    width: 18px;
    height: 18px;
}

.mw-report-tab:hover {
    border-color: var(--mw-primary);
    color: var(--mw-primary);
    transform: translateY(-2px);
    box-shadow: var(--mw-shadow);
}

.mw-report-tab.active {
    background: var(--mw-gradient-primary);
    border-color: var(--mw-primary);
    color: var(--mw-white);
    box-shadow: var(--mw-shadow-md);
}

/* ==========================================================================
   Filter Bar
   ========================================================================== */

.mw-filter-bar {
    background: var(--mw-white);
    margin: 0 40px 24px;
    padding: 20px 24px;
    border-radius: var(--mw-radius-lg);
    box-shadow: var(--mw-shadow);
    border: 1px solid var(--mw-border);
}

.mw-filter-form {
    display: flex;
    align-items: center;
    gap: 24px;
    flex-wrap: wrap;
}

.mw-filter-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.mw-filter-label {
    font-size: 12px;
    font-weight: 600;
    color: var(--mw-gray);
    display: flex;
    align-items: center;
    gap: 6px;
}

.mw-filter-label .dashicons {
    font-size: 14px;
    width: 14px;
    height: 14px;
}

.mw-date-range {
    display: flex;
    align-items: center;
    gap: 12px;
}

.mw-date-separator {
    color: var(--mw-gray-light);
    font-size: 13px;
}

.mw-filter-input {
    padding: 10px 14px;
    border: 1px solid var(--mw-border);
    border-radius: var(--mw-radius-sm);
    font-size: 14px;
    font-family: var(--mw-font);
    color: var(--mw-dark);
    background: var(--mw-white);
    transition: var(--mw-transition);
}

.mw-filter-input:focus {
    outline: none;
    border-color: var(--mw-primary);
    box-shadow: 0 0 0 3px var(--mw-primary-glow);
}

.mw-quick-filters {
    display: flex;
    gap: 8px;
}

.mw-quick-filter {
    padding: 8px 16px;
    background: var(--mw-bg);
    border: 1px solid var(--mw-border);
    border-radius: 50px;
    font-size: 12px;
    font-weight: 500;
    color: var(--mw-gray);
    cursor: pointer;
    transition: var(--mw-transition);
    font-family: var(--mw-font);
}

.mw-quick-filter:hover,
.mw-quick-filter.active {
    background: var(--mw-primary);
    border-color: var(--mw-primary);
    color: var(--mw-white);
}

.mw-filter-actions {
    margin-left: auto;
}

/* ==========================================================================
   Health Score Banner
   ========================================================================== */

.mw-health-banner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
    margin: 0 40px 24px;
    padding: 32px 40px;
    border-radius: var(--mw-radius-xl);
    box-shadow: var(--mw-shadow-lg);
    position: relative;
    overflow: hidden;
}

.mw-health-banner::before {
    content: '';
    position: absolute;
    top: -100%;
    right: -50%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.15) 0%, transparent 60%);
    border-radius: 50%;
}

.mw-health-score {
    display: flex;
    align-items: center;
    gap: 24px;
    position: relative;
    z-index: 1;
}

.mw-health-ring {
    position: relative;
    width: 100px;
    height: 100px;
}

.mw-health-ring svg {
    transform: rotate(-90deg);
    width: 100%;
    height: 100%;
}

.mw-ring-bg {
    fill: none;
    stroke: rgba(255, 255, 255, 0.1);
    stroke-width: 10;
}

.mw-ring-progress {
    fill: none;
    stroke: url(#healthGradient);
    stroke-width: 10;
    stroke-linecap: round;
    stroke: var(--mw-success);
    transition: stroke-dasharray 1s ease-in-out;
}

.mw-health-value {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 22px;
    font-weight: 700;
    color: var(--mw-white);
}

.mw-health-info h3 {
    color: var(--mw-white);
    font-size: 18px;
    font-weight: 600;
    margin: 0 0 6px 0;
}

.mw-health-info p {
    color: var(--mw-gray-light);
    font-size: 13px;
    margin: 0;
}

.mw-health-metrics {
    display: flex;
    gap: 32px;
    position: relative;
    z-index: 1;
}

.mw-health-metric {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    min-width: 80px;
}

.mw-metric-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mw-metric-icon .dashicons {
    font-size: 20px;
    width: 20px;
    height: 20px;
    color: var(--mw-white);
}

.mw-metric-icon.success { background: var(--mw-gradient-success); }
.mw-metric-icon.warning { background: var(--mw-gradient-warning); }
.mw-metric-icon.danger { background: var(--mw-gradient-danger); }
.mw-metric-icon.info { background: var(--mw-gradient-info); }

.mw-metric-value {
    font-size: 22px;
    font-weight: 700;
    color: var(--mw-white);
}

.mw-metric-label {
    font-size: 11px;
    color: var(--mw-gray-light);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    text-align: center;
}

/* ==========================================================================
   Stats Grid
   ========================================================================== */

.mw-stats-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    padding: 0 40px;
    margin-bottom: 24px;
}

.mw-stats-6 {
    grid-template-columns: repeat(6, 1fr);
}

.mw-stat-card {
    background: var(--mw-white);
    border-radius: var(--mw-radius-lg);
    padding: 20px 24px;
    box-shadow: var(--mw-shadow);
    display: flex;
    align-items: center;
    gap: 16px;
    transition: var(--mw-transition);
    border: 1px solid var(--mw-border);
}

.mw-stat-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--mw-shadow-lg);
}

.mw-stat-icon {
    width: 52px;
    height: 52px;
    border-radius: var(--mw-radius);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.mw-stat-icon .dashicons {
    font-size: 26px;
    width: 26px;
    height: 26px;
    color: var(--mw-white);
}

.mw-stat-primary .mw-stat-icon { background: var(--mw-gradient-primary); }
.mw-stat-purple .mw-stat-icon { background: var(--mw-gradient-purple); }
.mw-stat-success .mw-stat-icon { background: var(--mw-gradient-success); }
.mw-stat-warning .mw-stat-icon { background: var(--mw-gradient-warning); }
.mw-stat-danger .mw-stat-icon { background: var(--mw-gradient-danger); }
.mw-stat-info .mw-stat-icon { background: var(--mw-gradient-info); }
.mw-stat-cyan .mw-stat-icon { background: var(--mw-gradient-cyan); }

.mw-stat-value {
    font-size: 24px;
    font-weight: 700;
    color: var(--mw-dark);
    line-height: 1.2;
}

.mw-stat-label {
    font-size: 12px;
    color: var(--mw-gray);
    font-weight: 500;
}

/* ==========================================================================
   Charts Grid
   ========================================================================== */

.mw-charts-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    padding: 0 40px;
    margin-bottom: 24px;
}

.mw-chart-card {
    background: var(--mw-white);
    border-radius: var(--mw-radius-lg);
    box-shadow: var(--mw-shadow);
    border: 1px solid var(--mw-border);
    overflow: hidden;
}

.mw-chart-header {
    padding: 20px 24px;
    border-bottom: 1px solid var(--mw-border);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.mw-chart-header h3 {
    font-size: 16px;
    font-weight: 600;
    color: var(--mw-dark);
    margin: 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.mw-chart-header h3 .dashicons {
    color: var(--mw-primary);
    font-size: 20px;
    width: 20px;
    height: 20px;
}

.mw-chart-actions {
    display: flex;
    gap: 8px;
}

.mw-chart-btn {
    padding: 6px 14px;
    background: var(--mw-bg);
    border: 1px solid var(--mw-border);
    border-radius: 50px;
    font-size: 12px;
    font-weight: 500;
    color: var(--mw-gray);
    cursor: pointer;
    transition: var(--mw-transition);
    font-family: var(--mw-font);
}

.mw-chart-btn:hover,
.mw-chart-btn.active {
    background: var(--mw-primary);
    border-color: var(--mw-primary);
    color: var(--mw-white);
}

.mw-chart-select {
    padding: 6px 12px;
    border: 1px solid var(--mw-border);
    border-radius: var(--mw-radius-sm);
    font-size: 12px;
    font-family: var(--mw-font);
    color: var(--mw-dark);
    background: var(--mw-bg);
}

.mw-chart-body {
    padding: 24px;
}

/* ==========================================================================
   Content Grid (Activity & Insights)
   ========================================================================== */

.mw-content-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    padding: 0 40px;
    margin-bottom: 24px;
}

.mw-card {
    background: var(--mw-white);
    border-radius: var(--mw-radius-lg);
    box-shadow: var(--mw-shadow);
    border: 1px solid var(--mw-border);
    overflow: hidden;
    margin: 0 40px 24px;
}

.mw-card-header {
    padding: 20px 24px;
    border-bottom: 1px solid var(--mw-border);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.mw-card-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--mw-dark);
    margin: 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.mw-card-title .dashicons {
    color: var(--mw-primary);
    font-size: 20px;
    width: 20px;
    height: 20px;
}

.mw-card-body {
    padding: 24px;
}

/* AI Badge */
.mw-ai-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    background: linear-gradient(135deg, #8b5cf6 0%, #6366f1 100%);
    border-radius: 50px;
    font-size: 11px;
    font-weight: 600;
    color: var(--mw-white);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.mw-ai-badge .dashicons {
    font-size: 12px;
    width: 12px;
    height: 12px;
}

/* Activity List */
.mw-activity-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.mw-activity-item {
    display: flex;
    align-items: center;
    gap: 16px;
}

.mw-activity-icon {
    width: 44px;
    height: 44px;
    border-radius: var(--mw-radius);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.mw-activity-icon .dashicons {
    font-size: 22px;
    width: 22px;
    height: 22px;
    color: var(--mw-white);
}

.mw-activity-icon.receiving { background: var(--mw-gradient-success); }
.mw-activity-icon.transfers { background: var(--mw-gradient-cyan); }
.mw-activity-icon.reservations { background: var(--mw-gradient-purple); }

.mw-activity-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.mw-activity-label {
    font-size: 13px;
    color: var(--mw-gray);
}

.mw-activity-value {
    font-size: 18px;
    font-weight: 700;
    color: var(--mw-dark);
}

.mw-activity-bar {
    width: 100px;
    height: 8px;
    background: var(--mw-bg);
    border-radius: 50px;
    overflow: hidden;
}

.mw-bar-fill {
    height: 100%;
    border-radius: 50px;
    transition: width 1s ease-out;
}

.mw-bar-fill.success { background: var(--mw-gradient-success); }
.mw-bar-fill.info { background: var(--mw-gradient-cyan); }
.mw-bar-fill.purple { background: var(--mw-gradient-purple); }

/* Insights List */
.mw-insights-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.mw-insight {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 16px;
    border-radius: var(--mw-radius);
}

.mw-insight.success { background: var(--mw-success-bg); }
.mw-insight.warning { background: var(--mw-warning-bg); }
.mw-insight.danger { background: var(--mw-danger-bg); }
.mw-insight.info { background: var(--mw-info-bg); }

.mw-insight-icon {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.mw-insight.success .mw-insight-icon { background: var(--mw-success); }
.mw-insight.warning .mw-insight-icon { background: var(--mw-warning); }
.mw-insight.danger .mw-insight-icon { background: var(--mw-danger); }
.mw-insight.info .mw-insight-icon { background: var(--mw-info); }

.mw-insight-icon .dashicons {
    font-size: 16px;
    width: 16px;
    height: 16px;
    color: var(--mw-white);
}

.mw-insight-content {
    font-size: 13px;
    color: var(--mw-dark);
    line-height: 1.5;
}

.mw-insight-content strong {
    display: block;
    margin-bottom: 4px;
}

/* ==========================================================================
   Quick Actions Bar
   ========================================================================== */

.mw-quick-actions-bar {
    margin: 0 40px 40px;
    padding: 24px;
    background: var(--mw-white);
    border-radius: var(--mw-radius-lg);
    box-shadow: var(--mw-shadow);
    border: 1px solid var(--mw-border);
}

.mw-quick-actions-bar h3 {
    font-size: 14px;
    font-weight: 600;
    color: var(--mw-gray);
    margin: 0 0 16px 0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.mw-quick-actions {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.mw-quick-action {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 24px;
    background: var(--mw-bg);
    border: 1px solid var(--mw-border);
    border-radius: var(--mw-radius);
    text-decoration: none;
    transition: var(--mw-transition);
    flex: 1;
    min-width: 200px;
}

.mw-quick-action:hover {
    background: var(--mw-white);
    border-color: var(--mw-primary);
    transform: translateY(-2px);
    box-shadow: var(--mw-shadow);
}

.mw-qa-icon {
    width: 40px;
    height: 40px;
    border-radius: var(--mw-radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
}

.mw-qa-icon .dashicons {
    font-size: 20px;
    width: 20px;
    height: 20px;
    color: var(--mw-white);
}

.mw-qa-icon.success { background: var(--mw-gradient-success); }
.mw-qa-icon.warning { background: var(--mw-gradient-warning); }
.mw-qa-icon.danger { background: var(--mw-gradient-danger); }
.mw-qa-icon.info { background: var(--mw-gradient-cyan); }

.mw-qa-text {
    font-size: 14px;
    font-weight: 500;
    color: var(--mw-dark);
}

/* ==========================================================================
   Buttons
   ========================================================================== */

.mw-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    border-radius: var(--mw-radius);
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    cursor: pointer;
    transition: var(--mw-transition);
    border: none;
    font-family: var(--mw-font);
}

.mw-btn-sm {
    padding: 10px 16px;
    font-size: 13px;
}

.mw-btn-primary {
    background: var(--mw-gradient-primary);
    color: var(--mw-white);
    box-shadow: var(--mw-shadow);
}

.mw-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--mw-shadow-md);
    color: var(--mw-white);
}

.mw-btn-outline {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: var(--mw-white);
}

.mw-btn-outline:hover {
    background: rgba(255, 255, 255, 0.2);
    color: var(--mw-white);
}

.mw-btn .dashicons {
    font-size: 18px;
    width: 18px;
    height: 18px;
}

/* ==========================================================================
   Animations
   ========================================================================== */

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.mw-animate-in {
    animation: fadeInUp 0.5s ease-out forwards;
}

.mw-animate-in:nth-child(1) { animation-delay: 0.05s; }
.mw-animate-in:nth-child(2) { animation-delay: 0.1s; }
.mw-animate-in:nth-child(3) { animation-delay: 0.15s; }
.mw-animate-in:nth-child(4) { animation-delay: 0.2s; }
.mw-animate-in:nth-child(5) { animation-delay: 0.25s; }
.mw-animate-in:nth-child(6) { animation-delay: 0.3s; }

/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 1600px) {
    .mw-stats-6 {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 1200px) {
    .mw-stats-6 {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .mw-charts-grid,
    .mw-content-grid {
        grid-template-columns: 1fr;
    }
    
    .mw-health-banner {
        flex-direction: column;
        gap: 32px;
        text-align: center;
    }
    
    .mw-health-score {
        flex-direction: column;
    }
}

@media (max-width: 782px) {
    .mw-page-header {
        padding: 24px 20px;
    }
    
    .mw-header-content {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .mw-report-tabs {
        padding: 0 20px;
        margin-top: -15px;
        overflow-x: auto;
        flex-wrap: nowrap;
        -webkit-overflow-scrolling: touch;
    }
    
    .mw-report-tab {
        flex-shrink: 0;
        padding: 12px 16px;
    }
    
    .mw-filter-bar {
        margin: 0 20px 20px;
    }
    
    .mw-filter-form {
        flex-direction: column;
        align-items: stretch;
    }
    
    .mw-quick-filters {
        justify-content: flex-start;
    }
    
    .mw-filter-actions {
        margin-left: 0;
    }
    
    .mw-health-banner {
        margin: 0 20px 20px;
        padding: 24px 20px;
    }
    
    .mw-health-metrics {
        flex-wrap: wrap;
        justify-content: center;
        gap: 20px;
    }
    
    .mw-stats-row,
    .mw-charts-grid,
    .mw-content-grid {
        padding: 0 20px;
    }
    
    .mw-stats-6 {
        grid-template-columns: 1fr;
    }
    
    .mw-quick-actions-bar {
        margin: 0 20px 20px;
    }
    
    .mw-quick-action {
        min-width: 100%;
    }
}

/* ==========================================================================
   Variance Report Specific Styles
   ========================================================================== */

.mw-accuracy-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: var(--mw-white);
    margin: 0 40px 24px;
    padding: 32px;
    border-radius: var(--mw-radius-lg);
    box-shadow: var(--mw-shadow);
    border: 1px solid var(--mw-border);
    gap: 40px;
}

.mw-accuracy-gauge {
    display: flex;
    align-items: center;
    gap: 24px;
}

.mw-gauge-ring {
    position: relative;
    width: 100px;
    height: 100px;
}

.mw-gauge-ring svg {
    transform: rotate(-90deg);
    width: 100%;
    height: 100%;
}

.mw-gauge-bg {
    fill: none;
    stroke: var(--mw-border);
    stroke-width: 10;
}

.mw-gauge-progress {
    fill: none;
    stroke-width: 10;
    stroke-linecap: round;
    transition: stroke-dasharray 1s ease-in-out;
}

.mw-gauge-value {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 20px;
    font-weight: 700;
    color: var(--mw-dark);
}

.mw-accuracy-info h3 {
    font-size: 16px;
    font-weight: 600;
    color: var(--mw-dark);
    margin: 0 0 6px 0;
}

.mw-accuracy-info p {
    font-size: 13px;
    color: var(--mw-gray);
    margin: 0 0 12px 0;
}

.mw-accuracy-badge {
    display: inline-flex;
    padding: 6px 14px;
    border-radius: 50px;
    font-size: 12px;
    font-weight: 600;
}

.mw-accuracy-badge.success { background: var(--mw-success-bg); color: var(--mw-success); }
.mw-accuracy-badge.warning { background: var(--mw-warning-bg); color: var(--mw-warning); }
.mw-accuracy-badge.danger { background: var(--mw-danger-bg); color: var(--mw-danger); }

.mw-variance-breakdown {
    flex: 1;
    max-width: 400px;
}

.mw-variance-breakdown h4 {
    font-size: 14px;
    font-weight: 600;
    color: var(--mw-dark);
    margin: 0 0 16px 0;
}

.mw-breakdown-bars {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.mw-breakdown-item {
    display: flex;
    align-items: center;
    gap: 12px;
}

.mw-breakdown-label {
    width: 80px;
    font-size: 13px;
    color: var(--mw-gray);
}

.mw-breakdown-bar {
    flex: 1;
    height: 10px;
    background: var(--mw-bg);
    border-radius: 50px;
    overflow: hidden;
}

.mw-bar-fill.danger { background: var(--mw-gradient-danger); }

.mw-breakdown-value {
    font-size: 13px;
    font-weight: 600;
    color: var(--mw-dark);
    width: 50px;
    text-align: right;
}

/* Table Styles */
.mw-table-wrapper {
    overflow-x: auto;
}

.mw-table {
    width: 100%;
    border-collapse: collapse;
}

.mw-table th {
    text-align: left;
    padding: 14px 16px;
    font-size: 11px;
    font-weight: 600;
    color: var(--mw-gray);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    background: var(--mw-bg);
    border-bottom: 1px solid var(--mw-border);
    white-space: nowrap;
}

.mw-table td {
    padding: 14px 16px;
    border-bottom: 1px solid var(--mw-border);
    font-size: 14px;
    color: var(--mw-dark);
    vertical-align: middle;
}

.mw-table tr:last-child td {
    border-bottom: none;
}

.mw-table-hover tbody tr:hover td {
    background: rgba(99, 102, 241, 0.02);
}

.mw-text-center {
    text-align: center;
}

.mw-date-cell {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.mw-date-primary {
    font-weight: 500;
    color: var(--mw-dark);
}

.mw-date-secondary {
    font-size: 12px;
    color: var(--mw-gray);
}

.mw-product-cell {
    display: flex;
    align-items: center;
    gap: 12px;
}

.mw-product-thumb {
    width: 40px;
    height: 40px;
    border-radius: var(--mw-radius-sm);
    overflow: hidden;
    background: var(--mw-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.mw-product-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.mw-product-thumb .dashicons {
    color: var(--mw-gray-light);
    font-size: 20px;
}

.mw-product-name {
    font-weight: 600;
    color: var(--mw-dark);
}

.mw-warehouse-name {
    font-weight: 500;
    color: var(--mw-dark);
}

.mw-qty-value {
    font-weight: 600;
    color: var(--mw-dark);
}

.mw-variance-badge {
    display: inline-flex;
    padding: 6px 12px;
    border-radius: 50px;
    font-size: 12px;
    font-weight: 600;
}

.mw-variance-badge.positive { background: var(--mw-success-bg); color: var(--mw-success); }
.mw-variance-badge.negative { background: var(--mw-danger-bg); color: var(--mw-danger); }
.mw-variance-badge.mw-variance-significant {
    box-shadow: 0 0 0 1px var(--mw-danger) inset;
    font-weight: 700;
}

.mw-count-badge {
    background: var(--mw-info-bg);
    color: var(--mw-info);
    padding: 6px 12px;
    border-radius: 50px;
    font-size: 12px;
    font-weight: 600;
}

.mw-na {
    color: var(--mw-gray-light);
}

/* ==========================================================================
   Supplier Performance Specific Styles
   ========================================================================== */

.mw-performance-overview {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 60px;
    background: var(--mw-white);
    margin: 0 40px 24px;
    padding: 40px;
    border-radius: var(--mw-radius-lg);
    box-shadow: var(--mw-shadow);
    border: 1px solid var(--mw-border);
}

.mw-perf-gauge {
    position: relative;
    width: 160px;
    height: 160px;
}

.mw-donut-chart {
    transform: rotate(-90deg);
    width: 100%;
    height: 100%;
}

.mw-donut-bg {
    fill: none;
    stroke: var(--mw-border);
    stroke-width: 12;
}

.mw-donut-progress {
    fill: none;
    stroke-width: 12;
    stroke-linecap: round;
    transition: stroke-dasharray 1s ease-in-out;
}

.mw-perf-center {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
}

.mw-perf-value {
    display: block;
    font-size: 28px;
    font-weight: 700;
    color: var(--mw-dark);
}

.mw-perf-label {
    font-size: 11px;
    color: var(--mw-gray);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.mw-perf-legend {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.mw-legend-item {
    display: flex;
    align-items: center;
    gap: 12px;
}

.mw-legend-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.mw-legend-dot.success { background: var(--mw-success); }
.mw-legend-dot.danger { background: var(--mw-danger); }

.mw-legend-label {
    flex: 1;
    font-size: 13px;
    color: var(--mw-gray);
}

.mw-legend-value {
    font-size: 14px;
    font-weight: 600;
    color: var(--mw-dark);
}

/* Supplier Cell */
.mw-supplier-cell {
    display: flex;
    align-items: center;
    gap: 12px;
}

.mw-supplier-avatar {
    width: 40px;
    height: 40px;
    border-radius: var(--mw-radius-sm);
    background: var(--mw-gradient-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 600;
    color: var(--mw-white);
    flex-shrink: 0;
}

.mw-supplier-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.mw-supplier-name {
    font-weight: 600;
    color: var(--mw-dark);
    text-decoration: none;
}

.mw-supplier-name:hover {
    color: var(--mw-primary);
}

.mw-supplier-code {
    font-size: 11px;
    color: var(--mw-gray);
}

.mw-sync-value {
    font-weight: 600;
    color: var(--mw-dark);
}

.mw-sync-badge {
    display: inline-flex;
    padding: 4px 10px;
    border-radius: 50px;
    font-size: 12px;
    font-weight: 600;
}

.mw-sync-badge.success { background: var(--mw-success-bg); color: var(--mw-success); }
.mw-sync-badge.danger { background: var(--mw-danger-bg); color: var(--mw-danger); }

/* Rate Bar */
.mw-rate-container {
    display: flex;
    align-items: center;
    gap: 10px;
}

.mw-rate-bar {
    width: 80px;
    height: 8px;
    background: var(--mw-bg);
    border-radius: 50px;
    overflow: hidden;
}

.mw-rate-fill {
    height: 100%;
    border-radius: 50px;
    transition: width 1s ease-out;
}

.mw-rate-fill.excellent { background: var(--mw-gradient-success); }
.mw-rate-fill.good { background: var(--mw-gradient-warning); }
.mw-rate-fill.poor { background: var(--mw-gradient-danger); }

.mw-rate-value {
    font-size: 13px;
    font-weight: 600;
}

.mw-rate-value.excellent { color: var(--mw-success); }
.mw-rate-value.good { color: var(--mw-warning); }
.mw-rate-value.poor { color: var(--mw-danger); }

.mw-lead-time {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: var(--mw-gray);
}

.mw-lead-time .dashicons {
    font-size: 14px;
    width: 14px;
    height: 14px;
}

.mw-status-badge {
    display: inline-flex;
    padding: 6px 12px;
    border-radius: 50px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.mw-status-badge.active { background: var(--mw-success-bg); color: var(--mw-success); }
.mw-status-badge.inactive { background: var(--mw-bg); color: var(--mw-gray); }

/* ==========================================================================
   Inventory Report Specific Styles
   ========================================================================== */

.mw-inventory-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    padding: 0 40px;
    margin-bottom: 40px;
}

.mw-inventory-card {
    background: var(--mw-white);
    border-radius: var(--mw-radius-lg);
    box-shadow: var(--mw-shadow);
    border: 1px solid var(--mw-border);
    overflow: hidden;
    transition: var(--mw-transition);
}

.mw-inventory-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--mw-shadow-lg);
}

.mw-inv-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 20px;
    border-bottom: 1px solid var(--mw-border);
}

.mw-inv-icon {
    width: 44px;
    height: 44px;
    background: var(--mw-gradient-purple);
    border-radius: var(--mw-radius);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.mw-inv-icon .dashicons {
    font-size: 22px;
    width: 22px;
    height: 22px;
    color: var(--mw-white);
}

.mw-inv-title {
    flex: 1;
}

.mw-inv-title h4 {
    font-size: 15px;
    font-weight: 600;
    color: var(--mw-dark);
    margin: 0 0 4px 0;
}

.mw-inv-code {
    font-size: 11px;
    color: var(--mw-gray);
    font-family: 'SF Mono', Monaco, monospace;
    background: var(--mw-bg);
    padding: 2px 8px;
    border-radius: 4px;
}

.mw-inv-status {
    padding: 4px 10px;
    border-radius: 50px;
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.mw-inv-status.active { background: var(--mw-success-bg); color: var(--mw-success); }
.mw-inv-status.inactive { background: var(--mw-bg); color: var(--mw-gray); }

.mw-inv-metrics {
    display: flex;
    padding: 20px;
    gap: 16px;
}

.mw-inv-metric {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 10px;
}

.mw-inv-metric-icon {
    width: 36px;
    height: 36px;
    border-radius: var(--mw-radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.mw-inv-metric-icon .dashicons {
    font-size: 18px;
    width: 18px;
    height: 18px;
    color: var(--mw-white);
}

.mw-inv-metric-icon.products { background: var(--mw-gradient-primary); }
.mw-inv-metric-icon.quantity { background: var(--mw-gradient-success); }
.mw-inv-metric-icon.warning { background: var(--mw-gradient-warning); }
.mw-inv-metric-icon.success { background: var(--mw-gradient-success); }

.mw-inv-metric-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.mw-inv-metric-value {
    font-size: 16px;
    font-weight: 700;
    color: var(--mw-dark);
}

.mw-inv-metric-label {
    font-size: 11px;
    color: var(--mw-gray);
}

.mw-inv-capacity {
    padding: 16px 20px;
    background: var(--mw-bg);
    border-top: 1px solid var(--mw-border);
}

.mw-capacity-header {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: var(--mw-gray);
    margin-bottom: 8px;
}

.mw-capacity-bar {
    height: 8px;
    background: var(--mw-border);
    border-radius: 50px;
    overflow: hidden;
}

.mw-capacity-fill {
    height: 100%;
    background: var(--mw-gradient-purple);
    border-radius: 50px;
    transition: width 1s ease-out;
}

.mw-inv-footer {
    display: flex;
    justify-content: space-between;
    padding: 16px 20px;
    border-top: 1px solid var(--mw-border);
}

.mw-inv-link {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 13px;
    font-weight: 500;
    color: var(--mw-primary);
    text-decoration: none;
    transition: var(--mw-transition);
}

.mw-inv-link:hover {
    color: var(--mw-primary-dark);
}

.mw-inv-link .dashicons {
    font-size: 14px;
    width: 14px;
    height: 14px;
}

/* Empty State */
.mw-empty-state {
    text-align: center;
    padding: 80px 40px;
    margin: 0 40px 40px;
    background: var(--mw-white);
    border-radius: var(--mw-radius-lg);
    box-shadow: var(--mw-shadow);
    border: 1px solid var(--mw-border);
}

.mw-empty-icon {
    width: 100px;
    height: 100px;
    margin: 0 auto 24px;
    background: var(--mw-bg);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mw-empty-icon .dashicons {
    font-size: 48px;
    width: 48px;
    height: 48px;
    color: var(--mw-gray-light);
}

.mw-empty-title {
    font-size: 20px;
    font-weight: 600;
    color: var(--mw-dark);
    margin: 0 0 12px 0;
}

.mw-empty-desc {
    font-size: 15px;
    color: var(--mw-gray);
    margin: 0 0 28px 0;
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
}

/* Inventory Grid Responsive */
@media (max-width: 1400px) {
    .mw-inventory-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 1200px) {
    .mw-accuracy-card,
    .mw-performance-overview {
        flex-direction: column;
        gap: 24px;
        text-align: center;
    }
    
    .mw-variance-breakdown {
        max-width: 100%;
    }
}

@media (max-width: 782px) {
    .mw-inventory-grid {
        grid-template-columns: 1fr;
        padding: 0 20px;
    }
    
    .mw-accuracy-card,
    .mw-performance-overview {
        margin: 0 20px 20px;
        padding: 24px 20px;
    }
    
    .mw-card {
        margin: 0 20px 20px;
    }
    
    .mw-empty-state {
        margin: 0 20px 20px;
        padding: 60px 20px;
    }
    
    .mw-inv-metrics {
        flex-direction: column;
    }
}

/* ==========================================================================
   Enterprise Features - KPI Section
   ========================================================================== */

.mw-kpi-section {
    margin: 0 40px 24px;
    padding: 32px;
    background: linear-gradient(135deg, #1e1e2f 0%, #2d2d44 100%);
    border-radius: var(--mw-radius-xl);
    position: relative;
    overflow: hidden;
}

.mw-kpi-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.2) 0%, transparent 60%);
    border-radius: 50%;
}

.mw-section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 28px;
    position: relative;
    z-index: 1;
}

.mw-section-header h3 {
    color: var(--mw-white);
    font-size: 18px;
    font-weight: 600;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 12px;
}

.mw-section-header h3 .dashicons {
    color: var(--mw-primary-light);
    font-size: 22px;
    width: 22px;
    height: 22px;
}

.mw-enterprise-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    background: linear-gradient(135deg, #f59e0b 0%, #ef4444 100%);
    border-radius: 50px;
    font-size: 11px;
    font-weight: 700;
    color: var(--mw-white);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.mw-enterprise-badge .dashicons {
    font-size: 12px;
    width: 12px;
    height: 12px;
}

.mw-kpi-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    position: relative;
    z-index: 1;
}

.mw-kpi-card {
    background: rgba(255, 255, 255, 0.08);
    border-radius: var(--mw-radius-lg);
    padding: 24px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: var(--mw-transition);
}

.mw-kpi-card:hover {
    background: rgba(255, 255, 255, 0.12);
    transform: translateY(-4px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.mw-kpi-gauge {
    position: relative;
    width: 100px;
    height: 100px;
}

.mw-kpi-gauge svg {
    transform: rotate(-90deg);
    width: 100%;
    height: 100%;
}

.mw-gauge-bg {
    fill: none;
    stroke: rgba(255, 255, 255, 0.1);
    stroke-width: 10;
}

.mw-gauge-fill {
    fill: none;
    stroke-width: 10;
    stroke-linecap: round;
    transition: stroke-dasharray 1.5s ease-out;
}

.mw-gauge-fill.velocity {
    stroke: #3b82f6;
    filter: drop-shadow(0 0 6px rgba(59, 130, 246, 0.5));
}

.mw-gauge-fill.efficiency {
    stroke: #10b981;
    filter: drop-shadow(0 0 6px rgba(16, 185, 129, 0.5));
}

.mw-gauge-fill.health {
    stroke: #8b5cf6;
    filter: drop-shadow(0 0 6px rgba(139, 92, 246, 0.5));
}

.mw-gauge-fill.variance {
    stroke: #f59e0b;
    filter: drop-shadow(0 0 6px rgba(245, 158, 11, 0.5));
}

.mw-kpi-value {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 22px;
    font-weight: 700;
    color: var(--mw-white);
}

.mw-kpi-info {
    text-align: center;
}

.mw-kpi-info h4 {
    color: var(--mw-white);
    font-size: 14px;
    font-weight: 600;
    margin: 0 0 4px 0;
}

.mw-kpi-info p {
    color: rgba(255, 255, 255, 0.6);
    font-size: 12px;
    margin: 0;
}

/* ==========================================================================
   Extended Charts Grid
   ========================================================================== */

.mw-charts-triple {
    grid-template-columns: 2fr 1fr;
}

.mw-chart-wide {
    grid-column: span 1;
}

.mw-chart-legend-inline {
    display: flex;
    gap: 16px;
}

.mw-legend-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: var(--mw-gray);
}

.mw-legend-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

.mw-legend-dot.success { background: var(--mw-success); }
.mw-legend-dot.danger { background: var(--mw-danger); }

/* ==========================================================================
   Warehouse Capacity Section
   ========================================================================== */

.mw-capacity-section {
    margin: 0 40px 24px;
    background: var(--mw-white);
    border-radius: var(--mw-radius-lg);
    padding: 28px 32px;
    box-shadow: var(--mw-shadow);
    border: 1px solid var(--mw-border);
}

.mw-capacity-section .mw-section-header h3 {
    color: var(--mw-dark);
}

.mw-capacity-section .mw-section-header h3 .dashicons {
    color: var(--mw-primary);
}

.mw-capacity-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}

.mw-capacity-card {
    background: var(--mw-bg);
    border-radius: var(--mw-radius);
    padding: 20px;
    border: 1px solid var(--mw-border);
    transition: var(--mw-transition);
}

.mw-capacity-card:hover {
    box-shadow: var(--mw-shadow-md);
    border-color: var(--mw-primary-light);
}

.mw-capacity-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.mw-capacity-header h4 {
    font-size: 14px;
    font-weight: 600;
    color: var(--mw-dark);
    margin: 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.mw-capacity-header h4 .dashicons {
    color: var(--mw-primary);
    font-size: 18px;
    width: 18px;
    height: 18px;
}

.mw-capacity-percent {
    font-size: 13px;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 50px;
}

.mw-capacity-percent.low {
    background: var(--mw-success-bg);
    color: var(--mw-success);
}

.mw-capacity-percent.medium {
    background: var(--mw-warning-bg);
    color: var(--mw-warning);
}

.mw-capacity-percent.high {
    background: var(--mw-danger-bg);
    color: var(--mw-danger);
}

.mw-capacity-bar {
    height: 10px;
    background: rgba(0, 0, 0, 0.06);
    border-radius: 50px;
    overflow: hidden;
    margin-bottom: 12px;
}

.mw-capacity-fill {
    height: 100%;
    border-radius: 50px;
    transition: width 1s ease-out;
}

.mw-capacity-fill.low { background: var(--mw-gradient-success); }
.mw-capacity-fill.medium { background: var(--mw-gradient-warning); }
.mw-capacity-fill.high { background: var(--mw-gradient-danger); }

.mw-capacity-stats {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: var(--mw-gray);
}

.mw-capacity-stats span {
    display: flex;
    align-items: center;
    gap: 4px;
}

.mw-capacity-stats strong {
    color: var(--mw-dark);
}

/* ==========================================================================
   Chart with Stats
   ========================================================================== */

.mw-chart-with-stats {
    display: flex;
    align-items: center;
    gap: 32px;
}

.mw-donut-container {
    flex: 0 0 180px;
}

.mw-chart-stats {
    display: flex;
    flex-direction: column;
    gap: 16px;
    flex: 1;
}

.mw-chart-stat {
    display: flex;
    flex-direction: column;
    padding: 12px 16px;
    border-radius: var(--mw-radius-sm);
}

.mw-chart-stat.success { background: var(--mw-success-bg); }
.mw-chart-stat.warning { background: var(--mw-warning-bg); }
.mw-chart-stat.danger { background: var(--mw-danger-bg); }

.mw-stat-number {
    font-size: 22px;
    font-weight: 700;
    color: var(--mw-dark);
}

.mw-stat-text {
    font-size: 12px;
    color: var(--mw-gray);
    font-weight: 500;
}

.mw-chart-stat.success .mw-stat-number { color: var(--mw-success); }
.mw-chart-stat.warning .mw-stat-number { color: var(--mw-warning); }
.mw-chart-stat.danger .mw-stat-number { color: var(--mw-danger); }

/* ==========================================================================
   Loading Placeholder
   ========================================================================== */

.mw-loading-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px;
    color: var(--mw-gray);
    font-size: 13px;
    gap: 12px;
}

.mw-spin {
    animation: mw-spin 1s linear infinite;
}

@keyframes mw-spin {
    100% { transform: rotate(360deg); }
}

/* ==========================================================================
   Enterprise Responsive Adjustments
   ========================================================================== */

@media (max-width: 1400px) {
    .mw-kpi-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .mw-charts-triple {
        grid-template-columns: 1fr;
    }
    
    .mw-chart-wide {
        grid-column: span 1;
    }
}

@media (max-width: 1024px) {
    .mw-kpi-section {
        margin: 0 20px 20px;
        padding: 24px;
    }
    
    .mw-capacity-section {
        margin: 0 20px 20px;
        padding: 24px;
    }
    
    .mw-capacity-grid {
        grid-template-columns: 1fr;
    }
    
    .mw-chart-with-stats {
        flex-direction: column;
    }
    
    .mw-donut-container {
        flex: 0 0 auto;
    }
    
    .mw-chart-stats {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 12px;
    }
    
    .mw-chart-stat {
        flex: 1;
        min-width: 100px;
    }
}

@media (max-width: 782px) {
    .mw-kpi-grid {
        grid-template-columns: 1fr;
    }
    
    .mw-section-header {
        flex-direction: column;
        gap: 12px;
        align-items: flex-start;
    }
    
    .mw-kpi-card {
        flex-direction: row;
        justify-content: flex-start;
    }
    
    .mw-kpi-info {
        text-align: left;
    }
}
