.ui-app .card, .ui-app .controls, .ui-app .filter-section, .ui-app .filter-container {
    background: white; border: 1px solid var(--ui-line); border-radius: var(--ui-radius);
    box-shadow: 0 3px 12px #23352f05; padding: 24px; margin-bottom: 20px;
}
.ui-app .card h3, .ui-app .section-title { color: var(--ui-text); font-size: 18px; font-weight: 650; border-color: var(--ui-line); }
.ui-app .filter-group-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 18px; align-items: end; }
.ui-app .form-group, .ui-app .filter-group { min-width: 0; }
.ui-app .form-group label, .ui-app .filter-group label { display: block; margin-bottom: 8px; font-size: 13px; font-weight: 600; color: var(--ui-muted); }
.ui-app input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]), .ui-app select, .ui-app textarea {
    max-width: 100%; min-height: 42px; border: 1px solid #cfdad3; border-radius: 8px; padding: 10px 12px;
    background: white; color: var(--ui-text); box-shadow: none; font-size: 14px;
}
.ui-app input[readonly] { color: var(--ui-muted); }
.ui-app .btn { min-height: 40px; border-radius: 8px; padding: 10px 16px; font-size: 13px; font-weight: 650; letter-spacing: 0; text-transform: none; box-shadow: none; transition: background-color .18s, transform .18s; }
.ui-app .btn:hover { transform: translateY(-1px); box-shadow: none; }
.ui-app .btn:active { transform: translateY(0); }
.ui-app .btn-primary, .ui-app .btn-success { background: var(--ui-accent); color: white; border: 1px solid var(--ui-accent); }
.ui-app .btn-secondary { background: white; color: var(--ui-text); border: 1px solid var(--ui-line); }
.ui-app .btn-warning { background: #faf4e6; color: #805e23; border: 1px solid #e9dcc0; }
.ui-app .btn-danger { background: #fbefed; color: var(--ui-danger); border: 1px solid #edd6d2; }
.ui-app .btn-danger[style*="background"] { color: white; }
.ui-app .btn-add { background: var(--ui-accent); color: white; }
.ui-app .btn:disabled { cursor: not-allowed; opacity: .45; transform: none; }
.ui-app .tabs, .ui-app .tab-navigation { display: flex; gap: 4px; overflow-x: auto; padding: 4px; margin-bottom: 24px; background: #e9efeb; border-radius: 10px; border: 1px solid var(--ui-line); }
.ui-app .tab, .ui-app .tab-btn { flex: 1 0 auto; min-height: 44px; padding: 12px 20px; border: 0; border-radius: 7px; background: transparent; color: var(--ui-muted); font-size: 14px; font-weight: 600; white-space: nowrap; box-shadow: none; }
.ui-app .tab.active, .ui-app .tab-btn.active { background: white; color: var(--ui-accent); border: 0; box-shadow: 0 2px 5px #23352f09; }
.ui-app :is(.table-container, .table-wrapper, .table-wrapper-v2, .summary-table-wrapper, .ui-ledger-scroll) {
    max-width: 100%; max-height: 68dvh; overflow: auto; margin: 0; padding: 0;
    border: 1px solid var(--ui-line); border-radius: 10px; scrollbar-width: thin;
    scrollbar-color: #b1c4b8 #f4f7f5; scrollbar-gutter: stable;
}
.ui-app table { border-collapse: separate; border-spacing: 0; width: 100%; font-size: 13px; color: var(--ui-text); font-variant-numeric: tabular-nums; }
.ui-app table th { background: #eef4f0; color: #3d5b4e; padding: 13px 14px; font-size: 12px; font-weight: 650; text-transform: none; letter-spacing: 0; border-bottom: 1px solid var(--ui-line); }
.ui-app table th[style] { background: #eef4f0 !important; color: #3d5b4e !important; }
.ui-app .ui-ledger-scroll table { min-width: 850px; }
.ui-app .table-wrapper-v2 table { min-width: 800px; }
.ui-app :is(.table-container, .table-wrapper, .table-wrapper-v2, .summary-table-wrapper, .ui-ledger-scroll) thead { position: sticky; top: 0; z-index: 2; }
.ui-app table td { padding: 13px 14px; border-bottom: 1px solid #e9eeea; line-height: 1.5; }
.ui-app table tbody tr { background: white; }
.ui-app table tbody tr:nth-child(even) { background: #fafcfb; }
.ui-app table tbody tr:hover { background: #f0f6f2; transform: none; box-shadow: none; }
.ui-app table .summary-row { background: #eaf3ee; font-weight: 650; }
.ui-app .amount-positive { color: var(--ui-accent); }
.ui-app .amount-negative { color: var(--ui-danger); }
.ui-app .status-badge { border-radius: 5px; padding: 5px 8px; font-size: 11px; font-weight: 600; }
.ui-app .stat-card { background: white; border: 1px solid var(--ui-line); border-radius: 10px; padding: 20px; box-shadow: none; transform: none; }
.ui-app .stat-card h3, .ui-app .stat-card h4 { color: var(--ui-accent); font-variant-numeric: tabular-nums; font-size: 24px; text-shadow: none; }
.ui-app .stat-card p { color: var(--ui-muted); font-size: 13px; }
.ui-app .alert { border-radius: 8px; font-size: 13px; line-height: 1.6; }
.ui-app .empty-state, .ui-app .no-data { padding: 40px 20px; color: var(--ui-muted); background: white; border-radius: 10px; text-align: center; }
.ui-app .ledger-pagination { align-items: center; padding: 16px 0 0; border-top: 1px solid var(--ui-line); font-size: 12px; }
.ui-app .ledger-page-buttons { gap: 6px; }
.ui-app .ledger-page-buttons .btn { min-width: 38px; min-height: 38px; padding: 8px 12px; }
.ui-app .ledger-page-buttons [aria-current="page"] { background: var(--ui-accent); color: white; }
.ui-app #ledgerTableContainer .table-container { max-height: 64dvh; }
@media (max-width: 767px) {
    .ui-app .card, .ui-app .controls, .ui-app .filter-section, .ui-app .filter-container { padding: 16px; }
    .ui-app .filter-group-grid { grid-template-columns: 1fr; gap: 14px; }
    .ui-app .form-group .btn { min-height: 44px; }
    .ui-app .ledger-pagination { align-items: flex-start; gap: 12px; }
    .ui-app .ledger-page-buttons { width: 100%; }
    .ui-app .ledger-page-buttons .btn { width: auto; flex: 0 0 auto; }
    .ui-app table th, .ui-app table td { padding: 11px 12px; }
}
@media print {
    .ui-app :is(.table-container, .table-wrapper, .table-wrapper-v2, .summary-table-wrapper, .ui-ledger-scroll) { max-height: none; overflow: visible; border: 0; }
    .ui-app :is(.table-container, .table-wrapper, .table-wrapper-v2, .summary-table-wrapper, .ui-ledger-scroll) thead { position: static; }
    .ui-app .ledger-pagination { display: none; }
}
