/* Portal-only surfaces shared by the profile's maps, network and timeline. */
:is([data-theme="prism"],[data-theme="graphite"]) .pg-workspace-view.pg-portal .pg-company-main > .pg-hero {
  border:0;border-radius:0;background:transparent;
}
:is([data-theme="prism"],[data-theme="graphite"]) .pg-workspace-view.pg-portal .pg-company-main > .pg-hero > .card-body {
  position:relative;z-index:1;padding:0 0 1rem;gap:.85rem;pointer-events:none;
}
:is([data-theme="prism"],[data-theme="graphite"]) .pg-workspace-view.pg-portal .pg-company-main > .pg-hero > .card-body > * {pointer-events:auto;}
:is([data-theme="prism"],[data-theme="graphite"]) .pg-workspace-view.pg-portal .pg-company-main > .pg-hero > .pg-company-map {
  top:calc(0rem - var(--pg-profile-header-gutter));bottom:-.8rem;right:auto;
  left:var(--pg-profile-pane-offset-live,var(--pg-profile-header-pane-offset));
  width:var(--pg-profile-pane-width-live,var(--pg-profile-header-pane-width));height:auto;
  border-radius:0;opacity:1;pointer-events:none;
}
:is([data-theme="prism"],[data-theme="graphite"]) .pg-workspace-view.pg-portal .pg-company-main > .pg-hero > .pg-company-map::before {
  background:linear-gradient(90deg,color-mix(in srgb,var(--color-base-100) 97%,transparent) 0%,color-mix(in srgb,var(--color-base-100) 92%,transparent) 28%,color-mix(in srgb,var(--color-base-100) 62%,transparent) 57%,color-mix(in srgb,var(--color-base-100) 12%,transparent) 100%);
}
:is([data-theme="prism"],[data-theme="graphite"]) .pg-workspace-view.pg-portal .pg-company-main > .pg-hero > .pg-company-map iframe {inset:-8%;width:116%;height:116%;filter:saturate(.65) contrast(.92);}
:is([data-theme="prism"],[data-theme="graphite"]) .pg-workspace-view.pg-portal .pg-company-main > .pg-hero > .pg-company-map > a {right:.5rem;bottom:.15rem;pointer-events:auto;}
html[data-portal-guest="1"] .pg-workspace-view.pg-portal .pg-company-main > .pg-hero > .pg-company-map {top:0;}
html[data-portal-guest="1"] .pg-workspace-view.pg-portal .pg-company-main > .pg-hero > .card-body {padding-top:.5rem;}
:is([data-theme="prism"],[data-theme="graphite"]) .pg-workspace-view.pg-portal .pg-company-main > .pg-hero > .pg-company-map:not(.hidden) {display:block;}
:is([data-theme="prism"],[data-theme="graphite"]) .pg-workspace-view.pg-portal .pg-company-action-buttons > :is(button,a),
:is([data-theme="prism"],[data-theme="graphite"]) .pg-workspace-view.pg-portal .pg-company-action-buttons > details > summary {background:color-mix(in srgb,var(--color-base-100) 95%,transparent);}
:is([data-theme="prism"],[data-theme="graphite"]) .pg-workspace-view.pg-portal #pg-registry-badges .badge {background:var(--color-base-100);color:var(--color-base-content);}
:is([data-theme="prism"],[data-theme="graphite"]) .pg-workspace-view.pg-portal #pg-registry-badges .badge-warning {background:color-mix(in srgb,var(--color-warning) 14%,var(--color-base-100));color:var(--color-base-content);border-color:var(--color-warning);}

