
/* PRAWNIKOM PRO — KATALOG PRAWNIKOW */

#main-content:has([data-pro-workspace="lawyers"]) {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    padding: 24px !important;
    background: #f1f5f9;
    color: #142641;
    box-sizing: border-box;
}

[data-module-workspace="directory"] *,
[data-pro-workspace="lawyers"] * {
    box-sizing: border-box;
}

[data-module-workspace="directory"] .ui-icon,
[data-pro-workspace="lawyers"] .pp-pro-icon {
    width: 22px !important;
    height: 22px !important;
    flex-shrink: 0;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.6;
    stroke-linecap: round;
    stroke-linejoin: round;
}

/* PASEK FUNKCJI PRO */

[data-pro-workspace="lawyers"] {
    width: 100%;
    margin-bottom: 20px;
}

[data-pro-workspace="lawyers"] .pp-pro-commandbar {
    display: grid !important;
    grid-template-columns: 280px minmax(0,1fr) auto;
    align-items: stretch;
    gap: 12px;
    padding: 16px;
    background: linear-gradient(120deg,#0e1b30,#203957);
    border-bottom: 3px solid #c6a46a;
}

[data-pro-workspace="lawyers"] .pp-pro-brand {
    display: flex !important;
    align-items: center;
    justify-content: flex-start;
    gap: 14px;
    padding: 16px !important;
    text-align: left;
    white-space: normal;
    background: #ffffff08 !important;
    border: 1px solid #ffffff25 !important;
    border-radius: 0 !important;
}

[data-pro-workspace="lawyers"] .pp-pro-brand-icon {
    display: grid;
    place-items: center;
    width: 46px;
    height: 46px;
    flex-shrink: 0;
    border: 1px solid #c6a46a66;
    color: #c6a46a;
}

[data-pro-workspace="lawyers"] .pp-pro-brand small {
    display: block;
    margin-bottom: 6px;
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #c6a46a;
}

[data-pro-workspace="lawyers"] .pp-pro-brand strong {
    display: block;
    font-size: 16px;
    color: white;
}

[data-pro-workspace="lawyers"] .pp-pro-quick {
    display: grid !important;
    grid-template-columns: repeat(3,minmax(0,1fr));
    gap: 10px;
    min-width: 0;
}

[data-pro-workspace="lawyers"] .pp-pro-quick > a {
    display: grid !important;
    grid-template-columns: 24px minmax(0,1fr);
    align-content: center;
    align-items: center;
    gap: 6px 12px;
    padding: 16px;
    background: #ffffff08;
    border: 1px solid #ffffff20;
    color: white !important;
    text-decoration: none !important;
}

[data-pro-workspace="lawyers"] .pp-pro-quick svg {
    grid-row: 1/3;
    color: #c6a46a;
}

[data-pro-workspace="lawyers"] .pp-pro-quick span {
    font-size: 13px;
    font-weight: 600;
    color: white !important;
}

[data-pro-workspace="lawyers"] .pp-pro-quick em {
    grid-column: 2;
    font-size: 12px;
    font-style: normal;
    color: #e2c48c;
}

[data-pro-workspace="lawyers"] .pp-pro-quick > a:hover {
    background: #ffffff15;
    border-color: #c6a46a;
}

[data-pro-workspace="lawyers"] .pp-pro-all {
    align-self: center;
    background: #c6a46a !important;
    color: #142641 !important;
    border: 0 !important;
    border-radius: 0 !important;
}

/* NAGLOWEK */

#main-content:has([data-pro-workspace="lawyers"]) > .page-head {
    display: flex !important;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 20px;
    padding: 24px !important;
    margin-bottom: 20px !important;
    background: white;
    border: 1px solid #d7e0eb;
    border-left: 4px solid #c6a46a;
}

#main-content:has([data-pro-workspace="lawyers"]) .page-head-main {
    display: flex !important;
    align-items: center;
    gap: 18px;
    flex: 1;
    min-width: 0;
}

