:root {
    --primary-color: #007AFF; /* Apple Blue */
    --primary-gradient: linear-gradient(135deg, #007AFF 0%, #0051D7 100%);
    --secondary-color: #1D1D1F; /* Apple Black */
    --accent-color: #5E5E62;
    --success-color: #34C759;
    --warning-color: #FF9500;
    --danger-color: #FF3B30;
    
    /* Apple + UMR Pro UI Layers */
    --bg-main: #F8FAFC; /* Lighter Slate background */
    --card-bg: #FFFFFF;
    --border-color: #F1F5F9;
    
    --glass-bg: rgba(255, 255, 255, 0.85);
    --glass-border: rgba(210, 210, 215, 0.5);
    --glass-shadow: 0 10px 40px rgba(0, 0, 0, 0.03);
    
    --sidebar-bg: rgba(255, 255, 255, 0.7); /* Frosted Glass */
    --sidebar-text: #424245; /* Apple Graphite */
    --sidebar-active: #007AFF; /* Apple Blue */
    --sidebar-hover: rgba(0, 0, 0, 0.04);
    --sidebar-accent: #007AFF;
    
    --text-main: #0F172A; /* Slate-900 */
    --text-muted: #64748B; /* Slate-500 */
    --text-light: #94A3B8; /* Slate-400 */
    
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 20px; /* UMR Precision Radius */
    --radius-xl: 32px;
    
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background-color: var(--bg-main);
    color: var(--text-main);
    margin: 0;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

.layout-wrapper {
    display: flex;
    min-height: 100vh;
}

/* Executive Typography */
.font-black { font-weight: 900 !important; }
.tracking-tight { letter-spacing: -0.05em !important; }
.tracking-widest { letter-spacing: 0.1em !important; }

.gradient-text {
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Pulsing Status Dot */
.status-dot {
    display: inline-block;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--primary-color);
    box-shadow: 0 0 0 0 rgba(0, 122, 255, 0.4);
    animation: pulse-dot 2s infinite;
}

@keyframes pulse-dot {
    0% { transform: scale(1); box-shadow: 0 0 0 0 rgba(0, 122, 255, 0.4); }
    70% { transform: scale(1); box-shadow: 0 0 0 10px rgba(0, 122, 255, 0); }
    100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(0, 122, 255, 0); }
}

/* UMR Style Cards - Absolute Fidelity */
.stat-card-clean {
    background: var(--card-bg);
    border-radius: var(--radius-md);
    padding: 18px;
    border: 1px solid var(--border-color);
    position: relative;
    overflow: hidden;
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1),
                box-shadow 0.3s ease,
                border-color 0.3s ease;
    height: 100%;
    cursor: default;
}

.stat-card-clean:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.08),
                0 6px 16px rgba(0, 0, 0, 0.04);
    border-color: transparent;
}

.stat-card-clean:hover .card-bg-icon {
    font-size: 110px;
    opacity: 0.65;
    transform: rotate(-10deg) scale(1.1);
}

.stat-card-clean::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 24px;
    right: 24px;
    height: 3px;
    background: var(--primary-color);
    border-radius: 3px 3px 0 0;
}

.stat-card-clean.success::after { background: var(--success-color); }
.stat-card-clean.warning::after { background: var(--warning-color); }
.stat-card-clean.danger::after { background: var(--danger-color); }

.card-bg-icon {
    position: absolute;
    bottom: -10px;
    right: -10px;
    font-size: 80px;
    opacity: 0.35;
    transform: rotate(-15deg);
    z-index: 1;
    transition: font-size 0.35s cubic-bezier(0.34, 1.56, 0.64, 1),
                opacity 0.3s ease,
                transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
    pointer-events: none;
}

