/*
 * LMS3 SCORM Report. Its own small set of rules, so that the report reads well in any site: with a theme
 * the fonts, the link colours and the look of table heads of the theme come through, the rest is this.
 * The accent colour is the primary colour of an LMS3 theme (--colorprimary) when there is one.
 */
.scorm-report {
  --scorm-report-line: #d9dee5;
  --scorm-report-muted: #5b6573;
  --scorm-report-head: #f4f6f8;
  --scorm-report-accent: var(--colorprimary, #1d4ed8);
  --scorm-report-started: #b45309;
  --scorm-report-started-bg: #fef3c7;
  --scorm-report-completed: #166534;
  --scorm-report-completed-bg: #dcfce7;
  margin: 0 0 2rem;
  line-height: 1.45;
}
.scorm-report__heading {
  margin: 0 0 0.25rem;
}
.scorm-report__back {
  margin: 0 0 0.75rem;
}
.scorm-report__range,
.scorm-report__total {
  margin: 0;
  color: var(--scorm-report-muted);
}
.scorm-report__range {
  margin-bottom: 1rem;
}
.scorm-report__filter {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 0.75rem 1rem;
  margin: 0 0 1rem;
  padding: 1rem;
  border: 1px solid var(--scorm-report-line);
  border-radius: 6px;
  background: var(--scorm-report-head);
}
.scorm-report__filter label {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  margin: 0;
  font-size: 0.875rem;
  font-weight: 600;
}
.scorm-report__filter input[type="search"],
.scorm-report__filter input[type="date"] {
  box-sizing: border-box;
  min-height: 2.5rem;
  min-width: 11rem;
  padding: 0.375rem 0.625rem;
  border: 1px solid #9aa3af;
  border-radius: 4px;
  background: #fff;
  color: inherit;
  font: inherit;
  font-weight: 400;
}
.scorm-report__button {
  display: inline-flex;
  align-items: center;
  box-sizing: border-box;
  min-height: 2.5rem;
  padding: 0.375rem 0.875rem;
  border: 1px solid #9aa3af;
  border-radius: 4px;
  background: #fff;
  color: #1f2937;
  font: inherit;
  font-size: 0.9375rem;
  text-decoration: none;
  cursor: pointer;
}
.scorm-report__button:hover {
  background: #eef1f4;
  color: #1f2937;
  text-decoration: none;
}
.scorm-report__button--primary {
  border-color: var(--scorm-report-accent);
  background: var(--scorm-report-accent);
  color: #fff;
}
.scorm-report__button--primary:hover {
  background: var(--scorm-report-accent);
  color: #fff;
  filter: brightness(0.88);
}
.scorm-report :focus-visible {
  outline: 2px solid var(--scorm-report-accent);
  outline-offset: 2px;
}
.scorm-report__bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem 1rem;
  margin: 0 0 0.75rem;
}
.scorm-report__exports {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 1.5rem;
}
.scorm-report__export,
.scorm-report__answers-export {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0;
}
.scorm-report__scroll {
  overflow-x: auto;
  border: 1px solid var(--scorm-report-line);
  border-radius: 6px;
}
.scorm-report__table {
  width: 100%;
  margin: 0;
  border-collapse: collapse;
  font-size: 0.9375rem;
}
.scorm-report__table th,
.scorm-report__table td {
  padding: 0.625rem 0.875rem;
  border-bottom: 1px solid var(--scorm-report-line);
  text-align: left;
  vertical-align: top;
}
.scorm-report__table thead th {
  background: var(--scorm-report-head);
  font-weight: 600;
  white-space: nowrap;
}
.scorm-report__table .scorm-report__name {
  font-weight: 600;
}
.scorm-report__table tbody tr:last-child td {
  border-bottom: 0;
}
.scorm-report__table tbody tr:hover {
  background: #fafbfc;
}
.scorm-report__table .scorm-report__number {
  text-align: right;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.scorm-report__sort {
  color: inherit;
  font-weight: inherit;
  text-decoration: none;
}
.scorm-report__sort:hover {
  color: inherit;
  text-decoration: underline;
}
/* in the colour of the head, whatever a theme makes of it: a dark head has light marks */
.scorm-report__sort-mark {
  margin-left: 0.25rem;
  opacity: 0.65;
  font-size: 0.75em;
}
/* a guest without a login: "Anonymous user (3f9a1c)" */
.scorm-report__anonymous {
    font-style: italic;
}

.scorm-report__status {
  display: inline-block;
  padding: 0.125rem 0.625rem;
  border-radius: 999px;
  font-size: 0.875rem;
  font-weight: 600;
  white-space: nowrap;
}
.scorm-report__status--started {
  background: var(--scorm-report-started-bg);
  color: var(--scorm-report-started);
}
.scorm-report__status--completed {
  background: var(--scorm-report-completed-bg);
  color: var(--scorm-report-completed);
}
.scorm-report__status--notStarted {
  background: #eceff3;
  color: #414b5a;
}
.scorm-report__progress {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}
.scorm-report__progress-bar {
  display: inline-block;
  width: 4.5rem;
  height: 0.5rem;
  overflow: hidden;
  border-radius: 999px;
  background: #e5e9ee;
}
.scorm-report__progress-bar > span {
  display: block;
  height: 100%;
  background: var(--scorm-report-accent);
}
.scorm-report__info {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  margin: -0.375rem 0 -0.375rem 0.25rem;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--scorm-report-accent);
  vertical-align: middle;
  cursor: pointer;
}
.scorm-report__info:hover {
  background: #eceff3;
}
.scorm-report__table--answers .scorm-report__result {
  white-space: nowrap;
}
.scorm-report__result--correct {
  color: var(--scorm-report-completed);
  font-weight: 600;
}
.scorm-report__result--incorrect {
  color: #b42318;
  font-weight: 600;
}
.scorm-report__message {
  margin: 1rem 0;
  padding: 1rem;
  border: 1px solid var(--scorm-report-line);
  border-radius: 6px;
  background: var(--scorm-report-head);
}
.scorm-report__pages {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.375rem;
  margin: 1rem 0 0;
}
.scorm-report__pages a,
.scorm-report__page {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  min-width: 2.25rem;
  min-height: 2.25rem;
  padding: 0 0.625rem;
  border: 1px solid var(--scorm-report-line);
  border-radius: 4px;
  text-decoration: none;
}
.scorm-report__page--current {
  border-color: var(--scorm-report-accent);
  background: var(--scorm-report-accent);
  color: #fff;
  font-weight: 600;
}
.scorm-report__sr {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}
.scorm-report__dialog {
  box-sizing: border-box;
  width: min(72rem, calc(100vw - 2rem));
  max-height: calc(100vh - 2rem);
  padding: 0;
  border: 1px solid var(--scorm-report-line);
  border-radius: 8px;
  color: #1f2937;
}
.scorm-report__dialog[open] {
  display: flex;
  flex-direction: column;
}
.scorm-report__dialog::backdrop {
  background: rgba(17, 24, 39, 0.55);
}
.scorm-report__dialog-head {
  display: flex;
  justify-content: flex-end;
  padding: 0.75rem 1rem 0;
}
.scorm-report__dialog-body {
  overflow: auto;
  padding: 0 1rem 1rem;
}
.scorm-report__dialog-body:focus {
  outline: none;
}
.scorm-report__dialog-title {
  margin: 0 0 0.25rem;
}
.scorm-report__dialog-learner {
  margin: 0 0 0.75rem;
  color: var(--scorm-report-muted);
}
.scorm-report__table--answers td {
  overflow-wrap: anywhere;
}
.scorm-report__id {
  font-size: 0.8125rem;
  color: var(--scorm-report-muted);
}
.scorm-report__question-title {
  display: block;
}
.scorm-report__answer-text {
  display: block;
}
.scorm-report__answer-list {
  margin: 0;
  padding-left: 1.125rem;
}
@media (max-width: 40rem) {
  .scorm-report__filter label,
  .scorm-report__filter input[type="search"],
  .scorm-report__filter input[type="date"] {
    width: 100%;
  }
  .scorm-report__table th,
  .scorm-report__table td {
    padding: 0.5rem 0.625rem;
  }
}
