
/* PRAWNIKOM PRO — CZYTNIK ODPISOW KRS */

html body details.source-panel#dokument {
    --doc-navy:#142641;
    --doc-gold:#b58a43;
    --doc-border:#d5dfeb;
    --doc-bg:#e9eef4;

    display:block !important;
    width:100% !important;
    max-width:100% !important;
    min-width:0 !important;
    height:auto !important;
    max-height:none !important;
    padding:0 !important;
    margin:24px 0 !important;
    background:#e9eef4 !important;
    border:1px solid #d5dfeb !important;
    border-radius:0 !important;
    overflow:visible !important;
    box-sizing:border-box;
}

#dokument.source-panel * {
    box-sizing:border-box;
}

/* NAGLOWEK DOKUMENTU */

html body #dokument.source-panel > summary {
    display:flex !important;
    align-items:center !important;
    justify-content:space-between !important;
    gap:20px;
    padding:24px 28px !important;
    margin:0 !important;
    background:linear-gradient(120deg,#0d192c,#203b5c) !important;
    color:#fff !important;
    border:0 !important;
    border-bottom:3px solid #b58a43 !important;
    border-radius:0 !important;
    list-style:none !important;
    cursor:pointer;
}

#dokument > summary::-webkit-details-marker {
    display:none;
}

#dokument .source-title {
    display:flex !important;
    align-items:center;
    gap:18px;
    min-width:0;
}

#dokument .source-title > i {
    display:grid !important;
    place-items:center;
    width:56px;
    height:56px;
    flex:0 0 56px;
    background:#ffffff0b;
    border:1px solid #b58a43;
    color:#d5b16b !important;
    font-size:32px !important;
    font-style:normal;
}

#dokument .source-title > span {
    display:flex;
    flex-direction:column;
    gap:6px;
}

html body #dokument .source-title b {
    font-family:Georgia,"Times New Roman",serif !important;
    font-size:26px !important;
    font-weight:600;
    line-height:1.4;
    color:#fff !important;
}

html body #dokument .source-title small {
    display:block;
    font-family:"Segoe UI",Arial,sans-serif !important;
    font-size:11px !important;
    font-weight:600;
    letter-spacing:1.5px;
    color:#d5b16b !important;
}

#dokument .source-toggle {
    display:grid;
    place-items:center;
    flex:0 0 40px;
    width:40px;
    height:40px;
    border:1px solid #b58a43;
    color:#d5b16b !important;
    font-size:0 !important;
}

#dokument .source-toggle::before {
    content:"+";
    font-size:24px;
}

#dokument[open] .source-toggle::before {
    content:"−";
}

/* WYSZUKIWARKA DOKUMENTU */

html body #dokument .source-search {
    display:flex !important;
    align-items:center;
    flex-wrap:wrap;
    gap:16px;
    padding:20px 24px !important;
    margin:0 !important;
    background:#fff !important;
    border-bottom:1px solid #d5dfeb;
}

html body #dokument .source-search-box {
    display:flex !important;
    align-items:center;
    flex:1 1 300px;
    gap:12px;
    min-width:0;
    min-height:48px;
    padding:0 16px !important;
    margin:0 !important;
    background:#f8fafc !important;
    border:1px solid #cbd5e1 !important;
    border-radius:0 !important;
}

#dokument .source-search-box > span {
    flex-shrink:0;
    font-size:28px;
    color:#96702d !important;
}

html body #dokument #search {
    display:block !important;
    width:100% !important;
    min-width:0 !important;
    height:46px !important;
    padding:0 !important;
    margin:0 !important;
    background:transparent !important;
    color:#142641 !important;
    border:0 !important;
    border-radius:0 !important;
    box-shadow:none !important;
    font-family:"Segoe UI",Arial,sans-serif !important;
    font-size:15px !important;
}

#dokument .source-search-box:focus-within {
    border-color:#b58a43 !important;
    outline:2px solid #b58a4333;
}

html body #dokument #counter {
    display:inline-flex;
    align-items:center;
    padding:12px 16px !important;
    background:#f0f4f8 !important;
    border:1px solid #d5dfeb !important;
    color:#142641 !important;
    font-size:12px !important;
    font-weight:600;
}

/* OBSZAR DOKUMENTU */