/* Identidade Cromática para Ícones de Fundo */
.stat-card-clean.accent .card-bg-icon { color: var(--primary-color); }
.stat-card-clean.success .card-bg-icon { color: var(--success-color); }
.stat-card-clean.warning .card-bg-icon { color: var(--warning-color); }
.stat-card-clean.danger .card-bg-icon { color: var(--danger-color); }
.stat-card-clean.primary .card-bg-icon { color: #8B5CF6; } /* Roxo do Trade */

.card-content-pro {
    position: relative;
    z-index: 5;
}

/* Welcome Section */
.welcome-card {
    background: white;
    border-radius: var(--radius-lg);
    padding: 28px 28px 24px;
    border: 1px solid var(--border-color);
    position: relative;
    overflow: hidden;
}

.card-filter-select {
    appearance: none;
    -webkit-appearance: none;
    background: #F1F5F9 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath d='M0 0l5 6 5-6z' fill='%2364748B'/%3E%3C/svg%3E") no-repeat right 8px center;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 3px 24px 3px 10px;
    font-size: 10px;
    font-weight: 800;
    color: var(--text-muted);
    cursor: pointer;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    transition: var(--transition);
}

.card-filter-select:hover,
.card-filter-select:focus {
    border-color: var(--primary-color);
    outline: none;
    color: var(--primary-color);
    background-color: #EFF6FF;
}

.stat-label {
    font-size: 9px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-light);
    margin-bottom: 6px;
}

.stat-value {
    font-size: 1.7rem;
    font-weight: 900;
    letter-spacing: -0.04em;
    color: var(--text-dark);
    margin-bottom: 12px;
    line-height: 1;
}

.stat-accent {
    height: 3px;
    width: 32px;
    background: var(--primary-color);
    border-radius: 3px;
}

.welcome-card .wave-pattern {
    position: absolute;
    top: 0;
    right: 0;
    width: 200px;
    height: 100%;
    background: radial-gradient(circle at 100% 0%, rgba(0, 122, 255, 0.05) 0%, transparent 70%);
}

.badge-umr {
    background: #F1F5F9;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 10px;
    font-weight: 900;
    text-transform: uppercase;
    color: var(--primary-color);
}

.card-content {
    position: relative;
    z-index: 10;
}

/* Header & Sidebar Polish */
.sidebar {
    width: 270px;
    background: var(--sidebar-bg);
    backdrop-filter: blur(25px) saturate(180%);
    -webkit-backdrop-filter: blur(25px) saturate(180%);
    display: flex;
    flex-direction: column;
    height: 100vh;
    position: sticky;
    top: 0;
    transition: var(--transition);
    border-right: 1px solid rgba(0,0,0,0.05);
}

.sidebar-header {
    border-bottom: 1px solid rgba(0,0,0,0.03);
    margin-bottom: 12px;
}

.sidebar-header img {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
}

.sidebar-header img:hover {
    transform: scale(1.06);
}

.sidebar-label {
    padding: 24px 28px 8px;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #8E8E93; /* Apple Silver */
}

.nav-link {
    font-weight: 600;
    border-radius: 12px;
    margin: 2px 14px;
    padding: 10px 14px;
    color: var(--sidebar-text);
    font-size: 16px;
    display: flex;
    align-items: center;
    gap: 12px;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-link i {
    width: 20px;
    font-size: 16px;
    opacity: 0.8;
    color: var(--sidebar-text);
    text-align: center;
}

.nav-link:hover {
    background: var(--sidebar-hover);
    color: #000;
    transform: translateX(6px) scale(1.01);
}

.nav-link:hover i {
    color: var(--sidebar-active);
    transform: scale(1.1);
}

.nav-link.active {
    background: rgba(0, 122, 255, 0.08); /* Soft Apple Blue */
    color: var(--sidebar-active);
    font-weight: 600;
}

.nav-link.active i {
    opacity: 1;
    color: var(--sidebar-active);
}

.sidebar-footer {
    margin-top: auto;
    padding-bottom: 24px;
    border-top: 1px solid rgba(0,0,0,0.03);
}

/* Page Header */
.main-content {
    flex-grow: 1;
    padding: 24px 32px;
    min-width: 0; /* Prevent flex blowout */
    background: var(--bg-main);
    display: flex;
    flex-direction: column;
}

.page-title h2 {
    font-size: 3rem;
    font-weight: 900;
    letter-spacing: -0.05em;
    margin-bottom: 8px;
}

.badge-executive {
    background: #F1F5F9;
    padding: 2px 10px;
    border-radius: 6px;
    font-size: 10px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-muted);
}

