/* sales_card/style.css - Styling specific to the Sales Card */

.sales-chart-wrapper {
    position: relative;
    height: 180px;
    width: 100%;
    margin: 12px 0;
}

#salesCategoryChart {
    width: 100% !important;
    height: 100% !important;
}

/* Category rows style for Sales Card list */
.category-triple-row {
    background: rgba(0, 0, 0, 0.02);
    border: 1px solid rgba(0,0,0,0.02);
    border-radius: 12px;
    padding: 12px 14px;
    margin-bottom: 10px;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.category-triple-row:hover {
    background: rgba(99, 102, 241, 0.03);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.05);
    border-color: rgba(99, 102, 241, 0.15);
}

.category-row-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.category-row-name {
    font-size: 0.85rem;
    font-weight: 700;
    color: #1e293b;
    font-family: 'Prompt', sans-serif;
}

.category-row-total {
    font-size: 0.85rem;
    font-weight: 800;
    color: #6366f1;
}

.category-row-grid {
    display: grid;
    gap: 4px;
}

.sub-metric {
    display: flex;
    flex-direction: column;
}

.sub-metric-label {
    font-size: 0.62rem;
    font-weight: 600;
    color: #94a3b8;
    text-transform: uppercase;
    margin-bottom: 2px;
    font-family: 'Prompt', sans-serif;
}

.sub-metric-value {
    font-size: 0.78rem;
    font-weight: 700;
    color: #334155;
}

.sub-metric.highlight .sub-metric-value {
    color: #10b981;
}
