
/* =========================================
   PRAWNIKOM PRO - PROFIL SYNDYKA
   ========================================= */

html body .krz-professional-profile {
    --sy-navy: #142641;
    --sy-gold: #c6a46a;
    --sy-border: #dce4ee;
    --sy-muted: #64748b;
    --sy-light: #f5f7fa;

    width: 100% !important;
    max-width: none !important;
    min-width: 0;
    color: var(--sy-navy);
    font-family: "Inter","Segoe UI",Arial,sans-serif;
}

.krz-professional-profile * {
    box-sizing: border-box;
    border-radius: 0 !important;
}

html body .krz-professional-profile [hidden] {
    display: none !important;
}

.krz-professional-profile a {
    text-decoration: none !important;
}

.krz-professional-profile section[id] {
    scroll-margin-top: calc(
        var(--pp-header-offset,120px) + 20px
    );
}

/* OBSZAR ROBOCZY */

html body main.content:has([data-syndyk-root]) {
    width: 100% !important;
    max-width: none !important;
    min-width: 0;
    padding: 24px !important;
    background: #f1f5f9 !important;
}

/* NAGLOWEK STRONY */

main.content:has([data-syndyk-root]) > .page-head {
    display: flex !important;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
    padding: 24px !important;
    margin: 16px 0 !important;
    background: #fff !important;
    border: 1px solid #dce4ee !important;
    border-left: 3px solid #c6a46a !important;
}

main.content:has([data-syndyk-root]) .page-head-main {
    display: flex;
    align-items: center;
    gap: 16px;
}

main.content:has([data-syndyk-root]) .page-head-icon {
    display: grid;
    place-items: center;
    width: 52px;
    height: 52px;
    background: #edf2f7;
    color: #96702d;
}

main.content:has([data-syndyk-root]) .page-head-icon svg {
    width: 28px;
    height: 28px;
}

main.content:has([data-syndyk-root]) .page-head h1 {
    font-family: Georgia,serif;
    font-size: 30px;
    color: #142641 !important;
    margin: 5px 0;
}

main.content:has([data-syndyk-root]) .page-head p {
    color: #64748b !important;
    margin: 0;
}

/* NAWIGACJA PROFILU */

html body .syndyk-local-nav {
    display: flex !important;
    flex-wrap: wrap;
    gap: 1px;
    padding: 1px !important;
    margin-bottom: 18px !important;
    background: #dce4ee !important;
    border: 1px solid #dce4ee;
}

html body .syndyk-local-nav > a {
    flex: 1 1 120px;
    display: flex !important;
    justify-content: center;
    align-items: center;
    min-height: 48px;
    padding: 12px 20px !important;
    background: #fff !important;
    color: #142641 !important;
    font-size: 13px;
    font-weight: 600;
    transition: background .15s;
}

html body .syndyk-local-nav > a:hover {
    background: #142641 !important;
    color: #fff !important;
    box-shadow: inset 0 -3px #c6a46a !important;
}

/* HERO SYNDYKA */

html body .syndyk-hero {
    display: grid !important;
    grid-template-columns: minmax(0,1fr) 260px;
    align-items: center;
    gap: 30px;
    padding: 36px !important;
    background: linear-gradient(
        120deg,#0e1b30,#142641,#203957
    ) !important;
    color: #fff !important;
    border: 0 !important;
    border-bottom: 3px solid #c6a46a !important;
}

.syndyk-hero > div {
    min-width: 0;
}

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

html body .syndyk-hero h2 {
    color: #fff !important;
    font-family: Georgia,serif !important;
    font-size: clamp(28px,3vw,44px) !important;
    font-weight: 400;
    line-height: 1.2;
    margin: 14px 0 !important;
    overflow-wrap: anywhere;
}

html body .syndyk-hero p {
    color: #dce4ee !important;
    font-size: 15px;
    line-height: 1.7;
}

.syndyk-tags {
    display: flex !important;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 20px;
}

.syndyk-tags > span {
    display: inline-flex;
    align-items: center;
    padding: 8px 12px;
    background: #ffffff0d;
    border: 1px solid #ffffff30;
    color: #fff !important;
    font-size: 12px;
}

html body .syndyk-hero > aside {
    display: grid;
    gap: 10px;
    padding: 24px !important;
    background: #ffffff0d !important;
    border: 1px solid #ffffff30 !important;
    border-top: 3px solid #c6a46a !important;
}

