/* D231 (b) Rozliczenia › „Wpłaty” (ModWplaty): the tiles, the split by the form with the bars
   (<progress>, no inline style — CSP), the list (K/T a table, M cards), the empty state. */
.fjn-pay { display: flex; flex-direction: column; gap: 12px; }
.fjn-pay__head h1 { margin: 0; }
.fjn-pay__head p { margin: 4px 0 0; font-size: 14px; color: var(--fjn-text-2); }
.fjn-pay__filters { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.fjn-pay__day { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; color: var(--fjn-text-2); }
.fjn-pay__day .fjn-input { width: 150px; }
.fjn-pay__export { margin-left: auto; gap: 8px; }
.fjn-pay__tiles { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; }
.fjn-pay__tile { display: flex; flex-direction: column; gap: 4px; padding: 14px; background: var(--fjn-surface); border: 1px solid var(--fjn-border); border-radius: 10px; }
.fjn-pay__tile span { font-size: 13px; font-weight: 700; }
.fjn-pay__tile b { font-size: 20px; }
.fjn-pay__tile small { font-size: 12px; color: var(--fjn-text-2); }
.fjn-pay__tile.is-total { background: var(--fjn-brand-600); border-color: var(--fjn-brand-600); color: var(--fjn-text-inverse); }
.fjn-pay__tile.is-total b { font-size: 24px; }
.fjn-pay__tile.is-total small { color: var(--fjn-text-inverse); }
.fjn-pay__card { display: flex; flex-direction: column; gap: 10px; padding: 16px; background: var(--fjn-surface); border: 1px solid var(--fjn-border); border-radius: 12px; }
.fjn-pay__card h2 { margin: 0; font-size: 16px; }
.fjn-pay__forms { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 20px; }
.fjn-pay__form div { display: flex; justify-content: space-between; font-size: 14px; }
.fjn-pay__bar { width: 100%; height: 8px; appearance: none; border: 0; border-radius: 4px; background: var(--fjn-surface-2); }
.fjn-pay__bar::-webkit-progress-bar { background: var(--fjn-surface-2); border-radius: 4px; }
.fjn-pay__bar::-webkit-progress-value { background: var(--fjn-brand-600); border-radius: 4px; }
.fjn-pay__bar::-moz-progress-bar { background: var(--fjn-brand-600); border-radius: 4px; }
.fjn-pay__table { background: var(--fjn-surface); border: 1px solid var(--fjn-border); border-radius: 12px; overflow: hidden; }
.fjn-pay__row { display: grid; grid-template-columns: 150px 110px minmax(0, 1.4fr) minmax(0, 1.2fr) 90px 90px 120px minmax(0, 1fr); gap: 10px; align-items: center; min-height: 64px; padding: 0 16px; border-top: 1px solid var(--fjn-surface-2); color: var(--fjn-text); font-weight: 400; text-decoration: none; font-size: 14px; }
.fjn-pay__row:hover { background: var(--fjn-brand-50); }
.fjn-pay__row--head { min-height: 44px; border-top: 0; background: var(--fjn-surface-2); font-size: 13px; font-weight: 700; }
.fjn-pay__row--head:hover { background: var(--fjn-surface-2); }
.fjn-pay__num, .fjn-pay__amount { text-align: right; }
.fjn-pay__by { color: var(--fjn-text-2); }
.fjn-pay__m, .fjn-pay__line { display: none; }
.fjn-pay__none { margin: 0; padding: 20px 16px; color: var(--fjn-text-2); }
.fjn-pay__empty { align-items: center; padding: 28px 16px; text-align: center; color: var(--fjn-text-2); }
.fjn-pay__empty b { color: var(--fjn-text); font-size: 16px; }
.fjn-pay__empty p { margin: 0; font-size: 14px; }
@media (max-width: 1199px) {
  .fjn-pay__tiles { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 767px) {
  .fjn-pay__tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .fjn-pay__tile.is-total { grid-column: 1 / -1; }
  .fjn-pay__forms { grid-template-columns: minmax(0, 1fr); }
  .fjn-pay__export { margin-left: 0; }
  .fjn-pay__table { display: flex; flex-direction: column; gap: 10px; background: none; border: 0; }
  .fjn-pay__row--head { display: none; }
  .fjn-pay__row { grid-template-columns: minmax(0, 1fr) auto; gap: 4px; padding: 14px 16px; border: 1px solid var(--fjn-border); border-radius: 12px; background: var(--fjn-surface); }
  .fjn-pay__what { grid-column: 1; grid-row: 1; }
  .fjn-pay__amount { grid-column: 2; grid-row: 1; }
  .fjn-pay__who, .fjn-pay__line, .fjn-pay__by { grid-column: 1 / -1; font-size: 13px; }
  .fjn-pay__line { display: block; order: 1; color: var(--fjn-text-2); }
  .fjn-pay__by { order: 2; }
  .fjn-pay__m { display: inline; }
  .fjn-pay__at, .fjn-pay__dept, .fjn-pay__doc, .fjn-pay__method { display: none; }
}
