
/* PRAWNIKOM PRO — SECURE CASE WORKSPACE */

main.content:has(> .vault-record-hero) {
    --vault-navy: #142641;
    --vault-gold: #c6a46a;
    --vault-border: #dce4ee;
    --vault-muted: #64748b;

    display: block !important;
    width: 100% !important;
    max-width: none !important;
    min-width: 0 !important;
    padding: 24px !important;
    margin: 0 !important;
    background: #eef2f6;
    box-sizing: border-box;
    overflow: visible !important;
}

main.content:has(> .vault-record-hero) * {
    box-sizing: border-box;
}

/* IKONY SVG — OCHRONA PRZED ROZCIAGANIEM */

.vault-record-hero svg,
.vault-privacy-strip svg,
.vault-record-grid svg {
    display: inline-block;
    width: 22px !important;
    height: 22px !important;
    max-width: 22px !important;
    flex-shrink: 0;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.6;
    stroke-linecap: round;
    stroke-linejoin: round;
    vertical-align: middle;
}

/* SCIEZKA NAWIGACJI */

.vault-breadcrumb {
    display: flex !important;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    padding: 12px 0;
    margin-bottom: 14px;
    color: #64748b;
    font-size: 13px;
}

.vault-breadcrumb a {
    color: #142641 !important;
    text-decoration: none !important;
}

.vault-breadcrumb b {
    color: #142641;
    overflow-wrap: anywhere;
}

/* NAGLOWEK SPRAWY */

html body .vault-record-hero {
    display: grid !important;
    grid-template-columns: 140px minmax(0,1fr);
    align-items: center;
    gap: 30px;
    width: 100% !important;
    max-width: none !important;
    min-width: 0;
    padding: 36px !important;
    margin: 0 0 20px !important;
    background: linear-gradient(
        125deg,#0d192c,#142641,#203957
    ) !important;
    color: #fff !important;
    border: 0 !important;
    border-bottom: 3px solid #c6a46a !important;
    border-radius: 0 !important;
}

.vault-record-hero > div {
    min-width: 0;
}

html body .vault-record-photo {
    display: flex !important;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 18px;
    width: 140px !important;
    height: 150px !important;
    padding: 20px;
    background: #ffffff08;
    border: 1px solid #c6a46a70;
    color: #c6a46a;
}

html body .vault-record-photo > svg {
    width: 58px !important;
    height: 58px !important;
    max-width: 58px !important;
    color: #c6a46a;
}

.vault-kicker {
    display: block;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1.4px;
    text-transform: uppercase;
    color: #96702d;
    margin-bottom: 8px;
}

.vault-record-hero .vault-kicker {
    color: #c6a46a !important;
}

html body .vault-record-hero h1 {
    font-family: Georgia,serif !important;
    font-size: clamp(26px,3vw,42px) !important;
    font-weight: 500;
    line-height: 1.25 !important;
    color: #fff !important;
    margin: 10px 0 16px !important;
    overflow-wrap: anywhere;
}

.vault-record-hero p {
    color: #cbd5e1 !important;
    font-size: 15px;
    line-height: 1.7;
    margin: 0 0 24px;
}

/* STATUS SPRAWY */

.vault-status {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 6px 12px;
    font-size: 11px;
    font-weight: 600;
    background: #ffffff15;
    color: #fff;
    border: 1px solid #ffffff25;
}

.vault-status::before {
    content: "";
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: currentColor;
}

.vault-status.open {
    background: #14532d;
    color: #bbf7d0;
    border-color: #166534;
}

/* PRZYCISKI SPRAWY */

.vault-hero-actions {
    display: flex !important;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
}

html body .vault-hero-actions button {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    width: auto !important;
    padding: 12px 20px !important;
    background: #ffffff0a !important;
    color: #fff !important;
    border: 1px solid #ffffff50 !important;
    border-radius: 0 !important;
    font-size: 13px;
    cursor: pointer;
}