.syndyk-hero > aside small {
    color: #e1bf80 !important;
    font-size: 11px;
    letter-spacing: 1px;
}

.syndyk-hero > aside b {
    color: #fff !important;
    font-family: Georgia,serif;
    font-size: 52px;
    font-weight: 400;
    line-height: 1.2;
}

.syndyk-hero > aside span {
    color: #dce4ee !important;
    font-size: 12px;
}

/* STATYSTYKI */

html body .syndyk-metrics {
    display: grid !important;
    grid-template-columns: repeat(5,minmax(0,1fr));
    gap: 14px;
    margin: 20px 0 !important;
}

html body .syndyk-metrics > article {
    display: flex !important;
    flex-direction: column;
    justify-content: center;
    gap: 10px;
    min-width: 0;
    min-height: 145px;
    padding: 22px !important;
    background: #fff !important;
    border: 1px solid #dce4ee !important;
    border-top: 3px solid #142641 !important;
    box-shadow: none !important;
}

.syndyk-metrics > article.warning {
    border-top-color: #c6a46a !important;
}

.syndyk-metrics article small {
    color: #64748b !important;
    font-size: 10px;
    font-weight: 600;
    letter-spacing: .6px;
}

html body .syndyk-metrics article b {
    color: #142641 !important;
    font-family: Georgia,serif;
    font-size: clamp(20px,2vw,34px);
    font-weight: 400;
    line-height: 1.3;
    overflow-wrap: anywhere;
}

.syndyk-metrics article span {
    color: #64748b !important;
    font-size: 12px;
    line-height: 1.6;
}

/* GLOWNY UKLAD */

html body .syndyk-grid {
    display: grid !important;
    grid-template-columns: minmax(0,1fr) minmax(300px,360px);
    align-items: start;
    gap: 20px;
}

.syndyk-grid > aside {
    display: grid;
    gap: 20px;
    min-width: 0;
    padding: 0 !important;
    margin: 0 !important;
}

/* PANELE */

html body .syndyk-card {
    display: block;
    min-width: 0;
    padding: 24px !important;
    background: #fff !important;
    border: 1px solid #dce4ee !important;
    border-top: 3px solid #c6a46a !important;
    box-shadow: none !important;
    margin: 0 !important;
}

.syndyk-card > header {
    display: flex !important;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    padding: 0 0 18px !important;
    margin: 0 0 18px !important;
    background: #fff !important;
    border-bottom: 1px solid #dce4ee;
}

.syndyk-card > header small {
    color: #96702d !important;
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 1px;
}

html body .syndyk-card h2 {
    font-family: Georgia,serif !important;
    font-size: 24px !important;
    font-weight: 400;
    line-height: 1.3;
    color: #142641 !important;
    margin: 6px 0 0 !important;
}

.syndyk-card > header .badge {
    padding: 7px 12px;
    background: #edf2f7 !important;
    color: #142641 !important;
    border: 1px solid #dce4ee;
    font-size: 12px;
}

/* FILTRY */

html body .syndyk-tools {
    display: grid !important;
    grid-template-columns: minmax(0,1fr) minmax(150px,210px);
    gap: 12px;
    padding: 0 0 18px !important;
    margin-bottom: 16px;
    background: #fff !important;
    border-bottom: 1px solid #dce4ee;
}

.syndyk-tools .field-suggest {
    position: relative;
    min-width: 0;
}

html body .syndyk-tools input {
    width: 100% !important;
    min-width: 0;
    height: 46px !important;
    padding: 12px 15px !important;
    background: #fff !important;
    color: #142641 !important;
    border: 1px solid #cbd5e1 !important;
    box-shadow: none !important;
    font-size: 13px;
}

.syndyk-tools input::placeholder {
    color: #64748b;
}

.krz-professional-profile .smart-select {
    position: relative;
    display: block;
    min-width: 0;
    width: 100%;
}

html body .krz-professional-profile .smart-select
:where(.smart-select-trigger) {
    display: flex !important;
    align-items: center;
    justify-content: space-between;
    width: 100% !important;
    min-height: 46px;
    padding: 10px 14px !important;
    background: #fff !important;
    color: #142641 !important;
    border: 1px solid #cbd5e1 !important;
    box-shadow: none !important;
    font-size: 13px;
}

