/* D154 (SPEC 1.98): the single-column screens of E3 — E3-06 „Wymiana sezonowa”, E3-07 „Wydanie
   wizyty” (ModD154 H, C, N, KV, CK, X, BI). */
.fjn-d154 { display: flex; flex-direction: column; gap: 12px; width: 100%; max-width: 980px; margin: 0 auto; min-height: calc(100vh - var(--fjn-topbar-h)); padding-bottom: 0; box-sizing: border-box; }
.fjn-d154 > .fjn-form-footer { margin-top: auto; }
.fjn-d154__head h1 { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin: 0; font-size: 26px; line-height: 34px; }
.fjn-d154__head p { margin: 4px 0 0; font-size: 17px; color: var(--fjn-text-2); }
.fjn-d154__card { display: flex; flex-direction: column; gap: 10px; padding: 14px 16px; background: var(--fjn-surface); border: 1px solid var(--fjn-border); border-radius: 10px; }
.fjn-d154__cardhead { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.fjn-d154__cardhead h2 { margin: 0; font-size: 16px; line-height: 22px; }
.fjn-d154__cardhead > span { font-size: 14px; font-weight: 700; color: var(--fjn-text-2); }
.fjn-d154__kv { display: flex; justify-content: space-between; gap: 12px; font-size: 15px; }
.fjn-d154__kv span { color: var(--fjn-text-2); }
.fjn-d154__kv b { font-weight: 400; text-align: right; }
.fjn-d154__kv--top { padding-top: 8px; border-top: 1px solid var(--fjn-surface-2); }
.fjn-d154__kv--top span, .fjn-d154__kv--top b { color: var(--fjn-text); font-weight: 700; }
.fjn-d154__note { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border-radius: 8px; font-size: 14px; }
.fjn-d154__note p { margin: 0; }
.fjn-d154__note--ok { background: var(--fjn-success-100); }
.fjn-d154__note--ok svg { color: var(--fjn-success-700); flex: none; }
.fjn-d154__note--info { background: var(--fjn-info-100); }
.fjn-d154__note--info svg { color: var(--fjn-info-700); flex: none; }
.fjn-d154__check { display: flex; align-items: center; gap: 12px; padding: 8px 0; border: 0; border-bottom: 1px solid var(--fjn-surface-2); background: none; font: inherit; text-align: left; color: inherit; cursor: pointer; }
.fjn-d154__check span:last-child { display: flex; flex-direction: column; gap: 2px; }
.fjn-d154__check small { font-size: 13px; color: var(--fjn-text-2); }
.fjn-d154__check:disabled { cursor: default; color: inherit; }
.fjn-d154__box { display: flex; flex: none; align-items: center; justify-content: center; width: 24px; height: 24px; border: 2px solid var(--fjn-border-strong); border-radius: 5px; background: var(--fjn-surface); box-sizing: border-box; }
.fjn-d154__check.is-on .fjn-d154__box { border: 0; background: var(--fjn-brand-600); color: var(--fjn-text-inverse); }
.fjn-d154__field { display: flex; flex-direction: column; gap: 6px; }
.fjn-d154__field > span { font-size: 17px; font-weight: 700; }
.fjn-d154__field .fjn-input, .fjn-d154__field .fjn-select { height: 48px; }
.fjn-d154__field--error > span { color: var(--fjn-danger-700); }
.fjn-d154__field label.fjn-d154__label { font-weight: 700; }
.fjn-d154__field .fjn-field__head { display: flex; justify-content: space-between; align-items: baseline; }
.fjn-d154__need { display: flex; align-items: center; gap: 6px; margin: 0; font-size: 13px; color: var(--fjn-text-2); } /* D180 */
.fjn-d154__row2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.fjn-d154__muted { margin: 0; font-size: 13px; color: var(--fjn-text-2); }
.fjn-d154__hint { margin: 0; font-size: 17px; color: var(--fjn-text-2); }
.fjn-d154__btns { display: flex; gap: 10px; flex-wrap: wrap; }
.fjn-d154__btns .fjn-btn { min-height: 48px; gap: 8px; }
.fjn-d154__foot { display: flex; align-items: center; justify-content: flex-end; gap: 10px; }
.fjn-d154__foot .fjn-btn { min-height: 56px; }
.fjn-d154__sum { display: flex; flex-direction: column; gap: 2px; margin-right: auto; }
.fjn-d154__sum span { font-size: 13px; color: var(--fjn-text-2); }
.fjn-d154__sum b { font: 700 20px var(--fjn-font-mono); }
@media (max-width: 767px) {
  .fjn-d154 { min-height: calc(100vh - var(--fjn-topbar-h-m) - var(--fjn-bottomnav-h)); }
  .fjn-d154__head h1 { font-size: 22px; line-height: 28px; }
  .fjn-d154__head p { font-size: 14px; }
  .fjn-d154__row2 { grid-template-columns: minmax(0, 1fr); }
}
.fjn-d154__kv--line span { color: var(--fjn-text); }
.fjn-d154__kv--first { padding-top: 10px; border-top: 1px solid var(--fjn-surface-2); }
.fjn-d154__kv--bold span, .fjn-d154__kv--bold b { color: var(--fjn-text); font-weight: 700; }
.fjn-d154__label { font-size: 14px !important; }
.fjn-d154__small { font-size: 14px !important; }
.fjn-d154__pay { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; font-size: 14px; }
.fjn-d154__pay label { display: flex; align-items: center; gap: 10px; font-weight: 700; }
.fjn-d154__pay .fjn-select { width: 160px; }
.fjn-d154__pay a { font-weight: 700; text-decoration: none; }
.fjn-d154__head h1 .fjn-status { font-size: 13px; }
/* E3-11 „Wizyty” (ModD154 lista) */
.fjn-tlist { max-width: 980px; }
.fjn-tlist__filters { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.fjn-tlist__filters .fjn-filter__button { width: 100%; height: 48px; justify-content: space-between; }
.fjn-tlist__row { display: grid; grid-template-columns: 96px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 14px 0; border-bottom: 1px solid var(--fjn-surface-2); color: inherit; text-decoration: none; }
.fjn-tlist__row:last-child { border-bottom: 0; }
.fjn-tlist__time { font-size: 22px; }
.fjn-tlist__what { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.fjn-tlist__what b { font-size: 18px; }
.fjn-tlist__what span { font-size: 16px; font-weight: 400; color: var(--fjn-text-2); }
@media (max-width: 767px) {
  .fjn-tlist__row { grid-template-columns: 64px minmax(0, 1fr); }
  .fjn-tlist__chip { grid-column: 2; }
  .fjn-tlist__time { font-size: 18px; }
  .fjn-tlist__what b { font-size: 15px; }
  .fjn-tlist__what span { font-size: 13px; }
}
.fjn-d154__note--warn { background: var(--fjn-warning-100); }
.fjn-d154__note--warn svg { color: var(--fjn-warning-700); flex: none; }
@media (max-width: 767px) {
  .fjn-d154__foot--two { flex-direction: column; align-items: flex-end; }
}
.fjn-tvis .fjn-d154__note { margin: 0; }
.fjn-tvis .fjn-d154__btns form { margin: 0; }
.fjn-tvis__dialog .fjn-d154__row2 { gap: 10px; }
/* D154 (6) „Krok: klient i pojazd”, „Nowy klient” */
.fjn-tpick__row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--fjn-surface-2); }
.fjn-tpick__row > span { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.fjn-tpick__row b { font-size: 16px; }
.fjn-tpick__row small { font-size: 13px; color: var(--fjn-text-2); }
.fjn-tpick__consent input { width: 24px; height: 24px; margin: 0; accent-color: var(--fjn-brand-600); }
/* D155 (9): breadcrumb and tabs on every E3 screen */
.fjn-e3head { display: flex; flex-direction: column; gap: 10px; }
.fjn-e3head .fjn-stsets__tabs { margin: 0; }
/* D155 (4), 16–18: E3-07 „Forma płatności” and the reasons of „Wydanie bez zapłaty” */
.fjn-trel__methods { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.fjn-trel__method-btn { position: relative; display: flex; align-items: center; justify-content: center; min-height: 56px; border: 1px solid var(--fjn-border-strong); border-radius: 8px; background: var(--fjn-surface); font-weight: 700; cursor: pointer; }
.fjn-trel__method-btn input { position: absolute; opacity: 0; pointer-events: none; }
.fjn-trel__method-btn:has(input:checked) { border-color: var(--fjn-brand-600); background: var(--fjn-brand-600); color: var(--fjn-text-inverse); }
.fjn-trel__method-btn:has(input:focus-visible) { box-shadow: var(--fjn-focus-btn); }
.fjn-trel__reason { position: relative; }
.fjn-trel__reason input { position: absolute; opacity: 0; pointer-events: none; }
.fjn-trel__reason .fjn-d154__box svg { display: none; }
.fjn-trel__reason:has(input:checked) .fjn-d154__box { border: 0; background: var(--fjn-brand-600); color: var(--fjn-text-inverse); }
.fjn-trel__reason:has(input:checked) .fjn-d154__box svg { display: block; }
.fjn-trel__note { display: none; }
.fjn-trel__reasons:has(input[value="other"]:checked) ~ .fjn-trel__note, .fjn-trel__note.fjn-d154__field--error { display: flex; }
.fjn-status--review { background: var(--fjn-status-review-bg); color: var(--fjn-status-review); }  /* D155 (14) */
/* D155 E3-06 wheel by wheel */
.fjn-d154__note--err { background: var(--fjn-danger-100); color: var(--fjn-text); }
.fjn-texch__form { display: flex; flex-direction: column; gap: 12px; flex: 1; }
.fjn-texch__now { border: 2px solid var(--fjn-brand-600); }
.fjn-texch__edit { align-self: flex-end; font-size: 13px; font-weight: 700; text-decoration: none; }
.fjn-texch__damage { display: none; flex-direction: column; gap: 10px; }
.fjn-texch__now:has(input[value="uszkodzona"]:checked) .fjn-texch__damage { display: flex; }
.fjn-texch__camera summary { list-style: none; align-self: flex-start; }
.fjn-texch__camera .fjn-scan__camera { margin-top: 10px; }
/* D155 E3-04 */
.fjn-thall__row.is-done { opacity: .55; }
.fjn-thall__end { display: flex; align-items: center; gap: 10px; }
.fjn-thall__end form { margin: 0; }
@media (max-width: 767px) { .fjn-thall__end { grid-column: 2; flex-wrap: wrap; } }
/* E0-40 „Kroki wykonania” (ModD154 cennik-kroki) */
.fjn-psteps .fjn-srvdlg__body { max-height: 60vh; overflow-y: auto; }
.fjn-psteps__nr { font-size: 16px; font-weight: 700; }
.fjn-tlist__rem { display: inline-flex; align-items: center; gap: 6px; margin-top: 6px; }
