
/* PRAWNIKOM PRO - KATALOG DZIALEK */

html body .catalog-workspace {
    --pc-navy: #142641;
    --pc-gold: #96702d;
    --pc-border: #dce4ee;
    --pc-muted: #64748b;

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

.catalog-workspace * {
    box-sizing: border-box;
    border-radius: 0 !important;
}

.catalog-workspace a,
.catalog-workspace a * {
    text-decoration: none !important;
}

/* PANELE */

html body .catalog-workspace > .catalog-panel {
    display: block !important;
    position: static !important;
    width: 100% !important;
    max-width: none !important;
    min-width: 0 !important;
    padding: 24px !important;
    margin: 0 !important;
    background: #fff !important;
    color: #142641 !important;
    border: 1px solid #dce4ee !important;
    box-shadow: none !important;
}

/* FILTRY NAD WYNIKAMI */

html body .catalog-workspace .catalog-filter-drawer {
    display: block !important;
    position: static !important;
    width: 100% !important;
    padding: 0 !important;
    margin: 0 !important;
    background: #fff !important;
    border: 0 !important;
    box-shadow: none !important;
}

html body .catalog-workspace .catalog-filter-drawer > summary {
    padding: 0 0 16px !important;
    margin: 0 0 18px !important;
    background: #fff !important;
    color: #142641 !important;
    border-bottom: 1px solid #dce4ee !important;
    font-size: 19px !important;
    font-weight: 600;
    cursor: pointer;
}

.catalog-filter-drawer > summary::marker {
    color: #96702d;
}

html body .catalog-workspace .catalog-filter-title {
    display: none !important;
}

html body .catalog-workspace #catalog-form {
    width: 100% !important;
    padding: 0 !important;
    margin: 0 !important;
}

html body .catalog-workspace
.catalog-filter-drawer:not([open]) > #catalog-form {
    display: none !important;
}

html body .catalog-workspace .catalog-filters {
    display: grid !important;
    grid-template-columns: repeat(4,minmax(0,1fr)) !important;
    align-items: end;
    gap: 18px;
    width: 100% !important;
    padding: 0 !important;
    margin: 0 !important;
}

html body .catalog-workspace .catalog-filters > label {
    display: flex !important;
    flex-direction: column;
    gap: 8px;
    min-width: 0;
    color: #142641 !important;
    font-size: 13px;
    font-weight: 600;
    margin: 0 !important;
}

.catalog-workspace .catalog-filters > label:first-child {
    grid-column: span 2;
}

/* POLA FORMULARZA */

html body .catalog-workspace .catalog-filters input,
html body .catalog-workspace .catalog-filters select {
    display: block;
    width: 100% !important;
    min-width: 0 !important;
    height: 46px !important;
    min-height: 46px !important;
    padding: 10px 14px !important;
    margin: 0 !important;
    background: #fff !important;
    color: #142641 !important;
    border: 1px solid #cbd5e1 !important;
    box-shadow: none !important;
    font-size: 14px !important;
    font-weight: 400;
}

.catalog-workspace .catalog-filters input::placeholder {
    color: #64748b !important;
}

html body .catalog-workspace .catalog-filters select:disabled {
    background: #f1f5f9 !important;
    color: #64748b !important;
    cursor: not-allowed;
    opacity: 1 !important;
}

/* SMART SELECT */

html body .catalog-workspace .smart-select {
    position: relative !important;
    display: block !important;
    width: 100% !important;
    min-width: 0 !important;
}

html body .catalog-workspace
.catalog-filters .smart-select:has(.smart-select-trigger)
> select.smart-select-native {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    min-height: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    opacity: 0 !important;
    clip-path: inset(50%) !important;
    pointer-events: none !important;
}

html body .catalog-workspace .smart-select-trigger {
    display: flex !important;
    align-items: center;
    justify-content: space-between;
    width: 100% !important;
    min-width: 0 !important;
    min-height: 46px !important;
    padding: 10px 14px !important;
    background: #fff !important;
    color: #142641 !important;
    border: 1px solid #cbd5e1 !important;
}

.catalog-workspace .smart-select-trigger > span {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.catalog-workspace .smart-select-trigger > i {
    color: #96702d !important;
}

html body .catalog-workspace
.smart-select:has(select:disabled) .smart-select-trigger {
    background: #f1f5f9 !important;
    color: #64748b !important;
    pointer-events: none;
}

/* PRZYCISKI FILTROW */

html body .catalog-workspace .catalog-actions {
    display: flex !important;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    padding: 20px 0 0 !important;
    margin: 20px 0 0 !important;
    border-top: 1px solid #dce4ee;
}

html body .catalog-workspace .catalog-actions button {
    min-height: 46px;
    padding: 12px 22px !important;
    font-size: 13px;
    font-weight: 600;
}

html body .catalog-workspace
.catalog-actions button[type="submit"] {
    background: #142641 !important;
    color: #fff !important;
    border: 1px solid #142641 !important;
}

html body .catalog-workspace #catalog-reset {
    background: #fff !important;
    color: #142641 !important;
    border: 1px solid #cbd5e1 !important;
}