#main-content:has([data-pro-workspace="lawyers"]) .page-head-icon {
    display: grid;
    place-items: center;
    width: 64px;
    height: 64px;
    flex-shrink: 0;
    background: #142641;
    color: #c6a46a;
}

#main-content:has([data-pro-workspace="lawyers"]) .page-head-icon svg {
    width: 30px !important;
    height: 30px !important;
}

#main-content:has([data-pro-workspace="lawyers"]) .page-head h1 {
    display: block !important;
    margin: 4px 0;
    font-family: Georgia,serif;
    font-size: 30px;
    color: #142641;
}

#main-content:has([data-pro-workspace="lawyers"]) .page-head p {
    margin: 5px 0;
    font-size: 13px;
    color: #64748b;
}

#main-content:has([data-pro-workspace="lawyers"]) .head-actions {
    display: flex !important;
    flex-wrap: wrap;
    gap: 10px;
}

#main-content:has([data-pro-workspace="lawyers"]) [data-lawyer-import-all] {
    background: #142641 !important;
    color: white !important;
    border-radius: 0 !important;
}

#main-content:has([data-pro-workspace="lawyers"]) .head-actions svg {
    color: #c6a46a;
}

/* UKLAD MODULU */

[data-module-workspace="directory"] {
    display: grid !important;
    grid-template-columns: 230px minmax(0,1fr) !important;
    align-items: start;
    gap: 20px;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
}

[data-module-workspace="directory"] > .module-rail {
    position: relative !important;
    inset: auto !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    height: auto !important;
    margin: 0 !important;
    padding: 0 !important;
    background: white;
    border: 1px solid #d7e0eb;
}

[data-module-workspace="directory"] .module-rail > header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 20px;
    background: #142641;
    color: white;
    border-bottom: 3px solid #c6a46a;
}

[data-module-workspace="directory"] .module-rail-mark {
    color: #c6a46a;
}

[data-module-workspace="directory"] .module-rail header b,
[data-module-workspace="directory"] .module-rail header small {
    display: block;
    color: white;
}

[data-module-workspace="directory"] .module-rail header small {
    font-size: 11px;
    color: #b6c4d6;
}

[data-module-workspace="directory"] .module-rail nav {
    display: grid !important;
    grid-template-columns: minmax(0,1fr);
    gap: 5px;
    padding: 12px;
}

[data-module-workspace="directory"] .module-rail nav a {
    display: flex !important;
    align-items: center;
    gap: 12px;
    min-height: 48px;
    padding: 12px;
    color: #142641 !important;
    border-left: 3px solid transparent;
    border-radius: 0 !important;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none !important;
}

[data-module-workspace="directory"] .module-rail nav a i {
    display: flex;
    color: #96702d;
}

[data-module-workspace="directory"] .module-rail nav a:hover {
    background: #f1f5f9;
}

[data-module-workspace="directory"] .module-rail nav a.active,
[data-module-workspace="directory"] .module-rail nav a[aria-current="page"] {
    background: #142641 !important;
    color: white !important;
    border-left-color: #c6a46a;
}

[data-module-workspace="directory"] .module-rail nav a.active i {
    color: #c6a46a;
}

[data-module-workspace="directory"] .module-rail footer {
    display: block;
    padding: 16px;
    border-top: 1px solid #d7e0eb;
    font-size: 11px;
    color: #64748b;
}

[data-module-workspace="directory"] .module-rail footer small {
    display: block;
}

/* GLOWNA KOLUMNA */

[data-module-workspace="directory"] > .module-canvas,
[data-module-workspace="directory"] .module-canvas-scroll {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    height: auto !important;
    overflow: visible !important;
    padding: 0 !important;
    margin: 0 !important;
}

[data-module-workspace="directory"] .module-workspace-bar {
    display: flex !important;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    padding: 18px;
    margin-bottom: 16px;
    background: white;
    border: 1px solid #d7e0eb;
}

