
/* PRAWNIKOM PRO - JUDGMENT READER */

[data-module-workspace="judgments"] {
    --jr-navy: #142641;
    --jr-dark: #0e1b30;
    --jr-gold: #c6a46a;
    --jr-border: #dce4ee;
    --jr-bg: #f1f5f9;
    --jr-muted: #64748b;
    width: 100%;
    min-width: 0;
    color: #253449;
}

[data-module-workspace="judgments"] *,
[data-module-workspace="judgments"] *::before,
[data-module-workspace="judgments"] *::after {
    box-sizing: border-box;
    border-radius: 0 !important;
}

[data-module-workspace="judgments"] a {
    text-decoration: none !important;
}

/* GLOWNY UKLAD */

html body [data-module-workspace="judgments"] {
    display: block !important;
    background: var(--jr-bg);
}

/* Jedna nawigacja dokumentu zamiast dwoch */

[data-module-workspace="judgments"] .judgment-module-rail {
    display: none !important;
}

[data-module-workspace="judgments"] .module-canvas,
[data-module-workspace="judgments"] .lp-navigation-content {
    width: 100%;
    min-width: 0;
    max-width: none;
}

[data-module-workspace="judgments"] .lp-navigation-layout {
    display: grid !important;
    grid-template-columns: 230px minmax(0,1fr);
    gap: 20px;
    align-items: start;
}

[data-module-workspace="judgments"] .module-canvas-scroll {
    height: auto !important;
    max-height: none !important;
    overflow: visible !important;
}

/* NAWIGACJA DOKUMENTU */

[data-module-workspace="judgments"] .lp-navigation-aside {
    position: sticky;
    top: calc(var(--pp-header-offset,120px) + 16px);
    background: var(--jr-dark);
    color: #ffffff;
    padding: 0;
    min-width: 0;
    border-top: 3px solid var(--jr-gold);
}

.lp-navigation-aside details {
    margin: 0;
    border-bottom: 1px solid #40536e;
}

.lp-navigation-aside details > summary {
    padding: 16px;
    color: #e0c58f;
    background: #142641;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
}

.lp-navigation-aside summary > span {
    float: right;
    color: #94a3b8;
    font-size: 11px;
}

.lp-navigation-aside .lp-top {
    display: grid;
    padding: 8px;
}

.lp-navigation-aside .lp-top a {
    display: block;
    padding: 9px 12px;
    color: #dbe5f1 !important;
    font-size: 13px;
}

.lp-navigation-aside .lp-top a:hover {
    background: #29415e;
    color: #ffffff !important;
}

html body .judgment-record-tabs {
    display: flex !important;
    flex-direction: column;
    gap: 1px;
    padding: 8px;
    background: #0e1b30;
}

.judgment-tabs-heading {
    padding: 14px 10px;
}

.judgment-tabs-heading small,
.judgment-tabs-heading b,
.judgment-tabs-heading span {
    display: block;
}

.judgment-tabs-heading small {
    color: #c6a46a;
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: .1em;
}

.judgment-tabs-heading b {
    color: #ffffff;
    font-family: Georgia,serif;
    font-size: 19px;
    margin: 5px 0;
}

.judgment-tabs-heading span {
    color: #94a3b8;
    font-size: 11px;
}

html body .judgment-record-tabs button {
    display: flex !important;
    align-items: center;
    justify-content: flex-start !important;
    gap: 12px;
    width: 100%;
    min-height: 48px;
    padding: 10px 12px !important;
    margin: 0 !important;
    border: 0 !important;
    border-left: 3px solid transparent !important;
    background: transparent !important;
    color: #ffffff !important;
    text-align: left;
    box-shadow: none !important;
}

.judgment-record-tabs button i {
    display: flex;
    color: #c6a46a;
    flex-shrink: 0;
}

.judgment-record-tabs button svg {
    width: 21px;
    height: 21px;
}

