
/* PRAWNIKOM PRO - KRS */

.department-workspace:has(.krs-catalog) {
    --krs-navy: #142641;
    --krs-gold: #96702d;
    --krs-border: #dce4ee;
    --krs-bg: #f1f5f9;
    --krs-muted: #64748b;
}

.department-workspace:has(.krs-catalog) > main.content {
    width: 100%;
    max-width: none;
    min-width: 0;
    padding: 24px;
    background: var(--krs-bg);
    box-sizing: border-box;
    color: var(--krs-navy);
}

.department-workspace:has(.krs-catalog) * {
    box-sizing: border-box;
}

/* HERO */

.department-workspace:has(.krs-catalog) .pp-section-hero {
    display: grid;
    grid-template-columns: minmax(0,1.2fr) minmax(0,1fr);
    align-items: center;
    gap: 30px;
    padding: 36px;
    background: linear-gradient(120deg,#0e1b30,#203957);
    border: 0;
    border-bottom: 3px solid #c6a46a;
    border-radius: 0 !important;
    margin-bottom: 24px;
}

.department-workspace:has(.krs-catalog) .pp-section-hero h1 {
    font-family: Georgia,serif;
    font-size: clamp(30px,3vw,48px);
    color: #fff !important;
    line-height: 1.2;
    margin: 16px 0;
}

.department-workspace:has(.krs-catalog) .pp-section-hero p {
    color: #dce4ee !important;
    font-size: 15px;
}

.department-workspace:has(.krs-catalog) .pp-section-hero-art {
    display: block;
    width: 100%;
    height: auto;
    max-height: 320px;
    object-fit: contain;
}

.department-workspace:has(.krs-catalog) .pp-section-hero-crumbs,
.department-workspace:has(.krs-catalog) .pp-section-hero-crumbs a {
    color: #e0c58f !important;
    font-size: 12px;
}

.department-workspace:has(.krs-catalog) .pp-section-hero-action {
    display: inline-flex;
    padding: 12px 20px;
    margin-top: 16px;
    background: #c6a46a !important;
    color: #142641 !important;
    font-weight: 600;
    border-radius: 0 !important;
}

/* NAGLOWEK DZIALU */

.department-workspace:has(.krs-catalog) .page-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 20px;
    padding: 20px 24px;
    margin: 16px 0;
    background: #fff;
    border: 1px solid #dce4ee;
    border-left: 3px solid #c6a46a;
}

.department-workspace:has(.krs-catalog) .page-head-main,
.department-workspace:has(.krs-catalog) .head-actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
}

.department-workspace:has(.krs-catalog) .page-head-icon {
    color: #96702d;
}

/* WYSZUKIWARKA KRS */

html body .public-register-search {
    display: block;
    padding: 28px !important;
    margin: 20px 0;
    background: #fff !important;
    border: 1px solid #dce4ee !important;
    border-top: 3px solid #c6a46a !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    color: #142641 !important;
}

.public-register-search-copy {
    display: flex;
    align-items: center;
    gap: 18px;
    padding-bottom: 22px;
}

.public-register-search-copy > span {
    display: grid;
    place-items: center;
    width: 64px;
    height: 64px;
    flex-shrink: 0;
    background: #f1f5f9;
    color: #96702d;
}

.public-register-search-copy > span svg {
    width: 34px;
    height: 34px;
}

.public-register-search-copy small {
    color: #96702d !important;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: .05em;
    text-transform: uppercase;
}

.public-register-search-copy h2 {
    font-family: Georgia,serif;
    font-size: 28px;
    font-weight: 400;
    color: #142641 !important;
    margin: 6px 0;
}

.public-register-search-copy p {
    color: #64748b !important;
    margin: 6px 0 0;
    font-size: 14px;
}

/* FORMULARZ */

html body .public-register-form {
    display: grid !important;
    grid-template-columns: minmax(0,1fr) auto;
    align-items: end;
    gap: 16px;
    padding: 20px 0;
    border-top: 1px solid #dce4ee;
}

.public-register-form label {
    display: grid;
    gap: 8px;
    min-width: 0;
    margin: 0;
}

