
/* PRAWNIKOM PRO — CENTRUM ZARZADZANIA SPRAWA */

#main-content:has([data-pro-workspace="cases"]) {
    --cw-navy: #142641;
    --cw-dark: #0e192c;
    --cw-gold: #c6a46a;
    --cw-muted: #64748b;
    --cw-border: #d7e0eb;
    --cw-bg: #eff3f8;
    --cw-white: #fff;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    box-sizing: border-box;
    padding: 24px !important;
    background: var(--cw-bg);
    color: var(--cw-navy);
}

#main-content:has([data-pro-workspace="cases"]) * {
    box-sizing: border-box;
}

/* IKONY */

#main-content:has([data-pro-workspace="cases"]) 
:is(.ui-icon,.pp-pro-icon) {
    width: 22px !important;
    height: 22px !important;
    flex-shrink: 0;
}

.pp-pro-icon {
    fill: none;
    stroke: currentColor;
    stroke-width: 1.7;
    stroke-linecap: round;
    stroke-linejoin: round;
}

/* PASEK FUNKCJI PRO */

#prawnikom-pro-features {
    width: 100%;
    min-width: 0;
    margin-bottom: 20px;
}

#prawnikom-pro-features .pp-pro-commandbar {
    display: grid !important;
    grid-template-columns: 260px minmax(0,1fr) auto;
    align-items: stretch;
    gap: 12px;
    padding: 16px;
    background: linear-gradient(120deg,#0e192c,#203958);
    border-bottom: 3px solid #c6a46a;
}

#prawnikom-pro-features .pp-pro-brand {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 14px;
    padding: 16px;
    background: #ffffff08 !important;
    color: white !important;
    border: 1px solid #ffffff25;
    border-radius: 0 !important;
    text-align: left;
}

.pp-pro-brand-icon {
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    flex-shrink: 0;
    color: #c6a46a;
}

.pp-pro-brand small {
    display: block;
    color: #c6a46a;
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.pp-pro-brand strong {
    display: block;
    color: white;
    font-size: 17px;
}

#prawnikom-pro-features .pp-pro-quick {
    display: grid !important;
    grid-template-columns: repeat(3,minmax(0,1fr));
    gap: 10px;
    min-width: 0;
}

#prawnikom-pro-features .pp-pro-quick a {
    display: grid !important;
    grid-template-columns: 26px minmax(0,1fr);
    gap: 4px 10px;
    align-content: center;
    padding: 14px;
    min-width: 0;
    color: white !important;
    background: #ffffff08;
    border: 1px solid #ffffff20;
    text-decoration: none !important;
}

.pp-pro-quick a svg {
    grid-row: span 2;
    color: #c6a46a;
}

.pp-pro-quick a span {
    font-size: 14px;
    font-weight: 600;
}

.pp-pro-quick a em {
    font-size: 12px;
    color: #e4c58e;
    font-style: normal;
}

#prawnikom-pro-features .pp-pro-quick a:hover {
    background: #ffffff15;
    border-color: #c6a46a;
}

#prawnikom-pro-features .pp-pro-all {
    background: #c6a46a !important;
    color: #142641 !important;
    border: 0 !important;
    border-radius: 0 !important;
}

.pp-pro-all span {
    background: #142641;
    color: white;
    padding: 3px 8px;
}

/* PANEL FUNKCJI */

#prawnikom-pro-features .pp-pro-backdrop[hidden] {
    display: none !important;
}

#prawnikom-pro-features .pp-pro-backdrop:not([hidden]) {
    position: fixed;
    inset: 0;
    z-index: 11000;
    display: flex;
    justify-content: flex-end;
    background: #0e192c99;
}

.pp-pro-drawer {
    width: min(620px,100%);
    height: 100%;
    overflow-y: auto;
    background: white;
    box-shadow: -10px 0 40px #0002;
}

.pp-pro-drawer-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    padding: 20px;
    background: #142641;
    color: white;
}

.pp-pro-drawer-top > span {
    display: flex;
    align-items: center;
    gap: 12px;
}

.pp-pro-drawer-body {
    padding: 24px;
}

/* NAGLOWEK REKORDU */