/* One daisyUI tooltip above the page prevents clipping by the hero, map or KPI cards. */
.pg-profile-tooltip.tooltip {position:fixed;inset:auto;z-index:1600;width:max-content;max-width:min(24rem,calc(100vw - 1rem));margin:0;padding:0;border:0;background:transparent;overflow:visible;pointer-events:auto;}
.pg-profile-tooltip::backdrop {background:transparent;pointer-events:none;}
.pg-profile-tooltip.pg-contract-floating-tooltip {width:min(18rem,calc(100vw - 1rem));}
.pg-contract-counterparty[data-pg-contract-tip] > .tooltip-content {display:none!important;}
.pg-contract-counterparty[data-pg-contract-tip]::before,.pg-contract-counterparty[data-pg-contract-tip]::after {display:none!important;}
.pg-profile-tooltip.tooltip[hidden] {display:none;}
.pg-profile-tooltip.tooltip::before,.pg-profile-tooltip.tooltip::after {display:none;}
.pg-profile-tooltip.tooltip > .tooltip-content {position:static;inset:auto;transform:none;translate:none;width:auto;max-width:100%;max-height:calc(100dvh - 1rem);overflow-y:auto;white-space:normal;overflow-wrap:anywhere;text-align:left;font-family:inherit;font-size:.75rem;font-weight:500;line-height:1.5;padding:.65rem .8rem;border-radius:var(--radius-field,.4rem);background:var(--color-neutral);color:var(--color-neutral-content);box-shadow:0 4px 16px color-mix(in srgb,var(--color-base-content) 18%,transparent);opacity:1;visibility:visible;}
.pg-workspace-view.pg-portal .pg-hero [data-pg-tooltip]:focus-visible {outline:2px solid var(--color-primary);outline-offset:3px;}

:is([data-theme="prism"],[data-theme="graphite"]) .pg-workspace-view.pg-portal :is(#pg-history-slot,#pg-relationships-graph,#pg-relationships-controls,#pg-relationships-details) .card {
  border:1px solid var(--color-base-300);border-radius:var(--radius-box,.6rem);background:var(--color-base-100);box-shadow:none;
}
:is([data-theme="prism"],[data-theme="graphite"]) .pg-workspace-view.pg-portal :is(.pg-history-heading,.pg-network-heading) {margin:0;min-height:2rem;}
:is([data-theme="prism"],[data-theme="graphite"]) .pg-workspace-view.pg-portal .pg-network-heading h3 {display:flex;align-items:center;gap:.55rem;font-size:.88rem;font-weight:750;color:var(--color-base-content);}
:is([data-theme="prism"],[data-theme="graphite"]) .pg-workspace-view.pg-portal .pg-network-heading > span {font-size:.65rem;letter-spacing:.035em;}
:is([data-theme="prism"],[data-theme="graphite"]) .pg-workspace-view.pg-portal #pg-graph-card > .card-body {padding:0;gap:0;overflow:hidden;border-radius:inherit;}
:is([data-theme="prism"],[data-theme="graphite"]) .pg-workspace-view.pg-portal #pg-graph-card .pg-network-heading {padding:.85rem 1rem;border-bottom:1px solid var(--color-base-300);background:var(--color-base-200);}
:is([data-theme="prism"],[data-theme="graphite"]) .pg-workspace-view.pg-portal #pg-graph-card .pg-network-heading + div {padding:.75rem 1rem;margin:0;flex-wrap:wrap;border-bottom:1px solid var(--color-base-300);}
:is([data-theme="prism"],[data-theme="graphite"]) .pg-workspace-view.pg-portal #pg-graph-card #graf {border:0;border-radius:0;height:clamp(28rem,65vh,48rem);min-height:28rem;}
:is([data-theme="prism"],[data-theme="graphite"]) .pg-workspace-view.pg-portal #pg-relationship-kpis .pg-kpis .stat {padding:.9rem 1rem;}
:is([data-theme="prism"],[data-theme="graphite"]) .pg-workspace-view.pg-portal #pg-relationship-kpis .pg-kpis .stat-value {font-size:1.25rem;font-variant-numeric:tabular-nums;}

