
/* PRAWNIKOM PRO — WYSZUKIWANIE GLOBALNE */

html body [data-module-workspace="search"] {
    --search-navy:#142641;
    --search-gold:#b58a43;
    --search-border:#d5dfeb;
    --search-bg:#f0f4f8;

    display:grid !important;
    grid-template-columns:220px minmax(0,1fr) !important;
    align-items:start !important;
    gap:20px !important;
    width:100% !important;
    min-width:0 !important;
    height:auto !important;
    background:#f0f4f8 !important;
}

[data-module-workspace="search"] * {
    box-sizing:border-box;
}

html body [data-module-workspace="search"] [hidden] {
    display:none !important;
}

/* NAGLOWEK STRONY */

html body main.content:has(
    > [data-module-workspace="search"]
) > .page-head {
    display:flex !important;
    align-items:center !important;
    padding:28px 32px !important;
    margin:0 0 20px !important;
    background:linear-gradient(120deg,#0d192c,#203b5c) !important;
    border:0 !important;
    border-bottom:3px solid #b58a43 !important;
    border-radius:0 !important;
}

html body main:has(
    > [data-module-workspace="search"]
) > .page-head h1 {
    font-family:Georgia,serif !important;
    font-size:clamp(24px,3vw,36px) !important;
    color:#fff !important;
    margin:8px 0 !important;
}

html body main:has(
    > [data-module-workspace="search"]
) > .page-head .eyebrow {
    color:#d5b16b !important;
    font-size:11px !important;
    font-weight:700 !important;
    letter-spacing:1.5px;
}

html body main:has(
    > [data-module-workspace="search"]
) > .page-head p {
    color:#cbd5e1 !important;
    font-size:14px !important;
    line-height:1.7 !important;
}

html body main:has(
    > [data-module-workspace="search"]
) .page-head-icon {
    background:#203b5c !important;
    color:#d5b16b !important;
    border:1px solid #b58a43 !important;
    border-radius:0 !important;
}

/* LEWE MENU MODULU */

html body [data-module-workspace="search"] > .module-rail {
    position:static !important;
    width:100% !important;
    min-width:0 !important;
    height:auto !important;
    max-height:none !important;
    padding:0 !important;
    background:#fff !important;
    border:1px solid #d5dfeb !important;
    border-radius:0 !important;
    overflow:visible !important;
}

html body [data-module-workspace="search"] .module-rail > header {
    display:flex !important;
    align-items:center !important;
    gap:12px !important;
    padding:18px !important;
    background:#142641 !important;
    color:#fff !important;
}

[data-module-workspace="search"] .module-rail > header b {
    color:#fff !important;
}

[data-module-workspace="search"] .module-rail > header small,
[data-module-workspace="search"] .module-rail-mark {
    color:#d5b16b !important;
}

html body [data-module-workspace="search"] .module-rail nav {
    display:flex !important;
    flex-direction:column !important;
    gap:0 !important;
    padding:8px !important;
    overflow:visible !important;
}

html body [data-module-workspace="search"] .module-rail nav a {
    display:flex !important;
    align-items:center !important;
    gap:12px !important;
    min-height:46px !important;
    padding:12px !important;
    color:#142641 !important;
    background:#fff !important;
    border:0 !important;
    border-bottom:1px solid #edf2f7 !important;
    border-radius:0 !important;
    font-size:13px !important;
    font-weight:600 !important;
    text-decoration:none !important;
}

[data-module-workspace="search"] .module-rail nav a i {
    color:#96702d !important;
}

html body [data-module-workspace="search"] .module-rail nav a.active {
    background:#142641 !important;
    color:#fff !important;
}

[data-module-workspace="search"] .module-rail nav a.active i {
    color:#d5b16b !important;
}

[data-module-workspace="search"] .module-rail > footer {
    padding:16px !important;
    background:#f5f7fa !important;
    color:#64748b !important;
}

/* OBSZAR ROBOCZY */

html body [data-module-workspace="search"] > .module-canvas {
    display:block !important;
    width:100% !important;
    min-width:0 !important;
    height:auto !important;
    max-height:none !important;
    padding:0 !important;
    background:transparent !important;
    border:0 !important;
    overflow:visible !important;
}

html body [data-module-workspace="search"] .module-canvas-scroll {
    width:100% !important;
    min-width:0 !important;
    height:auto !important;
    max-height:none !important;
    padding:0 !important;
    overflow:visible !important;
}

html body [data-module-workspace="search"] .module-workspace-bar {
    display:flex !important;
    align-items:center !important;
    justify-content:space-between !important;
    flex-wrap:wrap !important;
    gap:12px !important;
    padding:14px 18px !important;
    margin:0 0 14px !important;
    background:#fff !important;
    border:1px solid #d5dfeb !important;
}

[data-module-workspace="search"] .module-workspace-bar > div {
    display:flex !important;
    align-items:center !important;
    flex-wrap:wrap;
    gap:10px !important;
    color:#142641 !important;
}

[data-module-workspace="search"] .department-return-link {
    display:inline-flex !important;
    align-items:center;
    gap:8px;
    margin:0 0 14px !important;
    font-size:13px !important;
    color:#142641 !important;
}

/* PANEL FILTROW */

html body [data-module-workspace="search"] .portal-horizontal-drawer {
    display:block !important;
    width:100% !important;
    padding:0 !important;
    margin:0 0 20px !important;
    background:#fff !important;
    border:1px solid #d5dfeb !important;
    border-radius:0 !important;
    overflow:visible !important;
}

html body [data-module-workspace="search"] .portal-horizontal-drawer > summary {
    padding:16px 20px !important;
    background:#142641 !important;
    color:#fff !important;
    font-size:15px !important;
    font-weight:600 !important;
    cursor:pointer;
}

html body [data-module-workspace="search"] .portal-search-panel {
    width:100% !important;
    min-width:0 !important;
    padding:22px !important;
    margin:0 !important;
    background:#fff !important;
    border:0 !important;
    border-radius:0 !important;
    overflow:visible !important;
}

html body [data-module-workspace="search"] .portal-search-grid {
    display:flex !important;
    flex-wrap:wrap !important;
    align-items:flex-end !important;
    gap:16px !important;
    width:100% !important;
}

html body [data-module-workspace="search"] .portal-search-grid > label {
    display:flex !important;
    flex-direction:column !important;
    flex:1 1 160px !important;
    gap:8px !important;
    min-width:0 !important;
    margin:0 !important;
}

html body [data-module-workspace="search"] .portal-search-grid > .portal-search-query {
    flex:1 1 100% !important;
}

html body [data-module-workspace="search"] .portal-search-grid label > span:first-child {
    color:#142641 !important;
    font-size:12px !important;
    font-weight:700 !important;
}

/* POLA WYSZUKIWANIA */

html body [data-module-workspace="search"] .pp-input-shell {
    display:flex !important;
    align-items:center !important;
    gap:12px !important;
    width:100% !important;
    min-height:54px !important;
    padding:0 16px !important;
    background:#f8fafc !important;
    border:1px solid #cbd5e1 !important;
    border-radius:0 !important;
}

[data-module-workspace="search"] .pp-input-shell > svg {
    flex:0 0 22px;
    color:#96702d !important;
}

[data-module-workspace="search"] .field-suggest {
    position:relative !important;
    flex:1 !important;
    min-width:0 !important;
}

html body [data-module-workspace="search"] input[data-search-page] {
    width:100% !important;
    height:52px !important;
    padding:0 !important;
    background:transparent !important;
    border:0 !important;
    box-shadow:none !important;
    font-size:16px !important;
    color:#142641 !important;
}

html body [data-module-workspace="search"] input[data-search-year],
html body [data-module-workspace="search"] select,
html body [data-module-workspace="search"] .smart-select-trigger {
    width:100% !important;
    min-width:0 !important;
    min-height:46px !important;
    padding:10px 12px !important;
    background:#fff !important;
    color:#142641 !important;
    border:1px solid #cbd5e1 !important;
    border-radius:0 !important;
    font-size:13px !important;
}

[data-module-workspace="search"] .smart-select {
    display:block !important;
    position:relative !important;
    width:100% !important;
}

html body [data-module-workspace="search"] .smart-select-trigger {
    display:flex !important;
    justify-content:space-between !important;
    align-items:center !important;
    gap:8px !important;
}

[data-module-workspace="search"] .smart-select-trigger span {
    white-space:normal !important;
    overflow-wrap:anywhere;
    text-align:left;
}

/* NIE DUBLUJ NATYWNEGO SELECTA */

html body [data-module-workspace="search"]
.smart-select:has(> .smart-select-trigger)
> select[data-smart-select-ready="1"] {
    position:absolute !important;
    width:1px !important;
    height:1px !important;
    min-height:0 !important;
    padding:0 !important;
    margin:-1px !important;
    clip-path:inset(50%) !important;
    overflow:hidden !important;
    border:0 !important;
}

/* PODPOWIEDZI WYSZUKIWANIA */

html body [data-module-workspace="search"] .field-suggest-panel:not([hidden]) {
    position:absolute !important;
    top:100% !important;
    left:0 !important;
    right:0 !important;
    z-index:100 !important;
    background:#fff !important;
    border:1px solid #cbd5e1 !important;
    box-shadow:0 8px 20px #14264118 !important;
}

/* PRZYCISKI WYSZUKIWANIA */

html body [data-module-workspace="search"] .portal-search-actions {
    display:flex !important;
    align-items:center !important;
    flex-wrap:wrap !important;
    gap:12px !important;
    padding:18px 0 0 !important;
    margin:18px 0 0 !important;
    border-top:1px solid #d5dfeb !important;
}

html body [data-module-workspace="search"] [data-search-submit] {
    min-height:46px !important;
    min-width:140px !important;
    padding:12px 24px !important;
    background:#142641 !important;
    color:#fff !important;
    border:1px solid #142641 !important;
    border-radius:0 !important;
    font-weight:700 !important;
}

html body [data-module-workspace="search"] [data-search-clear] {
    min-height:46px !important;
    padding:12px 18px !important;
    background:#fff !important;
    color:#142641 !important;
    border:1px solid #cbd5e1 !important;
    border-radius:0 !important;
}

[data-module-workspace="search"] [data-search-scope] {
    margin-left:auto !important;
    padding:10px 14px !important;
    background:#edf2f7 !important;
    color:#142641 !important;
    font-size:12px !important;
}

/* UKLAD WYNIKOW */

html body [data-module-workspace="search"] .search-results-layout {
    display:grid !important;
    grid-template-columns:190px minmax(0,1fr) !important;
    align-items:start !important;
    gap:18px !important;
    width:100% !important;
    min-width:0 !important;
}

html body [data-module-workspace="search"] .search-results-layout > .card {
    width:100% !important;
    min-width:0 !important;
    height:auto !important;
    min-height:0 !important;
    padding:0 !important;
    margin:0 !important;
    background:#fff !important;
    border:1px solid #d5dfeb !important;
    border-radius:0 !important;
    overflow:visible !important;
}

/* KATEGORIE WYNIKOW */

html body [data-module-workspace="search"] .search-type-nav {
    position:static !important;
    max-height:none !important;
    overflow:visible !important;
}

[data-module-workspace="search"] .search-type-nav > header {
    padding:16px !important;
    border-bottom:1px solid #d5dfeb !important;
}

[data-module-workspace="search"] .search-type-nav h2 {
    color:#142641 !important;
    font-size:19px !important;
    margin:8px 0 !important;
}

[data-module-workspace="search"] .search-type-nav p {
    color:#64748b !important;
    font-size:12px !important;
    line-height:1.6 !important;
}

html body [data-module-workspace="search"] .search-type-list {
    display:flex !important;
    flex-direction:column !important;
    align-items:stretch !important;
    gap:5px !important;
    padding:10px !important;
    overflow:visible !important;
}

html body [data-module-workspace="search"] .search-type-list > button {
    display:flex !important;
    align-items:center !important;
    justify-content:space-between !important;
    width:100% !important;
    min-height:40px !important;
    padding:10px 12px !important;
    background:#f5f7fa !important;
    color:#142641 !important;
    border:1px solid transparent !important;
    border-radius:0 !important;
    font-size:12px !important;
    text-align:left !important;
}

html body [data-module-workspace="search"] .search-type-list > button.active {
    background:#142641 !important;
    color:#fff !important;
    border-left:3px solid #b58a43 !important;
}

[data-module-workspace="search"] [data-search-type-count] {
    min-width:24px;
    padding:3px 6px !important;
    background:#e2e8f0 !important;
    color:#142641 !important;
    font-size:11px !important;
    text-align:center;
}

[data-module-workspace="search"] .active [data-search-type-count] {
    background:#d5b16b !important;
}

/* NAGLOWEK WYNIKOW */

html body [data-module-workspace="search"] .search-results-layout .card-head {
    display:flex !important;
    align-items:center !important;
    justify-content:space-between !important;
    flex-wrap:wrap !important;
    gap:12px !important;
    padding:20px !important;
    margin:0 !important;
    border-bottom:1px solid #d5dfeb !important;
}

[data-module-workspace="search"] .card-head h2 {
    color:#142641 !important;
    font-size:21px !important;
    line-height:1.5 !important;
}

[data-module-workspace="search"] .card-head small {
    color:#96702d !important;
    font-size:11px !important;
    font-weight:700 !important;
    letter-spacing:1px;
}

[data-module-workspace="search"] [data-search-count] {
    padding:8px 12px !important;
    background:#edf2f7 !important;
    color:#142641 !important;
    border-radius:0 !important;
    font-size:11px !important;
}

/* WYNIKI — WIERSZE ZAMIAST KAFELKOW */

html body [data-module-workspace="search"] [data-search-results] {
    display:flex !important;
    flex-direction:column !important;
    gap:0 !important;
    width:100% !important;
    padding:0 !important;
    margin:0 !important;
}

html body [data-module-workspace="search"] [data-search-results] .list-row {
    display:flex !important;
    align-items:center !important;
    gap:16px !important;
    width:100% !important;
    min-width:0 !important;
    min-height:76px !important;
    height:auto !important;
    padding:18px 20px !important;
    margin:0 !important;
    background:#fff !important;
    border:0 !important;
    border-bottom:1px solid #d5dfeb !important;
    border-radius:0 !important;
    overflow:visible !important;
}

[data-module-workspace="search"] [data-search-results] .list-row:nth-child(even) {
    background:#f8fafc !important;
}

[data-module-workspace="search"] [data-search-results] .list-row:hover {
    background:#edf2f7 !important;
}

html body [data-module-workspace="search"] .list-icon {
    display:flex !important;
    align-items:center !important;
    justify-content:center !important;
    flex:0 0 44px !important;
    width:44px !important;
    height:44px !important;
    background:#142641 !important;
    color:#d5b16b !important;
    border-radius:0 !important;
}

[data-module-workspace="search"] .list-row > span:not(.list-icon) {
    flex:1 !important;
    min-width:0 !important;
    overflow-wrap:anywhere;
}

[data-module-workspace="search"] .list-row b {
    display:block !important;
    color:#142641 !important;
    font-size:15px !important;
    line-height:1.6 !important;
}

[data-module-workspace="search"] .list-row small {
    display:block !important;
    color:#64748b !important;
    font-size:12px !important;
    line-height:1.7 !important;
}

/* PUSTE WYNIKI */

html body [data-module-workspace="search"] .empty-state:not([hidden]) {
    padding:24px !important;
    margin:16px !important;
    background:#f5f7fa !important;
    border:1px solid #d5dfeb !important;
    border-left:3px solid #b58a43 !important;
    color:#142641 !important;
    border-radius:0 !important;
}

/* DOSTEPNOSC */

[data-module-workspace="search"]
:is(a,button,input,select,summary):focus-visible {
    outline:2px solid #b58a43 !important;
    outline-offset:3px;
}

/* TABLET */

@media(max-width:1200px) {

    html body [data-module-workspace="search"] {
        grid-template-columns:minmax(0,1fr) !important;
    }

    html body [data-module-workspace="search"] .module-rail nav {
        flex-direction:row !important;
        flex-wrap:wrap !important;
        gap:5px !important;
    }

    html body [data-module-workspace="search"] .module-rail nav a {
        flex:1 1 140px !important;
    }

}

/* TELEFON */

@media(max-width:700px) {

    html body [data-module-workspace="search"] .search-results-layout {
        grid-template-columns:minmax(0,1fr) !important;
    }

    html body [data-module-workspace="search"] .search-type-list {
        flex-direction:row !important;
        flex-wrap:wrap !important;
    }

    html body [data-module-workspace="search"] .search-type-list > button {
        flex:1 1 130px !important;
        width:auto !important;
    }

    html body [data-module-workspace="search"] .portal-search-panel {
        padding:14px !important;
    }

    html body [data-module-workspace="search"] .portal-search-grid > label {
        flex:1 1 100% !important;
    }

    [data-module-workspace="search"] [data-search-scope] {
        margin-left:0 !important;
    }

    html body [data-module-workspace="search"] [data-search-results] .list-row {
        padding:14px !important;
        gap:12px !important;
    }

}