#main-content:has([data-pro-workspace="cases"])
> .page-head {
    display: flex !important;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 24px;
    width: 100% !important;
    max-width: 100% !important;
    padding: 28px !important;
    margin: 0 0 20px;
    background: white;
    border: 1px solid #d7e0eb;
    border-left: 4px solid #c6a46a;
}

#main-content:has([data-pro-workspace="cases"])
.page-head-main {
    display: flex;
    align-items: center;
    gap: 20px;
    flex: 1 1 360px;
    min-width: 0;
}

#main-content:has([data-pro-workspace="cases"])
.page-head-icon {
    display: grid;
    place-items: center;
    width: 64px !important;
    height: 64px !important;
    flex-shrink: 0;
    background: #142641;
    color: #c6a46a;
}

#main-content:has([data-pro-workspace="cases"])
.page-head-copy {
    min-width: 0;
}

#main-content:has([data-pro-workspace="cases"])
.page-head-copy h1 {
    font-size: clamp(26px,3vw,38px);
    line-height: 1.2;
    margin: 6px 0 10px;
    overflow-wrap: anywhere;
}

#main-content:has([data-pro-workspace="cases"])
.head-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

/* GLOWNY UKLAD MODULU */

html body [data-module-workspace="work"] {
    display: grid !important;
    grid-template-columns: 230px minmax(0,1fr) !important;
    gap: 20px !important;
    align-items: start;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    padding: 0 !important;
    margin: 0 !important;
}

html body [data-module-workspace="work"] > .module-rail {
    position: relative !important;
    inset: auto !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    height: auto !important;
    background: white;
    border: 1px solid #d7e0eb;
    border-top: 3px solid #c6a46a;
}

[data-module-workspace="work"] .module-rail > header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 20px 14px;
    border-bottom: 1px solid #d7e0eb;
}

[data-module-workspace="work"] .module-rail-mark {
    display: grid;
    place-items: center;
    width: 40px;
    height: 40px;
    background: #142641;
    color: #c6a46a;
    flex-shrink: 0;
}

[data-module-workspace="work"] .module-rail header b,
[data-module-workspace="work"] .module-rail header small {
    display: block;
}

[data-module-workspace="work"] .module-rail header small {
    color: #64748b;
    font-size: 12px;
}

[data-module-workspace="work"] .module-rail nav {
    display: grid !important;
    grid-template-columns: minmax(0,1fr);
    gap: 5px;
    padding: 12px;
}

[data-module-workspace="work"] .module-rail nav > :is(a,button) {
    display: flex !important;
    align-items: center;
    justify-content: flex-start;
    gap: 12px;
    width: 100% !important;
    min-width: 0;
    min-height: 48px;
    padding: 10px 12px !important;
    background: white !important;
    color: #142641 !important;
    border: 1px solid transparent !important;
    border-radius: 0 !important;
    font-size: 13px;
    text-align: left;
    white-space: normal;
}

[data-module-workspace="work"] .module-rail nav i {
    display: flex;
    color: #96702d;
    flex-shrink: 0;
}

[data-module-workspace="work"] .module-rail nav > :is(a,button):hover {
    background: #f0f3f8 !important;
}

[data-module-workspace="work"] .module-rail nav .active,
[data-module-workspace="work"] .module-rail nav [aria-current="page"] {
    background: #142641 !important;
    color: white !important;
    border-left: 3px solid #c6a46a !important;
}

[data-module-workspace="work"] .module-rail footer {
    display: grid;
    gap: 4px;
    padding: 16px;
    border-top: 1px solid #d7e0eb;
    font-size: 12px;
    color: #64748b;
}

/* OBSZAR ROBOCZY */

html body [data-module-workspace="work"] > .module-canvas,
html body [data-module-workspace="work"] .module-canvas-scroll {
    position: relative !important;
    inset: auto !important;
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
    height: auto !important;
    max-height: none !important;
    overflow: visible !important;
    margin: 0 !important;
}

[data-module-workspace="work"] .module-workspace-bar {
    display: flex !important;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    background: white;
    padding: 16px 20px;
    border: 1px solid #d7e0eb;
    margin-bottom: 20px;
}

[data-module-workspace="work"] .module-workspace-bar > div {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
}

[data-module-workspace="work"] .module-workspace-bar small {
    color: #64748b;
}

[data-module-workspace="work"] .module-scroll-dock {
    display: none !important;
}

/* SEJF DOKUMENTOW */