.public-register-form label > span {
    font-size: 11px;
    font-weight: 600;
    color: #142641 !important;
    text-transform: uppercase;
    letter-spacing: .06em;
}

.public-register-form label > div {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 0 14px;
    min-height: 48px;
    background: #fff;
    border: 1px solid #cbd5e1;
}

.public-register-form label svg {
    color: #96702d;
    flex-shrink: 0;
}

html body .public-register-form input:not([type="hidden"]) {
    width: 100%;
    min-width: 0;
    height: 46px;
    padding: 8px 0 !important;
    border: 0 !important;
    background: transparent !important;
    color: #142641 !important;
    font-size: 15px;
    box-shadow: none !important;
}

html body .public-register-form button[type="submit"],
html body .krs-catalog button[type="submit"] {
    min-height: 48px;
    padding: 12px 22px;
    background: #142641 !important;
    color: #fff !important;
    border: 1px solid #142641 !important;
    border-radius: 0 !important;
}

/* ZAKRES DANYCH */

.public-register-scope {
    display: grid;
    grid-template-columns: repeat(3,minmax(0,1fr));
    gap: 12px;
    padding-top: 12px;
}

.public-register-scope article {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 18px;
    background: #f5f7fa;
    border: 1px solid #dce4ee;
    border-radius: 0 !important;
}

.public-register-scope article > span {
    color: #96702d;
}

.public-register-scope small,
.public-register-scope b {
    display: block;
}

.public-register-scope small {
    color: #64748b !important;
    font-size: 11px;
}

.public-register-scope b {
    color: #142641 !important;
    font-size: 14px;
}

/* WYBOR REJESTRU */

.register-switcher-control {
    display: flex;
    margin: 20px 0;
}

html body .register-switcher-control button {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 18px;
    background: #fff !important;
    color: #142641 !important;
    border: 1px solid #cbd5e1 !important;
    border-radius: 0 !important;
}

.register-switcher-control button > span {
    padding: 4px 10px;
    background: #eef2f7;
    color: #142641;
    font-weight: 700;
}

html body .register-view-switcher:not([hidden]) {
    display: grid !important;
    grid-template-columns: repeat(5,minmax(0,1fr));
    gap: 10px;
    margin-bottom: 20px;
}

html body .register-view-switcher[hidden] {
    display: none !important;
}

.register-view-switcher > a {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 18px;
    background: #fff;
    border: 1px solid #dce4ee;
    color: #142641 !important;
    text-decoration: none !important;
}

.register-view-switcher > a svg {
    color: #96702d;
    width: 26px;
    height: 26px;
}

.register-view-switcher > a small {
    color: #64748b !important;
    font-size: 11px;
}

.register-view-switcher > a.active,
.register-view-switcher > a:hover {
    background: #eef2f7;
    border-color: #c6a46a;
}

/* KATALOG KRS */

html body .krs-catalog {
    padding: 26px !important;
    background: #fff !important;
    color: #142641 !important;
    border: 1px solid #dce4ee !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    scroll-margin-top: calc(var(--pp-header-offset,120px) + 20px);
}

.krs-catalog > header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
    padding: 0 0 20px;
    border-bottom: 1px solid #dce4ee;
}

.krs-catalog > header .eyebrow {
    color: #96702d !important;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: .1em;
}

.krs-catalog > header h2 {
    font-family: Georgia,serif;
    font-size: 28px;
    font-weight: 400;
    color: #142641 !important;
    margin: 8px 0;
}

.krs-catalog > header p {
    color: #64748b !important;
    font-size: 14px;
    margin: 0;
}

.krs-catalog > header > b {
    background: #f1f5f9;
    border: 1px solid #dce4ee;
    padding: 10px 16px;
    color: #142641 !important;
    font-size: 13px;
}

/* FILTRY - BIALE TLO */

html body .krs-filter-drawer {
    margin: 20px 0;
    padding: 0;
    background: #fff !important;
    border: 1px solid #dce4ee;
    border-radius: 0 !important;
}

html body .krs-filter-drawer > summary {
    padding: 14px 18px;
    color: #142641 !important;
    background: #f5f7fa !important;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
}