.krz-professional-profile .smart-select-trigger i {
    color: #96702d;
    font-style: normal;
}

/* UKRYCIE PODWOJNEGO SELECTA */

html body .krz-professional-profile
.smart-select:has(.smart-select-trigger)
> select.smart-select-native[data-smart-select-ready="1"] {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    min-height: 0 !important;
    min-width: 0 !important;
    padding: 0 !important;
    margin: 0 !important;
    border: 0 !important;
    opacity: 0 !important;
    clip-path: inset(50%) !important;
    pointer-events: none !important;
}

/* LISTA POSTEPOWAN */

[data-syndyk-list] {
    display: grid;
    gap: 12px;
}

html body .syndyk-case {
    display: grid !important;
    grid-template-columns: 100px minmax(0,1fr) 145px 24px;
    align-items: center;
    gap: 18px;
    padding: 20px !important;
    background: #fff !important;
    color: #142641 !important;
    border: 1px solid #dce4ee !important;
    border-left: 3px solid #c6a46a !important;
    text-decoration: none !important;
}

html body .syndyk-case:hover {
    background: #f5f7fa !important;
    border-color: #c6a46a !important;
}

.syndyk-case time {
    align-self: start;
    padding: 8px;
    background: #edf2f7;
    color: #142641;
    font-size: 12px;
    font-weight: 600;
    text-align: center;
}

.syndyk-case > div {
    min-width: 0;
}

.syndyk-case small {
    color: #96702d !important;
    font-size: 11px;
}

html body .syndyk-case h3 {
    color: #142641 !important;
    font-family: "Inter","Segoe UI",Arial,sans-serif;
    font-size: 17px !important;
    font-weight: 600;
    margin: 8px 0 !important;
    overflow-wrap: anywhere;
}

.syndyk-case p {
    color: #64748b !important;
    font-size: 13px;
    line-height: 1.7;
    margin: 0;
}

.syndyk-case > strong {
    display: grid;
    gap: 6px;
    padding: 12px;
    background: #fff8eb;
    color: #855b16 !important;
    border: 1px solid #ead9b5;
    font-size: 12px;
    font-weight: 600;
}

.syndyk-case > strong em {
    font-size: 11px;
    font-style: normal;
    font-weight: 400;
}

.syndyk-case > span {
    color: #96702d !important;
    font-size: 22px;
}

/* PAGINACJA */

html body .syndyk-pages {
    display: flex !important;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    padding-top: 20px;
    margin-top: 20px;
    border-top: 1px solid #dce4ee;
}

.syndyk-pages > span {
    color: #64748b;
    font-size: 12px;
}

html body .syndyk-pages button {
    min-height: 40px;
    padding: 10px 16px;
    background: #fff !important;
    color: #142641 !important;
    border: 1px solid #cbd5e1 !important;
}

.syndyk-pages button:disabled {
    opacity: .4;
    cursor: not-allowed;
}

/* WYKRES AKTYWNOSCI */

#aktywnosc > header .smart-select {
    width: 130px;
    max-width: 100%;
}

html body .syndyk-period-chart {
    display: flex !important;
    align-items: stretch;
    justify-content: flex-start;
    gap: 10px;
    min-height: 190px;
    padding: 18px 10px !important;
    background: #f8fafc;
    border: 1px solid #dce4ee;
    overflow-x: auto;
}

.syndyk-period-chart > div {
    display: grid !important;
    grid-template-rows: 130px auto auto;
    align-items: end;
    justify-items: center;
    gap: 8px;
    flex: 1 0 38px;
    max-width: 70px;
}

html body .syndyk-period-chart > div > i {
    display: block !important;
    width: 100%;
    max-width: 44px;
    height: var(--h,0%);
    background: linear-gradient(
        180deg,#294b70,#142641
    ) !important;
    box-shadow: inset 0 3px #c6a46a;
}

.syndyk-period-chart b {
    color: #142641;
    font-size: 16px;
}

.syndyk-period-chart small {
    color: #64748b;
    font-size: 11px;
}

.syndyk-chart-caption {
    color: #64748b;
    font-size: 12px;
    line-height: 1.7;
    margin: 14px 0 0;
}

/* KOMPLETNOSC DANYCH */

.syndyk-completion {
    display: grid;
    gap: 20px;
}