[data-module-workspace="work"] .vault-workspace-panel {
    width: 100%;
    min-width: 0;
    padding: 22px;
    margin-bottom: 24px;
    background: white;
    border: 1px solid #d7e0eb;
    border-top: 3px solid #c6a46a;
}

[data-module-workspace="work"] .vault-workspace-panel > header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
    margin: 22px 0;
}

[data-module-workspace="work"] .vault-workspace-panel > header > div:last-child {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

[data-module-workspace="work"] .vault-kicker {
    color: #96702d;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.3px;
}

[data-module-workspace="work"] .vault-privacy-strip {
    display: flex !important;
    align-items: center;
    flex-wrap: wrap;
    gap: 14px;
    width: 100% !important;
    padding: 16px;
    background: #edf5f1;
    color: #245c42;
    border: 1px solid #c9ded1;
}

[data-module-workspace="work"] .vault-privacy-strip > div {
    min-width: 0;
}

[data-module-workspace="work"] .vault-privacy-strip b,
[data-module-workspace="work"] .vault-privacy-strip span {
    display: block;
}

[data-module-workspace="work"] .vault-privacy-strip span {
    font-size: 12px;
}

[data-module-workspace="work"] .vault-privacy-strip svg,
[data-module-workspace="work"] .vault-case-list svg,
[data-module-workspace="work"] .vault-note-list svg {
    width: 22px !important;
    height: 22px !important;
    flex-shrink: 0;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.7;
    stroke-linecap: round;
    stroke-linejoin: round;
}

[data-module-workspace="work"] .vault-case-list {
    display: grid;
    gap: 12px;
}

[data-module-workspace="work"] .vault-case-list article {
    display: grid !important;
    grid-template-columns: 44px minmax(0,1fr) auto;
    align-items: center;
    gap: 12px;
    width: 100%;
    padding: 18px;
    background: #f6f8fb;
    border: 1px solid #d7e0eb;
    border-left: 3px solid #c6a46a;
}

[data-module-workspace="work"] .vault-case-list article > span {
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    background: #142641;
    color: #c6a46a;
}

[data-module-workspace="work"] .vault-case-list article > div {
    min-width: 0;
    overflow-wrap: anywhere;
}

[data-module-workspace="work"] .vault-case-list small,
[data-module-workspace="work"] .vault-case-list b {
    display: block;
}

[data-module-workspace="work"] .vault-case-list small {
    font-size: 11px;
    color: #64748b;
}

[data-module-workspace="work"] .vault-case-list em {
    color: #96702d;
    font-size: 12px;
    font-style: normal;
}

[data-module-workspace="work"] .vault-case-list p {
    margin: 5px 0;
    color: #64748b;
    font-size: 13px;
}

[data-module-workspace="work"] .vault-case-list article > a {
    grid-column: 2;
}

[data-module-workspace="work"] .vault-case-list article > button {
    grid-column: 3;
}

[data-module-workspace="work"] .vault-note-list {
    display: grid;
    grid-template-columns: repeat(auto-fit,minmax(min(280px,100%),1fr));
    gap: 14px;
    margin-top: 24px;
}

[data-module-workspace="work"] .vault-note-list article {
    min-width: 0;
    padding: 18px;
    background: #f6f8fb;
    border: 1px solid #d7e0eb;
    border-left: 3px solid #c6a46a;
    overflow-wrap: anywhere;
}

[data-module-workspace="work"] .vault-note-list article header,
[data-module-workspace="work"] .vault-note-list article footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

[data-module-workspace="work"] .vault-note-list article footer {
    padding-top: 14px;
    border-top: 1px solid #d7e0eb;
}

[data-module-workspace="work"] .vault-note-list footer > span {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    color: #96702d;
}

/* KARTA SPRAWY */

[data-module-workspace="work"] .record-hero {
    display: flex !important;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 20px;
    width: 100%;
    padding: 28px;
    margin: 20px 0;
    background: linear-gradient(120deg,#0e192c,#203958);
    border-bottom: 3px solid #c6a46a;
    color: white;
}

[data-module-workspace="work"] .record-title {
    display: flex;
    align-items: center;
    gap: 18px;
    flex: 1 1 300px;
    min-width: 0;
}

[data-module-workspace="work"] .record-title h1 {
    color: white !important;
    font-size: clamp(24px,3vw,36px);
    overflow-wrap: anywhere;
}

[data-module-workspace="work"] .record-icon {
    display: grid;
    place-items: center;
    width: 60px;
    height: 60px;
    flex-shrink: 0;
    color: #c6a46a;
    border: 1px solid #c6a46a60;
}

[data-module-workspace="work"] .record-meta,
[data-module-workspace="work"] .record-actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}

[data-module-workspace="work"] .record-meta .badge {
    padding: 6px 10px;
    background: #ffffff15;
    color: white;
    font-size: 12px;
}

/* GRAFIKA MATERIALU DOWODOWEGO */

[data-module-workspace="work"] .case-media {
    display: grid;
    grid-template-columns: minmax(0,1fr) minmax(0,1fr);
    align-items: center;
    gap: 20px;
    width: 100%;
    margin: 0 0 20px;
    padding: 20px;
    background: white;
    border: 1px solid #d7e0eb;
}

[data-module-workspace="work"] .case-media img {
    display: block;
    width: 100% !important;
    max-width: 100% !important;
    height: 190px !important;
    object-fit: cover;
}

[data-module-workspace="work"] .case-media figcaption {
    display: grid;
    gap: 8px;
    min-width: 0;
}

[data-module-workspace="work"] .case-media figcaption b {
    font-family: Georgia,serif;
    font-size: 23px;
}

/* MAPA SPRAWY */

[data-module-workspace="work"] .case-view-workspace,
[data-module-workspace="work"] .ct-shell,
[data-module-workspace="work"] .ct-panels {
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
}

[data-module-workspace="work"] .ct-shell {
    background: white;
    border: 1px solid #d7e0eb;
    border-top: 3px solid #c6a46a;
    margin-bottom: 20px;
}

[data-module-workspace="work"] .ct-shell-head {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
    padding: 24px;
    background: #142641;
    color: white;
}

[data-module-workspace="work"] .ct-shell-head h2 {
    color: white !important;
    margin: 6px 0;
}

[data-module-workspace="work"] .ct-shell-head p {
    color: #d5deeb;
    margin: 0;
}

[data-module-workspace="work"] .ct-title-mark {
    display: grid;
    place-items: center;
    width: 56px;
    height: 56px;
    color: #c6a46a;
    border: 1px solid #c6a46a60;
}

[data-module-workspace="work"] .ct-title-mark svg {
    width: 30px !important;
    height: 30px !important;
}

[data-module-workspace="work"] .ct-panel-kicker {
    color: #96702d;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
}

[data-module-workspace="work"] .ct-shell-head .ct-panel-kicker {
    color: #c6a46a;
}

[data-module-workspace="work"] .ct-source-state {
    margin-left: auto;
    padding: 10px 14px;
    border: 1px solid #ffffff25;
}

[data-module-workspace="work"] .ct-source-state b,
[data-module-workspace="work"] .ct-source-state small {
    display: block;
}

/* ZAKLADKI MAPY SPRAWY */

[data-module-workspace="work"] .ct-tabs {
    display: grid !important;
    grid-template-columns: repeat(5,minmax(0,1fr));
    gap: 8px;
    padding: 12px;
    background: #eff3f8;
    border-bottom: 1px solid #d7e0eb;
}

[data-module-workspace="work"] .ct-tabs button {
    display: flex !important;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-width: 0;
    min-height: 100px;
    padding: 12px 8px;
    border-radius: 0 !important;
    white-space: normal;
    text-align: center;
}

[data-module-workspace="work"] .ct-tabs svg {
    width: 26px !important;
    height: 26px !important;
    color: #96702d;
}

[data-module-workspace="work"] .ct-tabs b,
[data-module-workspace="work"] .ct-tabs small {
    display: block;
}

[data-module-workspace="work"] .ct-tabs b {
    font-size: 12px;
}

[data-module-workspace="work"] .ct-tabs small {
    font-size: 10px;
    font-weight: 400;
    opacity: .8;
}

[data-module-workspace="work"] .ct-tabs button.active {
    background: #142641 !important;
    color: white !important;
    border-bottom: 3px solid #c6a46a !important;
}

[data-module-workspace="work"] .ct-tabs button.active svg {
    color: #c6a46a;
}

[data-module-workspace="work"] .ct-panels {
    padding: 20px;
}

[data-module-workspace="work"] [data-ct-panel]:not(.active) {
    display: none !important;
}

[data-module-workspace="work"] [data-ct-panel].active:not([hidden]) {
    display: block;
}

/* PANELE ANALITYCZNE */

[data-module-workspace="work"] :is(
    .ct-overview-grid,
    .ct-time-grid,
    .ct-hearing-grid,
    .ct-argument-grid
) {
    display: grid !important;
    grid-template-columns: minmax(0,1.5fr) minmax(0,1fr);
    gap: 16px;
    align-items: start;
}

[data-module-workspace="work"] :is(
    .ct-graph-card,
    .ct-case-pulse,
    .ct-time-control,
    .ct-version-list,
    .ct-argument-column,
    .ct-gap-list,
    .ct-hearing-agenda,
    .ct-hearing-evidence
) {
    min-width: 0;
    max-width: 100%;
    padding: 20px;
    background: white;
    border: 1px solid #d7e0eb;
}

[data-module-workspace="work"] .ct-empty {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 12px;
    min-height: 190px;
    padding: 24px;
    margin: 14px 0;
    background: #f6f8fb;
    border: 1px dashed #cbd5e1;
    text-align: center;
}

[data-module-workspace="work"] .ct-empty > span {
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    background: #eee5d5;
    color: #96702d;
    font-size: 26px;
}

[data-module-workspace="work"] .ct-empty p {
    color: #64748b;
    font-size: 13px;
    margin: 0;
}

[data-module-workspace="work"] .ct-coverage {
    display: flex;
    align-items: center;
    gap: 12px;
}

[data-module-workspace="work"] .ct-coverage > span {
    display: grid;
    place-items: center;
    width: 64px;
    height: 64px;
    border: 6px solid #e1e7ef;
    border-radius: 50%;
    font-size: 16px;
}

[data-module-workspace="work"] .ct-pulse-metrics {
    display: grid;
    grid-template-columns: repeat(3,minmax(0,1fr));
    gap: 8px;
}

[data-module-workspace="work"] .ct-pulse-metrics article {
    display: grid;
    gap: 6px;
    padding: 12px;
    background: #f1f5f9;
    border-bottom: 2px solid #c6a46a;
}

[data-module-workspace="work"] .ct-pulse-metrics b {
    font-size: 25px;
}

[data-module-workspace="work"] .ct-pulse-metrics small,
[data-module-workspace="work"] .ct-pulse-metrics span {
    font-size: 11px;
    color: #64748b;
}

[data-module-workspace="work"] .ct-attention-list {
    display: grid;
    gap: 10px;
    margin-top: 16px;
}

[data-module-workspace="work"] .ct-attention-list a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    border: 1px solid #d7e0eb;
    color: #142641;
}

