/* D232 (SPEC 1.250) the quick quote: the size tiles of the renovation price list, the colours most
   often chosen with the counter and „Wszystkie kolory”, the compact table „Prostowanie i spawanie”. */
.fjn-qsize { flex-direction: column; align-items: stretch; gap: 8px; }
.fjn-qsize__tiles { grid-template-columns: repeat(8, minmax(0, 1fr)); }
.fjn-qsize__tiles .fjn-quick__tile--num > span { height: 56px; font-size: 18px; }
.fjn-qsize__note { margin: 0; }
.fjn-qcol__head { display: flex; justify-content: space-between; gap: 8px; font-size: 13px; }
.fjn-qcol__head span { color: var(--fjn-text-2); }
.fjn-qcol__n { flex: none; margin-left: auto; font-size: 13px; font-weight: 700; }
.fjn-quick__tile--colour b { flex: 1; min-width: 0; overflow-wrap: break-word; hyphens: auto; } /* the name wraps, the counter stays */
.fjn-quick__tile--colour b { flex: 1; }
.fjn-qcol__all { display: flex; flex-direction: column; gap: 8px; }
.fjn-qcol__label { font-size: 13px; }
.fjn-qcol__search { min-height: 56px; }
.fjn-qcol__search .fjn-input-group__control { width: 100%; min-height: 54px; }
.fjn-qcol__list { max-height: 260px; overflow-y: auto; margin: 0; padding: 0; list-style: none; border: 1px solid var(--fjn-border); border-radius: 8px; }
.fjn-qcol__list:not(:has(li:not([hidden]))) { display: none; }
.fjn-qcol__item { display: flex; align-items: center; gap: 12px; min-height: 56px; padding: 0 14px; border-top: 1px solid var(--fjn-surface-2); cursor: pointer; }
.fjn-qcol__list li:first-child .fjn-qcol__item { border-top: 0; }
.fjn-qcol__item input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.fjn-qcol__item:has(input:checked) { background: var(--fjn-brand-50); font-weight: 700; }
.fjn-qcol__item:has(input:focus-visible) { box-shadow: var(--fjn-focus-btn); }