[data-module-workspace="directory"] .module-workspace-bar > div {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
}

[data-module-workspace="directory"] .module-workspace-bar svg {
    color: #96702d;
}

[data-module-workspace="directory"] .module-workspace-bar b {
    font-family: Georgia,serif;
    font-size: 20px;
    color: #142641;
}

[data-module-workspace="directory"] .module-workspace-bar small {
    font-size: 12px;
    color: #64748b;
}

/* BANNER KATALOGU */

[data-module-workspace="directory"] .pp-section-hero {
    display: grid !important;
    grid-template-columns: minmax(0,1fr) minmax(180px,36%);
    align-items: center;
    gap: 20px;
    padding: 30px;
    margin-bottom: 18px;
    min-height: 230px;
    background: linear-gradient(120deg,#0e1b30,#203957);
    border-bottom: 3px solid #c6a46a;
    overflow: hidden;
}

[data-module-workspace="directory"] .pp-section-hero h1 {
    font-family: Georgia,serif;
    font-size: clamp(28px,3vw,44px);
    color: white !important;
    margin: 16px 0;
}

[data-module-workspace="directory"] .pp-section-hero p {
    color: #cbd5e1 !important;
    font-size: 15px;
}

[data-module-workspace="directory"] .pp-section-hero-crumbs,
[data-module-workspace="directory"] .pp-section-hero-crumbs a {
    color: #e2c48c !important;
    font-size: 12px;
}

[data-module-workspace="directory"] .pp-section-hero-art {
    display: block;
    width: 100% !important;
    height: auto !important;
    max-height: 220px;
    object-fit: contain;
}

[data-module-workspace="directory"] .department-return-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: 0 0 16px;
    color: #64748b !important;
    font-size: 12px;
}

/* STATYSTYKI KATALOGU */

[data-module-workspace="directory"] .expert-directory-hero {
    display: grid;
    grid-template-columns: minmax(0,1fr) minmax(260px,40%);
    align-items: center;
    gap: 24px;
    padding: 24px;
    margin-bottom: 20px;
    background: white;
    border: 1px solid #d7e0eb;
    border-left: 4px solid #c6a46a;
}

.expert-directory-hero .eyebrow {
    color: #96702d;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.expert-directory-hero h2 {
    margin: 10px 0;
    font-family: Georgia,serif;
    font-size: 24px;
    color: #142641;
}

.expert-directory-hero p {
    font-size: 13px;
    color: #64748b;
    line-height: 1.7;
}

.expert-directory-hero dl {
    display: grid;
    grid-template-columns: repeat(3,minmax(0,1fr));
    gap: 10px;
    margin: 0;
}

.expert-directory-hero dl > div {
    padding: 16px 10px;
    background: #f1f5f9;
    border-top: 2px solid #c6a46a;
    text-align: center;
}

.expert-directory-hero dt {
    font-size: 11px;
    color: #64748b;
}

.expert-directory-hero dd {
    margin: 8px 0 0;
    font-size: clamp(16px,1.5vw,25px);
    font-weight: 700;
    color: #142641;
}

/* KATEGORIE ZAWODOW */

[data-module-workspace="directory"] .expert-profession-rail {
    display: grid !important;
    grid-template-columns: repeat(4,minmax(0,1fr)) !important;
    gap: 12px;
    width: 100% !important;
    max-width: 100% !important;
    overflow: visible !important;
    margin: 0 0 20px !important;
    padding: 0 !important;
}

.expert-profession-rail .professional-catalog-tile {
    display: flex !important;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 10px;
    width: 100% !important;
    min-width: 0 !important;
    min-height: 125px;
    padding: 18px !important;
    background: white;
    border: 1px solid #d7e0eb;
    border-radius: 0 !important;
    color: #142641 !important;
    white-space: normal !important;
    text-decoration: none !important;
}