html body .vault-hero-actions
[data-vault-action="note-create"] {
    background: #c6a46a !important;
    color: #142641 !important;
    border-color: #c6a46a !important;
    font-weight: 700;
}

html body .vault-hero-actions button:hover {
    background: #c6a46a !important;
    color: #142641 !important;
}

/* PASEK BEZPIECZENSTWA */

html body .vault-privacy-strip {
    display: grid !important;
    grid-template-columns:
        48px minmax(0,1.5fr) minmax(0,1fr) auto;
    align-items: center;
    gap: 18px;
    width: 100%;
    padding: 22px !important;
    margin: 0 0 24px !important;
    background: #fff !important;
    border: 1px solid #dce4ee;
    border-left: 4px solid #c6a46a;
}

.vault-security-mark {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    background: #f7f3e9;
    color: #96702d;
}

.vault-privacy-strip b {
    display: block;
    font-size: 14px;
    color: #142641;
    margin-bottom: 6px;
}

.vault-privacy-strip span {
    display: block;
    color: #64748b;
    font-size: 12px;
    line-height: 1.6;
}

.vault-privacy-strip > div:nth-child(3) {
    display: flex;
    align-items: center;
    gap: 12px;
    padding-left: 18px;
    border-left: 1px solid #dce4ee;
}

.vault-privacy-strip > div:nth-child(3) svg {
    color: #96702d;
}

.vault-privacy-strip > a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 16px;
    color: #142641 !important;
    border: 1px solid #c6a46a;
    font-size: 12px;
    font-weight: 600;
    text-decoration: none !important;
}

/* GLOWNY UKLAD SPRAWY */

html body .vault-record-grid {
    display: grid !important;
    grid-template-columns: minmax(0,1fr) minmax(260px,340px);
    align-items: start;
    gap: 22px;
    width: 100% !important;
    max-width: none !important;
    min-width: 0;
}

html body .vault-record-grid > main,
html body .vault-record-grid > aside {
    display: flex !important;
    flex-direction: column;
    gap: 22px;
    position: static !important;
    width: 100% !important;
    max-width: none !important;
    min-width: 0 !important;
    height: auto !important;
    margin: 0 !important;
    padding: 0 !important;
    background: transparent !important;
    overflow: visible !important;
}

/* PANELE */

html body .vault-panel {
    display: block !important;
    width: 100% !important;
    min-width: 0;
    padding: 0 !important;
    margin: 0 !important;
    background: #fff !important;
    border: 1px solid #dce4ee;
    border-top: 3px solid #c6a46a;
    border-radius: 0 !important;
    box-shadow: 0 3px 12px #14264106;
}

html body .vault-panel > header {
    display: flex !important;
    position: static !important;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    width: 100% !important;
    padding: 22px !important;
    margin: 0 !important;
    background: #fff !important;
    border: 0 !important;
    border-bottom: 1px solid #dce4ee !important;
}

.vault-panel h2 {
    font-family: Georgia,serif !important;
    font-size: 25px !important;
    font-weight: 500;
    color: #142641 !important;
    line-height: 1.3;
    margin: 0 !important;
}

.vault-panel > header > span {
    display: inline-flex;
    padding: 7px 12px;
    background: #f1f5f9;
    color: #64748b;
    font-size: 12px;
}

/* NOTATKI */

html body .vault-note-list {
    display: grid !important;
    grid-template-columns: minmax(0,1fr);
    gap: 16px;
    padding: 22px;
    width: 100%;
}

html body .vault-note-list > article {
    display: block !important;
    width: 100%;
    min-width: 0;
    padding: 20px !important;
    background: #f8fafc;
    border: 1px solid #dce4ee;
    border-left: 3px solid #c6a46a;
    border-radius: 0 !important;
}

.vault-note-list article > header {
    display: flex !important;
    position: static !important;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
    padding: 0 !important;
    margin: 0 0 16px !important;
    background: transparent !important;
    border: 0 !important;
}

