/* ============================================================
   EXECUTIVE DASHBOARD - FORTUNE 100 ENTERPRISE UI SYSTEM
   ============================================================
   
   Design Principles:
   - 8px base grid with strict alignment
   - Inter/SF Pro typography with clear hierarchy
   - Muted, professional color palette
   - Soft elevations, no harsh borders
   - Calm, confident, premium aesthetic
   
============================================================ */

/* ============================================================
   DESIGN TOKENS
============================================================ */
:root {
    /* Primary Brand - Used sparingly for emphasis */
    --exec-brand-600: #1D4ED8;
    --exec-brand-500: #2563EB;
    --exec-brand-400: #3B82F6;
    --exec-brand-100: #DBEAFE;
    --exec-brand-50: #EFF6FF;
    
    /* Semantic - Muted & Professional */
    --exec-success-600: #059669;
    --exec-success-500: #10B981;
    --exec-success-100: #D1FAE5;
    --exec-success-50: #ECFDF5;
    
    --exec-warning-600: #D97706;
    --exec-warning-500: #F59E0B;
    --exec-warning-100: #FEF3C7;
    --exec-warning-50: #FFFBEB;
    
    --exec-danger-600: #DC2626;
    --exec-danger-500: #EF4444;
    --exec-danger-100: #FEE2E2;
    --exec-danger-50: #FEF2F2;
    
    --exec-info-600: #0891B2;
    --exec-info-500: #06B6D4;
    --exec-info-100: #CFFAFE;
    --exec-info-50: #ECFEFF;
    
    /* Neutral Scale - Enterprise Gray */
    --exec-gray-950: #030712;
    --exec-gray-900: #111827;
    --exec-gray-800: #1F2937;
    --exec-gray-700: #374151;
    --exec-gray-600: #4B5563;
    --exec-gray-500: #6B7280;
    --exec-gray-400: #9CA3AF;
    --exec-gray-300: #D1D5DB;
    --exec-gray-200: #E5E7EB;
    --exec-gray-100: #F3F4F6;
    --exec-gray-50: #F9FAFB;
    --exec-white: #FFFFFF;
    
    /* Spacing - 8px Grid */
    --exec-space-0: 0px;
    --exec-space-1: 4px;
    --exec-space-2: 8px;
    --exec-space-3: 12px;
    --exec-space-4: 16px;
    --exec-space-5: 20px;
    --exec-space-6: 24px;
    --exec-space-8: 32px;
    --exec-space-10: 40px;
    --exec-space-12: 48px;
    --exec-space-16: 64px;
    
    /* Typography Scale */
    --exec-text-xs: 11px;
    --exec-text-sm: 13px;
    --exec-text-base: 14px;
    --exec-text-md: 15px;
    --exec-text-lg: 16px;
    --exec-text-xl: 18px;
    --exec-text-2xl: 20px;
    --exec-text-3xl: 24px;
    --exec-text-4xl: 28px;
    --exec-text-5xl: 32px;
    
    /* Font Weights */
    --exec-font-normal: 400;
    --exec-font-medium: 500;
    --exec-font-semibold: 600;
    --exec-font-bold: 700;
    
    /* Elevation System - Soft & Subtle */
    --exec-shadow-xs: 0 1px 2px 0 rgba(0, 0, 0, 0.03);
    --exec-shadow-sm: 0 1px 3px 0 rgba(0, 0, 0, 0.04), 0 1px 2px -1px rgba(0, 0, 0, 0.04);
    --exec-shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -2px rgba(0, 0, 0, 0.04);
    --exec-shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.06), 0 4px 6px -4px rgba(0, 0, 0, 0.04);
    --exec-shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.06), 0 8px 10px -6px rgba(0, 0, 0, 0.04);
    
    /* Border Radius */
    --exec-radius-sm: 6px;
    --exec-radius-md: 8px;
    --exec-radius-lg: 10px;
    --exec-radius-xl: 12px;
    --exec-radius-2xl: 16px;
    --exec-radius-full: 9999px;
    
    /* Transitions */
    --exec-transition-fast: 120ms cubic-bezier(0.4, 0, 0.2, 1);
    --exec-transition-base: 200ms cubic-bezier(0.4, 0, 0.2, 1);
    --exec-transition-slow: 300ms cubic-bezier(0.4, 0, 0.2, 1);
}

