.dvr-show-table td:first-child,
.mts-int-table td:first-child{
    text-align: right;
    font-weight: bold;
}

#clipboard-tooltip {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 10000;
    padding: 5px 15px 10px;
    font-size: 1.6em;
    border: 2px solid #3b3125;
    border-radius: 20px;
    background-color: #f5d879;
    max-width: fit-content;
    white-space: nowrap;
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
}

.table-index td:first-child{
    color: silver;
}

.pass-text{
    user-select: all;
}


/* LOADER ICON START*/

.lds-dual-ring {
  display: inline-block;
  width: 30px;
  height: 46px;
  cursor: pointer;
}
.lds-dual-ring:after {
  content: " ";
  display: block;
  width: 30px;
  height: 30px;
  margin: 2px;
  border-radius: 50%;
  border: 5px solid #000;
  border-color: #000 transparent #000 transparent;
  animation: lds-dual-ring 1.2s linear infinite;
}

.lds-dual-ring-sm {
  display: inline-block;
  width: 18px;
  height: 18px;
  cursor: pointer;
}
.lds-dual-ring-sm:after {
  content: " ";
  display: block;
  width: 18px;
  height: 18px;
  margin: 2px;
  border-radius: 50%;
  border: 2px solid #000;
  border-color: #000 transparent #000 transparent;
  animation: lds-dual-ring 1.2s linear infinite;
}

@keyframes lds-dual-ring {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

/* LOADER ICON END*/

.pencil-fill{
    fill: #0d6efd;
}

.pencil-fill:hover{
    fill: white;
}

summary {
  cursor: pointer;
  list-style: none;
}

.after-show::after{
    content: "(Показать)"
}

.image-area{
  min-height: 160px !important;
  height:fit-content !important;
  position: relative !important;
}

.image-area-back-text{
  position: absolute;
  width: 100%;
  top: 50px;
  z-index: 1;
  color: rgb(160, 160, 160);
}

.image-wrapper{
  position: relative;
  border: solid black 1px;
  width: fit-content;
  height: fit-content;
  z-index: 100;
  padding: 0;
  margin: 5px;
}

.image-wrapper .close-button{
  position: absolute;
  right: -10px;
  top:-10px;
  z-index: 1000;
  width: 25px;
  height: 25px;
  border: solid black 1px;
  border-radius: 50%;
  background-color: #ffbbbb;
  color: #000;
  font-size: 20px;
  line-height: 22px;
  font-weight: bold;
  -webkit-text-stroke: 2px black;
  cursor: pointer;
}

.image-wrapper img {
    height:150px;
    width:auto;
    cursor: zoom-in;
}

.th-keys-input {
    width: 80px!important;
    display: inline!important;
}

#panels-table thead tr td:nth-child(2),
#panels-table tbody tr td:nth-child(2){
    text-align: center;
}

.pointer{
    cursor: pointer;
}

.sort-icon {
    cursor: pointer;
    color: lightgray; /* Серый цвет по умолчанию */
    font-size: 0.8em; /* Немного уменьшим размер для лучшего вида */
    vertical-align: middle;
    margin-left: 5px;
}

.sort-icon.active {
    color: black; /* Черный цвет при активной сортировке */
}

/* для плагина Tom Select */
.ts-control{
    border: none !important;
    padding: 0 !important;
}

.loading-overlay {
    position: absolute;
    top: 40px; /* Изменено с 0 на 40px */
    left: 0;
    width: 100%;
    height: calc(100% - 40px); /* Изменено */
    background-color: rgba(0, 0, 0, 0.5); /* Полупрозрачный черный */
    z-index: 9999; /* Высокий z-index, чтобы перекрывать другие элементы */
    opacity: 0; /* Скрыт по умолчанию */
    pointer-events: none; /* Позволяет кликать сквозь слой */
    border-radius: 10px; /* Добавлено */
    transition: opacity 0.3s ease; /* Добавлено для плавности */
}

.loading-overlay.visible {
    opacity: 1; /* Видимый */
}