.judgment-record-tabs button b,
.judgment-record-tabs button small {
    display: block;
}

.judgment-record-tabs button b {
    font-size: 13px;
    font-weight: 600;
}

.judgment-record-tabs button small {
    color: #aab9ce;
    font-size: 10px;
    margin-top: 3px;
}

html body .judgment-record-tabs button:hover {
    background: #203957 !important;
}

html body .judgment-record-tabs button.active,
html body .judgment-record-tabs button[aria-selected="true"] {
    background: #29415e !important;
    border-left-color: #c6a46a !important;
}

/* PASEK MODULU */

[data-module-workspace="judgments"] .module-workspace-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    padding: 14px 20px;
    background: #ffffff;
    border: 1px solid var(--jr-border);
    margin-bottom: 16px;
}

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

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

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

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

.judgment-breadcrumb {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    margin: 0 0 16px;
    color: #64748b;
    font-size: 12px;
}

/* KARTA WYROKU */

html body .judgment-record-layout {
    display: grid;
    grid-template-columns: minmax(0,1fr);
    gap: 20px;
    width: 100%;
}

.judgment-record-layout > main {
    width: 100%;
    min-width: 0;
}

html body .judgment-record-hero {
    padding: 30px !important;
    background: linear-gradient(
        115deg,#0e1b30,#142641,#203957
    ) !important;
    color: #ffffff !important;
    border: 0 !important;
    border-bottom: 3px solid #c6a46a !important;
    margin-bottom: 20px;
}

.judgment-record-actions {
    display: flex !important;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 24px;
}

html body .judgment-record-actions button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px !important;
    min-height: 40px;
    background: #203957 !important;
    color: #ffffff !important;
    border: 1px solid #52657e !important;
}

html body .judgment-record-actions button:hover {
    background: #36506e !important;
}

html body .judgment-record-actions [data-app-action="bookmark"] {
    background: #c6a46a !important;
    color: #142641 !important;
    border-color: #c6a46a !important;
}

.judgment-record-hero > .badge {
    display: inline-flex;
    padding: 5px 10px;
    color: #e0c58f !important;
    border: 1px solid #c6a46a;
    background: transparent !important;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: .08em;
}

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

html body .judgment-record-hero > p {
    color: #cbd5e1 !important;
    font-size: 14px;
    line-height: 1.8;
    max-width: 100ch;
}

.judgment-record-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 24px;
}

.judgment-record-meta > span {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 9px 12px;
    background: #203957;
    border: 1px solid #40536e;
    color: #ffffff;
    font-size: 12px;
}

.judgment-record-meta svg {
    color: #c6a46a;
    flex-shrink: 0;
}

/* PANELE */

[data-module-workspace="judgments"] .lp-panel,
[data-module-workspace="judgments"] .judgment-tabs-card,
[data-module-workspace="judgments"] .judgment-info-card,
[data-module-workspace="judgments"] .judgment-related-card {
    padding: 24px !important;
    margin: 0 0 20px !important;
    background: #ffffff !important;
    border: 1px solid var(--jr-border) !important;
    box-shadow: none !important;
    min-width: 0;
}

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

.lv-case-head small,
.lc-section-head small {
    color: #96702d;
    font-size: 11px;
    letter-spacing: .1em;
    font-weight: 600;
}

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

.lv-case-head p {
    margin: 5px 0;
    font-size: 13px;
}

.lv-source-badge {
    background: #f1f5f9;
    border: 1px solid #dce4ee;
    color: #475569;
    padding: 8px 12px;
    font-size: 11px;
}

/* STATYSTYKI */

html body .lv-case-metrics {
    display: grid !important;
    grid-template-columns: repeat(4,minmax(0,1fr));
    gap: 12px;
    margin-bottom: 24px;
}

.lv-case-metrics > article {
    padding: 20px 16px;
    background: #f8fafc;
    border: 1px solid #dce4ee;
    border-top: 3px solid #c6a46a;
}

