
/* PRAWNIKOM PRO - JUDGE INTELLIGENCE */

.law-module-shell {
    --lj-navy: #142641;
    --lj-dark: #0e1b30;
    --lj-gold: #c6a46a;
    --lj-border: #dce4ee;
    --lj-bg: #f1f5f9;
    --lj-muted: #64748b;

    width: 100%;
    max-width: none;
    min-width: 0;
    background: var(--lj-bg);
    color: #253449;
}

.law-module-shell *,
.law-module-shell *::before,
.law-module-shell *::after {
    box-sizing: border-box;
    border-radius: 0 !important;
}

.law-module-shell a {
    text-decoration: none !important;
}

/* GLOWNY UKLAD MODULU PRAWO */

html body .law-module-shell .module-workspace {
    display: grid !important;
    grid-template-columns: 220px minmax(0,1fr);
    gap: 18px;
    width: 100%;
    align-items: start;
}

.law-module-shell .module-canvas {
    min-width: 0;
    width: 100%;
    max-width: none;
}

.law-module-shell .module-canvas-scroll {
    height: auto !important;
    max-height: none !important;
    overflow: visible !important;
    padding: 18px;
}

/* MENU DZIALU PRAWO */

html body .law-module-navigation {
    position: sticky;
    top: calc(var(--pp-header-offset,120px) + 12px);
    background: #0e1b30 !important;
    color: #ffffff !important;
    border-top: 3px solid #c6a46a;
    padding: 12px;
}

.law-module-navigation > header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 8px 20px;
    border-bottom: 1px solid #40536e;
}

.module-rail-mark {
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    background: #203957;
    color: #c6a46a;
}

.law-module-navigation header b {
    display: block;
    font-family: Georgia,serif;
    font-size: 23px;
    color: #ffffff;
}

.law-module-navigation header small {
    display: block;
    color: #aab9ce;
    font-size: 11px;
}

.law-module-navigation nav {
    display: grid;
    gap: 2px;
    margin-top: 12px;
}

html body .law-module-navigation nav a {
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 43px;
    padding: 10px 12px;
    color: #dbe5f1 !important;
    border-left: 3px solid transparent;
    font-size: 13px;
}

.law-module-navigation nav a i {
    display: flex;
    color: #c6a46a;
}

html body .law-module-navigation nav a:hover,
html body .law-module-navigation nav a.active,
html body .law-module-navigation nav a[aria-current] {
    background: #29415e !important;
    color: #ffffff !important;
    border-left-color: #c6a46a;
}

.law-module-navigation > footer {
    display: none !important;
}

/* GORNY PASEK MODULU */

.law-module-shell .module-workspace-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    padding: 14px 20px;
    background: #ffffff;
    border-bottom: 1px solid #dce4ee;
}

.law-module-shell .module-workspace-bar > div {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
}

.law-module-shell .module-workspace-bar b {
    font-family: Georgia,serif;
    font-size: 21px;
    color: #142641;
}

.law-module-shell .module-workspace-bar small {
    color: #64748b;
    font-size: 12px;
}

.law-module-shell .module-workspace-bar svg {
    color: #96702d;
}

/* SKROTY DZIALU */

html body .law-section-quick {
    display: flex;
    flex-wrap: wrap;
    gap: 1px;
    padding: 1px;
    background: #40536e;
}

html body .law-section-quick a {
    flex: 1 1 100px;
    padding: 12px;
    text-align: center;
    background: #142641;
    color: #ffffff !important;
    font-size: 13px;
    font-weight: 600;
}

html body .law-section-quick a:hover,
html body .law-section-quick a[aria-current] {
    background: #c6a46a !important;
    color: #142641 !important;
}

.department-return-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    color: #64748b;
    margin-bottom: 16px;
}

/* HERO PROFILU */

html body .law-module-shell .law-module-hero {
    display: grid !important;
    grid-template-columns: minmax(0,1.5fr) minmax(0,1fr);
    align-items: center;
    gap: 28px;
    padding: 32px !important;
    margin-bottom: 24px;
    background: linear-gradient(
        115deg,#0e1b30,#142641,#203957
    ) !important;
    color: #ffffff !important;
    border: 0 !important;
    border-bottom: 3px solid #c6a46a !important;
}

.law-module-hero .eyebrow {
    color: #c6a46a !important;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: .12em;
    text-transform: uppercase;
}

