.error {
  font-weight: 600;
}

pre {
  white-space: pre-wrap;
  word-break: break-word;
}

.help-icon-btn {
  border: 0;
  background: transparent;
  color: transparent;
  font-size: 0;
  line-height: 1;
  padding: 0;
  width: 1rem;
  height: 1rem;
  margin-left: 0.25rem;
  border-radius: 999px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.help-icon-btn:hover,
.help-icon-btn:focus {
  background: rgba(13, 110, 253, 0.12);
}

.help-icon-btn::before {
  content: "\f505";
  font-family: bootstrap-icons !important;
  font-style: normal;
  font-weight: 400 !important;
  font-size: 0.9rem;
  line-height: 1;
  color: #0d6efd;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.help-icon-btn:hover::before,
.help-icon-btn:focus::before {
  color: #084298;
}


.popover {
  max-width: 380px;
}

.brand-logo-login {
  width: 260px;
  max-width: 100%;
  height: auto;
  display: block;
  margin: 0 auto 0.75rem;
}

.brand-logo-nav {
  width: 34px;
  height: 34px;
  object-fit: contain;
  margin-right: 0.5rem;
  border-radius: 0.25rem;
  background: #fff;
}

.ti-icon {
  font-size: 1rem;
  line-height: 1;
  vertical-align: -0.125em;
  margin-right: 0.35rem;
  color: currentColor;
}

.ti-icon-nav {
  font-size: 0.95rem;
  margin-right: 0.3rem;
  opacity: 0.95;
}

.btn .ti-icon {
  margin-right: 0.3rem;
}

.btn-icon-only .ti-icon {
  margin-right: 0;
}

.autocomplete-wrap {
  position: relative;
}

.autocomplete-menu {
  position: absolute;
  top: calc(100% + 0.2rem);
  left: 0;
  right: 0;
  z-index: 1060;
  border: 1px solid rgba(13, 110, 253, 0.25);
  border-radius: 0.5rem;
  background: #fff;
  box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.16);
  max-height: 280px;
  overflow-y: auto;
}

.autocomplete-item {
  width: 100%;
  border: 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  background: #fff;
  text-align: left;
  padding: 0.55rem 0.8rem;
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  cursor: pointer;
}

.autocomplete-item:last-child {
  border-bottom: 0;
}

.autocomplete-item:hover,
.autocomplete-item.active {
  background: #0d6efd;
  color: #fff;
}

.autocomplete-title {
  font-weight: 600;
  line-height: 1.2;
}

.autocomplete-title-line {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}

.autocomplete-badge {
  display: inline-block;
  font-size: 0.63rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  line-height: 1;
  padding: 0.22rem 0.38rem;
  border-radius: 999px;
  background: rgba(13, 110, 253, 0.12);
  color: #0a58ca;
}

.autocomplete-meta {
  font-size: 0.8rem;
  opacity: 0.82;
  word-break: break-all;
}

.autocomplete-item:hover .autocomplete-badge,
.autocomplete-item.active .autocomplete-badge {
  background: rgba(255, 255, 255, 0.2);
  color: #fff;
}

.autocomplete-item:hover .autocomplete-meta,
.autocomplete-item.active .autocomplete-meta {
  opacity: 0.95;
}

.autocomplete-empty {
  padding: 0.55rem 0.8rem;
  color: #6c757d;
  font-size: 0.9rem;
}

.timeline-chart-wrap {
  position: relative;
  min-height: 220px;
  height: 220px;
}

.timeline-chart-wrap canvas {
  width: 100% !important;
  height: 100% !important;
}

.timeline-empty {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #6c757d;
  font-size: 0.92rem;
}


.history-table-compact th,
.history-table-compact td,
.history-preview-table th,
.history-preview-table td {
  font-size: 0.76rem;
  padding: 0.28rem 0.34rem;
  vertical-align: middle;
  white-space: normal;
}

.history-subject-cell {
  max-width: 200px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.history-table-compact .btn.btn-sm {
  --bs-btn-padding-y: 0.12rem;
  --bs-btn-padding-x: 0.22rem;
  --bs-btn-font-size: 0.7rem;
}

.history-table-compact {
  table-layout: fixed;
  width: 100% !important;
}

.history-table-wrap {
  overflow-x: hidden;
}

.history-id-cell {
  max-width: 105px;
}

.history-id-cell code {
  display: inline-block;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.history-table-compact tbody tr.history-row-clickable {
  cursor: pointer;
}

.history-table-compact tbody tr.history-row-clickable:hover {
  background-color: rgba(13, 110, 253, 0.06);
}

.history-detail-list dt,
.history-detail-list dd {
  line-height: 1.32;
}

.history-detail-value {
  word-break: break-word;
}

.history-symbols-table td code {
  white-space: nowrap;
}

.history-time-cell {
  white-space: nowrap;
}

.history-table-compact td:nth-child(4),
.history-table-compact td:nth-child(5),
.history-table-compact td:nth-child(11) {
  max-width: 160px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

div.dt-container .dt-search input,
div.dt-container .dt-length select {
  font-size: 0.76rem;
  padding: 0.18rem 0.32rem;
}

div.dt-container .dt-paging .dt-paging-button {
  font-size: 0.74rem;
  padding: 0.12rem 0.35rem;
}

@media (max-width: 1450px) {
  .history-table-compact th,
  .history-table-compact td {
    font-size: 0.74rem;
    padding: 0.24rem 0.28rem;
  }

  .history-subject-cell {
    max-width: 165px;
  }
}

@media (max-width: 1100px) {
  .history-table-compact th,
  .history-table-compact td {
    font-size: 0.71rem;
    padding: 0.2rem 0.24rem;
  }

  .history-subject-cell {
    max-width: 150px;
  }

  div.dt-container .dt-search input,
  div.dt-container .dt-length select,
  div.dt-container .dt-paging .dt-paging-button {
    font-size: 0.7rem;
  }
}
