/* --------------POPUP GENERALLY------------ */
#brand-popup .text-blue {
  color: #58b9e5;
}

#brand-popup .btn {
  font-size: 18px;
  font-weight: 700;
  min-width: 169px;
}

#brand-popup .btn-new {
  background: #519000;
  border: 2px solid #519000;
  color: #fff;
  padding: 12px 30px;
}

#brand-popup .btn-new:hover {
  background: #fff;
  color: #519000;
}

#brand-popup .btn-new-inverse {
  background: #fff;
  border: 2px solid #519000;
  color: #519000;
  padding: 12px 30px;
}

#brand-popup .btn-new-inverse:hover {
  background: #519000;
  color: #fff;
}

#brand-popup .MY-modal-close {
  right: 32px;
  top: 32px;
}

#brand-popup .MY-modal-close .close {
  background-size: 35px 35px;
  opacity: 0.7;
}

#brand-popup .modal-content {
  border-radius: 30px;
  box-shadow: 0 1px 5px 0 rgba(0, 0, 0, 0.25);
}

#brand-popup .modal-body {
  padding: 30px;
}

#brand-popup .MY-popup-title h2 {
  font-size: 38px;
  line-height: 125%;
  letter-spacing: -0.03em;
  margin: 0px 55px 15px 0;
}

#brand-popup .modal-dialog {
  max-width: 1320px;
  height: 100%;
}

.selection-bar {
  border-radius: 20px;
  padding: 15px 15px;
  margin-bottom: 15px;
  box-shadow: 0 1px 4px 0 rgba(0, 0, 0, 0.25);
  background: #fff;
}

.btn-container {
  display: flex;
  gap: 15px;
  flex-wrap: nowrap;
}

/* ------------------ POPUP ELEMENTS--------------- */
.selected-brands-container {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 15px;
}

.brand-tag {
  border-radius: 30px;
  padding: 10px 20px;
  background: #eefaff;
  color: #000;
  font-size: 18px;
  line-height: 120%;
}

/* Кастомный тег (желтый) */
.brand-tag.custom-tag {
  background: #eef2b3;
}

.brand-tag-close {
  margin-left: 15px;
  cursor: pointer;
  color: #adb5bd;
  position: relative;
}

.brand-tag-close::after {
  position: absolute;
  content: url(./svg/tag-close.svg);
  top: 2px;
  left: 0;
}

/* Поле поиска */
.input-container {
  margin-bottom: 15px;
}

.brandname-search-container {
  position: relative;
}

.brandname-search-container::after {
  content: "";
  background-image: url(./svg/search.svg);
  position: absolute;
  height: 19px;
  width: 19px;
  transform: translate(0, -50%);
  top: 50%;
  left: 25px;
}

input.brandname-search {
  padding: 15px 25px 15px 60px !important;
  font-size: 20px;
  line-height: 77%;
  color: #555763;
}

input.brandname-search::placeholder {
  color: #555763;
}

.input-container .brand-search-response {
  z-index: -1;
  background: #f3f5cf;
  color: #0f7c7b;
  border-radius: 30px;
  padding: 80px 30px 30px 30px;
  position: absolute;
  margin-top: 0;
  top: 0px;
  width: 100%;
  line-height: 150%;
  align-items: end;
  gap: 20px;
}

.input-container .brand-search-response b {
  font-size: 21px;
}

.input-container .brand-search-response p {
  font-weight: normal;
  font-size: 16px;
  margin-bottom: 0;
}

.input-note {
  font-size: 18px;
  line-height: 150%;
  color: #000;
  margin-bottom: 0;
}

/* Таблица */
.table-container {
  border-radius: 20px;
  padding: 30px 30px 20px;
  box-shadow: 0 1px 4px 0 rgba(0, 0, 0, 0.25);
}

.table thead {
  border-bottom: 1px solid #000;
}

.table thead th {
  border-top: none;
  font-weight: 700;
  font-size: 18px;
  line-height: 100%;
  color: #606a71;
  padding: 20px 15px;
}

.table td {
  border-top: 1px solid #e1e1e1;
  padding: 20px 15px;
  font-size: 18px;
  line-height: 120%;
}

/* Скроллбар справа */
.table-responsive {
  /*max-height: 600px;*/
  overflow-y: auto;
}

.table-fixed-head {
  /*max-height: 600px;*/
  overflow-y: auto;
  display: block;
}

