/* ============================================
   PÁGINA: DASHBOARD
   Vista principal con KPIs y gráficas.
   ============================================ */

.dashboard-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--gray-800);
}

/* Skeletons de carga */
.dashboard-chart-skeleton {
    height: 250px;
}

.dashboard-table-skeleton {
    height: 200px;
}

/* Gráfica: Ventas Diarias */
.daily-sales-chart-bars {
    display: flex;
    align-items: flex-end;
    gap: 1rem;
    height: 250px;
    padding: 1rem 0;
}

.daily-sales-bar {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.daily-sales-bar-value {
    font-weight: 600;
}

.daily-sales-bar-fill {
    width: 100%;
    background: var(--gradient-primary);
    border-radius: var(--radius) var(--radius) 0 0;
    min-height: 4px;
    transition: height 0.5s ease;
    /* height: dinámico, se define inline según el valor del día */
}

/* Gráfica: Productos Top */
.top-products-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.top-product-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.25rem;
}

.top-product-name {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.top-product-rank {
    width: 1.5rem;
    height: 1.5rem;
    background: var(--primary);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 700;
}

.top-product-bar-track {
    width: 100%;
    height: 8px;
    background: var(--gray-200);
    border-radius: var(--radius-full);
    overflow: hidden;
}

.top-product-bar-fill {
    height: 100%;
    background: var(--gradient-primary);
    border-radius: var(--radius-full);
    transition: width 0.5s ease;
    /* width: dinámico, se define inline según el porcentaje del producto */
}