html body .law-module-hero h1 {
    font-family: Georgia,serif;
    font-size: clamp(30px,3vw,46px) !important;
    font-weight: 500;
    color: #ffffff !important;
    line-height: 1.2;
    margin: 12px 0;
}

html body .law-module-hero p {
    color: #cbd5e1 !important;
    font-size: 14px;
    line-height: 1.7;
}

.law-module-hero > aside {
    display: grid;
    gap: 10px;
}

.law-module-hero > aside > span {
    display: grid;
    grid-template-columns: 32px minmax(0,1fr);
    align-items: center;
    gap: 4px 12px;
    padding: 14px;
    background: #203957;
    border: 1px solid #40536e;
}

.law-module-hero aside svg {
    grid-row: span 2;
    width: 28px;
    height: 28px;
    color: #c6a46a;
}

.law-module-hero aside b {
    color: #ffffff;
    font-size: 13px;
}

.law-module-hero aside small {
    color: #aab9ce;
    font-size: 11px;
}

/* PROFIL - UKLAD */

html body .lj-layout {
    display: grid !important;
    grid-template-columns: 245px minmax(0,1fr);
    align-items: start;
    gap: 20px;
}

.lj-layout > .lc-content {
    width: 100%;
    min-width: 0;
}

.lj-layout > .lj-sidebar {
    background: #ffffff;
    border: 1px solid #dce4ee;
    padding: 16px;
    min-width: 0;
}

/* MONOGRAM I TOZSAMOSC */

.lj-identity {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    padding-bottom: 20px;
    border-bottom: 2px solid #c6a46a;
}

.lj-monogram {
    display: grid;
    place-items: center;
    width: 62px;
    height: 62px;
    background: #142641;
    border: 1px solid #c6a46a;
    color: #c6a46a;
    font-family: Georgia,serif;
    font-size: 26px;
}

.lj-identity > div {
    flex: 1 1 100px;
    min-width: 0;
}

.lj-identity small,
.lj-identity strong,
.lj-identity div > span {
    display: block;
}

.lj-identity small {
    color: #96702d;
    font-size: 9px;
    letter-spacing: .08em;
}

.lj-identity strong {
    color: #142641;
    font-family: Georgia,serif;
    font-size: 19px;
    line-height: 1.3;
    margin: 6px 0;
}

.lj-identity div > span {
    color: #64748b;
    font-size: 11px;
}

/* NAWIGACJA PROFILU */

.lj-sidebar .lc-nav {
    display: grid;
    margin: 16px 0 24px;
    gap: 2px;
}

html body .lj-sidebar .lc-nav a {
    padding: 12px;
    background: #f1f5f9;
    border-left: 3px solid #c6a46a;
    color: #142641 !important;
    font-size: 12px;
}

html body .lj-sidebar .lc-nav a:hover {
    background: #142641;
    color: #ffffff !important;
}

/* FILTROWANIE */

.lj-sidebar h2 {
    font-family: Georgia,serif;
    font-size: 21px;
    color: #142641;
    font-weight: 500;
    margin: 20px 0 14px;
}

.lj-sidebar form {
    display: grid;
    gap: 14px;
}

.lj-sidebar form label {
    display: grid;
    gap: 6px;
    color: #475569;
    font-size: 12px;
    font-weight: 600;
}

html body .lj-sidebar input:not([type="hidden"]),
html body .lj-sidebar select {
    width: 100% !important;
    min-width: 0;
    min-height: 42px;
    padding: 10px;
    background: #f8fafc;
    border: 1px solid #cbd5e1;
    color: #142641;
    font-size: 13px;
}

html body .lj-sidebar form button {
    width: 100%;
    min-height: 44px;
    background: #142641 !important;
    color: #ffffff !important;
    border: 1px solid #142641 !important;
}

html body .lj-layout .lp-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    padding: 10px 14px;
    background: #ffffff;
    color: #142641 !important;
    border: 1px solid #cbd5e1;
    font-size: 12px;
    font-weight: 600;
}

html body .lj-layout .lp-btn:hover {
    background: #f1f5f9;
    border-color: #c6a46a;
}

.lj-sidebar > .lp-btn {
    width: 100%;
    margin-top: 12px;
}

/* STATYSTYKI */

