.page-header,
.page-header-card,
.filter-card,
.info-box,
.modern-card,
.index-results-card,
.balance-card,
.finance-card,
.stat-card,
.stat-card-simple,
.kpi-card,
.summary-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
}

.page-header,
.page-header-card {
    padding: 18px 20px;
    margin-bottom: 16px;
}

.page-header h1,
.page-title {
    margin: 0;
    color: var(--text);
    font-size: 24px;
    line-height: 1.3;
    font-weight: 800;
}

.page-header .meta,
.page-subtitle {
    margin-top: 6px;
    color: var(--text-muted);
    font-size: 13px;
    font-weight: 600;
}

.filter-card,
.info-box,
.card,
.modern-card {
    padding: 16px;
    margin-bottom: 16px;
}

.card {
    overflow: hidden;
}

.card > .card-header,
.modern-card > .card-header {
    margin: -16px -16px 16px;
    padding: 14px 16px;
    background: linear-gradient(90deg, var(--surface-soft), var(--surface));
    border-bottom: 1px solid var(--border);
}

.card-header,
.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 12px;
}

.card-header h3,
.card-title,
.section-header h2,
.info-box h3 {
    margin: 0;
    color: var(--text);
    font-size: 17px;
    font-weight: 800;
}

.card-title {
    display: inline-flex;
    align-items: center;
    gap: 9px;
}

.card-body {
    min-width: 0;
}

.section-header p,
.info-box .note,
.formula {
    margin: 6px 0 0;
    color: var(--text-muted);
    font-weight: 600;
}

.stats-grid,
.stats-grid-modern,
.stats-grid-dashboard,
.kpi-cards-grid,
.financial-grid,
.balance-section,
.summary-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 12px;
    margin-bottom: 16px;
}

.stat-card,
.stat-card-simple,
.stat-card-dashboard,
.kpi-card,
.finance-card,
.balance-card,
.summary-card {
    padding: 15px;
    transition: transform 0.2s cubic-bezier(0.215, 0.61, 0.355, 1), box-shadow 0.2s ease, border-color 0.2s ease;
}

.stat-card:hover,
.kpi-card:hover,
.finance-card:hover,
.summary-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 16px 40px rgba(15, 23, 42, 0.12);
    border-color: var(--primary-100);
}

.stat-label,
.kpi-title,
.finance-card-title,
.balance-card-label,
.summary-card__title {
    color: var(--text-muted);
    font-size: 12px;
    font-weight: 800;
}

.stat-value,
.stat-number,
.stat-details .stat-value,
.kpi-value,
.finance-card-value,
.balance-card-value,
.summary-card__value {
    margin-top: 6px;
    color: var(--text);
    font-size: 22px;
    line-height: 1.25;
    font-weight: 800;
    font-variant-numeric: tabular-nums;
}

.header-content,
.header-title-section,
.header-actions,
.header-start,
.flex-header {
    display: flex;
    align-items: center;
    gap: 12px;
}

.header-content,
.flex-header {
    justify-content: space-between;
    flex-wrap: wrap;
}

.header-icon-wrapper,
.stat-icon,
.profile-icon,
.summary-icon,
.finance-card-icon,
.kpi-icon {
    display: inline-grid;
    place-items: center;
    width: 40px;
    height: 40px;
    color: #fff;
    background: var(--primary);
    border-radius: var(--radius-md);
}

.page-subtitle,
.header-content p {
    margin: 4px 0 0;
    color: var(--text-muted);
    font-size: 13px;
    font-weight: 600;
}

.empty-state-modern,
.alert-empty-premium {
    padding: 36px 20px;
    text-align: center;
    color: var(--text-muted);
}

.empty-icon-wrapper,
.empty-icon {
    margin-inline: auto;
    margin-bottom: 12px;
    color: var(--primary);
    font-size: 34px;
}

@media (max-width: 760px) {
    .header-content,
    .flex-header {
        align-items: stretch;
    }
}

.stat-card.success,
.card-green {
    border-inline-start: 4px solid var(--success);
}

.stat-card.warning,
.card-orange,
.card-purple {
    border-inline-start: 4px solid var(--warning);
}

.stat-card.info,
.card-blue,
.card-cyan,
.finance-card.primary {
    border-inline-start: 4px solid var(--primary);
}

.finance-card.danger {
    border-inline-start: 4px solid var(--danger);
}
