
/* PRAWNIKOM PRO - CENTRUM AML */

html body main.content:has([data-module-workspace="entities"]) {
    box-sizing: border-box !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    padding: 20px !important;
    margin: 0 !important;
    background: #f1f5f9 !important;
}

html body [data-module-workspace="entities"] {
    --aml-navy: #142641;
    --aml-gold: #96702d;
    --aml-border: #dce4ee;
    --aml-muted: #64748b;

    display: grid !important;
    grid-template-columns: 240px minmax(0,1fr);
    align-items: start;
    gap: 20px;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    color: #142641 !important;
    font-family: "Inter","Segoe UI",Arial,sans-serif;
}

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

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

/* LEWE MENU MODULU */

html body [data-module-workspace="entities"] > .module-rail {
    position: sticky !important;
    top: calc(var(--pp-header-offset,120px) + 20px);
    display: block !important;
    width: 100% !important;
    min-width: 0 !important;
    padding: 0 !important;
    margin: 0 !important;
    background: #fff !important;
    border: 1px solid #dce4ee !important;
    border-top: 3px solid #c6a46a !important;
    box-shadow: none !important;
}

[data-module-workspace="entities"] .module-rail > header {
    display: flex !important;
    align-items: center;
    gap: 12px;
    padding: 20px 16px !important;
    background: #fff !important;
    border-bottom: 1px solid #dce4ee;
}

[data-module-workspace="entities"] .module-rail-mark {
    display: grid !important;
    place-items: center;
    flex: 0 0 42px;
    height: 42px;
    background: #edf2f7;
    color: #96702d !important;
}

[data-module-workspace="entities"] .module-rail-mark svg {
    width: 25px;
    height: 25px;
}

[data-module-workspace="entities"] .module-rail header b {
    display: block;
    color: #142641 !important;
    font-size: 14px;
    font-weight: 600;
}

[data-module-workspace="entities"] .module-rail header small {
    display: block;
    color: #64748b !important;
    font-size: 11px;
    margin-top: 4px;
}

/* LINKI MENU */

html body [data-module-workspace="entities"] .module-rail nav {
    display: flex !important;
    flex-direction: column;
    gap: 4px;
    padding: 10px !important;
    margin: 0 !important;
}

html body [data-module-workspace="entities"] .module-rail nav a {
    display: flex !important;
    align-items: center;
    gap: 12px;
    width: 100% !important;
    min-height: 48px;
    padding: 12px !important;
    margin: 0 !important;
    background: #fff !important;
    color: #142641 !important;
    border: 0 !important;
    border-left: 3px solid transparent !important;
    font-size: 13px;
    font-weight: 500;
    line-height: 1.5;
}

[data-module-workspace="entities"] .module-rail nav a i {
    display: grid;
    place-items: center;
    flex: 0 0 24px;
    color: #96702d !important;
}

[data-module-workspace="entities"] .module-rail nav svg {
    width: 21px;
    height: 21px;
    color: #96702d !important;
}

html body [data-module-workspace="entities"] .module-rail nav a:hover {
    background: #edf2f7 !important;
    border-left-color: #c6a46a !important;
}

html body [data-module-workspace="entities"] .module-rail nav a.active {
    background: #f5f7fa !important;
    color: #142641 !important;
    font-weight: 600;
}

/* DOL MENU */

[data-module-workspace="entities"] .module-rail > footer {
    display: block !important;
    padding: 18px !important;
    margin: 0 !important;
    background: #f8fafc !important;
    border-top: 1px solid #dce4ee !important;
}

[data-module-workspace="entities"] .module-rail footer span {
    display: block;
    color: #142641 !important;
    font-size: 12px;
    font-weight: 600;
}

[data-module-workspace="entities"] .module-rail footer small {
    display: block;
    margin-top: 5px;
    color: #64748b !important;
    font-size: 11px;
}

/* OBSZAR ROBOCZY */

html body [data-module-workspace="entities"] > .module-canvas {
    position: relative !important;
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    height: auto !important;
    padding: 0 !important;
    margin: 0 !important;
    background: transparent !important;
    border: 0 !important;
}

html body [data-module-workspace="entities"] .module-canvas-scroll {
    display: block !important;
    width: 100% !important;
    min-width: 0 !important;
    height: auto !important;
    max-height: none !important;
    overflow: visible !important;
    padding: 0 !important;
    margin: 0 !important;
}

/* GORNY PASEK MODULU */

html body [data-module-workspace="entities"] .module-workspace-bar {
    display: flex !important;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
    padding: 14px 20px !important;
    margin: 0 0 16px !important;
    background: #fff !important;
    border: 1px solid #dce4ee !important;
}

