
/* PRAWNIKOM PRO - MAIN DEPARTMENTS */

html body nav.portal-function-bar[data-pp-main-departments] {
    display: grid;
    grid-template-columns: minmax(0,1fr);
    gap: 18px;
    padding: 22px;
    margin: 18px 0;
    background:
        radial-gradient(
            ellipse at top right,
            #294664,
            transparent 65%
        ),
        linear-gradient(110deg,#0b1628,#142641);
    border: 0;
    border-top: 2px solid #c6a46a;
    border-radius: 0 !important;
    box-shadow: none !important;
}

nav[data-pp-main-departments] * {
    border-radius: 0 !important;
}

nav[data-pp-main-departments] .pw-context {
    color: #fff;
    font-family: Georgia,serif;
    font-size: clamp(24px,2.4vw,36px);
    font-weight: 700;
    line-height: 1.25;
}

nav[data-pp-main-departments] .pw-context::before {
    content: "PRAWNIKOM PRO / LEGAL INTELLIGENCE";
    font-family: system-ui,sans-serif;
    color: #d6b77c;
    font-size: 10px;
    letter-spacing: .16em;
}

nav[data-pp-main-departments] .pw-context::after {
    color: #b9c6d9;
    font-size: 13px;
    margin-top: 6px;
}

/* SIATKA GLOWNYCH DZIALOW */

html body nav[data-pp-main-departments] .pw-shortcuts {
    display: grid !important;
    grid-template-columns:
        repeat(auto-fit,minmax(170px,1fr));
    grid-column: 1 / -1;
    gap: 1px;
    padding: 1px;
    background: #40536e;
    border-radius: 0 !important;
}

html body nav[data-pp-main-departments] a.pw-shortcut {
    display: flex !important;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-width: 0;
    min-height: 116px;
    padding: 15px 10px;
    background: #203550;
    color: #fff;
    border: 0 !important;
    border-radius: 0 !important;
    text-align: center;
    text-decoration: none !important;
    box-shadow: none !important;
    transition: background .2s;
}

html body nav[data-pp-main-departments] a.pw-shortcut:hover {
    background: #304966;
    transform: none;
}

nav[data-pp-main-departments] .pp-function-icon {
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    background: transparent;
    border: 0;
    color: #d6b77c;
}

nav[data-pp-main-departments] .pp-function-icon svg {
    width: 32px;
    height: 32px;
    stroke-width: 1.4;
}

nav[data-pp-main-departments] .pp-function-title {
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.35;
}

nav[data-pp-main-departments] .pp-function-description {
    display: block;
    color: #b9c6d9;
    font-size: 11px;
    line-height: 1.4;
}

nav[data-pp-main-departments] .pw-shortcut::after {
    display: none;
}

/* AKTYWNY DZIAL */

html body nav[data-pp-main-departments]
a.pw-shortcut[aria-current="page"] {
    background: #d6b77c;
}

nav[data-pp-main-departments]
.pw-shortcut[aria-current="page"] .pp-function-title {
    color: #142641;
}

nav[data-pp-main-departments]
.pw-shortcut[aria-current="page"] .pp-function-description {
    color: #39485c;
}

nav[data-pp-main-departments]
.pw-shortcut[aria-current="page"] .pp-function-icon {
    color: #142641;
    background: transparent;
}

/* UKRYCIE STAREJ NAWIGACJI */

nav[data-pp-main-departments] .pw-more,
nav[data-pp-main-departments] .pp-function-tools,
nav[data-pp-main-departments] .pp-function-list {
    display: none !important;
}

nav[data-pp-main-departments] a,
nav[data-pp-main-departments] a * {
    text-decoration: none !important;
}

@media (min-width: 1600px) {
    html body nav[data-pp-main-departments] .pw-shortcuts {
        grid-template-columns: repeat(7,minmax(0,1fr));
    }
}

@media (max-width: 1000px) {
    html body nav[data-pp-main-departments] .pw-shortcuts {
        grid-template-columns: repeat(4,minmax(0,1fr));
    }
}

@media (max-width: 600px) {
    html body nav.portal-function-bar[data-pp-main-departments] {
        padding: 12px;
        gap: 12px;
    }

    html body nav[data-pp-main-departments] .pw-shortcuts {
        grid-template-columns: repeat(2,minmax(0,1fr));
    }

    html body nav[data-pp-main-departments] a.pw-shortcut {
        min-height: 100px;
        padding: 12px 8px;
    }

    nav[data-pp-main-departments] .pp-function-title {
        font-size: 12px;
    }

    nav[data-pp-main-departments] .pp-function-description {
        font-size: 10px;
    }
}

@media print {
    nav[data-pp-main-departments] {
        display: none !important;
    }
}


/* BEGIN PP GRID 7X2 */

html body nav.portal-function-bar[data-pp-main-departments] {
    width: 100% !important;
    max-width: none !important;
    box-sizing: border-box;
    padding: 20px 24px;
    border-radius: 0 !important;
}

html body nav.portal-function-bar[data-pp-main-departments] .pw-shortcuts {
    display: grid !important;
    grid-template-columns: repeat(7,minmax(0,1fr)) !important;
    grid-auto-rows: 1fr;
    width: 100% !important;
    max-width: none !important;
    box-sizing: border-box;
    gap: 1px;
    padding: 1px;
    background: #40536e;
}

html body nav.portal-function-bar[data-pp-main-departments] a.pw-shortcut {
    width: 100% !important;
    min-width: 0 !important;
    max-width: none !important;
    min-height: 120px !important;
    height: auto !important;
    margin: 0 !important;
    padding: 16px 8px !important;
    box-sizing: border-box;
    border-radius: 0 !important;
}

nav[data-pp-main-departments] .pp-function-icon svg {
    width: 34px !important;
    height: 34px !important;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.5;
    stroke-linecap: round;
    stroke-linejoin: round;
}

nav[data-pp-main-departments] .pp-function-title {
    font-size: 14px;
    line-height: 1.4;
}

nav[data-pp-main-departments] .pp-function-description {
    font-size: 11px;
    line-height: 1.4;
}

/* Tablet */

@media (max-width: 1100px) {
    html body nav.portal-function-bar[data-pp-main-departments] .pw-shortcuts {
        grid-template-columns: repeat(4,minmax(0,1fr)) !important;
    }
}

/* Telefon */

@media (max-width: 600px) {
    html body nav.portal-function-bar[data-pp-main-departments] .pw-shortcuts {
        grid-template-columns: repeat(2,minmax(0,1fr)) !important;
    }

    html body nav.portal-function-bar[data-pp-main-departments] {
        padding: 12px;
    }

    nav[data-pp-main-departments] .pp-function-title {
        font-size: 12px;
    }
}

/* END PP GRID 7X2 */