:is([data-theme="prism"],[data-theme="graphite"]) .pg-workspace-view.pg-portal #pg-timeline-card > .card-body {padding:0;gap:0;}
:is([data-theme="prism"],[data-theme="graphite"]) .pg-workspace-view.pg-portal #pg-timeline-card > .card-body > div:first-child {padding:.85rem 1rem;margin:0;border-bottom:1px solid var(--color-base-300);background:var(--color-base-200);border-radius:var(--radius-box) var(--radius-box) 0 0;}
:is([data-theme="prism"],[data-theme="graphite"]) .pg-workspace-view.pg-portal :is(#pg-tl-filter,#pg-people-filter) {padding:.8rem 1rem;margin:0;gap:.5rem;border-bottom:1px solid var(--color-base-300);}
:is([data-theme="prism"],[data-theme="graphite"]) .pg-workspace-view.pg-portal :is(#pg-tl-filter,#pg-people-filter) .pg-tl-chip {display:inline-flex;align-items:center;gap:.4rem;min-height:2rem;padding:.35rem .7rem;border:1px solid var(--color-base-300)!important;border-radius:var(--radius-field,.35rem);background:var(--color-base-100);color:var(--color-base-content)!important;font-size:.75rem;opacity:1;}
:is([data-theme="prism"],[data-theme="graphite"]) .pg-workspace-view.pg-portal :is(#pg-tl-filter,#pg-people-filter) .pg-tl-chip.active {color:var(--color-primary)!important;border-color:color-mix(in srgb,var(--color-primary) 35%,var(--color-base-300))!important;background:color-mix(in srgb,var(--color-primary) 8%,var(--color-base-100));font-weight:650;}
:is([data-theme="prism"],[data-theme="graphite"]) .pg-workspace-view.pg-portal :is(#pg-tl-filter,#pg-people-filter) .pg-tl-chip:focus-visible {outline:2px solid var(--color-primary);outline-offset:2px;}
:is([data-theme="prism"],[data-theme="graphite"]) .pg-workspace-view.pg-portal #pg-timeline-content {padding:0 1rem;}
:is([data-theme="prism"],[data-theme="graphite"]) .pg-workspace-view.pg-portal :is(#pg-timeline-content,#pg-people-list) .pg-tl-item {display:grid;grid-template-columns:2rem minmax(0,1fr);align-items:start;gap:.8rem;padding:1rem 0;border-bottom:1px solid var(--color-base-300);}
:is([data-theme="prism"],[data-theme="graphite"]) .pg-workspace-view.pg-portal :is(#pg-timeline-content,#pg-people-list) .pg-tl-item:last-child {border-bottom:0;}
:is([data-theme="prism"],[data-theme="graphite"]) .pg-workspace-view.pg-portal :is(#pg-timeline-content,#pg-people-list) .pg-tl-item > .min-w-0 {display:grid;grid-template-columns:7rem minmax(0,1fr);gap:.2rem 1rem;align-items:baseline;}
:is([data-theme="prism"],[data-theme="graphite"]) .pg-workspace-view.pg-portal #pg-timeline-content .pg-tl-date {grid-column:1;grid-row:1 / span 2;font-size:.75rem;font-variant-numeric:tabular-nums;line-height:1.5;color:color-mix(in srgb,var(--color-base-content) 60%,transparent);}
:is([data-theme="prism"],[data-theme="graphite"]) .pg-workspace-view.pg-portal :is(#pg-timeline-content,#pg-people-list) :is(.pg-tl-title,.pg-tl-detail) {grid-column:2;font-size:.8rem;line-height:1.5;overflow-wrap:anywhere;}
:is([data-theme="prism"],[data-theme="graphite"]) .pg-workspace-view.pg-portal :is(#pg-timeline-content,#pg-people-list) .pg-tl-title {font-weight:650;}
:is([data-theme="prism"],[data-theme="graphite"]) .pg-workspace-view.pg-portal :is(#pg-timeline-content,#pg-people-list) .pg-tl-detail {color:color-mix(in srgb,var(--color-base-content) 62%,transparent);}
:is([data-theme="prism"],[data-theme="graphite"]) .pg-workspace-view.pg-portal #pg-timeline-content :is(.pg-tl-date,.pg-tl-detail) {opacity:1;}
:is([data-theme="prism"],[data-theme="graphite"]) .pg-workspace-view.pg-portal :is(#pg-timeline-content,#pg-people-list) .pg-tl-dot {width:2rem;height:2rem;margin:0;background:color-mix(in srgb,var(--color-primary) 9%,var(--color-base-100))!important;color:var(--color-primary)!important;border:1px solid color-mix(in srgb,var(--color-primary) 15%,var(--color-base-300));border-radius:var(--radius-field);}
:is([data-theme="prism"],[data-theme="graphite"]) .pg-workspace-view.pg-portal #pg-timeline-content .pg-tl-line {display:none;}

/* Keep the same frame and its filter draft while giving its native dialog the viewport. */
.pg-map-dialog-open {overflow:hidden!important;}
.pg-workspace-view.pg-portal .pg-company-view.has-map-dialog {position:relative;z-index:1500;}
#pg-profile-map-slot.is-filter-open > iframe {position:fixed!important;inset:0!important;z-index:1501!important;width:100vw!important;height:100dvh!important;max-width:none!important;background:var(--color-base-200);}

@media(max-width:639px){
  :is([data-theme="prism"],[data-theme="graphite"]) .pg-workspace-view.pg-portal .pg-company-main > .pg-hero > .pg-company-map::before {background:color-mix(in srgb,var(--color-base-100) 85%,transparent);}
  :is([data-theme="prism"],[data-theme="graphite"]) .pg-workspace-view.pg-portal :is(#pg-timeline-content,#pg-people-list) .pg-tl-item > .min-w-0 {grid-template-columns:minmax(0,1fr);}
  :is([data-theme="prism"],[data-theme="graphite"]) .pg-workspace-view.pg-portal #pg-timeline-content :is(.pg-tl-date,.pg-tl-title,.pg-tl-detail) {grid-column:1;grid-row:auto;}
  :is([data-theme="prism"],[data-theme="graphite"]) .pg-workspace-view.pg-portal .pg-network-heading > span {display:none;}
  :is([data-theme="prism"],[data-theme="graphite"]) .pg-workspace-view.pg-portal #pg-graph-card .pg-network-heading + div > div {max-width:none;width:100%;}
  :is([data-theme="prism"],[data-theme="graphite"]) .pg-workspace-view.pg-portal #pg-graph-card #graf {height:26rem;min-height:26rem;}
}

/* Shared profile surfaces: match the financial panels without changing graph/map controls. */
.pg-workspace-view.pg-portal :is([data-company-view="mapa"],[data-company-view="vztahy"],[data-company-view="dokumenty"]) {min-width:0;}
.pg-workspace-view.pg-portal :is(#pg-relationships-graph,#pg-relationships-controls,#pg-relationships-details,#pg-profile-map-slot,#pg-public-data-slot) {min-width:0;margin-top:1rem;}
.pg-workspace-view.pg-portal #pg-profile-map-slot > iframe {max-width:100%;border-radius:var(--radius-box);}
.pg-workspace-view.pg-portal :is(#pg-relationships-details,#pg-relationships-controls) .card > .card-body {padding:1rem;gap:.85rem;}
.pg-workspace-view.pg-portal #pg-relationships-details {gap:1rem;}
.pg-workspace-view.pg-portal #pg-relationships-controls .pg-filter-card {margin:0;}
.pg-workspace-view.pg-portal #pg-relationships-controls :is(input,select,.join) {max-width:100%;}
.pg-workspace-view.pg-portal :is(#pg-public-records-card,#pg-people-card,#pg-registry-card) > .card-body {padding:0;gap:0;}
.pg-workspace-view.pg-portal :is(#pg-public-records-card,#pg-people-card,#pg-registry-card) > .card-body > .pg-card-heading {margin:0;padding:1rem;border-bottom:1px solid var(--color-base-300);background:var(--color-base-200);border-radius:var(--radius-box) var(--radius-box) 0 0;}
.pg-workspace-view.pg-portal :is(#pg-public-records-card,#pg-people-card,#pg-registry-card) .pg-public-records-content {min-width:0;padding:1rem;}
.pg-workspace-view.pg-portal #pg-public-records-card .pg-public-record-tabs {display:flex;flex-wrap:nowrap;overflow-x:auto;max-width:100%;gap:.25rem;padding-bottom:.4rem;margin-bottom:1rem;}
.pg-workspace-view.pg-portal #pg-public-records-card .pg-public-record-tabs .tab {flex:1 0 auto;min-height:2.75rem;gap:.4rem;white-space:nowrap;}
.pg-workspace-view.pg-portal [data-document-summary-grid] {display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,16rem),1fr));gap:.75rem;margin:0 0 1rem;}
.pg-workspace-view.pg-portal [data-document-summary] {--summary-color:var(--color-primary);position:relative;min-width:0;grid-template-columns:minmax(0,1fr) auto;padding:1rem;border:1px solid var(--color-base-300);border-radius:var(--radius-box);background:color-mix(in srgb,var(--summary-color) 4%,var(--color-base-100));}
.pg-workspace-view.pg-portal [data-document-summary="error"] {--summary-color:var(--color-error);}
.pg-workspace-view.pg-portal [data-document-summary] .stat-figure {grid-column:2;grid-row:1 / span 3;align-self:start;display:grid;place-items:center;width:2.5rem;height:2.5rem;margin-left:.75rem;border-radius:var(--radius-field);background:color-mix(in srgb,var(--summary-color) 12%,var(--color-base-100));color:var(--summary-color);font-size:1rem;}
.pg-workspace-view.pg-portal [data-document-summary] .stat-title {font-size:.75rem;line-height:1.5;white-space:normal;color:color-mix(in srgb,var(--color-base-content) 70%,var(--color-base-100));}
.pg-workspace-view.pg-portal [data-document-summary] .stat-value {font-size:clamp(1.15rem,2vw,1.5rem);line-height:1.4;font-weight:800;font-variant-numeric:tabular-nums;white-space:normal;overflow-wrap:anywhere;color:var(--summary-color);}
.pg-workspace-view.pg-portal [data-document-summary] .stat-desc {font-size:.7rem;line-height:1.5;white-space:normal;margin-top:.3rem;}
.pg-workspace-view.pg-portal [data-profile-money] {font-weight:800;font-variant-numeric:tabular-nums;color:var(--color-primary);}
.pg-workspace-view.pg-portal [data-profile-money="success"] {color:color-mix(in srgb,var(--color-success) 78%,var(--color-base-content));}
.pg-workspace-view.pg-portal [data-profile-money="error"] {color:var(--color-error);}
.pg-workspace-view.pg-portal [data-profile-money="neutral"] {color:var(--color-base-content);}
.pg-workspace-view.pg-portal #pg-timeline-content [data-timeline-tone] {--event-color:var(--color-primary);}
.pg-workspace-view.pg-portal #pg-timeline-content [data-timeline-tone="success"] {--event-color:var(--color-success);}
.pg-workspace-view.pg-portal #pg-timeline-content [data-timeline-tone="error"] {--event-color:var(--color-error);}
.pg-workspace-view.pg-portal #pg-timeline-content [data-timeline-tone="warning"] {--event-color:var(--color-warning);}
:is([data-theme="prism"],[data-theme="graphite"]) .pg-workspace-view.pg-portal #pg-timeline-content [data-timeline-tone] .pg-tl-dot {background:color-mix(in srgb,var(--event-color) 12%,var(--color-base-100))!important;color:color-mix(in srgb,var(--event-color) 80%,var(--color-base-content))!important;border-color:color-mix(in srgb,var(--event-color) 24%,var(--color-base-300));}
.pg-workspace-view.pg-portal :is(#pg-timeline-content,#pg-people-list) .pg-tl-detail strong {display:inline-block;}
@media(max-width:639px){
 .pg-workspace-view.pg-portal #pg-relationships-details {grid-template-columns:minmax(0,1fr);}
 .pg-workspace-view.pg-portal :is(#pg-public-records-card,#pg-people-card,#pg-registry-card) .pg-public-records-content {padding:.75rem;}
 .pg-workspace-view.pg-portal #pg-public-records-card table {font-size:.75rem;}
 .pg-workspace-view.pg-portal #pg-public-records-card :is(th,td) {padding:.65rem .5rem;}
 .pg-workspace-view.pg-portal [data-document-summary] {padding:.85rem;}
 .pg-workspace-view.pg-portal [data-company-view="mapa"] .pg-company-view__header {flex-wrap:wrap;gap:.75rem;}
 .pg-workspace-view.pg-portal #pg-profile-map-external {margin-left:0;}
}

/* Dedicated owners section reuses the existing people renderer and controls. */
.pg-workspace-view.pg-portal #pg-owners-slot {margin-top:1rem;min-width:0;}
.pg-workspace-view.pg-portal #pg-owners-slot #pg-people-card {background:var(--color-base-100);border-radius:var(--radius-box);}
.pg-workspace-view.pg-portal #pg-owners-slot .card-body > .flex:first-child {flex-wrap:wrap;gap:.75rem;}
.pg-workspace-view.pg-portal #pg-owners-slot #pg-people-list > div {padding:.85rem 0;}
.pg-workspace-view.pg-portal #pg-owners-slot #pg-people-list .truncate {white-space:normal;overflow-wrap:anywhere;}
.pg-workspace-view.pg-portal #pg-owners-slot #pg-people-list .text-sm {font-size:.95rem;}
.pg-workspace-view.pg-portal #pg-owners-slot #pg-people-list [class*="text-[11px]"] {font-size:.8rem;}


/* The dedicated owners view follows page scrolling; the compact relationships card keeps its own list scroll. */
.pg-workspace-view.pg-portal #pg-owners-slot #pg-people-list {height:auto;max-height:none;overflow:visible;}
.pg-workspace-view.pg-portal #pg-relationships-details #pg-people-list {
  height:320px;
  max-height:320px;
  overflow-y:auto;
  overscroll-behavior-y:contain;
  scrollbar-gutter:stable;
}
.pg-workspace-view.pg-portal #pg-people-search {width:15rem;max-width:100%;height:2rem;opacity:1;padding:.4rem .6rem!important;border:1px solid var(--color-base-300)!important;font-size:.8rem;}
.pg-workspace-view.pg-portal #pg-people-search-btn {display:none;}
.pg-workspace-view.pg-portal #pg-registry-card {grid-column:1 / -1;}
.pg-workspace-view.pg-portal #pg-registry-freshness {margin-top:1rem;padding-top:.75rem;border-top:1px solid var(--color-base-300);font-size:.75rem;line-height:1.6;opacity:.65;}
.pg-workspace-view.pg-portal #pg-registry-freshness p {display:flex;gap:.5rem;margin:.25rem 0;}
.pg-workspace-view.pg-portal :is(#pg-people-card,#pg-registry-card) > .card-body > .pg-card-heading {flex-wrap:wrap;gap:.75rem;}
@media(max-width:639px){.pg-workspace-view.pg-portal #pg-people-card > .card-body > .pg-card-heading > .flex {width:100%;}.pg-workspace-view.pg-portal #pg-people-search {width:100%;}}

/* Avoid stacking content padding above the filter bar. */
.pg-workspace-view.pg-portal #pg-people-card .pg-public-records-content {padding-top:0;}

/* The owners filter bar and list use the timeline's full-width content structure. */
.pg-workspace-view.pg-portal #pg-people-card .pg-public-records-content {padding:0;}
:is([data-theme="prism"],[data-theme="graphite"]) .pg-workspace-view.pg-portal #pg-people-list {padding:0 1rem;}
:is([data-theme="prism"],[data-theme="graphite"]) .pg-workspace-view.pg-portal #pg-people-list [data-owner-row] {margin:0;padding:1rem 0;}
:is([data-theme="prism"],[data-theme="graphite"]) .pg-workspace-view.pg-portal #pg-people-list [data-owner-row] > .min-w-0 {grid-template-columns:minmax(0,1fr);}
:is([data-theme="prism"],[data-theme="graphite"]) .pg-workspace-view.pg-portal #pg-people-list :is(.pg-tl-title,.pg-tl-detail) {grid-column:1;}
:is([data-theme="prism"],[data-theme="graphite"]) .pg-workspace-view.pg-portal #pg-people-list .pg-tl-detail [class*="text-[11px]"] {font:inherit;opacity:1;}

/* Compact relationship cards share one visual rhythm, height and scroll treatment. */
.pg-workspace-view.pg-portal #pg-relationships-details :is(#pg-people-card,#pg-related-card) {
  height:100%;
  overflow:hidden;
}
.pg-workspace-view.pg-portal #pg-relationships-details :is(#pg-people-card,#pg-related-card) > .card-body {
  min-height:0;
  height:100%;
  padding:1rem;
  gap:.85rem;
}
.pg-workspace-view.pg-portal #pg-relationships-details #pg-people-card > .card-body > .pg-card-heading {
  min-height:1.5rem;
  margin:0;
  padding:0;
  align-items:center;
  flex-wrap:nowrap;
  gap:.25rem;
  border:0;
  border-radius:0;
  background:transparent;
}
.pg-workspace-view.pg-portal #pg-relationships-details #pg-people-card .pg-card-heading h3 {
  margin:0;
  color:var(--color-base-content);
  font-family:inherit;
  font-size:.75rem;
  font-weight:400;
  letter-spacing:.05em;
  line-height:1rem;
  text-transform:uppercase;
  opacity:.5;
}
.pg-workspace-view.pg-portal #pg-relationships-details #pg-people-card .pg-heading-icon {display:none;}
.pg-workspace-view.pg-portal #pg-relationships-details #pg-people-card .pg-public-records-content {
  display:flex;
  min-height:0;
  flex:1 1 auto;
  flex-direction:column;
  padding:0;
}
.pg-workspace-view.pg-portal #pg-relationships-details #pg-people-filter {
  flex:0 0 auto;
  padding:0 0 .75rem;
  border-bottom:1px solid var(--color-base-300);
}
.pg-workspace-view.pg-portal #pg-relationships-details #pg-people-search {
  width:0;
  min-width:0;
  height:1.5rem;
  padding:0!important;
  border-width:0!important;
  opacity:0;
}
.pg-workspace-view.pg-portal #pg-relationships-details #pg-people-search.open {
  width:10rem;
  padding:0 .5rem!important;
  border-width:1px!important;
  opacity:1;
}
.pg-workspace-view.pg-portal #pg-relationships-details #pg-people-search-btn {display:inline-flex;}
.pg-workspace-view.pg-portal #pg-relationships-details :is(#pg-people-list,#pg-related-list) {
  height:320px;
  max-height:320px;
  overflow-y:auto;
  overscroll-behavior-y:contain;
  scrollbar-color:color-mix(in srgb,var(--color-base-content) 25%,transparent) transparent;
  scrollbar-gutter:stable;
  scrollbar-width:thin;
}
.pg-workspace-view.pg-portal #pg-relationships-details #pg-people-list {padding:0;}
.pg-workspace-view.pg-portal #pg-relationships-details :is(#pg-people-list,#pg-related-list)::-webkit-scrollbar {width:4px;}
.pg-workspace-view.pg-portal #pg-relationships-details :is(#pg-people-list,#pg-related-list)::-webkit-scrollbar-track {background:transparent;}
.pg-workspace-view.pg-portal #pg-relationships-details :is(#pg-people-list,#pg-related-list)::-webkit-scrollbar-thumb {
  border-radius:2px;
  background:color-mix(in srgb,var(--color-base-content) 25%,transparent);
}
@media(max-width:639px){
  .pg-workspace-view.pg-portal #pg-relationships-details #pg-people-card > .card-body > .pg-card-heading > .flex {width:auto;}
  .pg-workspace-view.pg-portal #pg-relationships-details #pg-people-search {width:0;}
  .pg-workspace-view.pg-portal #pg-relationships-details #pg-people-search.open {width:min(10rem,55vw);}
}