.expert-profession-rail .professional-catalog-tile > span {
    display: grid;
    place-items: center;
    width: 38px;
    height: 38px;
    background: #f1eadc;
    color: #96702d;
}

.expert-profession-rail .professional-catalog-tile b {
    font-size: 14px;
    line-height: 1.4;
    white-space: normal !important;
    overflow-wrap: anywhere;
}

.expert-profession-rail .professional-catalog-tile small {
    font-size: 12px;
    color: #64748b;
}

.expert-profession-rail .professional-catalog-tile:hover {
    border-color: #c6a46a;
    background: #faf8f3;
}

.expert-profession-rail .professional-catalog-tile.active {
    background: #142641 !important;
    color: white !important;
    border-bottom: 3px solid #c6a46a;
}

.expert-profession-rail .professional-catalog-tile.active small {
    color: #e2c48c;
}

/* FILTRY WYSZUKIWANIA */

[data-module-workspace="directory"]
.portal-horizontal-drawer:has(.expert-directory-filters) {
    display: block;
    width: 100%;
    margin-bottom: 20px;
    background: white;
    border: 1px solid #d7e0eb;
    overflow: visible !important;
}

[data-module-workspace="directory"]
.portal-horizontal-drawer:has(.expert-directory-filters) > summary {
    padding: 18px 22px;
    font-family: Georgia,serif;
    font-size: 20px;
    font-weight: 600;
    color: #142641;
    cursor: pointer;
    border-left: 3px solid #c6a46a;
}

.expert-directory-filters {
    display: grid !important;
    grid-template-columns: minmax(0,2fr) minmax(180px,1fr);
    align-items: center;
    gap: 14px;
    padding: 20px !important;
    margin: 0 !important;
    background: white;
    border: 0 !important;
    overflow: visible !important;
}

.expert-directory-filters .field-suggest,
.expert-directory-filters .smart-select {
    position: relative;
    display: block;
    width: 100% !important;
    min-width: 0;
}

.expert-directory-filters input,
.expert-directory-filters select,
.expert-directory-filters .smart-select-trigger {
    width: 100% !important;
    min-width: 0;
    min-height: 48px;
    padding: 12px 16px !important;
    background: #f8fafc !important;
    color: #142641 !important;
    border: 1px solid #cbd5e1 !important;
    border-radius: 0 !important;
    font-size: 14px;
    font-family: inherit;
}

.expert-directory-filters input:focus,
.expert-directory-filters select:focus,
.expert-directory-filters .smart-select-trigger:focus-visible {
    outline: 2px solid #c6a46a !important;
    outline-offset: 1px;
}

.expert-directory-filters .smart-select-trigger {
    display: flex !important;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    text-align: left;
}

.expert-directory-filters .smart-select-trigger i {
    color: #96702d;
}

/* Ukrycie zdublowanego selecta tylko gdy dziala komponent */

.expert-directory-filters
.smart-select:has(> .smart-select-trigger)
> select[data-smart-select-ready="1"] {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    min-height: 0 !important;
    padding: 0 !important;
    opacity: 0 !important;
    clip-path: inset(50%);
    pointer-events: none;
}

.expert-directory-filters .field-suggest-panel:not([hidden]) {
    position: absolute;
    top: calc(100% + 5px);
    left: 0;
    right: 0;
    max-height: 320px;
    overflow-y: auto;
    background: white;
    border: 1px solid #cbd5e1;
    box-shadow: 0 8px 24px #14264118;
    z-index: 100;
}

.expert-directory-filters .field-suggest-panel[hidden] {
    display: none !important;
}

/* LISTA PRAWNIKOW */

[data-module-workspace="directory"] .expert-lawyer-grid {
    display: grid !important;
    grid-template-columns: minmax(0,1fr) !important;
    gap: 14px;
    width: 100% !important;
    max-width: 100% !important;
}

