/* Product panels, and the role record with its ledger. */

.panel {
  background: var(--panel-bg);
  color: var(--panel-fg);
  border-radius: 14px;
  padding: 1.25rem 1.5rem 1.5rem;
  font-size: 0.9375rem;
  line-height: 1.45;
  font-variant-numeric: tabular-nums;
  min-width: 0;
}

.panel-head {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  color: var(--panel-label);
  font-size: 0.875rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--panel-line);
}

.panel-title {
  font-size: 1.25rem;
  font-weight: 500;
  color: var(--panel-fg);
  margin: 1rem 0 0.75rem;
}

.panel-rows {
  list-style: none;
  padding: 0;
  margin: 0.5rem 0 0;
}

.panel-rows li {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.6rem 0;
  border-top: 1px solid var(--panel-line);
}

.panel-rows li:first-child {
  border-top: 0;
}

.panel-rows span:last-child {
  color: var(--panel-label);
  text-align: right;
  flex-shrink: 0;
}

.panel-foot {
  margin-top: 1rem;
  padding-top: 0.75rem;
  border-top: 1px solid var(--panel-line);
  color: var(--panel-label);
  font-size: 0.875rem;
}

/* The role record */

.record dl {
  display: grid;
  grid-template-columns: 7rem 1fr;
  gap: 0.55rem 1rem;
}

.record dt {
  color: var(--panel-label);
}

.record dd {
  margin: 0;
}

.mark {
  background: var(--yellow);
  color: var(--ink);
  border-radius: 3px;
  padding: 0.05em 0.3em;
  margin-left: -0.3em;
  font-weight: 500;
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
}

@media (max-width: 30em) {
  .record dl {
    grid-template-columns: 1fr;
    gap: 0.1rem;
  }

  .record dt {
    margin-top: 0.6rem;
  }
}

/* The ledger inside a record scrolls sideways when it must */

.ledger {
  margin-top: 1rem;
  overflow-x: auto;
}

.ledger table {
  width: 100%;
  min-width: 40rem;
  border-collapse: collapse;
  font-size: 0.875rem;
}

.ledger th,
.ledger td {
  text-align: left;
  vertical-align: top;
  padding: 0.55rem 0.75rem 0.55rem 0;
  border-top: 1px solid var(--panel-line);
  white-space: nowrap;
}

.ledger th {
  color: var(--panel-label);
  font-weight: 500;
  border-top: 0;
}

.ledger td.wrap-cell {
  white-space: normal;
  min-width: 14rem;
}

.ledger td.verdict {
  color: var(--panel-fg);
  font-weight: 500;
}
