/* D233 Zapytania i źródła klientów (SPEC 1.254 par. 5.1a). */
/* D233 E1-02b: „Otwórz kartę klienta”, the card „Źródło klienta” / „Kontakt z klientem” and the window „Skąd jest klient?” */
.fjn-quick__client-link { display: inline-flex; align-items: center; gap: 2px; margin-top: 8px; font-weight: var(--fjn-fw-bold); }
.fjn-qinq { display: flex; flex-direction: column; gap: 8px; }
.fjn-qinq__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.fjn-qinq__head h2 { margin: 0; font-size: 16px; }
.fjn-qinq__edit { font-weight: var(--fjn-fw-bold); }
.fjn-qinq__value { margin: 0; font-weight: var(--fjn-fw-bold); }
.fjn-qinq__value.is-empty { color: var(--fjn-text-2); font-weight: 400; }
.fjn-qsrc { width: min(520px, calc(100vw - 32px)); }
.fjn-qsrc__body { gap: 12px; color: var(--fjn-text); }
.fjn-qsrc__sub { margin: 0; font-size: 13px; color: var(--fjn-text-2); }
.fjn-qsrc__list { display: flex; flex-direction: column; border: 1px solid var(--fjn-border); border-radius: 8px; }
.fjn-qsrc__item { display: flex; align-items: center; gap: 12px; min-height: 56px; padding: 0 14px; font-weight: var(--fjn-fw-bold); cursor: pointer; }
.fjn-qsrc__item + .fjn-qsrc__item { border-top: 1px solid var(--fjn-border); }
.fjn-quick__source { display: flex; flex-direction: column; gap: 8px; margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--fjn-border); }
.fjn-intake-client__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 24px; margin: 0; }
.fjn-intake-client__grid dt { font-size: 12px; color: var(--fjn-text-2); }
.fjn-intake-client__grid dd { margin: 2px 0 0; font-weight: var(--fjn-fw-bold); }
@media (max-width: 767px) { .fjn-intake-client__grid { grid-template-columns: 1fr; } }
/* D233 (c) „Kontakt z klientem” and the window „Termin kontaktu z klientem” */
.fjn-qinq__contact { display: flex; flex-direction: column; gap: 8px; padding-top: 12px; border-top: 1px solid var(--fjn-border); }
.fjn-qinq__sub { margin: 0; font-weight: var(--fjn-fw-bold); }
.fjn-qinq__set { align-self: flex-start; width: 100%; max-width: 320px; }
.fjn-qinq__term { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border: 1px solid var(--fjn-border); border-radius: 8px; color: var(--fjn-warning-700); }
.fjn-qinq__term.is-late { color: var(--fjn-danger-700); }
.fjn-qinq__term-text { display: flex; flex: 1; flex-direction: column; gap: 2px; min-width: 0; }
.fjn-qinq__term-text small { color: var(--fjn-text-2); }
.fjn-qinq__term form { margin: 0; }
.fjn-qinq__edit { padding: 0; border: 0; background: none; color: var(--fjn-link, var(--fjn-brand-700)); font: inherit; font-weight: var(--fjn-fw-bold); cursor: pointer; }
.fjn-qterm-dlg { width: min(520px, calc(100vw - 32px)); }
.fjn-qterm { display: flex; flex-direction: column; gap: 10px; color: var(--fjn-text); }
.fjn-qterm__label { margin: 0; font-weight: var(--fjn-fw-bold); }
.fjn-qterm__tiles { display: grid; gap: 8px; }
.fjn-qterm__tiles--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.fjn-qterm__tiles--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.fjn-qterm__time { max-width: 200px; }
.fjn-dash__row.is-warning .fjn-dash__rline { color: var(--fjn-warning-700); }
.fjn-dash__row.is-danger .fjn-dash__rline { color: var(--fjn-danger-700); }
/* D233 (e) „Dane pozyskania” */
/* D233 (f) Zapytania: Wszystkie zapytania (K table, T/M cards) and Do kontaktu */
.fjn-inq { display: flex; flex-direction: column; gap: 12px; }
.fjn-inq__tools { display: flex; flex-direction: column; gap: 12px; }
.fjn-inq__searchrow { display: flex; gap: 12px; align-items: center; }
.fjn-inq__searchrow > :first-child { flex: 1; }
.fjn-inq__filters { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; }
.fjn-inq__count { margin: 0; }
.fjn-inq__term.is-warning { color: var(--fjn-warning-700); font-weight: var(--fjn-fw-bold); }
.fjn-inq__term.is-danger { color: var(--fjn-danger-700); font-weight: var(--fjn-fw-bold); }
.fjn-inq__order { display: flex; flex-direction: column; font-size: 12px; }
.fjn-inq__cards { display: none; }
.fjn-inq__card { display: flex; flex-direction: column; gap: 4px; }
.fjn-inq__card-head { display: flex; justify-content: space-between; gap: 8px; }
.fjn-inq__card-foot { display: flex; align-items: center; gap: 8px; justify-content: space-between; }
.fjn-inq__add-m { position: sticky; bottom: 12px; }
@media (max-width: 1279px) {
  .fjn-inq__table { display: none; }
  .fjn-inq__cards { display: grid; gap: 8px; }
  .fjn-inq__filters { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 767px) { .fjn-inq__filters { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.fjn-inq__group { display: flex; flex-direction: column; gap: 8px; }
.fjn-inq__gtitle { margin: 8px 0 0; font-size: 12px; letter-spacing: .06em; text-transform: uppercase; color: var(--fjn-text-2); }
.fjn-inq__gtitle.is-late { color: var(--fjn-danger-700); }
.fjn-inq__gtitle.is-today, .fjn-inq__gtitle.is-none { color: var(--fjn-warning-700); }
.fjn-inq__contact { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 14px; border: 1px solid var(--fjn-border); border-left: 4px solid var(--fjn-border-strong); border-radius: 8px; background: var(--fjn-surface); }
.fjn-inq__contact.is-danger { border-left-color: var(--fjn-danger-700); }
.fjn-inq__contact.is-warning { border-left-color: #F5B54A; }
.fjn-inq__ctext { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.fjn-inq__cterm { font-weight: var(--fjn-fw-bold); }
.fjn-inq__contact.is-danger .fjn-inq__cterm { color: var(--fjn-danger-700); }
.fjn-inq__contact.is-warning .fjn-inq__cterm { color: var(--fjn-warning-700); }
.fjn-inq__cact { display: flex; gap: 8px; flex: none; }
.fjn-inq__cact .fjn-btn { min-height: 56px; }
@media (max-width: 767px) { .fjn-inq__contact { flex-direction: column; align-items: stretch; } .fjn-inq__cact .fjn-btn { flex: 1; } }
/* D233 (h) Raport źródeł */
.fjn-srep__filters { grid-template-columns: repeat(4, minmax(0, 220px)); }
.fjn-srep__tiles { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 8px; }
.fjn-srep__tile { display: flex; flex-direction: column; gap: 4px; padding: 12px 14px; border: 1px solid var(--fjn-border); border-radius: 8px; background: var(--fjn-surface); }
.fjn-srep__tile span { font-size: 13px; color: var(--fjn-text-2); }
.fjn-srep__tile b { font-size: 22px; }
.fjn-srep__tile small { font-size: 11px; color: var(--fjn-text-2); }
.fjn-srep__sum { background: var(--fjn-brand-50); font-weight: var(--fjn-fw-bold); }
.fjn-srep__reason { display: flex; flex-direction: column; gap: 4px; margin-top: 10px; }
.fjn-srep__rhead { display: flex; justify-content: space-between; }
.fjn-srep__bar { width: 100%; height: 8px; appearance: none; border: 0; border-radius: 4px; background: var(--fjn-surface-2); }
.fjn-srep__bar::-webkit-progress-bar { border-radius: 4px; background: var(--fjn-surface-2); }
.fjn-srep__bar::-webkit-progress-value { border-radius: 4px; background: var(--fjn-danger-700); }
.fjn-srep__bar::-moz-progress-bar { border-radius: 4px; background: var(--fjn-danger-700); }
@media (max-width: 1279px) { .fjn-srep__tiles { grid-template-columns: repeat(3, minmax(0, 1fr)); } .fjn-srep__filters { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 767px) { .fjn-srep__tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
/* D233 E1-02a in the narrow „Do oferty” column: two tiles per row, smaller text that wraps */
.fjn-quick__source .fjn-quick__tiles--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.fjn-quick__source .fjn-quick__tile span { font-size: 14px; overflow-wrap: normal; word-break: normal; } /* D232: no break inside a word */
.fjn-quick__source .fjn-qinq__contact { padding-top: 0; border-top: 0; }