html body .lj-layout .lc-stats {
    display: grid !important;
    grid-template-columns: repeat(3,minmax(0,1fr));
    gap: 12px;
    margin-bottom: 20px;
}

html body .lj-layout .lc-stats > a {
    display: block;
    padding: 24px 18px;
    background: #142641;
    border-top: 3px solid #c6a46a;
    color: #ffffff !important;
}

.lj-layout .lc-stats b {
    display: block;
    font-family: Georgia,serif;
    font-size: 38px;
    font-weight: 500;
    color: #e0c58f;
    line-height: 1.1;
}

.lj-layout .lc-stats span {
    display: block;
    color: #cbd5e1;
    font-size: 12px;
    margin-top: 10px;
}

html body .lj-layout .lc-stats > a:hover {
    background: #203957;
}

/* PANELE ANALITYCZNE */

html body .lj-layout .lp-panel {
    padding: 24px !important;
    background: #ffffff !important;
    border: 1px solid #dce4ee !important;
    margin: 0 0 20px !important;
    min-width: 0;
    box-shadow: none !important;
}

.lj-layout .lc-section-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    padding-bottom: 16px;
    margin-bottom: 18px;
    border-bottom: 2px solid #c6a46a;
}

.lj-layout .lc-section-head small {
    color: #96702d;
    font-size: 10px;
    font-weight: 600;
    letter-spacing: .12em;
}

.lj-layout .lc-section-head h2 {
    font-family: Georgia,serif;
    font-size: 26px;
    font-weight: 500;
    color: #142641;
    margin: 6px 0 0;
}

.lj-layout .lc-status {
    padding: 6px 10px;
    background: #f1f5f9;
    border: 1px solid #dce4ee;
    color: #64748b;
    font-size: 11px;
}

.lj-layout .lc-source {
    color: #64748b;
    font-size: 12px;
    line-height: 1.7;
}

/* WYKRES ROCZNY */

html body .lj-years {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: minmax(60px,1fr);
    align-items: end;
    gap: 12px;
    padding: 24px 16px 12px;
    overflow-x: auto;
    border-bottom: 1px solid #dce4ee;
}

.lj-years > a {
    display: grid;
    grid-template-rows: 28px 160px 28px;
    align-items: center;
    justify-items: center;
    gap: 8px;
    color: #142641 !important;
}

.lj-years strong {
    font-size: 19px;
    font-family: Georgia,serif;
}

.lj-bar-track {
    display: flex;
    align-items: flex-end;
    justify-content: center;
    width: 100%;
    height: 160px;
    background: #f1f5f9;
}

.lj-bar-track > i {
    display: block;
    width: 65%;
    max-width: 65px;
    background: linear-gradient(
        0deg,#142641,#365778
    );
    border-top: 3px solid #c6a46a;
}

.lj-years > a:hover .lj-bar-track > i {
    background: #c6a46a;
}

.lj-years small {
    color: #64748b;
    font-size: 12px;
}

/* ANALIZA STRUKTURY */

html body .lj-analysis-grid {
    display: grid !important;
    grid-template-columns: repeat(2,minmax(0,1fr));
    gap: 18px;
    margin-top: 20px;
}

.lj-analysis-grid > section {
    min-width: 0;
    padding: 18px;
    border: 1px solid #dce4ee;
    background: #f8fafc;
}

.lj-analysis-grid h3 {
    font-family: Georgia,serif;
    color: #142641;
    font-size: 20px;
    font-weight: 500;
    margin: 0 0 20px;
}

/* WYKRES PIERSCIENIOWY */