.syndyk-completion > div {
    display: grid !important;
    grid-template-columns: minmax(0,1fr) auto;
    align-items: center;
    gap: 10px;
}

.syndyk-completion span {
    color: #475569 !important;
    font-size: 13px;
}

.syndyk-completion b {
    color: #142641 !important;
    font-size: 14px;
}

html body .syndyk-completion > div > i {
    grid-column: 1 / -1;
    display: block !important;
    width: 100%;
    height: 7px;
    background: #e8edf3;
    overflow: hidden;
}

html body .syndyk-completion em {
    display: block !important;
    width: var(--w,0%);
    height: 100%;
    background: linear-gradient(
        90deg,#142641,#c6a46a
    ) !important;
}

.syndyk-note {
    padding: 14px;
    margin: 20px 0 0;
    background: #f5f7fa;
    border-left: 3px solid #c6a46a;
    color: #64748b !important;
    font-size: 12px;
    line-height: 1.8;
}

/* SYGNALY DO WERYFIKACJI */

html body .syndyk-flag {
    display: grid;
    gap: 10px;
    padding: 18px !important;
    background: #fffbf2 !important;
    border: 1px solid #ead9b5 !important;
    border-left: 3px solid #c6a46a !important;
}

.syndyk-flag b {
    color: #855b16 !important;
    font-size: 14px;
    line-height: 1.5;
}

.syndyk-flag small {
    color: #96702d;
    font-size: 12px;
    font-weight: 600;
    overflow-wrap: anywhere;
}

.syndyk-flag p {
    color: #475569 !important;
    font-size: 13px;
    line-height: 1.8;
    margin: 0;
}

/* FOCUS */

.krz-professional-profile :is(a,button,input):focus {
    box-shadow: none !important;
}

.krz-professional-profile :is(a,button,input):focus-visible {
    outline: 2px solid #96702d !important;
    outline-offset: 3px;
}

/* TABLET */

@media (max-width: 1400px) {

    html body .syndyk-case {
        grid-template-columns: 90px minmax(0,1fr) 24px;
        gap: 12px;
    }

    .syndyk-case > strong {
        grid-column: 2;
        grid-row: 2;
    }

    .syndyk-case > span {
        grid-column: 3;
        grid-row: 1;
    }

    html body .syndyk-metrics > article {
        padding: 16px !important;
    }
}

@media (max-width: 1100px) {

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

    .syndyk-grid > aside {
        grid-template-columns: repeat(2,minmax(0,1fr));
    }

    html body .syndyk-metrics {
        grid-template-columns: repeat(3,minmax(0,1fr));
    }
}

/* TELEFON */

@media (max-width: 700px) {

    html body main.content:has([data-syndyk-root]) {
        padding: 12px !important;
    }

    html body .syndyk-hero {
        grid-template-columns: minmax(0,1fr);
        padding: 22px !important;
        gap: 20px;
    }

    html body .syndyk-metrics {
        grid-template-columns: repeat(2,minmax(0,1fr));
        gap: 10px;
    }

    .syndyk-metrics > article:last-child {
        grid-column: 1 / -1;
    }

    html body .syndyk-metrics > article {
        min-height: 120px;
    }

    .syndyk-grid > aside,
    html body .syndyk-tools {
        grid-template-columns: minmax(0,1fr);
    }

    html body .syndyk-card {
        padding: 16px !important;
    }

    html body .syndyk-case {
        grid-template-columns: minmax(0,1fr) 24px;
        padding: 14px !important;
    }

    .syndyk-case time {
        grid-column: 1;
        grid-row: 1;
        justify-self: start;
    }

    .syndyk-case > div {
        grid-column: 1 / -1;
        grid-row: 2;
    }

    .syndyk-case > strong {
        grid-column: 1 / -1;
        grid-row: 3;
    }

    .syndyk-case > span {
        grid-column: 2;
        grid-row: 1;
    }

    .syndyk-local-nav > a {
        flex-basis: 40%;
    }
}

/* WYDRUK */

@media print {

    .syndyk-local-nav,
    .syndyk-tools,
    .syndyk-pages {
        display: none !important;
    }

    html body .syndyk-grid {
        display: block !important;
    }

    html body .syndyk-hero {
        background: #fff !important;
        border: 1px solid #ccc !important;
    }

    .syndyk-hero * {
        color: #142641 !important;
    }

    .syndyk-card {
        break-inside: avoid;
    }
}

