.tt-workspace__details {
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 1rem;
  background: rgba(var(--bs-body-bg-rgb), 0.72);
  padding: 0.9rem 1rem;
}

.tt-workspace__details summary {
  cursor: pointer;
  font-weight: 600;
}

.tt-workspace__hero-card,
.tt-workspace__control-card,
.tt-transform-card,
.tt-stat-card {
  border-color: rgba(0, 0, 0, 0.04);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.05);
}

.tt-toolbar {
  display: grid;
  gap: 1rem;
}

.tt-toolbar__group {
  display: grid;
  gap: 0.5rem;
}

.tt-transform-card .card-body {
  display: grid;
  gap: 0.75rem;
}

.tt-transform-card__actions {
  width: fit-content;
}

.tt-matrix-shell {
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 1rem;
  background: rgba(var(--bs-body-bg-rgb), 0.72);
  overflow: hidden;
}

.tt-matrix-scroll {
  overflow: auto;
  max-width: 100%;
}

.tt-matrix-table {
  min-width: 58rem;
}

.tt-matrix-table thead th {
  position: sticky;
  top: 0;
  z-index: 3;
  background: color-mix(in srgb, var(--bs-tertiary-bg) 88%, white 12%);
}

.tt-matrix-table th:first-child,
.tt-matrix-table td:first-child {
  position: sticky;
  left: 0;
}

.tt-matrix-axis {
  z-index: 4 !important;
  background: color-mix(in srgb, var(--bs-tertiary-bg) 90%, white 10%) !important;
}

.tt-matrix-header {
  background: color-mix(in srgb, var(--bs-tertiary-bg) 92%, white 8%);
}

.tt-matrix-header--row {
  z-index: 2;
  min-width: 8.25rem;
}

.tt-matrix-table tbody tr:nth-child(odd) td {
  background: rgba(var(--bs-body-color-rgb), 0.015);
}

.tt-matrix-table td,
.tt-matrix-table th {
  transition: background-color 0.15s ease, box-shadow 0.15s ease;
}

.tt-matrix-table td:hover {
  background: rgba(var(--bs-primary-rgb), 0.08);
}

.tt-matrix-table .tt-matrix-active {
  box-shadow: inset 0 0 0 9999px rgba(var(--bs-warning-rgb), 0.22);
}

.tt-matrix-actions button,
.tt-transform-card__actions button,
.tt-toolbar .btn {
  line-height: 1.1;
}

.tt-matrix-actions button {
  padding: 0.1rem 0.4rem;
  font-size: 0.7rem;
}

@media (max-width: 991.98px) {
  .tt-matrix-table {
    min-width: 48rem;
  }
}

@media (max-width: 767.98px) {
  .tt-toolbar .btn {
    padding-inline: 0.75rem;
  }

  .tt-matrix-table {
    min-width: 42rem;
    font-size: 0.86rem;
  }

  .tt-matrix-actions button {
    padding: 0.1rem 0.28rem;
    font-size: 0.64rem;
  }

  .tt-matrix-header--row {
    min-width: 7rem;
  }
}