[data-module-workspace="work"] .ct-attention-list i {
    display: grid;
    place-items: center;
    width: 28px;
    height: 28px;
    background: #142641;
    color: #c6a46a;
    flex-shrink: 0;
    font-style: normal;
}

[data-module-workspace="work"] .ct-attention-list small {
    display: block;
    color: #64748b;
    font-size: 11px;
}

[data-module-workspace="work"] .ct-redteam-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
    padding-bottom: 20px;
}

[data-module-workspace="work"] .ct-argument-column.support {
    border-top: 3px solid #15803d;
}

[data-module-workspace="work"] .ct-argument-column.oppose {
    border-top: 3px solid #b91c1c;
}

[data-module-workspace="work"] .ct-gap-list {
    margin-top: 16px;
}

[data-module-workspace="work"] .ct-hearing-notes {
    display: grid;
    gap: 10px;
}

[data-module-workspace="work"] .ct-hearing-notes textarea {
    width: 100%;
    min-height: 160px;
    padding: 14px;
    border: 1px solid #cbd5e1;
    background: #f6f8fb;
    color: #142641;
    resize: vertical;
}

[data-module-workspace="work"] .ct-hearing-source-rule {
    display: flex;
    gap: 12px;
    padding: 14px;
    background: #f6f1e8;
}

