/* Fluxo */
.fx-main { padding-top: 40px; padding-bottom: 40px; display: grid; grid-template-columns: minmax(0, 1fr); gap: 24px; }
.fx-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; flex-wrap: wrap; }
.fx-head .kd-h1 em { white-space: normal; }
.fx-head__actions { display: flex; gap: 10px; flex-wrap: wrap; }
.fx-month { display: flex; align-items: center; gap: 8px; }
.fx-month__label { font-family: var(--f-display); font-size: 14px; min-width: 150px; text-align: center; }
.fx-month__label::first-letter { text-transform: uppercase; }
.fx-stat--dark { background: var(--fg); color: var(--bg); border-color: var(--fg); }
.fx-stat--dark .kd-stat__label, .fx-stat--dark .kd-stat__meta { color: color-mix(in srgb, var(--bg) 65%, transparent); }
.fx-delta { font-weight: 500; }
.fx-delta.is-up { color: var(--ok); }
.fx-delta.is-down { color: var(--danger); }

.fx-charts { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 16px; }
.fx-card-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 16px; }
.fx-chart { position: relative; height: 280px; }
.fx-chart--donut { height: 200px; }
.fx-legend { list-style: none; display: grid; gap: 8px; margin-top: 16px; font-size: 13px; }
.fx-legend li { display: grid; grid-template-columns: 10px 1fr auto; gap: 10px; align-items: center; }
.fx-legend i { width: 10px; height: 10px; border-radius: 3px; background: var(--fg); }

.fx-filters { display: flex; gap: 8px; flex-wrap: wrap; }
.fx-filters .kd-input { width: 220px; }
.fx-filters .kd-select { width: 140px; }
.fx-amount { font-family: var(--f-display); font-weight: 500; }
.fx-amount.is-in { color: var(--ok); }
.fx-del { width: 30px; height: 30px; border-radius: 50%; border: 1px solid transparent; background: none; color: var(--muted); cursor: pointer; font-size: 16px; transition: border-color .3s, color .3s; }
.fx-del:hover { border-color: var(--danger); color: var(--danger); }
.fx-note { text-align: center; }

@media (max-width: 900px) { .fx-charts { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 560px) {
  .fx-month__label { min-width: 0; font-size: 13px; }
  .fx-filters, .fx-filters .kd-input, .fx-filters .kd-select { width: 100%; }
  .kd-topbar__inner { gap: 8px; }
}