/* ============================================================
   BASE TYPOGRAPHY & RESET
============================================================ */
.exec-dashboard {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'Segoe UI', system-ui, sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    font-feature-settings: 'cv02', 'cv03', 'cv04', 'cv11';
    color: var(--exec-gray-900);
    line-height: 1.5;
}

.exec-dashboard * {
    box-sizing: border-box;
}

/* ============================================================
   PAGE HEADER & FILTER BAR
============================================================ */
.exec-filter-bar {
    background: var(--exec-white);
    border-radius: var(--exec-radius-xl);
    padding: var(--exec-space-5) var(--exec-space-6);
    box-shadow: var(--exec-shadow-sm);
    border: 1px solid var(--exec-gray-100);
    margin-bottom: var(--exec-space-6);
}

.exec-filter-bar .filter-group {
    display: flex;
    align-items: flex-end;
    gap: var(--exec-space-4);
    flex-wrap: wrap;
}

.exec-filter-bar .filter-field {
    flex: 1;
    min-width: 160px;
    max-width: 200px;
}

.exec-filter-bar .filter-label {
    display: block;
    font-size: var(--exec-text-xs);
    font-weight: var(--exec-font-semibold);
    color: var(--exec-gray-500);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: var(--exec-space-2);
}

.exec-filter-bar .filter-input {
    width: 100%;
    height: 40px;
    padding: 0 var(--exec-space-3);
    font-size: var(--exec-text-sm);
    font-family: inherit;
    color: var(--exec-gray-900);
    background: var(--exec-gray-50);
    border: 1px solid var(--exec-gray-200);
    border-radius: var(--exec-radius-md);
    transition: all var(--exec-transition-fast);
}

.exec-filter-bar .filter-input:hover {
    border-color: var(--exec-gray-300);
}

.exec-filter-bar .filter-input:focus {
    outline: none;
    background: var(--exec-white);
    border-color: var(--exec-brand-400);
    box-shadow: 0 0 0 3px var(--exec-brand-50);
}

.exec-filter-bar .filter-btn {
    height: 40px;
    padding: 0 var(--exec-space-5);
    font-size: var(--exec-text-sm);
    font-weight: var(--exec-font-medium);
    font-family: inherit;
    color: var(--exec-white);
    background: var(--exec-brand-500);
    border: none;
    border-radius: var(--exec-radius-md);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--exec-space-2);
    transition: all var(--exec-transition-fast);
}

.exec-filter-bar .filter-btn:hover {
    background: var(--exec-brand-600);
}

.exec-filter-bar .filter-btn i {
    font-size: 16px;
}

/* ============================================================
   KPI CARDS - Hero Metrics
============================================================ */
.exec-kpi-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--exec-space-6);
    margin-bottom: var(--exec-space-6);
}

