﻿.dashboard-page {
    background: #f6f7fb;
    padding: 16px;
}

    /* Telerik tiles => modern cards */
    .dashboard-page .k-tilelayout-item {
        border: 1px solid rgba(15,23,42,.08);
        border-radius: 16px;
        background: #fff;
        box-shadow: 0 8px 24px rgba(15,23,42,.08);
        overflow: hidden;
    }

    .dashboard-page .k-tilelayout-item-header {
        background: transparent;
        border-bottom: 1px solid rgba(15,23,42,.06);
        padding: 12px 16px;
        font-weight: 650;
        color: #0f172a;
    }

    .dashboard-page .k-tilelayout-item-content {
        padding: 16px;
    }

/* Quick links */
.quicklinks .section {
    margin-bottom: 14px;
}

.section-title {
    font-size: 13px;
    font-weight: 700;
    color: #334155;
    margin-bottom: 10px;
}

/* KPI cards */
.kpi-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}

.kpi {
    border: 1px solid rgba(15,23,42,.08);
    border-radius: 12px;
    padding: 12px;
    background: #fff;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    cursor: pointer;
    transition: transform .12s ease, box-shadow .12s ease;
    outline: none;
}

    .kpi:focus {
        box-shadow: 0 0 0 3px rgba(37,99,235,.25), 0 12px 30px rgba(15,23,42,.10);
    }

    .kpi:hover {
        transform: translateY(-2px);
        box-shadow: 0 12px 30px rgba(15,23,42,.10);
    }

.kpi-value {
    font-size: 20px;
    font-weight: 800;
    line-height: 1.1;
    color: #0f172a;
}

.kpi-label {
    font-size: 12px;
    color: #64748b;
    margin-top: 4px;
}

.kpi-pill {
    background: #dbeafe;
    color: #2563eb;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 600;
}

/* Tooltips */
.chart-tooltip {
    padding: 8px;
    color: #fff;
}

.chart-tooltip-grid {
    padding: 8px;
    width: 260px;
    display: grid;
    grid-template-columns: 110px 1fr;
    row-gap: 6px;
    column-gap: 10px;
    color: #fff;
}

/* Responsive KPI grid */
@media (max-width: 1400px) {
    .kpi-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 767px) {
    .kpi-grid {
        grid-template-columns: 1fr;
    }
}

.kpi-finance {
    --tone-bg: #dbeafe;
    --tone-fg: #2563eb;
    --tone-ring: rgba(37,99,235,.25);
}

/* existing tones you already used */
.kpi-purchase {
    --tone-bg: #ffedd5;
    --tone-fg: #f97316;
    --tone-ring: rgba(249,115,22,.25);
}

.kpi-compare {
    --tone-bg: #ccfbf1;
    --tone-fg: #0d9488;
    --tone-ring: rgba(13,148,136,.25);
}

.kpi-value--ghost {
    opacity: .45;
    font-weight: 700;
}

.chart-tooltip {
    padding: 6px;
    color: #fff;
}

.chart-tooltip-grid {
    padding: 6px;
    width: 240px;
    display: grid;
    grid-template-columns: 110px 1fr;
    row-gap: 4px;
    column-gap: 8px;
    color: #fff;
}