/* D250 (SPEC 1.279): work card scan — hall „Skanuj” texts, the „Zlecenie” screen, the kiosk bar
   button and the office window „Skanuj” (ModD250, ModD250Hala, ModD250App). */

/* ---------- The field hint in two lines in a narrow field (hall and office) ---------- */
.fjn-d250-ph { position: relative; flex: 1; min-width: 0; display: flex; }
.fjn-d250-ph .fjn-scan__input.fjn-input { width: 100%; }
.fjn-d250-ph .fjn-scan__input::placeholder { color: transparent; }
.fjn-d250-ph__text {
  position: absolute; left: 15px; right: 10px; top: 0; bottom: 0; display: none;
  align-items: center; align-content: center; flex-wrap: wrap; column-gap: 9px; pointer-events: none;
  font: 15px/19px var(--fjn-font-mono); color: var(--fjn-text-3);
}
.fjn-d250-ph__text span { white-space: nowrap; }
.fjn-d250-ph .fjn-scan__input:placeholder-shown + .fjn-d250-ph__text { display: flex; }
.fjn-scan__input--bad.fjn-input, .fjn-scan__input--bad.fjn-input:focus { border: 2px solid var(--fjn-danger-700); }
.fjn-scan__note--missing { background: var(--fjn-surface-2); }

