
/* PRAWNIKOM PRO - ARCHIWUM ZMIAN PRAWA */

.law-module-shell:has(.lh-workspace) {
    --lh-navy: #142641;
    --lh-gold: #c6a46a;
    --lh-border: #d7e0eb;
    --lh-muted: #526277;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    margin: 0 !important;
    padding: 20px !important;
    background: #f1f5f9;
    color: #142641;
    font: 15px/1.6 "Inter","Segoe UI",Arial,sans-serif;
}

.law-module-shell:has(.lh-workspace) * {
    box-sizing: border-box;
}

.law-module-shell:has(.lh-workspace) [hidden] {
    display: none !important;
}

/* UKLAD OBSZARU ROBOCZEGO */

.law-module-shell:has(.lh-workspace) > .module-workspace {
    display: grid !important;
    grid-template-columns: 230px minmax(0,1fr);
    align-items: start;
    gap: 20px;
    width: 100%;
    min-width: 0;
}

.law-module-shell:has(.lh-workspace) .module-canvas,
.law-module-shell:has(.lh-workspace) .module-canvas-scroll {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    height: auto !important;
    overflow: visible !important;
    padding: 0 !important;
}

/* MENU MODULU */

.law-module-shell:has(.lh-workspace) .law-module-navigation {
    position: sticky;
    top: calc(var(--pp-header-offset,120px) + 20px);
    width: 100% !important;
    min-width: 0;
    background: white;
    border: 1px solid #d7e0eb;
    border-top: 3px solid #c6a46a;
}

.law-module-shell:has(.lh-workspace) .law-module-navigation header {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 20px 16px;
    background: #142641;
    color: white;
}

.law-module-shell:has(.lh-workspace) .module-rail-mark {
    color: #c6a46a;
}

.law-module-shell:has(.lh-workspace) .law-module-navigation header b {
    display: block;
    font: 400 24px Georgia,serif;
}

.law-module-shell:has(.lh-workspace) .law-module-navigation header small {
    display: block;
    color: #cbd5e1;
    font-size: 11px;
}

.law-module-shell:has(.lh-workspace) .law-module-navigation nav {
    display: flex !important;
    flex-direction: column;
    padding: 8px;
    gap: 4px;
}

.law-module-shell:has(.lh-workspace) .law-module-navigation nav a {
    display: flex !important;
    align-items: center;
    gap: 12px;
    padding: 12px;
    min-height: 46px;
    color: #142641 !important;
    font-size: 13px;
    text-decoration: none !important;
    border-left: 3px solid transparent;
}

.law-module-shell:has(.lh-workspace) .law-module-navigation nav a i {
    display: flex;
    color: #96702d;
}

.law-module-shell:has(.lh-workspace) .law-module-navigation nav a.active,
.law-module-shell:has(.lh-workspace) .law-module-navigation nav a[aria-current="page"] {
    background: #142641 !important;
    color: white !important;
    border-left-color: #c6a46a;
}

.law-module-shell:has(.lh-workspace) .law-module-navigation nav a.active i {
    color: #e0bd7d;
}

.law-module-shell:has(.lh-workspace) .law-module-navigation nav a:hover:not(.active) {
    background: #f6f0e5;
}

.law-module-shell:has(.lh-workspace) .law-module-navigation footer {
    display: flex;
    flex-direction: column;
    padding: 16px;
    border-top: 1px solid #d7e0eb;
    color: #64748b;
    font-size: 12px;
}

/* USUNIECIE POWTORZONEJ NAWIGACJI */

.law-module-shell:has(.lh-workspace) .law-section-quick,
.law-module-shell:has(.lh-workspace) .module-workspace-bar {
    display: none !important;
}

.law-module-shell:has(.lh-workspace) .department-return-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 16px;
    color: #142641;
    font-size: 13px;
}

/* NAGLOWEK ARCHIWUM */

