
/* PRAWNIKOM PRO - REJESTRY BRANZOWE */

html body main.sector-shell {
    --sc-navy: #142641;
    --sc-gold: #96702d;
    --sc-border: #dce4ee;
    --sc-muted: #64748b;

    box-sizing: border-box !important;
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    padding: 24px !important;
    margin: 0 !important;
    background: #f1f5f9 !important;
    color: #142641 !important;
    font-family: "Inter","Segoe UI",Arial,sans-serif;
}

.sector-shell *,
.sector-shell *::before,
.sector-shell *::after {
    box-sizing: border-box;
    border-radius: 0 !important;
}

.sector-shell a,
.sector-shell a * {
    text-decoration: none !important;
}

/* SCIEZKA NAWIGACJI */

html body .sector-shell .breadcrumbs {
    display: flex !important;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    padding: 0 0 18px !important;
    margin: 0 !important;
    background: transparent !important;
    color: #64748b !important;
    font-size: 12px;
}

.sector-shell .breadcrumbs a {
    color: #142641 !important;
}

.sector-shell .breadcrumbs b {
    color: #96702d !important;
}

/* GLOWNY UKLAD */

html body .sector-shell .sector-layout {
    display: grid !important;
    grid-template-columns: 220px minmax(0,1fr);
    align-items: start;
    gap: 20px;
    width: 100% !important;
    min-width: 0 !important;
}

html body .sector-shell .sector-main {
    display: block !important;
    width: 100% !important;
    min-width: 0 !important;
}

/* MENU BOCZNE */

html body .sector-shell .sector-side {
    position: sticky !important;
    top: calc(var(--pp-header-offset,120px) + 20px);
    width: 100% !important;
    min-width: 0 !important;
    padding: 16px !important;
    background: #fff !important;
    border: 1px solid #dce4ee !important;
    border-top: 3px solid #c6a46a !important;
    box-shadow: none !important;
}

.sector-side > small {
    display: block;
    padding: 8px 10px 18px;
    color: #96702d !important;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 1.2px;
}

html body .sector-side .sector-nav {
    display: flex !important;
    flex-direction: column;
    gap: 5px;
    padding: 0 !important;
    margin: 0 !important;
}

html body .sector-nav a {
    display: flex !important;
    align-items: center;
    gap: 14px;
    min-height: 48px;
    padding: 12px !important;
    background: transparent !important;
    color: #142641 !important;
    border: 1px solid transparent !important;
    font-size: 14px;
    font-weight: 500;
}

.sector-nav a i {
    display: grid;
    place-items: center;
    flex: 0 0 24px;
    width: 24px;
    font-size: 23px;
    font-style: normal;
    color: #96702d !important;
}

html body .sector-nav a:hover {
    background: #f1f5f9 !important;
}

html body .sector-nav a.active {
    background: #edf2f7 !important;
    border-left: 3px solid #c6a46a !important;
    color: #142641 !important;
    font-weight: 600;
}

/* HERO */

html body .sector-shell .sector-hero {
    position: relative;
    display: block !important;
    min-height: 220px;
    padding: 36px !important;
    margin: 0 0 20px !important;
    background: linear-gradient(
        120deg,#0e1b30,#142641,#203957
    ) !important;
    border: 0 !important;
    border-bottom: 3px solid #c6a46a !important;
    color: #fff !important;
}

.sector-hero > small {
    color: #e1bf80 !important;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 2px;
}

html body .sector-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.3;
    margin: 14px 0 !important;
}

html body .sector-hero p {
    color: #dce4ee !important;
    font-size: 15px;
    line-height: 1.8;
    max-width: 900px;
    margin: 0 !important;
}

/* KARTY REJESTROW */

html body .sector-shell .sector-grid {
    display: grid !important;
    grid-template-columns: repeat(2,minmax(0,1fr));
    align-items: stretch;
    gap: 16px;
    padding: 0 !important;
    margin: 0 0 24px !important;
}

html body .sector-shell .sector-card {
    display: flex !important;
    flex-direction: column;
    align-items: stretch;
    min-width: 0 !important;
    padding: 24px !important;
    margin: 0 !important;
    background: #fff !important;
    border: 1px solid #dce4ee !important;
    border-top: 3px solid #c6a46a !important;
    box-shadow: none !important;
}

html body .sector-card > header {
    display: flex !important;
    align-items: flex-start;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    padding: 0 !important;
    margin: 0 0 14px !important;
    background: transparent !important;
    border: 0 !important;
}

.sector-card > header > div {
    flex: 1 1 180px;
    min-width: 0;
}

.sector-card header small {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 58px;
    min-height: 34px;
    padding: 6px 12px;
    background: #edf2f7;
    color: #96702d !important;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 1px;
}

