
/* PRAWNIKOM PRO SIDEBAR */

.pp-global-sidebar {
    position: fixed !important;
    top: var(--pp-header-offset,120px);
    bottom: 0;
    left: 0;
    width: 310px;
    max-width: 90vw;
    max-height: calc(100dvh - var(--pp-header-offset,120px));
    box-sizing: border-box;
    overflow-y: auto;
    overflow-x: hidden;
    background: #0e1b30 !important;
    color: #e2e8f0 !important;
    border-right: 1px solid #40536e;
    z-index: 9990;
    padding: 18px 14px;
    scrollbar-width: thin;
    scrollbar-color: #40536e #0e1b30;
    font-family: "Inter","Segoe UI",Arial,sans-serif;
}

.pp-global-sidebar,
.pp-global-sidebar *,
.pp-global-sidebar *::before,
.pp-global-sidebar *::after {
    box-sizing: border-box;
    border-radius: 0 !important;
    text-decoration: none !important;
}

/* GORA MENU */

.pp-global-sidebar .pp-sidebar-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 4px 20px;
    border-bottom: 1px solid #40536e;
}

.pp-sidebar-top strong,
.pp-sidebar-top b {
    color: #fff;
    font-family: Georgia,serif;
    font-size: 23px;
}

.pp-sidebar-top button {
    display: grid !important;
    place-items: center;
    width: 34px !important;
    height: 34px !important;
    min-height: 34px !important;
    padding: 0 !important;
    background: #203550;
    color: #d6b77c;
    border: 1px solid #40536e !important;
    box-shadow: none !important;
}

/* WYSZUKIWARKA */

.pp-global-sidebar .pp-sidebar-search {
    display: block;
    padding: 16px 0;
    color: #d6b77c;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: .04em;
}

.pp-global-sidebar input[type="search"],
.pp-global-sidebar input[type="text"] {
    display: block;
    width: 100% !important;
    min-width: 0;
    height: 42px;
    padding: 10px 12px;
    margin-top: 8px;
    background: #203550 !important;
    color: #fff !important;
    border: 1px solid #40536e !important;
    font-size: 13px;
    box-shadow: none !important;
}

.pp-global-sidebar input::placeholder {
    color: #9bacc3;
}

.pp-global-sidebar input:focus {
    border-color: #c6a46a !important;
    outline: none;
}

/* GRUPY MENU */

.pp-global-sidebar nav {
    display: block;
    width: 100%;
    margin: 0;
    padding: 0;
}

.pp-global-sidebar details {
    display: block;
    margin: 3px 0;
    padding: 0;
    border: 0;
    background: transparent;
}

.pp-global-sidebar summary {
    display: flex !important;
    align-items: center;
    gap: 11px;
    position: relative;
    min-height: 46px;
    padding: 12px 30px 12px 12px;
    list-style: none !important;
    cursor: pointer;
    background: transparent;
    color: #e2e8f0;
    font-size: 14px;
    font-weight: 500;
    border-left: 2px solid transparent;
}

.pp-global-sidebar summary::-webkit-details-marker {
    display: none;
}

.pp-global-sidebar summary::marker {
    content: "";
}

.pp-global-sidebar summary::after {
    content: "";
    position: absolute;
    right: 15px;
    top: 50%;
    width: 7px;
    height: 7px;
    border-right: 1px solid #9bacc3;
    border-bottom: 1px solid #9bacc3;
    transform: translateY(-50%) rotate(-45deg);
}

.pp-global-sidebar details[open] > summary::after {
    transform: translateY(-70%) rotate(45deg);
}

.pp-global-sidebar summary:hover,
.pp-global-sidebar details[open] > summary {
    background: #203957;
    border-left-color: #c6a46a;
    color: #fff;
}

/* IKONY */

.pp-global-sidebar summary svg,
.pp-global-sidebar a svg {
    width: 21px !important;
    height: 21px !important;
    flex-shrink: 0;
    color: #d6b77c;
    stroke: currentColor;
}

/* PODMENU */

.pp-global-sidebar ul,
.pp-global-sidebar ol {
    list-style: none !important;
    margin: 4px 0 8px;
    padding: 0;
}

.pp-global-sidebar li {
    list-style: none !important;
    margin: 0;
    padding: 0;
}

.pp-global-sidebar li::marker {
    content: "";
}

