@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&display=swap');

:root {
    --font-primary: 'Outfit', sans-serif;
    
    /* Brand & Layout Colors */
    --color-bg-main: #f3f6fa;
    --color-bg-sidebar: #0b132b;
    --color-bg-card: #ffffff;
    --color-border: #e2e8f0;
    
    /* Text Colors */
    --color-text-dark: #0f172a;
    --color-text-muted: #64748b;
    --color-text-sidebar-inactive: #94a3b8;
    --color-text-sidebar-active: #ffffff;
    
    /* Accent & Status Colors */
    --color-accent-blue: #1b62f3;
    --color-success: #10b981;
    --color-danger: #ef4444;
    --color-warning: #f59e0b;
    --color-info: #06b6d4;
    --color-purple: #8b5cf6;
    --color-pink: #ec4899;
    --color-orange: #f97316;
    --color-teal: #14b8a6;
    
    /* Component Specifics */
    --sidebar-width: 250px;
    --card-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.05), 0 2px 4px -2px rgb(0 0 0 / 0.05);
    --hover-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.08), 0 4px 6px -4px rgb(0 0 0 / 0.08);
    --border-radius-lg: 12px;
    --border-radius-md: 8px;
    --border-radius-sm: 6px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: var(--font-primary);
}

body {
    background-color: var(--color-bg-main);
    color: var(--color-text-dark);
    min-height: 100vh;
    display: flex;
    overflow-x: hidden;
}

/* Sidebar Styling */
aside.sidebar {
    width: var(--sidebar-width);
    background-color: var(--color-bg-sidebar);
    color: var(--color-text-sidebar-inactive);
    height: 100vh;
    position: fixed;
    top: 0;
    left: 0;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 20px 0;
    z-index: 100;
    box-shadow: 4px 0 10px rgb(0 0 0 / 0.15);
}

.sidebar-logo {
    padding: 0 20px;
    margin-bottom: 25px;
    display: flex;
    flex-direction: column;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    padding-bottom: 20px;
}