[data-module-workspace="entities"] .module-workspace-bar > div {
    display: flex !important;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    min-width: 0;
}

[data-module-workspace="entities"] .module-workspace-bar > div > span {
    color: #96702d !important;
}

[data-module-workspace="entities"] .module-workspace-bar b {
    color: #142641 !important;
    font-size: 14px;
}

[data-module-workspace="entities"] .module-workspace-bar small {
    color: #64748b !important;
    font-size: 12px;
}

/* USUNIECIE ZBEDNYCH NARZEDZI NAWIGACYJNYCH */

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

/* BANER AML */

html body [data-module-workspace="entities"] .pp-section-hero {
    display: grid !important;
    grid-template-columns: minmax(0,1.4fr) minmax(0,1fr);
    align-items: center;
    gap: 24px;
    min-height: 260px;
    padding: 32px !important;
    margin: 0 0 20px !important;
    background: linear-gradient(
        120deg,#0e1b30,#142641,#203957
    ) !important;
    color: #fff !important;
    border: 0 !important;
    border-bottom: 3px solid #c6a46a !important;
}

[data-module-workspace="entities"] .pp-section-hero-copy {
    min-width: 0;
}

[data-module-workspace="entities"] .pp-section-hero-crumbs,
[data-module-workspace="entities"] .pp-section-hero-crumbs a {
    color: #e1bf80 !important;
    font-size: 12px;
}

html body [data-module-workspace="entities"] .pp-section-hero h1 {
    color: #fff !important;
    font-family: Georgia,"Times New Roman",serif !important;
    font-size: clamp(26px,3vw,42px) !important;
    font-weight: 400;
    line-height: 1.25;
    margin: 18px 0 !important;
}

[data-module-workspace="entities"] .pp-section-hero p {
    color: #dce4ee !important;
    font-size: 14px;
    line-height: 1.8;
    margin: 0 0 22px !important;
}

html body [data-module-workspace="entities"] .pp-section-hero-art {
    display: block !important;
    width: 100% !important;
    max-width: 100%;
    height: auto !important;
    max-height: 270px;
    object-fit: contain;
}

html body [data-module-workspace="entities"] .pp-section-hero-action {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 12px 22px !important;
    background: #c6a46a !important;
    color: #142641 !important;
    border: 1px solid #c6a46a !important;
    font-size: 13px;
    font-weight: 600;
}

/* CENTRUM AML */

html body [data-module-workspace="entities"] .aml-workspace {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    padding: 0 !important;
    margin: 0 !important;
    background: transparent !important;
    color: #142641 !important;
}

[data-module-workspace="entities"] .aw-breadcrumb {
    display: flex;
    align-items: center;
    padding: 12px 0 !important;
    margin: 0 0 8px !important;
}

[data-module-workspace="entities"] .aw-breadcrumb a {
    color: #142641 !important;
    font-size: 13px;
    font-weight: 500;
}

/* KARTY AML */

html body [data-module-workspace="entities"] .aw-card {
    display: block;
    min-width: 0;
    padding: 26px !important;
    margin: 0 0 18px !important;
    background: #fff !important;
    color: #142641 !important;
    border: 1px solid #dce4ee !important;
    box-shadow: none !important;
}

[data-module-workspace="entities"] .aw-card :is(h1,h2,h3) {
    color: #142641 !important;
    line-height: 1.4;
}

[data-module-workspace="entities"] .aw-card p {
    color: #64748b !important;
    font-size: 14px;
    line-height: 1.8;
}

/* KOMUNIKAT BRAKU TECZKI */

html body [data-module-workspace="entities"] .aw-empty {
    display: flex !important;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 16px;
    min-height: 300px;
    padding: 36px !important;
    background: #fff !important;
    border: 1px solid #dce4ee !important;
    border-top: 3px solid #c6a46a !important;
    text-align: center;
}

[data-module-workspace="entities"] .aw-empty::before {
    content: "";
    display: block;
    width: 76px;
    height: 76px;
    background-color: #f1f5f9;
    background-repeat: no-repeat;
    background-position: center;
    background-size: 42px 42px;
    background-image: url("/assets/icons/aml-folder-search.svg");
    border: 1px solid #dce4ee;
}

html body [data-module-workspace="entities"] .aw-empty h1 {
    color: #142641 !important;
    font-family: Georgia,"Times New Roman",serif !important;
    font-size: clamp(24px,2.5vw,32px) !important;
    font-weight: 400;
    margin: 0 !important;
}

