/* ECHO_OWNERSHIP_SUBTABS_13F_V1 */
.ownership-panel .panel-body {
  padding: 24px;
}

.ownership-subtabs {
  display: inline-flex;
  gap: 4px;
  margin-bottom: 22px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(15, 39, 66, 0.035);
}

.ownership-subtabs button {
  appearance: none;
  border: 0;
  border-radius: 7px;
  padding: 9px 18px;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-size: .76rem;
  font-weight: 800;
  letter-spacing: .02em;
  cursor: pointer;
}

.ownership-subtabs button.active {
  background: var(--navy-900);
  color: white;
  box-shadow: 0 4px 12px rgba(15, 39, 66, .16);
}

.ownership-headline-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 22px;
}

.ownership-card {
  min-height: 108px;
  padding: 17px 18px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface, #fff);
}

.ownership-card span,
.ownership-summary-grid span {
  display: block;
  margin-bottom: 7px;
  color: var(--muted);
  font-size: .67rem;
  font-weight: 800;
  letter-spacing: .055em;
  text-transform: uppercase;
}

.ownership-card strong {
  display: block;
  color: var(--navy-900);
  font-size: 1.25rem;
  line-height: 1.15;
}

.ownership-card small {
  display: block;
  margin-top: 8px;
  color: var(--muted);
  font-size: .72rem;
  line-height: 1.35;
}

.ownership-section {
  margin-top: 20px;
  padding-top: 19px;
  border-top: 1px solid var(--line);
}

.ownership-section h4 {
  margin: 0 0 13px;
  color: var(--navy-900);
  font-size: .96rem;
}

.ownership-section-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 13px;
}

.ownership-section-heading h4 {
  margin: 0;
}

.ownership-section-heading span {
  color: var(--muted);
  font-size: .7rem;
  font-weight: 750;
  text-transform: uppercase;
}

.ownership-summary-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.ownership-summary-grid > div {
  padding: 14px 15px;
  border-radius: 9px;
  background: rgba(15, 39, 66, .035);
}

.ownership-summary-grid strong {
  color: var(--navy-900);
  font-size: .96rem;
}

.ownership-note {
  max-width: 900px;
  margin: -4px 0 14px;
  color: var(--muted);
  font-size: .78rem;
  line-height: 1.55;
}

.ownership-table-wrap {
  max-height: 570px;
  overflow: auto;
}

.ownership-table th:first-child,
.ownership-table td:first-child {
  min-width: 180px;
}

.institution-table th:first-child,
.institution-table td:first-child {
  min-width: 260px;
}

.ownership-positive { color: #087443 !important; }
.ownership-negative { color: #b12633 !important; }
.ownership-neutral { color: var(--muted) !important; }

.ownership-status {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 4px 8px;
  background: rgba(15, 39, 66, .07);
  color: var(--navy-900);
  font-size: .66rem;
  font-weight: 850;
  letter-spacing: .03em;
  text-transform: uppercase;
  white-space: nowrap;
}

.ownership-status-new,
.ownership-status-added { background: rgba(8, 116, 67, .1); color: #087443; }
.ownership-status-reduced,
.ownership-status-sold-out { background: rgba(177, 38, 51, .1); color: #b12633; }

.ownership-empty {
  display: flex;
  flex-direction: column;
  gap: 7px;
  padding: 32px;
}

.ownership-empty strong { color: var(--navy-900); }
.ownership-empty span { color: var(--muted); }

@media (max-width: 1050px) {
  .ownership-headline-grid,
  .ownership-summary-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 650px) {
  .ownership-panel .panel-body { padding: 17px; }
  .ownership-headline-grid,
  .ownership-summary-grid { grid-template-columns: 1fr; }
  .ownership-subtabs { width: 100%; }
  .ownership-subtabs button { flex: 1; }
}
