.model-timeline-view-switcher {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-top: 1rem;
}

.model-timeline-view-switcher button {
  appearance: none;
  padding: 0 0 0.28rem;
  color: var(--model-timeline-muted);
  background: transparent;
  border: 0;
  border-bottom: 1px solid transparent;
  font-family: var(--model-timeline-font);
  font-size: var(--model-timeline-eyebrow-size);
  font-weight: var(--model-timeline-eyebrow-weight);
  letter-spacing: var(--model-timeline-eyebrow-tracking);
  line-height: 1.3;
  text-transform: uppercase;
  cursor: pointer;
}

.model-timeline-view-switcher button span {
  margin-left: 0.25rem;
  color: var(--model-timeline-muted);
  font-variant-numeric: tabular-nums;
  opacity: 0.7;
}

.model-timeline-view-switcher button:hover,
.model-timeline-view-switcher button:focus-visible,
.model-timeline-view-switcher button.is-active {
  color: var(--model-timeline-ink);
  border-bottom-color: var(--model-timeline-accent);
}

.model-timeline-view-switcher button:focus-visible {
  outline: 1px solid var(--model-timeline-accent);
  outline-offset: 0.35rem;
}

.model-timeline-records {
  grid-column: 1 / -1;
  grid-row: 2;
  min-width: 0;
  min-height: 0;
  padding: clamp(1rem, 2vw, 2rem) clamp(1.25rem, 2.7vw, 3.25rem) clamp(1.25rem, 2.7vw, 3.25rem);
  overflow: hidden;
}

[data-model-timeline-view-copy][hidden] {
  display: none !important;
}

.model-timeline-records,
.model-timeline-main,
.model-timeline-hero {
  transition: opacity 120ms ease;
}

.model-timeline-records:not(.is-active),
.model-timeline-main:not(.is-active),
.model-timeline-hero:not(.is-active) {
  z-index: 0;
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
}

.model-timeline-records.is-active {
  z-index: 3;
  visibility: visible;
  opacity: 1;
  pointer-events: auto;
}

.model-timeline-records > .cell,
.model-timeline-records .cell-output,
.model-timeline-records .cell-output-display,
.model-timeline-records .datatables,
.model-timeline-records .html-widget {
  width: 100% !important;
  min-height: 0;
}

.model-timeline-records .cell-output-display {
  margin: 0;
}

.model-timeline-records .dataTables_wrapper {
  color: var(--model-timeline-ink);
  font-family: var(--model-timeline-font);
  font-size: 0.78rem;
}

.model-timeline-records .dataTables_filter {
  width: 100%;
  float: none;
  margin: 0 0 1rem;
  text-align: left;
}

.model-timeline-records .dataTables_filter label {
  width: min(30rem, 100%);
}

.model-timeline-records .dataTables_filter input {
  width: 100%;
  margin: 0;
  padding: 0.7rem 0.85rem;
  color: var(--model-timeline-ink);
  background: var(--model-timeline-panel);
  border: 1px solid var(--model-timeline-rule);
  border-radius: 0;
  font: inherit;
}

.model-timeline-records .dataTables_filter input:focus {
  border-color: var(--model-timeline-accent);
  outline: 1px solid var(--model-timeline-accent);
  outline-offset: 2px;
}

.model-timeline-records table.dataTable {
  width: 100% !important;
  color: var(--model-timeline-ink);
  background: transparent;
  border-collapse: collapse !important;
}

.model-timeline-records table.dataTable thead th {
  padding: 0.7rem 0.75rem;
  color: var(--model-timeline-ink) !important;
  background: var(--model-timeline-canvas);
  border-top: 1px solid var(--model-timeline-rule);
  border-bottom: 1px solid var(--model-timeline-rule);
  font-family: var(--model-timeline-font);
  font-size: var(--model-timeline-eyebrow-size);
  font-weight: var(--model-timeline-eyebrow-weight);
  letter-spacing: var(--model-timeline-eyebrow-tracking);
  line-height: 1.25;
  text-transform: uppercase;
}

.model-timeline-records table.dataTable thead th:nth-child(1) {
  width: 24% !important;
}

.model-timeline-records table.dataTable thead th:nth-child(2) {
  width: 9% !important;
}

.model-timeline-records table.dataTable thead th:nth-child(3) {
  width: 7% !important;
}

.model-timeline-records table.dataTable thead th:nth-child(4) {
  width: 15% !important;
}

.model-timeline-records table.dataTable thead th:nth-child(n + 5) {
  width: 11% !important;
}

.model-timeline-records table.dataTable tbody td {
  padding: 0.55rem 0.75rem;
  color: var(--model-timeline-muted);
  background: transparent;
  border-bottom: 1px solid var(--model-timeline-rule);
  vertical-align: middle;
}

.model-timeline-records table.dataTable tbody tr:hover td {
  color: var(--model-timeline-ink);
  background: var(--model-timeline-record-hover, rgb(255 255 255 / 3.5%));
}

.model-timeline-records table.dataTable a {
  color: var(--model-timeline-ink);
  text-decoration-color: var(--model-timeline-accent);
  text-underline-offset: 0.2rem;
}

.model-timeline-records table.dataTable a:hover,
.model-timeline-records table.dataTable a:focus-visible {
  color: var(--model-timeline-accent);
}

.model-timeline-record-photo {
  width: 4.6rem;
  height: 2.85rem;
  display: block;
  overflow: hidden;
  background: var(--model-timeline-panel);
}

.model-timeline-record-photo img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.model-timeline-records .dataTables_info {
  padding-top: 0.8rem;
  color: var(--model-timeline-muted) !important;
  font-size: var(--model-timeline-eyebrow-size);
  letter-spacing: var(--model-timeline-eyebrow-tracking);
  text-transform: uppercase;
}

.model-timeline-records table.dataTable.dtr-inline.collapsed > tbody > tr > td.dtr-control::before,
.model-timeline-records table.dataTable.dtr-inline.collapsed > tbody > tr > th.dtr-control::before {
  margin-right: 0.45rem;
  color: var(--model-timeline-record-arrow, var(--model-timeline-accent));
  background: transparent;
  font-size: 0.62rem;
}

.model-timeline-records table.dataTable > tbody > tr.child ul.dtr-details {
  width: 100%;
}

.model-timeline-records table.dataTable > tbody > tr.child > td,
.model-timeline-records table.dataTable > tbody > tr.child ul.dtr-details > li {
  background: var(--model-timeline-panel);
  border-bottom-color: var(--model-timeline-rule);
}

.model-timeline-records table.dataTable > tbody > tr.child span.dtr-title {
  min-width: 11rem;
  color: var(--model-timeline-ink);
  font-size: var(--model-timeline-eyebrow-size);
  font-weight: var(--model-timeline-eyebrow-weight);
  letter-spacing: var(--model-timeline-eyebrow-tracking);
  text-transform: uppercase;
}

@media (max-width: 900px) {
  .model-timeline-records {
    grid-column: 1;
    grid-row: 2;
    min-height: 46rem;
    overflow: visible;
  }
}

@media (prefers-reduced-motion: reduce) {
  .model-timeline-records,
  .model-timeline-main,
  .model-timeline-hero {
    transition: none;
  }
}