.law-module-shell:has(.lh-workspace) .law-module-hero {
    display: grid !important;
    grid-template-columns: minmax(0,1fr) 240px;
    align-items: center;
    gap: 28px;
    padding: 36px;
    margin-bottom: 20px;
    background: linear-gradient(120deg,#0d192c,#23415f);
    border-bottom: 3px solid #c6a46a;
    color: white;
}

.law-module-shell:has(.lh-workspace) .law-module-hero .eyebrow {
    color: #e0bd7d;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
}

.law-module-shell:has(.lh-workspace) .law-module-hero h1 {
    margin: 12px 0;
    color: white !important;
    font: 400 clamp(28px,3vw,42px)/1.2 Georgia,serif;
}

.law-module-shell:has(.lh-workspace) .law-module-hero p {
    margin: 0;
    color: #d7e0eb;
    font-size: 15px;
}

.law-module-shell:has(.lh-workspace) .law-module-hero aside {
    display: grid;
    gap: 12px;
}

.law-module-shell:has(.lh-workspace) .law-module-hero aside > span {
    display: grid;
    grid-template-columns: 30px minmax(0,1fr);
    gap: 5px 12px;
    padding: 16px;
    border: 1px solid #ffffff25;
    background: #ffffff08;
}

.law-module-shell:has(.lh-workspace) .law-module-hero aside svg {
    grid-row: span 2;
    color: #e0bd7d;
    width: 26px;
    height: 26px;
}

.law-module-shell:has(.lh-workspace) .law-module-hero aside small {
    grid-column: 2;
    color: #cbd5e1;
    font-size: 11px;
}

/* ZAKRES ARCHIWUM */

.lh-workspace {
    width: 100%;
    min-width: 0;
}

.lh-workspace .lh-scope-tabs {
    display: grid;
    grid-template-columns: repeat(2,minmax(0,1fr));
    gap: 0;
    margin-bottom: 16px;
    background: white;
    border: 1px solid #d7e0eb;
}

.lh-workspace .lh-scope-tabs button {
    min-height: 54px;
    padding: 14px;
    background: white !important;
    color: #142641 !important;
    border: 0 !important;
    border-radius: 0 !important;
}

.lh-workspace .lh-scope-tabs button[aria-pressed="true"] {
    background: #142641 !important;
    color: #e0bd7d !important;
    box-shadow: inset 0 -3px #c6a46a;
}

/* WYSZUKIWARKA I FILTRY */

.lh-workspace .lh-filters {
    display: grid !important;
    grid-template-columns: repeat(3,minmax(0,1fr));
    align-items: end;
    gap: 18px;
    padding: 24px;
    margin-bottom: 20px;
    background: white;
    border: 1px solid #d7e0eb;
    border-top: 3px solid #c6a46a;
}

.lh-workspace .lh-query {
    grid-column: 1 / -1;
}

.lh-workspace label {
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-width: 0;
    color: #142641;
    font-size: 13px;
    font-weight: 600;
}

.lh-workspace input:not([type="hidden"]),
.lh-workspace select {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    min-height: 46px;
    padding: 10px 14px;
    background: #f8fafc;
    color: #142641;
    border: 1px solid #cbd5e1;
    border-radius: 0 !important;
    font: 14px "Segoe UI",Arial,sans-serif;
}

.lh-workspace input[type="search"] {
    min-height: 52px;
    font-size: 15px;
}

.lh-workspace .lh-filter-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
}

.lh-workspace button {
    border-radius: 0 !important;
    white-space: normal;
}

.lh-workspace button[type="submit"] {
    background: #142641 !important;
    color: #e0bd7d !important;
    border: 1px solid #142641 !important;
    min-height: 46px;
    padding: 12px 24px;
}

.lh-workspace :is(button,input,select,a):focus-visible {
    outline: 2px solid #96702d;
    outline-offset: 3px;
}

/* ARCHIWUM ROCZNIKOW */

.lh-workspace .lh-overview {
    padding: 24px;
    margin-bottom: 20px;
    background: white;
    border: 1px solid #d7e0eb;
}

.lh-workspace .lh-overview > header,
.lh-workspace .lh-list-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
    margin-bottom: 20px;
}

.lh-workspace .lh-eyebrow {
    color: #82612b;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1px;
}

.lh-workspace h2 {
    margin: 6px 0;
    font: 400 28px/1.3 Georgia,serif;
    color: #142641;
}

.lh-workspace h3 {
    color: #142641;
    font: 400 21px/1.45 Georgia,serif;
}

.lh-workspace p {
    color: #526277;
    line-height: 1.65;
}

.lh-workspace .lh-era-nav {
    display: grid !important;
    grid-template-columns: repeat(5,minmax(0,1fr));
    gap: 6px;
    margin-bottom: 20px;
}

.lh-workspace .lh-era-nav button {
    min-height: 42px;
    padding: 8px;
    background: #f1f5f9 !important;
    color: #142641 !important;
    border: 1px solid #d7e0eb !important;
    font-size: 12px;
}