.header-icon-btn {
    width: 40px;
    height: 40px;
    background: #FFFFFF;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    transition: var(--transition);
    position: relative;
    cursor: pointer;
}

.header-icon-btn:hover {
    background: #F1F5F9;
    color: var(--primary-color);
    transform: translateY(-2px);
}

.header-icon-btn .notify-badge {
    position: absolute;
    top: -2px;
    right: -2px;
    width: 8px;
    height: 8px;
    background: var(--danger-color);
    border: 2px solid white;
    border-radius: 50%;
}

.header-user-block {
    display: flex;
    flex-direction: column;
    text-align: right;
}

.main-canvas {
    background: #FFFFFF;
    border-radius: 60px;
    border: 1px solid var(--border-color);
    padding: 40px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.02);
}

.footer-branding {
    border-top: 1px solid var(--border-color);
    opacity: 0.6;
    transition: var(--transition);
}

.footer-branding:hover {
    opacity: 1;
}

/* 
======================================================
    PREMIUM CARD SYSTEM (Dashboards & Modules)
======================================================
*/
.premium-card {
    background: #FFFFFF;
    border-radius: 20px;
    padding: 24px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
    border: 1px solid rgba(0, 0, 0, 0.04);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.premium-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    border-color: rgba(0,0,0,0.08);
}

.kpi-wrapper {
    display: flex;
    align-items: center;
    gap: 20px;
}

.kpi-icon-box {
    width: 64px;
    height: 64px;
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
    flex-shrink: 0;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
}

