.sbt-layout {
  display: grid;
  gap: 24px;
}

@media (min-width: 960px) {
  .sbt-layout {
    grid-template-columns: minmax(320px, 1fr) minmax(320px, 360px);
    align-items: start;
  }
}

.sbt-controls {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.sbt-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.sbt-row .input {
  max-width: 180px;
}

.sbt-table-wrap {
  border: 1px solid var(--border-color, #e5e7eb);
  border-radius: 10px;
  overflow: auto;
  max-height: 520px;
  background: #fff;
}

.sbt-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}

.sbt-table th,
.sbt-table td {
  border-bottom: 1px solid var(--border-color, #e5e7eb);
  border-right: 1px solid var(--border-color, #e5e7eb);
  padding: 6px 8px;
  text-align: right;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.sbt-table th {
  background: var(--surface-subtle, #f8fafc);
  font-weight: 600;
  position: sticky;
  top: 0;
  z-index: 2;
}

.sbt-table th.sbt-row-head {
  left: 0;
  position: sticky;
  z-index: 3;
  text-align: center;
}

.sbt-table td.sbt-row-head {
  position: sticky;
  left: 0;
  background: var(--surface-subtle, #f8fafc);
  font-weight: 600;
  text-align: center;
}

.sbt-table td button {
  all: unset;
  cursor: pointer;
  display: inline-block;
  width: 100%;
  text-align: right;
}

.sbt-table td button:focus {
  outline: 2px solid #2563eb;
  outline-offset: 1px;
}

.sbt-cell.is-selected {
  background: #fde68a;
  color: #7c2d12;
  font-weight: 600;
}

.sbt-details {
  display: grid;
  gap: 12px;
}

.sbt-details-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.sbt-details .note-list {
  margin: 0;
  padding-left: 18px;
}

.sbt-chip-group {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.sbt-inline-inputs {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
}

.sbt-warning {
  background: #fef3c7;
  color: #7c2d12;
  border-radius: 8px;
  padding: 10px 12px;
}

.sbt-error {
  color: #b91c1c;
  margin-top: 6px;
}

.sbt-status {
  color: var(--text-muted, #6b7280);
  font-size: 0.9rem;
}

.sbt-compact {
  color: var(--text-muted, #6b7280);
  font-size: 0.85rem;
  margin-left: 6px;
}

.sbt-result-note {
  font-size: 0.95rem;
  color: var(--text-muted, #6b7280);
}

.sbt-table-wrap .sbt-empty {
  padding: 12px;
  color: var(--text-muted, #6b7280);
}

.sbt-hide {
  display: none;
}
