/* FJN System — E2 block 3 screens (D149 ModWydaniaMag, D151 ModD151): E2-20 plan, windows of the
   plan, E2-11 plan box. */

.fjn-stplan__bar { align-items: center; }
.fjn-stplan__week { display: flex; align-items: center; height: 40px; border: 1px solid var(--fjn-border-strong); border-radius: 6px; background: var(--fjn-surface); }
.fjn-stplan__week b { padding: 0 14px; font-size: 15px; white-space: nowrap; border-left: 1px solid var(--fjn-border-strong); border-right: 1px solid var(--fjn-border-strong); height: 100%; display: flex; align-items: center; }
.fjn-stplan__nav { width: 40px; height: 100%; display: flex; align-items: center; justify-content: center; color: var(--fjn-text); }
.fjn-stplan__new { margin-left: auto; gap: 6px; }
.fjn-stplan__day { background: var(--fjn-surface); border: 1px solid var(--fjn-border); border-radius: 10px; overflow: hidden; }
.fjn-stplan__dayhead { display: flex; justify-content: space-between; align-items: center; gap: 8px; min-height: 40px; padding: 0 16px; background: var(--fjn-bg); border-bottom: 1px solid var(--fjn-border); }
.fjn-stplan__dayhead b { font-size: 15px; }
.fjn-stplan__dayhead span { font-size: 13px; color: var(--fjn-text-2); }
.fjn-stplan__row { display: grid; grid-template-columns: 70px 120px minmax(0, 1fr) 90px 190px 80px; align-items: center; gap: 0 12px; min-height: 55px; padding: 6px 16px; border-bottom: 1px solid var(--fjn-surface-2); font-size: 14px; }
.fjn-stplan__row:last-child { border-bottom: 0; }
.fjn-stplan__time { font-size: 15px; }
.fjn-stplan__kind { display: flex; align-items: center; gap: 6px; }
.fjn-stplan__who { display: flex; flex-direction: column; gap: 2px; min-width: 0; color: var(--fjn-text); text-decoration: none; }
.fjn-stplan__who > span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fjn-stplan__who small { font-size: 12px; color: var(--fjn-text-2); }
.fjn-stplan__slot { font-size: 16px; }
.fjn-stplan__edit.fjn-btn { min-height: 40px; }
.fjn-stplan__seg { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin: 0; padding: 0; border: 0; }
.fjn-stplan__seg legend { margin-bottom: 6px; }
.fjn-stplan__seg label { height: 56px; display: flex; align-items: center; justify-content: center; border: 1px solid var(--fjn-border-strong); border-radius: 6px; background: #fff; font-weight: 700; cursor: pointer; }
.fjn-stplan__seg label:has(input:checked) { background: var(--fjn-brand-600); border-color: var(--fjn-brand-600); color: #fff; }
.fjn-stplan__seg label:has(input:focus-visible) { box-shadow: var(--fjn-focus-btn); }
.fjn-stplan__info { margin: 0; padding: 10px 14px; border-radius: 8px; background: var(--fjn-info-100); color: var(--fjn-text); font-size: 14px; }
.fjn-stcard__plan { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 12px 16px; font-size: 14px; }
.fjn-stcard__plan > span:first-child { color: var(--fjn-text-2); }
.fjn-stcard__plan > b { flex: 1; }
.fjn-stcard__mbtns { display: flex; gap: 8px; }
.fjn-stcard__mbtns .fjn-btn { flex: 1; min-height: 56px; gap: 8px; }
@media (max-width: 1279px) {
  .fjn-stplan__row { grid-template-columns: 60px 110px minmax(0, 1fr) 80px 170px 76px; }
  .fjn-stplan__week, .fjn-stplan__bar .fjn-filter__button { height: 56px; }
}
@media (max-width: 767px) {
  .fjn-stplan__row { grid-template-columns: 76px minmax(0, 1fr); gap: 4px 12px; padding: 12px 16px; }
  .fjn-stplan__time { grid-row: span 3; font-size: 22px; }
  .fjn-stplan__kind, .fjn-stplan__slot, .fjn-stplan__edit { display: none; }
  .fjn-stplan__new { margin-left: 0; }
}

/* E2-21 „Na jutro” */
.fjn-sttom__mday { font-size: 18px; }
.fjn-sttom__list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.fjn-sttom__row { display: grid; grid-template-columns: 120px minmax(0, 1fr) 64px; align-items: center; gap: 12px; min-height: 86px; padding: 10px 12px 10px 14px; background: var(--fjn-surface); border: 1px solid var(--fjn-border); border-radius: 8px; }
.fjn-sttom__row.is-done { border-color: var(--fjn-success-700); background: #F4FAF6; }
.fjn-sttom__row.is-done .fjn-sttom__slot, .fjn-sttom__row.is-done .fjn-sttom__what { opacity: .7; }
.fjn-sttom__row.is-off { opacity: .55; }
.fjn-sttom__slot { font-size: 24px; }
.fjn-sttom__what { display: flex; flex-direction: column; gap: 2px; min-width: 0; font-size: 15px; }
.fjn-sttom__what > span, .fjn-sttom__what small { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fjn-sttom__what small { font-size: 13px; color: var(--fjn-text-2); }
.fjn-sttom__warn { color: var(--fjn-warning-700) !important; font-weight: 700; white-space: normal !important; }
.fjn-sttom__row form { margin: 0; }
.fjn-sttom__box { width: 64px; height: 64px; display: flex; align-items: center; justify-content: center; border: 2px solid var(--fjn-border-strong); border-radius: 8px; background: #fff; color: #fff; cursor: pointer; }
.fjn-sttom__row.is-done .fjn-sttom__box { background: var(--fjn-success-700); border-color: var(--fjn-success-700); }
.fjn-sttom__box.is-disabled { border-style: dashed; border-color: #C9CED5; background: var(--fjn-bg); cursor: not-allowed; }
@media (max-width: 767px) {
  .fjn-sttom__row { grid-template-columns: 76px minmax(0, 1fr) 56px; min-height: 76px; gap: 10px; }
  .fjn-sttom__slot { font-size: 20px; }
  .fjn-sttom__box { width: 56px; height: 56px; }
}

/* E2-22 „Wydanie kompletu” */
.fjn-strel__head { display: flex; flex-direction: column; gap: 6px; }
.fjn-strel__title { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.fjn-strel__title .fjn-page__title { margin: 0; }
.fjn-strel__sub { margin: 0; font-size: 14px; color: var(--fjn-text-2); }
.fjn-strel__ok { margin: 0; padding: 12px 16px; border-radius: 8px; background: var(--fjn-success-100); font-size: 14px; }
.fjn-strel__scan { display: flex; flex-direction: column; gap: 10px; }
.fjn-strel__camera summary { list-style: none; display: inline-flex; gap: 8px; }
.fjn-strel__camera summary::-webkit-details-marker { display: none; }
.fjn-strel__camera[open] summary { margin-bottom: 10px; }
.fjn-strel__acts { display: flex; gap: 8px; flex-wrap: wrap; }
.fjn-strel__acts .fjn-btn { min-height: 56px; }
.fjn-strel__line { display: flex; justify-content: space-between; align-items: center; gap: 12px; font-size: 15px; }
.fjn-strel__line > span:first-child { display: flex; flex-direction: column; gap: 2px; }
.fjn-strel__line small { font-size: 12px; color: var(--fjn-text-2); }
.fjn-strel__next { display: flex; align-items: center; gap: 8px; margin: 4px 0 0; font-size: 14px; color: var(--fjn-text-2); } /* D199 (4) */
.fjn-strel__line.is-top { padding-top: 10px; border-top: 1px solid var(--fjn-surface-2); }
.fjn-strel__method { display: flex; align-items: center; gap: 12px; }
.fjn-strel__method .fjn-select { max-width: 200px; }
.fjn-strel__kv { display: flex; flex-direction: column; gap: 8px; padding: 12px 16px; }
.fjn-strel__kv > div { display: flex; justify-content: space-between; gap: 12px; font-size: 15px; }
.fjn-strel__done { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border-radius: 10px; background: var(--fjn-success-100); color: var(--fjn-success-700); }
.fjn-strel__done p { margin: 0 0 10px; color: var(--fjn-text); }
.fjn-strel__pdf.fjn-btn { background: var(--fjn-success-700); color: #fff; }
.fjn-strel__warn, .fjn-strel__error { padding: 14px 16px; border-radius: 8px; font-size: 15px; line-height: 21px; }
.fjn-strel__warn p, .fjn-strel__error p { margin: 0; }
.fjn-strel__warn { background: var(--fjn-warning-100); }
.fjn-strel__error { background: var(--fjn-danger-100); font-size: 20px; line-height: 30px; }
.fjn-strel__wide { width: 100%; min-height: 56px; }
.fjn-strel__back { align-self: flex-start; gap: 8px; }
.fjn-strel__foot { justify-content: space-between; }

/* E2-23 sets on the transfer (E1-42 page) */
.fjn-tsets { display: flex; flex-direction: column; gap: 10px; }
.fjn-tsets__list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.fjn-tsets__list li { display: flex; gap: 12px; align-items: flex-start; padding: 12px 0; border-top: 1px solid var(--fjn-surface-2); }
.fjn-tsets__list li > span:last-child { display: flex; flex-direction: column; gap: 2px; }
.fjn-tsets__list small { font-size: 13px; color: var(--fjn-text-2); }
.fjn-tsets__chip { height: 24px; padding: 0 8px; border-radius: 4px; background: var(--fjn-brand-100); color: var(--fjn-brand-700); font-size: 12px; font-weight: 700; display: inline-flex; align-items: center; }
.fjn-sttr__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; align-items: start; }
.fjn-sttr__checks { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.fjn-sttr__checks li { display: flex; gap: 12px; align-items: flex-start; }
.fjn-sttr__checks li > span:last-child { display: flex; flex-direction: column; gap: 2px; }
.fjn-sttr__checks small { font-size: 13px; color: var(--fjn-text-2); }
.fjn-sttr__mark { width: 24px; height: 24px; border-radius: 50%; display: flex; align-items: center; justify-content: center; flex: none; color: #fff; background: var(--fjn-success-700); }
.fjn-sttr__checks .is-no .fjn-sttr__mark { background: var(--fjn-danger-700); }
.fjn-sttr__pick { margin: 0; min-width: 0; }
.fjn-sttr__pick legend { float: left; width: 100%; margin-bottom: 4px; font-weight: 700; }
@media (max-width: 767px) { .fjn-sttr__grid { grid-template-columns: minmax(0, 1fr); } }

/* E2-24 batch */
.fjn-stbatch__head { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 14px 16px; }
.fjn-stbatch__head > div:first-child { display: flex; flex-direction: column; gap: 2px; }
.fjn-stbatch__head b { font-size: 17px; }
.fjn-stbatch__head small { font-size: 13px; color: var(--fjn-text-2); }
.fjn-stbatch__count { display: flex; flex-direction: column; align-items: center; color: var(--fjn-brand-600); }
.fjn-stbatch__count b { font-size: 36px; line-height: 1; }
.fjn-stbatch__count small { color: var(--fjn-text-2); }
.fjn-stbatch__add summary { list-style: none; width: 100%; min-height: 56px; gap: 8px; }
.fjn-stbatch__add summary::-webkit-details-marker { display: none; }
.fjn-stbatch__add[open] summary { margin-bottom: 10px; }
.fjn-stbatch__list { list-style: none; margin: 0; padding: 0; }
.fjn-stbatch__list li { display: grid; grid-template-columns: 32px minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 10px 16px; border-top: 1px solid var(--fjn-surface-2); }
.fjn-stbatch__list li:first-child { border-top: 0; }
.fjn-stbatch__list li > span:nth-child(2) { display: flex; flex-direction: column; gap: 2px; }
.fjn-stbatch__list small { font-size: 13px; color: var(--fjn-text-2); }
.fjn-stbatch__n { font-size: 14px; color: var(--fjn-text-2); }
.fjn-stbatch__new { background: var(--fjn-brand-100); color: var(--fjn-brand-700); }

/* E2-30 „Przechowanie kół” on E1-44 */
.fjn-stfees__list { list-style: none; margin: 0; padding: 0; }
.fjn-stfees__list li { display: grid; grid-template-columns: minmax(0, 1fr) 110px 150px; gap: 12px; align-items: center; padding: 12px 16px; border-top: 1px solid var(--fjn-surface-2); }
.fjn-stfees__text { display: flex; flex-direction: column; gap: 3px; min-width: 0; font-size: 14px; }
.fjn-stfees__text > span { font-size: 13px; color: var(--fjn-text-2); }
.fjn-stfees__tags { display: flex; gap: 6px; flex-wrap: wrap; }
.fjn-stfees__tag { display: inline-flex; align-items: center; gap: 5px; height: 22px; padding: 0 8px; border-radius: 4px; background: var(--fjn-neutral-100); color: var(--fjn-text-2); font-size: 12px; font-weight: 700; }
.fjn-stfees__tag.is-info { background: var(--fjn-brand-100); color: var(--fjn-brand-700); }
.fjn-stfees__amount { text-align: right; font-size: 16px; }
.fjn-stfees__state { justify-self: end; }
@media (max-width: 767px) {
  .fjn-stfees__list li { grid-template-columns: minmax(0, 1fr) auto; }
  .fjn-stfees__state { grid-column: 1 / -1; justify-self: start; }
}

/* E2-31 seasons */
.fjn-stseas__card { max-width: 800px; }
.fjn-stseas__ex { display: flex; flex-direction: column; gap: 6px; padding: 12px 14px; border-radius: 8px; background: var(--fjn-bg); font-size: 14px; }
.fjn-stseas__ex p { margin: 0; }
.fjn-stseas__ex small { font-size: 13px; color: var(--fjn-text-2); }

/* E2-32 next season messages */
.fjn-stnext__list { list-style: none; margin: 0; padding: 0; }
.fjn-stnext__list li { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 14px 16px; border-top: 1px solid var(--fjn-surface-2); }
.fjn-stnext__list li:first-child { border-top: 0; }
.fjn-stnext__text { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.fjn-stnext__text a { color: inherit; text-decoration: none; }
.fjn-stnext__text > span { font-size: 14px; color: var(--fjn-text-2); }
.fjn-stnext__text small { font-size: 13px; color: var(--fjn-text-2); }
.fjn-stnext__side { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; justify-content: flex-end; }
.fjn-stnext__side form { margin: 0; }

/* E2-40 warehouse dashboard */
.fjn-stdash { display: flex; flex-direction: column; gap: 16px; max-width: 1200px; }
.fjn-stdash__head .fjn-page__title { margin: 0; }
.fjn-stdash__tiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.fjn-stdash__tile { display: flex; flex-direction: column; gap: 8px; min-height: 150px; padding: 16px; border-radius: 12px; background: var(--fjn-brand-100); color: var(--fjn-brand-700); text-decoration: none; }
.fjn-stdash__tile.is-warn { background: var(--fjn-warning-100); color: var(--fjn-warning-700); }
.fjn-stdash__tile.is-main { background: var(--fjn-brand-600); color: #fff; }
.fjn-stdash__label { display: flex; justify-content: space-between; align-items: center; font-weight: 700; font-size: 16px; }
.fjn-stdash__tile b { font-size: 40px; line-height: 1.1; }
.fjn-stdash__tile small { font-size: 13px; margin-top: auto; }
.fjn-stdash__scan { min-height: 72px; font-size: 20px; gap: 12px; }
@media (max-width: 767px) { .fjn-stdash__tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); } .fjn-stdash__tile { min-height: 128px; } }
.fjn-stseas { display: flex; flex-direction: column; gap: 16px; }
.fjn-strel__form { display: contents; } /* D153: fees and the footer in one form */
.fjn-strel__amount { display: inline-flex; align-items: center; gap: 6px; }
.fjn-strel__amount input { max-width: 160px; text-align: right; }
.fjn-strel__form > .fjn-form-footer { margin-top: auto; }
