
/* PRAWNIKOM PRO — PARCEL WORKSPACE */

/* PASEK MODUŁU */

html body .local-parcel-module-strip {
    display: grid !important;
    grid-template-columns: repeat(4,minmax(0,1fr));
    align-items: stretch;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    gap: 1px;
    padding: 0;
    margin: 0 0 20px;
    background: #344861;
    border-bottom: 3px solid #c6a46a;
    box-sizing: border-box;
}

.local-parcel-module-strip > a,
.local-parcel-module-strip-primary {
    display: flex !important;
    align-items: center;
    gap: 14px;
    min-width: 0;
    min-height: 84px;
    padding: 18px 22px;
    background: #142641;
    color: #fff !important;
    text-decoration: none !important;
    border: 0;
    border-radius: 0 !important;
    box-sizing: border-box;
}

.local-parcel-module-strip-primary {
    background: #0c192c;
}

.local-parcel-module-strip > a:hover {
    background: #294464;
}

.local-parcel-module-strip > a > span:last-child,
.local-parcel-module-strip-primary > span:last-child {
    display: flex;
    flex-direction: column;
    gap: 5px;
    min-width: 0;
}

.local-parcel-module-strip strong {
    color: #fff !important;
    font-size: 15px;
    font-weight: 600;
    line-height: 1.4;
}

.local-parcel-module-strip small {
    color: #c3cedd !important;
    font-size: 11px;
    line-height: 1.5;
}

.local-parcel-module-strip-primary small {
    color: #dfc38d !important;
    letter-spacing: 1.5px;
    font-weight: 700;
}

.local-parcel-module-strip-icon {
    display: grid !important;
    place-items: center;
    width: 44px;
    height: 44px;
    flex: 0 0 44px;
    background: #ffffff08;
    border: 1px solid #c6a46a;
    color: #dfc38d !important;
    font-size: 26px;
    border-radius: 0 !important;
}

/* GŁÓWNY UKŁAD */

html body .property-reader-frame {
    display: grid !important;
    grid-template-columns: 220px minmax(0,1fr);
    gap: 20px;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    box-sizing: border-box;
    overflow: visible !important;
}

html body .property-reader-frame > main.content,
html body .local-parcel-dashboard-shell,
html body .local-parcel-card {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    height: auto !important;
    max-height: none !important;
    overflow: visible !important;
    box-sizing: border-box;
}

/* MAPA NA CAŁĄ SZEROKOŚĆ */

html body .local-parcel-grid {
    display: grid !important;
    grid-template-columns: minmax(0,1fr) !important;
    gap: 20px;
    width: 100%;
    min-width: 0;
}

html body .local-parcel-map-panel,
html body .local-parcel-side-panel {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    padding: 20px;
    box-sizing: border-box;
    background: #fff;
    border: 1px solid #dce4ee;
}

html body .local-parcel-map-shell {
    width: 100% !important;
    min-width: 0;
}

html body .local-parcel-leaflet,
html body [data-local-parcel-map] {
    width: 100% !important;
    height: 580px !important;
    min-height: 580px !important;
    max-height: none !important;
    position: relative;
    overflow: hidden !important;
    isolation: isolate;
}

/* SEKCJE INFORMACYJNE */

.property-reader-frame details {
    width: 100%;
    min-width: 0;
    box-sizing: border-box;
    border: 1px solid #dce4ee;
    border-radius: 0 !important;
    background: #fff;
}

.property-reader-frame details > summary {
    padding: 18px 22px !important;
    background: #f5f7fa !important;
    color: #142641 !important;
    border-left: 4px solid #c6a46a;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
}

.property-reader-frame details[open] {
    height: auto !important;
    max-height: none !important;
    overflow: visible !important;
}

.property-reader-frame details[open] > summary {
    border-bottom: 1px solid #dce4ee;
}

.local-parcel-dashboard-grid,
.local-parcel-report-grid {
    display: grid !important;
    grid-template-columns: repeat(2,minmax(0,1fr));
    gap: 16px;
    width: 100%;
    padding: 20px;
    box-sizing: border-box;
}

.local-parcel-dashboard-grid > *,
.local-parcel-report-grid > * {
    min-width: 0;
    padding: 22px;
    background: #fff;
    border: 1px solid #dce4ee;
    border-top: 3px solid #c6a46a;
    overflow-wrap: anywhere;
}

/* RAPORTY I INFRASTRUKTURA */

.local-parcel-map-objects,
.local-parcel-easement-analysis,
.local-parcel-saved-valuation,
.local-parcel-full-reports,
.local-parcel-evidence {
    width: 100%;
    min-width: 0;
    height: auto;
    max-height: none;
    box-sizing: border-box;
    overflow-wrap: anywhere;
}

.property-reader-frame h2,
.property-reader-frame h3,
.property-reader-frame h4 {
    color: #142641;
}

.property-reader-frame h2 {
    font-size: 23px;
}

.property-reader-frame h3 {
    font-size: 18px;
}

.property-reader-frame dt {
    color: #64748b;
    font-size: 12px;
}

.property-reader-frame dd {
    color: #142641;
    font-weight: 600;
    overflow-wrap: anywhere;
}

.property-reader-frame [id] {
    scroll-margin-top: calc(var(--pp-header-offset,120px) + 24px);
}

/* UKŁAD MOBILNY */

@media(max-width:1200px) {
    html body .local-parcel-module-strip {
        grid-template-columns: repeat(2,minmax(0,1fr));
    }
}

@media(max-width:1000px) {
    html body .property-reader-frame {
        grid-template-columns: minmax(0,1fr) !important;
    }

    html body .local-parcel-app-sidebar {
        position: static !important;
        width: 100% !important;
    }
}

@media(max-width:650px) {
    html body .local-parcel-module-strip {
        grid-template-columns: repeat(2,minmax(0,1fr));
    }

    .local-parcel-module-strip > a,
    .local-parcel-module-strip-primary {
        padding: 12px;
        gap: 8px;
        min-height: 80px;
    }

    .local-parcel-module-strip-icon {
        width: 30px;
        height: 30px;
        flex-basis: 30px;
        font-size: 19px;
    }

    .local-parcel-module-strip strong {
        font-size: 12px;
    }

    .local-parcel-module-strip small {
        font-size: 10px;
    }

    .local-parcel-dashboard-grid,
    .local-parcel-report-grid {
        grid-template-columns: minmax(0,1fr);
        padding: 10px;
    }

    html body .local-parcel-leaflet,
    html body [data-local-parcel-map] {
        height: 380px !important;
        min-height: 380px !important;
    }
}

@media print {
    .local-parcel-module-strip,
    .local-parcel-app-sidebar {
        display: none !important;
    }

    html body .property-reader-frame {
        display: block !important;
    }
}

