/* Dokumenty Ewy: czytelny tekst, formularze do druku i tabele na telefonie. */
body:has(.ep-dokument-ewy) .ep-tresc { max-width: 1040px; margin-inline: auto; padding-inline: 24px; }
body:has(.ep-dokument-ewy) .ep-tresc h1 { max-width: 900px; font-size: clamp(30px, 4vw, 46px); line-height: 1.15; margin: 12px 0 28px; }
.ep-dokument-ewy { color: var(--ink-2, #514b56); font-size: 18px; line-height: 1.75; overflow-wrap: anywhere; }
.ep-dokument-ewy h2 { color: var(--ink, #29203d); font-size: clamp(22px, 2.4vw, 28px); line-height: 1.3; margin: 42px 0 18px; scroll-margin-top: 110px; }
.ep-dokument-ewy h3 { color: var(--ink, #29203d); font-size: 21px; line-height: 1.4; margin: 26px 0 12px; }
.ep-dokument-ewy p { margin: 0 0 17px; }
.ep-dokument-ewy b, .ep-dokument-ewy strong { color: var(--ink, #29203d); font-weight: 700; }
.ep-dokument-ewy ul, .ep-dokument-ewy ol { padding-left: 1.6em; margin: 16px 0 22px; list-style-position: outside; }
.ep-dokument-ewy ul { list-style-type: disc; }
.ep-dokument-ewy ol { list-style-type: decimal; }
.ep-dokument-ewy ol[type="a"] { list-style-type: lower-alpha; }
.ep-dokument-ewy li { margin: 0 0 12px; padding-left: .25em; }
.ep-dokument-ewy li > ol, .ep-dokument-ewy li > ul { margin-block: 12px; }
.ep-dokument-ewy a:not(.btn) { color: var(--plum, #352178); text-decoration: underline; text-underline-offset: 3px; }
.ep-dokument-ewy a:not(.btn):hover { text-decoration-thickness: 2px; }
.ep-dokument-ewy a:focus-visible { outline: 3px solid var(--plum, #352178); outline-offset: 4px; }
.ep-dokument-ewy .box, .ep-dokument-ewy .nagly { padding: 24px; margin: 22px 0; border: 1px solid var(--line, #e5ded5); border-radius: 16px; background: var(--card, #fff); }
.ep-dokument-ewy .box p:last-child, .ep-dokument-ewy .nagly p:last-child { margin-bottom: 0; }
.ep-dokument-ewy .nagly { border-left: 4px solid var(--accent, #ce3300); }
.ep-dokument-ewy .data, .ep-dokument-ewy .uwaga-wzor { font-size: 16px; color: var(--ink-3, #686077); }
.ep-dokument-ewy .ep-dokument-powrot { margin-bottom: 24px; }
.ep-dokument-ewy .ep-dokument-druk { padding: 15px 18px; border-radius: 12px; background: var(--plum-soft, #eee8f8); color: var(--ink, #29203d); font-size: 16px; }
.ep-dokument-ewy .tw { max-width: 100%; overflow-x: auto; margin: 20px 0; border: 1px solid var(--line, #e5ded5); border-radius: 12px; background: var(--card, #fff); }
.ep-dokument-ewy table { width: 100%; border-collapse: collapse; text-align: left; margin: 0; font-size: 16px; line-height: 1.6; }
.ep-dokument-ewy th { padding: 15px 18px; background: var(--plum, #352178); color: #fff; font-size: 15px; font-weight: 700; vertical-align: top; }
.ep-dokument-ewy td { padding: 16px 18px; border-bottom: 1px solid var(--line, #e5ded5); vertical-align: top; }
.ep-dokument-ewy tr:last-child td { border-bottom: 0; }
.ep-dokument-ewy th:first-child, .ep-dokument-ewy td:first-child { width: 30%; }
.ep-dokument-ewy .wpisz { display: inline-block; min-width: min(20ch, 100%); max-width: 100%; min-height: 1.6em; border-bottom: 1px dotted #80778e; vertical-align: baseline; }
.ep-dokument-ewy .linia { display: block; width: 100%; min-height: 35px; border-bottom: 1px solid #a49bb0; margin: 4px 0 18px; }
.ep-dokument-ewy .etykieta { font-size: 15px; font-weight: 600; color: var(--ink, #29203d); margin-bottom: 0; }
.ep-dokument-ewy .para, .ep-dokument-ewy .podpisy { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.ep-dokument-ewy .para > div, .ep-dokument-ewy .podpisy > div { min-width: 0; }
.ep-dokument-ewy .podpisy { margin-top: 48px; text-align: center; }
.ep-dokument-ewy .kreska { display: block; min-height: 40px; border-bottom: 1px solid #a49bb0; margin-bottom: 10px; }
.ep-dokument-ewy .kontrasygnata, .ep-dokument-ewy .pieczec { max-width: 520px; margin: 42px auto 26px; text-align: center; }
.ep-dokument-ewy .kontrasygnata > span:last-child { display: block; font-size: 14px; margin-top: 8px; }
.ep-dokument-ewy .zalacznik { margin-top: 52px; padding-top: 22px; border-top: 2px solid var(--plum-line, #d3c5ef); }
.ep-dokument-ewy .zgoda { display: flex; align-items: flex-start; gap: 14px; margin: 18px 0; padding: 0; font-size: inherit; line-height: inherit; }
.ep-dokument-ewy .kratka { flex: 0 0 22px; width: 22px; height: 22px; border: 1.5px solid #6d637c; border-radius: 3px; margin-top: 5px; }
.ep-dokument-ewy .zgoda p { margin: 0; }
.ep-dokument-ewy .kroki b { display: block; }
.ep-dokument-ewy .ep-dokument-nav { padding: 24px; border: 1px solid var(--line, #e5ded5); border-radius: 16px; margin-top: 48px; background: var(--card, #fff); }
.ep-dokument-ewy .ep-dokument-nav ul { margin-bottom: 0; }
@media (max-width: 620px) {
  body:has(.ep-dokument-ewy) .ep-tresc { padding-inline: 20px; }
  .ep-dokument-ewy { font-size: 17px; line-height: 1.75; }
  .ep-dokument-ewy .box, .ep-dokument-ewy .nagly, .ep-dokument-ewy .ep-dokument-nav { padding: 18px; }
  .ep-dokument-ewy .para, .ep-dokument-ewy .podpisy { grid-template-columns: 1fr; gap: 12px; }
  .ep-dokument-ewy .tw table { min-width: 0; }
  .ep-dokument-ewy .tw thead, .ep-dokument-ewy .tw tr:has(th) { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .ep-dokument-ewy .tw tbody, .ep-dokument-ewy .tw tr, .ep-dokument-ewy .tw td { display: block; width: auto; }
  .ep-dokument-ewy .tw td { border-bottom: 0; padding: 10px 16px; }
  .ep-dokument-ewy .tw td:first-child { width: auto; padding-top: 17px; }
  .ep-dokument-ewy .tw td:last-child { padding-bottom: 17px; }
  .ep-dokument-ewy .tw tr { border-bottom: 1px solid var(--line, #e5ded5); }
  .ep-dokument-ewy .tw tr:last-child { border-bottom: 0; }
  .ep-dokument-ewy .tw td[data-label]::before { content: attr(data-label); display: block; font-size: 14px; font-weight: 700; color: var(--plum, #352178); margin-bottom: 3px; }
}
@media print {
  @page { margin: 16mm; }
  html:has(.ep-dokument-ewy), body:has(.ep-dokument-ewy) { background: #fff !important; overflow: visible !important; }
  body:has(.ep-dokument-ewy) > header, body:has(.ep-dokument-ewy) > footer, body:has(.ep-dokument-ewy) .sticky-cta,
  body:has(.ep-dokument-ewy) [data-ep-cookies], .ep-dokument-ewy .nodruk { display: none !important; }
  body:has(.ep-dokument-ewy) .ep-tresc { max-width: none; padding: 0; margin: 0; }
  body:has(.ep-dokument-ewy) .ep-tresc h1 { font-size: 23pt; }
  .ep-dokument-ewy { font-size: 11pt; line-height: 1.55; color: #222; }
  .ep-dokument-ewy h2 { font-size: 15pt; margin-top: 24pt; break-after: avoid; }
  .ep-dokument-ewy .box, .ep-dokument-ewy .nagly { padding: 12pt; background: #fff; break-inside: avoid; }
  .ep-dokument-ewy .tw { overflow: visible; }
  .ep-dokument-ewy .tw table { min-width: 0; font-size: 10pt; }
  .ep-dokument-ewy th { background: #eee !important; color: #111 !important; }
  .ep-dokument-ewy td, .ep-dokument-ewy th { padding: 8pt; }
  .ep-dokument-ewy tr, .ep-dokument-ewy li, .ep-dokument-ewy .zgoda, .ep-dokument-ewy .podpisy, .ep-dokument-ewy .pieczec, .ep-dokument-ewy .kontrasygnata { break-inside: avoid; }
  .ep-dokument-ewy .para, .ep-dokument-ewy .podpisy { grid-template-columns: 1fr 1fr; }
  /* Odstępy ekranowe załącznika i podpisu nie mogą tworzyć pustej kartki po protokole. */
  body:has(.ep-dokument-ewy) #top .ep-dokument-ewy section.zalacznik { display: block !important; break-before: page; break-after: auto; border-top: 0; margin: 0; padding: 0; min-height: 0; }
  .ep-dokument-ewy .zalacznik { font-size: 10pt; line-height: 1.35; }
  .ep-dokument-ewy .zalacznik h2 { font-size: 13pt; margin: 14pt 0 8pt; }
  .ep-dokument-ewy .zalacznik p, .ep-dokument-ewy .zalacznik li { margin-bottom: 8pt; }
  .ep-dokument-ewy .zalacznik .box { margin: 10pt 0; padding: 8pt; }
  .ep-dokument-ewy .zalacznik .tw { margin: 10pt 0; }
  .ep-dokument-ewy .zalacznik td { padding: 5pt 8pt; }
  .ep-dokument-ewy .zalacznik .uwaga-wzor, .ep-dokument-ewy .zalacznik .data { font-size: 10pt; }
  .ep-dokument-ewy .zalacznik .pieczec { margin: 6pt auto 0; }
  .ep-dokument-ewy .zalacznik .pieczec .kreska { min-height: 15px; }
}
