.history-page {
  background: #fff !important;
}

.history-page .history-main {
  padding: calc(2.5rem + 4.125rem) 0 4rem;
}

.history-page .history-card {
  border: 1px solid rgb(5 38 78 / 6%) !important;
  border-radius: 4px;
  box-shadow: 0 12px 36px rgb(5 38 78 / 7%);
}

.history-page .btn,
.history-page .form-control,
.history-page .form-select {
  border-radius: 4px !important;
}

.history-page .history-search {
  width: min(100%, 24rem);
}

.history-page .history-table-wrap {
  overflow-y: hidden;
  border: 1px solid rgb(5 38 78 / 9%);
  border-radius: 4px;
}

.history-page .history-table {
  width: 100%;
  min-width: 0;
}

.history-page .public-history-table .history-col-hostname {
  width: 48%;
}

.history-page .public-history-table .history-col-duration,
.history-page .public-history-table .history-col-pages {
  width: 18%;
}

.history-page .public-history-table .history-col-details {
  width: 16%;
}

.history-page .table thead th {
  color: #05264e;
  background: #f6f8fb;
  white-space: nowrap;
}

.history-page .history-sort {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0;
  color: inherit;
  background: transparent;
  border: 0;
  font: inherit;
  font-weight: 600;
}

.history-page .history-sort:focus-visible {
  border-radius: 0.15rem;
  outline: 0.2rem solid rgb(2 100 214 / 35%);
  outline-offset: 0.2rem;
}

.history-page .history-sort-indicator {
  min-width: 1em;
  color: #617896;
}

.history-page .history-sort-label {
  min-width: 0;
}

.history-page .history-third-party {
  color: #b42318;
}

.history-page .history-session {
  color: #157347;
}

.history-page .history-progress {
  position: relative;
  width: 100%;
  min-width: 5rem;
  height: 0.4rem;
  overflow: hidden;
  background: #dce7f3;
  border-radius: 999px;
}

.history-page .history-progress span {
  position: absolute;
  width: 45%;
  height: 100%;
  background: #0264d6;
  border-radius: inherit;
  animation: history-progress 1.2s ease-in-out infinite;
}

.history-page #publicHistoryPageSize {
  width: auto;
  min-width: 4.5rem;
}

.history-page #privateHistoryPageSize {
  width: auto;
  min-width: 4.5rem;
}

.private-history-page .private-history-table {
  min-width: 0;
  table-layout: fixed;
}

.private-history-page .private-history-table .history-col-hostname {
  width: 21%;
}

.private-history-page .private-history-table .history-col-third-party,
.private-history-page .private-history-table .history-col-pages {
  width: 10%;
}

.private-history-page .private-history-table .history-col-duration,
.private-history-page .private-history-table .history-col-differences,
.private-history-page .private-history-table .history-col-details,
.private-history-page .private-history-table .history-col-type {
  width: 9%;
}

.private-history-page .private-history-table .history-col-start-time {
  width: 15%;
}

.private-history-page .private-history-table .history-col-delete {
  width: 8%;
}

.private-history-page .private-history-table th,
.private-history-page .private-history-table td {
  padding-right: 0.4rem;
  padding-left: 0.4rem;
  font-size: 0.875rem;
}

.private-history-page .private-history-table thead th,
.private-history-page .private-history-table .history-sort {
  line-height: 1.25;
  white-space: normal;
}

.private-history-page .private-history-table td:first-child {
  overflow-wrap: anywhere;
}

.private-history-page .history-delete:focus-visible,
.private-history-page .modal .btn:focus-visible {
  outline: 0.2rem solid rgb(2 100 214 / 35%);
  outline-offset: 0.2rem;
}

.private-history-page .modal-content {
  border: 0;
  border-radius: 4px;
  box-shadow: 0 18px 50px rgb(5 38 78 / 20%);
}

@keyframes history-progress {
  from {
    transform: translateX(-110%);
  }

  to {
    transform: translateX(225%);
  }
}

@media (max-width: 575.98px) {
  .history-page .history-main {
    padding-top: calc(1.25rem + 4.125rem);
  }

  .history-page .history-card {
    box-shadow: 0 8px 24px rgb(5 38 78 / 6%);
  }

  .history-page .history-pagination .btn {
    min-height: 2.75rem;
  }
}

@media (max-width: 991.98px) {
  .history-page .public-history-table {
    min-width: 36rem;
  }

  .private-history-page .private-history-table {
    min-width: 58rem;
    table-layout: auto;
  }

  .private-history-page .private-history-table thead th,
  .private-history-page .private-history-table .history-sort {
    white-space: nowrap;
  }
}

@media (prefers-reduced-motion: reduce) {
  .history-page .history-progress span {
    width: 100%;
    animation: none;
  }
}