html body #dokument article.document {
    display:flex !important;
    flex-direction:column !important;
    align-items:center !important;
    gap:28px !important;
    width:100% !important;
    min-width:0 !important;
    height:auto !important;
    max-height:none !important;
    padding:32px !important;
    margin:0 !important;
    background:#e9eef4 !important;
    overflow:visible !important;
}

/* BIALE STRONY DOKUMENTU */

html body #dokument .document-page {
    display:block;
    position:relative !important;
    width:100% !important;
    max-width:1100px !important;
    min-width:0 !important;
    height:auto !important;
    min-height:0 !important;
    max-height:none !important;
    padding:36px 42px !important;
    margin:0 !important;
    background:#fff !important;
    border:1px solid #cbd5e1 !important;
    border-radius:0 !important;
    box-shadow:0 5px 18px #1426410d !important;
    overflow:visible !important;
    color:#142641 !important;
    font-family:Georgia,"Times New Roman",serif !important;
    font-size:16px !important;
    line-height:1.85 !important;
}

/* NUMER STRONY */

html body #dokument .document-page > header {
    display:flex !important;
    align-items:center;
    justify-content:space-between;
    gap:12px;
    position:static !important;
    padding:0 0 16px !important;
    margin:0 0 24px !important;
    background:transparent !important;
    border:0 !important;
    border-bottom:2px solid #b58a43 !important;
    color:#142641 !important;
    font-family:"Segoe UI",Arial,sans-serif !important;
}

#dokument .document-page > header span {
    font-size:12px !important;
    font-weight:700;
    letter-spacing:1.5px;
    text-transform:uppercase;
    color:#96702d !important;
}

#dokument .document-page > header b {
    padding:6px 12px;
    background:#f0f4f8;
    color:#142641 !important;
    font-size:12px !important;
}

/* TRESC WSTEPNA I OPISOWA */

html body #dokument .document-page > p {
    display:block;
    font-family:Georgia,"Times New Roman",serif !important;
    font-size:16px !important;
    font-weight:400 !important;
    line-height:1.95 !important;
    color:#142641 !important;
    margin:0 0 24px !important;
    padding:16px 18px !important;
    background:#f8fafc !important;
    border-left:3px solid #b58a43 !important;
    white-space:pre-wrap !important;
    overflow-wrap:anywhere;
}

/* DZIALY KRS */

html body #dokument .document-section {
    display:block !important;
    position:static !important;
    width:100% !important;
    padding:16px 20px !important;
    margin:30px 0 16px !important;
    background:#142641 !important;
    color:#fff !important;
    border:0 !important;
    border-left:5px solid #b58a43 !important;
    border-radius:0 !important;
    font-family:Georgia,serif !important;
    font-size:25px !important;
    font-weight:600 !important;
    line-height:1.4 !important;
}

/* RUBRYKI I PODRUBRYKI */

html body #dokument .registry-heading {
    display:block !important;
    position:static !important;
    width:100% !important;
    padding:15px 18px !important;
    margin:22px 0 0 !important;
    background:#e8edf4 !important;
    color:#142641 !important;
    border:1px solid #d5dfeb !important;
    border-left:3px solid #b58a43 !important;
    border-radius:0 !important;
    font-family:"Segoe UI",Arial,sans-serif !important;
    font-size:15px !important;
    font-weight:700 !important;
    line-height:1.7 !important;
    overflow-wrap:anywhere;
}

/* POZYCJE REJESTROWE */

html body #dokument .field-row {
    display:grid !important;
    grid-template-columns:52px minmax(0,1fr) !important;
    align-items:stretch !important;
    gap:0 !important;
    width:100% !important;
    min-width:0 !important;
    height:auto !important;
    max-height:none !important;
    padding:0 !important;
    margin:0 !important;
    background:#fff !important;
    border:1px solid #d5dfeb !important;
    border-top:0 !important;
    border-radius:0 !important;
    overflow:visible !important;
}

html body #dokument .field-row > span {
    display:flex !important;
    align-items:flex-start;
    justify-content:center;
    width:100% !important;
    padding:17px 8px !important;
    margin:0 !important;
    background:#f0f4f8 !important;
    border-right:1px solid #d5dfeb;
    color:#96702d !important;
    font-family:"Segoe UI",Arial,sans-serif !important;
    font-size:13px !important;
    font-weight:700 !important;
    font-variant-numeric:tabular-nums;
}