[data-module-workspace="work"] .ct-hearing-source-rule svg {
    width: 24px !important;
    height: 24px !important;
    flex-shrink: 0;
}

/* ZAKLADKI REKORDU */

[data-module-workspace="work"] .record-tabs {
    padding: 12px;
    margin-bottom: 20px;
    background: white;
    border: 1px solid #d7e0eb;
}

[data-module-workspace="work"] .record-tabs .tabs {
    display: grid !important;
    grid-template-columns: repeat(5,minmax(0,1fr));
    gap: 8px;
}

[data-module-workspace="work"] .record-tabs button {
    display: flex !important;
    flex-direction: column;
    gap: 8px;
    min-width: 0;
    min-height: 74px;
    padding: 10px;
    border-radius: 0 !important;
    white-space: normal;
    font-size: 12px;
}

[data-module-workspace="work"] .record-tabs button i {
    color: #96702d;
}

[data-module-workspace="work"] .record-tabs button.active {
    background: #142641 !important;
    color: white !important;
}

/* OS DOWODOWA I DANE SPRAWY */

html body [data-module-workspace="work"] .record-layout {
    display: grid !important;
    grid-template-columns: minmax(0,1.6fr) minmax(0,1fr);
    align-items: start;
    gap: 18px;
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
}

[data-module-workspace="work"] .record-layout > .grid {
    display: grid !important;
    grid-template-columns: minmax(0,1fr);
    gap: 18px;
    width: 100% !important;
    min-width: 0 !important;
    margin: 0;
}