.lv-case-metrics b {
    display: block;
    color: #142641;
    font-family: Georgia,serif;
    font-size: 32px;
    font-weight: 500;
    line-height: 1.2;
}

.lv-case-metrics span {
    display: block;
    margin-top: 10px;
    color: #64748b;
    font-size: 12px;
    line-height: 1.5;
}

/* WYKRES I PODSTAWY PRAWNE */

html body .lv-chart-grid {
    display: grid !important;
    grid-template-columns: repeat(2,minmax(0,1fr));
    gap: 20px;
}

.lv-chart-grid > section {
    padding: 20px;
    border: 1px solid #dce4ee;
    background: #ffffff;
    min-width: 0;
}

.lv-chart-grid h3 {
    font-family: Georgia,serif;
    color: #142641;
    font-size: 21px;
    margin: 0 0 20px;
}

.lv-donut-row {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

html body .lv-donut {
    display: grid;
    place-items: center;
    position: relative;
    width: 144px;
    height: 144px;
    flex-shrink: 0;
    border-radius: 50% !important;
    background: conic-gradient(var(--lv-sectors,#dce4ee 0% 100%));
}

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

.lv-donut b {
    font-size: 25px;
    color: #142641;
}

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

.lv-legend {
    list-style: none;
    padding: 0;
    margin: 0;
}

.lv-legend li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 12px;
    font-size: 12px;
}

.lv-legend i {
    width: 12px;
    height: 12px;
    flex-shrink: 0;
    margin-top: 4px;
}

.lv-legend li:nth-child(1) i {
    background: #c8a45c;
}

.lv-legend li:nth-child(2) i {
    background: #143e60;
}

.lv-legend small {
    display: block;
    color: #64748b;
}

.lv-source-list article {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 14px 0;
    border-bottom: 1px solid #dce4ee;
}

.lv-source-list article:last-child {
    border-bottom: 0;
}

.lv-source-list article > b {
    color: #96702d;
    font-family: Georgia,serif;
    font-size: 22px;
}

.lv-source-list article a {
    color: #174b92;
    font-size: 13px;
    line-height: 1.6;
}

.lc-source {
    color: #64748b;
    font-size: 11px !important;
    line-height: 1.7;
    margin-top: 16px;
}

/* SKLAD ORZEKAJACY */

.lp-judge-links {
    display: grid;
    grid-template-columns: repeat(auto-fit,minmax(min(240px,100%),1fr));
    gap: 12px;
}

html body .lp-person-link {
    display: block;
    padding: 20px;
    border: 1px solid #dce4ee;
    border-left: 3px solid #c6a46a;
    background: #f8fafc;
}

.lp-person-link strong {
    display: block;
    font-family: Georgia,serif;
    font-size: 21px;
    color: #142641;
}

.lp-person-link small {
    display: block;
    color: #64748b;
    font-size: 12px;
    margin-top: 6px;
}

/* JUDGE LENS / ANALIZA AI */

html body [data-intelligence-context="judgment"] {
    padding: 24px;
    background: #142641;
    color: #ffffff;
    border-top: 3px solid #c6a46a;
    margin-bottom: 20px;
}

.intelligence-context > header {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 14px;
    margin-bottom: 20px;
}

.intelligence-context > header > span {
    color: #c6a46a;
}

.intelligence-context > header > span svg {
    width: 34px;
    height: 34px;
}

.intelligence-context > header > div {
    flex: 1;
}

.intelligence-context > header small {
    color: #c6a46a;
    text-transform: uppercase;
    font-size: 11px;
    letter-spacing: .1em;
}

html body .intelligence-context h2 {
    color: #ffffff !important;
    font-family: Georgia,serif;
    font-size: 26px;
    margin: 5px 0;
}

.intelligence-context > header > a {
    color: #142641 !important;
    background: #c6a46a;
    padding: 10px 14px;
    font-size: 12px;
    font-weight: 600;
}

.intelligence-context > div {
    display: grid;
    grid-template-columns: repeat(2,minmax(0,1fr));
    gap: 10px;
}

.intelligence-context > div > a {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    padding: 16px;
    background: #203957;
    border: 1px solid #40536e;
    color: #ffffff !important;
}

.intelligence-context > div > a:hover {
    background: #29415e;
}

.intelligence-context a > span svg {
    width: 25px;
    height: 25px;
    color: #c6a46a;
}

.intelligence-context a > div {
    flex: 1;
    min-width: 120px;
}

.intelligence-context a b,
.intelligence-context a small {
    display: block;
}

.intelligence-context a b {
    font-size: 13px;
}

.intelligence-context a small {
    color: #aab9ce;
    font-size: 11px;
    margin-top: 4px;
}

.intelligence-context a em {
    color: #c6a46a;
    font-style: normal;
    font-size: 11px;
}

/* CZYTNIK DOKUMENTU */

.judgment-tab-content > [data-judgment-pane] {
    display: none !important;
}

.judgment-tab-content > [data-judgment-pane].active:not([hidden]) {
    display: block !important;
}

.judgment-tab-content h2 {
    display: flex;
    align-items: center;
    gap: 12px;
    color: #142641;
    font-family: Georgia,serif;
    font-size: 29px;
    font-weight: 500;
    border-bottom: 2px solid #c6a46a;
    padding-bottom: 18px;
    margin: 0 0 24px;
}

.judgment-tab-content h2 svg {
    width: 26px;
    height: 26px;
    color: #96702d;
}

.judgment-verdict,
.judgment-tab-content blockquote {
    padding: 24px;
    background: #f8fafc;
    border-left: 3px solid #c6a46a;
    margin: 0;
}

.lp-excerpt-label {
    display: block;
    color: #96702d;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .1em;
    margin-bottom: 14px;
}

html body .lp-verdict-preview,
html body .lp-verdict-original,
html body .judgment-prose,
html body .judgment-full-text {
    font-family: Georgia,"Times New Roman",serif;
    font-size: 17px;
    line-height: 1.95;
    color: #253449;
    overflow-wrap: anywhere;
}

.lp-verdict-original,
.judgment-prose,
.judgment-full-text {
    max-width: 90ch;
    margin-inline: auto;
    white-space: pre-wrap;
}

.lp-full-verdict {
    margin-top: 24px;
    border: 1px solid #dce4ee;
    background: #ffffff;
}

.lp-full-verdict > summary {
    padding: 16px;
    background: #142641;
    color: #ffffff;
    cursor: pointer;
    font-size: 13px;
    font-weight: 600;
}

.lp-full-verdict > .lp-verdict-original {
    padding: 24px;
}

/* CZYTNIK - NARZEDZIA */

.judgment-reader-tools,
.judgment-reader-pager,
.judgment-reader-meta,
.judgment-evidence-actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    padding: 12px;
    background: #f1f5f9;
    border: 1px solid #dce4ee;
    margin-bottom: 14px;
}

.judgment-reader-title {
    font-family: Georgia,serif;
    color: #142641;
    font-size: 24px;
}

.judgment-reader-pages {
    min-width: 0;
}

/* METRYKA I DANE ZRODLOWE */

.judgment-metric-grid,
.judgment-evidence-fields,
.full-record-fields {
    display: grid;
    grid-template-columns: repeat(2,minmax(0,1fr));
    gap: 12px;
}

.judgment-evidence-field,
.full-record-fields > * {
    padding: 14px;
    background: #f8fafc;
    border: 1px solid #dce4ee;
    min-width: 0;
    overflow-wrap: anywhere;
}

.judgment-evidence-label {
    display: block;
    color: #96702d;
    font-size: 11px;
    text-transform: uppercase;
    margin-bottom: 8px;
}

.judgment-regulation,
.judgment-evidence-v2,
.full-record-group,
.judgment-ai-workbench {
    padding: 20px;
    background: #ffffff;
    border: 1px solid #dce4ee;
    margin-bottom: 16px;
    min-width: 0;
}

.full-record-group > summary {
    color: #142641;
    font-weight: 600;
    cursor: pointer;
}

.full-record-text,
.full-record-technical,
.full-record-array {
    overflow-wrap: anywhere;
    white-space: pre-wrap;
}

[data-module-workspace="judgments"] pre {
    max-width: 100%;
    overflow-x: auto;
    padding: 16px;
    background: #f1f5f9;
    border: 1px solid #dce4ee;
}

.judgment-analysis-head,
.judgment-evidence-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 18px;
}