.vault-note-list article header b {
    color: #142641;
    font-size: 16px;
    overflow-wrap: anywhere;
}

.vault-note-list article header small {
    color: #64748b;
    font-size: 11px;
}

.vault-note-list article p {
    color: #334155;
    font-size: 14px;
    line-height: 1.8;
    white-space: pre-wrap;
    overflow-wrap: anywhere;
    margin: 0 0 18px;
}

.vault-note-list article footer {
    display: flex !important;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    padding: 14px 0 0 !important;
    background: transparent !important;
    border-top: 1px solid #dce4ee;
}

.vault-note-list article footer > span {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #64748b;
    font-size: 11px;
}

html body .vault-note-list article footer svg {
    width: 16px !important;
    height: 16px !important;
    color: #96702d;
}

html body .vault-note-list button {
    background: #fff !important;
    color: #142641 !important;
    border: 1px solid #cbd5e1 !important;
    border-radius: 0 !important;
    font-size: 12px;
    padding: 10px 16px !important;
}

html body .vault-note-list button:hover {
    background: #142641 !important;
    color: #fff !important;
}

/* BRAK DOKUMENTOW */

html body .vault-empty {
    display: flex !important;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    min-height: 180px;
    margin: 22px !important;
    padding: 30px !important;
    background: #f8fafc;
    border: 1px dashed #cbd5e1;
    text-align: center;
}

.vault-empty::before {
    content: "＋";
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    color: #96702d;
    background: #f7f3e9;
    border: 1px solid #e8dfce;
    font-size: 25px;
}

.vault-empty b {
    color: #142641;
    font-size: 17px;
}

.vault-empty span {
    color: #64748b;
    font-size: 13px;
    line-height: 1.6;
    max-width: 400px;
}

/* INTEGRALNOSC DANYCH */

html body .vault-integrity {
    padding: 26px !important;
}

.vault-integrity > span {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 54px;
    height: 54px;
    margin-bottom: 18px;
    color: #96702d;
    background: #f7f3e9;
    border: 1px solid #e8dfce;
}

html body .vault-integrity > span svg {
    width: 28px !important;
    height: 28px !important;
    max-width: 28px !important;
}

.vault-integrity dl {
    display: flex;
    flex-direction: column;
    margin: 20px 0;
}

.vault-integrity dl > div {
    padding: 16px 0;
    border-bottom: 1px solid #dce4ee;
}

.vault-integrity dt {
    color: #64748b;
    font-size: 12px;
    margin-bottom: 6px;
}

.vault-integrity dd {
    color: #142641;
    font-size: 16px;
    font-weight: 600;
    margin: 0;
    overflow-wrap: anywhere;
}

html body .vault-integrity > a {
    display: flex !important;
    justify-content: center;
    width: 100% !important;
    min-height: 44px;
    padding: 12px !important;
    background: #142641 !important;
    color: #fff !important;
    border: 0 !important;
    border-radius: 0 !important;
    text-decoration: none !important;
}

/* OKNA MODALNE SEJFU */

body:has(.vault-record-hero)
[data-modal]:not([hidden]):not(.hidden) {
    display: flex !important;
    position: fixed !important;
    inset: 0;
    z-index: 22000;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background: #0c192c99;
}

body:has(.vault-record-hero) .modal-panel {
    width: min(100%,850px) !important;
    max-height: 90vh;
    overflow-y: auto;
    background: #fff;
    border-top: 4px solid #c6a46a;
    border-radius: 0 !important;
    box-shadow: 0 20px 80px #0003;
}

body:has(.vault-record-hero) .modal-head {
    display: flex;
    position: static !important;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 20px;
    background: #142641;
    color: #fff;
}

body:has(.vault-record-hero) .modal-head h2 {
    color: #fff !important;
    margin: 0;
    font-family: Georgia,serif;
}

body:has(.vault-record-hero) .modal-body {
    padding: 26px;
    color: #142641;
}