html body .lv-judge-donut {
    display: grid;
    place-items: center;
    width: 180px;
    height: 180px;
    max-width: 100%;
    margin: 20px auto;
    border-radius: 50% !important;
    background: conic-gradient(
        var(--lv-sectors,#dce4ee 0% 100%)
    );
}

html body .lv-judge-donut > span {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 132px;
    height: 132px;
    background: #ffffff;
    border-radius: 50% !important;
}

.lv-judge-donut b {
    font-family: Georgia,serif;
    color: #142641;
    font-size: 35px;
}

.lv-judge-donut small {
    color: #64748b;
    font-size: 11px;
}

/* RODZAJE ORZECZEN */

.lj-type-bars {
    display: grid;
    gap: 16px;
    margin-top: 20px;
}

.lj-type-bars > a {
    display: block;
    color: #142641 !important;
}

.lj-type-bars a > span {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 6px;
    font-size: 12px;
    margin-bottom: 8px;
}

.lj-type-bars a > i {
    display: block;
    width: 100%;
    height: 9px;
    background: #dce4ee;
}

.lj-type-bars em {
    display: block;
    height: 100%;
}

.lj-type-bars > a:nth-child(1) em {
    background: #143e60;
}

.lj-type-bars > a:nth-child(2) em {
    background: #c8a45c;
}

.lj-type-bars > a:nth-child(3) em {
    background: #7b9bad;
}

/* WSPOLNE SKLADY */

.lj-cojudges {
    display: grid;
    gap: 6px;
}

html body .lj-cojudges a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 13px;
    background: #ffffff;
    border: 1px solid #dce4ee;
    border-left: 3px solid #c6a46a;
    color: #142641 !important;
    font-size: 13px;
}

.lj-cojudges a b {
    color: #96702d;
    white-space: nowrap;
}

html body .lj-cojudges a:hover {
    background: #142641;
    color: #ffffff !important;
}

/* WERYFIKACJA DANYCH */

.lj-verification {
    margin-top: 20px;
    border: 1px solid #dce4ee;
    background: #f8fafc;
}

.lj-verification > summary {
    padding: 12px;
    background: #f1f5f9;
    border-left: 3px solid #c6a46a;
    color: #142641;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
}

.lj-verification > p {
    padding: 14px;
    margin: 0;
    font-size: 12px;
    color: #64748b;
    line-height: 1.8;
}

/* SADY I WYDZIALY */

.lj-assignments {
    display: grid;
    gap: 12px;
}

.lj-assignment {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
    padding: 20px;
    background: #f8fafc;
    border: 1px solid #dce4ee;
    border-left: 3px solid #c6a46a;
}

.lj-assignment > div {
    flex: 1 1 200px;
}

.lj-assignment div > small {
    display: block;
    color: #96702d;
    font-size: 10px;
    letter-spacing: .08em;
    margin-bottom: 8px;
}

.lj-assignment div > a {
    font-family: Georgia,serif;
    font-size: 23px;
    color: #142641 !important;
}

.lj-assignment h3 {
    font-size: 15px;
    color: #475569;
    margin: 8px 0;
}

.lj-assignment p {
    color: #64748b;
    font-size: 12px;
    margin: 0;
}

.lj-count {
    display: grid;
    justify-items: center;
    min-width: 85px;
    padding: 16px;
    background: #142641;
    color: #ffffff;
}

.lj-count b {
    font-family: Georgia,serif;
    font-size: 30px;
    color: #c6a46a;
}

.lj-count small {
    font-size: 10px;
}

/* BIBLIOTEKA DOKUMENTOW */

.lj-empty {
    display: flex;
    align-items: center;
    gap: 18px;
    padding: 20px;
    background: #f8fafc;
    border: 1px dashed #cbd5e1;
    margin-bottom: 16px;
}

.lj-empty > span {
    display: grid;
    place-items: center;
    width: 58px;
    height: 72px;
    flex-shrink: 0;
    background: #142641;
    color: #c6a46a;
    font-size: 16px;
    font-weight: 600;
}

.lj-empty h3 {
    color: #142641;
    font-size: 17px;
    margin: 0 0 8px;
}

.lj-empty p {
    color: #64748b;
    font-size: 13px;
    line-height: 1.7;
    margin: 0;
}

/* LISTA ORZECZEN */

html body .lj-layout .lp-list {
    display: grid !important;
    grid-template-columns: repeat(2,minmax(0,1fr));
    gap: 14px;
}

html body .lj-layout .lp-card {
    display: flex;
    flex-direction: column;
    min-width: 0;
    padding: 20px !important;
    margin: 0 !important;
    background: #ffffff !important;
    border: 1px solid #dce4ee !important;
    border-top: 3px solid #c6a46a !important;
    box-shadow: none !important;
}

html body .lj-layout .lp-card:hover {
    border-color: #c6a46a !important;
    background: #f8fafc !important;
}

.lj-layout .lp-tag {
    align-self: flex-start;
    padding: 5px 9px;
    background: #f1f5f9;
    color: #64748b;
    font-size: 11px;
}