.judgment-ai-empty,
.judgment-ai-tip,
[data-module-workspace="judgments"] .empty-state {
    padding: 24px;
    background: #f8fafc;
    border: 1px solid #dce4ee;
    color: #64748b;
}

[data-module-workspace="judgments"] .graph-stage {
    min-height: 300px;
    max-width: 100%;
    border: 1px solid #dce4ee;
    background: #f8fafc;
}

/* FOCUS */

html body [data-module-workspace="judgments"] :focus {
    outline: none !important;
    box-shadow: none !important;
}

html body [data-module-workspace="judgments"] :focus-visible {
    outline: 2px solid #c6a46a !important;
    outline-offset: 2px;
}

/* TABLET */

@media (max-width: 1200px) {

    [data-module-workspace="judgments"] .lp-navigation-layout {
        grid-template-columns: 190px minmax(0,1fr);
        gap: 12px;
    }

    html body .lv-case-metrics {
        grid-template-columns: repeat(2,minmax(0,1fr));
    }

    html body .lv-chart-grid {
        grid-template-columns: 1fr;
    }

}

/* TELEFON */

@media (max-width: 800px) {

    [data-module-workspace="judgments"] .lp-navigation-layout {
        grid-template-columns: minmax(0,1fr);
    }

    [data-module-workspace="judgments"] .lp-navigation-aside {
        position: static;
    }

    html body .judgment-record-tabs {
        display: grid !important;
        grid-template-columns: repeat(2,minmax(0,1fr));
    }

    .judgment-tabs-heading {
        grid-column: 1 / -1;
    }

    html body .judgment-record-hero,
    html body [data-module-workspace="judgments"] .lp-panel,
    html body .judgment-tabs-card,
    html body [data-intelligence-context="judgment"] {
        padding: 16px !important;
    }

    .intelligence-context > div,
    .judgment-metric-grid,
    .judgment-evidence-fields,
    .full-record-fields {
        grid-template-columns: minmax(0,1fr);
    }

    .lv-case-metrics > article {
        padding: 14px;
    }

    .lv-case-metrics b {
        font-size: 26px;
    }

    .judgment-verdict,
    .judgment-tab-content blockquote,
    .lp-full-verdict > .lp-verdict-original {
        padding: 14px;
    }

    html body .lp-verdict-preview,
    html body .lp-verdict-original,
    html body .judgment-prose,
    html body .judgment-full-text {
        font-size: 16px;
        line-height: 1.85;
    }

}

/* DRUK */

@media print {

    [data-module-workspace="judgments"] .lp-navigation-aside,
    [data-module-workspace="judgments"] .module-workspace-bar,
    .judgment-record-actions,
    .judgment-reader-tools,
    .judgment-reader-pager {
        display: none !important;
    }

    [data-module-workspace="judgments"] .lp-navigation-layout {
        display: block !important;
    }

    html body .judgment-record-hero {
        background: #ffffff !important;
        color: #000000 !important;
    }

    html body .judgment-record-hero h1,
    html body .judgment-record-hero p,
    html body .judgment-record-meta span {
        background: #ffffff !important;
        color: #000000 !important;
    }
}

