.fes-tabs { display: flex; gap: 6px; border-bottom: 1px solid #d0d5dd; padding-bottom: 8px; }
.fes-tabs [role="tab"] { border: 0; border-radius: 4px; background: transparent; padding: 9px 14px; font: inherit; font-size: 14px; color: #475467; cursor: pointer; }
.fes-tabs [aria-selected="true"] { background: #eaf4ed; color: #166534; font-weight: 700; }
.fes-workspace { display: grid; gap: 18px; min-width: 0; letter-spacing: 0; }
.fes-workspace * { box-sizing: border-box; letter-spacing: 0; }
.fes-filters { display: flex; flex-wrap: wrap; align-items: end; gap: 10px; margin: 0; padding: 12px 0 16px; border-bottom: 1px solid #e4e7ec; }
.fes-filters label { display: grid; gap: 5px; flex: 1 1 130px; min-width: 130px; max-width: 230px; font-size: 12px; color: #475467; font-weight: 600; }
.fes-filters label:has(#fes-organizationId) { flex-basis: 210px; }
.fes-filters input, .fes-filters select { width: 100%; min-width: 0; height: 38px; font-size: 13px; background: #fff; color: #101828; }
.fes-filters button { min-height: 38px; white-space: nowrap; }
.fes-report-period { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 18px; font-size: 14px; }
.fes-report-period small { margin-left: auto; color: #667085; font-size: 12px; }
.fes-kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.fes-kpi { display: grid; gap: 6px; min-width: 0; border: 1px solid #e4e7ec; border-radius: 6px; background: #fff; padding: 14px; }
.fes-kpi > span { font-size: 12px; color: #475467; }
.fes-kpi strong { font-size: 21px; line-height: 1.3; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.fes-kpi small { font-size: 12px; color: #667085; line-height: 1.4; overflow-wrap: anywhere; }
.fes-kpi.expense strong { color: #b42318; }
.fes-kpi.income strong { color: #067647; }
.fes-comparison { margin: 0; font-size: 12px; line-height: 1.5; color: #667085; }
.fes-report-grid { display: grid; grid-template-columns: minmax(470px, 1.1fr) minmax(360px, 1fr); gap: 24px; min-width: 0; }
.fes-section { min-width: 0; border-top: 1px solid #d0d5dd; padding-top: 14px; }
.fes-section-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 12px; }
.fes-section-head h2 { margin: 0; font-size: 16px; line-height: 1.4; }
.fes-section-head .link-button { font-size: 13px; }
.fes-table-wrap { width: 100%; overflow-x: auto; }
.fes-table { width: 100%; table-layout: fixed; border-collapse: collapse; font-size: 13px; }
.fes-table th, .fes-table td { padding: 10px 9px; text-align: left; border-bottom: 1px solid #eaecf0; vertical-align: top; overflow-wrap: anywhere; white-space: normal; }
.fes-table th { font-size: 12px; color: #667085; font-weight: 600; background: #f9fafb; }
.fes-table .num { text-align: right; font-variant-numeric: tabular-nums; }
.fes-table td small { display: block; margin-top: 4px; color: #667085; line-height: 1.4; }
.fes-table td strong { font-size: inherit; }
.fes-table .link-button { padding: 0; text-align: left; line-height: 1.4; white-space: normal; overflow-wrap: anywhere; color: #175cd3; }
.fes-table tr.selected { background: #f0f7f1; }
.fes-table tfoot th { color: #101828; }
.fes-categories { min-width: 450px; }
.fes-operations { min-width: 800px; }
.fes-details .fes-table-wrap { max-height: 520px; overflow: auto; }
.fes-details thead th { position: sticky; top: 0; z-index: 1; }
.fes-chart-scroll { max-width: 100%; overflow-x: auto; padding-bottom: 8px; }
.fes-chart { display: flex; gap: 4px; min-width: 100%; height: 200px; align-items: stretch; }
.fes-point { flex: 1 0 32px; display: flex; flex-direction: column; justify-content: end; gap: 8px; text-align: center; min-width: 32px; }
.fes-point-track { height: 168px; display: flex; align-items: end; justify-content: center; border-bottom: 1px solid #d0d5dd; }
.fes-point-track i { display: block; width: 60%; max-width: 34px; min-width: 10px; background: #b65c54; border-radius: 3px 3px 0 0; }
.fes-point-track i.reversal { background: #15803d; }
.fes-point small { flex: 0 0 24px; font-size: 10px; color: #667085; white-space: nowrap; }
.fes-dynamics-table { margin-top: 14px; font-size: 13px; }
.fes-dynamics-table summary { cursor: pointer; color: #475467; }
.fes-timeline-table { max-height: 300px; overflow: auto; margin-top: 10px; }
.fes-pager { display: flex; align-items: center; justify-content: end; flex-wrap: wrap; gap: 8px; padding: 12px 0; }
.fes-pager span { margin-right: auto; font-size: 12px; color: #667085; }
.fes-pager button { width: 34px; height: 34px; padding: 6px; }
.fes-empty { min-height: 240px; display: grid; align-content: center; justify-items: center; gap: 8px; color: #667085; }
.fes-empty h2 { margin: 0; font-size: 18px; color: #344054; }
.fes-empty p { margin: 0; font-size: 14px; }
@media (max-width: 1180px) {
  .fes-report-grid { grid-template-columns: minmax(0, 1fr); }
  .fes-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 650px) {
  .fes-filters label { max-width: none; }
  .fes-kpis { grid-template-columns: minmax(0, 1fr); }
  .fes-report-period small { margin-left: 0; }
}