/* ---------- „Zlecenie” (layout of D235 „Szczegóły zadania”) ---------- */
.fjn-d250o__state { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.fjn-d250o__state .fjn-htask__info { font-size: 14px; line-height: 20px; color: var(--fjn-text-2); }
.fjn-d250o__stages { gap: 12px; }
.fjn-d250o__legend { display: flex; gap: 12px; flex-wrap: wrap; font-size: 13px; color: var(--fjn-text-2); }
.fjn-d250o__legend span { display: flex; align-items: center; gap: 6px; }
.fjn-d250o__key { display: inline-block; width: 16px; height: 10px; border-radius: 3px; }
.fjn-d250o__row { display: grid; gap: 6px; align-items: center; }
.fjn-d250o__row--head { align-items: end; }
.fjn-d250o__wheel { padding-top: 10px; border-top: 1px solid var(--fjn-surface-2); }
.fjn-d250o__n1 { grid-template-columns: 44px repeat(1, minmax(0, 1fr)); }
.fjn-d250o__n2 { grid-template-columns: 44px repeat(2, minmax(0, 1fr)); }
.fjn-d250o__n3 { grid-template-columns: 44px repeat(3, minmax(0, 1fr)); }
.fjn-d250o__n4 { grid-template-columns: 44px repeat(4, minmax(0, 1fr)); }
.fjn-d250o__n5 { grid-template-columns: 44px repeat(5, minmax(0, 1fr)); }
.fjn-d250o__n6 { grid-template-columns: 44px repeat(6, minmax(0, 1fr)); }
.fjn-d250o__head {
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap; text-align: center;
  font-size: 12px; line-height: 1.2; font-weight: 700; color: var(--fjn-text-2);
}
.fjn-d250o__head--done { color: var(--fjn-success-700); }
.fjn-d250o__head--now { color: var(--fjn-brand-600); }
.fjn-d250o__seg { display: block; height: 16px; border-radius: 4px; }
.fjn-d250o__seg--done { background: var(--fjn-success-700); }
.fjn-d250o__seg--now { background: var(--fjn-brand-600); }
.fjn-d250o__seg--wait { background: var(--fjn-border); }
.fjn-d250o__foot { flex-wrap: wrap; align-items: center; }
.fjn-d250o__mine { flex: 1 1 100%; min-width: 0; font-size: 15px; color: var(--fjn-text-2); }
.fjn-d250o__mine b { color: var(--fjn-text); }
@media (min-width: 768px) {
  .fjn-d250o__head { font-size: 13px; }
  .fjn-d250o__n1 { grid-template-columns: 52px repeat(1, minmax(0, 1fr)); }
  .fjn-d250o__n2 { grid-template-columns: 52px repeat(2, minmax(0, 1fr)); }
  .fjn-d250o__n3 { grid-template-columns: 52px repeat(3, minmax(0, 1fr)); }
  .fjn-d250o__n4 { grid-template-columns: 52px repeat(4, minmax(0, 1fr)); }
  .fjn-d250o__n5 { grid-template-columns: 52px repeat(5, minmax(0, 1fr)); }
  .fjn-d250o__n6 { grid-template-columns: 52px repeat(6, minmax(0, 1fr)); }
  .fjn-d250o__foot { flex-wrap: nowrap; }
  .fjn-d250o__mine { flex: 1; }
}
@media (min-width: 1024px) {
  .fjn-d250o__cols { grid-template-columns: minmax(0, 1fr) minmax(0, 1.35fr); }
}

/* ---------- Kiosk bar: „Skanuj” / „Moje zadania” next to „Wyloguj” ---------- */
.fjn-kiosk__nav { display: inline-flex; align-items: center; gap: 8px; padding: 0 14px; text-decoration: none; }
.fjn-kiosk__nav:hover { color: var(--fjn-text-inverse); text-decoration: none; }
.fjn-kiosk-page .fjn-kiosk__place { flex: 0 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.fjn-kiosk-page .fjn-kiosk__who { flex: 0 0.1 auto; }
.fjn-kiosk-page .fjn-kiosk__logout-btn { padding: 0 14px; }

/* ---------- Office: the top bar button, the phone menu row, the window ---------- */
.fjn-oscan-top {  /* like „Zgłoś problem” (D225) */
  display: inline-flex; flex: none; align-items: center; gap: 8px; height: 40px; padding: 0 12px;
  border: 1px solid #AEB5BE; border-radius: 6px; background: var(--fjn-surface); color: var(--fjn-text);
  font: inherit; font-size: 14px; font-weight: 700; white-space: nowrap; cursor: pointer;
}
.fjn-oscan-top:hover { background: var(--fjn-surface-2); }
.fjn-oscan-top .fjn-icon { color: var(--fjn-text-2); }
@media (max-width: 1023px) {
  .fjn-oscan-top { width: 40px; padding: 0; justify-content: center; }
  .fjn-oscan-top__label { display: none; }
}
.fjn-navdrawer__scan {
  display: flex; align-items: center; gap: 12px; width: 100%; min-height: 56px; margin-bottom: 6px; padding: 0 10px;
  border: 1px solid #4A525C; border-radius: var(--fjn-r-md); background: none; color: var(--fjn-nav-text);
  font: inherit; font-size: 16px; text-align: left; cursor: pointer;
}
.fjn-navdrawer__scan b { flex: 1; min-width: 0; }
.fjn-navdrawer__scan small { font-size: 12px; color: #AEB5BE; white-space: nowrap; }
@media (min-width: 768px) { .fjn-navdrawer__scan { display: none; } }

.fjn-oscan {
  width: min(600px, calc(100vw - 48px)); max-height: calc(100dvh - 48px); padding: 0; border: 0; border-radius: 12px;
  box-shadow: 0 16px 40px rgba(21, 24, 28, .18); overflow: hidden;
}
.fjn-oscan::backdrop { background: rgba(21, 24, 28, .5); }
.fjn-oscan[open] { display: flex; flex-direction: column; }
.fjn-oscan__head {
  flex: none; display: flex; align-items: center; gap: 8px; min-height: 56px; padding: 4px 4px 4px 20px;
  border-bottom: 1px solid var(--fjn-surface-2);
}
.fjn-oscan__title { flex: 1; margin: 0; font-size: 19px; }
.fjn-oscan__x { display: flex; align-items: center; justify-content: center; width: 48px; height: 48px; border: 0; background: none; color: var(--fjn-text); cursor: pointer; }
.fjn-oscan__body { flex: 1; min-height: 0; overflow-y: auto; display: flex; flex-direction: column; gap: 12px; padding: 16px 20px 20px; }
.fjn-oscan__side { display: flex; flex-direction: column; gap: 12px; }
.fjn-oscan .fjn-scan__camera { flex: none; height: 280px; min-height: 0; }
.fjn-oscan .fjn-scan__frame { width: 180px; height: 180px; }
.fjn-oscan .fjn-scan__corner { width: 40px; height: 40px; }
@media (max-width: 767px) {
  .fjn-app-page .fjn-oscan.fjn-dialog:modal {  /* full screen, over the bottom menu (ModD250 M) */
    position: fixed; inset: 0; width: 100%; max-width: none; height: auto; max-height: none; margin: 0; border-radius: 0;
  }
  .fjn-oscan .fjn-scan__camera { flex: 1; height: auto; min-height: 220px; }
  .fjn-oscan:has(.fjn-scan__note) .fjn-scan__camera { flex: none; height: 190px; min-height: 0; }
  .fjn-oscan:has(.fjn-scan__note) .fjn-scan__frame { width: 110px; height: 110px; margin-top: 44px; }
}

/* Messages of the hall and office scan (ModD250Hala „nieznany”, „brak-zlecenia”): the text wraps
   before the button; on the phone the camera shrinks above the message. */
.fjn-scan:has(.fjn-d250-ph) .fjn-scan__note, .fjn-oscan .fjn-scan__note { align-items: flex-start; flex-wrap: wrap; }
.fjn-scan:has(.fjn-d250-ph) .fjn-scan__note-text, .fjn-oscan .fjn-scan__note-text { flex: 1 1 200px; }
@media (max-width: 767px) {
  .fjn-scan:has(.fjn-d250-ph):has(.fjn-scan__note) .fjn-scan__camera { height: 190px; min-height: 0; }
  .fjn-scan:has(.fjn-d250-ph):has(.fjn-scan__note) .fjn-scan__frame { width: 110px; height: 110px; margin-top: 44px; }
  .fjn-scan:has(.fjn-d250-ph) .fjn-scan__note-btn, .fjn-oscan .fjn-scan__note-btn { margin-left: 0; }
}