.fjn-qst { display: flex; flex-direction: column; border: 1px solid var(--fjn-border); border-radius: 10px; overflow: hidden; }
.fjn-qst__row { display: grid; grid-template-columns: 80px minmax(0, 1fr) 140px 110px; gap: 10px; align-items: center; padding: 10px 12px; border-top: 1px solid var(--fjn-surface-2); }
.fjn-qst__row--head { border-top: 0; background: var(--fjn-surface-2); font-size: 12px; font-weight: 700; text-transform: uppercase; }
.fjn-qst__rim { display: flex; align-items: center; gap: 8px; }
.fjn-qst__rim b { padding: 2px 6px; border-radius: 4px; background: var(--fjn-text); color: var(--fjn-text-inverse); font-size: 14px; }
.fjn-qst__rim span { font-size: 13px; color: var(--fjn-text-2); }
.fjn-qst__grades { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border: 1px solid var(--fjn-border-strong); border-radius: 8px; overflow: hidden; }
.fjn-qst__grade { position: relative; cursor: pointer; }
.fjn-qst__grade + .fjn-qst__grade { border-left: 1px solid var(--fjn-border); }
.fjn-qst__grade input, .fjn-qst__weld input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.fjn-qst__grade span { display: flex; align-items: center; justify-content: center; min-height: 56px; padding: 0 6px; font-weight: 700; font-size: 14px; text-align: center; }
.fjn-qst__grade input:checked + span { background: var(--fjn-brand-600); color: var(--fjn-text-inverse); }
.fjn-qst__grade input:focus-visible + span { box-shadow: var(--fjn-focus-btn); }
.fjn-qst__weld { display: flex; align-items: center; gap: 10px; min-height: 56px; padding: 0 12px; border: 1px solid var(--fjn-border-strong); border-radius: 8px; font-weight: 700; cursor: pointer; }
.fjn-qst__box { display: flex; align-items: center; justify-content: center; width: 22px; height: 22px; border: 2px solid #8A929C; border-radius: 4px; color: transparent; }
.fjn-qst__weld:has(input:checked) { border-color: var(--fjn-brand-600); background: #EAF4F2; }
.fjn-qst__weld:has(input:checked) .fjn-qst__box { border-color: var(--fjn-brand-600); background: var(--fjn-brand-600); color: var(--fjn-text-inverse); }
.fjn-qst__num { text-align: right; }
@media (max-width: 1199px) {
  .fjn-qst__row { grid-template-columns: minmax(0, 1fr) auto auto; }
  .fjn-qst__row--head { display: none; }
  .fjn-qst__grades { grid-column: 1 / -1; grid-row: 2; }
}
@media (max-width: 767px) {
  .fjn-qsize__tiles { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

/* D232 (h) „Wyślij ofertę” */
.fjn-qsend2__who { display: flex; flex-direction: column; gap: 2px; }
.fjn-qsend2__who span { font-size: 14px; color: var(--fjn-text-2); }
.fjn-qsend2__label { font-size: 14px; font-weight: 700; }
.fjn-qsend2__tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.fjn-qsend2__tile { min-height: 56px; border: 1px solid var(--fjn-border-strong); border-radius: 8px; background: var(--fjn-surface); font: inherit; font-weight: 700; cursor: pointer; }
.fjn-qsend2__tile.is-on { border-color: var(--fjn-brand-600); background: var(--fjn-brand-600); color: var(--fjn-text-inverse); }
.fjn-qsend2__sms { display: flex; flex-direction: column; gap: 6px; }
.fjn-qsend2__smshead { display: flex; justify-content: space-between; gap: 8px; font-size: 14px; }
.fjn-qsend2__count { color: var(--fjn-success-700); font-size: 13px; font-weight: 700; }
.fjn-qsend2__count.is-long { color: #8A5300; }
.fjn-qsend2__bubble { margin: 0; padding: 12px; border-radius: 10px; background: var(--fjn-surface-2); font-size: 14px; line-height: 20px; }
.fjn-qsend2__warn { margin: 0; font-size: 13px; font-weight: 700; color: #8A5300; }
.fjn-qsend2__mail { border: 1px solid var(--fjn-border); border-radius: 8px; overflow: hidden; font-size: 14px; }
.fjn-qsend2__subject { padding: 10px 12px; background: var(--fjn-surface-2); border-bottom: 1px solid var(--fjn-border); }
.fjn-qsend2__mail p { margin: 0; padding: 10px 12px; }

/* D232 (d, e, f) the intake step 1: „Planowany odbiór”, the place, „Informacja dla biura” */
.fjn-ipl { border: 1px solid var(--fjn-brand-600); }
.fjn-ipl__sep { width: 100%; margin: 4px 0; border: 0; border-top: 1px solid var(--fjn-surface-2); }
.fjn-ipl__due .fjn-input { max-width: 360px; }
.fjn-ipl__code { display: flex; align-items: center; gap: 10px; margin: 0; font: 700 26px var(--fjn-font-mono); }
.fjn-ipl__chip { display: inline-flex; align-items: center; gap: 4px; padding: 2px 10px; border-radius: 999px; background: #E3ECF7; color: #173F6F; font: 700 13px var(--fjn-font); }
.fjn-ipl__chip--ok { background: #E2F2E8; color: #1B6B41; }
.fjn-ipl__chip--warn { background: #FDF1DC; color: #8A5300; }
.fjn-ipl__btns { display: flex; flex-wrap: wrap; gap: 8px; }
.fjn-ipl__btns .fjn-btn { min-height: 56px; gap: 8px; }
.fjn-ipl__none.is-on { border-color: #C77700; background: #FDF1DC; }
.fjn-ipl__box { display: inline-flex; align-items: center; justify-content: center; width: 22px; height: 22px; border: 2px solid #8A929C; border-radius: 4px; color: transparent; }
.fjn-ipl__none.is-on .fjn-ipl__box { border-color: #8A5300; background: #8A5300; color: #fff; }
.fjn-ipl__dialog { width: min(520px, calc(100vw - 32px)); }
.fjn-ipl__list { display: flex; flex-direction: column; margin: 0; padding: 0; list-style: none; border: 1px solid var(--fjn-border); border-radius: 8px; max-height: 420px; overflow-y: auto; }
.fjn-ipl__row { display: grid; grid-template-columns: 90px 54px minmax(0, 1fr); gap: 10px; align-items: center; width: 100%; min-height: 56px; padding: 0 14px; border: 0; border-top: 1px solid var(--fjn-surface-2); background: var(--fjn-surface); font: inherit; text-align: left; cursor: pointer; }
.fjn-ipl__list li:first-child .fjn-ipl__row { border-top: 0; }
.fjn-ipl__row.is-on { background: var(--fjn-brand-50); box-shadow: inset 3px 0 0 var(--fjn-brand-600); }
.fjn-ipl__row:disabled { color: var(--fjn-text-disabled); background: #F7F8F9; cursor: default; }
.fjn-ipl__pcode { font-weight: 700; }
.fjn-ipl__fill { display: inline-flex; justify-content: center; padding: 2px 6px; border-radius: 999px; border: 1px solid var(--fjn-border-strong); font: 700 12px var(--fjn-font-mono); }
.fjn-ipl__fill--full { background: #9DB4D3; color: #fff; border-color: #9DB4D3; }
.fjn-ipl__fill--free { color: var(--fjn-success-700); border-color: var(--fjn-success-700); }

/* D232 (j) E1-22 / E1-24: the caption chip „Przed / W trakcie / Po” (a tap changes it) and the kind */
.fjn-ocard__photo { position: relative; }
.fjn-pmarks { position: absolute; left: 0; top: 0; width: 100%; aspect-ratio: 1; pointer-events: none; }
.fjn-pcap {
  position: absolute; left: 4px; top: 4px; display: inline-flex; align-items: center; gap: 2px; height: 26px; padding: 0 6px 0 9px;
  border: 0; border-radius: 13px; background: var(--fjn-text); color: var(--fjn-text-inverse); font: inherit; font-size: 11px;
  font-weight: var(--fjn-fw-bold); white-space: nowrap; pointer-events: auto; cursor: pointer;
}
.fjn-pcap--during { background: var(--fjn-warning-700); }
.fjn-pcap--after { background: var(--fjn-success-700); }
.fjn-pcap::after { content: ""; position: absolute; inset: -9px -4px; }  /* 44 px touch target */
.fjn-pcap:focus-visible { outline: none; box-shadow: var(--fjn-focus-btn); }
.fjn-pmarks__kind {
  position: absolute; left: 4px; bottom: 4px; max-width: calc(100% - 8px); display: flex; align-items: center; height: 20px; padding: 0 6px;
  border-radius: 4px; background: var(--fjn-surface); color: var(--fjn-text-2); font-size: 11px; font-weight: var(--fjn-fw-bold);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.fjn-pmarks__kind--damage { background: var(--fjn-warning-100); color: var(--fjn-warning-700); }
.fjn-pcap-info { margin-bottom: 12px; }

/* D232 E1-24: „Rodzaj”, „Dokument (zmiana do wydania)”, „Informacja dla biura” and their windows */
.fjn-od232 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-bottom: var(--fjn-sp-4); align-items: stretch; }
@media (max-width: 767px) { .fjn-od232 { grid-template-columns: 1fr; } }
.fjn-od232 .fjn-od232__facts { justify-content: center; }
.fjn-od232 .fjn-od232__doc { flex-direction: row; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 16px; }
.fjn-od232__doc > div { display: flex; flex-direction: column; gap: 2px; }
.fjn-od232__info { grid-column: 1 / -1; }
.fjn-od232__unknown { color: var(--fjn-danger-700); } /* ModD232 26, 40 */
.fjn-od232 .fjn-od232__doc.is-unknown { border-color: var(--fjn-danger-700); box-shadow: 0 0 0 1px var(--fjn-danger-700); }
.fjn-od232__label { font-size: 12px; color: var(--fjn-text-2); }
.fjn-od232__info { padding: 16px; border: 1px solid var(--fjn-warning-100); border-radius: 8px; background: #FFF8EA; }
.fjn-od232__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.fjn-od232__head h2 { display: inline-flex; align-items: center; gap: 6px; margin: 0; font-size: 14px; color: var(--fjn-warning-700); }
.fjn-od232__edit { font-weight: var(--fjn-fw-bold); }
.fjn-od232__text { margin: 12px 0 6px; }
.fjn-od232__text.is-empty { color: var(--fjn-text-2); }
.fjn-od232__who { margin: 0; font-size: 11px; color: var(--fjn-warning-700); }
.fjn-odlg { width: min(520px, calc(100vw - 32px)); }
.fjn-odlg__main { gap: 12px; color: var(--fjn-text); }
.fjn-odlg__sub { margin: 0; font-size: 13px; color: var(--fjn-text-2); }
.fjn-odlg__body { margin: 0; }
.fjn-odlg__text { width: 100%; box-sizing: border-box; }
.fjn-odlg__meta { display: flex; justify-content: space-between; gap: 12px; margin-top: 6px; font-size: 12px; color: var(--fjn-text-2); }
.fjn-odlg__buyer { margin: 0; }
.fjn-ocopies { display: grid; gap: 12px; }
.fjn-ocopies__item { display: flex; align-items: flex-start; gap: 12px; padding: 12px 16px; border: 1px solid var(--fjn-border-strong); border-radius: 8px; cursor: pointer; }
.fjn-ocopies__item:has(input:checked) { border-color: var(--fjn-brand-700); background: var(--fjn-brand-50); }
.fjn-ocopies__item span { display: flex; flex-direction: column; gap: 2px; }
.fjn-ocopies__item small { font-size: 12px; color: var(--fjn-text-2); }
.fjn-ocopies__item.is-disabled { opacity: .55; cursor: not-allowed; }
/* D232 (g) „Rozliczenie”: „Zapytaj klienta: paragon czy faktura?” */
.fjn-rozl__ask { margin-bottom: 12px; }
.fjn-rozl__card.is-ask { border-color: var(--fjn-danger-700); box-shadow: 0 0 0 1px var(--fjn-danger-700); }
.fjn-intake-card232 { margin-top: 16px; }
.fjn-intake-card232 .fjn-btn { width: 100%; max-width: 360px; justify-self: start; align-self: flex-start; }
/* D232 (m) E1-24 „Zdjęcia”: the tile „Zdjęcie” adds a photo from the card */
.fjn-ocard__add { margin: 0; }
.fjn-ocard__addtile { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; width: 104px; height: 104px;
  box-sizing: border-box; border: 1.5px dashed var(--fjn-brand-700); border-radius: 8px; background: var(--fjn-surface); color: var(--fjn-brand-700);
  font-size: 13px; font-weight: var(--fjn-fw-bold); cursor: pointer; }
.fjn-ocard__addtile:focus-within { box-shadow: var(--fjn-focus-btn); }
@media (max-width: 767px) { .fjn-ocard__addtile { width: 92px; height: 92px; } }


/* D232 the window „Klient” (ModD232 09) */
.fjn-qclient { width: min(520px, calc(100vw - 32px)); }
.fjn-qclient__body { display: flex; flex-direction: column; gap: 12px; }
.fjn-qclient__h { margin: 4px 0 0; font-size: 15px; font-weight: 700; }
.fjn-qclient__search { display: flex; gap: 8px; }
.fjn-qclient__search .fjn-input { flex: 1; min-width: 0; }
.fjn-qclient__list { display: flex; flex-direction: column; gap: 10px; }
.fjn-qclient__card {
  display: flex; flex-direction: column; gap: 2px; padding: 14px 16px; text-align: left; cursor: pointer;
  background: var(--fjn-surface); border: 1px solid var(--fjn-border); border-radius: 8px; font: inherit; color: var(--fjn-text);
}
.fjn-qclient__card:hover { border-color: var(--fjn-brand-600); }
.fjn-qclient__card b { font-size: 16px; }
.fjn-qclient__card span { font: 14px var(--fjn-font-mono); color: var(--fjn-text-2); }
.fjn-qclient .fjn-field--error .fjn-field__label { color: var(--fjn-danger-700); }
.fjn-qclient__foot { display: grid; grid-template-columns: 1fr 2fr; gap: 10px; }
.fjn-qclient__foot .fjn-btn { height: 56px; justify-content: center; }

/* D232 (d) „Planowany odbiór”: the field and the window (ModD232 18–19) */
.fjn-ipl__duebtn {
  display: flex; align-items: center; justify-content: space-between; gap: 12px; width: min(360px, 100%); height: 56px;
  padding: 0 14px; border: 1px solid var(--fjn-border-strong); border-radius: 8px; background: var(--fjn-surface);
  font: inherit; font-size: 17px; color: var(--fjn-text); cursor: pointer;
}
.fjn-field--error .fjn-ipl__duebtn { border-color: var(--fjn-danger-700); }
.fjn-ipick { width: min(520px, calc(100vw - 32px)); }
.fjn-ipick__month { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.fjn-ipick__title { font-size: 17px; }
.fjn-ipick__nav {
  display: flex; align-items: center; justify-content: center; width: 50px; height: 50px; border: 1px solid var(--fjn-border-strong);
  border-radius: 8px; background: var(--fjn-surface); color: var(--fjn-text); cursor: pointer;
}
.fjn-ipick__nav.is-off { opacity: .35; cursor: default; }
.fjn-ipick__grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; }
.fjn-ipick__wd { padding: 6px 0; text-align: center; font-size: 12px; font-weight: 700; color: var(--fjn-text-2); }
.fjn-ipick__day {
  display: flex; flex-direction: column; align-items: center; justify-content: center; height: 48px;
  border: 1px solid var(--fjn-border); border-radius: 8px; background: var(--fjn-surface); font: inherit; color: var(--fjn-text); cursor: pointer;
}
.fjn-ipick__day b { font: 700 15px var(--fjn-font-mono); }
.fjn-ipick__day small { font-size: 9px; line-height: 1; }
.fjn-ipick__day.is-off { border-color: transparent; background: none; color: #AEB5BE; cursor: default; }
.fjn-ipick__day.is-out { border-color: transparent; background: none; }
.fjn-ipick__day.is-chosen { background: var(--fjn-brand-600); border-color: var(--fjn-brand-600); color: var(--fjn-text-inverse); }
.fjn-ipick__foot { display: grid; grid-template-columns: 1fr 2fr; gap: 10px; }
.fjn-ipick__foot .fjn-btn { height: 56px; justify-content: center; }

/* ModD232 06: „Dokument” above the tiles and the yellow hint at „Nie wiem” */
.fjn-qdoc__label { display: block; margin-bottom: 8px; color: var(--fjn-text); }
.fjn-qdoc__hint {
  display: flex; gap: 10px; align-items: flex-start; margin: 12px 0 0; padding: 12px 14px; border-radius: 8px;
  background: var(--fjn-warning-100); color: var(--fjn-text); font-size: 14px; line-height: 20px;
}
.fjn-qdoc__hint svg { flex: none; margin-top: 1px; color: var(--fjn-warning-700); }
/* ModD232 06 (T): „Opcje dodatkowe” in one column below the computer width */
@media (max-width: 1279px) { .fjn-quick__opts { grid-template-columns: minmax(0, 1fr); } }
