:root {
  --result-first-column-width: 18rem;
  --result-day-column-width: 4rem;
  --result-header-row-one-height: 2.75rem;
}

body {
  background: #f6f8fb;
}

.navbar-brand {
  gap: 0.55rem;
}

.notice-stack {
  display: grid;
  gap: 0.75rem;
}

.notice-stack .alert {
  margin: 0;
}

.notice-icon {
  flex: 0 0 auto;
  font-size: 1.35rem;
}

.notice-details > summary {
  cursor: pointer;
  list-style: none;
}

.notice-details > summary::-webkit-details-marker {
  display: none;
}

.notice-details:not([open]) > .card-body {
  display: none;
}

.notice-chevron {
  margin-left: auto;
  transition: transform 120ms ease;
}

.notice-details[open] .notice-chevron {
  transform: rotate(180deg);
}

.excluded-item + .excluded-item {
  border-top: 1px solid var(--tblr-border-color);
  margin-top: 1rem;
  padding-top: 1rem;
}

.run-meta {
  display: grid;
  gap: 0.35rem 1.5rem;
  grid-template-columns: repeat(3, minmax(8rem, auto));
  margin: 0;
}

.run-meta div {
  min-width: 0;
}

.run-meta dt {
  color: var(--tblr-secondary-color);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
}

.run-meta dd {
  margin: 0;
}

.run-counts {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.5rem;
}

.result-table-scroll {
  max-height: min(70vh, 50rem);
  overflow: auto;
  position: relative;
}

.result-table {
  border-collapse: separate;
  border-spacing: 0;
  margin: 0;
  width: max-content;
  min-width: 100%;
}

.result-table th,
.result-table td {
  background-clip: padding-box;
  min-width: var(--result-day-column-width);
  text-align: center;
  white-space: nowrap;
}

.result-table thead tr:first-child th {
  background: var(--tblr-bg-surface);
  height: var(--result-header-row-one-height);
  position: sticky;
  top: 0;
  z-index: 4;
}

.result-table thead tr:nth-child(2) th {
  background: var(--tblr-bg-surface-secondary);
  position: sticky;
  top: var(--result-header-row-one-height);
  z-index: 4;
}

.result-table .subject-column {
  background: var(--tblr-bg-surface);
  left: 0;
  min-width: var(--result-first-column-width);
  max-width: var(--result-first-column-width);
  position: sticky;
  text-align: left;
  white-space: normal;
  z-index: 3;
}

.result-table thead .subject-column {
  z-index: 6;
}

table.result-table th.day-start,
table.result-table td.day-start {
  border-left: 1px solid var(--tblr-gray-400);
}

.source-result-row .subject-column,
.source-result-row td {
  background-color: var(--tblr-bg-surface-secondary);
  font-size: 0.8125rem;
}

.source-label {
  padding-left: 2.5rem !important;
}

.row-toggle {
  align-items: flex-start;
  background: transparent;
  border: 0;
  color: inherit;
  display: inline-flex;
  gap: 0.4rem;
  padding: 0;
  text-align: left;
}

.row-toggle .ti {
  flex: 0 0 auto;
  margin-top: 0.15rem;
  transition: transform 120ms ease;
}

.row-toggle[aria-expanded="true"] .ti {
  transform: rotate(90deg);
}

@media (max-width: 767.98px) {
  .run-meta {
    grid-template-columns: 1fr;
  }
}
