/* FJN System — E1 block 8: E1-40 „Gotowe do wydania”, E1-41 „Wydanie”, storage place (D127).
   Measurements from ModWydania („gotowe”, „wydanie”, „wydanie-bez”) and ModBlok5 „qc-miejsce”. */

/* E1-40 */
.fjn-ready { gap: 14px; }
.fjn-ready__head { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.fjn-ready__title { margin: 0; font-size: 28px; line-height: 1.3; white-space: nowrap; }
.fjn-ready__scope { font-size: 15px; color: var(--fjn-text-2); white-space: nowrap; }
.fjn-ready__filters { display: flex; gap: 10px; flex-wrap: wrap; }
.fjn-ready__table { background: var(--fjn-surface); border: 1px solid var(--fjn-border); border-radius: var(--fjn-r-lg); overflow: hidden; }
.fjn-ready__row {
  display: grid; grid-template-columns: 200px minmax(0, 1.5fr) 170px 210px 120px 120px; align-items: center;
  min-height: 56px; border-bottom: 1px solid var(--fjn-surface-2); font-size: 15px;
}
.fjn-ready__row:last-child { border-bottom: 0; }
.fjn-ready__row > span { padding: 0 12px; min-width: 0; }
.fjn-ready__row > span:first-child { padding: 6px 16px; }
.fjn-ready__row--head {
  min-height: 40px; height: 40px; background: var(--fjn-bg); border-bottom: 1px solid var(--fjn-border);
  font-size: 12px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--fjn-text-2);
}
.fjn-ready__order { display: flex; flex-direction: column; gap: 1px; }
.fjn-ready__order b { font-size: 15px; white-space: nowrap; }
.fjn-ready__order span { font-size: 13px; color: var(--fjn-text-2); white-space: nowrap; }
.fjn-ready__client { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fjn-ready__place { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fjn-ready__place-link { color: var(--fjn-text); text-decoration: underline; text-underline-offset: 2px; } /* D128 */
.fjn-ready__place-link--missing { color: var(--fjn-warning-700); }
.fjn-ready__pay { height: 24px; padding: 0 10px; font-size: 13px; font-weight: 700; white-space: nowrap; }
.fjn-ready__pay--oplacone { background: var(--fjn-success-100); color: var(--fjn-success-700); }
.fjn-ready__pay--do-zaplaty { background: var(--fjn-warning-100); color: var(--fjn-warning-700); }
.fjn-ready__pay--termin { background: var(--fjn-info-100); color: var(--fjn-info-700); } /* D128 pt 6 */
.fjn-ready__when { color: var(--fjn-text-2); white-space: nowrap; }
.fjn-ready__row > .fjn-ready__action { display: flex; justify-content: flex-end; padding: 0 16px 0 0; }
.fjn-ready__btn { height: 40px; padding: 0 16px; }
.fjn-ready__cards { display: none; flex-direction: column; gap: 10px; margin: 0; padding: 0; list-style: none; }
.fjn-ready__card {
  display: flex; flex-direction: column; gap: 10px; padding: 14px 16px;
  background: var(--fjn-surface); border: 1px solid var(--fjn-border); border-radius: var(--fjn-r-lg);
}
.fjn-ready__card-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; }
.fjn-ready__card-id { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.fjn-ready__card-id b { font-size: 16px; white-space: nowrap; }
.fjn-ready__card-id span { font-size: 15px; }
.fjn-ready__meta { display: flex; gap: 16px; flex-wrap: wrap; font-size: 14px; color: var(--fjn-text-2); }
.fjn-ready__meta > span { display: flex; align-items: center; gap: 6px; white-space: nowrap; }
.fjn-ready__card-btn { height: 48px; font-size: 16px; }
@media (max-width: 1279px) {
  .fjn-ready__row { grid-template-columns: 170px minmax(0, 1.3fr) 150px 190px 100px 100px; }
}
@media (max-width: 767px) {
  .fjn-ready__title { font-size: 22px; }
  .fjn-ready__filters > * { flex: 1 1 0; min-width: 0; }
  .fjn-ready__cards { display: flex; }
}

/* E1-41 */
.fjn-rel {
  display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 16px; align-items: start;
  max-width: 960px; box-sizing: content-box;
}
.fjn-rel__main { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.fjn-rel__head { display: flex; flex-direction: column; gap: 4px; }
.fjn-rel__crumb { margin: 0; font-size: 14px; color: var(--fjn-text-2); }
.fjn-rel__crumb a { color: inherit; font-weight: 400; text-decoration: none; }
.fjn-rel__crumb a:hover { text-decoration: underline; }
.fjn-rel__crumb b { color: var(--fjn-text); }
.fjn-rel__title { margin: 0; font-size: 26px; line-height: 34px; }
.fjn-rel__card {
  display: flex; flex-direction: column; gap: 12px; padding: 16px;
  background: var(--fjn-surface); border: 1px solid var(--fjn-border); border-radius: var(--fjn-r-lg);
}
.fjn-rel__h2 { margin: 0; font-size: 17px; line-height: 24px; }
.fjn-rel__place { display: flex; align-items: center; gap: 12px; padding: 12px; border-radius: 8px; background: var(--fjn-brand-50); color: var(--fjn-brand-600); }
.fjn-rel__place div { display: flex; flex-direction: column; gap: 2px; color: var(--fjn-text); }
.fjn-rel__place span { font-size: 13px; color: var(--fjn-text-2); }
.fjn-rel__place b { font-size: 20px; line-height: 28px; }
.fjn-rel__wheels { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; margin: 0; padding: 0; list-style: none; }
.fjn-rel__wheel {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; min-height: 64px;
  border: 2px solid var(--fjn-border); border-radius: 8px; background: var(--fjn-surface); box-sizing: border-box;
}
.fjn-rel__wheel b { font-size: 18px; }
.fjn-rel__wheel span { font-size: 12px; font-weight: 700; color: var(--fjn-text-2); }
.fjn-rel__wheel.is-ok { border-color: var(--fjn-success-700); background: var(--fjn-success-100); }
.fjn-rel__wheel.is-ok span { color: var(--fjn-success-700); }
.fjn-rel__actions { display: flex; gap: 10px; flex-wrap: wrap; }
.fjn-rel__actions > * { flex: 1 1 160px; }
.fjn-rel__big { height: 52px; font-size: 16px; font-weight: 700; }
.fjn-rel__hint { margin: 0; font-size: 13px; color: var(--fjn-text-2); }
.fjn-rel__group { display: flex; flex-direction: column; gap: 6px; margin: 0; padding: 0; border: 0; min-width: 0; }
.fjn-rel__label { padding: 0; font-size: 14px; font-weight: 700; }
.fjn-rel__label-note { font-weight: 400; color: var(--fjn-text-2); }
.fjn-rel__forms { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; } /* D193: Gotówka, Karta, BLIK, Przelew */
.fjn-rel__form, .fjn-rel__reason { position: relative; display: flex; }
.fjn-rel__form input { position: absolute; opacity: 0; }
.fjn-rel__form span {
  flex: 1; display: flex; align-items: center; justify-content: center; height: 52px; box-sizing: border-box;
  border: 2px solid var(--fjn-border); border-radius: 8px; background: var(--fjn-surface); font-weight: 700; cursor: pointer;
}
.fjn-rel__form input:checked + span { border-color: var(--fjn-brand-600); background: var(--fjn-brand-600); color: var(--fjn-text-inverse); }
.fjn-rel__form input:focus-visible + span, .fjn-rel__reason input:focus-visible + span { box-shadow: var(--fjn-focus); }
.fjn-rel__amount {
  display: flex; align-items: stretch; height: 52px; box-sizing: border-box; background: var(--fjn-surface);
  border: 1px solid var(--fjn-border-strong); border-radius: var(--fjn-r-md);
}
.fjn-rel__amount:focus-within { border-color: var(--fjn-brand-600); box-shadow: var(--fjn-focus); }
.fjn-field--error .fjn-rel__amount { border-color: var(--fjn-danger-700); }
.fjn-rel__amount input { flex: 1; min-width: 0; padding: 0 12px; border: 0; background: none; font-size: 18px; font-weight: 700; text-align: right; outline: none; }
.fjn-rel__amount input:focus, .fjn-rel__amount input:focus-visible { outline: none; box-shadow: none; }
.fjn-rel__amount span {
  display: flex; align-items: center; padding: 0 12px; color: var(--fjn-text-2); background: var(--fjn-bg);
  border-left: 1px solid var(--fjn-border); border-radius: 0 var(--fjn-r-md) var(--fjn-r-md) 0;
}
.fjn-rel__unpaid-link { display: flex; align-items: center; min-height: 40px; font-size: 14px; font-weight: 700; text-decoration: none; }
.fjn-rel__warn { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border-radius: 8px; background: var(--fjn-warning-100); font-size: 14px; line-height: 20px; }
.fjn-rel__warn > svg { flex: none; margin-top: 1px; color: var(--fjn-warning-700); }
.fjn-rel__warn b { color: var(--fjn-warning-700); }
.fjn-rel .fjn-input-group { height: 52px; }
.fjn-rel__reasons { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 8px; }
.fjn-rel__reason input { position: absolute; opacity: 0; }
.fjn-rel__reason span {
  flex: 1; display: flex; align-items: center; gap: 10px; min-height: 52px; padding: 0 12px; box-sizing: border-box;
  border: 1px solid var(--fjn-border); border-radius: 8px; background: var(--fjn-surface); font-size: 15px; cursor: pointer;
}
.fjn-rel__reason span::before {
  content: ""; flex: none; width: 18px; height: 18px; box-sizing: border-box; border: 2px solid var(--fjn-border-strong); border-radius: 50%;
}
.fjn-rel__reason input:checked + span { border: 2px solid var(--fjn-brand-600); background: var(--fjn-brand-50); font-weight: 700; padding: 0 11px; }
.fjn-rel__reason input:checked + span::before { border: 6px solid var(--fjn-brand-600); }
.fjn-rel__note { min-height: 56px; font-size: 15px; }
.fjn-rel__due { gap: 10px; }
.fjn-rel__sum { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 6px 12px; margin: 0; font-size: 15px; }
.fjn-rel__sum dt { color: var(--fjn-text-2); }
.fjn-rel__sum dd { margin: 0; text-align: right; }
.fjn-rel__total { display: flex; justify-content: space-between; align-items: baseline; padding-top: 10px; border-top: 1px solid var(--fjn-border); }
.fjn-rel__total b:first-child { font-size: 16px; }
.fjn-rel__total b:last-child { font-size: 26px; line-height: 34px; }
.fjn-rel__doc { margin: 0; font-size: 13px; color: var(--fjn-text-2); }
.fjn-rel__issue { margin-top: 6px; height: 44px; }
@media (max-width: 1279px) {
  .fjn-rel { grid-template-columns: minmax(0, 1fr); max-width: none; }
  .fjn-rel__issue { height: 52px; }
}
@media (min-width: 1280px) { .fjn-rel__big { height: 44px; } }

/* Storage place: E1-37 „qc-miejsce” (hall page) and the E1-40 dialog */
.fjn-qcplace { display: flex; flex-direction: column; min-height: 100%; }
.fjn-qcplace__body { display: flex; flex-direction: column; gap: 16px; width: 100%; max-width: 760px; margin: 0 auto; padding: 20px 24px 120px; box-sizing: border-box; }
.fjn-qcplace__head { display: flex; flex-direction: column; gap: 4px; }
.fjn-qcplace__title { margin: 0; font-size: 26px; line-height: 1.25; }
.fjn-qcplace__sub { font-size: 15px; color: var(--fjn-text-2); }
.fjn-qcplace__ok { display: flex; gap: 12px; align-items: flex-start; padding: 12px 14px; border-radius: 10px; background: var(--fjn-success-100); color: var(--fjn-success-700); }
.fjn-qcplace__ok > svg { flex: none; margin-top: 1px; }
.fjn-qcplace__ok div { display: flex; flex-direction: column; gap: 3px; color: var(--fjn-text); }
.fjn-qcplace__ok b { font-size: 16px; line-height: 1.3; color: var(--fjn-success-700); }
.fjn-qcplace__ok span { font-size: 14px; line-height: 20px; }
.fjn-qcplace__foot {
  position: fixed; right: 0; bottom: 0; left: var(--fjn-rail-w); z-index: 20; display: flex; justify-content: flex-end; gap: 10px;
  padding: 12px 24px; background: var(--fjn-surface); border-top: 1px solid var(--fjn-border);
}
.fjn-qcplace__btn { height: 56px; padding: 0 18px; font-size: 16px; }
.fjn-qcplace__btn--main { padding: 0 20px; }
.fjn-qcplace__btn.fjn-hbtn--outline { border: 1px solid var(--fjn-border-strong); }
.fjn-place { display: flex; flex-direction: column; gap: 6px; }
.fjn-place__label { font-size: 14px; font-weight: 700; }
.fjn-place__input { height: 56px; font-size: 16px; }
.fjn-place__hint { font-size: 13px; line-height: 18px; color: var(--fjn-text-2); }
@media (min-width: 1280px) {
  .fjn-qcplace__foot { left: var(--fjn-sidebar-w); }
  .fjn-qcplace__body { max-width: 960px; padding: 24px 32px 120px; }
  .fjn-qcplace__btn { height: 44px; }
  .fjn-place__input { height: 40px; }
}
@media (max-width: 767px) {
  .fjn-qcplace__body { padding: 14px 16px 120px; }
  .fjn-qcplace__title { font-size: 22px; }
  .fjn-qcplace__ok b { font-size: 15px; }
  .fjn-qcplace__foot { left: 0; bottom: var(--fjn-bottomnav-h); padding: 12px 16px; }
  .fjn-qcplace__btn { flex: 1; }
  .fjn-qcplace__btn--main { flex: 2; }
}