body:has(.vault-record-hero) .modal-body form {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

body:has(.vault-record-hero) .modal-body label {
    display: flex;
    flex-direction: column;
    gap: 8px;
    font-size: 13px;
    font-weight: 600;
}

body:has(.vault-record-hero) .modal-body
input:not([type="hidden"]):not([type="checkbox"]):not([type="radio"]),
body:has(.vault-record-hero) .modal-body textarea,
body:has(.vault-record-hero) .modal-body select {
    width: 100%;
    min-height: 44px;
    padding: 12px;
    background: #f8fafc;
    border: 1px solid #cbd5e1;
    border-radius: 0;
    color: #142641;
    font: inherit;
    box-sizing: border-box;
}

body:has(.vault-record-hero) .modal-body textarea {
    min-height: 180px;
    resize: vertical;
}

body:has(.vault-record-hero) [data-modal][hidden],
body:has(.vault-record-hero) [data-modal].hidden {
    display: none !important;
}

/* DOSTEPNOSC */

main:has(> .vault-record-hero) :focus-visible,
body:has(.vault-record-hero) .modal-panel :focus-visible {
    outline: 2px solid #96702d;
    outline-offset: 3px;
}

main:has(> .vault-record-hero) [hidden] {
    display: none !important;
}

/* TABLET */

@media(max-width:1100px) {

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

    html body .vault-privacy-strip {
        grid-template-columns: 48px minmax(0,1fr);
    }

    .vault-privacy-strip > div:nth-child(3) {
        grid-column: 2;
        padding-left: 0;
        border-left: 0;
    }

    .vault-privacy-strip > a {
        grid-column: 2;
        justify-self: start;
    }
}

/* TELEFON */

@media(max-width:680px) {

    main.content:has(> .vault-record-hero) {
        padding: 10px !important;
    }

    html body .vault-record-hero {
        grid-template-columns: minmax(0,1fr);
        gap: 18px;
        padding: 22px !important;
    }

    html body .vault-record-photo {
        flex-direction: row;
        justify-content: flex-start;
        width: 100% !important;
        height: auto !important;
        padding: 14px;
    }

    html body .vault-record-photo > svg {
        width: 32px !important;
        height: 32px !important;
        max-width: 32px !important;
    }

    .vault-hero-actions {
        flex-direction: column;
        align-items: stretch;
    }

    html body .vault-hero-actions button {
        width: 100% !important;
    }

    html body .vault-privacy-strip {
        padding: 16px !important;
        gap: 12px;
    }

    .vault-note-list {
        padding: 12px !important;
    }

    html body .vault-note-list > article {
        padding: 16px !important;
    }

    html body .vault-panel > header {
        padding: 16px !important;
    }

    .vault-panel h2 {
        font-size: 21px !important;
    }

    .vault-note-list article footer button {
        width: 100%;
    }

    body:has(.vault-record-hero) .modal-body {
        padding: 16px;
    }
}


/* BEGIN VAULT LAYOUT FIX */

/* PELNA SZEROKOSC OBSZARU ROBOCZEGO */

html body:has(.vault-record-hero) #app,
html body:has(.vault-record-hero) .portal-embedded-app,
html body:has(.vault-record-hero) .shell,
html body:has(.vault-record-hero) .department-workspace,
html body:has(.vault-record-hero) .module-workspace,
html body:has(.vault-record-hero) .module-canvas,
html body:has(.vault-record-hero) .module-canvas-scroll {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    box-sizing: border-box !important;
}

html body:has(.vault-record-hero) #main-content {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    padding: 20px !important;
    margin: 0 !important;
    box-sizing: border-box !important;
}

/* WARSZTAT SPRAWY PRO */

body:has(.vault-record-hero) [data-pro-workspace] {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    margin-bottom: 18px;
}

