/* E4 partner portal (D157, ModE4): P-01 login card, the portal pages, P-10 people and branches,
   E4-20 partner card. */
.fjn-pauth-page { background: var(--fjn-nav-bg); }
.fjn-pauth { display: flex; align-items: center; justify-content: center; min-height: 100vh; padding: 24px 16px; }
.fjn-pauth__card { display: flex; flex-direction: column; gap: 16px; width: min(420px, 100%); padding: 28px 24px; background: var(--fjn-surface); border-radius: 12px; }
.fjn-pauth__logo { display: flex; justify-content: center; padding: 16px; background: var(--fjn-nav-logo-bg); border-bottom: 2px solid var(--fjn-nav-active-bg); border-radius: 8px; }
.fjn-pauth__logo img { height: 34px; }
.fjn-pauth__head h1 { margin: 0; font-size: 24px; }
.fjn-pauth__head p { margin: 4px 0 0; color: var(--fjn-text-2); }
.fjn-pauth__link { align-self: center; color: var(--fjn-brand-600); }
.fjn-pauth__foot { margin: 0; text-align: center; font-size: 13px; color: var(--fjn-text-2); }
.fjn-portal { display: flex; flex-direction: column; gap: 14px; }
.fjn-portal__head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.fjn-portal__head .fjn-page__title { margin: 0; }
.fjn-ppeople td small { display: block; font-size: 12px; color: var(--fjn-text-2); }
.fjn-ppeople__sub { display: none !important; }
.fjn-ppeople__act { text-align: right; white-space: nowrap; }
.fjn-ppeople__act form { margin: 0; display: inline; }
.fjn-link-btn { padding: 0; border: 0; background: none; color: var(--fjn-brand-600); font: inherit; font-weight: 700; cursor: pointer; text-decoration: none; }
.fjn-pbranch { display: flex; gap: 12px; align-items: flex-start; padding: 14px 0; border-bottom: 1px solid var(--fjn-surface-2); }
.fjn-pbranch:last-child { border-bottom: 0; }
.fjn-pbranch > span:last-child { display: flex; flex-direction: column; gap: 4px; }
.fjn-pbranch small { font-size: 13px; color: var(--fjn-text-2); }
.fjn-pbranch__icon { display: flex; flex: none; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 8px; background: var(--fjn-surface-2); color: var(--fjn-text-2); }
.fjn-pdlg .fjn-srvdlg__body { display: flex; flex-direction: column; gap: 12px; }
.fjn-pdlg .fjn-srvdlg__body p { margin: 0; }
.fjn-pdlg__role, .fjn-pdlg__reason { justify-content: flex-start; padding: 10px 12px; text-align: left; }
.fjn-pdlg__role > span { display: flex; flex-direction: column; gap: 2px; }
.fjn-pdlg__role small { font-size: 12px; font-weight: 400; color: var(--fjn-text-2); }
.fjn-pdlg .fjn-trel__method-btn:has(input:checked) { border-color: var(--fjn-brand-600); background: var(--fjn-brand-100); color: var(--fjn-brand-700); }
.fjn-pdlg .fjn-trel__reasons { display: flex; flex-direction: column; gap: 8px; }
.fjn-pdlg__roles:has(input[value="owner"]:checked) ~ .fjn-pdlg__branch { display: none; }
/* E4-20 partner card */
.fjn-pcard__head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.fjn-pcard__title { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.fjn-pcard__title h1 { margin: 0; }
.fjn-pcard__period { display: flex; flex-direction: column; gap: 12px; max-width: 640px; }
.fjn-pcard__period .fjn-trel__methods { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.fjn-pcard__period .fjn-trel__method-btn { justify-content: flex-start; padding: 0 14px; }
.fjn-pcard__period .fjn-trel__method-btn:has(input:checked) { border-color: var(--fjn-brand-600); background: var(--fjn-brand-100); color: var(--fjn-brand-700); }
.fjn-pcard__period .fjn-d154__btns { justify-content: flex-end; }
@media (max-width: 767px) {
  .fjn-portal__head { flex-direction: column; }
  .fjn-ppeople thead, .fjn-ppeople__col, .fjn-ppeople__mail { display: none !important; }
  .fjn-ppeople__sub { display: block !important; }
  .fjn-ppeople tr { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; border-bottom: 1px solid var(--fjn-surface-2); }
  .fjn-ppeople tr:last-child { border-bottom: 0; }
  .fjn-ppeople td { border: 0; }
  .fjn-ppeople__act { display: none; }  /* D157 P-10_M: no actions on the phone */
}
.fjn-pdlg__days { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; }
.fjn-pdlg__days .fjn-trel__method-btn { min-height: 44px; }
.fjn-pdlg__days .fjn-trel__method-btn:has(input:checked) { border-color: var(--fjn-brand-600); background: var(--fjn-brand-100); color: var(--fjn-brand-700); }
/* P-03…P-05 requests */
.fjn-preq__grid, .fjn-preq__cols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; align-items: start; }
.fjn-preq__cols { grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); }
.fjn-preq__counts { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.fjn-preq__counts .fjn-trel__method-btn:has(input:checked) { border-color: var(--fjn-brand-600); background: var(--fjn-brand-100); color: var(--fjn-brand-700); }
.fjn-preq__tiles { display: flex; flex-wrap: wrap; gap: 8px; }
.fjn-preq__thumb, .fjn-preq__add { display: flex; align-items: center; justify-content: center; width: 72px; height: 72px; border-radius: 8px; overflow: hidden; background: var(--fjn-surface-2); }
.fjn-preq__thumb img { width: 100%; height: 100%; object-fit: cover; }
.fjn-preq__add { position: relative; border: 1px dashed var(--fjn-brand-600); background: var(--fjn-brand-100); color: var(--fjn-brand-600); cursor: pointer; }
.fjn-preq__add input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.fjn-preq__tiles.fjn-d154__field--error .fjn-preq__add { border-color: var(--fjn-danger-700); }
.fjn-preq__foot { justify-content: flex-start; }
.fjn-preq__filters { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.fjn-preq__filters .fjn-input-group { flex: 1 1 280px; }
.fjn-preq__sub { display: none; font-size: 12px; color: var(--fjn-text-2); }
.fjn-preq__title { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.fjn-preq__timeline { display: flex; flex-direction: column; gap: 10px; margin: 0; padding: 0 0 0 18px; list-style: none; border-left: 2px solid var(--fjn-surface-2); }
.fjn-preq__timeline li { position: relative; display: flex; flex-direction: column; gap: 2px; color: var(--fjn-text-3); }
.fjn-preq__timeline li::before { content: ""; position: absolute; left: -25px; top: 4px; width: 10px; height: 10px; border-radius: 50%; background: var(--fjn-border-strong); }
.fjn-preq__timeline li.is-done { color: var(--fjn-text); }
.fjn-preq__timeline li.is-done::before { background: var(--fjn-brand-600); }
.fjn-preq__timeline small { font-size: 12px; color: var(--fjn-text-2); }
@media (max-width: 767px) {
  .fjn-preq__grid, .fjn-preq__cols { grid-template-columns: minmax(0, 1fr); }
  .fjn-preq__table thead, .fjn-preq__col { display: none; }
  .fjn-preq__sub { display: block; }
}
.fjn-preq__kinds { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.fjn-preq__kinds .fjn-trel__method-btn:has(input:checked) { border-color: var(--fjn-brand-600); background: var(--fjn-brand-100); color: var(--fjn-brand-700); }
/* P-02 tiles */
.fjn-ptiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.fjn-ptiles:has(> :nth-child(5)) { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.fjn-ptile { display: flex; flex-direction: column; gap: 6px; padding: 14px 16px; background: var(--fjn-surface); border: 1px solid var(--fjn-border); border-radius: 10px; color: inherit; text-decoration: none; }
.fjn-ptile__label { display: flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 700; }
.fjn-ptile b { font-size: 26px; }
.fjn-ptile small { font-size: 13px; color: var(--fjn-text-2); }
.fjn-ptile--warn { background: var(--fjn-warning-100); border-color: var(--fjn-warning-700); }
.fjn-ptile--warn b { color: var(--fjn-warning-700); }
.fjn-ptile__row { color: inherit; text-decoration: none; }
@media (max-width: 767px) { .fjn-ptiles, .fjn-ptiles:has(> :nth-child(5)) { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.fjn-preq__retail { display: block; font-size: 12px; color: var(--fjn-text-2); }
.fjn-preq__decide { justify-content: flex-end; margin-top: 8px; }
/* P-06…P-08 */
.fjn-pdel__days { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.fjn-pdel__top { flex: none; min-height: 0; gap: 12px; padding-bottom: 0; }
.fjn-pdel__top .fjn-d154__head { margin: 0; }
.fjn-pdel__branch { display: flex; }
.fjn-pdel__waiting { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; padding: 12px 0; border-top: 1px solid var(--fjn-border); }
.fjn-pdel__waiting > span:first-child { display: flex; flex-direction: column; gap: 2px; }
.fjn-pdel__waiting small { font-size: 13px; color: var(--fjn-text-2); }
.fjn-pdel__days .fjn-trel__method-btn:has(input:checked) { border-color: var(--fjn-brand-600); background: var(--fjn-brand-100); color: var(--fjn-brand-700); }
.fjn-pdel__address[readonly] { background: var(--fjn-surface-2, #f3f4f6); }
.fjn-phist__end { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; }
.fjn-pdel__top + .fjn-page { padding-top: 12px; }
.fjn-pst__range { display: block; font-size: 12px; color: var(--fjn-text-2); }
.fjn-pst__decisions { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.fjn-preq__step[hidden] { display: none; }
.fjn-preq__price { display: flex; flex-direction: column; margin-right: auto; }
.fjn-preq__price small { font-size: 12px; color: var(--fjn-text-2); }
.fjn-preq__price b { font-size: 20px; }
.fjn-preq__timeline li.is-current { color: var(--fjn-text); }
.fjn-preq__timeline li.is-current::before { background: var(--fjn-surface); box-shadow: inset 0 0 0 3px var(--fjn-brand-600); }
.fjn-preq__price[hidden] { display: none; }
.fjn-pext__price { font-weight: 800; }
.fjn-pext__note { background: var(--fjn-brand-100); color: var(--fjn-brand-700); }
.fjn-pst__btns { justify-content: flex-end; }
.fjn-pst__more { color: var(--fjn-text-2); font-size: 13px; }
@media (max-width: 767px) { .fjn-pst--closed .fjn-pst__lines, .fjn-pst--closed .fjn-pst__nv, .fjn-pst--closed .fjn-pst__answer { display: none; } }
.fjn-pst__sub { font-size: 13px; color: var(--fjn-text-2); }
.fjn-pst__note > span { display: flex; flex-direction: column; gap: 2px; }
.fjn-pst__tabs { border-bottom: 1px solid var(--fjn-border); }
.fjn-pdel__waiting .fjn-status { flex: none; flex-wrap: nowrap; white-space: nowrap; }
.fjn-ppeople__off b, .fjn-ppeople__off small { color: var(--fjn-text-3); }
.fjn-plist__search .fjn-input-group { flex: 1 1 320px; }
.fjn-psection { display: none; }
@media (max-width: 767px) { .fjn-psection { display: block; } .fjn-psection__tabs { display: none; } }
@media (max-width: 767px) { .fjn-plist__clear .fjn-btn { flex: 1 1 100%; } }
/* D201: E4-22 „Odpowiedz na różnicę” and the window „Odpowiedź na różnicę” */
.fjn-pst__answerbar { display: flex; justify-content: flex-end; margin: 0; }
.fjn-pdlg .fjn-srvdlg__head { position: relative; padding-right: 52px; }
.fjn-srvdlg__x { position: absolute; top: 14px; right: 14px; display: flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 8px; color: var(--fjn-text); }
.fjn-srvdlg__x:hover { background: var(--fjn-surface-2); }
@media (max-width: 767px) { .fjn-pst__answerbar .fjn-btn { width: 100%; justify-content: center; min-height: 48px; } }
