/* ============================================================================
   Dashboard Summary — premium light theme · Nunito · 14px root
   Theme tokens scoped to .dashboard-summary so they don't leak globally.
   ============================================================================ */

.dashboard-summary {
    /* ── Palette ── */
    --ds-card-bg: #ffffff;
    --ds-card-border: var(--rz-base-300, #e4e6eb);
    --ds-card-border-hov: var(--rz-base-400, #d4d6dd);
    --ds-card-shadow: 0 1px 3px rgba(15, 23, 42, 0.04), 0 1px 2px rgba(15, 23, 42, 0.03);
    --ds-card-shadow-hov: 0 8px 22px rgba(15, 23, 42, 0.10), 0 3px 8px rgba(15, 23, 42, 0.05);
    --ds-title: #4a5260;
    --ds-amount: #0f172a;
    --ds-sub: #6b7280;
    --ds-section: #6b7280;
    --ds-up: #16a34a;
    --ds-down: #dc2626;
    --ds-overdue: #dc2626;
    --ds-chip-bg: #ffffff;
    --ds-chip-text: #1a1d21;
    --ds-chip-border: var(--rz-base-300, #e4e6eb);
    --ds-chip-active-bg: #0f172a;
    --ds-chip-active-text: #ffffff;
    --ds-chip-active-border: #0f172a;
    font-family: "Nunito", sans-serif;
    color: var(--ds-amount);
    display: flex;
    flex-direction: column;
    gap: 10px;
}

/* ─────────────────────────────────────────────────────────────────────────
   ENTRANCE ANIMATION
   ───────────────────────────────────────────────────────────────────────── */
@keyframes ds-fade-up {
    from {
        opacity: 0;
        transform: translateY(8px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.dashboard-summary .ds-card,
.dashboard-summary .ds-chart-card,
.dashboard-summary .ds-twin-band {
    animation: ds-fade-up 0.45s cubic-bezier(0.16, 1, 0.3, 1) backwards;
}

/* Stagger child cards subtly */
.dashboard-summary .ds-grid > .ds-card:nth-child(1) {
    animation-delay: 0.02s;
}

.dashboard-summary .ds-grid > .ds-card:nth-child(2) {
    animation-delay: 0.05s;
}

.dashboard-summary .ds-grid > .ds-card:nth-child(3) {
    animation-delay: 0.08s;
}

.dashboard-summary .ds-grid > .ds-card:nth-child(4) {
    animation-delay: 0.11s;
}

.dashboard-summary .ds-grid > .ds-card:nth-child(5) {
    animation-delay: 0.14s;
}

.dashboard-summary .ds-grid > .ds-card:nth-child(6) {
    animation-delay: 0.17s;
}

.dashboard-summary .ds-grid > .ds-card:nth-child(7) {
    animation-delay: 0.20s;
}

.dashboard-summary .ds-grid > .ds-card:nth-child(8) {
    animation-delay: 0.23s;
}

/* ─────────────────────────────────────────────────────────────────────────
   PERIOD CHIP BAR
   ───────────────────────────────────────────────────────────────────────── */
.dashboard-summary .ds-period-bar {
    display: flex;
    align-items: center;
    justify-content: end;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 2px;
}

.dashboard-summary .ds-chip {
    background: var(--ds-chip-bg);
    color: var(--ds-chip-text);
    border: 1px solid var(--ds-chip-border);
    border-radius: 5px;
    padding: 7px 18px;
    font-size: 0.8125rem;
    font-weight: 700;
    font-family: inherit;
    cursor: pointer;
    transition: all 180ms cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.03);
    line-height: 1.2;
}

    .dashboard-summary .ds-chip:hover {
        background: #f4f5f9;
        border-color: var(--ds-card-border-hov);
        transform: translateY(-1px);
    }

    .dashboard-summary .ds-chip.active {
        background: var(--ds-chip-active-bg);
        color: var(--ds-chip-active-text);
        border-color: var(--ds-chip-active-border);
        box-shadow: 0 4px 12px rgba(15, 23, 42, 0.22);
    }

.dashboard-summary .ds-period-range {
    color: var(--ds-sub);
    font-size: 0.8125rem;
    font-weight: 600;
    margin-left: 6px;
    padding: 5px 12px;
    background: #f4f5f9;
    border-radius: 8px;
}

/* ─────────────────────────────────────────────────────────────────────────
   TWIN BAND — Profit & Loss + Financial Position side by side
   ───────────────────────────────────────────────────────────────────────── */
.dashboard-summary .ds-twin-band {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 0;
    overflow: hidden;
}

.dashboard-summary .ds-band-panel {
    padding: 15px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    background: #fff;
    margin: 0 4px;
    border: 1px solid var(--ds-card-border);
    border-radius: 8px;
}

/* Vertical rule between the two panels */
.dashboard-summary .ds-band-divider {
    width: 1px;
    background: linear-gradient( 180deg, transparent 0%, var(--ds-card-border) 15%, var(--ds-card-border) 85%, transparent 100% );
    margin: 16px 0;
    flex-shrink: 0;
}

/* Cards inside a band panel sit flush — no extra card shadow,
   the band container is the visual unit */
.dashboard-summary .ds-band-panel .ds-card {
    box-shadow: none;
    border-color: var(--ds-card-border);
}

/* ─────────────────────────────────────────────────────────────────────────
   SECTION HEADING
   ───────────────────────────────────────────────────────────────────────── */
.dashboard-summary .ds-section-title {
    color: #000;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.10em;
    text-transform: uppercase;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 5px 0;
    background: #f4f5f9;
    border-radius: 5px;
}

    .dashboard-summary .ds-section-title::before {
        content: "";
        width: 4px;
        height: 16px;
        border-radius: 2px;
        background: linear-gradient(180deg, #0f172a 0%, #64748b 100%);
    }

/* Section title inside a band panel needs no top margin */
.dashboard-summary .ds-band-panel .ds-section-title {
    margin: 0px;
}

/* ─────────────────────────────────────────────────────────────────────────
   KPI GRID + CARDS
   ───────────────────────────────────────────────────────────────────────── */
.dashboard-summary .ds-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 12px;
}

    .dashboard-summary .ds-grid.ds-grid-3 {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

.dashboard-summary .ds-card {
    background: var(--ds-card-bg);
    border: 1px solid var(--ds-card-border);
    border-radius: 8px;
    padding: 10px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    height: auto;
    box-shadow: var(--ds-card-shadow);
    transition: box-shadow 220ms ease, border-color 220ms ease, transform 220ms ease;
    position: relative;
    overflow: hidden;
    contain: layout style;
}

/* Clickable KPI card (drill-down entry, e.g. Revenue → Sales by Category) */
.dashboard-summary .ds-card.ds-card-clickable {
    cursor: pointer;
}

    .dashboard-summary .ds-card.ds-card-clickable:hover {
        transform: translateY(-2px);
        box-shadow: 0 6px 18px rgba(0, 0, 0, 0.10);
        border-color: var(--ds-accent-blue, #2563eb);
    }

    /* Top accent stripe */
    .dashboard-summary .ds-card::before {
        content: "";
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        height: 3px;
        background: linear-gradient(90deg, transparent 0%, #cbd5e1 50%, transparent 100%);
        opacity: 0.7;
        transition: opacity 220ms ease;
    }

    .dashboard-summary .ds-card:has(.ds-accent-blue)::before {
        background: linear-gradient(90deg, #60a5fa, #2563eb, #60a5fa);
    }

    .dashboard-summary .ds-card:has(.ds-accent-teal)::before {
        background: linear-gradient(90deg, #5eead4, #0d9488, #5eead4);
    }

    .dashboard-summary .ds-card:has(.ds-accent-orange)::before {
        background: linear-gradient(90deg, #fdba74, #ea580c, #fdba74);
    }

    .dashboard-summary .ds-card:has(.ds-accent-green)::before {
        background: linear-gradient(90deg, #86efac, #16a34a, #86efac);
    }

    .dashboard-summary .ds-card:has(.ds-accent-purple)::before {
        background: linear-gradient(90deg, #c4b5fd, #7c3aed, #c4b5fd);
    }

    .dashboard-summary .ds-card:has(.ds-accent-red)::before {
        background: linear-gradient(90deg, #fca5a5, #dc2626, #fca5a5);
    }

    .dashboard-summary .ds-card:has(.ds-accent-amber)::before {
        background: linear-gradient(90deg, #fcd34d, #d97706, #fcd34d);
    }

    .dashboard-summary .ds-card:has(.ds-accent-cyan)::before {
        background: linear-gradient(90deg, #67e8f9, #0891b2, #67e8f9);
    }

    .dashboard-summary .ds-card:hover {
        border-color: var(--ds-card-border-hov);
        box-shadow: var(--ds-card-shadow-hov);
        transform: translateY(-3px);
    }

        .dashboard-summary .ds-card:hover::before {
            opacity: 1;
        }

.dashboard-summary .ds-card-head {
    display: flex;
    align-items: center;
    gap: 11px;
    margin-bottom: 2px;
}

.dashboard-summary .ds-icon {
    width: 38px;
    height: 38px;
    border-radius: 6px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    flex-shrink: 0;
    box-shadow: 0 2px 6px rgba(15, 23, 42, 0.06);
    font-weight:200;
}

    .dashboard-summary .ds-icon .rzi,
    .dashboard-summary .ds-icon i,
    .dashboard-summary .ds-icon .notranslate {
        font-size: 20px;
        line-height: 1;
    }

.dashboard-summary .ds-title {
    color: #000;
    font-size: 0.825rem;
    font-weight: 700;
    line-height: 1.2;
}

.dashboard-summary .ds-amount {
    color: var(--ds-amount);
    font-size: 1.55rem;
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.02em;
    margin: 9px 0 3px 0;
}

.dashboard-summary .ds-sub {
    color: var(--ds-sub);
    font-size: 0.78rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 5px;
    flex-wrap: wrap;
    line-height: 1.5;
}

.dashboard-summary .ds-trend-up {
    color: var(--ds-up);
    font-weight: 800;
}

.dashboard-summary .ds-trend-down {
    color: var(--ds-down);
    font-weight: 800;
}

.dashboard-summary .ds-overdue {
    color: var(--ds-overdue);
    font-weight: 800;
}

/* ----- Per-card accent palettes (gradient icon tiles) ----- */
.dashboard-summary .ds-accent-blue {
    background: linear-gradient(135deg, #dbeafe 0%, #93c5fd 100%);
    color: #1d4ed8;
}

.dashboard-summary .ds-accent-teal {
    background: linear-gradient(135deg, #ccfbf1 0%, #5eead4 100%);
    color: #0f766e;
}

.dashboard-summary .ds-accent-orange {
    background: linear-gradient(135deg, #fed7aa 0%, #fb923c 100%);
    color: #c2410c;
}

.dashboard-summary .ds-accent-green {
    background: linear-gradient(135deg, #dcfce7 0%, #86efac 100%);
    color: #15803d;
}

.dashboard-summary .ds-accent-purple {
    background: linear-gradient(135deg, #ede9fe 0%, #c4b5fd 100%);
    color: #6d28d9;
}

.dashboard-summary .ds-accent-red {
    background: linear-gradient(135deg, #fee2e2 0%, #fca5a5 100%);
    color: #b91c1c;
}

.dashboard-summary .ds-accent-amber {
    background: linear-gradient(135deg, #fef3c7 0%, #fcd34d 100%);
    color: #b45309;
}

.dashboard-summary .ds-accent-cyan {
    background: linear-gradient(135deg, #cffafe 0%, #67e8f9 100%);
    color: #0e7490;
}

/* ─────────────────────────────────────────────────────────────────────────
   CHART CARDS
   ───────────────────────────────────────────────────────────────────────── */
.dashboard-summary .ds-chart-card {
    background: var(--ds-card-bg);
    border: 1px solid var(--ds-card-border);
    border-radius: 8px;
    padding: 15px;
    box-shadow: var(--ds-card-shadow);
    transition: box-shadow 220ms ease, border-color 220ms ease;
    content-visibility: auto;
    contain-intrinsic-size: auto 400px;
}

    .dashboard-summary .ds-chart-card:hover {
        box-shadow: var(--ds-card-shadow-hov);
        border-color: var(--ds-card-border-hov);
    }

.dashboard-summary .ds-chart-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 14px;
    gap: 10px;
}

.dashboard-summary .ds-chart-title {
    color: var(--ds-amount);
    font-size: 1.0625rem;
    font-weight: 800;
    letter-spacing: -0.015em;
}

.dashboard-summary .ds-chart-subtitle {
    color: var(--ds-sub);
    font-size: 0.8rem;
    font-weight: 600;
    margin-top: 3px;
}

.dashboard-summary .ds-chart-empty {
    color: var(--ds-sub);
    font-size: 0.875rem;
    font-weight: 600;
    text-align: center;
    padding: 48px 16px;
    background: linear-gradient(180deg, transparent 0%, #fafbfd 100%);
    border-radius: 10px;
}

/* ----- Chart row layout: two equal columns ----- */
.dashboard-summary .ds-chart-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

/* ─────────────────────────────────────────────────────────────────────────
   EXPENSE BREAKDOWN — horizontal bar list
   ───────────────────────────────────────────────────────────────────────── */
.dashboard-summary .eb-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
    padding: 8px 0 4px;
}

.dashboard-summary .eb-row {
    display: flex;
    align-items: center;
    gap: 12px;
}

.dashboard-summary .eb-name {
    width: 80px;
    font-size: 0.8125rem;
    font-weight: 700;
    color: var(--ds-amount);
    flex-shrink: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.dashboard-summary .eb-track {
    flex: 1;
    height: 10px;
    background: #f0f1f5;
    border-radius: 99px;
    overflow: hidden;
    box-shadow: inset 0 1px 2px rgba(15, 23, 42, 0.05);
}

.dashboard-summary .eb-bar {
    height: 100%;
    background: linear-gradient(90deg, #fbbf24 0%, #f59e0b 100%);
    border-radius: 99px;
    min-width: 6px;
    transition: width 0.7s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 1px 3px rgba(245, 158, 11, 0.35);
}

.dashboard-summary .eb-value {
    width: 56px;
    font-size: 0.8125rem;
    font-weight: 800;
    color: #4a5260;
    text-align: right;
    flex-shrink: 0;
}

/* ─────────────────────────────────────────────────────────────────────────
   AGEING CARD
   ───────────────────────────────────────────────────────────────────────── */
.dashboard-summary .ag-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 28px;
}

.dashboard-summary .ag-section-head {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 16px;
    padding-bottom: 10px;
    border-bottom: 1px solid #f0f1f5;
}

.dashboard-summary .ag-section-title {
    font-size: 0.9rem;
    font-weight: 800;
    color: var(--ds-amount);
}

.dashboard-summary .ag-section-total {
    font-size: 1.3rem;
    font-weight: 800;
    color: var(--ds-amount);
    letter-spacing: -0.02em;
}

.dashboard-summary .ag-buckets {
    display: flex;
    flex-direction: column;
    gap: 11px;
}

.dashboard-summary .ag-bucket {
    display: flex;
    align-items: center;
    gap: 12px;
}

.dashboard-summary .ag-bucket-label {
    width: 64px;
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--ds-sub);
    flex-shrink: 0;
}

.dashboard-summary .ag-track {
    flex: 1;
    height: 8px;
    background: #f0f1f5;
    border-radius: 99px;
    overflow: hidden;
    box-shadow: inset 0 1px 2px rgba(15, 23, 42, 0.05);
}

.dashboard-summary .ag-bar {
    height: 100%;
    border-radius: 99px;
    min-width: 4px;
    transition: width 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

.dashboard-summary .ag-bar-current {
    background: linear-gradient(90deg, #4ade80 0%, #16a34a 100%);
    box-shadow: 0 1px 2px rgba(22, 163, 74, 0.3);
}

.dashboard-summary .ag-bar-d3160 {
    background: linear-gradient(90deg, #fbbf24 0%, #f59e0b 100%);
    box-shadow: 0 1px 2px rgba(245, 158, 11, 0.3);
}

.dashboard-summary .ag-bar-d6190 {
    background: linear-gradient(90deg, #fb923c 0%, #ea580c 100%);
    box-shadow: 0 1px 2px rgba(234, 88, 12, 0.3);
}

.dashboard-summary .ag-bar-over90 {
    background: linear-gradient(90deg, #f87171 0%, #dc2626 100%);
    box-shadow: 0 1px 2px rgba(220, 38, 38, 0.3);
}

.dashboard-summary .ag-bucket-amt {
    width: 64px;
    font-size: 0.8125rem;
    font-weight: 800;
    color: var(--ds-amount);
    text-align: right;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 4px;
}

.dashboard-summary .ag-warn {
    color: var(--ds-down);
    font-size: 0.85rem;
    line-height: 1;
}

.dashboard-summary .ag-divider {
    border: none;
    border-top: 1px dashed #e4e6eb;
    margin: 18px 0 14px;
}

.dashboard-summary .ag-overdue-title {
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--ds-sub);
    margin-bottom: 10px;
}

.dashboard-summary .ag-overdue-list {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.dashboard-summary .ag-overdue-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 6px 8px;
    border-radius: 8px;
    transition: background 140ms ease;
}

    .dashboard-summary .ag-overdue-item:hover {
        background: #fafbfd;
    }

.dashboard-summary .ag-overdue-name {
    flex: 1;
    font-size: 0.8125rem;
    font-weight: 700;
    color: var(--ds-amount);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    min-width: 0;
}

.dashboard-summary .ag-overdue-amt {
    font-size: 0.8125rem;
    font-weight: 800;
    color: var(--ds-amount);
    flex-shrink: 0;
}

.dashboard-summary .ag-days-badge {
    font-size: 0.7rem;
    font-weight: 800;
    padding: 3px 9px;
    border-radius: 99px;
    flex-shrink: 0;
    white-space: nowrap;
    letter-spacing: 0.02em;
}

.dashboard-summary .ag-days-green {
    background: #dcfce7;
    color: #16a34a;
}

.dashboard-summary .ag-days-amber {
    background: #fef3c7;
    color: #d97706;
}

.dashboard-summary .ag-days-orange {
    background: #ffedd5;
    color: #ea580c;
}

.dashboard-summary .ag-days-red {
    background: #fee2e2;
    color: #dc2626;
}

/* ─────────────────────────────────────────────────────────────────────────
   LOW STOCK — summary chips
   ───────────────────────────────────────────────────────────────────────── */
.dashboard-summary .ls-summary {
    display: flex;
    gap: 10px;
    margin-bottom: 14px;
    flex-wrap: wrap;
}

.dashboard-summary .ls-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: #f4f5f9;
    border: 1px solid transparent;
    border-radius: 6px;
    padding: 5px 15px;
    transition: transform 180ms ease, box-shadow 180ms ease;
}

    .dashboard-summary .ls-stat:hover {
        transform: translateY(-2px);
        border: 1px solid #c7c7c7;
    }

.dashboard-summary .ls-stat-oos {
    background: linear-gradient(135deg, #fee2e2 0%, #fecaca 100%);
    border-color: #fecaca;
}

.dashboard-summary .ls-stat-low {
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    border-color: #fde68a;
}

.dashboard-summary .ls-stat-value {
    font-size: 18px;
    font-weight: 800;
    color: var(--ds-amount);
    line-height: 1.1;
    letter-spacing: -0.02em;
}

.dashboard-summary .ls-stat-label {
    font-size: 0.68rem;
    font-weight: 800;
    color: #000;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    text-align:center;
    margin-top: 3px;
}

/* ─────────────────────────────────────────────────────────────────────────
   LOW STOCK — Radzen DataGrid overrides (scoped via .ls-grid)
   ───────────────────────────────────────────────────────────────────────── */
.dashboard-summary .ls-grid {
    border: 1px solid #eef0f4;
    border-radius: 12px;
    overflow: hidden;
    font-family: "Nunito", sans-serif;
}

    .dashboard-summary .ls-grid .rz-data-grid,
    .dashboard-summary .ls-grid .rz-grid-table {
        border: none;
        background: transparent;
    }

        .dashboard-summary .ls-grid .rz-grid-table thead,
        .dashboard-summary .ls-grid .rz-data-grid-header {
            background: #fafbfd;
        }

            .dashboard-summary .ls-grid .rz-grid-table thead th,
            .dashboard-summary .ls-grid .rz-data-grid-header .rz-column-title-content {
                color: var(--ds-sub) !important;
                font-weight: 800 !important;
                font-size: 0.7rem !important;
                text-transform: uppercase !important;
                letter-spacing: 0.08em !important;
                font-family: "Nunito", sans-serif !important;
            }

            .dashboard-summary .ls-grid .rz-grid-table thead th {
                border-bottom: 1px solid #eef0f4 !important;
                padding: 11px 12px !important;
            }

        .dashboard-summary .ls-grid .rz-grid-table tbody td,
        .dashboard-summary .ls-grid .rz-data-row td {
            border-bottom: 1px solid #f4f5f9 !important;
            padding: 5px 8px !important;
            font-size: 0.8125rem !important;
            color: var(--ds-amount) !important;
            font-family: "Nunito", sans-serif !important;
            vertical-align: middle !important;
        }

        .dashboard-summary .ls-grid .rz-grid-table tbody tr:hover {
            background: #fafbfd !important;
        }

    .dashboard-summary .ls-grid .ls-row-oos td:first-child {
        border-left: 3px solid #dc2626;
        padding-left: 9px !important;
    }

    .dashboard-summary .ls-grid .ls-row-low td:first-child {
        border-left: 3px solid #f59e0b;
        padding-left: 9px !important;
    }

    .dashboard-summary .ls-grid .rz-pager,
    .dashboard-summary .ls-grid .rz-paginator {
        background: #fafbfd;
        border-top: 1px solid #eef0f4;
        padding: 8px 12px;
    }

    .dashboard-summary .ls-grid .rz-paginator-element,
    .dashboard-summary .ls-grid .rz-paginator-pages .rz-paginator-page {
        font-family: "Nunito", sans-serif !important;
        font-weight: 700;
        border-radius: 7px;
    }

        .dashboard-summary .ls-grid .rz-paginator-pages .rz-paginator-page.rz-state-active {
            background: #0f172a;
            color: #ffffff;
            border-color: #0f172a;
            box-shadow: 0 2px 6px rgba(15, 23, 42, 0.2);
        }

.dashboard-summary .ls-part-no {
    font-weight: 800;
    color: #2563eb;
    font-size: 0.8125rem;
    white-space: nowrap;
}

.dashboard-summary .ls-desc-cell {
    display: flex;
    align-items: center;
    gap: 10px;
}

.dashboard-summary .ls-thumb {
    width: 38px;
    height: 38px;
    border-radius: 8px;
    object-fit: cover;
    flex-shrink: 0;
    border: 1px solid #e4e6eb;
}

.dashboard-summary .ls-thumb-placeholder {
    width: 20px;
    height: 20px;
    border-radius: 2px;
    background: linear-gradient(135deg, #f4f5f9 0%, #e9eaed 100%);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: #9ca3af;
    font-size: 19px;
}

.dashboard-summary .ls-thumb-placeholder i.rzi
{
    font-size: 10px !important;
}

.dashboard-summary .ls-desc {
    font-weight: 700;
    color: var(--ds-amount);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.dashboard-summary .ls-mrp {
    font-weight: 800;
    white-space: nowrap;
}

.dashboard-summary .ls-stock {
    font-weight: 800;
    font-size: 0.95rem;
}

.dashboard-summary .ls-stock-zero {
    color: var(--ds-down);
}

.dashboard-summary .ls-stock-low {
    color: #d97706;
}

.dashboard-summary .ls-badge {
    display: inline-block;
    padding: 4px 11px;
    border-radius: 99px;
    font-size: 0.7rem;
    font-weight: 800;
    white-space: nowrap;
    letter-spacing: 0.02em;
}

.dashboard-summary .ls-badge-oos {
    background: #fee2e2;
    color: #dc2626;
}

.dashboard-summary .ls-badge-low {
    background: #fef3c7;
    color: #d97706;
}

.dashboard-summary .ls-warehouses {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
}

.dashboard-summary .ls-wh-chip {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: #f4f5f9;
    border-radius: 6px;
    padding: 3px 9px;
    font-size: 0.72rem;
    font-weight: 700;
    color: #4a5260;
    white-space: nowrap;
}

.dashboard-summary .ls-wh-qty {
    font-weight: 800;
    color: var(--ds-amount);
}

/* ============================================================================
   RESPONSIVE BREAKPOINTS
   ============================================================================ */
@media (max-width: 1280px) {
    .dashboard-summary .ds-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }

    .dashboard-summary .ds-period-bar {
        justify-content: center;
        margin-top: 10px;
    }

    .chart-mobile-responsive .ag-buckets {
        width: 95% !important;
    }

    .chart-mobile-responsive .ag-section-head {
        width: 95% !important;
    }

    .chart-mobile-responsive .ds-chart-col .ds-chart-card {
        width: 100%;
    }
}

@media (max-width: 1100px) {
    .dashboard-summary .ds-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .dashboard-summary .ds-period-bar {
        justify-content: center;
        margin-top: 10px;
    }

    .chart-mobile-responsive .ag-buckets {
        width: 95% !important;
    }

    .chart-mobile-responsive .ag-section-head {
        width: 95% !important;
    }

    .chart-mobile-responsive .ds-chart-col .ds-chart-card {
        width: 100%;
    }
}

/* Twin band stacks vertically on tablet */
@media (max-width: 960px) {
    .dashboard-summary .ds-twin-band {
        grid-template-columns: 1fr;
        grid-template-rows: auto auto auto;
    }

    .dashboard-summary .ds-band-divider {
        width: auto;
        height: 1px;
        margin: 0 20px;
        background: linear-gradient( 90deg, transparent 0%, var(--ds-card-border) 15%, var(--ds-card-border) 85%, transparent 100% );
    }

    .dashboard-summary .ds-period-bar {
        justify-content: center;
        margin-top: 10px;
    }

    .chart-mobile-responsive .ag-buckets {
        width: 95% !important;
    }

    .chart-mobile-responsive .ag-section-head {
        width: 95% !important;
    }

    .chart-mobile-responsive .ds-chart-col .ds-chart-card {
        width: 100%;
    }
}

@media (max-width: 900px) {
    .dashboard-summary .ds-grid,
    .dashboard-summary .ds-grid.ds-grid-3 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .dashboard-summary .ds-chart-row {
        grid-template-columns: 1fr;
    }

    .dashboard-summary .ag-grid {
        grid-template-columns: 1fr;
        gap: 20px;
        display: block;
    }

    .dashboard-summary .ag-grid > .ag-section + .ag-section {
        padding-top: 18px;
        border-top: 1px solid #f0f1f5;
    }

    .dashboard-summary .ds-period-bar {
        justify-content: center;
        margin-top: 10px;
    }

    .chart-mobile-responsive .ag-buckets {
        width: 95% !important;
    }

    .chart-mobile-responsive .ag-section-head {
        width: 95% !important;
    }

    .chart-mobile-responsive .ds-chart-col .ds-chart-card {
        width: 100%;
    }
}

@media (max-width: 560px) {
    .dashboard-summary {
        gap: 10px;
    }

        .dashboard-summary .ds-grid,
        .dashboard-summary .ds-grid.ds-grid-3 {
            grid-template-columns: repeat(2, minmax(0, 1fr));
            gap: 10px;
        }

        .dashboard-summary .ds-band-panel {
            padding: 14px 14px 12px;
            margin-bottom:10px;
        }

        .dashboard-summary .ds-card {
            min-height: 110px;
            padding: 12px 13px 10px;
            border-radius: 12px;
        }

        .dashboard-summary .ds-card-head {
            gap: 8px;
            margin-bottom: 0;
        }

        .dashboard-summary .ds-icon {
            width: 32px;
            height: 32px;
            border-radius: 8px;
        }

            .dashboard-summary .ds-icon .rzi,
            .dashboard-summary .ds-icon i,
            .dashboard-summary .ds-icon .notranslate {
                font-size: 17px;
            }

        .dashboard-summary .ds-title {
            font-size: 0.72rem;
            font-weight: 700;
        }

        .dashboard-summary .ds-amount {
            font-size: 1.125rem;
            margin-top: 6px;
            letter-spacing: -0.025em;
        }

        .dashboard-summary .ds-sub {
            font-size: 0.7rem;
            gap: 3px;
        }

        .dashboard-summary .ds-chart-card {
            padding: 14px 14px;
            border-radius: 12px;
        }

        .dashboard-summary .ds-chart-title {
            font-size: 0.95rem;
        }

        .dashboard-summary .ls-summary {
            gap: 8px;
        }

        .dashboard-summary .ls-stat {
            padding: 8px 14px;
            min-width: 0;
            flex: 1;
        }

        .dashboard-summary .ls-stat-value {
            font-size: 1.125rem;
        }

        .dashboard-summary .eb-name {
            width: 70px;
            font-size: 0.78rem;
        }

        .dashboard-summary .eb-value {
            width: 52px;
            font-size: 0.78rem;
        }

        .dashboard-summary .ds-period-bar {
            justify-content: center;
            margin-top: 10px;
        }

    .chart-mobile-responsive .ag-buckets {
        width: 95% !important;
    }

    .chart-mobile-responsive .ag-section-head {
        width: 95% !important;
    }

    .chart-mobile-responsive .ds-chart-col .ds-chart-card {
        width: 100%;
    }
}

@media (max-width: 380px) {
    .dashboard-summary .ds-grid,
    .dashboard-summary .ds-grid.ds-grid-3 {
        grid-template-columns: 1fr;
    }

    .dashboard-summary .ds-period-bar {
        justify-content: center;
        margin-top: 10px;
    }

    .chart-mobile-responsive .ag-buckets {
        width: 95% !important;
    }

    .chart-mobile-responsive .ag-section-head {
        width: 95% !important;
    }

    .chart-mobile-responsive .ds-chart-col .ds-chart-card {
        width: 100%;
    }
}