.icon-box-blue { background: linear-gradient(135deg, rgba(59, 130, 246, 0.15) 0%, rgba(59, 130, 246, 0.05) 100%); color: #3b82f6; border: 1px solid rgba(59, 130, 246, 0.2); }
.icon-box-green { background: linear-gradient(135deg, rgba(16, 185, 129, 0.15) 0%, rgba(16, 185, 129, 0.05) 100%); color: #10b981; border: 1px solid rgba(16, 185, 129, 0.2); }
.icon-box-orange { background: linear-gradient(135deg, rgba(245, 158, 11, 0.15) 0%, rgba(245, 158, 11, 0.05) 100%); color: #f59e0b; border: 1px solid rgba(245, 158, 11, 0.2); }
.icon-box-purple { background: linear-gradient(135deg, rgba(139, 92, 246, 0.15) 0%, rgba(139, 92, 246, 0.05) 100%); color: #8b5cf6; border: 1px solid rgba(139, 92, 246, 0.2); }
.icon-box-danger { background: linear-gradient(135deg, rgba(239, 68, 68, 0.15) 0%, rgba(239, 68, 68, 0.05) 100%); color: #ef4444; border: 1px solid rgba(239, 68, 68, 0.2); }

.kpi-content {
    flex-grow: 1;
}

.kpi-label {
    font-size: 0.85rem;
    font-weight: 700;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 4px;
    display: block;
}

.kpi-value {
    font-size: 2rem;
    font-weight: 800;
    color: #0f172a;
    line-height: 1.2;
    margin-bottom: 6px;
    letter-spacing: -0.5px;
}

.kpi-trend {
    font-size: 0.85rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 6px;
}
.trend-up { color: #10b981; }
.trend-down { color: #ef4444; }
.trend-neutral { color: #64748b; }

.section-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 24px;
    margin-top: 24px;
    background: #fff;
    padding: 16px 24px;
    border-radius: 16px;
    border: 1px solid rgba(0,0,0,0.04);
    box-shadow: 0 4px 15px rgba(0,0,0,0.02);
}

.section-title {
    font-size: 1.15rem;
    font-weight: 800;
    color: #0f172a;
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.section-marker {
    width: 8px;
    height: 24px;
    border-radius: 6px;
}
.marker-blue { background: linear-gradient(180deg, #3b82f6 0%, #2563eb 100%); }
.marker-purple { background: linear-gradient(180deg, #8b5cf6 0%, #7c3aed 100%); }
.marker-green { background: linear-gradient(180deg, #10b981 0%, #059669 100%); }
.marker-orange { background: linear-gradient(180deg, #f59e0b 0%, #d97706 100%); }

.chart-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 24px;
}
.chart-title {
    font-size: 1.1rem;
    font-weight: 800;
    color: #1e293b;
    margin: 0;
}
.chart-subtitle {
    font-size: 0.85rem;
    color: #64748b;
    margin-top: 6px;
    font-weight: 500;
}

.chart-container {
    position: relative;
    flex-grow: 1;
    width: 100%;
    min-height: 220px;
}
.chart-container-large {
    min-height: 320px;
}

/* 
======================================================
    REFERENCE SAAS UI (Global Standard)
======================================================
*/
/* Master Container */
.dash-master-wrapper {
    background-color: #f8fafc;
    border-radius: 24px;
    padding: 32px;
    margin: 0 auto 40px auto;
    border: 1px solid #e2e8f0;
    box-shadow: 0 10px 30px rgba(0,0,0,0.02);
}

/* Header Area */
.dash-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 32px;
}
.title-bold {
    font-size: 1.15rem;
    font-weight: 800;
    color: #1e293b;
    margin: 0;
    line-height: 1.2;
}
.title-highlight {
    color: #3b82f6; 
}
.btn-export {
    background-color: #3b82f6;
    color: #ffffff;
    border: none;
    border-radius: 20px;
    padding: 8px 18px;
    font-size: 13px;
    font-weight: 700;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.25);
    transition: transform 0.2s;
}
.btn-export:hover {
    transform: translateY(-1px);
    color: white;
}

/* The Exact KPI Cards */
.kpi-card-v2 {
    background: #ffffff;
    border-radius: 12px;
    padding: 16px 20px;
    border: 1px solid #e2e8f0;
    position: relative;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 100px;
    overflow: hidden;
    transition: transform 0.3s cubic-bezier(0.25, 0.1, 0.25, 1), box-shadow 0.3s;
}

.kpi-card-v2:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.08);
}

.kpi-card-v2 .label {
    font-size: 11px;
    font-weight: 800;
    color: #475569;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 2px;
    z-index: 2;
}

.kpi-card-v2 .value {
    font-size: 24px;
    font-weight: 900;
    z-index: 2;
    letter-spacing: -0.02em;
    margin-bottom: 12px; /* space for the line */
}

/* Colors for the values */
.kpi-card-v2.blue .value { color: #0f172a; }
.kpi-card-v2.yellow .value { color: #f59e0b; }
.kpi-card-v2.purple .value { color: #a855f7; }
.kpi-card-v2.green .value { color: #22c55e; }

/* The Bottom Line */
.kpi-card-v2 .line {
    position: absolute;
    bottom: 16px;
    left: 20px;
    height: 3px;
    width: 65%;
    border-radius: 3px;
    z-index: 2;
}
.kpi-card-v2.blue .line { background: #3b82f6; } /* Blue */
.kpi-card-v2.yellow .line { background: #fcd34d; } /* Yellow */
.kpi-card-v2.purple .line { background: #c084fc; } /* Purple */
.kpi-card-v2.green .line { background: #4ade80; } /* Green */

/* The Right Icon */
.kpi-card-v2 .icon {
    position: absolute;
    bottom: 10px;
    right: 14px;
    font-size: 42px;
    z-index: 1;
    transition: transform 0.4s cubic-bezier(0.25, 0.8, 0.25, 1), filter 0.4s;
    transform-origin: bottom right;
}

.kpi-card-v2:hover .icon {
    transform: scale(1.45) rotate(-12deg);
    filter: drop-shadow(0 4px 10px rgba(0,0,0,0.1));
}

.kpi-card-v2.blue .icon { color: #cbd5e1; } /* vector grey */
.kpi-card-v2.yellow .icon { color: #fde68a; } /* vector yellow */
.kpi-card-v2.purple .icon { color: #e9d5ff; } /* vector purple */
.kpi-card-v2.green .icon { color: #bbf7d0; } /* vector green */
.kpi-card-v2.red .line { background: #ef4444; }
.kpi-card-v2.red .icon { color: #fecaca; }
.kpi-card-v2.teal .line { background: #14b8a6; }
.kpi-card-v2.teal .icon { color: #ccfbf1; }
.kpi-card-v2.indigo .line { background: #6366f1; }
.kpi-card-v2.indigo .icon { color: #e0e7ff; }

/* Standard Chart Cards below */
.chart-card {
    background: #ffffff;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    padding: 24px;
    height: 100%;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.03), 0 2px 4px -1px rgba(0, 0, 0, 0.02);
    transition: transform 0.3s cubic-bezier(0.25, 0.8, 0.25, 1), box-shadow 0.3s ease;
}
.chart-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 24px -4px rgba(0, 0, 0, 0.08), 0 6px 12px -2px rgba(0, 0, 0, 0.04);
}
.cc-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 24px;
}
.cc-title {
    font-size: 15px;
    font-weight: 800;
    color: #1e293b;
    margin: 0;
}
.cc-icon { color: #64748b; font-size: 18px; }

/* Chart Containers */
.ch-wrap-lg { height: 320px; position: relative; width: 100%; }
.ch-wrap-md { height: 260px; position: relative; width: 100%; }
.ch-wrap-sm { height: 200px; position: relative; width: 100%; }

/* Quick Actions Pro Component */
.action-row-pro {
    display: flex;
    align-items: center;
    padding: 14px 16px;
    background: #ffffff;
    border: 1px solid #f1f5f9;
    border-radius: 12px;
    transition: all 0.2s cubic-bezier(0.25, 0.8, 0.25, 1);
    text-decoration: none !important;
    gap: 16px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.01);
}

.action-row-pro:hover {
    background: #f8fafc;
    border-color: #e2e8f0;
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(0,0,0,0.04);
}

.action-icon-box {
    width: 42px;
    height: 42px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    flex-shrink: 0;
}

.action-icon-blue { background: #eff6ff; color: #3b82f6; }
.action-icon-green { background: #f0fdf4; color: #22c55e; }
.action-icon-yellow { background: #fefce8; color: #eab308; }

.action-content {
    flex-grow: 1;
}

.action-title {
    font-size: 14px;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 2px;
    line-height: 1.2;
}

.action-desc {
    font-size: 12px;
    font-weight: 500;
    color: #64748b;
    line-height: 1.2;
}

.action-arrow {
    color: #cbd5e1;
    font-size: 14px;
    transition: transform 0.2s, color 0.2s;
}

.action-row-pro:hover .action-arrow {
    transform: translateX(3px);
    color: #94a3b8;
}

/* Status Badges Pro */
.badge-status {
    display: inline-flex;
    align-items: center;
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.05em;
    gap: 6px;
}

.status-blue { background: #eff6ff; color: #3b82f6; border: 1px solid #dbeafe; }
.status-green { background: #f0fdf4; color: #22c55e; border: 1px solid #dcfce7; }
.status-orange { background: #fffbeb; color: #f59e0b; border: 1px solid #fef3c7; }
.status-red { background: #fef2f2; color: #ef4444; border: 1px solid #fee2e2; }

/* Icon Boxes for Tables */
.action-icon-box.icon-box-blue { background: #eff6ff; color: #3b82f6; border: 1px solid #dbeafe; }
.action-icon-box.icon-box-green { background: #f0fdf4; color: #22c55e; border: 1px solid #dcfce7; }
.action-icon-box.icon-box-orange { background: #fffbeb; color: #f59e0b; border: 1px solid #fef3c7; }
.action-icon-box.icon-box-danger { background: #fef2f2; color: #ef4444; border: 1px solid #fee2e2; }

/* 
======================================================
    RESPONSIVE DESIGN & MEDIA QUERIES
======================================================
*/

/* Sidebar Toggle Buttons */
.btn-sidebar-toggle, .btn-close-sidebar {
    background: white;
    border: 1px solid var(--border-color);
    width: 40px;
    height: 40px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-main);
    cursor: pointer;
    transition: var(--transition);
}

.btn-close-sidebar {
    position: absolute;
    top: 25px;
    right: 25px;
}

.sidebar-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(4px);
    z-index: 998;
    display: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.sidebar-overlay.active {
    display: block;
    opacity: 1;
}

@media (max-width: 992px) {
    .sidebar {
        position: fixed;
        left: -300px; /* Slightly wider sidebar */
        z-index: 999;
        box-shadow: 20px 0 50px rgba(0,0,0,0.1);
        width: 270px;
    }
    
    .sidebar.active {
        left: 0;
    }
    
    .main-content {
        padding: 15px;
        width: 100%;
    }
    
    .page-header {
        flex-direction: column;
        align-items: flex-start !important;
        gap: 20px;
        margin-bottom: 30px !important;
        padding-top: 10px;
    }
    
    .page-header .d-flex.align-items-center.gap-3:last-child {
        width: 100%;
        justify-content: flex-end;
    }

    .font-black {
        font-size: 2.2rem !important;
    }

    .dash-master-wrapper {
        padding: 15px;
        border-radius: 16px;
    }

    .dash-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }

    .dash-header .d-flex {
        width: 100%;
        justify-content: space-between;
    }

    .kpi-card-v2 {
        min-height: 90px;
    }
    
    .kpi-card-v2 .value {
        font-size: 1.25rem;
        word-break: break-word;
    }

    .action-row-pro {
        padding: 12px;
    }

    .footer-branding {
        padding-top: 20px !important;
    }

    /* Adjustments for 2-column cards on mobile */
    .kpi-card-v2 {
        padding: 12px 15px;
    }
    .kpi-card-v2 .label {
        font-size: 9px;
    }
    .kpi-card-v2 .value {
        font-size: 18px;
        margin-bottom: 8px;
    }
    .kpi-card-v2 .icon {
        font-size: 28px;
        bottom: 8px;
        right: 10px;
    }
    .kpi-card-v2 .line {
        left: 15px;
        bottom: 12px;
        width: 40%;
    }
    
    /* Charts Professional View */
    .ch-wrap-lg, .ch-wrap-md, .ch-wrap-sm {
        height: 240px !important;
    }
    
    .chart-card {
        padding: 16px;
    }
    
    .chart-header {
        flex-direction: column;
        gap: 8px;
    }
}

@media (max-width: 768px) {
    .row > * {
        margin-bottom: 15px;
    }
    
    .page-header h1 {
        font-size: 2rem !important;
    }
}

@media (max-width: 576px) {
    .header-user-block, .page-header .d-flex.align-items-center.gap-3:last-child .header-icon-btn:not(.text-danger) {
        display: none;
    }
    
    .page-header h1 {
        font-size: 1.8rem !important;
    }
    
    .btn-export {
        padding: 6px 14px;
        font-size: 11px;
    }
    
    .kpi-card-v2 .icon {
        font-size: 32px;
    }
    
    .header-welcome-text {
        font-size: 1.5rem !important;
    }
    
    .page-header p {
        font-size: 12px !important;
    }
    
    .badge-umr {
        font-size: 9px !important;
        padding: 2px 8px;
    }
}