[data-module-workspace="work"] .record-layout .card {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    background: white;
    border: 1px solid #d7e0eb;
    border-top: 3px solid #c6a46a;
    border-radius: 0;
}

[data-module-workspace="work"] .record-layout .card-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    padding: 18px;
    border-bottom: 1px solid #d7e0eb;
}

[data-module-workspace="work"] .record-layout .card-head h2 {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 21px;
    margin: 0;
}

[data-module-workspace="work"] .record-layout .card-body {
    padding: 20px;
    min-width: 0;
    overflow-wrap: anywhere;
}

[data-module-workspace="work"] .pro-heading-icon {
    display: inline-flex;
    color: #96702d;
}

[data-module-workspace="work"] .record-layout .list-row {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 0;
    border-bottom: 1px solid #d7e0eb;
}

[data-module-workspace="work"] .list-row b,
[data-module-workspace="work"] .list-row small {
    display: block;
}

[data-module-workspace="work"] .list-row small {
    color: #64748b;
}

[data-module-workspace="work"] .list-icon {
    display: grid;
    place-items: center;
    width: 40px;
    height: 40px;
    flex-shrink: 0;
    background: #f4efe5;
    color: #96702d;
    font-size: 13px;
}

[data-module-workspace="work"] .donut {
    display: grid;
    place-items: center;
    width: 110px;
    height: 110px;
    margin: 10px auto 20px;
    border: 10px solid #e1e7ef;
    border-radius: 50%;
    color: #142641;
    font-size: 25px;
}

[data-module-workspace="work"] .empty-state {
    padding: 24px;
    background: #f6f8fb;
    border: 1px dashed #cbd5e1;
    text-align: center;
}

/* RESPONSYWNOSC */

@media(max-width:1450px) {
    #prawnikom-pro-features .pp-pro-commandbar {
        grid-template-columns: minmax(0,1fr) auto;
    }

    #prawnikom-pro-features .pp-pro-quick {
        grid-column: 1/-1;
        grid-row: 2;
    }

    [data-module-workspace="work"] .ct-overview-grid,
    [data-module-workspace="work"] .record-layout {
        grid-template-columns: minmax(0,1fr) !important;
    }
}

@media(max-width:1100px) {
    html body [data-module-workspace="work"] {
        grid-template-columns: minmax(0,1fr) !important;
    }

    [data-module-workspace="work"] .module-rail nav {
        grid-template-columns: repeat(3,minmax(0,1fr));
    }

    [data-module-workspace="work"] .ct-tabs,
    [data-module-workspace="work"] .record-tabs .tabs {
        grid-template-columns: repeat(3,minmax(0,1fr)) !important;
    }
}