html body .catalog-workspace .catalog-actions > label {
    display: flex !important;
    align-items: center;
    gap: 10px;
    margin-left: auto;
    color: #142641 !important;
    font-size: 13px;
    font-weight: 500;
}

html body .catalog-workspace input[type="checkbox"] {
    appearance: auto !important;
    width: 18px !important;
    height: 18px !important;
    min-height: 0 !important;
    padding: 0 !important;
    margin: 0 !important;
    accent-color: #142641;
}

/* NAGLOWEK WYNIKOW */

html body .catalog-workspace .catalog-results-head {
    display: flex !important;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
    padding: 0 0 22px !important;
    margin: 0 0 22px !important;
    border-bottom: 1px solid #dce4ee;
}

.catalog-workspace .catalog-eyebrow {
    color: #96702d !important;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1.2px;
}

html body .catalog-workspace .catalog-results-head h2 {
    color: #142641 !important;
    font-family: Georgia,"Times New Roman",serif !important;
    font-size: 27px !important;
    font-weight: 400;
    margin: 8px 0 0 !important;
}

html body .catalog-workspace .catalog-source {
    max-width: 420px;
    color: #64748b !important;
    font-size: 12px;
    line-height: 1.7;
}

/* SIATKA DZIALEK */

html body .catalog-workspace #catalog-rows {
    display: grid !important;
    grid-template-columns: repeat(2,minmax(0,1fr)) !important;
    align-items: stretch;
    gap: 16px;
    width: 100% !important;
    min-width: 0 !important;
    padding: 0 !important;
    margin: 0 !important;
    list-style: none !important;
}

/* KARTA DZIALKI */

html body .catalog-workspace .catalog-card {
    display: grid !important;
    grid-template-columns: 48px minmax(0,1fr) !important;
    align-items: start;
    gap: 16px;
    min-width: 0 !important;
    padding: 20px !important;
    margin: 0 !important;
    background: #fff !important;
    color: #142641 !important;
    border: 1px solid #dce4ee !important;
    border-left: 3px solid #c6a46a !important;
    box-shadow: none !important;
    cursor: pointer;
    transition: background .15s,border-color .15s;
}

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

html body .catalog-workspace .catalog-parcel-icon {
    display: flex !important;
    align-items: center;
    justify-content: center;
    width: 48px !important;
    height: 48px !important;
    background: #142641 !important;
    color: #e1bf80 !important;
    border: 1px solid #142641 !important;
    font-size: 30px !important;
    line-height: 1;
}

html body .catalog-workspace .catalog-card-content {
    display: flex !important;
    flex-direction: column;
    gap: 14px;
    min-width: 0 !important;
    width: 100% !important;
    padding: 0 !important;
    margin: 0 !important;
}

/* NUMER I IDENTYFIKATOR */

html body .catalog-workspace .catalog-card-top {
    display: flex !important;
    align-items: flex-start;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
}

html body .catalog-workspace .catalog-card-number {
    display: block !important;
    color: #142641 !important;
    font-family: Georgia,"Times New Roman",serif !important;
    font-size: 23px !important;
    font-weight: 600;
    line-height: 1.4;
    text-decoration: none !important;
}

html body .catalog-workspace .catalog-card-key {
    display: block;
    margin-top: 5px;
    color: #64748b !important;
    font-size: 12px;
    font-variant-numeric: tabular-nums;
    overflow-wrap: anywhere;
}

html body .catalog-workspace .catalog-card-badge {
    display: inline-flex !important;
    align-items: center;
    padding: 6px 9px !important;
    background: #f5f0e5 !important;
    color: #795b27 !important;
    border: 1px solid #e6d9bd !important;
    font-size: 10px;
    font-weight: 600;
}

/* LOKALIZACJA */

html body .catalog-workspace .catalog-card-location {
    display: flex !important;
    align-items: flex-start;
    gap: 8px;
    color: #142641 !important;
    font-size: 12px;
    line-height: 1.7;
    overflow-wrap: anywhere;
}

.catalog-workspace .catalog-card-location::before {
    content: "⌖";
    color: #96702d;
    font-size: 18px;
    flex-shrink: 0;
}

/* PARAMETRY DZIALKI */

html body .catalog-workspace .catalog-card-metrics {
    display: grid !important;
    grid-template-columns: repeat(3,minmax(0,1fr)) !important;
    gap: 8px;
    padding: 0 !important;
    margin: 0 !important;
}