.logo-container {
    background-color: white;
    border-radius: 10px;
    padding: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 8px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.sidebar-logo img {
    height: 38px;
    width: auto;
}

.sidebar-logo-text {
    font-weight: 800;
    font-size: 13px;
    color: #ffffff;
    text-align: center;
    line-height: 1.2;
    letter-spacing: 0.5px;
}

.sidebar-logo-subtext {
    font-size: 9px;
    color: #e2e8f0;
    text-align: center;
    margin-top: 2px;
}

.sidebar-nav {
    flex-grow: 1;
    overflow-y: auto;
    padding: 0 12px;
}

/* Custom Scrollbar for Sidebar Navigation */
.sidebar-nav::-webkit-scrollbar {
    width: 4px;
}
.sidebar-nav::-webkit-scrollbar-thumb {
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 2px;
}

.sidebar-nav-item {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    border-radius: var(--border-radius-md);
    margin-bottom: 4px;
    text-decoration: none;
    color: var(--color-text-sidebar-inactive);
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.sidebar-nav-item i {
    margin-right: 12px;
    font-size: 16px;
    transition: transform 0.2s ease;
}

.sidebar-nav-item:hover {
    color: #ffffff;
    background-color: rgba(255, 255, 255, 0.05);
}

.sidebar-nav-item:hover i {
    transform: scale(1.1);
}

.sidebar-nav-item.active {
    background-color: var(--color-accent-blue);
    color: var(--color-text-sidebar-active);
    font-weight: 600;
    box-shadow: 0 4px 12px rgba(27, 98, 243, 0.3);
}

.sidebar-footer {
    padding: 15px 20px 0 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    font-size: 11px;
}

.sidebar-footer-title {
    color: #ffffff;
    font-weight: 700;
    font-size: 11px;
    margin-bottom: 5px;
    letter-spacing: 0.5px;
}

.sidebar-footer-address {
    line-height: 1.4;
    color: var(--color-text-sidebar-inactive);
    margin-bottom: 8px;
}

.sidebar-footer-phone {
    color: #ffffff;
    font-weight: 600;
    display: flex;
    align-items: center;
}

.sidebar-footer-phone i {
    margin-right: 6px;
    font-size: 10px;
}

/* Main Content Area */
main.main-content {
    margin-left: var(--sidebar-width);
    flex-grow: 1;
    padding: 24px;
    max-width: calc(100% - var(--sidebar-width));
}

/* Header Styling */
header.dashboard-header {
    background-color: var(--color-bg-card);
    border-radius: var(--border-radius-lg);
    padding: 16px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: var(--card-shadow);
    margin-bottom: 24px;
}

.header-brand {
    display: flex;
    align-items: center;
}

.header-logo-container {
    background-color: #f8fafc;
    border-radius: 8px;
    padding: 6px 10px;
    margin-right: 15px;
    border: 1px solid var(--color-border);
}

.header-logo-container i {
    font-size: 24px;
    color: #b91c1c; /* Rasi Red */
}

.header-title-block {
    display: flex;
    flex-direction: column;
}

.header-title {
    font-size: 20px;
    font-weight: 800;
    color: #0b1e42;
    letter-spacing: 0.5px;
}

.header-subtitle {
    font-size: 12px;
    color: var(--color-text-muted);
    font-weight: 500;
    margin-top: 2px;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.datepicker-container {
    display: flex;
    align-items: center;
    background-color: #f8fafc;
    border: 1px solid var(--color-border);
    border-radius: var(--border-radius-md);
    padding: 8px 12px;
    font-size: 13px;
    font-weight: 600;
    color: var(--color-text-dark);
}

.datepicker-container i {
    margin-left: 8px;
    color: var(--color-text-muted);
    font-size: 14px;
    cursor: pointer;
}

.branch-select {
    background-color: #f8fafc;
    border: 1px solid var(--color-border);
    border-radius: var(--border-radius-md);
    padding: 8px 16px;
    font-size: 13px;
    font-weight: 600;
    color: var(--color-text-dark);
    outline: none;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2224%22%20height%3D%2224%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22%2364748b%22%20stroke-width%3D%222%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpolyline%20points%3D%226%209%2012%2015%2018%209%22%3E%3C%2Fpolyline%3E%3C%2Fsvg%3E");
    background-repeat: no-repeat;
    background-position: right 8px center;
    background-size: 16px;
    padding-right: 28px;
}

.refresh-btn {
    background-color: #f8fafc;
    border: 1px solid var(--color-border);
    border-radius: var(--border-radius-md);
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--color-text-dark);
    transition: all 0.2s ease;
}

.refresh-btn:hover {
    background-color: var(--color-border);
}

.refresh-btn i {
    font-size: 16px;
}

/* KPI Cards Layout */
.kpi-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 12px;
    margin-bottom: 24px;
}

.kpi-card {
    background-color: var(--color-bg-card);
    border-radius: var(--border-radius-lg);
    padding: 12px 14px;
    box-shadow: var(--card-shadow);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 125px;
    border: 1px solid rgba(226, 232, 240, 0.8);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.kpi-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--hover-shadow);
}

.kpi-header {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    margin-bottom: 8px;
}