[data-module-workspace="entities"] .aw-empty p {
    max-width: 640px;
    margin: 0 !important;
    color: #64748b !important;
    font-size: 14px;
    line-height: 1.8;
}

/* PRZYCISKI AML */

html body [data-module-workspace="entities"] .aw-button {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 44px;
    padding: 12px 20px !important;
    background: #fff !important;
    color: #142641 !important;
    border: 1px solid #cbd5e1 !important;
    font-size: 13px;
    font-weight: 600;
    box-shadow: none !important;
    text-align: center;
}

html body [data-module-workspace="entities"] .aw-button.primary {
    background: #142641 !important;
    color: #fff !important;
    border-color: #142641 !important;
}

html body [data-module-workspace="entities"] .aw-button:hover {
    background: #c6a46a !important;
    color: #142641 !important;
    border-color: #c6a46a !important;
}

/* ZRODLA KONTROLI */

html body [data-module-workspace="entities"] .aw-source-links {
    display: grid !important;
    grid-template-columns: repeat(5,minmax(0,1fr));
    align-items: stretch;
    gap: 12px;
    padding: 0 !important;
    margin: 20px 0 !important;
    background: transparent !important;
}

html body [data-module-workspace="entities"] .aw-source-links a {
    display: flex !important;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 10px;
    min-width: 0;
    min-height: 140px;
    padding: 18px !important;
    background: #fff !important;
    color: #142641 !important;
    border: 1px solid #dce4ee !important;
    border-top: 3px solid #c6a46a !important;
    box-shadow: none !important;
}

[data-module-workspace="entities"] .aw-source-links a::before {
    content: "";
    display: block;
    width: 30px;
    height: 30px;
    background-image: url("/assets/icons/aml-source.svg");
    background-size: contain;
    background-repeat: no-repeat;
}

[data-module-workspace="entities"] .aw-source-links a b {
    color: #142641 !important;
    font-size: 17px;
    font-weight: 600;
    overflow-wrap: anywhere;
}

[data-module-workspace="entities"] .aw-source-links a span {
    color: #64748b !important;
    font-size: 12px;
    line-height: 1.6;
}

html body [data-module-workspace="entities"] .aw-source-links a:hover {
    background: #f8fafc !important;
    border-color: #c6a46a !important;
}

/* FOCUS I ELEMENTY UKRYTE */

[data-module-workspace="entities"] :is(a,button,input,select):focus {
    box-shadow: none !important;
}

[data-module-workspace="entities"] :is(a,button,input,select):focus-visible {
    outline: 2px solid #96702d !important;
    outline-offset: 2px;
}

[data-module-workspace="entities"] [hidden] {
    display: none !important;
}

/* MNIEJSZE MONITORY */

@media (max-width: 1450px) {

    html body [data-module-workspace="entities"] {
        grid-template-columns: 210px minmax(0,1fr);
        gap: 16px;
    }

    html body [data-module-workspace="entities"] .aw-source-links {
        grid-template-columns: repeat(3,minmax(0,1fr));
    }
}

/* TABLET */

@media (max-width: 1100px) {

    html body main.content:has([data-module-workspace="entities"]) {
        padding: 16px !important;
    }

    html body [data-module-workspace="entities"] {
        grid-template-columns: minmax(0,1fr);
    }

    html body [data-module-workspace="entities"] > .module-rail {
        position: static !important;
    }

    html body [data-module-workspace="entities"] .module-rail nav {
        display: grid !important;
        grid-template-columns: repeat(3,minmax(0,1fr));
    }

    [data-module-workspace="entities"] .module-rail > footer {
        display: none !important;
    }
}

/* TELEFON */

@media (max-width: 650px) {

    html body main.content:has([data-module-workspace="entities"]) {
        padding: 10px !important;
    }

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

    html body [data-module-workspace="entities"] .module-rail nav a {
        padding: 10px !important;
        font-size: 12px;
    }

    html body [data-module-workspace="entities"] .pp-section-hero {
        grid-template-columns: minmax(0,1fr);
        padding: 22px !important;
    }

    html body [data-module-workspace="entities"] .pp-section-hero-art {
        max-height: 180px;
    }

    html body [data-module-workspace="entities"] .aw-empty {
        padding: 22px !important;
    }

    html body [data-module-workspace="entities"] .aw-source-links {
        grid-template-columns: repeat(2,minmax(0,1fr));
        gap: 8px;
    }

    html body [data-module-workspace="entities"] .aw-source-links a {
        padding: 14px !important;
        min-height: 120px;
    }

    html body [data-module-workspace="entities"] .aw-empty .aw-button {
        width: 100% !important;
    }
}

