/* ═══════════════════════════════════════════════════════
   VentaFácil — Dashboard & Components Styles
   ═══════════════════════════════════════════════════════ */

/* Dashboard chart */
.chart-container {
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 20px;
}
.chart-container canvas { width: 100% !important; max-height: 240px; }

.dashboard-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 16px;
    margin-bottom: 16px;
}

.dashboard-grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-bottom: 16px;
}

/* Recent sales list */
.recent-sale-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid var(--border);
}
.recent-sale-item:last-child { border-bottom: none; }
.recent-sale-info { display: flex; align-items: center; gap: 10px; }
.recent-sale-icon {
    width: 34px; height: 34px;
    border-radius: var(--radius-sm);
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
}
.recent-sale-icon svg { width: 16px; height: 16px; }
.recent-sale-number { font-weight: 600; font-size: 0.85rem; }
.recent-sale-meta { font-size: 0.72rem; color: var(--text-muted); }
.recent-sale-amount { font-weight: 700; font-size: 0.95rem; }

/* Payment method chips */
.method-chip {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 6px 12px;
    border-radius: var(--radius-sm);
    font-size: 0.78rem;
    font-weight: 600;
}

/* Top products bar */
.top-product-row {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 0;
}
.top-product-rank {
    width: 22px; height: 22px;
    border-radius: 50%;
    background: var(--bg-hover);
    display: flex; align-items: center; justify-content: center;
    font-size: 0.7rem; font-weight: 700; color: var(--text-muted);
    flex-shrink: 0;
}
.top-product-name { flex: 1; font-size: 0.85rem; font-weight: 500; }
.top-product-bar {
    width: 80px; height: 6px;
    background: var(--bg-hover);
    border-radius: 3px;
    overflow: hidden;
}
.top-product-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--accent), #8b5cf6);
    border-radius: 3px;
    transition: width 0.5s ease;
}
.top-product-qty { font-size: 0.78rem; color: var(--text-muted); min-width: 40px; text-align: right; }

/* Responsive Media Queries */
@media (max-width: 992px) {
    .dashboard-grid {
        grid-template-columns: 1fr;
    }
    .dashboard-grid-3 {
        grid-template-columns: 1fr;
    }
}