.kpi-icon-box {
    width: 32px;
    height: 32px;
    border-radius: var(--border-radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    flex-shrink: 0;
}

.kpi-icon-box i {
    font-size: 15px;
}

/* Custom KPI Icon Background Colors */
.kpi-sales-today { background-color: var(--color-accent-blue); }
.kpi-sales-mtd { background-color: var(--color-success); }
.kpi-target-mtd { background-color: var(--color-orange); }
.kpi-profit { background-color: var(--color-purple); }
.kpi-receivables { background-color: var(--color-info); }
.kpi-cash { background-color: var(--color-warning); }
.kpi-pending { background-color: var(--color-danger); }

.kpi-title-block {
    display: flex;
    flex-direction: column;
}

.kpi-title {
    font-size: 9px;
    font-weight: 700;
    color: var(--color-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.3px;
    margin-top: 1px;
}

.kpi-value {
    font-size: 16px;
    font-weight: 800;
    color: var(--color-text-dark);
    margin-top: 2px;
}

.kpi-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: auto;
    font-size: 10px;
    font-weight: 600;
    color: var(--color-text-muted);
    padding-top: 8px;
    border-top: 1px dashed rgba(226, 232, 240, 0.5);
}

.kpi-trend {
    display: flex;
    align-items: center;
    gap: 4px;
    font-weight: 700;
}

.kpi-trend.positive {
    color: var(--color-success);
}

.kpi-trend.negative {
    color: var(--color-danger);
}

/* Progress Bar inside KPI Card */
.kpi-progress-container {
    width: 100%;
    margin-top: 6px;
}

.kpi-progress-bar {
    height: 6px;
    background-color: #f1f5f9;
    border-radius: 3px;
    overflow: hidden;
}

.kpi-progress-fill {
    height: 100%;
    background-color: var(--color-accent-blue);
    border-radius: 3px;
    width: 0;
    transition: width 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.kpi-progress-label {
    display: flex;
    justify-content: space-between;
    font-size: 9px;
    color: var(--color-text-muted);
    margin-top: 3px;
    font-weight: 600;
}

/* Dashboard Section Grid Layouts */
.dashboard-row-two {
    display: grid;
    grid-template-columns: 2.2fr 1.6fr 1.6fr 1.8fr;
    gap: 16px;
    margin-bottom: 24px;
}

.dashboard-row-three {
    display: grid;
    grid-template-columns: 2.2fr 1.8fr 1.6fr 1.6fr;
    gap: 16px;
    margin-bottom: 24px;
}

.dashboard-row-four {
    display: grid;
    grid-template-columns: 1.6fr 1.6fr 2.2fr 1.8fr;
    gap: 16px;
    margin-bottom: 24px;
}

/* Dashboard Card Panels */
.dashboard-card {
    background-color: var(--color-bg-card);
    border-radius: var(--border-radius-lg);
    padding: 16px;
    box-shadow: var(--card-shadow);
    display: flex;
    flex-direction: column;
    border: 1px solid rgba(226, 232, 240, 0.8);
}

.card-title-block {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.card-title {
    font-size: 12px;
    font-weight: 700;
    color: var(--color-text-dark);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.card-title span.title-suffix {
    color: var(--color-text-muted);
    font-weight: 500;
    text-transform: none;
    font-size: 11px;
}

.card-filter-select {
    border: 1px solid var(--color-border);
    border-radius: var(--border-radius-sm);
    padding: 3px 8px;
    font-size: 11px;
    font-weight: 600;
    outline: none;
    background-color: #f8fafc;
    color: var(--color-text-muted);
    cursor: pointer;
}

.card-content {
    position: relative;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* Charts Containers heights */
.chart-container-large {
    height: 180px;
    width: 100%;
}

.chart-container-medium {
    height: 150px;
    width: 100%;
}

/* Row 2 Custom Layouts */
/* Sales Category Split */
.category-split-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.donut-chart-wrapper {
    width: 110px;
    height: 110px;
    position: relative;
}

.donut-legend-vertical {
    display: flex;
    flex-direction: column;
    gap: 6px;
    flex-grow: 1;
}

.legend-item-vertical {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 11px;
    font-weight: 600;
    color: var(--color-text-dark);
}

.legend-item-left {
    display: flex;
    align-items: center;
    gap: 6px;
}

.legend-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
}

.legend-pct {
    color: var(--color-text-muted);
    font-weight: 500;
}

/* Top 10 Customers List */
.customer-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    max-height: 200px;
    overflow-y: auto;
    padding-right: 4px;
}

.customer-list::-webkit-scrollbar {
    width: 3px;
}
.customer-list::-webkit-scrollbar-thumb {
    background-color: var(--color-border);
    border-radius: 2px;
}

.customer-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 12px;
    font-weight: 600;
    padding: 6px 8px;
    border-radius: var(--border-radius-sm);
    background-color: #f8fafc;
    border-left: 3px solid var(--color-accent-blue);
    transition: background-color 0.2s ease;
}

.customer-item:hover {
    background-color: #f1f5f9;
}

.customer-name-wrapper {
    display: flex;
    align-items: center;
    gap: 8px;
}

.customer-rank {
    font-size: 10px;
    color: var(--color-text-muted);
    font-weight: 700;
    width: 15px;
}

.customer-name {
    color: var(--color-text-dark);
}

.customer-value {
    color: var(--color-text-dark);
    font-weight: 700;
}

/* Top 10 Sales Executives Table */
.executives-table-container {
    width: 100%;
    overflow-x: auto;
}

.executives-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 12px;
    text-align: left;
}

.executives-table th {
    font-weight: 700;
    color: var(--color-text-muted);
    padding: 8px;
    border-bottom: 1px solid var(--color-border);
}

.executives-table td {
    padding: 8px;
    border-bottom: 1px solid #f1f5f9;
    font-weight: 600;
}

.executives-table tr:last-child td {
    border-bottom: none;
}

.exec-progress-wrapper {
    display: flex;
    align-items: center;
    gap: 8px;
}

.exec-progress-bar {
    width: 60px;
    height: 6px;
    background-color: #f1f5f9;
    border-radius: 3px;
    overflow: hidden;
}

.exec-progress-fill {
    height: 100%;
    background-color: var(--color-accent-blue);
    border-radius: 3px;
}

.exec-progress-percent {
    font-size: 11px;
    font-weight: 700;
    width: 30px;
    text-align: right;
}

/* Inventory Overview Mini Grid */
.inventory-overview-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    flex-grow: 1;
}

