.checkin {
  --video-height: 420px;

  background-color: black;
  position: relative;
  height: 100dvh;
}

.checkin .test-mode-banner {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
}

.checkin .video-container {
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  height: 100dvh;
}

.checkin .scanner-container {
  display: flex;
  flex-direction: column;
}

.checkin video {
  width: 100% !important;
  height: auto !important;
  z-index: 0;
}

.checkin section {
  padding: 1rem;
  padding-top: 0;
  flex: 1;
}

.checkin header {
  align-items: center;
  display: flex;
  justify-content: space-between;
  padding: 1rem;
  background-color: white;
  position: fixed;
  top: 0;
  z-index: 10;
  width: 100%;
}

.checkin header > div:not(.dropdown) {
  display: flex;
  gap: 1rem;
  align-items: center;
  flex: 1;
}

.checkin header .scanner-name {
  display: none;
  flex: 1;
  text-align: right;
}

@media (width >= 768px) {
  .checkin header .scanner-name {
    display: block;
  }
}

.checkin header .checkin-history-link {
  margin-left: auto;
}

.checkin footer {
  padding: 1rem;
}

.checkin .indicator {
  background: var(--gray-500);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 0.5rem;
  padding: 0.5rem;
}

.checkin .last-ticket {
  background-color: rgb(255 255 255 / 50%);
  border-radius: 0.5rem;
  gap: 0.5rem;
  position: fixed;
  top: 76px;
  left: 1rem;
  text-align: center;

  & h5 {
    padding: 0.5rem;
    margin: 0;
  }

  & .last-ticket-data {
    border-top: 1px solid var(--gray-500);
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    padding: 0.5rem;
    width: 100%;

    & > * {
      /* flex: 1;
      padding: 0.5rem;
      border-right: 1px solid var(--gray-500); */
    }

    & > *:last-child {
      /*      border-right: none; */
    }
  }

  & h5 {
    margin: 0;
    text-align: left;
  }

  & data {
    align-items: flex-start;
    color: black;
    display: flex;
    flex-direction: column;
    font-size: 1.2rem;
    line-height: 1.4rem;
    text-align: left;

    & strong {
      color: var(--gray-700);
      font-size: 0.6rem;
      line-height: 1.4;
    }
  }
}

.checkin .indicator-container {
  position: fixed;
  bottom: 52px;
  height: 120px;
  left: 0;
  right: 0;
  background-color: rgb(255 255 255 / 50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

@media only screen and (height <= 460px) {
  .checkin .indicator-container {
    width: 300px;
    height: 50dvh;
  }
}

.checkin .indicator-container .massive-indicator {
  flex: 1;
}

.checkin .stats {
  background-color: white;
  padding: 1rem;
  display: flex;
  gap: 1rem;
  position: fixed;
  bottom: 0;
  right: 0;
  left: 0;
  height: 52px;
}

.checkin .stats > * {
  flex: 1;
  text-align: center;
}

.indicator.success,
.indicator-container.success,
body.checkin-status-success,
main.checkin-status-success {
  background-color: var(--success-color);
  color: white;
}

.indicator.success .stats,
.indicator-container.success .stats,
body.checkin-status-success .stats,
main.checkin-status-success .stats,
.indicator.success header,
.indicator-container.success header,
body.checkin-status-success header,
main.checkin-status-success header {
  background-color: var(--success-color);
}

.indicator.warning,
.indicator-container.warning,
body.checkin-status-warning,
main.checkin-status-warning {
  background-color: var(--yellow-500);
  color: white;
}

.indicator.warning .stats,
.indicator-container.warning .stats,
body.checkin-status-warning .stats,
main.checkin-status-warning .stats,
.indicator.warning header,
.indicator-container.warning header,
body.checkin-status-warning header,
main.checkin-status-warning header {
  background-color: var(--yellow-500);
}

.indicator.danger,
.indicator-container.danger,
body.checkin-status-danger,
main.checkin-status-danger {
  background-color: var(--red-500);
  color: white;
}

.indicator.danger .stats,
.indicator-container.danger .stats,
body.checkin-status-danger .stats,
main.checkin-status-danger .stats,
.indicator.danger header,
.indicator-container.danger header,
body.checkin-status-danger header,
main.checkin-status-danger header {
  background-color: var(--red-500);
}

body.checkin-status-neutral {
  background-color: #fff;
}

.checkin-status-warning .massive-indicator,
.checkin-status-success .massive-indicator,
.checkin-status-danger .massive-indicator {
  color: white;
}

.checkin-history {
  background-color: var(--gray-50);
  min-height: 100dvh;
}

.checkin-history header {
  align-items: center;
  background-color: #fff;
  display: flex;
  justify-content: space-between;
  padding: 1rem;
}

.checkin-history header h1 {
  font-size: 0.875rem;
  font-weight: 400;
}

.checkin-history header a {
  padding: 0.25rem 0 0.25rem 0.25rem;
  margin: 1px 0;
}

.checkin-history ul {
  list-style: none;
  margin: 0;
  padding: 1rem;
}

.checkin-history ul li {
  font-size: 0.8125rem;
  gap: 1rem;
  padding: 0.5rem 0;
}

.checkin-history ul li .checkin-info {
  display: flex;
  justify-content: space-between;
  flex: 1;
}

.checkin-history dl {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.5rem;
  padding: 0.5rem 0;
}

.checkin-history dt::after {
  content: ":";
}

.checkin-history ul li:first-child {
  padding-top: 0;
}

.checkin-history ul li + li {
  border-top: 1px solid var(--gray-200);
}

.checkin-history dd .not-set {
  color: var(--gray-400);
}