html body #dokument .field-row > p {
    display:block !important;
    position:static !important;
    width:100% !important;
    min-width:0 !important;
    height:auto !important;
    max-height:none !important;
    padding:16px 20px !important;
    margin:0 !important;
    background:transparent !important;
    border:0 !important;
    font-family:Georgia,"Times New Roman",serif !important;
    font-size:16px !important;
    font-weight:400 !important;
    line-height:1.9 !important;
    color:#142641 !important;
    text-align:left !important;
    text-transform:none !important;
    white-space:pre-wrap !important;
    overflow-wrap:anywhere !important;
    overflow:visible !important;
    -webkit-line-clamp:unset !important;
}

#dokument .field-row:nth-of-type(even) {
    background:#f8fafc !important;
}

#dokument .field-row:hover {
    background:#fff9eb !important;
}

/* KONIEC STRONY */

#dokument .document-page::after {
    content:"Odpis KRS · Koniec strony " attr(data-page);
    display:block;
    padding:18px 0 0;
    margin:30px 0 0;
    border-top:1px solid #d5dfeb;
    color:#64748b;
    font-family:"Segoe UI",Arial,sans-serif;
    font-size:11px;
    letter-spacing:.5px;
    text-align:center;
}

/* WYNIKI WYSZUKIWANIA */

html body #dokument mark {
    padding:2px 3px;
    background:#ffe5a0 !important;
    color:#142641 !important;
    border-bottom:2px solid #b58a43;
    font-weight:600;
}

#dokument ::selection {
    background:#e9d29d;
    color:#142641;
}

/* ZACHOWANIE UKRYTYCH WYNIKOW */

html body #dokument [hidden] {
    display:none !important;
}

html body #dokument:not([open]) > :not(summary) {
    display:none !important;
}

/* TABLET */

@media(max-width:1100px) {

    html body #dokument article.document {
        padding:20px !important;
    }

    html body #dokument .document-page {
        padding:28px !important;
    }

}

/* TELEFON */

@media(max-width:600px) {

    html body #dokument.source-panel > summary {
        padding:18px !important;
        gap:10px;
    }

    #dokument .source-title {
        gap:12px;
    }

    #dokument .source-title > i {
        width:38px;
        height:38px;
        flex-basis:38px;
        font-size:23px !important;
    }

    html body #dokument .source-title b {
        font-size:19px !important;
    }

    html body #dokument .source-search {
        padding:12px !important;
    }

    html body #dokument article.document {
        padding:8px !important;
        gap:16px !important;
    }

    html body #dokument .document-page {
        padding:16px 12px !important;
    }

    html body #dokument .document-section {
        font-size:22px !important;
        padding:12px 14px !important;
    }

    html body #dokument .registry-heading {
        font-size:14px !important;
        padding:12px !important;
    }

    html body #dokument .field-row {
        grid-template-columns:32px minmax(0,1fr) !important;
    }

    html body #dokument .field-row > p {
        font-size:15px !important;
        line-height:1.85 !important;
        padding:12px !important;
    }

    html body #dokument .document-page > p {
        font-size:15px !important;
        padding:12px !important;
    }

}

/* WYDRUK DOKUMENTU */

@media print {

    html body #dokument.source-panel,
    html body #dokument article.document {
        background:#fff !important;
        border:0 !important;
        padding:0 !important;
        margin:0 !important;
        box-shadow:none !important;
    }

    #dokument > summary,
    #dokument .source-search {
        display:none !important;
    }

    html body #dokument .document-page {
        max-width:none !important;
        padding:0 !important;
        border:0 !important;
        box-shadow:none !important;
        break-after:page;
    }

    #dokument .document-page:last-child {
        break-after:auto;
    }

    #dokument .document-section,
    #dokument .registry-heading {
        break-after:avoid;
    }

    html body #dokument .document-section,
    html body #dokument .registry-heading {
        background:#eee !important;
        color:#000 !important;
    }

    html body #dokument .field-row > p,
    html body #dokument .document-page > p {
        font-size:11pt !important;
        line-height:1.6 !important;
        color:#000 !important;
    }

}