.lh-workspace .lh-era-nav button[aria-pressed="true"] {
    background: #142641 !important;
    color: #e0bd7d !important;
    border-color: #142641 !important;
}

.lh-workspace .lh-year-chart {
    display: grid !important;
    grid-template-columns: repeat(auto-fit,minmax(min(100%,75px),1fr));
    gap: 8px;
    align-items: end;
    padding: 16px;
    background: #f1f5f9;
    border: 1px solid #d7e0eb;
}

.lh-workspace .lh-archive-year {
    min-height: 64px;
    background: white !important;
    border: 1px solid #d7e0eb !important;
    color: #142641 !important;
    font: 600 18px Georgia,serif;
}

.lh-workspace .lh-archive-year[aria-pressed="true"] {
    background: #142641 !important;
    color: #e0bd7d !important;
    border-bottom: 3px solid #c6a46a !important;
}

/* HISTORIA ZMIAN AKTU */

.lh-workspace .lh-explorer {
    margin-bottom: 24px;
    background: white;
    border: 1px solid #d7e0eb;
}

.lh-workspace .lh-explorer > summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    padding: 20px 24px;
    background: #142641;
    color: white;
    border-left: 4px solid #c6a46a;
    cursor: pointer;
    list-style: none;
    font: 400 22px Georgia,serif;
}

.lh-workspace .lh-explorer > summary::-webkit-details-marker {
    display: none;
}

.lh-workspace .lh-explorer > summary::after {
    content: "+";
    color: #e0bd7d;
    font-size: 26px;
}

.lh-workspace .lh-explorer[open] > summary::after {
    content: "−";
}

.lh-workspace .lh-explorer > summary small {
    margin-left: auto;
    color: #e0bd7d;
    font: 13px "Segoe UI",sans-serif;
}

.lh-workspace [data-history-detail] {
    padding: 24px;
}

.lh-workspace .lh-act-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 20px;
    padding: 24px;
    background: #f1f5f9;
    border-left: 4px solid #c6a46a;
}

.lh-workspace .lh-act-head > div {
    flex: 1 1 300px;
    min-width: 0;
}

.lh-workspace .lh-act-head h2 {
    font-size: 25px;
    overflow-wrap: anywhere;
}

.lh-workspace .lh-text-link {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    padding: 12px 18px;
    background: #142641;
    color: #e0bd7d !important;
}

/* WYKRES NOWELIZACJI */

.lh-workspace .lh-time-heading {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 24px;
}

.lh-workspace .lh-time-heading span {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #526277;
    font-size: 12px;
}

.lh-workspace .lh-time-heading i {
    width: 10px;
    height: 10px;
    background: #142641;
    border-radius: 50%;
}

.lh-workspace .lh-time-heading i.relation {
    background: #c6a46a;
}

.lh-workspace .lh-amendments {
    padding: 20px;
    background: #f8fafc;
    border: 1px solid #d7e0eb;
}

.lh-workspace .lh-amendments > header {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 16px;
}

.lh-workspace .lh-amendments > header span {
    color: #64748b;
    font-size: 12px;
}

.lh-workspace .lh-amendment-chart button {
    display: flex !important;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 12px;
    background: white !important;
    color: #142641 !important;
    border: 1px solid #d7e0eb !important;
}

.lh-workspace .lh-bar-track {
    position: relative;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    width: 100%;
    max-width: 65px;
    height: 100px;
    background: #e8edf3;
}

.lh-workspace .lh-bar-track i {
    display: block;
    width: 100%;
    background: linear-gradient(0deg,#142641,#c6a46a);
}

/* PIONOWA OS CZASU */

.lh-workspace .lh-event-line {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin: 24px 0;
    padding: 10px 0 10px 30px;
    list-style: none;
    border-left: 2px solid #c6a46a;
}

.lh-workspace .lh-event-line li {
    position: relative;
    display: grid;
    grid-template-columns: 115px minmax(0,1fr);
    align-items: center;
    gap: 16px;
    padding: 14px 18px;
    background: #f8fafc;
    border: 1px solid #d7e0eb;
}

.lh-workspace .lh-event-line li::before {
    content: "";
    position: absolute;
    top: 50%;
    left: -38px;
    width: 12px;
    height: 12px;
    background: #142641;
    border: 3px solid white;
    outline: 1px solid #c6a46a;
    border-radius: 50%;
    transform: translateY(-50%);
}

.lh-workspace .lh-event-line li.is-relation::before {
    background: #c6a46a;
}

.lh-workspace .lh-event-line time {
    font-weight: 700;
    color: #142641;
    font-size: 13px;
}

.lh-workspace .lh-event-line button {
    justify-content: flex-start;
    text-align: left;
    background: white !important;
    color: #142641 !important;
}

/* MAPA POWIAZAN AKTOW */

.lh-workspace .lh-relations {
    margin-top: 28px;
    padding: 24px;
    background: #f1f5f9;
    border: 1px solid #d7e0eb;
}

.lh-workspace .lh-relations > header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 24px;
}