@media (max-width: 1200px) {
    .exec-kpi-row {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .exec-kpi-row {
        grid-template-columns: 1fr;
    }
}

.exec-kpi-card {
    background: var(--exec-white);
    border-radius: var(--exec-radius-xl);
    padding: var(--exec-space-6);
    box-shadow: var(--exec-shadow-sm);
    border: 1px solid var(--exec-gray-100);
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    min-height: 128px;
    transition: all var(--exec-transition-base);
}

.exec-kpi-card:hover {
    box-shadow: var(--exec-shadow-md);
    transform: translateY(-1px);
}

.exec-kpi-content {
    flex: 1;
}

.exec-kpi-label {
    font-size: var(--exec-text-xs);
    font-weight: var(--exec-font-semibold);
    color: var(--exec-gray-500);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: var(--exec-space-2);
}

.exec-kpi-value {
    font-size: var(--exec-text-4xl);
    font-weight: var(--exec-font-bold);
    color: var(--exec-gray-900);
    line-height: 1.1;
    letter-spacing: -0.02em;
    font-variant-numeric: tabular-nums;
    margin-bottom: var(--exec-space-1);
}

.exec-kpi-value.success { color: var(--exec-success-600); }
.exec-kpi-value.warning { color: var(--exec-warning-600); }
.exec-kpi-value.danger { color: var(--exec-danger-600); }
.exec-kpi-value.info { color: var(--exec-info-600); }

.exec-kpi-sub {
    font-size: var(--exec-text-xs);
    color: var(--exec-gray-400);
    font-weight: var(--exec-font-medium);
}

.exec-kpi-icon {
    width: 48px;
    height: 48px;
    border-radius: var(--exec-radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin-left: var(--exec-space-4);
}

.exec-kpi-icon i {
    font-size: 22px;
}

.exec-kpi-icon.brand {
    background: var(--exec-brand-50);
    color: var(--exec-brand-500);
}

.exec-kpi-icon.success {
    background: var(--exec-success-50);
    color: var(--exec-success-600);
}

.exec-kpi-icon.warning {
    background: var(--exec-warning-50);
    color: var(--exec-warning-600);
}

.exec-kpi-icon.info {
    background: var(--exec-info-50);
    color: var(--exec-info-600);
}

/* ============================================================
   CARD SYSTEM - Unified Surface
============================================================ */
.exec-card {
    background: var(--exec-white);
    border-radius: var(--exec-radius-xl);
    box-shadow: var(--exec-shadow-sm);
    border: 1px solid var(--exec-gray-100);
    overflow: hidden;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.exec-card-header {
    padding: var(--exec-space-5) var(--exec-space-6);
    border-bottom: 1px solid var(--exec-gray-100);
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-shrink: 0;
}

.exec-card-title {
    font-size: var(--exec-text-md);
    font-weight: var(--exec-font-semibold);
    color: var(--exec-gray-900);
    margin: 0;
    display: flex;
    align-items: center;
    gap: var(--exec-space-2);
}

.exec-card-title i {
    font-size: 18px;
    color: var(--exec-gray-400);
}

.exec-card-subtitle {
    font-size: var(--exec-text-xs);
    color: var(--exec-gray-400);
    margin-top: 2px;
}

.exec-card-actions {
    display: flex;
    align-items: center;
    gap: var(--exec-space-2);
}

.exec-card-body {
    padding: var(--exec-space-6);
    flex: 1;
    display: flex;
    flex-direction: column;
}

.exec-card-body.flush {
    padding: 0;
}

.exec-card-body.flush-x {
    padding-left: 0;
    padding-right: 0;
}

.exec-card-footer {
    padding: var(--exec-space-4) var(--exec-space-6);
    background: var(--exec-gray-50);
    border-top: 1px solid var(--exec-gray-100);
    flex-shrink: 0;
}

/* ============================================================
   SECTION LAYOUTS - Strict Grid
============================================================ */
.exec-section {
    margin-bottom: var(--exec-space-6);
}

.exec-row {
    display: grid;
    gap: var(--exec-space-6);
}

.exec-row.cols-2 {
    grid-template-columns: repeat(2, 1fr);
}

.exec-row.cols-3 {
    grid-template-columns: repeat(3, 1fr);
}

.exec-row.cols-8-4 {
    grid-template-columns: 2fr 1fr;
}

.exec-row.cols-6-6 {
    grid-template-columns: 1fr 1fr;
}

.exec-row.cols-4-8 {
    grid-template-columns: 1fr 2fr;
}

.exec-row.cols-4-4-4 {
    grid-template-columns: repeat(3, 1fr);
}

@media (max-width: 1200px) {
    .exec-row.cols-8-4,
    .exec-row.cols-6-6,
    .exec-row.cols-4-8,
    .exec-row.cols-4-4-4,
    .exec-row.cols-3 {
        grid-template-columns: 1fr;
    }
}

@media (min-width: 768px) and (max-width: 1200px) {
    .exec-row.cols-4-4-4 {
        grid-template-columns: repeat(2, 1fr);
    }
    .exec-row.cols-4-4-4 > *:last-child {
        grid-column: span 2;
    }
}

/* ============================================================
   CARD HEADER LINK
============================================================ */
.exec-card-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: var(--exec-radius-md);
    color: var(--exec-gray-400);
    transition: all var(--exec-transition-fast);
}

.exec-card-link:hover {
    background: var(--exec-gray-100);
    color: var(--exec-gray-600);
}

.exec-card-link i {
    font-size: 16px;
}

/* ============================================================
   PAYMENT COLLECTIONS CARD STYLES
============================================================ */
.collection-stats {
    display: flex;
    flex-direction: column;
}

.collection-total {
    font-size: var(--exec-text-4xl);
    font-weight: var(--exec-font-bold);
    color: var(--exec-gray-900);
    line-height: 1.1;
    letter-spacing: -0.02em;
    font-variant-numeric: tabular-nums;
}

.collection-label {
    font-size: var(--exec-text-sm);
    color: var(--exec-gray-400);
    margin-bottom: var(--exec-space-6);
}

.collection-subtitle {
    font-size: var(--exec-text-xs);
    font-weight: var(--exec-font-semibold);
    color: var(--exec-gray-600);
    margin-bottom: var(--exec-space-2);
}

.collection-progress {
    margin-bottom: var(--exec-space-3);
}

.progress-bar {
    height: 8px;
    background: var(--exec-gray-100);
    border-radius: var(--exec-radius-full);
    overflow: hidden;
    display: flex;
}

.progress-success {
    background: var(--exec-success-500);
    height: 100%;
    border-radius: var(--exec-radius-full) 0 0 var(--exec-radius-full);
}

.progress-failed {
    background: var(--exec-danger-500);
    height: 100%;
    border-radius: 0 var(--exec-radius-full) var(--exec-radius-full) 0;
}

.collection-legend {
    display: flex;
    align-items: center;
    gap: var(--exec-space-5);
    margin-bottom: var(--exec-space-2);
}

.legend-item {
    display: flex;
    align-items: center;
    gap: var(--exec-space-2);
}

.legend-dot {
    width: 10px;
    height: 10px;
    border-radius: var(--exec-radius-full);
    flex-shrink: 0;
}

.legend-dot.success {
    background: var(--exec-success-500);
}

.legend-dot.failed {
    background: var(--exec-danger-500);
}

.legend-label {
    font-size: var(--exec-text-xs);
    color: var(--exec-gray-500);
}

.collection-amounts {
    display: flex;
    align-items: center;
    gap: var(--exec-space-5);
}

.amount-item {
    font-size: var(--exec-text-md);
    font-weight: var(--exec-font-semibold);
    font-variant-numeric: tabular-nums;
}

.amount-item.success {
    color: var(--exec-success-600);
}

.amount-item.failed {
    color: var(--exec-danger-600);
}

/* ============================================================
   TOP AGENTS LIST STYLES
============================================================ */
.agent-list {
    display: flex;
    flex-direction: column;
    gap: var(--exec-space-4);
}

.agent-item {
    display: flex;
    align-items: center;
    gap: var(--exec-space-3);
    padding: var(--exec-space-2) 0;
}

.agent-item:not(:last-child) {
    border-bottom: 1px solid var(--exec-gray-100);
    padding-bottom: var(--exec-space-3);
}

.agent-avatar {
    width: 40px;
    height: 40px;
    border-radius: var(--exec-radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: var(--exec-text-sm);
    font-weight: var(--exec-font-semibold);
    color: var(--exec-white);
    flex-shrink: 0;
}

.agent-info {
    flex: 1;
    min-width: 0;
}

.agent-name {
    font-size: var(--exec-text-sm);
    font-weight: var(--exec-font-semibold);
    color: var(--exec-gray-900);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.agent-email {
    font-size: var(--exec-text-xs);
    color: var(--exec-gray-400);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.agent-amount {
    font-size: var(--exec-text-md);
    font-weight: var(--exec-font-semibold);
    color: var(--exec-gray-900);
    font-variant-numeric: tabular-nums;
    flex-shrink: 0;
}

/* ============================================================
   PREMIUM BY PRODUCT LIST STYLES
============================================================ */
.product-list {
    display: flex;
    flex-direction: column;
}

.product-list-header {
    display: flex;
    justify-content: space-between;
    padding-bottom: var(--exec-space-3);
    margin-bottom: var(--exec-space-3);
    border-bottom: 1px solid var(--exec-gray-200);
    font-size: var(--exec-text-xs);
    font-weight: var(--exec-font-semibold);
    color: var(--exec-gray-500);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.product-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--exec-space-3) 0;
}

.product-item:not(:last-child) {
    border-bottom: 1px solid var(--exec-gray-100);
}

.product-name {
    font-size: var(--exec-text-sm);
    color: var(--exec-gray-700);
    font-weight: var(--exec-font-medium);
}

/* ============================================================
   PREMIUM BY PRODUCT - ENHANCED TRACKING STYLES
============================================================ */
.product-card-body {
    padding: var(--exec-space-4) var(--exec-space-5);
}

.product-tracking-list {
    display: flex;
    flex-direction: column;
    gap: var(--exec-space-3);
    margin-bottom: var(--exec-space-5);
}

.product-tracking-item {
    display: flex;
    align-items: center;
    gap: var(--exec-space-3);
    padding: var(--exec-space-2) 0;
    position: relative;
}

.product-tracking-item:not(:last-child)::after {
    content: '';
    position: absolute;
    left: 18px;
    top: 44px;
    width: 2px;
    height: calc(100% - 8px);
    background: var(--exec-gray-100);
}

.product-tracking-icon {
    width: 36px;
    height: 36px;
    border-radius: var(--exec-radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    position: relative;
    z-index: 1;
}

.product-tracking-icon i {
    font-size: 16px;
    color: var(--exec-white);
}

.product-tracking-info {
    flex: 1;
    min-width: 0;
}

.product-tracking-name {
    font-size: var(--exec-text-sm);
    font-weight: var(--exec-font-semibold);
    color: var(--exec-gray-900);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.3;
}

.product-tracking-meta {
    font-size: var(--exec-text-xs);
    color: var(--exec-gray-400);
    margin-top: 2px;
}

.product-tracking-amount {
    font-size: var(--exec-text-sm);
    font-weight: var(--exec-font-bold);
    color: var(--exec-gray-900);
    font-variant-numeric: tabular-nums;
    flex-shrink: 0;
}

/* Sparkline Chart */
.product-sparkline {
    margin-top: var(--exec-space-4);
    padding-top: var(--exec-space-4);
    border-top: 1px solid var(--exec-gray-100);
}

.sparkline-svg {
    width: 100%;
    height: 50px;
    display: block;
}

.sparkline-labels {
    display: flex;
    justify-content: space-between;
    margin-top: var(--exec-space-2);
    padding: 0 var(--exec-space-2);
}

.sparkline-labels span {
    font-size: 10px;
    color: var(--exec-gray-400);
    font-weight: var(--exec-font-medium);
    text-align: center;
    flex: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.product-amount {
    font-size: var(--exec-text-sm);
    font-weight: var(--exec-font-semibold);
    color: var(--exec-gray-900);
    font-variant-numeric: tabular-nums;
}

/* Small Empty State */
.exec-empty-state-sm {
    text-align: center;
    padding: var(--exec-space-6) var(--exec-space-4);
    color: var(--exec-gray-400);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--exec-space-2);
}

.exec-empty-state-sm i {
    font-size: 24px;
    opacity: 0.5;
}

.exec-empty-state-sm span {
    font-size: var(--exec-text-sm);
}

/* Ensure equal heights in rows */
.exec-row > * {
    min-height: 0;
}

/* ============================================================
   CLAIMS RATIO - Centered Display
============================================================ */
.exec-ratio-display {
    text-align: center;
    padding: var(--exec-space-6) 0;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.exec-ratio-value {
    font-size: 56px;
    font-weight: var(--exec-font-bold);
    line-height: 1;
    letter-spacing: -0.03em;
    margin-bottom: var(--exec-space-2);
}

.exec-ratio-value.healthy { color: var(--exec-success-600); }
.exec-ratio-value.warning { color: var(--exec-warning-600); }
.exec-ratio-value.danger { color: var(--exec-danger-600); }

.exec-ratio-label {
    font-size: var(--exec-text-sm);
    color: var(--exec-gray-400);
    margin-bottom: var(--exec-space-6);
}

.exec-ratio-details {
    background: var(--exec-gray-50);
    border-radius: var(--exec-radius-lg);
    padding: var(--exec-space-4);
    margin: 0 var(--exec-space-4);
}

.exec-ratio-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--exec-space-3) 0;
}

.exec-ratio-row:not(:last-child) {
    border-bottom: 1px solid var(--exec-gray-200);
}

.exec-ratio-row-label {
    font-size: var(--exec-text-sm);
    color: var(--exec-gray-500);
}

.exec-ratio-row-value {
    font-size: var(--exec-text-sm);
    font-weight: var(--exec-font-semibold);
    color: var(--exec-gray-900);
    font-variant-numeric: tabular-nums;
}

.exec-ratio-row-value.danger { color: var(--exec-danger-600); }

/* ============================================================
   RENEWAL PIPELINE - 3-Column Grid
============================================================ */
.exec-pipeline-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--exec-space-4);
}

.exec-pipeline-item {
    text-align: center;
    padding: var(--exec-space-5);
    background: var(--exec-gray-50);
    border-radius: var(--exec-radius-lg);
    border: 1px solid var(--exec-gray-100);
}

.exec-pipeline-month {
    font-size: var(--exec-text-xs);
    font-weight: var(--exec-font-semibold);
    color: var(--exec-gray-400);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: var(--exec-space-2);
}

.exec-pipeline-value {
    font-size: var(--exec-text-xl);
    font-weight: var(--exec-font-bold);
    color: var(--exec-gray-900);
    font-variant-numeric: tabular-nums;
}

.exec-pipeline-count {
    font-size: var(--exec-text-xs);
    color: var(--exec-gray-400);
    margin-top: var(--exec-space-1);
}

/* ============================================================
   CHART CONTAINERS
============================================================ */
.exec-chart-wrapper {
    min-height: 300px;
    position: relative;
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.exec-chart-wrapper.compact {
    min-height: 240px;
}

.exec-chart-wrapper.tall {
    min-height: 360px;
}

/* Chart Summary Footer */
.exec-chart-summary {
    display: flex;
    align-items: center;
    justify-content: space-around;
    padding: var(--exec-space-4) var(--exec-space-6);
    background: var(--exec-gray-50);
    border-top: 1px solid var(--exec-gray-100);
    gap: var(--exec-space-4);
}

.exec-chart-summary-item {
    text-align: center;
    flex: 1;
}

.exec-chart-summary-value {
    font-size: var(--exec-text-lg);
    font-weight: var(--exec-font-bold);
    color: var(--exec-gray-900);
    font-variant-numeric: tabular-nums;
}

.exec-chart-summary-value.positive { color: var(--exec-success-600); }
.exec-chart-summary-value.negative { color: var(--exec-danger-600); }

.exec-chart-summary-label {
    font-size: 10px;
    font-weight: var(--exec-font-semibold);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--exec-gray-400);
    margin-top: 2px;
}

/* Period Badge */
.exec-period-badge {
    display: inline-flex;
    align-items: center;
    gap: var(--exec-space-1);
    padding: var(--exec-space-1) var(--exec-space-3);
    border-radius: var(--exec-radius-md);
    font-size: var(--exec-text-xs);
    font-weight: var(--exec-font-medium);
    background: var(--exec-brand-50);
    color: var(--exec-brand-600);
}

.exec-period-badge i {
    font-size: 12px;
}

/* ============================================================
   TABLES - Executive-Ready
============================================================ */
.exec-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
}

.exec-table th {
    text-align: left;
    padding: var(--exec-space-3) var(--exec-space-5);
    font-size: var(--exec-text-xs);
    font-weight: var(--exec-font-semibold);
    color: var(--exec-gray-500);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 1px solid var(--exec-gray-200);
    background: var(--exec-gray-50);
    white-space: nowrap;
}

.exec-table th.text-end { text-align: right; }
.exec-table th.text-center { text-align: center; }

.exec-table td {
    padding: var(--exec-space-4) var(--exec-space-5);
    font-size: var(--exec-text-sm);
    color: var(--exec-gray-700);
    border-bottom: 1px solid var(--exec-gray-100);
    vertical-align: middle;
}

.exec-table td.text-end { text-align: right; }
.exec-table td.text-center { text-align: center; }

.exec-table tbody tr {
    transition: background var(--exec-transition-fast);
}

.exec-table tbody tr:hover {
    background: var(--exec-gray-50);
}

.exec-table tbody tr:last-child td {
    border-bottom: none;
}

/* Table Rank Badges */
.exec-rank {
    width: 32px;
    height: 32px;
    border-radius: var(--exec-radius-full);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: var(--exec-text-xs);
    font-weight: var(--exec-font-semibold);
    background: var(--exec-gray-100);
    color: var(--exec-gray-600);
}

.exec-rank.gold {
    background: #FEF3C7;
    color: #B45309;
}

.exec-rank.silver {
    background: var(--exec-gray-100);
    color: var(--exec-gray-600);
}

.exec-rank.bronze {
    background: #FED7AA;
    color: #C2410C;
}

/* Table Links */
.exec-table-link {
    font-weight: var(--exec-font-medium);
    color: var(--exec-brand-600);
    text-decoration: none;
    transition: color var(--exec-transition-fast);
}

.exec-table-link:hover {
    color: var(--exec-brand-500);
}

.exec-table-meta {
    font-size: var(--exec-text-xs);
    color: var(--exec-gray-400);
    margin-top: 2px;
}

/* Premium Value */
.exec-premium-value {
    font-weight: var(--exec-font-semibold);
    font-variant-numeric: tabular-nums;
    color: var(--exec-gray-900);
}

/* Metric Badges */
.exec-metric-badge {
    display: inline-flex;
    align-items: center;
    padding: var(--exec-space-1) var(--exec-space-2);
    border-radius: var(--exec-radius-sm);
    font-size: var(--exec-text-xs);
    font-weight: var(--exec-font-semibold);
}

.exec-metric-badge.success {
    background: var(--exec-success-100);
    color: var(--exec-success-600);
}

.exec-metric-badge.info {
    background: var(--exec-info-100);
    color: var(--exec-info-600);
}

.exec-metric-badge.warning {
    background: var(--exec-warning-100);
    color: var(--exec-warning-600);
}

/* ============================================================
   EMPTY STATE
============================================================ */
.exec-empty-state {
    text-align: center;
    padding: var(--exec-space-12) var(--exec-space-6);
    color: var(--exec-gray-400);
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.exec-empty-state i {
    font-size: 48px;
    opacity: 0.4;
    margin-bottom: var(--exec-space-4);
}

.exec-empty-state-text {
    font-size: var(--exec-text-sm);
    max-width: 200px;
}

/* ============================================================
   STATUS INDICATORS - Consistent & Professional
============================================================ */
.exec-status {
    display: inline-flex;
    align-items: center;
    padding: 3px 10px;
    border-radius: var(--exec-radius-full);
    font-size: var(--exec-text-xs);
    font-weight: var(--exec-font-medium);
    letter-spacing: 0.01em;
}

.exec-status.active,
.exec-status.converted,
.exec-status.paid {
    background: var(--exec-success-100);
    color: var(--exec-success-600);
}

.exec-status.pending,
.exec-status.outstanding {
    background: var(--exec-warning-100);
    color: var(--exec-warning-600);
}

.exec-status.expired,
.exec-status.overdue {
    background: var(--exec-danger-100);
    color: var(--exec-danger-600);
}

.exec-status.draft,
.exec-status.inactive {
    background: var(--exec-gray-100);
    color: var(--exec-gray-500);
}

/* ============================================================
   LEGEND INDICATORS
============================================================ */
.exec-legend {
    display: flex;
    align-items: center;
    gap: var(--exec-space-4);
    font-size: var(--exec-text-xs);
    color: var(--exec-gray-600);
}

.exec-legend-item {
    display: flex;
    align-items: center;
    gap: var(--exec-space-2);
}

.exec-legend-dot {
    width: 10px;
    height: 10px;
    border-radius: 2px;
    flex-shrink: 0;
}

.exec-legend-dot.brand { background: var(--exec-brand-500); }
.exec-legend-dot.success { background: var(--exec-success-500); }
.exec-legend-dot.warning { background: var(--exec-warning-500); }
.exec-legend-dot.info { background: var(--exec-info-500); }

/* ============================================================
   MODERN CHART CARD REFINEMENTS
============================================================ */
.exec-modern-chart-card {
    background: var(--exec-white);
    border-radius: var(--exec-radius-xl);
    box-shadow: var(--exec-shadow-sm);
    border: 1px solid var(--exec-gray-100);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: 100%;
    transition: box-shadow var(--exec-transition-base);
}

.exec-modern-chart-card:hover {
    box-shadow: var(--exec-shadow-md);
}

.exec-modern-chart-header {
    padding: var(--exec-space-5) var(--exec-space-6);
    border-bottom: 1px solid var(--exec-gray-100);
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-shrink: 0;
}

.exec-modern-chart-header-left {
    display: flex;
    align-items: center;
    gap: var(--exec-space-3);
}

.exec-modern-chart-header-left i {
    font-size: 18px;
    color: var(--exec-gray-400);
}

.exec-modern-chart-title {
    font-size: var(--exec-text-md);
    font-weight: var(--exec-font-semibold);
    color: var(--exec-gray-900);
    margin: 0;
}

.exec-modern-chart-subtitle {
    font-size: var(--exec-text-xs);
    color: var(--exec-gray-400);
    margin-top: 2px;
}

.exec-modern-chart-body {
    padding: var(--exec-space-5) var(--exec-space-6);
    flex: 1;
    display: flex;
    flex-direction: column;
}

.exec-modern-chart-wrapper {
    min-height: 300px;
    flex: 1;
}

/* ============================================================
   UTILITY CLASSES
============================================================ */
.exec-mb-0 { margin-bottom: 0 !important; }
.exec-mb-4 { margin-bottom: var(--exec-space-4) !important; }
.exec-mb-6 { margin-bottom: var(--exec-space-6) !important; }
.exec-mb-8 { margin-bottom: var(--exec-space-8) !important; }

.exec-mt-0 { margin-top: 0 !important; }
.exec-mt-4 { margin-top: var(--exec-space-4) !important; }
.exec-mt-6 { margin-top: var(--exec-space-6) !important; }

.exec-text-right { text-align: right !important; }
.exec-text-center { text-align: center !important; }

.exec-flex { display: flex !important; }
.exec-flex-between { justify-content: space-between !important; }
.exec-flex-center { align-items: center !important; }
.exec-gap-2 { gap: var(--exec-space-2) !important; }
.exec-gap-4 { gap: var(--exec-space-4) !important; }

/* ============================================================
   CHART COLOR REFINEMENTS
============================================================ */
/* ApexCharts tooltip refinement */
.apexcharts-tooltip {
    border-radius: var(--exec-radius-md) !important;
    box-shadow: var(--exec-shadow-lg) !important;
    border: 1px solid var(--exec-gray-200) !important;
}

.apexcharts-tooltip.apexcharts-theme-light {
    background: var(--exec-white) !important;
}

.apexcharts-tooltip-title {
    background: var(--exec-gray-50) !important;
    border-bottom: 1px solid var(--exec-gray-100) !important;
    font-weight: var(--exec-font-semibold) !important;
    font-size: var(--exec-text-sm) !important;
    padding: var(--exec-space-3) var(--exec-space-4) !important;
}

.apexcharts-tooltip-series-group {
    padding: var(--exec-space-2) var(--exec-space-4) !important;
}

.apexcharts-tooltip-text-y-value {
    font-weight: var(--exec-font-semibold) !important;
}

/* Legend refinement */
.apexcharts-legend {
    padding: var(--exec-space-4) var(--exec-space-2) !important;
}

.apexcharts-legend-text {
    font-size: var(--exec-text-xs) !important;
    font-weight: var(--exec-font-medium) !important;
    color: var(--exec-gray-600) !important;
}

.apexcharts-legend-marker {
    border-radius: 3px !important;
}

/* Grid lines */
.apexcharts-gridline {
    stroke: var(--exec-gray-100) !important;
}

.apexcharts-xaxis-tick {
    stroke: var(--exec-gray-200) !important;
}

/* ============================================================
   RESPONSIVE REFINEMENTS
============================================================ */
@media (max-width: 1400px) {
    .exec-kpi-value {
        font-size: var(--exec-text-3xl);
    }
    
    .exec-ratio-value {
        font-size: 48px;
    }
}

@media (max-width: 992px) {
    .exec-filter-bar .filter-field {
        max-width: none;
        flex: 1 1 calc(50% - var(--exec-space-2));
    }
    
    .exec-chart-wrapper {
        min-height: 260px;
    }
}

@media (max-width: 768px) {
    .exec-kpi-card {
        min-height: auto;
        padding: var(--exec-space-5);
    }
    
    .exec-kpi-value {
        font-size: var(--exec-text-2xl);
    }
    
    .exec-kpi-icon {
        width: 40px;
        height: 40px;
    }
    
    .exec-kpi-icon i {
        font-size: 18px;
    }
    
    .exec-pipeline-grid {
        grid-template-columns: 1fr;
    }
    
    .exec-card-body {
        padding: var(--exec-space-4);
    }
    
    .exec-table th,
    .exec-table td {
        padding: var(--exec-space-3) var(--exec-space-4);
    }
}

/* ============================================================
   PRINT STYLES
============================================================ */
@media print {
    .exec-dashboard {
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
    }
    
    .exec-card,
    .exec-kpi-card,
    .exec-modern-chart-card {
        box-shadow: none;
        border: 1px solid var(--exec-gray-200);
        break-inside: avoid;
    }
    
    .exec-filter-bar {
        display: none;
    }
}