@media(max-width:700px) {
    #main-content:has([data-pro-workspace="cases"]) {
        padding: 12px !important;
    }

    #prawnikom-pro-features .pp-pro-commandbar,
    #prawnikom-pro-features .pp-pro-quick,
    [data-module-workspace="work"] .case-media,
    [data-module-workspace="work"] .ct-time-grid,
    [data-module-workspace="work"] .ct-hearing-grid,
    [data-module-workspace="work"] .ct-argument-grid {
        grid-template-columns: minmax(0,1fr) !important;
    }

    #prawnikom-pro-features .pp-pro-quick {
        grid-row: auto;
    }

    [data-module-workspace="work"] .module-rail nav,
    [data-module-workspace="work"] .ct-tabs,
    [data-module-workspace="work"] .record-tabs .tabs {
        grid-template-columns: repeat(2,minmax(0,1fr)) !important;
    }

    [data-module-workspace="work"] .vault-case-list article {
        grid-template-columns: 36px minmax(0,1fr);
    }

    [data-module-workspace="work"] .vault-case-list article > :is(a,button,em) {
        grid-column: 1/-1;
    }

    [data-module-workspace="work"] .vault-workspace-panel,
    [data-module-workspace="work"] .ct-panels {
        padding: 12px;
    }

    [data-module-workspace="work"] .ct-pulse-metrics {
        grid-template-columns: minmax(0,1fr);
    }

    [data-module-workspace="work"] .record-actions {
        width: 100%;
    }
}

/* ZACHOWANIE STANU ELEMENTOW UKRYTYCH */

#prawnikom-pro-features [hidden],
[data-module-workspace="work"] [hidden] {
    display: none !important;
}


/* MAPA SPRAWY — PREMIUM GRAPH */

html body [data-module-workspace="work"] .ct-graph-card {
    width: 100% !important;
    min-width: 0 !important;
    padding: 24px !important;
    background: #fff;
    border: 1px solid #d7e0eb;
    border-top: 3px solid #c6a46a;
    border-radius: 0 !important;
}

[data-module-workspace="work"] .ct-graph-card > header {
    display: flex !important;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid #d7e0eb;
}

[data-module-workspace="work"] .ct-graph-card h3 {
    font-family: Georgia, serif;
    font-size: 24px !important;
    color: #142641;
    margin: 5px 0 !important;
}

[data-module-workspace="work"] .ct-coverage {
    display: flex !important;
    align-items: center;
    gap: 12px;
}

[data-module-workspace="work"] .ct-coverage > span {
    width: 58px !important;
    height: 58px !important;
    border: 5px solid #dce4ee;
    border-radius: 50%;
    background: white;
    color: #142641;
    font-size: 16px;
}

[data-module-workspace="work"] .ct-coverage small {
    font-size: 11px;
    line-height: 1.5;
    color: #64748b;
}

/* PUSTY GRAF */

html body [data-module-workspace="work"]
.ct-graph-card .ct-empty {
    position: relative;
    min-height: 230px !important;
    padding: 28px !important;
    margin: 20px 0 0 !important;
    background-color: #f7f9fc;
    background-image:
        radial-gradient(#cbd5e1 0.7px, transparent 0.7px);
    background-size: 18px 18px;
    border: 1px solid #d7e0eb !important;
    border-radius: 0 !important;
    gap: 14px;
}

[data-module-workspace="work"]
.ct-graph-card .ct-empty > span {
    width: 48px !important;
    height: 48px !important;
    background: #142641 !important;
    color: #c6a46a !important;
    border: 1px solid #c6a46a;
    font-size: 28px;
}

[data-module-workspace="work"]
.ct-graph-card .ct-empty > b {
    color: #142641;
    font-size: 17px;
}

[data-module-workspace="work"]
.ct-graph-card .ct-empty > p {
    max-width: 460px;
    font-size: 13px;
    line-height: 1.7;
    color: #64748b;
}

/* PRZYCISK */

html body [data-module-workspace="work"]
.ct-graph-card .ct-empty a.pp-btn {
    background: #142641 !important;
    color: #fff !important;
    border: 1px solid #c6a46a !important;
    border-radius: 0 !important;
    min-height: 42px !important;
    padding: 10px 24px !important;
    font-size: 13px !important;
}

html body [data-module-workspace="work"]
.ct-graph-card .ct-empty a.pp-btn:hover {
    background: #c6a46a !important;
    color: #142641 !important;
}

@media(max-width:600px) {
    [data-module-workspace="work"] .ct-graph-card {
        padding: 14px !important;
    }

    [data-module-workspace="work"] .ct-graph-card > header {
        align-items: flex-start;
        gap: 12px;
    }
}