.lh-workspace .lh-network {
    display: grid;
    grid-template-columns: minmax(0,1fr);
    gap: 20px;
}

.lh-workspace .lh-network-origin {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 24px;
    background: #142641;
    color: white;
    border-bottom: 3px solid #c6a46a;
}

.lh-workspace .lh-network-origin span {
    color: #e0bd7d;
    font-size: 11px;
    letter-spacing: 2px;
}

.lh-workspace .lh-network-origin strong {
    color: white;
    font: 400 30px Georgia,serif;
}

.lh-workspace .lh-network-origin small {
    color: #cbd5e1;
}

.lh-workspace .lh-network-branches {
    display: grid;
    grid-template-columns: repeat(2,minmax(0,1fr));
    gap: 16px;
}

.lh-workspace .lh-network-branch {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.lh-workspace .lh-edge {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
    background: #e9dfcb;
    color: #715326;
    font-size: 12px;
    font-weight: 600;
}

.lh-workspace .lh-network-node {
    display: flex;
    flex-direction: column;
    flex: 1;
    gap: 16px;
    padding: 20px;
    background: white;
    border: 1px solid #d7e0eb;
    border-top: 0;
    overflow-wrap: anywhere;
}

.lh-workspace .lh-network-node strong {
    color: #142641;
    font-size: 16px;
}

.lh-workspace .lh-network-node p {
    font: 400 16px/1.6 Georgia,serif;
}

.lh-workspace .lh-network-node small {
    color: #64748b;
    font-size: 12px;
}

.lh-workspace .lh-node-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    margin-top: auto;
    padding-top: 14px;
    border-top: 1px solid #d7e0eb;
}

.lh-workspace .lh-node-actions a {
    color: #142641;
    font-weight: 600;
}

/* LISTA AKTOW PRAWNYCH */

.lh-workspace .lh-list-head {
    padding: 22px 24px;
    background: white;
    border: 1px solid #d7e0eb;
    border-left: 4px solid #c6a46a;
}

.lh-workspace .lh-list-head > div {
    flex: 1 1 280px;
}

.lh-workspace .lh-list-head strong {
    padding: 12px 18px;
    background: #142641;
    color: #e0bd7d;
    font-size: 15px;
}

.lh-workspace .lh-list {
    display: grid;
    gap: 12px;
}

.lh-workspace .lh-row {
    display: grid !important;
    grid-template-columns: minmax(0,1fr) 160px;
    align-items: center;
    gap: 20px;
    padding: 24px;
    background: white;
    border: 1px solid #d7e0eb;
}

.lh-workspace .lh-row:has(button[aria-pressed="true"]) {
    border-left: 4px solid #c6a46a;
    background: #fffefa;
}

.lh-workspace .lh-row > div {
    min-width: 0;
}

.lh-workspace .lh-row h3 {
    margin: 12px 0 8px;
    font-size: 21px;
}

.lh-workspace .lh-row h3 a {
    color: #142641 !important;
    text-decoration: none !important;
    overflow-wrap: anywhere;
}

.lh-workspace .lh-row p {
    margin: 0;
    font-size: 12px;
}

.lh-workspace .lh-row small {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    color: #64748b;
    font-size: 12px;
}

/* STATUSY PRAWNE */

.lh-workspace .lh-state {
    display: inline-flex;
    align-items: center;
    padding: 5px 10px;
    background: #e9eef4;
    color: #526277;
    font-size: 11px;
    font-weight: 700;
}

.lh-workspace .lh-state.active {
    background: #e6f4eb;
    color: #166534;
}

.lh-workspace .lh-state.changed {
    background: #fff3d8;
    color: #854d0e;
}

.lh-workspace .lh-state.repealed,
.lh-workspace .lh-state.invalid {
    background: #fbe9e9;
    color: #991b1b;
}

