/* E2 block 1 (D145, ModMagazyn1): intake, conflict, inspection, summary, preparation, put-away,
   labels. Cards 10 px radius, labels 12 px caps, controls 56 px in the warehouse. */
.fjn-stin { display: flex; flex-direction: column; gap: 16px; width: 100%; min-height: calc(100vh - var(--fjn-topbar-h)); padding-bottom: 0; }
.fjn-stin > .fjn-form-footer, .fjn-stin__form > .fjn-form-footer { margin-top: auto; }
.fjn-stin__form { flex: 1; }
@media (max-width: 767px) { .fjn-stin { min-height: calc(100vh - var(--fjn-topbar-h-m) - var(--fjn-bottomnav-h)); } }
.fjn-stin .fjn-alert--danger .fjn-alert__body a { color: var(--fjn-danger-700); font-weight: 700; text-decoration: underline; }
.fjn-stin > :not(.fjn-form-footer, dialog), .fjn-stin__form > :not(.fjn-form-footer, dialog) { width: 100%; max-width: 1040px; margin-left: auto; margin-right: auto; }
.fjn-stin__form { display: flex; flex-direction: column; gap: 16px; }
.fjn-stin__head { display: flex; flex-direction: column; gap: 6px; }
.fjn-stin__title { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.fjn-stin__title .fjn-page__title { margin: 0; }
.fjn-stin__number { font-size: 16px; font-weight: 700; color: var(--fjn-text-2); }
.fjn-stin__mline { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.fjn-stin__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
@media (max-width: 767px) { .fjn-stin__grid { grid-template-columns: 1fr; gap: 12px; } .fjn-stin { gap: 12px; } }
.fjn-stin__card { display: flex; flex-direction: column; gap: 10px; margin: 0; padding: 16px; border: 1px solid var(--fjn-border); border-radius: 10px; background: var(--fjn-surface); min-width: 0; }
.fjn-stin__card--muted { background: var(--fjn-bg); }
.fjn-stin__card--warn { border: 2px solid #8A5300; }
.fjn-stin__card.is-error { border: 2px solid var(--fjn-danger-700); }
.is-dim { opacity: .5; }
.fjn-stin__label { display: flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--fjn-text-2); }
.fjn-stin__hint { font-size: 13px; line-height: 18px; color: var(--fjn-text-2); }
.fjn-stin__who { display: flex; align-items: center; gap: 12px; min-height: 44px; }
.fjn-stin__avatar { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; flex: none; border-radius: 8px; background: var(--fjn-bg); color: var(--fjn-text-2); }
.fjn-stin__whotext { display: flex; flex-direction: column; gap: 2px; flex: 1; min-width: 0; }
.fjn-stin__whotext b { font-size: 16px; }
.fjn-stin__whotext span { font-size: 13px; color: var(--fjn-text-2); }
.fjn-stin__change { font-weight: 700; font-size: 14px; }
.fjn-stin__add { font-weight: 700; font-size: 14px; min-height: 44px; display: flex; align-items: center; }
.fjn-stin__plate { display: inline-flex; align-items: center; padding: 4px 10px; border: 2px solid var(--fjn-text); border-radius: 6px; font: 700 18px/1.2 var(--fjn-font-mono); letter-spacing: .04em; white-space: nowrap; }
.fjn-stin__plate--sm { font-size: 14px; padding: 2px 6px; }
.fjn-stin__tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
@media (max-width: 767px) { .fjn-stin__tiles { grid-template-columns: 1fr; } }
.fjn-stin__tile { display: flex; align-items: center; gap: 12px; min-height: 76px; padding: 12px 14px; border: 1px solid var(--fjn-border); border-radius: 10px; background: var(--fjn-surface); cursor: pointer; }
.fjn-stin__tile.is-on { border: 2px solid var(--fjn-brand-600); background: var(--fjn-brand-50, #EEF3FA); }
.fjn-stin__tile.is-error { border: 2px solid var(--fjn-danger-700); }
.fjn-stin__tile:focus-within { box-shadow: var(--fjn-focus-btn); }
.fjn-stin__tile-icon { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; flex: none; border-radius: 8px; background: var(--fjn-bg); }
.fjn-stin__tile.is-on .fjn-stin__tile-icon { background: var(--fjn-brand-600); color: #fff; }
.fjn-stin__tile-text { display: flex; flex-direction: column; gap: 4px; flex: 1; }
.fjn-stin__tile-text b { font-size: 16px; }
.fjn-stin__tile-text span { font-size: 14px; font-weight: 700; }
.fjn-stin__noprice { color: var(--fjn-danger-700); }
.fjn-stin__tick { display: inline-flex; align-items: center; justify-content: center; width: 24px; height: 24px; border-radius: 50%; background: var(--fjn-brand-600); color: #fff; }
.fjn-stin__wheels { flex-direction: row; align-items: center; justify-content: space-between; min-height: 96px; }
.fjn-stin__wheels-text { display: flex; flex-direction: column; gap: 4px; }
.fjn-stin__wheels-text span { font-size: 13px; color: var(--fjn-text-2); }
.fjn-stin__stepper { display: inline-flex; align-items: center; gap: 12px; }
.fjn-stin__step { width: 56px; height: 56px; border: 0; border-radius: 8px; background: var(--fjn-brand-50, #E3EBF6); color: var(--fjn-brand-600); font-size: 26px; cursor: pointer; }
.fjn-stin__step:disabled { opacity: .45; cursor: default; }
.fjn-stin__count { min-width: 44px; text-align: center; font: 700 26px var(--fjn-font-mono); }
.fjn-stin__season { font-size: 17px; }
.fjn-stin__fee-head { display: flex; justify-content: space-between; align-items: center; }
.fjn-stin__fee-line { display: flex; justify-content: space-between; gap: 12px; padding-bottom: 10px; border-bottom: 1px solid var(--fjn-border); }
.fjn-stin__totals { display: grid; grid-template-columns: 1fr auto; gap: 6px 12px; margin: 0; }
.fjn-stin__totals dt { color: var(--fjn-text-2); }
.fjn-stin__totals dd { margin: 0; text-align: right; }
.fjn-stin__method { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.fjn-stin__method .fjn-select { width: 180px; }
.fjn-stin__foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; }
.fjn-stin__foot--end { justify-content: flex-end; }
.fjn-stin__sum { display: flex; flex-direction: column; gap: 2px; }
.fjn-stin__sum span { font-size: 13px; color: var(--fjn-text-2); }
.fjn-stin__sum b { font: 700 20px var(--fjn-font-mono); }
.fjn-stin__actions { display: flex; gap: 10px; flex-wrap: wrap; justify-content: flex-end; }
.fjn-stin__actions form { margin: 0; }
.fjn-stin__actions .fjn-btn { min-height: 56px; }
@media (max-width: 767px) {
  .fjn-stin__foot { flex-direction: column; align-items: stretch; }
  .fjn-stin__actions { flex-direction: column-reverse; }
  .fjn-stin__actions .fjn-btn, .fjn-stin__actions form, .fjn-stin__actions form .fjn-btn { width: 100%; }
  /* E2-03_M, E2-06_M: „Wstecz” one third, the main action two thirds (alone: on the right) */
  .fjn-stin__foot--end .fjn-stin__actions { display: grid; grid-template-columns: 1fr 2fr; }
  .fjn-stin__foot--end .fjn-stin__actions > :only-child { grid-column: 2; }
  /* E2-01_M (4.12.3): „Do zapłaty” and the amount in one row, a lower panel */
  .fjn-stin__foot--intake { gap: 8px; }
  .fjn-stin__foot--intake .fjn-stin__sum { flex-direction: row; justify-content: space-between; align-items: baseline; }
  .fjn-stin__foot--intake .fjn-stin__sum b { font-size: 17px; }
  .fjn-stput .fjn-stput__camera { height: 200px; min-height: 200px; }
  .fjn-stput .fjn-stput__frame { inset: 22px 20% 30px; }
}
.fjn-stput__card .fjn-status { align-self: flex-start; }
.fjn-stin__conflict { display: flex; flex-direction: column; gap: 12px; padding: 16px; border: 2px solid #8A5300; border-radius: 10px; background: var(--fjn-surface); }
.fjn-stin__conflict-head { display: flex; gap: 12px; align-items: flex-start; color: #8A5300; }
.fjn-stin__conflict-head div { display: flex; flex-direction: column; gap: 4px; color: var(--fjn-text); }
.fjn-stin__conflict-head span { font-size: 14px; color: var(--fjn-text-2); }
.fjn-stin__deposit { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 6px 14px; margin: 0; padding: 12px 14px; border: 1px solid var(--fjn-border); border-radius: 8px; font-size: 14px; align-items: center; }
.fjn-stin__deposit dt { color: var(--fjn-text-2); }
.fjn-stin__deposit dd { margin: 0; }
.fjn-stin__ways { display: flex; flex-direction: column; gap: 8px; }
.fjn-stin__way { display: flex; align-items: center; gap: 12px; min-height: 56px; padding: 8px 16px; border: 1px solid var(--fjn-border-strong, #AEB5BE); border-radius: 8px; background: var(--fjn-surface); color: var(--fjn-text); text-align: left; font: inherit; line-height: 20px; cursor: pointer; text-decoration: none; }
.fjn-stin__way span { display: flex; flex-direction: column; gap: 0; }
.fjn-stin__way small { font-size: 12px; line-height: 18px; color: var(--fjn-text-2); }
.fjn-stin__way--main { border-color: var(--fjn-brand-600); background: var(--fjn-brand-600); color: #fff; }
.fjn-stin__way--main small { color: rgba(255, 255, 255, .8); }
.fjn-stin__way--off { border-style: dashed; color: var(--fjn-text-2); background: var(--fjn-bg); cursor: default; }
.fjn-stin__open { font-size: 14px; font-weight: 700; color: var(--fjn-text-2); min-height: 44px; display: flex; align-items: center; }
a.fjn-stin__open { color: var(--fjn-brand-600); text-decoration: none; }
.fjn-stin__lock { display: flex; gap: 12px; align-items: flex-start; padding: 12px 16px; border-radius: 8px; background: var(--fjn-surface-2); }

/* E2-03 */
.fjn-stinsp__steps { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 8px; }
.fjn-stinsp__step { display: flex; align-items: center; justify-content: center; gap: 6px; min-height: 56px; border: 1px solid var(--fjn-border); border-radius: 8px; background: var(--fjn-surface); font-weight: 700; font-size: 16px; color: var(--fjn-text-2); text-decoration: none; }
.fjn-stinsp__step.is-done { background: var(--fjn-success-100); border-color: var(--fjn-success-100); color: var(--fjn-success-700); }
.fjn-stinsp__step.is-current { background: var(--fjn-brand-600); border-color: var(--fjn-brand-600); color: #fff; }
.fjn-stinsp__cardhead { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.fjn-stinsp__title { margin: 0; padding: 0; font-size: 17px; font-weight: 700; }
.fjn-stinsp__fields { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.fjn-stinsp__field.is-wide { grid-column: span 2; }
.fjn-stinsp__field .fjn-input { height: 56px; font-size: 18px; }
.fjn-stinsp__check { display: flex; align-items: center; gap: 12px; min-height: 36px; cursor: pointer; }
.fjn-stinsp__check input { width: 24px; height: 24px; margin: 0; accent-color: var(--fjn-brand-600); }
.fjn-stinsp__state { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 10px 12px; border-radius: 8px; background: var(--fjn-bg); font-size: 13px; color: var(--fjn-text-2); }
.fjn-stinsp__photos { display: flex; flex-direction: column; gap: 8px; }
.fjn-stinsp__photohead { display: flex; justify-content: space-between; }
.fjn-stinsp__thumbs { display: flex; gap: 8px; flex-wrap: wrap; }
.fjn-stinsp__thumb, .fjn-stinsp__add { position: relative; display: flex; width: 72px; height: 72px; border-radius: 8px; overflow: hidden; }
.fjn-stinsp__thumb img { width: 100%; height: 100%; object-fit: cover; }
.fjn-stinsp__ptype { position: absolute; left: 4px; bottom: 4px; padding: 1px 6px; border-radius: 4px; font-size: 11px; font-weight: 700; background: #ECEEF1; color: var(--fjn-text-2); }
.fjn-stinsp__ptype.is-damage { background: #FCEFD6; color: #8A5300; }
.fjn-stinsp__add { flex-direction: column; align-items: center; justify-content: center; gap: 4px; border: 1.5px dashed #AEB5BE; color: var(--fjn-brand-600); font-size: 12px; font-weight: 700; cursor: pointer; }
.fjn-stinsp__add.is-error { border: 2px dashed var(--fjn-danger-700); }
.fjn-stinsp__ptypechoice { display: flex; align-items: center; gap: 8px; font-size: 13px; }
.fjn-stinsp__ptypechoice .fjn-select { width: auto; }
@media (max-width: 767px) { .fjn-stinsp__fields { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; } }

/* E2-04 */
.fjn-stsum__worst { flex-direction: row; align-items: center; gap: 12px; flex-wrap: wrap; font-size: 14px; color: var(--fjn-text-2); }
.fjn-stsum__rows { list-style: none; padding: 0; gap: 0; }
.fjn-stsum__row { display: grid; grid-template-columns: 52px minmax(0, 1fr) auto; align-items: center; gap: 12px; min-height: 64px; padding: 0 16px; border-bottom: 1px solid var(--fjn-border); }
.fjn-stsum__row:last-child { border-bottom: 0; }
.fjn-stsum__rows { padding: 0; }
.fjn-stsum__k { font-size: 20px; }
.fjn-stsum__text { display: flex; flex-direction: column; gap: 2px; font-size: 14px; }
.fjn-stsum__text span { color: var(--fjn-text-2); font-size: 13px; }
@media (max-width: 1279px) {  /* E2-04_T zakończona: larger rows; K keeps the list size */
  .fjn-stsum__rows.is-large .fjn-stsum__text { font-size: 18px; }
  .fjn-stsum__rows.is-large .fjn-stsum__text span { font-size: 16px; }
}
.fjn-stlabels > :not(.fjn-form-footer, dialog) { max-width: 900px; }
.fjn-stsum__acts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
@media (max-width: 767px) { .fjn-stsum__acts { grid-template-columns: 1fr; } .fjn-stsum__row { grid-template-columns: 44px minmax(0, 1fr); } .fjn-stsum__row > .fjn-status { grid-column: 2; justify-self: start; } }

/* E2-05 */
.fjn-stprep__steps { list-style: none; padding: 0 16px; gap: 0; }
.fjn-stprep__steps form { margin: 0; }
.fjn-stprep__step { display: flex; align-items: center; gap: 16px; width: 100%; min-height: 80px; padding: 12px 0; border: 0; border-bottom: 1px solid var(--fjn-border); background: none; font: inherit; text-align: left; color: var(--fjn-text); cursor: pointer; }
.fjn-stprep__steps li:last-child .fjn-stprep__step { border-bottom: 0; }
.fjn-stprep__step:disabled { cursor: default; color: var(--fjn-text); }
.fjn-stprep__box { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; flex: none; border: 2px solid #AEB5BE; border-radius: 8px; background: var(--fjn-surface); }
.fjn-stprep__step.is-done .fjn-stprep__box { border-color: var(--fjn-success-700); background: var(--fjn-success-700); color: #fff; }
.fjn-stprep__text { display: flex; flex-direction: column; gap: 4px; }
.fjn-stprep__text b { font-size: 17px; }
.fjn-stprep__text span { font-size: 13px; color: var(--fjn-text-2); }

/* E2-06 */
.fjn-stput__scan { display: flex; flex-direction: column; gap: 10px; }
.fjn-stput__camera { height: 280px; min-height: 240px; border-radius: 10px; background: var(--fjn-nav-bg); }
.fjn-stput__camera::before { display: none; }
.fjn-stput__frame { position: absolute; inset: 30px 19% 32px; border: 3px solid #fff; border-radius: 12px; }
.fjn-stput__camera .fjn-scan__hint { top: auto; bottom: 8px; font-size: 13px; font-weight: 400; }
.fjn-stput__typed { display: flex; align-items: center; gap: 10px; min-height: 56px; padding: 0 14px; border: 1px solid var(--fjn-border-strong, #AEB5BE); border-radius: 8px; background: var(--fjn-surface); color: var(--fjn-text-2); }
.fjn-stput__typed input { flex: 1; border: 0; outline: none; font-size: 18px; background: none; }
.fjn-stput__side { display: flex; flex-direction: column; gap: 12px; }
.fjn-stput__card.is-success { border: 2px solid var(--fjn-success-700); }
.fjn-stput__card.is-danger { border: 2px solid var(--fjn-danger-700); }
.fjn-stput__card.is-stored { border: 1px solid var(--fjn-border); }
.fjn-stput__address { font: 700 48px/54px var(--fjn-font-mono); letter-spacing: .02em; }
.fjn-stput__problem { margin: 0; font-size: 14px; color: var(--fjn-danger-700); }
.fjn-stput__print { align-self: flex-start; min-height: 44px; gap: 8px; }
.fjn-stput__nearby { display: flex; flex-direction: column; gap: 8px; font-size: 13px; }
.fjn-stput__nearlist { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.fjn-stput__near { display: flex; flex-direction: column; gap: 2px; min-height: 56px; padding: 8px 12px; border: 1px solid var(--fjn-border); border-radius: 8px; background: var(--fjn-surface); color: var(--fjn-text); text-decoration: none; }
.fjn-stput__near b { font-size: 17px; }
.fjn-stput__near span { font-size: 12px; font-weight: 700; color: var(--fjn-success-700); }

/* E2-06 window, E2-07 previews */
.fjn-stlabel__preview { display: flex; align-items: center; gap: 16px; padding: 14px; border: 1px solid var(--fjn-border); border-radius: 8px; background: var(--fjn-surface); }
.fjn-stlabel__preview span { display: flex; flex-direction: column; gap: 4px; }
.fjn-stlabel__preview b { font-size: 30px; }
.fjn-stlabel__preview small { font-size: 12px; color: var(--fjn-text-2); }
.fjn-stlabel__qr, .fjn-stlabels__qr { display: inline-flex; flex: none; width: 86px; height: 86px; }
.fjn-stlabel__qr svg, .fjn-stlabels__qr svg, .fjn-stlabel__qrsvg { width: 100%; height: 100%; }
.fjn-stlabels__h { margin: 0 0 8px; font-size: 16px; }
.fjn-stlabels__set { display: flex; flex-direction: column; gap: 10px; max-width: 380px; padding: 18px; border: 1px solid var(--fjn-border); border-radius: 8px; background: var(--fjn-surface); box-shadow: 0 1px 3px rgba(0, 0, 0, .08); }
.fjn-stlabels__sethead { display: flex; justify-content: space-between; align-items: center; font: 700 12px var(--fjn-font-mono); letter-spacing: .06em; }
.fjn-stlabels__logo { height: 18px; }
.fjn-stlabels__number { font-size: 26px; }
.fjn-stlabels__body { display: flex; gap: 14px; }
.fjn-stlabels__qr { width: 114px; height: 114px; }
.fjn-stlabels__facts { display: flex; flex-direction: column; gap: 6px; font-size: 13px; }
.fjn-stlabels__setfoot { display: flex; justify-content: space-between; padding-top: 10px; border-top: 1px solid var(--fjn-border); font-size: 13px; }
.fjn-stlabels section { display: flex; flex-direction: column; gap: 12px; }
.fjn-alert[hidden] { display: none; }
.fjn-stin__chips { display: flex; gap: 6px; flex-wrap: wrap; }
@media (min-width: 768px) { .fjn-stdlg { width: min(520px, calc(100vw - 32px)); } }
.fjn-stdlg .fjn-confirm__foot { display: grid; grid-template-columns: 1fr 2fr; gap: 10px; }
.fjn-stdlg__count { display: block; margin-top: 4px; text-align: right; }
.fjn-stlabel .fjn-stlabel__preview { margin-bottom: 6px; }
.fjn-stdlg .fjn-stin__deposit, .fjn-stdlg .fjn-field { margin-bottom: 16px; }
.fjn-stinsp fieldset:disabled .fjn-input { color: var(--fjn-text); -webkit-text-fill-color: var(--fjn-text); }
.fjn-stinsp .fjn-input.fjn-mono { font-weight: 700; }
.fjn-stin__why { flex-basis: 100%; display: flex; align-items: center; justify-content: center; gap: 6px; margin: 4px 0 0; font-size: 14px; font-weight: var(--fjn-fw-bold); color: var(--fjn-warning-700); } /* D179: why „Przyjmij” is off */