html body .krs-filter-drawer form {
    display: grid !important;
    grid-template-columns: minmax(0,1fr) minmax(180px,240px) auto;
    align-items: center;
    gap: 14px;
    padding: 18px;
    margin: 0;
}

.krs-filter-drawer form > label {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
    min-height: 48px;
    padding: 0 14px;
    background: #fff;
    border: 1px solid #cbd5e1;
}

.krs-filter-drawer form > label svg {
    color: #96702d;
    flex-shrink: 0;
}

html body .krs-filter-drawer input[type="search"] {
    width: 100%;
    min-width: 0;
    height: 46px;
    padding: 8px 0 !important;
    background: #fff !important;
    color: #142641 !important;
    border: 0 !important;
    box-shadow: none !important;
}

.krs-filter-drawer .smart-select {
    position: relative;
    min-width: 0;
}

html body .krs-filter-drawer .smart-select-trigger {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    width: 100%;
    min-height: 48px;
    padding: 12px 14px;
    background: #fff !important;
    color: #142641 !important;
    border: 1px solid #cbd5e1 !important;
    border-radius: 0 !important;
}

.krs-filter-drawer .smart-select-trigger i {
    color: #96702d !important;
}

.krs-filter-drawer .smart-select-native {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    min-height: 0 !important;
    padding: 0 !important;
    opacity: 0;
    pointer-events: none;
}

.krs-filter-drawer [role="listbox"] {
    background: #fff !important;
    color: #142641 !important;
    border: 1px solid #cbd5e1;
    z-index: 100;
    max-height: 280px;
    overflow-y: auto;
}

.krs-filter-drawer [role="option"] {
    color: #142641 !important;
}

/* LISTA PRZEDSIEBIORSTW */

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

html body .krs-catalog-row {
    display: grid !important;
    grid-template-columns: 52px minmax(0,1fr) auto;
    align-items: start;
    gap: 16px;
    padding: 22px !important;
    background: #fff !important;
    border: 1px solid #dce4ee !important;
    border-left: 3px solid #c6a46a !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    transition: background .15s,border-color .15s;
}

html body .krs-catalog-row:hover {
    background: #fafbfd !important;
    border-color: #c6a46a !important;
}

.krs-catalog-icon {
    display: grid;
    place-items: center;
    width: 52px;
    height: 52px;
    background: #eef2f7;
    color: #96702d !important;
}

.krs-catalog-icon svg {
    width: 28px;
    height: 28px;
}

.krs-catalog-main {
    grid-column: 2/-1;
    min-width: 0;
}

.krs-catalog-main > small {
    display: block;
    color: #96702d !important;
    font-size: 10px;
    font-weight: 600;
    letter-spacing: .04em;
}

html body .krs-catalog-main h3 {
    color: #142641 !important;
    font-family: "Inter","Segoe UI",Arial,sans-serif;
    font-size: 16px;
    font-weight: 600;
    line-height: 1.5;
    margin: 6px 0;
    overflow-wrap: anywhere;
}

.krs-catalog-main p {
    display: inline-block;
    padding: 4px 9px;
    margin: 4px 0 0;
    background: #f1f5f9;
    color: #475569 !important;
    font-size: 11px;
}

/* KRS NIP REGON */

html body .krs-catalog-row > dl {
    grid-column: 2/-1;
    display: grid !important;
    grid-template-columns: repeat(3,minmax(0,1fr));
    gap: 10px;
    width: 100%;
    padding: 0;
    margin: 0;
}

.krs-catalog-row > dl > div {
    padding: 12px 16px;
    background: #f5f7fa;
    border: 1px solid #e2e8f0;
    min-width: 0;
}

.krs-catalog-row dt {
    color: #64748b !important;
    font-size: 10px;
    font-weight: 600;
    letter-spacing: .06em;
    margin-bottom: 5px;
}

.krs-catalog-row dd {
    color: #142641 !important;
    font-size: 15px;
    font-weight: 600;
    font-variant-numeric: tabular-nums;
    margin: 0;
    overflow-wrap: anywhere;
}