.lj-layout .lp-card h3 {
    font-family: Georgia,serif;
    font-size: 25px;
    font-weight: 500;
    margin: 14px 0 8px;
}

.lj-layout .lp-card h3 a {
    color: #142641 !important;
}

.lj-layout .lp-card > p {
    color: #64748b;
    font-size: 12px;
    line-height: 1.6;
}

.lj-layout .lp-composition {
    padding: 12px;
    background: #f1f5f9;
    margin: 10px 0 16px;
}

.lj-layout .lp-composition > small {
    display: block;
    color: #96702d;
    font-size: 10px;
    text-transform: uppercase;
    margin-bottom: 8px;
}

.lj-layout .lp-composition > div {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.lj-layout .lp-composition a {
    display: inline-flex;
    padding: 5px 8px;
    background: #ffffff;
    border: 1px solid #dce4ee;
    color: #142641 !important;
    font-size: 11px;
}

html body .lj-layout .lp-judgment-open {
    display: block;
    padding: 12px;
    margin-top: auto;
    background: #142641;
    color: #ffffff !important;
    font-size: 12px;
    text-align: center;
    font-weight: 600;
}

html body .lj-layout .lp-judgment-open:hover {
    background: #c6a46a;
    color: #142641 !important;
}

/* PAGINACJA */

.lj-layout .lc-pagination {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    padding-top: 18px;
    margin-top: 18px;
    border-top: 1px solid #dce4ee;
}

.lj-layout .lc-pagination p {
    font-size: 12px;
    color: #64748b;
}

.lj-layout .lc-pagination > div {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
}

.lj-layout .lc-pagination a {
    display: grid;
    place-items: center;
    min-width: 36px;
    height: 36px;
    border: 1px solid #dce4ee;
    color: #142641 !important;
}

html body .lj-layout .lc-pagination a[aria-current] {
    background: #142641;
    color: #ffffff !important;
    border-color: #142641;
}

/* INFORMACJA ZRODLOWA */

.law-module-note {
    padding: 16px;
    border-left: 3px solid #c6a46a;
    background: #ffffff;
    color: #64748b;
    font-size: 12px;
}

/* FOCUS */

html body .law-module-shell :focus {
    outline: none !important;
    box-shadow: none !important;
}

html body .law-module-shell :focus-visible {
    outline: 2px solid #c6a46a !important;
    outline-offset: 2px;
}

html body .law-module-shell input:focus,
html body .law-module-shell select:focus {
    border-color: #c6a46a !important;
}

/* TABLET */

@media (max-width: 1400px) {

    html body .law-module-shell .module-workspace {
        grid-template-columns: 185px minmax(0,1fr);
        gap: 12px;
    }

    html body .lj-layout {
        grid-template-columns: 210px minmax(0,1fr);
        gap: 12px;
    }

    html body .lj-analysis-grid {
        grid-template-columns: minmax(0,1fr);
    }
}

@media (max-width: 1150px) {

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

    html body .law-module-navigation {
        position: static;
    }

    .law-module-navigation nav {
        grid-template-columns: repeat(3,minmax(0,1fr));
    }
}

/* TELEFON */

@media (max-width: 760px) {

    .law-module-shell .module-canvas-scroll {
        padding: 10px;
    }

    html body .law-module-shell .law-module-hero {
        grid-template-columns: minmax(0,1fr);
        padding: 20px !important;
    }

    html body .lj-layout {
        grid-template-columns: minmax(0,1fr);
    }

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

    html body .lj-layout .lc-stats {
        gap: 6px;
    }

    html body .lj-layout .lc-stats > a {
        padding: 14px 10px;
    }

    .lj-layout .lc-stats b {
        font-size: 28px;
    }

    .lj-layout .lc-stats span {
        font-size: 10px;
    }

    html body .lj-layout .lp-panel {
        padding: 14px !important;
    }

    html body .lj-layout .lp-list {
        grid-template-columns: minmax(0,1fr);
    }

    .lj-layout .lc-section-head h2 {
        font-size: 22px;
    }
}

@media print {

    .law-module-navigation,
    .law-section-quick,
    .law-module-shell .module-workspace-bar,
    .lj-sidebar,
    .department-return-link {
        display: none !important;
    }

    html body .law-module-shell .module-workspace,
    html body .lj-layout {
        display: block !important;
    }

    .lj-layout .lp-card {
        break-inside: avoid;
    }
}