.inventory-mini-card {
    background-color: #f8fafc;
    border-radius: var(--border-radius-md);
    padding: 8px 10px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    border: 1px solid var(--color-border);
    transition: transform 0.2s ease;
}

.inventory-mini-card:hover {
    transform: translateY(-1px);
    background-color: #f1f5f9;
}

.inv-mini-header {
    font-size: 8px;
    font-weight: 700;
    color: var(--color-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.3px;
    margin-bottom: 6px;
}

.inv-mini-content {
    display: flex;
    align-items: center;
    gap: 6px;
}

.inv-mini-icon-circle {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 10px;
}

.inv-mini-val {
    font-size: 12px;
    font-weight: 800;
    color: var(--color-text-dark);
}

.bg-light-purple { background-color: #f3e8ff; color: #a855f7; }
.bg-light-orange { background-color: #ffedd5; color: #f97316; }
.bg-light-red { background-color: #fee2e2; color: #ef4444; }
.bg-light-green { background-color: #d1fae5; color: #10b981; }
.bg-light-yellow { background-color: #fef9c3; color: #eab308; }
.bg-light-grey { background-color: #f1f5f9; color: #64748b; }

.circle-purple { background-color: #8b5cf6; }
.circle-orange { background-color: #f97316; }
.circle-red { background-color: #ef4444; }
.circle-green { background-color: #10b981; }
.circle-yellow { background-color: #eab308; }
.circle-grey { background-color: #64748b; }

/* Alerts Widget */
.alerts-list {
    display: flex;
    flex-direction: column;
    gap: 6px;
    max-height: 210px;
    overflow-y: auto;
    padding-right: 2px;
}

.alerts-list::-webkit-scrollbar {
    width: 3px;
}
.alerts-list::-webkit-scrollbar-thumb {
    background-color: var(--color-border);
    border-radius: 2px;
}

.alert-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 11px;
    font-weight: 600;
    padding: 6px 10px;
    border-radius: var(--border-radius-sm);
    border: 1px solid transparent;
}

.alert-item i {
    font-size: 12px;
    flex-shrink: 0;
}

.alert-danger {
    background-color: #fee2e2;
    border-color: #fca5a5;
    color: #b91c1c;
}

.alert-warning {
    background-color: #fef3c7;
    border-color: #fcd34d;
    color: #b45309;
}

.alert-info {
    background-color: #ecfeff;
    border-color: #a5f3fc;
    color: #0e7490;
}

.alert-success {
    background-color: #d1fae5;
    border-color: #6ee7b7;
    color: #047857;
}

/* Outstanding Summary Donut Details */
.outstanding-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

.outstanding-chart-wrapper {
    width: 90px;
    height: 90px;
}

.outstanding-details {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.outstanding-detail-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 11px;
    font-weight: 600;
}

.outstanding-label-group {
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--color-text-muted);
}

.outstanding-val {
    color: var(--color-text-dark);
    font-weight: 700;
}

/* Purchase Overview Cards */
.purchase-overview-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.purchase-overview-item {
    display: flex;
    align-items: center;
    background-color: #f8fafc;
    border: 1px solid var(--color-border);
    border-radius: var(--border-radius-md);
    padding: 8px 12px;
    gap: 10px;
}

.purchase-overview-icon {
    width: 28px;
    height: 28px;
    border-radius: var(--border-radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #eff6ff;
    color: var(--color-accent-blue);
    font-size: 13px;
}

.purchase-overview-info {
    display: flex;
    flex-direction: column;
}

.purchase-overview-label {
    font-size: 8px;
    font-weight: 700;
    color: var(--color-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.purchase-overview-value {
    font-size: 13px;
    font-weight: 800;
    color: var(--color-text-dark);
}

/* Financial Summary grid layout */
.financial-summary-grid {
    display: flex;
    flex-direction: column;
    gap: 8px;
    height: 100%;
    justify-content: space-between;
}

.fin-row-top {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
}

.fin-card {
    background-color: #f8fafc;
    border: 1px solid var(--color-border);
    border-radius: var(--border-radius-md);
    padding: 8px 10px;
    text-align: center;
}

.fin-card-label {
    font-size: 8px;
    font-weight: 700;
    color: var(--color-text-muted);
    text-transform: uppercase;
    margin-bottom: 2px;
}

.fin-card-val {
    font-size: 12px;
    font-weight: 800;
    color: var(--color-text-dark);
}

.fin-row-middle {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
}

.fin-card-accent {
    border: 1px solid transparent;
    border-radius: var(--border-radius-md);
    padding: 8px 10px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.fin-card-green {
    background-color: #d1fae5;
    border-color: #6ee7b7;
    color: #047857;
}

.fin-card-green .fin-card-val { color: #047857; }

.fin-card-blue {
    background-color: #eff6ff;
    border-color: #93c5fd;
    color: #1e40af;
}

.fin-card-blue .fin-card-val { color: #1e40af; }

.fin-card-subtext {
    font-size: 9px;
    font-weight: 700;
    margin-top: 3px;
}

.fin-row-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background-color: #f8fafc;
    border: 1px dashed var(--color-border);
    border-radius: var(--border-radius-md);
    padding: 8px 12px;
    font-size: 11px;
    font-weight: 700;
}

.fin-row-bottom span:first-child {
    color: var(--color-text-muted);
}

.fin-row-bottom span:last-child {
    color: var(--color-text-dark);
    font-weight: 800;
    font-size: 12px;
}

/* Footer Section */
footer.dashboard-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 10px;
    padding-top: 15px;
    border-top: 1px solid var(--color-border);
    font-size: 11px;
    font-weight: 600;
    color: var(--color-text-muted);
}

.footer-left {
    display: flex;
    align-items: center;
    gap: 5px;
}

.footer-right {
    display: flex;
    align-items: center;
    gap: 8px;
}

.footer-refresh-mini {
    cursor: pointer;
    font-size: 12px;
    transition: transform 0.2s ease;
}

.footer-refresh-mini:hover {
    transform: rotate(180deg);
}

/* RESPONSIVE LAYOUT ADJUSTMENTS */
@media (max-width: 1400px) {
    .kpi-grid {
        grid-template-columns: repeat(4, 1fr);
    }
    .kpi-card:last-child {
        grid-column: span 2;
    }
    .dashboard-row-two, .dashboard-row-three, .dashboard-row-four {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 992px) {
    aside.sidebar {
        width: 70px;
        padding: 15px 0;
    }
    .sidebar-logo-text, .sidebar-logo-subtext, .sidebar-nav-item span, .sidebar-footer {
        display: none;
    }
    .sidebar-logo {
        padding: 0;
        margin-bottom: 15px;
        border-bottom: none;
    }
    .sidebar-nav-item {
        justify-content: center;
        padding: 12px;
    }
    .sidebar-nav-item i {
        margin-right: 0;
        font-size: 20px;
    }
    main.main-content {
        margin-left: 70px;
        max-width: calc(100% - 70px);
        padding: 15px;
    }
    .kpi-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .kpi-card:last-child {
        grid-column: auto;
    }
}

@media (max-width: 768px) {
    .dashboard-row-two, .dashboard-row-three, .dashboard-row-four {
        grid-template-columns: 1fr;
    }
    .kpi-grid {
        grid-template-columns: 1fr;
    }
    header.dashboard-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
    .header-actions {
        width: 100%;
        justify-content: space-between;
    }
}
