html, body {
  background-color: var(--bs-light);
}

.content {
  background-color: var(--bs-body-bg);
}

.login-form {
  background-color: var(--bs-body-bg);
  padding: 20px;
  border-radius: 5px;
}

.card-miniicon {
  width: 30px;
  vertical-align: middle;
  margin-right: 5px;
}

.hidden {
  display: none;
}

.btn-xs {
  --bs-btn-padding-y: 0.125rem;
  --bs-btn-padding-x: 0.375rem;
  --bs-btn-font-size: 0.75rem;
  --bs-btn-border-radius: 0.25rem;
  line-height: 1.2;
}

/* microchart */

.microchart-container {
  position: relative;
}

.microchart {
/*  background: #f00;*/
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  bottom: 0;
}

.microchart-col {
  position: absolute;
/*  background: #0f0;*/
}

.microchart-col .mc-allowed {
  position: absolute;
  left: 0px;
  right: 0px;
  overflow: none;
  text-align: center;
  vertical-align: middle;
  display: flex;
  align-items: center;
  justify-content: center;
}

.microchart-col .mc-disallowed {
  position: absolute;
  left: 0px;
  right: 0px;
  overflow: none;
  text-align: center;
  vertical-align: middle;
  display: flex;
  align-items: center;
  justify-content: center;
}

.microchart .legend {
  position: absolute;
  left: 0px;
  bottom: 0px;
  right: 0px;
  text-align: center;
}

.microchart .legend > span {
  display: inline-block;
}

.custom-col {
  padding-right: calc(var(--bs-gutter-x) * .25);
  padding-left: calc(var(--bs-gutter-x) * .25);
}

.customcard {
  padding: 10px 15px;
}

.ava24hchart {
  height: 150px;
}

.upchart {
  position: relative;
  z-index: 1;
}

.upchart_item {
  position: absolute;
  top: 0;
  height: 100%;
}

.marker {
  position: absolute;
  left: 1px;
  top: 0px;
  right: 1px;
  bottom: 0px;
}

.upchart_info {
  z-index: 2;
  position: absolute;
  bottom: 105%; /* размещаем над upchart_item */
  left: 50%;    /* сдвигаем на середину */
  transform: translateX(-50%); /* центрируем по ширине */
  display: none;
  background: #e9ecef;
  padding: 5px;
  white-space: nowrap;
}

.upchart_item:hover > .marker {
  box-shadow: 0 0 2px 2px #000;
}

.upchart_item:hover > .upchart_info {
  display: block;
}

.upchart_0 {
  background: #e9ecef;
}

.upchart_1 {
  background: #198754;
}

.upchart_2 {
  background: #ffc107;
}

.upchart_3 {
  background: #dc3545;
}