.expert-lawyer-grid .lawyer-card {
    display: grid !important;
    grid-template-columns: 76px minmax(0,1fr) 150px;
    align-items: center;
    gap: 20px;
    width: 100% !important;
    min-width: 0 !important;
    padding: 24px !important;
    margin: 0 !important;
    background: white;
    border: 1px solid #d7e0eb;
    border-left: 3px solid #c6a46a;
    border-radius: 0 !important;
    transition: border-color .15s,box-shadow .15s;
}

.expert-lawyer-grid .lawyer-card:hover {
    border-color: #c6a46a;
    box-shadow: 0 4px 16px #1426410c;
}

.expert-lawyer-grid .lawyer-avatar {
    display: grid !important;
    place-items: center;
    width: 76px !important;
    height: 76px !important;
    background: #142641 !important;
    color: #e2c48c !important;
    border: 1px solid #c6a46a;
    border-radius: 0 !important;
    font-family: Georgia,serif;
    font-size: 26px;
    font-weight: 600;
}

.expert-lawyer-grid .lawyer-card > div {
    min-width: 0;
}

.expert-lawyer-grid .lawyer-card h3 {
    margin: 10px 0 5px;
    font-family: Georgia,serif;
    font-size: 23px;
    font-weight: 600;
    color: #142641;
    white-space: normal !important;
    overflow-wrap: anywhere;
}

.expert-lawyer-grid .lawyer-card p {
    margin: 0 0 14px;
    font-size: 14px;
    color: #64748b;
}

.expert-lawyer-grid .badge.green {
    display: inline-flex;
    align-items: center;
    padding: 4px 9px;
    background: #edf7f0 !important;
    color: #166534 !important;
    border: 1px solid #bbdfc5;
    border-radius: 0 !important;
    font-size: 11px;
    font-weight: 600;
}

/* DANE REJESTROWE */

.expert-lawyer-grid .lawyer-card-meta {
    display: flex !important;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 10px;
}

.expert-lawyer-grid .lawyer-card-meta > span {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
    max-width: 100%;
    padding: 8px 10px;
    background: #f5f7fa;
    border: 1px solid #e2e8f0;
    font-size: 12px;
    color: #142641;
    overflow-wrap: anywhere;
}

.expert-lawyer-grid .lawyer-card-meta b {
    font-size: 11px;
    color: #64748b;
}

.expert-lawyer-grid .lawyer-card-meta svg {
    width: 16px !important;
    height: 16px !important;
    color: #96702d;
}

/* PRZYCISK PROFILU */

.expert-lawyer-grid .lawyer-card > div:last-child {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
}

.expert-lawyer-grid .lawyer-card .rating {
    color: #64748b;
    font-size: 11px;
    text-align: center;
}

.expert-lawyer-grid .lawyer-card a[href*="/profil-prawnika"] {
    display: flex !important;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 10px 18px !important;
    background: #142641 !important;
    color: white !important;
    border: 1px solid #c6a46a !important;
    border-radius: 0 !important;
    text-decoration: none !important;
    font-size: 13px;
}

.expert-lawyer-grid .lawyer-card a[href*="/profil-prawnika"]:hover {
    background: #263e5e !important;
}

/* PAGINACJA */

[data-module-workspace="directory"] .catalog-pagination {
    display: flex !important;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 14px;
    padding: 20px;
    margin-top: 20px;
    background: white;
    border: 1px solid #d7e0eb;
}

.catalog-pagination > span {
    font-size: 13px;
    color: #64748b;
}

[data-module-workspace="directory"] .catalog-pagination a {
    min-height: 42px;
    padding: 10px 18px;
    border-radius: 0 !important;
    color: #142641 !important;
}

[data-module-workspace="directory"] .catalog-pagination a.disabled {
    opacity: .45;
    pointer-events: none;
}

/* PANEL WYSUWANY PRO */

[data-pro-workspace="lawyers"] .pp-pro-backdrop[hidden] {
    display: none !important;
}

