/* FJN System — D176 quick pickup from a service: E1-43 course cards, E1-46 (driver, phone),
   the camera and „Komplet N”, E2-56 matching (K three columns, T two, M one with a switcher). */
.fjn-trips__card { display: flex; flex-direction: column; gap: 6px; padding: 14px 16px; border: 1px solid var(--fjn-border); border-radius: var(--fjn-r-lg); background: var(--fjn-surface); color: var(--fjn-text); text-decoration: none; }
.fjn-trips__card.is-pickup { border-color: var(--fjn-brand-600); }
.fjn-trips__card > .fjn-status { align-self: flex-start; }
.fjn-trips__kind { display: flex; align-items: center; gap: 8px; font-size: 13px; letter-spacing: .04em; text-transform: uppercase; color: var(--fjn-text-2); }
.fjn-trips__plan { margin-left: auto; text-transform: none; letter-spacing: 0; font-size: 14px; }
.fjn-trips__cardtitle { font-size: 18px; }
.fjn-trips__line { font-size: 14px; color: var(--fjn-text-2); }
/* D188 pkt 16: „Uwagi dla kierowcy” — E1-43 one line on the card, E1-46 a grey block under the address */
.fjn-trips__note { display: flex; align-items: center; gap: 6px; min-width: 0; font-size: 14px; font-weight: 400; color: var(--fjn-text); }
.fjn-trips__note > .fjn-icon { flex: none; }
.fjn-trips__note > span { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.fjn-pk__note { display: flex; flex-direction: column; gap: 4px; padding: 12px 14px; border-radius: 8px; background: #F4F5F6; }
.fjn-pk__note-head { display: flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 700; color: #454D57; }
.fjn-pk__note-text { font-size: 15px; line-height: 21px; color: var(--fjn-text); }
.fjn-trips { display: flex; flex-direction: column; gap: 10px; padding: 16px; }
.fjn-trips__line, .fjn-trips__plan { font-weight: 400; }

.fjn-pk { display: flex; flex-direction: column; gap: 12px; padding: 12px 16px 120px; }
.fjn-pk__head { display: flex; flex-direction: column; gap: 4px; }
.fjn-pk__when { font-size: 14px; color: var(--fjn-text-2); }
.fjn-pk__title { margin: 0; font-size: 24px; }
.fjn-pk__where { display: flex; align-items: flex-start; gap: 6px; font-size: 15px; color: var(--fjn-text-2); }
.fjn-pk__banner { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border-radius: 8px; }
.fjn-pk__banner div { display: flex; flex-direction: column; gap: 2px; font-size: 14px; }
.fjn-pk__banner--wait { background: var(--fjn-warning-100); } .fjn-pk__banner--wait b { color: var(--fjn-warning-700); }
.fjn-pk__banner--ok { background: var(--fjn-success-100); } .fjn-pk__banner--ok b { color: var(--fjn-success-700); }
.fjn-pk__banner[hidden] { display: none; }
.fjn-pk__count { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border: 1px solid var(--fjn-border); border-radius: var(--fjn-r-lg); background: var(--fjn-surface); font-size: 22px; }
.fjn-pk__add { height: 64px; font-size: 20px; }
.fjn-pk__add.is-first { height: 88px; }
.fjn-pk__help { margin: 0; padding-bottom: 12px; border-bottom: 1px solid var(--fjn-border); font-size: 15px; color: var(--fjn-text-2); }
.fjn-pk__list { margin: 0; padding: 0; list-style: none; border: 1px solid var(--fjn-border); border-radius: var(--fjn-r-lg); background: var(--fjn-surface); }
.fjn-pk__set { display: flex; align-items: center; gap: 10px; padding: 12px; border-top: 1px solid var(--fjn-surface-2); }
.fjn-pk__set:first-child { border-top: 0; }
.fjn-pk__num { display: flex; align-items: center; justify-content: center; flex: none; width: 32px; height: 32px; border-radius: 50%; background: var(--fjn-text); color: var(--fjn-surface); font-weight: 700; }
.fjn-pk__thumbs { display: flex; gap: 4px; }
.fjn-pk__thumbs img, .fjn-pk__thumbs span { width: 40px; height: 40px; border-radius: 6px; background: var(--fjn-surface-2); object-fit: cover; }
.fjn-pk__info { flex: 1; display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.fjn-pk__info b.is-none { color: var(--fjn-text-2); font-weight: 400; }
.fjn-pk__state { display: inline-flex; align-items: center; gap: 4px; font-size: 13px; font-weight: 700; color: var(--fjn-warning-700); }
.fjn-pk__state:not(.is-sent)::before { content: "\231B"; }
.fjn-pk__state.is-sent { color: var(--fjn-success-700); }
.fjn-pk__bar { position: fixed; left: 0; right: 0; bottom: var(--fjn-bottomnav-h, 0); z-index: 30; padding: 10px 16px; background: var(--fjn-surface); border-top: 1px solid var(--fjn-border); }
/* D191 pkt 13: on K (and T) the bar starts at the right edge of the side menu, like other action bars */
@media (min-width: 768px) { .fjn-pk__bar { left: var(--fjn-rail-w); bottom: 0; } }
@media (min-width: 1280px) { .fjn-pk__bar { left: var(--fjn-sidebar-w); } }
.fjn-pk__finish { width: 100%; height: 56px; font-size: 17px; }
.fjn-pk__arrived { display: flex; align-items: center; gap: 8px; margin: 0; color: var(--fjn-success-700); font-weight: 700; }
.fjn-pk__sheet { width: 100%; max-width: 480px; margin: auto auto 0; padding: 20px 16px; border: 0; border-radius: 16px 16px 0 0; display: flex; flex-direction: column; gap: 12px; }
.fjn-pk__sheet h2 { margin: 0; font-size: 20px; }
.fjn-pk__sheet p { margin: 0; font-size: 14px; color: var(--fjn-text-2); }
.fjn-pk__sheet:not([open]) { display: none; }
.fjn-pk__wide { width: 100%; height: 56px; }
.fjn-pk__sum { display: grid; grid-template-columns: auto 1fr; gap: 8px 16px; margin: 0; padding: 12px; border: 1px solid var(--fjn-border); border-radius: 8px; }
.fjn-pk__sum dt { color: var(--fjn-text-2); } .fjn-pk__sum dd { margin: 0; font-weight: 700; }

.fjn-pkcam { position: fixed; inset: 0; z-index: 90; display: flex; flex-direction: column; gap: 10px; padding: 12px 16px; background: #15181c; color: #fff; }
.fjn-pkcam[hidden], .fjn-pked[hidden] { display: none; }
.fjn-pkcam__head { display: flex; align-items: center; gap: 12px; font-size: 17px; }
.fjn-pkcam__x, .fjn-pkcam__torch { display: flex; padding: 8px; border: 0; background: none; color: #fff; cursor: pointer; }
.fjn-pkcam__torch.is-on { color: #ffd54a; }
.fjn-pkcam__steps { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.fjn-pkcam__step { display: flex; align-items: center; justify-content: center; gap: 8px; height: 40px; border-radius: 20px; background: #2a2f36; font-weight: 700; font-size: 14px; }
.fjn-pkcam__step i { display: inline-flex; align-items: center; justify-content: center; width: 22px; height: 22px; border-radius: 50%; background: #5a616b; font-style: normal; font-size: 12px; }
.fjn-pkcam[data-step="1"] .fjn-pkcam__step[data-step="1"], .fjn-pkcam[data-step="2"] .fjn-pkcam__step[data-step="2"] { background: #fff; color: #15181c; }
.fjn-pkcam__view { position: relative; flex: 1; overflow: hidden; border-radius: 12px; background: #22272e; }
.fjn-pkcam__view video { width: 100%; height: 100%; object-fit: cover; }
.fjn-pkcam__frame { position: absolute; left: 50%; top: 45%; width: 66%; aspect-ratio: 1; transform: translate(-50%, -50%); border: 2px dashed rgba(255, 255, 255, .8); border-radius: 50%; }
.fjn-pkcam[data-step="2"] .fjn-pkcam__frame { width: 80%; aspect-ratio: 2.2; border-radius: 10px; }
.fjn-pkcam__hint { position: absolute; left: 12px; right: 12px; bottom: 12px; margin: 0; padding: 10px; border-radius: 8px; background: rgba(21, 24, 28, .8); text-align: center; font-size: 14px; }
.fjn-pkcam__bar { display: flex; align-items: center; justify-content: space-between; height: 96px; }
.fjn-pkcam__last { width: 56px; height: 56px; border: 1px solid #5a616b; border-radius: 8px; background-size: cover; background-position: center; }
.fjn-pkcam__shutter { width: 80px; height: 80px; border: 4px solid #fff; border-radius: 50%; background: #fff; box-shadow: inset 0 0 0 4px #15181c; cursor: pointer; }
.fjn-pked { position: fixed; inset: 0; z-index: 80; display: flex; flex-direction: column; gap: 10px; padding: 16px; overflow-y: auto; background: var(--fjn-bg); }
.fjn-pked__title { margin: 0; font-size: 26px; }
.fjn-pked__sub { color: var(--fjn-text-2); }
.fjn-pked__photos { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.fjn-pked__photos figure { display: flex; flex-direction: column; gap: 6px; margin: 0; }
.fjn-pked__photos img { width: 100%; aspect-ratio: 1.1; border-radius: 8px; background: var(--fjn-surface-2); object-fit: cover; }
.fjn-pked__photos figcaption { font-weight: 700; font-size: 14px; }
.fjn-pked__bar { display: grid; grid-template-columns: auto 1fr; gap: 10px; margin-top: auto; }
.fjn-pked__bar .fjn-btn { height: 56px; }

.fjn-pkm { display: flex; flex-direction: column; gap: 12px; }
.fjn-pkm__list, .fjn-pkm__sets, .fjn-pkm__photos { padding: 14px 16px; }
.fjn-pkm__batch { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; padding: 12px 16px; border: 1px solid var(--fjn-border); border-radius: var(--fjn-r-lg); background: var(--fjn-surface); }
.fjn-pkm__batch > span { margin-left: auto; color: var(--fjn-text-2); font-size: 14px; }
.fjn-pkm__grid { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.1fr) minmax(0, 1.3fr); gap: 16px; align-items: start; }
.fjn-pkm__title { display: flex; justify-content: space-between; gap: 8px; margin: 0 0 8px; font-size: 16px; }
.fjn-pkm__set { display: flex; align-items: center; gap: 10px; padding: 10px; border-top: 1px solid var(--fjn-surface-2); color: var(--fjn-text); text-decoration: none; }
.fjn-pkm__set.is-current { background: var(--fjn-brand-50); box-shadow: inset 3px 0 0 var(--fjn-brand-600); }
.fjn-pkm__set img, .fjn-pkm__noimg { width: 40px; height: 40px; border-radius: 6px; object-fit: cover; background: var(--fjn-surface-2); }
.fjn-pkm__set > span:last-child { display: flex; flex-direction: column; font-size: 13px; }
.is-ok { color: var(--fjn-success-700); font-weight: 700; } .is-open { color: var(--fjn-warning-700); font-weight: 700; }
.fjn-pkm__pics { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.fjn-pkm__pics figure { margin: 0; } .fjn-pkm__pics img { width: 100%; aspect-ratio: .9; border-radius: 8px; object-fit: cover; background: var(--fjn-surface-2); }
.fjn-pkm__note { display: flex; gap: 8px; margin: 0 0 8px; padding: 10px; border-radius: 8px; background: var(--fjn-surface-2); font-size: 13px; }
.fjn-pkm__note.is-hint { background: var(--fjn-brand-50); color: var(--fjn-brand-700); }
.fjn-pkm__pos { display: flex; align-items: center; gap: 10px; padding: 12px 8px; border-top: 1px solid var(--fjn-surface-2); cursor: pointer; }
.fjn-pkm__pos > span:nth-of-type(1) { flex: 1; display: flex; flex-direction: column; }
.fjn-pkm__pos.is-hint { background: var(--fjn-brand-50); } .fjn-pkm__pos.is-taken { opacity: .55; cursor: default; }
.fjn-pkm__tag { padding: 2px 8px; border-radius: 10px; background: var(--fjn-surface-2); font-size: 12px; font-weight: 700; }
.fjn-pkm__tag.is-hint { background: var(--fjn-brand-100, var(--fjn-brand-50)); color: var(--fjn-brand-700); }
.fjn-pkm__missing { display: flex; align-items: center; gap: 6px; margin-top: 12px; font-weight: 700; }
.fjn-pkm__switch { display: grid; grid-template-columns: 56px 1fr 56px; align-items: center; text-align: center; }
.fjn-pkm__switch > span { display: flex; flex-direction: column; }
@media (max-width: 1279px) { .fjn-pkm__grid { grid-template-columns: minmax(0, .9fr) minmax(0, 1.4fr); } .fjn-pkm__list { grid-column: 2; } }
@media (max-width: 767px) { .fjn-pkm__grid { grid-template-columns: minmax(0, 1fr); } .fjn-pkm__list { grid-column: auto; } .fjn-pkm__batch > span { margin-left: 0; } }
/* E1-42c „Odbiór od serwisu” (D180) */
.fjn-pkp__card { display: flex; flex-direction: column; gap: 16px; }
.fjn-pkp__row2 { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; }
.fjn-pkp__row3 { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) minmax(0, 1fr); gap: 16px; }
.fjn-pkp__branch { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.fjn-pkp__addr { display: flex; align-items: flex-start; gap: 6px; margin: 0; font-size: 13px; color: var(--fjn-text-2); }
.fjn-pkp__addr svg { flex: none; margin-top: 2px; }
.fjn-pkp .fjn-search-select__input { padding-left: 40px; background: var(--fjn-surface) url("../icons/search.759532a4e360.svg") no-repeat left 12px center / 18px; }
.fjn-pkp .fjn-search-select::after { content: ""; position: absolute; right: 12px; width: 18px; height: 18px; background: url("../icons/chevron-down.bf32575dce75.svg") no-repeat center / 18px; pointer-events: none; }
.fjn-pkp .fjn-input, .fjn-pkp .fjn-input-group, .fjn-pkp .fjn-search-select__input { height: 56px; }
.fjn-pkp .fjn-textarea { min-height: 64px; }
.fjn-pkp__info { display: flex; align-items: center; gap: 10px; margin: 0; padding: 10px 12px; border-radius: 8px; background: var(--fjn-brand-50); color: #173F6F; font-size: 14px; }
.fjn-pkp__info svg { flex: none; }
@media (max-width: 767px) {
  .fjn-pkp__row2, .fjn-pkp__row3 { grid-template-columns: minmax(0, 1fr); }
}