.pp-global-sidebar nav a,
.pp-global-sidebar details a {
    display: flex;
    align-items: center;
    gap: 9px;
    min-height: 38px;
    padding: 9px 12px 9px 44px;
    margin: 2px 0;
    background: transparent;
    color: #b9c6d9 !important;
    border-left: 2px solid transparent;
    font-size: 13px;
    font-weight: 400;
    line-height: 1.5;
    text-decoration: none !important;
    box-shadow: none !important;
}

.pp-global-sidebar nav a:hover,
.pp-global-sidebar details a:hover {
    background: #203550;
    color: #d6b77c !important;
}

.pp-global-sidebar a[aria-current="page"],
.pp-global-sidebar a.active {
    background: #29415e !important;
    color: #e4cb98 !important;
    border-left: 2px solid #c6a46a !important;
    font-weight: 600;
}

/* DOL MENU */

.pp-global-sidebar .pp-sidebar-bottom {
    margin-top: 20px;
    padding-top: 16px;
    border-top: 1px solid #40536e;
    color: #9bacc3;
    font-size: 12px;
}

/* FOCUS KLAWIATURY */

.pp-global-sidebar :focus:not(:focus-visible) {
    outline: none !important;
    box-shadow: none !important;
}

.pp-global-sidebar :focus-visible {
    outline: 1px solid #d6b77c;
    outline-offset: -2px;
}

/* TLO MENU MOBILNEGO */

.pp-sidebar-backdrop {
    position: fixed;
    inset: var(--pp-header-offset,120px) 0 0;
    background: rgba(5,12,24,.65);
    z-index: 9989;
}

.pp-global-sidebar[hidden],
.pp-sidebar-backdrop[hidden] {
    display: none !important;
}

/* TELEFON */

@media (max-width: 600px) {
    .pp-global-sidebar {
        width: 320px;
        max-width: 92vw;
        padding: 12px;
    }

    .pp-global-sidebar summary {
        min-height: 48px;
    }

    .pp-global-sidebar nav a {
        min-height: 44px;
    }
}

@media print {
    .pp-global-sidebar,
    .pp-sidebar-backdrop {
        display: none !important;
    }
}






/* BEGIN PP SIDEBAR FINAL */

:root {
    --pp-sidebar-width: 280px;
}

html body #pp-global-sidebar {
    position: fixed !important;
    top: var(--pp-header-offset,120px) !important;
    bottom: 0 !important;
    left: 0 !important;
    width: var(--pp-sidebar-width) !important;
    margin: 0 !important;
    border-radius: 0 !important;
    box-sizing: border-box !important;
    transition: transform .22s ease,
                visibility .22s ease;
}

/* KOMPUTER */

@media (min-width: 1025px) {

    html body {
        padding-left: var(--pp-sidebar-width) !important;
        box-sizing: border-box !important;
        transition: padding-left .22s ease;
    }

    html body:not(.pp-sidebar-collapsed) #pp-global-sidebar {
        transform: translateX(0) !important;
        visibility: visible !important;
        pointer-events: auto !important;
    }

    html body.pp-sidebar-collapsed {
        padding-left: 0 !important;
    }

    html body.pp-sidebar-collapsed #pp-global-sidebar {
        transform: translateX(-105%) !important;
        visibility: hidden !important;
        pointer-events: none !important;
    }

    html body .pp-sidebar-backdrop {
        display: none !important;
    }
}

/* TELEFON I TABLET */

@media (max-width: 1024px) {

    html body {
        padding-left: 0 !important;
    }

    html body #pp-global-sidebar {
        width: 300px !important;
        max-width: 88vw !important;
        transform: translateX(-105%) !important;
        visibility: hidden !important;
        pointer-events: none !important;
    }

    html body.pp-sidebar-open #pp-global-sidebar {
        transform: translateX(0) !important;
        visibility: visible !important;
        pointer-events: auto !important;
    }

    html body.pp-sidebar-open
    .pp-sidebar-backdrop:not([hidden]) {
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
    }

    html body:not(.pp-sidebar-open) .pp-sidebar-backdrop {
        display: none !important;
    }
}

/* PELNA SZEROKOSC TRESCI */

html body nav.portal-function-bar[data-pp-main-departments] {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
}

[data-sidebar-toggle],
[data-sidebar-close] {
    cursor: pointer !important;
}

@media (prefers-reduced-motion: reduce) {
    html body,
    html body #pp-global-sidebar {
        transition: none !important;
    }
}

@media print {
    html body {
        padding-left: 0 !important;
    }

    #pp-global-sidebar,
    .pp-sidebar-backdrop {
        display: none !important;
    }
}

/* END PP SIDEBAR FINAL */

