main {
  width: min(1500px, 100%);
}

.topbar-side {
  display: flex;
  align-items: stretch;
  gap: 10px;
}

.topbar-side .button-link {
  white-space: nowrap;
}

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

.data-summary > div {
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: var(--shadow);
}

.data-summary span,
.data-summary strong {
  display: block;
}

.data-summary span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 650;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.data-summary strong {
  margin-top: 4px;
  font-size: 17px;
}

.data-panel {
  margin-bottom: 18px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--panel);
  box-shadow: var(--shadow);
}

.panel-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 12px;
}

.panel-heading h2 {
  margin-bottom: 4px;
}

.table-scroll {
  overflow-x: auto;
}

#bonds-table tr.selected td {
  background: var(--accent-soft);
}

#bonds-table td:first-child,
#bonds-table td:nth-child(3),
#bonds-table td:nth-child(7) {
  white-space: nowrap;
}

.empty-state {
  max-width: none;
  padding: 18px 0 4px;
  text-align: center;
}

.bond-detail[hidden] {
  display: none;
}

.bond-detail {
  padding: 0;
  overflow: hidden;
}

.bond-detail-summary {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 18px;
  cursor: pointer;
  list-style: none;
}

.bond-detail-summary::-webkit-details-marker {
  display: none;
}

.bond-detail-summary:hover {
  background: var(--accent-soft);
}

.bond-detail-summary:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: -2px;
}

.bond-detail-summary span {
  font-size: 18px;
  font-weight: 720;
}

.bond-detail-summary strong {
  overflow: hidden;
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.bond-detail-summary::after {
  content: "Show";
  color: var(--accent);
  font-size: 13px;
  font-weight: 700;
}

.bond-detail[open] > .bond-detail-summary::after {
  content: "Hide";
}

.bond-detail-content {
  padding: 18px;
  border-top: 1px solid var(--line);
}

#read-status {
  max-width: none;
}

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

  .topbar-side {
    flex-direction: column;
    width: 100%;
  }
}

@media (max-width: 640px) {
  .data-summary {
    grid-template-columns: 1fr;
  }

  .panel-heading {
    display: block;
  }

  .panel-heading button {
    width: 100%;
    margin-top: 12px;
  }

  .bond-detail-summary {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .bond-detail-summary strong {
    display: none;
  }
}
