/* FJN System — E2-12 move, E2-13 locations and E2-14 bad tyres (D148, ModKomplety). */

/* E2-12 move */
.fjn-stmove__steps { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 16px; }
.fjn-stmove__step { display: flex; flex-direction: column; gap: 6px; padding: 14px 16px; background: var(--fjn-surface); border: 1px solid var(--fjn-border); border-radius: 12px; }
.fjn-stmove__step.is-ok { border: 2px solid var(--fjn-success-700); }
.fjn-stmove__step small { font-size: 13px; color: var(--fjn-text-2); }
.fjn-stmove__plate { font-size: 26px; line-height: 1.2; }
.fjn-stmove__way { font-size: 24px; line-height: 1.2; overflow-wrap: anywhere; }
.fjn-stmove__step.is-ok .fjn-stmove__way { color: var(--fjn-success-700); }
.fjn-stmove__banner { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border: 1px solid var(--fjn-danger-700); border-radius: 8px; background: #FDECEA; font-size: 15px; line-height: 21px; }
.fjn-stmove__banner > svg { flex: none; margin-top: 1px; color: var(--fjn-danger-700); }
.fjn-stmove__scan { display: flex; flex-direction: column; gap: 12px; }
.fjn-stmove__camera { height: 300px; }
.fjn-stmove__acts form { display: contents; }

/* E2-13 locations */
.fjn-stplaces__bar { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; justify-content: space-between; }
.fjn-stplaces__legend { list-style: none; margin: 0; padding: 0; display: flex; gap: 14px; flex-wrap: wrap; font-size: 13px; color: var(--fjn-text-2); }
.fjn-stplaces__legend li { display: flex; align-items: center; gap: 6px; white-space: nowrap; }
.fjn-stplaces__key { width: 14px; height: 14px; border-radius: 3px; box-sizing: border-box; flex: none; }
.fjn-stplaces__key.is-free, .fjn-stplaces__cell.is-free { background: #fff; border: 1.5px solid var(--fjn-success-700); color: var(--fjn-success-700); }
.fjn-stplaces__key.is-half, .fjn-stplaces__cell.is-half { background: var(--fjn-brand-100); border: 1.5px solid var(--fjn-brand-600); color: var(--fjn-brand-700); }
.fjn-stplaces__key.is-full, .fjn-stplaces__cell.is-full { background: var(--fjn-brand-600); color: #fff; }
.fjn-stplaces__key.is-off, .fjn-stplaces__cell.is-off { background: repeating-linear-gradient(135deg, var(--fjn-border-strong) 0 3px, var(--fjn-surface-2) 3px 6px); color: var(--fjn-text-2); }
.fjn-stplaces__rows { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 10px; }
.fjn-stplaces__occ { display: flex; flex-direction: column; gap: 6px; padding: 10px 12px; background: var(--fjn-surface); border: 1px solid var(--fjn-border); border-radius: 10px; color: var(--fjn-text); text-decoration: none; }
.fjn-stplaces__occ.is-on { border-color: var(--fjn-brand-600); }
.fjn-stplaces__occhead { display: flex; justify-content: space-between; align-items: baseline; }
.fjn-stplaces__occhead b { font-size: 18px; white-space: nowrap; }
.fjn-stplaces__occhead span { font-size: 13px; color: var(--fjn-text-2); white-space: nowrap; }
/* progress bars without inline styles (CSP): <progress class="fjn-bar"> */
.fjn-bar { appearance: none; -webkit-appearance: none; display: block; width: 100%; height: 8px; border: 0; border-radius: 4px; background: var(--fjn-surface-2); overflow: hidden; color: var(--fjn-brand-600); }
.fjn-bar::-webkit-progress-bar { background: var(--fjn-surface-2); border-radius: 4px; }
.fjn-bar::-webkit-progress-value { background: var(--fjn-brand-600); border-radius: 0; }
.fjn-bar::-moz-progress-bar { background: var(--fjn-brand-600); }
.fjn-bar--ok::-webkit-progress-value { background: var(--fjn-success-700); }
.fjn-bar--ok::-moz-progress-bar { background: var(--fjn-success-700); }
.fjn-stplaces__grid { display: flex; flex-direction: column; gap: 10px; padding: 14px 16px; background: var(--fjn-surface); border: 1px solid var(--fjn-border); border-radius: 10px; }
.fjn-stplaces__gridhead { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.fjn-stplaces__gridhead b { font-size: 16px; }
.fjn-stplaces__gridhead span { font-size: 13px; color: var(--fjn-text-2); }
.fjn-stplaces__line { display: grid; grid-template-columns: 72px; grid-auto-flow: column; grid-auto-columns: minmax(0,1fr); gap: 6px; align-items: center; }
.fjn-stplaces__lvl { font-size: 13px; font-weight: 700; color: var(--fjn-text-2); }
.fjn-stplaces__cell { height: 38px; display: flex; align-items: center; justify-content: center; border-radius: 6px; box-sizing: border-box; font: 700 12px var(--fjn-font-mono); text-decoration: none; white-space: nowrap; }
.fjn-stplaces__cell.is-sel { background: #fff; border: 3px solid var(--fjn-text); color: var(--fjn-text); }
.fjn-stplaces__cell.is-dim { opacity: .35; }
.fjn-stplaces__dlg { width: min(460px, calc(100vw - 32px)); padding: 0; }
.fjn-stplaces__dlg form { display: flex; flex-direction: column; gap: 6px; padding: 18px 20px 0; }
.fjn-stplaces__dhead { display: flex; flex-direction: column; gap: 6px; align-items: flex-start; padding-bottom: 8px; }
.fjn-stplaces__dhead b { font-size: 32px; line-height: 1.2; }
.fjn-stplaces__dhead > span:last-child { font-size: 13px; color: var(--fjn-text-2); }
.fjn-stplaces__on { margin: 0; font-size: 14px; }
.fjn-stplaces__dfoot { display: flex; justify-content: space-between; gap: 10px; margin: 8px -20px 0; padding: 12px 20px; border-top: 1px solid var(--fjn-border); }
.fjn-stplaces__dfoot .fjn-btn { gap: 6px; min-height: 40px; }
.fjn-stplaces__dlg .fjn-field__hint { font-size: 13px; color: var(--fjn-text-2); }
.fjn-stplaces__dlg .fjn-field { display: flex; flex-direction: column; gap: 6px; }
.fjn-stplaces__dacts { display: flex; gap: 8px; }

/* E2-14 bad tyres */
.fjn-sttyre__wheels { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 8px; }
.fjn-sttyre__wheel { min-height: 64px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; border: 1px solid var(--fjn-border); border-radius: 8px; background: #fff; cursor: pointer; box-sizing: border-box; }
.fjn-sttyre__wheel b { font-size: 17px; }
.fjn-sttyre__wheel span { font-size: 12px; }
.fjn-sttyre__wheel:has(input:checked) { background: var(--fjn-brand-600); border-color: var(--fjn-brand-600); color: #fff; }
.fjn-sttyre__wheel:has(input:focus-visible), .fjn-sttyre__channel:has(input:focus-visible) { box-shadow: var(--fjn-focus-btn); }
.fjn-sttyre__text { min-height: 72px; font-size: 15px; line-height: 21px; }
.fjn-sttyre__chead { display: flex; flex-direction: column; gap: 2px; }
.fjn-sttyre__chead small { font-size: 13px; color: var(--fjn-text-2); }
.fjn-sttyre__channels { display: flex; gap: 8px; flex-wrap: wrap; }
.fjn-sttyre__channel { height: 44px; padding: 0 14px; display: flex; align-items: center; gap: 8px; border: 1px solid var(--fjn-border); border-radius: 8px; background: #fff; font-weight: 700; white-space: nowrap; cursor: pointer; box-sizing: border-box; }
.fjn-sttyre__channel:has(input:checked) { border: 2px solid var(--fjn-brand-600); background: var(--fjn-brand-50); }
.fjn-sttyre__channel.is-off { background: var(--fjn-bg); color: var(--fjn-text-disabled); cursor: not-allowed; }
.fjn-sttyre__preview { display: flex; flex-direction: column; gap: 4px; padding: 12px 14px; border-radius: 8px; background: var(--fjn-bg); font-size: 14px; line-height: 20px; }
.fjn-sttyre__preview p { margin: 0; }
.fjn-sttyre__warn { padding: 12px 14px; border: 1px solid #B26B00; border-radius: 8px; background: #FFF8EB; font-size: 15px; line-height: 21px; }
@media (max-width: 1279px) {
  .fjn-stplaces__rows { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .fjn-stplaces__legend { flex: 1 1 100%; }
  .fjn-stplaces__cell { height: 44px; }
}
@media (max-width: 767px) {
  .fjn-stmove__steps { gap: 12px; }
  .fjn-stmove__plate { font-size: 20px; }
  .fjn-stmove__way { font-size: 15px; }
  .fjn-stmove__camera { height: 240px; }
  .fjn-stplaces__line { grid-template-columns: 56px; gap: 4px; }
}
.fjn-stmove__camera .fjn-scan__hint { top: auto; bottom: 12px; font-size: 14px; font-weight: 400; }
.fjn-stmove__step .fjn-stin__label { line-height: 16px; }
.fjn-sttyre__channel { max-width: 100%; min-width: 0; }
.fjn-sttyre__channel .fjn-mono { overflow: hidden; text-overflow: ellipsis; min-width: 0; }