html body .sector-card h2 {
    color: #142641 !important;
    font-family: "Inter","Segoe UI",Arial,sans-serif !important;
    font-size: 21px !important;
    font-weight: 600;
    line-height: 1.4;
    margin: 12px 0 0 !important;
}

html body .sector-card > p {
    flex: 1;
    color: #64748b !important;
    font-size: 13px;
    line-height: 1.8;
    margin: 0 0 18px !important;
}

/* STATUS IMPORTU */

html body .sector-status {
    display: inline-flex !important;
    align-items: center;
    gap: 7px;
    padding: 7px 10px;
    background: #f1f5f9 !important;
    color: #475569 !important;
    border: 1px solid #dce4ee;
    font-size: 10px;
    font-weight: 600;
}

.sector-status::before {
    content: "";
    width: 6px;
    height: 6px;
    background: #64748b;
    border-radius: 50% !important;
}

html body .sector-status.waiting {
    background: #fffbeb !important;
    color: #92400e !important;
    border-color: #e8d5a5;
}

.sector-status.waiting::before {
    background: #d97706;
}

/* DATA AKTUALIZACJI */

html body .sector-card dl {
    display: block !important;
    padding: 14px 0 !important;
    margin: 0 0 16px !important;
    border-top: 1px solid #dce4ee;
    border-bottom: 1px solid #dce4ee;
}

.sector-card dl > div {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 8px;
}

.sector-card dt {
    color: #64748b !important;
    font-size: 12px;
}

.sector-card dd {
    margin: 0 !important;
    color: #142641 !important;
    font-size: 13px;
    font-weight: 600;
}

/* PRZYCISKI KART */

html body .sector-card > a.btn {
    display: flex !important;
    align-items: center;
    justify-content: center;
    width: 100% !important;
    min-height: 42px;
    padding: 10px 16px !important;
    margin: 4px 0 !important;
    background: #fff !important;
    color: #142641 !important;
    border: 1px solid #cbd5e1 !important;
    box-shadow: none !important;
    font-size: 13px;
    font-weight: 600;
}

html body .sector-card > a.btn.primary {
    background: #142641 !important;
    color: #fff !important;
    border-color: #142641 !important;
}

html body .sector-card > a.btn:hover {
    background: #c6a46a !important;
    color: #142641 !important;
    border-color: #c6a46a !important;
}

/* KATALOG WYNIKOW */

html body .sector-shell .sector-results {
    display: block !important;
    width: 100% !important;
    min-width: 0 !important;
    padding: 24px !important;
    background: #fff !important;
    border: 1px solid #dce4ee !important;
    box-shadow: none !important;
}

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

.sector-results .results-head small {
    color: #96702d !important;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 1px;
}

html body .sector-results .results-head h2 {
    color: #142641 !important;
    font-size: 25px !important;
    margin: 8px 0 0 !important;
}

html body .sector-results #results-count {
    max-width: 100%;
    padding: 10px 14px;
    background: #f1f5f9 !important;
    color: #475569 !important;
    border-left: 3px solid #c6a46a;
    font-size: 12px;
    font-weight: 500;
    overflow-wrap: anywhere;
}

/* FILTRY NAD WYNIKAMI */

html body .sector-results .results-tools {
    display: grid !important;
    grid-template-columns: minmax(0,1fr) 145px 120px;
    align-items: center;
    gap: 12px;
    padding: 0 0 18px !important;
    margin: 0 !important;
    background: transparent !important;
    border: 0 !important;
}

html body .sector-results .results-tools input,
html body .sector-results .results-tools select {
    width: 100% !important;
    min-width: 0 !important;
    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: 13px;
}

html body .sector-results #record-search-btn {
    width: 100% !important;
    min-height: 46px;
    background: #142641 !important;
    color: #fff !important;
    border: 1px solid #142641 !important;
}

/* LISTA REKORDOW */

html body .sector-results .record-list {
    display: grid !important;
    grid-template-columns: minmax(0,1fr);
    gap: 8px;
    width: 100% !important;
    min-width: 0 !important;
}

html body .sector-results .record-row {
    display: grid !important;
    grid-template-columns:
        minmax(0,2fr)
        minmax(90px,.7fr)
        minmax(110px,.8fr)
        minmax(110px,1fr)
        90px;
    align-items: center;
    gap: 14px;
    width: 100% !important;
    min-width: 0 !important;
    padding: 16px !important;
    margin: 0 !important;
    background: #fff !important;
    border: 1px solid #dce4ee !important;
    border-left: 3px solid #c6a46a !important;
    box-shadow: none !important;
}

html body .sector-results .record-row:hover {
    background: #f8fafc !important;
}

/* NAZWA PODMIOTU */

html body .sector-results .record-main {
    display: flex !important;
    align-items: center;
    gap: 12px;
    min-width: 0 !important;
}

