/**
 * Dashboard Widget — Compact layout overrides.
 *
 * @package StripeSubManager
 * @since   2.1.0
 */

/* Dashboard widget overrides — compact layout inside #strp-sub-dashboard .inside */
#strp_sub_dashboard .strp-kpi-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
    margin-bottom: 16px;
}
#strp_sub_dashboard .strp-kpi-card {
    padding: 12px 14px;
}
#strp_sub_dashboard .strp-kpi-card__label {
    font-size: 10px;
    margin: 0 0 4px;
    letter-spacing: 0.4px;
}
#strp_sub_dashboard .strp-kpi-card__value {
    font-size: 20px;
}
#strp_sub_dashboard .strp-kpi-card__trend {
    font-size: 11px;
    margin-top: 4px;
}
#strp_sub_dashboard .strp-widget-chart-wrap {
    margin-bottom: 16px;
}
#strp_sub_dashboard .strp-activity-feed__item {
    padding: 8px 0;
}
#strp_sub_dashboard .strp-activity-feed__icon {
    width: 26px;
    height: 26px;
    font-size: 13px;
}
#strp_sub_dashboard .strp-activity-feed__text {
    font-size: 13px;
}
#strp_sub_dashboard .strp-widget-footer {
    text-align: center;
    padding-top: 12px;
    border-top: 1px solid var(--strp-border, #e2e8f0);
    margin-top: 12px;
}
@media (max-width: 1200px) {
    #strp_sub_dashboard .strp-kpi-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
@media (max-width: 782px) {
    #strp_sub_dashboard .strp-kpi-grid {
        grid-template-columns: 1fr;
    }
}

/* RTL Support */
[dir="rtl"] .strp-dash-stat-label {
    text-align: right;
}

[dir="rtl"] .strp-dash-stat-value {
    text-align: right;
}