body:has(.vault-record-hero) .pp-pro-commandbar {
    display: flex !important;
    align-items: stretch !important;
    flex-wrap: wrap !important;
    gap: 14px !important;
    padding: 16px !important;
    background: linear-gradient(120deg,#0d192c,#203957);
    border-top: 3px solid #c6a46a;
    box-sizing: border-box;
}

body:has(.vault-record-hero) .pp-pro-brand {
    display: flex !important;
    align-items: center;
    justify-content: flex-start;
    gap: 14px;
    padding: 14px !important;
    background: #142641 !important;
    border: 1px solid #ffffff25 !important;
    border-radius: 0 !important;
    color: #fff !important;
}

body:has(.vault-record-hero) .pp-pro-brand-icon {
    width: 44px !important;
    height: 44px !important;
    flex: 0 0 44px !important;
}

body:has(.vault-record-hero) .pp-pro-quick {
    display: grid !important;
    grid-template-columns: repeat(3,minmax(0,1fr));
    flex: 1 1 480px;
    min-width: 0;
    gap: 10px;
}

body:has(.vault-record-hero) .pp-pro-quick a {
    display: grid !important;
    grid-template-columns: 24px minmax(0,1fr);
    align-items: center;
    gap: 5px 10px;
    padding: 14px;
    background: #ffffff0d;
    border: 1px solid #ffffff25;
    color: #fff !important;
}

body:has(.vault-record-hero) .pp-pro-quick svg {
    grid-row: span 2;
    color: #c6a46a;
}

body:has(.vault-record-hero) .pp-pro-quick span {
    color: #fff !important;
    font-size: 13px;
}

body:has(.vault-record-hero) .pp-pro-quick em {
    color: #e8c98d !important;
    font-size: 12px;
    font-style: normal;
}

body:has(.vault-record-hero) .pp-pro-all {
    background: #c6a46a !important;
    color: #142641 !important;
    border: 0 !important;
    border-radius: 0 !important;
}

/* CENTRUM PRACY — MENU POZIOME */

body:has(.vault-record-hero) .module-workspace {
    display: block !important;
    grid-template-columns: minmax(0,1fr) !important;
}

body:has(.vault-record-hero) .module-rail {
    display: block !important;
    position: static !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    margin: 0 0 18px !important;
    padding: 0 !important;
    background: #fff;
    border: 1px solid #dce4ee;
}

body:has(.vault-record-hero) .module-rail-header,
body:has(.vault-record-hero) .module-rail > header {
    display: flex !important;
    align-items: center;
    gap: 14px;
    padding: 14px 18px !important;
    background: #142641 !important;
    color: #fff !important;
}

body:has(.vault-record-hero) .module-rail-header b,
body:has(.vault-record-hero) .module-rail-header small {
    display: block;
    color: #fff !important;
}

body:has(.vault-record-hero) .module-rail-mark {
    width: 38px !important;
    height: 38px !important;
    flex: 0 0 38px !important;
}

body:has(.vault-record-hero) .module-rail nav {
    display: grid !important;
    grid-template-columns: repeat(6,minmax(0,1fr));
    gap: 8px;
    padding: 12px !important;
}

body:has(.vault-record-hero) .module-rail nav a {
    display: flex !important;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px;
    min-width: 0;
    min-height: 48px;
    padding: 12px !important;
    background: #f8fafc;
    border: 1px solid #dce4ee;
    color: #142641 !important;
    font-size: 12px;
    text-align: center;
    text-decoration: none !important;
    border-radius: 0 !important;
}

body:has(.vault-record-hero) .module-rail nav a svg {
    color: #96702d;
}

body:has(.vault-record-hero) .module-rail nav a.active,
body:has(.vault-record-hero) .module-rail nav a[aria-current="page"],
body:has(.vault-record-hero) .module-rail nav a:hover {
    background: #142641 !important;
    color: #fff !important;
    border-color: #142641;
}

body:has(.vault-record-hero) .module-rail footer {
    display: none !important;
}

body:has(.vault-record-hero) .module-workspace-bar {
    display: flex !important;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    padding: 14px 18px !important;
    margin-bottom: 16px;
    background: #fff;
    border: 1px solid #dce4ee;
}

/* NAGLOWEK SPRAWY */

html body .vault-record-hero {
    grid-template-columns: 110px minmax(0,1fr) !important;
    gap: 24px !important;
    width: 100% !important;
    max-width: 100% !important;
    padding: 28px !important;
    box-sizing: border-box !important;
}

html body .vault-record-photo {
    width: 110px !important;
    max-width: 110px !important;
    height: 130px !important;
    box-sizing: border-box !important;
}

html body .vault-record-hero > div {
    min-width: 0 !important;
    box-sizing: border-box !important;
}

html body .vault-record-hero h1 {
    font-size: clamp(24px,2.4vw,36px) !important;
    overflow-wrap: anywhere;
}

/* NAPRAWA NACHODZACYCH KOLUMN */

html body .vault-record-grid {
    display: grid !important;
    grid-template-columns:
        minmax(0,1fr) minmax(240px,300px) !important;
    grid-template-areas: "materials integrity" !important;
    align-items: start !important;
    gap: 20px !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    padding: 0 !important;
    margin: 0 !important;
    box-sizing: border-box !important;
}

html body .vault-record-grid > main {
    grid-area: materials !important;
}

html body .vault-record-grid > aside {
    grid-area: integrity !important;
}

html body .vault-record-grid > main,
html body .vault-record-grid > aside {
    display: flex !important;
    flex-direction: column !important;
    position: static !important;
    float: none !important;
    width: auto !important;
    max-width: 100% !important;
    min-width: 0 !important;
    height: auto !important;
    padding: 0 !important;
    margin: 0 !important;
    gap: 20px !important;
    box-sizing: border-box !important;
}

/* PANELE I NOTATKI */

html body .vault-record-grid .vault-panel,
html body .vault-record-grid .vault-note-list,
html body .vault-record-grid .vault-note-list article,
html body .vault-record-grid .vault-note-list article header,
html body .vault-record-grid .vault-note-list article footer {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    box-sizing: border-box !important;
}

html body .vault-record-grid .vault-note-list {
    padding: 18px !important;
}

html body .vault-record-grid .vault-note-list article {
    padding: 18px !important;
    margin: 0 !important;
}

html body .vault-note-list article > header,
html body .vault-note-list article > footer {
    display: flex !important;
    flex-wrap: wrap !important;
    justify-content: space-between;
    align-items: center;
    gap: 10px !important;
}

html body .vault-note-list article p {
    max-width: 100%;
    overflow-wrap: anywhere;
}

html body .vault-record-grid .vault-integrity {
    padding: 22px !important;
}

html body .vault-integrity > a {
    max-width: 100% !important;
    box-sizing: border-box !important;
}

/* PASEK BEZPIECZENSTWA */

html body .vault-privacy-strip {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    box-sizing: border-box !important;
}

html body .vault-privacy-strip > * {
    min-width: 0;
    overflow-wrap: anywhere;
}

/* TABLET */

@media(max-width:1100px) {

    html body .vault-record-grid {
        grid-template-columns: minmax(0,1fr) !important;
        grid-template-areas:
            "materials"
            "integrity" !important;
    }

    body:has(.vault-record-hero) .module-rail nav {
        grid-template-columns: repeat(3,minmax(0,1fr));
    }
}

/* TELEFON */

@media(max-width:680px) {

    html body:has(.vault-record-hero) #main-content {
        padding: 10px !important;
    }

    body:has(.vault-record-hero) .pp-pro-quick {
        grid-template-columns: minmax(0,1fr);
        flex-basis: 100%;
    }

    body:has(.vault-record-hero) .pp-pro-brand,
    body:has(.vault-record-hero) .pp-pro-all {
        width: 100% !important;
    }

    body:has(.vault-record-hero) .module-rail nav {
        grid-template-columns: repeat(2,minmax(0,1fr));
    }

    html body .vault-record-hero {
        grid-template-columns: minmax(0,1fr) !important;
        padding: 18px !important;
    }

    html body .vault-record-photo {
        width: 100% !important;
        max-width: 100% !important;
        height: auto !important;
    }
}

