/* FJN System — E2 block 2 screens (D148, ModKomplety): E2-10 list, E2-11 card, E2-12 move,
   E2-13 locations, E2-14 bad tyres. Sizes and colours as in the design file. */

.fjn-stsets, .fjn-stcard, .fjn-stmove, .fjn-stplaces, .fjn-sttyre { display: flex; flex-direction: column; gap: 16px; }
.fjn-stsets > *, .fjn-stplaces > *, .fjn-stin.fjn-stcard > :not(.fjn-form-footer, dialog),
.fjn-stin.fjn-stmove > :not(.fjn-form-footer, dialog), .fjn-stin.fjn-sttyre > :not(.fjn-form-footer, dialog) { width: 100%; max-width: 1200px; margin-left: 0; margin-right: 0; }
.fjn-stsets__head { display: flex; flex-direction: column; gap: 10px; }
.fjn-stsets__head .fjn-page__title { margin: 0; }
.fjn-stsets__title { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.fjn-stsets__count { font-size: 15px; color: var(--fjn-text-2); white-space: nowrap; }
.fjn-stsets__tabs { border-bottom: 1px solid var(--fjn-border); }
.fjn-tabs__tab.is-off { color: var(--fjn-text-disabled); cursor: not-allowed; }

/* filters */
.fjn-stsets__filters { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.fjn-stsets__search { flex: 1 1 260px; max-width: 440px; height: 40px; display: flex; align-items: center; gap: 8px; padding: 0 6px 0 12px; border: 1px solid var(--fjn-border-strong); border-radius: 6px; background: var(--fjn-surface); color: var(--fjn-text-2); box-sizing: border-box; }
.fjn-stsets__search.is-on { border-color: var(--fjn-brand-600); }
.fjn-stsets__search input { flex: 1; min-width: 0; border: 0; outline: 0; background: none; font: inherit; font-size: 15px; color: var(--fjn-text); }
.fjn-stsets__search:focus-within { box-shadow: var(--fjn-focus); border-color: var(--fjn-brand-600); }
.fjn-stsets__scan { flex: none; width: 36px; height: 36px; display: inline-flex; align-items: center; justify-content: center; border: 0; border-radius: 6px; background: var(--fjn-brand-600); color: #fff; cursor: pointer; }
.fjn-stsets__filters .fjn-filter__button { height: 40px; }

/* table (T without „Rodzaj”, K with it) */
.fjn-stsets__table { background: var(--fjn-surface); border: 1px solid var(--fjn-border); border-radius: 10px; overflow: hidden; }
.fjn-stsets__tr { display: grid; grid-template-columns: 120px minmax(0,1.2fr) minmax(0,1.2fr) 120px minmax(0,1.5fr); min-height: 56px; align-items: center; border-bottom: 1px solid var(--fjn-surface-2); font-size: 14px; }
.fjn-stsets__tr > * { padding: 6px 10px; min-width: 0; }
.fjn-stsets__tr > :first-child { padding-left: 14px; }
.fjn-stsets__tr:last-child { border-bottom: 0; }
.fjn-stsets__th { min-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-stsets__tr .fjn-stsets__k, .fjn-stsets__filters .fjn-stsets__k { display: none; }
.fjn-stsets__slot { font: 700 17px var(--fjn-font-mono); white-space: nowrap; color: var(--fjn-text); }
.fjn-stsets__slot.is-none { color: var(--fjn-text-disabled); }
.fjn-stsets__no { display: flex; flex-direction: column; gap: 2px; }
.fjn-stsets__no a { font: 700 14px var(--fjn-font-mono); color: var(--fjn-brand-600); white-space: nowrap; }
.fjn-stsets__no span { font: 13px var(--fjn-font-mono); color: var(--fjn-text-2); white-space: nowrap; }
.fjn-stsets__who { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fjn-stsets__season { white-space: nowrap; }
.fjn-stsets__season.is-late { color: var(--fjn-danger-700); font-weight: 700; }
.fjn-stsets__chips { display: flex; flex-wrap: wrap; gap: 4px; }
@media (min-width: 1280px) {
  .fjn-stsets__tr { grid-template-columns: 130px minmax(0,1.3fr) minmax(0,1.3fr) 110px 130px minmax(0,1.6fr); }
  .fjn-stsets__tr .fjn-stsets__k { display: block; }
  .fjn-stsets__filters .fjn-stsets__k { display: inline-block; }
}

/* phone cards */
.fjn-stsets__cards { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.fjn-stsets__card { display: grid; grid-template-columns: auto minmax(0,1fr); gap: 4px 14px; align-items: center; padding: 12px 14px; background: var(--fjn-surface); border: 1px solid var(--fjn-border); border-radius: 10px; color: var(--fjn-text); text-decoration: none; }
.fjn-stsets__card .fjn-stsets__slot { grid-row: span 2; font-size: 20px; }
.fjn-stsets__cline { display: flex; gap: 8px; align-items: baseline; min-width: 0; }
.fjn-stsets__cline b { font-size: 15px; white-space: nowrap; }
.fjn-stsets__cline span { font-size: 13px; color: var(--fjn-text-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fjn-stsets__empty { display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 32px 20px; text-align: center; background: var(--fjn-surface); border: 1px solid var(--fjn-border); border-radius: 10px; }
.fjn-stsets__empty b { font-size: 17px; }
.fjn-stsets__empty span { font-size: 14px; line-height: 20px; color: var(--fjn-text-2); }
.fjn-stsets__new { gap: 8px; }
@media (max-width: 1279px) { .fjn-stsets__new { min-height: 56px; } }

/* E2-11 card */
.fjn-stcard__hero { display: grid; grid-template-columns: auto minmax(0,1fr); gap: 16px; align-items: center; padding: 18px 20px; background: var(--fjn-surface); border: 1px solid var(--fjn-border); border-radius: 12px; }
.fjn-stcard__slot { display: flex; flex-direction: column; gap: 4px; }
.fjn-stcard__slot b { font-size: 48px; line-height: 1.1; white-space: nowrap; }
.fjn-stcard__who { display: flex; flex-direction: column; gap: 6px; min-width: 0; font-size: 14px; }
.fjn-stcard__line { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.fjn-stcard__line > span { color: var(--fjn-text-2); }
.fjn-stcard__tiles { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 8px; }
.fjn-stcard__tiles form { display: contents; }
.fjn-stcard__tile { height: 64px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; border: 1px solid var(--fjn-border-strong); border-radius: 10px; background: var(--fjn-surface); color: var(--fjn-brand-600); font: 700 13px var(--fjn-font); text-decoration: none; cursor: pointer; }
.fjn-stcard__tile.is-off { color: var(--fjn-text-disabled); cursor: not-allowed; }
.fjn-stcard__grid { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: 16px; align-items: start; }
.fjn-stcard__col { display: flex; flex-direction: column; gap: 16px; }
.fjn-stcard__box { background: var(--fjn-surface); border: 1px solid var(--fjn-border); border-radius: 10px; overflow: hidden; }
.fjn-stcard__box--pad { display: flex; flex-direction: column; gap: 10px; padding: 12px 16px; }
.fjn-stcard__h { font-size: 16px; }
.fjn-stcard__boxhead { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 12px 16px; border-bottom: 1px solid var(--fjn-surface-2); }
.fjn-stcard__boxhead b { font-size: 16px; white-space: nowrap; }
.fjn-stcard__boxhead span { font-size: 13px; color: var(--fjn-text-2); white-space: nowrap; }
.fjn-stcard__wheel { display: grid; grid-template-columns: 40px minmax(0,1fr) auto; gap: 10px; align-items: center; padding: 10px 16px; border-bottom: 1px solid var(--fjn-surface-2); }
.fjn-stcard__wheel > b { font-size: 17px; }
.fjn-stcard__wheel > span { font-size: 13px; color: var(--fjn-text-2); }
.fjn-stcard__wheel > span b { color: var(--fjn-text); }
.fjn-stcard__photos { display: flex; gap: 8px; flex-wrap: wrap; padding: 10px 16px; }
.fjn-stcard__photo { position: relative; width: 56px; height: 56px; border-radius: 6px; overflow: hidden; background: var(--fjn-surface-2); }
.fjn-stcard__photo img { width: 100%; height: 100%; object-fit: cover; }
.fjn-stcard__photo span { position: absolute; left: 3px; bottom: 3px; padding: 0 4px; border-radius: 3px; background: #fff; color: var(--fjn-text); font-size: 10px; font-weight: 700; }
.fjn-stcard__fee { display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 4px 12px; align-items: center; padding: 10px 16px; border-bottom: 1px solid var(--fjn-surface-2); }
.fjn-stcard__fee:last-child { border-bottom: 0; }
.fjn-stcard__fee > b:first-child { font-size: 14px; }
.fjn-stcard__fee > b.fjn-mono { text-align: right; }
.fjn-stcard__fee small { font-size: 12px; color: var(--fjn-text-2); }
.fjn-stcard__feechip { justify-self: end; height: 22px; padding: 0 8px; border-radius: 999px; display: inline-flex; align-items: center; font-size: 12px; font-weight: 700; white-space: nowrap; }
.fjn-stcard__feechip--success { background: var(--fjn-success-100); color: var(--fjn-success-700); }
.fjn-stcard__feechip--warning { background: var(--fjn-warning-100); color: var(--fjn-warning-700); }
.fjn-stcard__feechip--danger { background: var(--fjn-danger-100); color: var(--fjn-danger-700); }
.fjn-stcard__feechip--neutral { background: var(--fjn-neutral-100); color: var(--fjn-neutral-700); }
.fjn-stcard__none { margin: 0; padding: 10px 16px; font-size: 14px; color: var(--fjn-text-2); }
.fjn-stcard__moves { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.fjn-stcard__moves li { position: relative; display: flex; flex-direction: column; gap: 1px; padding-left: 24px; font-size: 14px; }
.fjn-stcard__moves li::before { content: ""; position: absolute; left: 0; top: 5px; width: 10px; height: 10px; border-radius: 50%; background: var(--fjn-border-strong); }
.fjn-stcard__moves li.is-last::before { background: var(--fjn-brand-600); }
.fjn-stcard__moves small { font-size: 12px; color: var(--fjn-text-2); }
.fjn-stcard__quote { display: flex; align-items: center; gap: 10px; padding: 12px 16px; color: var(--fjn-text); font-size: 14px; text-decoration: none; }
.fjn-stcard__quote > svg { color: var(--fjn-brand-600); flex: none; }
.fjn-stcard__quote > span:first-of-type { flex: 1; }
.fjn-stcard__quote b { color: var(--fjn-brand-600); }
@media (max-width: 767px) {
  .fjn-stsets, .fjn-stcard, .fjn-stmove, .fjn-stplaces, .fjn-sttyre { gap: 12px; }
  .fjn-stsets__search { height: 48px; max-width: none; flex-basis: 100%; }
  .fjn-stsets__filters .fjn-filter__button { height: 48px; }
  .fjn-stcard__hero { grid-template-columns: minmax(0,1fr); padding: 14px 16px; }
  .fjn-stcard__slot b { font-size: 38px; }
  .fjn-stcard__grid { grid-template-columns: minmax(0,1fr); }
}
@media (min-width: 768px) and (max-width: 1279px) { /* D148 T: 56 px controls */
  .fjn-stsets__search, .fjn-stsets__filters .fjn-filter__button { height: 56px; }
}
/* E2-06 „Do odłożenia” (D155 (2)) */
.fjn-stput__row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--fjn-surface-2); }
.fjn-stput__row > span:first-child { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.fjn-stput__row b { font-size: 15px; }
.fjn-stput__row small { font-size: 13px; color: var(--fjn-text-2); }
.fjn-stput__act { display: flex; align-items: center; gap: 8px; }
@media (max-width: 767px) {
  .fjn-stput__row { flex-direction: column; align-items: flex-start; }
}
.fjn-stput__act form { margin: 0; }
/* D170 „+ Nowe przyjęcie”: the header button on the right (K, T); M in .fjn-stsets__mtop (D181 dopisek 3) */
.fjn-stsets__newhead { margin-left: auto; gap: 8px; }