.table-fixed-head table {
  width: 100%;
  border-collapse: collapse;
}

.table-fixed-head thead th {
  position: sticky;
  top: 0;
  z-index: 1;
  background-color: #f8f9fa;
  box-shadow: 0 2px 2px -1px rgba(0, 0, 0, 0.1);
  white-space: nowrap;
}

.table-fixed-head::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

/* Ползунок */
.table-fixed-head::-webkit-scrollbar-thumb {
  background-color: #ccc;
  border-radius: 4px;
}

/* Фон скроллбара */
.table-fixed-head::-webkit-scrollbar-track {
  background-color: #f1f1f1;
}

/* Подсветка выбранной строки */
.table-row-selected {
  background-color: #f0faff !important;
  /* Светло-голубой */
}

/* Статусы */
.status-available {
  color: #0099df;
}

.status-claimed {
  color: #ff7a00;
}

.status-pending {
  color: #9a69c6;
}

.status-portfolio {
  color: #519000;
}

.table-info {
  --bs-table-bg-state: #eefaff;
}

.table-secondary {
  --bs-table-bg-state: #f8f8f8;
}

/* Класс для подсвеченных букв в таблице */
.brand-highlight {
  color: #fd7e14;
  /* Оранжевый */
  font-weight: bold;
  padding: 0;
  margin: 0;
}

.sortable-header {
  cursor: pointer;
}

.sortable-header .caret {
  color: #000;
  font-size: 14px;
  margin-right: 7px;
}


th.sortable-header {
  vertical-align: top;
}

th.sortable-header .align-items-center {
  align-items: flex-start !important;
  margin-left: -20px;
  margin-right: 10px;
}

th.sortable-header:first-child .align-items-center {
  margin-left: 0;
}



/* 100% height */
#brand-popup .modal-dialog {
  max-width: 1320px;
  width: calc(100vw - 40px);
  height: calc(100vh - 40px);
  margin: 20px auto;
}

#brand-popup .modal-content {
  height: 100%;
  display: flex;
  flex-direction: column;
  border-radius: 24px;
  overflow: hidden;
  background: #FBFBFB;
}

#brand-popup .PRICE-POPUP.modal-body {
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

#brand-popup .MY-popup-body,
#brand-popup .MY-popup-body>div {
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
}

#brand-popup .table-container {
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
  margin-bottom: 0;
}

#brand-popup .table-responsive {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  overflow-x: auto;
}




@media (max-width: 980px) {
  .selection-bar .d-flex {
    flex-direction: column;
  }

  .selection-bar {
    margin: 15px 0 0 0;
  }

  .selection-bar .btn-container {
    margin-top: 15px;
  }

  .selected-brands-container {
    gap: 7px;
  }
}


@media (max-width: 576px) {
  #brand-popup .MY-popup-title h2 {
    font-size: 24px;
    margin-bottom: 0;
  }

  #brand-popup .modal-body {
    padding: 30px 20px;
  }

  #brand-popup .table-container {
    padding: 15px;
  }



  .input-note {
    font-size: 13px;
  }

  input.brandname-search {
    padding-left: 55px !important;
    font-size: 18px;
  }

  input.brandname-search::placeholder {
    color: #999;
  }

  .input-container .brand-search-response {
    flex-direction: column;
    align-items: inherit;
    padding: 80px 20px 20px 20px;
    text-align: center;
  }


  #brand-popup .modal-dialog {
    width: calc(100vw - 15px);
    height: calc(100vh - 15px);
    margin: 7px auto;
  }

  .brand-tag,
  .table td,
  .table thead th {
    font-size: 16px;
  }

  .table thead th:first-child .align-items-center {
    margin-right: 0;
    text-align: center;
  }

  .col_select {
    display: none;
  }

  #brand-popup .btn {
    min-width: auto;
  }

  .btn-container {
    gap: 5px;
    flex-shrink: unset;
    width: 100%;
  }

  #brand-popup .btn {
    flex: 1 1 0 !important;
    width: 50%;
    min-width: 50%;
    padding: 10px 0px;
  }

  #brand-popup .modal-body {
    padding: 30px 15px;
  }

  #addCustomBrandBtn {
    width: 100% !important;
  }

  #brand-popup .MY-modal-close {
    right: 15px;
    top: 15px;
  }

}