html body .catalog-workspace .catalog-card-metric {
    display: flex !important;
    flex-direction: column;
    justify-content: center;
    gap: 8px;
    min-width: 0;
    padding: 12px !important;
    background: #f8fafc !important;
    border: 1px solid #dce4ee !important;
}

.catalog-workspace .catalog-card-metric small {
    color: #64748b !important;
    font-size: 10px;
    line-height: 1.5;
}

html body .catalog-workspace .catalog-card-metric strong {
    color: #142641 !important;
    font-size: 17px !important;
    font-weight: 700;
    line-height: 1.4;
    font-variant-numeric: tabular-nums;
    overflow-wrap: anywhere;
}

html body .catalog-workspace
.catalog-card-metric:first-child {
    background: #f5f0e5 !important;
    border-color: #e6d9bd !important;
}

/* WYCENA I OTWARCIE KARTY */

html body .catalog-workspace .catalog-card-footer {
    display: flex !important;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    padding: 14px 0 0 !important;
    margin: 0 !important;
    border-top: 1px solid #dce4ee;
}

html body .catalog-workspace .catalog-card-value {
    color: #96702d !important;
    font-size: 13px;
    font-weight: 600;
}

html body .catalog-workspace .catalog-card-action {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    min-height: 38px;
    padding: 9px 14px !important;
    background: #142641 !important;
    color: #fff !important;
    border: 1px solid #142641 !important;
    font-size: 12px;
    font-weight: 600;
}

.catalog-workspace .catalog-card:hover .catalog-card-action {
    background: #c6a46a !important;
    color: #142641 !important;
    border-color: #c6a46a !important;
}

/* STATUS I PAGINACJA */

html body .catalog-workspace .catalog-status {
    padding: 20px 0 12px !important;
    margin: 0 !important;
    color: #64748b !important;
    font-size: 13px;
    text-align: center;
}

html body .catalog-workspace .catalog-pages {
    display: flex !important;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px;
    padding: 12px 0 0 !important;
    margin: 0 !important;
}

html body .catalog-workspace .catalog-pages button {
    min-width: 42px;
    min-height: 42px;
    padding: 10px 16px !important;
    background: #fff !important;
    color: #142641 !important;
    border: 1px solid #cbd5e1 !important;
    font-size: 13px;
}

html body .catalog-workspace .catalog-pages button.active,
html body .catalog-workspace .catalog-pages button[aria-current="page"] {
    background: #142641 !important;
    color: #fff !important;
    border-color: #142641 !important;
}

.catalog-workspace .catalog-pages button:disabled {
    opacity: .4 !important;
    cursor: not-allowed;
}

/* FOCUS I UKRYTE ELEMENTY */

.catalog-workspace :is(input,select,button,a):focus {
    box-shadow: none !important;
}

.catalog-workspace :focus-visible {
    outline: 2px solid #96702d !important;
    outline-offset: 3px;
}

html body .catalog-workspace [hidden] {
    display: none !important;
}

/* MNIEJSZE EKRANY */

@media (max-width: 1350px) {

    html body .catalog-workspace #catalog-rows {
        grid-template-columns: minmax(0,1fr) !important;
    }
}

@media (max-width: 1050px) {

    html body .catalog-workspace {
        padding: 14px !important;
    }

    html body .catalog-workspace .catalog-filters {
        grid-template-columns: repeat(2,minmax(0,1fr)) !important;
    }

    html body .catalog-workspace .catalog-actions > label {
        margin-left: 0;
    }
}

/* TELEFON */

@media (max-width: 600px) {

    html body .catalog-workspace {
        padding: 10px !important;
        gap: 14px;
    }

    html body .catalog-workspace > .catalog-panel {
        padding: 16px !important;
    }

    html body .catalog-workspace .catalog-filters {
        grid-template-columns: minmax(0,1fr) !important;
    }

    .catalog-workspace .catalog-filters > label:first-child {
        grid-column: auto;
    }

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

    html body .catalog-workspace .catalog-parcel-icon {
        width: 40px !important;
        height: 40px !important;
        font-size: 24px !important;
    }

    html body .catalog-workspace .catalog-card-metric {
        padding: 9px !important;
    }

    html body .catalog-workspace .catalog-card-metric strong {
        font-size: 14px !important;
    }

    html body .catalog-workspace .catalog-card-action {
        width: 100% !important;
    }

    html body .catalog-workspace .catalog-actions button {
        flex: 1 1 140px;
    }

    html body .catalog-workspace .catalog-actions > label {
        width: 100%;
        padding: 10px 0;
    }

    html body .catalog-workspace .catalog-results-head h2 {
        font-size: 23px !important;
    }
}

@media (prefers-reduced-motion: reduce) {
    .catalog-workspace .catalog-card {
        transition: none !important;
    }
}