/* DATA ODPISU */

.krs-catalog-meta {
    grid-column: 2;
    align-self: center;
}

.krs-catalog-meta small {
    display: block;
    color: #64748b !important;
    font-size: 11px;
}

.krs-catalog-meta time {
    display: block;
    color: #142641 !important;
    font-size: 12px;
    font-variant-numeric: tabular-nums;
}

/* ANALIZA PODMIOTU */

html body .krs-catalog-row > a.btn {
    grid-column: 3;
    align-self: center;
    display: inline-flex;
    justify-content: center;
    min-height: 42px;
    padding: 10px 18px;
    background: #142641 !important;
    color: #fff !important;
    border: 1px solid #142641 !important;
    border-radius: 0 !important;
    font-size: 12px;
    font-weight: 600;
    text-decoration: none !important;
}

html body .krs-catalog-row > a.btn:hover {
    background: #29415e !important;
}

/* PAGINACJA */

html body .krs-catalog [data-krs-pages] {
    display: flex !important;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
    padding: 24px 0 0;
    margin-top: 20px;
    border-top: 1px solid #dce4ee;
}

.krs-catalog [data-krs-pages] button {
    min-height: 40px;
    padding: 10px 16px;
    color: #142641 !important;
    background: #fff !important;
    border: 1px solid #cbd5e1 !important;
    border-radius: 0 !important;
}

.krs-catalog [data-krs-pages] button:disabled {
    opacity: .4;
    cursor: not-allowed;
}

.krs-catalog [data-krs-pages] > span {
    color: #142641;
    font-size: 13px;
}

/* KATALOG WSZYSTKICH REJESTROW */

html body .public-register-layout {
    display: grid;
    grid-template-columns: minmax(0,1fr) 300px;
    align-items: start;
    gap: 20px;
    padding: 24px;
    background: #fff;
}

.public-register-layout > main,
.public-register-layout > aside {
    min-width: 0;
}

.public-register-layout > main > header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    padding-bottom: 18px;
}

.public-register-layout h2 {
    font-family: Georgia,serif;
    color: #142641 !important;
    font-weight: 400;
}

.public-register-grid {
    display: grid;
    grid-template-columns: repeat(2,minmax(0,1fr));
    gap: 12px;
}

html body .public-register-card {
    display: grid;
    grid-template-columns: 40px minmax(0,1fr) 20px;
    align-items: start;
    gap: 12px;
    padding: 20px;
    background: #fff !important;
    border: 1px solid #dce4ee !important;
    border-radius: 0 !important;
    color: #142641 !important;
    text-decoration: none !important;
}

.public-register-card > span {
    display: grid;
    place-items: center;
    width: 40px;
    height: 40px;
    background: #eef2f7;
    color: #96702d;
}

.public-register-card > svg {
    color: #96702d;
}

.public-register-card small {
    color: #96702d !important;
    font-size: 11px;
    font-weight: 600;
}

.public-register-card h2 {
    font-size: 19px;
    line-height: 1.4;
    margin: 8px 0;
}

.public-register-card p {
    color: #64748b !important;
    font-size: 12px;
    line-height: 1.6;
}

.public-register-card footer {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    margin-top: 12px;
}

.public-register-card footer em {
    padding: 4px 7px;
    background: #eef2f7;
    color: #142641 !important;
    font-size: 10px;
    font-style: normal;
}

html body .public-register-card.active,
html body .public-register-card:hover {
    border-color: #c6a46a !important;
    background: #f8fafc !important;
}

/* PANEL WERYFIKACJI AML */

html body .register-workflow,
html body .register-identifier-guide {
    padding: 22px !important;
    margin-bottom: 16px;
    background: #fff !important;
    color: #142641 !important;
    border: 1px solid #dce4ee !important;
    border-top: 3px solid #c6a46a !important;
    border-radius: 0 !important;
    box-shadow: none !important;
}

.register-workflow > span {
    display: block;
    color: #96702d;
    margin-bottom: 10px;
}

.register-workflow > span svg {
    width: 32px;
    height: 32px;
}