/* END VAULT LAYOUT FIX */

/* VAULT — FINALNE WYROWNANIE PANELI */

html body .vault-record-grid {
    grid-template-columns: minmax(0,1fr) 300px !important;
    gap: 20px !important;
    align-items: start !important;
}

html body .vault-record-grid .vault-panel {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    box-sizing: border-box !important;
    border-radius: 0 !important;
}

/* Naglowki paneli */

html body .vault-record-grid .vault-panel > header {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    position: static !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    padding: 18px 22px !important;
    margin: 0 !important;
    box-sizing: border-box !important;
    gap: 12px !important;
    background: #fff !important;
}

html body .vault-panel > header > div {
    flex: 1 1 180px;
    min-width: 0 !important;
}

html body .vault-panel > header > span {
    flex: 0 0 auto;
    margin: 0 !important;
    padding: 6px 12px !important;
    background: #eef2f6;
    color: #142641;
    font-size: 12px;
}

html body .vault-panel h2 {
    font-size: 24px !important;
    line-height: 1.3 !important;
}

/* Kompaktowe notatki */

html body .vault-record-grid .vault-note-list {
    display: grid !important;
    grid-template-columns: minmax(0,1fr);
    gap: 12px !important;
    padding: 16px !important;
}

html body .vault-record-grid .vault-note-list article {
    padding: 16px 18px !important;
    min-height: 0 !important;
    height: auto !important;
    background: #f8fafc !important;
    border: 1px solid #dce4ee !important;
    border-left: 3px solid #c6a46a !important;
}