.lh-workspace .lh-state.expired {
    background: #e9eef4;
    color: #475569;
}

/* AKCJE */

.lh-workspace .lh-row-actions {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.lh-workspace .lh-row-actions button,
.lh-workspace .lh-row-actions a {
    display: flex !important;
    justify-content: center;
    align-items: center;
    min-height: 42px;
    padding: 10px;
    background: white !important;
    border: 1px solid #d7e0eb !important;
    color: #142641 !important;
    font-size: 13px;
    text-decoration: none !important;
}

.lh-workspace .lh-row-actions button[aria-pressed="true"],
.lh-workspace .lh-row-actions a:hover {
    background: #142641 !important;
    color: #e0bd7d !important;
    border-color: #142641 !important;
}

/* PAGINACJA */

.lh-workspace .lh-pages {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
    padding: 16px;
    margin: 16px 0;
    background: white;
    border: 1px solid #d7e0eb;
}

.lh-workspace .lh-pages button {
    min-height: 40px;
    background: #142641 !important;
    color: white !important;
    border: 0 !important;
}

.lh-workspace .lh-pages button:disabled {
    opacity: .4;
    cursor: not-allowed;
}

.lh-workspace .lh-pages span {
    color: #526277;
    font-size: 13px;
}

/* ZRODLA I INFORMACJE */

.lh-workspace .lh-source-note {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 20px;
    margin-top: 20px;
    background: #fffaf0;
    border-left: 3px solid #c6a46a;
    color: #715326;
    font-size: 12px;
}

.lh-workspace .lh-source-note a {
    color: #142641;
    font-weight: 700;
}

.law-module-shell:has(.lh-workspace) .law-module-note {
    padding: 20px;
    background: #142641;
    color: #cbd5e1;
    font-size: 12px;
}

/* RESPONSYWNOSC */

@media(max-width:1250px) {

    .law-module-shell:has(.lh-workspace) > .module-workspace {
        grid-template-columns: 200px minmax(0,1fr);
    }

    .law-module-shell:has(.lh-workspace) .law-module-hero {
        grid-template-columns: minmax(0,1fr);
    }

    .law-module-shell:has(.lh-workspace) .law-module-hero aside {
        grid-template-columns: repeat(2,minmax(0,1fr));
    }

    .lh-workspace .lh-filters {
        grid-template-columns: repeat(2,minmax(0,1fr));
    }

    .lh-workspace .lh-network-branches {
        grid-template-columns: minmax(0,1fr);
    }
}

@media(max-width:1024px) {

    .law-module-shell:has(.lh-workspace) > .module-workspace {
        grid-template-columns: minmax(0,1fr);
    }

    .law-module-shell:has(.lh-workspace) .law-module-navigation {
        position: static;
    }

    .law-module-shell:has(.lh-workspace) .law-module-navigation nav {
        display: grid !important;
        grid-template-columns: repeat(3,minmax(0,1fr));
    }
}

@media(max-width:650px) {

    .law-module-shell:has(.lh-workspace) {
        padding: 12px !important;
    }

    .law-module-shell:has(.lh-workspace) .law-module-navigation nav {
        grid-template-columns: repeat(2,minmax(0,1fr));
    }

    .law-module-shell:has(.lh-workspace) .law-module-hero {
        padding: 22px;
    }

    .law-module-shell:has(.lh-workspace) .law-module-hero aside,
    .lh-workspace .lh-filters,
    .lh-workspace .lh-row,
    .lh-workspace .lh-event-line li {
        grid-template-columns: minmax(0,1fr);
    }

    .lh-workspace .lh-era-nav {
        grid-template-columns: repeat(3,minmax(0,1fr));
    }

    .lh-workspace .lh-row-actions {
        display: grid;
        grid-template-columns: repeat(2,minmax(0,1fr));
    }

    .lh-workspace .lh-overview,
    .lh-workspace .lh-filters,
    .lh-workspace .lh-row,
    .lh-workspace .lh-relations,
    .lh-workspace [data-history-detail] {
        padding: 16px;
    }

    .lh-workspace .lh-row h3 {
        font-size: 19px;
    }

    .lh-workspace .lh-event-line {
        padding-left: 20px;
    }

    .lh-workspace .lh-event-line li::before {
        left: -28px;
    }
}


/* POPRAWKA KONTRASTU I SZEROKOSCI */

.law-module-shell:has(.lh-workspace) {
    box-sizing: border-box !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
}

.law-module-shell:has(.lh-workspace) > .module-workspace {
    grid-template-columns: 240px minmax(0,1fr) !important;
    width: 100% !important;
    min-width: 0 !important;
    gap: 20px !important;
}

/* BIALE MENU BOCZNE */

.law-module-shell:has(.lh-workspace) aside.law-module-navigation {
    background: #ffffff !important;
    color: #142641 !important;
    padding: 0 !important;
    margin: 0 !important;
    border: 1px solid #d7e0eb !important;
    border-top: 3px solid #c6a46a !important;
    box-shadow: none !important;
    align-self: start;
    max-height: calc(100dvh - var(--pp-header-offset,120px) - 40px);
    overflow-y: auto;
    scrollbar-width: thin;
}

.law-module-shell:has(.lh-workspace) .law-module-navigation nav {
    background: #ffffff !important;
    padding: 8px !important;
}

.law-module-shell:has(.lh-workspace) .law-module-navigation nav a,
.law-module-shell:has(.lh-workspace) .law-module-navigation nav a span {
    background: transparent !important;
    color: #142641 !important;
    opacity: 1 !important;
    font-size: 14px !important;
    font-weight: 500 !important;
}

.law-module-shell:has(.lh-workspace) .law-module-navigation nav a {
    min-height: 48px !important;
    padding: 12px !important;
    border-radius: 0 !important;
}

.law-module-shell:has(.lh-workspace) .law-module-navigation nav a svg {
    color: #96702d !important;
    width: 22px;
    height: 22px;
    flex-shrink: 0;
}

.law-module-shell:has(.lh-workspace) .law-module-navigation nav a:hover {
    background: #f3eee4 !important;
}

.law-module-shell:has(.lh-workspace) .law-module-navigation nav a.active,
.law-module-shell:has(.lh-workspace) .law-module-navigation nav a[aria-current="page"] {
    background: #142641 !important;
    border-left: 3px solid #c6a46a !important;
}

.law-module-shell:has(.lh-workspace) .law-module-navigation nav a.active span,
.law-module-shell:has(.lh-workspace) .law-module-navigation nav a[aria-current="page"] span {
    color: #ffffff !important;
}

.law-module-shell:has(.lh-workspace) .law-module-navigation nav a.active svg {
    color: #e0bd7d !important;
}

/* NAPRAWA SZEROKOSCI PANELI */

.law-module-shell:has(.lh-workspace) :is(
    .module-canvas,
    .module-canvas-scroll,
    .lh-workspace,
    .lh-explorer,
    .lh-relations,
    .lh-network,
    .lh-network-branches,
    .lh-network-branch,
    .lh-network-node,
    .lh-event-line,
    .lh-list,
    .lh-row,
    [data-history-detail]
) {
    box-sizing: border-box !important;
    min-width: 0 !important;
    max-width: 100% !important;
    overflow-wrap: anywhere;
}

.lh-workspace .lh-network-origin {
    padding: 20px !important;
    min-height: 0 !important;
}

.lh-workspace .lh-event-line button {
    max-width: 100% !important;
    white-space: normal !important;
}

/* RESPONSYWNOSC */

@media(max-width:1024px) {
    .law-module-shell:has(.lh-workspace) > .module-workspace {
        grid-template-columns: minmax(0,1fr) !important;
    }

    .law-module-shell:has(.lh-workspace) aside.law-module-navigation {
        position: static !important;
        max-height: none !important;
    }
}


/* MENU PRAWA BEZ WEWNETRZNEGO SCROLLA */

html body .law-module-navigation,
html body aside.law-module-navigation,
html body .law-module-navigation nav {
    height: auto !important;
    max-height: none !important;
    min-height: 0 !important;
    overflow: visible !important;
    scrollbar-width: none !important;
}

.law-module-navigation::-webkit-scrollbar,
.law-module-navigation nav::-webkit-scrollbar {
    display: none !important;
}

/* Menu przewijane razem ze strona */

html body aside.law-module-navigation {
    position: static !important;
    align-self: start !important;
}

/* Kompaktowy naglowek */

.law-module-navigation header {
    padding: 18px !important;
    min-height: 0 !important;
}

/* Mniejsze odstepy pomiedzy pozycjami */

.law-module-navigation nav {
    gap: 3px !important;
    padding: 8px !important;
}

.law-module-navigation nav a {
    min-height: 42px !important;
    padding: 10px 12px !important;
    margin: 0 !important;
}