.register-workflow > small {
    color: #96702d !important;
    text-transform: uppercase;
    font-size: 11px;
}

.register-workflow h2,
.register-identifier-guide h2 {
    font-size: 23px;
    margin: 10px 0 18px;
}

.register-workflow ol {
    display: grid;
    gap: 14px;
    padding: 0;
    margin: 0 0 20px;
    list-style: none;
}

.register-workflow li {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 13px;
    line-height: 1.5;
}

.register-workflow li > b {
    display: grid;
    place-items: center;
    width: 30px;
    height: 30px;
    flex-shrink: 0;
    background: #142641;
    color: #fff !important;
}

html body .register-workflow > a.btn {
    width: 100%;
    padding: 12px;
    background: #142641 !important;
    color: #fff !important;
    border-radius: 0 !important;
}

.register-identifier-guide dl {
    margin: 0;
}

.register-identifier-guide dl > div {
    padding: 12px 0;
    border-bottom: 1px solid #dce4ee;
}

.register-identifier-guide dt {
    font-size: 13px;
    font-weight: 700;
    color: #142641 !important;
}

.register-identifier-guide dd {
    font-size: 12px;
    color: #64748b !important;
    margin: 5px 0 0;
}

/* BEZ POSWIATY FOCUS */

.public-register-search :focus,
.krs-catalog :focus,
.register-view-switcher :focus {
    box-shadow: none !important;
}

.public-register-search :focus:not(:focus-visible),
.krs-catalog :focus:not(:focus-visible) {
    outline: none !important;
}

.public-register-search :focus-visible,
.krs-catalog :focus-visible,
.register-view-switcher :focus-visible {
    outline: 1px solid #96702d !important;
    outline-offset: 3px;
}

/* RESPONSYWNOSC */

@media(max-width:1200px) {

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

    html body .register-view-switcher:not([hidden]) {
        grid-template-columns: repeat(3,minmax(0,1fr));
    }
}

@media(max-width:850px) {

    .department-workspace:has(.krs-catalog) > main.content {
        padding: 14px;
    }

    .department-workspace:has(.krs-catalog) .pp-section-hero {
        grid-template-columns: minmax(0,1fr);
        padding: 24px;
    }

    html body .krs-filter-drawer form {
        grid-template-columns: minmax(0,1fr);
    }

    html body .public-register-form {
        grid-template-columns: minmax(0,1fr);
    }

    html body .public-register-search,
    html body .krs-catalog {
        padding: 18px !important;
    }

    .public-register-grid {
        grid-template-columns: minmax(0,1fr);
    }

    .public-register-scope {
        grid-template-columns: minmax(0,1fr);
    }
}

@media(max-width:600px) {

    html body .krs-catalog-row {
        grid-template-columns: 36px minmax(0,1fr);
        padding: 14px !important;
        gap: 12px;
    }

    .krs-catalog-icon {
        width: 36px;
        height: 36px;
    }

    .krs-catalog-icon svg {
        width: 22px;
        height: 22px;
    }

    .krs-catalog-main {
        grid-column: 2;
    }

    html body .krs-catalog-row > dl {
        grid-column: 1/-1;
        grid-template-columns: minmax(0,1fr);
    }

    .krs-catalog-row > dl > div {
        display: flex;
        justify-content: space-between;
        align-items: center;
    }

    .krs-catalog-row dt {
        margin: 0;
    }

    .krs-catalog-meta {
        grid-column: 1/-1;
    }

    html body .krs-catalog-row > a.btn {
        grid-column: 1/-1;
        width: 100%;
    }

    html body .register-view-switcher:not([hidden]) {
        grid-template-columns: repeat(2,minmax(0,1fr));
    }

    .public-register-search-copy {
        align-items: flex-start;
        gap: 12px;
    }

    .public-register-search-copy > span {
        width: 40px;
        height: 40px;
    }

    .public-register-search-copy h2 {
        font-size: 23px;
    }

    html body .public-register-layout {
        padding: 14px;
    }
}

@media(prefers-reduced-motion:reduce) {
    .krs-catalog-row {
        transition: none;
    }
}