[data-pro-workspace="lawyers"] .pp-pro-backdrop:not([hidden]) {
    position: fixed !important;
    inset: 0 !important;
    display: flex !important;
    justify-content: flex-end;
    background: #0e1b3080;
    z-index: 40000 !important;
}

[data-pro-workspace="lawyers"] .pp-pro-drawer {
    display: flex;
    flex-direction: column;
    width: min(620px,100vw);
    height: 100%;
    background: white;
    box-shadow: -10px 0 40px #0002;
}

[data-pro-workspace="lawyers"] .pp-pro-drawer-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 20px;
    background: #142641;
    color: white;
    border-bottom: 3px solid #c6a46a;
}

[data-pro-workspace="lawyers"] .pp-pro-drawer-top > span {
    display: flex;
    align-items: center;
    gap: 12px;
}

[data-pro-workspace="lawyers"] .pp-pro-drawer-top svg {
    color: #c6a46a;
}

[data-pro-workspace="lawyers"] .pp-pro-drawer-body {
    flex: 1;
    min-height: 0;
    padding: 24px;
    overflow-y: auto;
}

[data-pro-workspace="lawyers"] .pp-pro-toast:empty,
[data-module-workspace="directory"] .module-scroll-dock[hidden] {
    display: none !important;
}

/* TABLET */

@media(max-width:1300px) {

    [data-pro-workspace="lawyers"] .pp-pro-commandbar {
        grid-template-columns: minmax(0,1fr) auto;
    }

    [data-pro-workspace="lawyers"] .pp-pro-quick {
        grid-column: 1/-1;
        grid-row: 2;
    }

    [data-module-workspace="directory"] .expert-directory-hero {
        grid-template-columns: minmax(0,1fr);
    }

    [data-module-workspace="directory"] .expert-profession-rail {
        grid-template-columns: repeat(3,minmax(0,1fr)) !important;
    }
}

@media(max-width:1000px) {

    [data-module-workspace="directory"] {
        grid-template-columns: minmax(0,1fr) !important;
    }

    [data-module-workspace="directory"] .module-rail nav {
        grid-template-columns: repeat(3,minmax(0,1fr));
    }

    [data-module-workspace="directory"] .module-rail footer {
        display: none;
    }
}

/* TELEFON */

@media(max-width:650px) {

    #main-content:has([data-pro-workspace="lawyers"]) {
        padding: 12px !important;
    }

    [data-pro-workspace="lawyers"] .pp-pro-commandbar,
    [data-pro-workspace="lawyers"] .pp-pro-quick {
        grid-template-columns: minmax(0,1fr);
    }

    [data-pro-workspace="lawyers"] .pp-pro-quick {
        grid-row: auto;
    }

    [data-module-workspace="directory"] .module-rail nav,
    [data-module-workspace="directory"] .expert-profession-rail {
        grid-template-columns: repeat(2,minmax(0,1fr)) !important;
    }

    [data-module-workspace="directory"] .pp-section-hero {
        grid-template-columns: minmax(0,1fr);
        padding: 22px;
    }

    [data-module-workspace="directory"] .pp-section-hero-art {
        max-height: 150px;
    }

    .expert-directory-filters {
        grid-template-columns: minmax(0,1fr);
        padding: 14px !important;
    }

    .expert-lawyer-grid .lawyer-card {
        grid-template-columns: 48px minmax(0,1fr);
        gap: 12px;
        padding: 16px !important;
    }

    .expert-lawyer-grid .lawyer-avatar {
        width: 48px !important;
        height: 48px !important;
        font-size: 20px;
    }

    .expert-lawyer-grid .lawyer-card h3 {
        font-size: 20px;
    }

    .expert-lawyer-grid .lawyer-card > div:last-child {
        grid-column: 1/-1;
    }

    .expert-lawyer-grid .lawyer-card-meta {
        flex-direction: column;
    }

    .expert-lawyer-grid .lawyer-card-meta > span {
        width: 100%;
    }

    .expert-directory-hero dl {
        gap: 5px;
    }
}