.sector-results .record-main > div {
    min-width: 0;
}

html body .sector-results .source-icon {
    display: grid !important;
    place-items: center;
    flex: 0 0 44px;
    width: 44px;
    height: 44px;
    background: #edf2f7 !important;
    color: #96702d !important;
    border: 1px solid #dce4ee;
    font-size: 11px;
    font-weight: 700;
}

html body .sector-results .record-main strong {
    display: block;
    color: #142641 !important;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.5;
    overflow-wrap: anywhere;
}

html body .sector-results .record-main small {
    display: block;
    color: #64748b !important;
    font-size: 10px;
    line-height: 1.5;
    margin-top: 6px;
    overflow-wrap: anywhere;
}

/* IDENTYFIKATORY I LOKALIZACJA */

html body .sector-results .record-meta {
    display: flex !important;
    flex-direction: column;
    gap: 5px;
    min-width: 0;
    padding: 0 !important;
    margin: 0 !important;
    background: transparent !important;
    border: 0 !important;
}

.sector-results .record-meta span {
    color: #64748b !important;
    font-size: 10px;
}

.sector-results .record-meta b {
    color: #142641 !important;
    font-size: 12px;
    font-weight: 600;
    overflow-wrap: anywhere;
    font-variant-numeric: tabular-nums;
}

html body .sector-results .record-row > a.btn {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    width: 100% !important;
    min-height: 38px;
    padding: 8px 12px !important;
    background: #142641 !important;
    color: #fff !important;
    border: 1px solid #142641 !important;
    font-size: 12px;
    box-shadow: none !important;
}

html body .sector-results .record-row > a.btn:hover {
    background: #c6a46a !important;
    color: #142641 !important;
    border-color: #c6a46a !important;
}

/* PAGINACJA */

html body .sector-results .pager {
    display: flex !important;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px;
    padding: 20px 0 0 !important;
    margin: 20px 0 0 !important;
    border-top: 1px solid #dce4ee;
}

html body .sector-results .pager button {
    min-width: 40px;
    min-height: 40px;
    padding: 8px 12px !important;
    background: #fff !important;
    color: #142641 !important;
    border: 1px solid #cbd5e1 !important;
    box-shadow: none !important;
}

html body .sector-results .pager button.active,
html body .sector-results .pager button:not(:disabled):hover {
    background: #142641 !important;
    color: #fff !important;
    border-color: #142641 !important;
}

.sector-results .pager button:disabled {
    opacity: .4 !important;
    cursor: not-allowed;
}

/* FOCUS */

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

.sector-shell :is(input,select,button,a):focus-visible {
    outline: 2px solid #96702d !important;
    outline-offset: 2px;
}

.sector-shell [hidden] {
    display: none !important;
}

/* MNIEJSZE MONITORY */

@media (max-width: 1500px) {

    html body .sector-shell .sector-layout {
        grid-template-columns: 190px minmax(0,1fr);
        gap: 16px;
    }

    html body .sector-results .record-row {
        grid-template-columns: repeat(3,minmax(0,1fr)) 90px;
    }

    html body .sector-results .record-main {
        grid-column: 1 / -1;
        padding-bottom: 12px;
        border-bottom: 1px solid #e5eaf0;
    }
}

/* TABLET */

@media (max-width: 1100px) {

    html body main.sector-shell {
        padding: 16px !important;
    }

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

    html body .sector-shell .sector-side {
        position: static !important;
        padding: 12px !important;
    }

    html body .sector-side .sector-nav {
        display: grid !important;
        grid-template-columns: repeat(5,minmax(0,1fr));
        gap: 6px;
    }

    html body .sector-nav a {
        justify-content: center;
        gap: 8px;
    }

    html body .sector-shell .sector-hero {
        padding: 26px !important;
    }
}

/* TELEFON */

@media (max-width: 700px) {

    html body main.sector-shell {
        padding: 10px !important;
    }

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

    html body .sector-side .sector-nav {
        grid-template-columns: repeat(2,minmax(0,1fr));
    }

    html body .sector-nav a {
        justify-content: flex-start;
    }

    html body .sector-shell .sector-hero,
    html body .sector-shell .sector-card,
    html body .sector-shell .sector-results {
        padding: 18px !important;
    }

    html body .sector-results .results-tools {
        grid-template-columns: minmax(0,1fr) minmax(0,1fr);
    }

    html body .sector-results .results-tools > input {
        grid-column: 1 / -1;
    }

    html body .sector-results .record-row {
        grid-template-columns: repeat(2,minmax(0,1fr));
        padding: 12px !important;
        gap: 12px;
    }

    html body .sector-results .record-main {
        grid-column: 1 / -1;
    }

    html body .sector-results .record-row > a.btn {
        grid-column: 1 / -1;
    }
}