html body .vault-note-list article > header {
    margin: 0 0 10px !important;
    padding: 0 !important;
    min-height: 0 !important;
}

html body .vault-note-list article > header b {
    font-size: 15px !important;
    color: #142641 !important;
}

html body .vault-note-list article p {
    margin: 0 0 12px !important;
    font-size: 14px !important;
    line-height: 1.6 !important;
}

html body .vault-note-list article > footer {
    position: static !important;
    padding: 10px 0 0 !important;
    margin: 0 !important;
    min-height: 0 !important;
    background: transparent !important;
    border-top: 1px solid #dce4ee !important;
}

html body .vault-note-list article button {
    min-height: 36px !important;
    padding: 8px 14px !important;
    font-size: 12px !important;
    border-radius: 0 !important;
}

/* Panel integralnosci */

html body .vault-record-grid .vault-integrity {
    padding: 20px !important;
    background: #fff !important;
}

html body .vault-integrity > span {
    width: 44px !important;
    height: 44px !important;
    margin-bottom: 12px !important;
}

html body .vault-integrity dl {
    margin: 14px 0 !important;
    padding: 0 !important;
}

html body .vault-integrity dl > div {
    padding: 12px 0 !important;
}

html body .vault-integrity dt {
    font-size: 12px !important;
    margin-bottom: 4px !important;
}

html body .vault-integrity dd {
    font-size: 15px !important;
}

html body .vault-integrity > a {
    min-height: 40px !important;
    padding: 10px !important;
    font-size: 13px !important;
}

/* Dokumenty — pusty stan */

html body .vault-record-grid .vault-empty {
    min-height: 120px !important;
    margin: 16px !important;
    padding: 20px !important;
}

/* Responsywnosc */

@media(max-width:1100px) {
    html body .vault-record-grid {
        grid-template-columns: minmax(0,1fr) !important;
    }
}

@media(max-width:680px) {
    html body .vault-record-grid .vault-note-list {
        padding: 10px !important;
    }

    html body .vault-record-grid .vault-panel > header {
        padding: 14px !important;
    }

    html body .vault-note-list article > footer {
        flex-wrap: wrap !important;
    }

    html body .vault-note-list article button {
        width: 100% !important;
    }
}

