/*
Содержание:
1. Кнопки
2. Селекты
3. Инпуты
4. Чекбоксы
5. Дивы с данными
6. Изображения
*/

/* 1. Кнопки */
/* базовые стили кнопок */
.btn {
  border: 1px;
  border-radius: var(--btn-border-radius);
  padding: 5px 10px;
  cursor: pointer;
  font-size: 12px;
  font-weight: 300;
}

.btn:hover {
  filter: brightness(0.85);
}

.btn:active {
  filter: brightness(0.85);
}

.btn-inactive {
  background-color: var(--gray185) !important;
  cursor: default;
}

.btn-inactive:hover {
  filter: brightness(1);
}

.btn-delete-label {
  margin-left: 10px;
  cursor: pointer;
  font-size: 20px;
  color: var(--red);
  background: none;
  border: none;
  outline: none;
}


.btn-login,
.btn-signup {
  height: 30px;
  width: 130px;
  background-color: var(--gray185);
}

/* кнопки страницы объявлений пользователя */
.btn-usads-state {
  padding: 12px 24px !important;
  border: none !important;
  background-color: transparent !important;
  color: var(--text-gray) !important;
  font-size: 16px !important;
  font-weight: 500 !important;
  border-bottom: 3px solid transparent !important;
  transition: all 0.3s ease;
  border-radius: 0 !important;
  width: auto !important;
}

.btn-usads-state.active {
  color: black !important;
  border-bottom-color: var(--brand) !important;
}

/* кнопки, необходимые для промежуточной работы, которые потом нужно удалить */
.btn-page {
  height: 40px;
  width: 120px;
  background-color: var(--gray185);
}

/* кнопки для футера */
.btn-ftr {
  width: auto;
  padding: 5px 0px;
  font-size: 14px;
  background-color: transparent;
  text-align: left;
  border: none;
}

.btn-ftr:hover {
  color: var(--gray125);
}

/* ------------------ */
.btn-acc-popup {
  width: 100%;
  height: 40px;
  border-radius: 0;
  text-align: left;
  background-color: var(--white);
  font-size: 16px;
}

.btn-acc-popup:hover {
  background-color: var(--brand);
}

.btn-post-ad {
  height: 40px;
  width: 180px;
  background-color: var(--brand);
}

.btn-edit,
.btn-cancel-chng {
  height: 30px;
  width: 120px;
  background-color: var(--brand);
}

.btn-save-chng {
  height: 30px;
  min-width: 120px;
  background-color: var(--red);
}

.btn-ad-draft {
  height: 30px;
  background-color: var(--blue);
}

.btn-ad-publish {
  height: 30px;
  background-color: var(--brand);
}

.btn-ad-cancel,

.btn-pay {
  min-width: 150px;
  background-color: var(--brand);
}


.btn-join-a-comp,
.btn-edit-a-comp,
.btn-export-excel {
  height: 30px;
  background-color: var(--blue);
}

.btn-choose-comp-role {
  width: 175px;
  height: 100%;
  background-color: var(--gray185);
}

.btn-choose-comp-role-active {
  background-color: var(--blue);
}

.btn-comp-signup {
  width: 150px;
  background-color: var(--gray185);
}

.btn-hide-show {
  background-color: var(--gray185);
}

.btn-expand-show {
  background-color: var(--gray185);
}

/* Кнопки биллинга */
.btn-topup {
  height: 45px;
  width: 150px;
  background-color: var(--blue);
  color: white;
  font-size: 16px;
  font-weight: 600;
}

.btn-export-excel {
  background-color: var(--blue);
  color: white;
}

.btn-primary {
  background-color: var(--brand);
}

.btn-secondary {
  background-color: var(--gray185);
}

/* 2. Селекты */
.select {
  height: 30px;
  padding: 0 6px !important;
  border: solid 0.1px var(--gray155);
  border-radius: var(--elem-border-radius);
  outline: none;
  /* Убираем дополнительную обводку при фокусе */
  box-sizing: border-box;
  /* свойство, предотвращает выход за пределы контейнера*/
  color: var(--black);
}

.select:focus {
  background-color: var(--brand-light);
}

.select-modal {
  width: 220px;
  margin-top: 10px;
}

.select-filter {
  width: 100%;
}

.select-filter-start {
  width: 200px;
  height: 40px;
}

.select-sort {
  width: 150px;
}

.select-newad {
  width: 250px;
  font-size: 13px;
  font-weight: 300;
}

.select-newad-year {
  width: 120px;
}

.pagination-separator {
  padding: 8px 4px;
  color: var(--text-gray);
  font-weight: bold;
}

/* 3. Кнопки модератора */
.btn-search {
  background-color: #666;
  color: white;
  border: none;
  padding: 8px 16px;
  border-radius: 4px;
  font-size: 14px;
}

.btn-search:hover {
  background-color: #555;
}

.btn-moder-state {
  padding: 12px 24px !important;
  border: none !important;
  background-color: transparent !important;
  color: var(--text-gray) !important;
  font-size: 16px !important;
  font-weight: 500 !important;
  border-bottom: 3px solid transparent !important;
  transition: all 0.3s ease;
  border-radius: 0 !important;
  width: auto !important;
}

.btn-moder-state.active {
  color: black !important;
  border-bottom-color: var(--brand) !important;
}

/* 4. Инпуты */
.input {
  height: 30px;
  padding: 0 10px;
  border: solid 0.1px var(--gray155);
  border-radius: var(--elem-border-radius);
  outline: none;
  /* Убираем дополнительную обводку при фокусе */
  box-sizing: border-box;
  /* свойство, предотвращает выход за пределы контейнера*/
  color: var(--black);
}

.input:focus {
  background-color: var(--brand-light);
}

.input-modal {
  width: 220px;
}

.input-number {
  width: 150px;
  text-align: center;
}

.file-input {
  display: none;
}

.input-newad-subtype {
  width: 250px;
  font-size: 13px;
  font-weight: 300;
}

.input-newad-price {
  width: 163px;
  text-align: center;
  font-size: 13px;
  font-weight: 300;
}

.label-input {
  font-size: 12px;
  font-weight: 300;
  color: var(--gray-text);
}

/* 4. Чекбоксы */

.chbx-cont {
  margin-bottom: 5px;
}

.newad-chbx-cont,
.adedit-chbx-cont {
  margin-right: 20px;
}


.chbx-newad,
.chbx-adedit,
.chbx-promo {
  width: 20px;
  height: 20px;
  margin-right: 10px;
}

.lbl-chbx-filter,
.lbl-chbx-newad,
.lbl-chbx-adedit,
.lbl-chbx-promo {
  font-size: 14px;
  font-weight: 300;
  color: var(--black);
}

/* 5. Дивы с данными */
.div-data {
  height: 30px;
  border: solid 0.1px var(--gray155);
  border-radius: var(--elem-border-radius);
  box-sizing: border-box;
  /* свойство, предотвращает выход за пределы контейнера*/
  display: flex;
  align-items: center;
}

.div-data p {
  margin-left: 10px;
  font-size: 15px;
}

.div-nonedit {
  background-color: var(--gray245);
}

.usda-div-data {
  width: 300px;
}

/* Специальная ширина для полей кода телефона */
#usdaedit-phcode-cnt,
#codaedit-phcode-cnt {
  width: 120px;
}

/* Специальная ширина для полей номера телефона */
#usdaedit-phone-cnt,
#codaedit-phone-cnt {
  width: 175px;
}

.adedit-div-data {
  width: 200px;
}

.adedit-div-data-nb {
  width: 150px;
  justify-content: center;
}

.adedit-div-data-nb p {
  margin: 0;
}

.adedit-div-data-descr {
  width: 630px;
  height: auto;
  min-height: 120px;
  align-items: start;
}

/* 6. Изображения */
.usda-ava {
  border-radius: var(--ava-border-radius);
  border: 0.5px solid var(--gray185);
}


/* 7. Иконки */
.icon-active {
  cursor: pointer;
}

.icon-active:hover {
  transform: scale(1.1);
  transition: transform 0.1s ease;
}

.advi-views-icon {
  width: 20px;
  height: 20px;
}

.usda-card-views-icon {
  width: 16px;
  height: 16px;
}

.usda-card-saves-icon {
  width: 14px;
  height: 14px;
}

.adli-icon-save,
.advi-icon-save,
.advi-icon-share {
  width: 20px;
  height: 20px;
}

.icon-save-cont {
  height: 20px;
}

/* 8. Аватары */
.ava {
  border-radius: 50%;
  border: 0.5px solid var(--gray185);
}

.adli-user-ava,
.advi-user-ava {
  width: 50px;
  height: 50px;
  object-fit: cover;
  /* Масштабируем изображение, сохраняя соотношение сторон */
}

/* 9. Инпуты для загрузки файлов с drag-and-drop */

/* Базовая область для загрузки файлов (универсальная) */
.file-droparea {
  position: relative;
  width: 100%;
  min-height: 120px;
  max-height: 400px;
  padding: 10px;
  cursor: pointer;
  border: 2px dashed var(--gray155);
  border-radius: var(--elem-border-radius);
  background-color: var(--white);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transition: background-color 0.3s, border-color 0.3s;
}

.file-droparea:hover {
  filter: brightness(0.95);
  border-color: var(--blue);
}

/* Подсветка при dragover */
.file-droparea.highlight {
  border: solid 2px;
  border-color: var(--green);
  background-color: var(--gray240);
}

/* Текст placeholder */
.file-droparea-text {
  font-size: 13px;
  font-weight: 300;
  color: var(--gray125);
  text-align: center;
  margin: 10px 0;
}

/* Скрываем текст, если есть файлы */
.file-droparea.has-files .file-droparea-text {
  display: none;
}

/* Скрываем стандартный input */
.file-input {
  display: none;
}

/* Контейнер для предварительного просмотра загруженных файлов */
.file-preview {
  display: none;
  flex-wrap: wrap;
  gap: 5px;
  padding: 5px;
  width: 100%;
  justify-content: flex-start;
  align-items: flex-start;
}

.file-preview.visible {
  display: flex;
}

/* Элемент файла (документ) */
.file-item {
  display: inline-block;
  padding: 5px 10px;
  background-color: var(--gray185);
  border-radius: var(--elem-border-radius);
  position: relative;
  font-size: 14px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 180px;
}

.file-item .remove-btn {
  position: absolute;
  right: 5px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 12px;
  cursor: pointer;
  border: none;
  background: none;
  padding: 0;
  line-height: 1;
  color: var(--red);
}

.file-item .remove-btn:hover {
  color: var(--dark-red);
}

/* Элемент фото (превью изображения) */
.photo-item {
  position: relative;
  width: 100px;
  height: 100px;
  border-radius: var(--elem-border-radius);
  overflow: hidden;
  flex-shrink: 0;
}

.photo-preview {
  width: 100px;
  height: 100px;
  object-fit: cover;
  display: block;
}

.remove-photo-btn {
  position: absolute;
  top: 2px;
  right: 2px;
  background-color: rgba(255, 255, 255, 0.9);
  border: none;
  border-radius: 50%;
  width: 20px;
  height: 20px;
  cursor: pointer;
  color: red;
  font-size: 14px;
  font-weight: bold;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
  pointer-events: auto;
}

.remove-photo-btn:hover {
  background-color: rgba(255, 0, 0, 0.1);
}

/* Вариант для компактных модальных окон */
.file-droparea-compact {
  width: 355px;
  min-height: 80px;
  padding: 5px;
  background-color: var(--modal-color);
}

/* 10. Стили для панели модератора */
/* Контейнер для действий в детальной информации */
.moder-details-actions {
  display: flex;
  gap: 10px;
  align-items: center;
  margin-bottom: 20px;
}

/* Кнопки панели модератора */
.moder-save-btn {
  height: 30px;
  width: 150px;
  background-color: var(--brand);
}

.moder-save-btn:disabled {
  background-color: var(--gray185);
  cursor: not-allowed;
  opacity: 0.6;
}

.moder-cancel-btn {
  background-color: var(--gray155);
  color: var(--white);
  border: none;
  padding: 8px 16px;
  border-radius: var(--elem-border-radius);
  font-size: 14px;
  font-weight: 500;
  transition: background-color 0.3s;
}

.moder-cancel-btn:hover:not(:disabled) {
  background-color: var(--gray125);
}

.moder-cancel-btn:disabled {
  background-color: var(--gray185);
  cursor: not-allowed;
  opacity: 0.6;
}

.moder-back-btn {
  width: 150px;
  height: 30px;
  background-color: var(--blue);
  color: var(--white);
}

/* Селекты и текстовые поля для редактирования в панели модератора */
.editable-select {
  width: 100%;
  padding: 6px 10px;
  border: 1px solid var(--gray155);
  border-radius: var(--elem-border-radius);
  background-color: var(--white);
  font-size: 14px;
  color: var(--black);
  cursor: pointer;
  font-family: inherit;
  resize: vertical;
}

.editable-select:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 2px rgba(0, 123, 255, 0.25);
}

/* Специальные стили для textarea */
.editable-select[data-field="statusInfo.statusComment"] {
  min-height: 60px;
  max-height: 120px;
  resize: vertical;
  cursor: text;
}

/* Стили для редактируемых полей в формах (компания, пользователь) */
.select-in-div {
  width: 100%;
  height: 100%;
  padding: 0 6px;
  border: 0;
  border-radius: var(--elem-border-radius);
  background-color: transparent;
  font-size: 15px;
  font-weight: 300;
  color: var(--black);
  cursor: pointer;
  font-family: inherit;
  box-sizing: border-box;
  display: flex;
  align-items: center;
}

.select-in-div:focus {
  outline: none;
  box-shadow: 0 0 0 2px rgba(0, 123, 255, 0.25);
}

.input-in-div {
  width: 100%;
  height: 100%;
  padding: 0 10px;
  border: 0;
  border-radius: var(--elem-border-radius);
  background-color: transparent;
  font-size: 15px;
  font-weight: 300;
  color: var(--black);
  cursor: text;
  font-family: inherit;
  box-sizing: border-box;
  display: flex;
  align-items: center;
}

.input-in-div:focus {
  outline: none;
  box-shadow: 0 0 0 2px rgba(0, 123, 255, 0.25);
}

.textarea-in-div {
  width: 100%;
  height: 100%;
  padding: 10px;
  border: 0;
  /* Set border to 0 */
  border-radius: var(--elem-border-radius);
  background-color: transparent;
  /* Set background to transparent */
  font-size: 15px;
  font-weight: 300 !important;
  color: var(--black);
  cursor: text;
  resize: both;
  font-family: inherit;
  box-sizing: border-box;
  display: block;
  text-align: left;
}

.textarea-in-div:focus {
  outline: none;
  box-shadow: 0 0 0 2px rgba(0, 123, 255, 0.25);
}

/* Контейнер для описания компании */
.description-container {
  width: 605px;
}

.description-container .div-data {
  width: 605px;
  height: 90px;
}

.description-container .div-data p {
  text-align: left;
  vertical-align: top;
  display: flex;
  align-items: flex-start;
  height: 100%;
  padding-top: 10px;
}

/* Заголовок детальной информации */
.comp-details-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  padding-bottom: 15px;
  border-bottom: 1px solid var(--gray185);
}

.comp-details-header h3 {
  margin: 0;
  color: var(--black);
  font-size: 18px;
  font-weight: 600;
}

/* Устаревшие классы для обратной совместимости */
.custom-file-upload {
  position: relative;
  width: 355px;
  padding: 5px;
  background-color: var(--modal-color);
  border: 2px dashed var(--blue);
  border-radius: 5px;
  text-align: center;
  transition: background-color 0.3s, border-color 0.3s;
}

.custom-file-upload:hover {
  filter: brightness(0.85);
}

.custom-file-upload:focus-within {
  filter: brightness(0.85);
}

.custom-file-upload.has-files .drop-text {
  display: none;
}

/* Стили для невалидного чекбокса */
.checkbox-invalid {
  border: 2px solid #ff4444 !important;
  background-color: #ffe6e6 !important;
}

.checkbox-error-message {
  color: #ff4444;
  font-size: 12px;
  margin-top: 5px;
  display: none;
}

/* Стили для чекбокса согласия с правилами */
.checkbox-container {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin: 10px 0;
}

.checkbox-input {
  margin: 0;
  width: 16px;
  height: 16px;
  cursor: pointer;
  accent-color: var(--primary-color);
}

.checkbox-label {
  font-size: 14px;
  line-height: 1.4;
  cursor: pointer;
  color: var(--text-color);
  user-select: none;
}

.checkbox-label:hover {
  color: var(--primary-color);
}

/* Стили для модального окна создания соглашения */
.agreement-tabs {
  margin: 20px 0;
}

.tab-buttons {
  display: flex;
  border-bottom: 2px solid var(--border-color);
  margin-bottom: 20px;
}

.tab-btn {
  background: none;
  border: none;
  padding: 12px 20px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-color);
  border-bottom: 3px solid transparent;
  transition: all 0.3s ease;
}

.tab-btn:hover {
  color: var(--primary-color);
  background-color: var(--bg-light);
}

.tab-btn.active {
  color: var(--primary-color);
  border-bottom-color: var(--primary-color);
  background-color: var(--bg-light);
}

.agreement-tab-content {
  position: relative;
}

.agreement-tab-panel {
  display: none;
}

.agreement-tab-panel.active {
  display: block;
}

.textarea {
  width: 100%;
  padding: 10px;
  border: 1px solid var(--border-color);
  border-radius: 4px;
  font-family: inherit;
  font-size: 14px;
  resize: vertical;
  min-height: 60px;
}

.textarea:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 2px rgba(var(--primary-color-rgb), 0.2);
}

.moder-add-button-container {
  margin: 20px 0;
  text-align: center;
}

.moder-add-button-container .btn {
  padding: 12px 24px;
  font-size: 16px;
  font-weight: 600;
}

/* Стили для статусов соглашений */
.status-badge {
  display: inline-block;
  padding: 4px 8px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 500;
  text-transform: uppercase;
}

.status-draft {
  background-color: #fef3cd;
  color: #856404;
  border: 1px solid #ffeaa7;
}

.status-active {
  background-color: #d1edff;
  color: #0c5460;
  border: 1px solid #74c0fc;
}

.status-archived {
  background-color: #f8d7da;
  color: #721c24;
  border: 1px solid #f5c6cb;
}

.status-blocked {
  background-color: #f8d7da;
  color: #721c24;
  border: 1px solid #f5c6cb;
}

.status-inactive {
  background-color: #e2e3e5;
  color: #383d41;
  border: 1px solid #d6d8db;
}

.status-pending {
  background-color: #fff3cd;
  color: #856404;
  border: 1px solid #ffeaa7;
}

.status-none {
  background-color: #e2e3e5;
  color: #6c757d;
  border: 1px solid #d6d8db;
}

.status-rejected {
  background-color: #f8d7da;
  color: #721c24;
  border: 1px solid #f5c6cb;
}

.status-suspended {
  background-color: #f8d7da;
  color: #721c24;
  border: 1px solid #f5c6cb;
}

/* Стили для типов сделки */
.deal-type-badge {
  display: inline-block;
  padding: 4px 8px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 500;
  text-transform: uppercase;
}

.deal-type-sale {
  background-color: #d1edff;
  color: #0c5460;
  border: 1px solid #74c0fc;
}

.deal-type-rent {
  background-color: #d4edda;
  color: #155724;
  border: 1px solid #c3e6cb;
}

.deal-type-lease {
  background-color: #fef3cd;
  color: #856404;
  border: 1px solid #ffeaa7;
}

/* Стили для ссылок на версии соглашений */
.agreement-version-link {
  color: var(--primary-color);
  text-decoration: none;
  font-weight: 600;
  cursor: pointer;
}

.agreement-version-link:hover {
  text-decoration: underline;
  color: var(--primary-color-dark);
}

/* Стили для модального окна детальной информации соглашения */
.agreement-details-content {
  max-width: 800px;
  max-height: 90vh;
  overflow-y: auto;
}

.agreement-details-info {
  background-color: var(--bg-light);
  padding: 20px;
  border-radius: 8px;
  margin-bottom: 20px;
}

.detail-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 0;
  border-bottom: 1px solid var(--border-color);
}

.detail-row:last-child {
  border-bottom: none;
}

.detail-row label {
  font-weight: 600;
  color: var(--text-color);
  margin-right: 15px;
}

.detail-row span {
  color: var(--text-color-secondary);
}

.agreement-details-content-tabs {
  margin: 20px 0;
}

.agreement-details-tab-content {
  position: relative;
}

.agreement-details-tab-panel {
  display: none;
}

.agreement-details-tab-panel.active {
  display: block;
}

.agreement-details-text {
  background-color: var(--bg-light);
  padding: 10px;
  border-radius: 4px;
  font-weight: 500;
  margin-bottom: 15px;
  border: 1px solid var(--border-color);
}

.agreement-details-content-text {
  background-color: var(--bg-light);
  padding: 15px;
  border-radius: 4px;
  border: 1px solid var(--border-color);
  max-height: 300px;
  overflow-y: auto;
  white-space: pre-wrap;
  line-height: 1.6;
}

/* Стили для таблицы детальной информации соглашения */
.agreement-details-table-container {
  margin-bottom: 20px;
}

.agreement-details-table {
  width: 100%;
  border-collapse: collapse;
  background-color: var(--bg-color);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.agreement-details-table td {
  padding: 12px 15px;
  border-bottom: 1px solid var(--border-color);
  vertical-align: top;
}

.agreement-details-table td:last-child {
  border-bottom: none;
}

.field-label {
  width: 15%;
  background-color: var(--bg-light);
  font-weight: 600;
  color: var(--text-color);
  border-right: 1px solid var(--border-color);
}

.field-value {
  width: 85%;
  background-color: var(--bg-color);
}

.field-value .input,
.field-value .select,
.field-value .textarea {
  width: 100%;
  border: 1px solid var(--border-color);
  border-radius: 4px;
  padding: 8px 12px;
  font-size: 14px;
  background-color: var(--bg-color);
  color: var(--text-color);
}

.field-value .input:focus,
.field-value .select:focus,
.field-value .textarea:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 2px rgba(var(--primary-color-rgb), 0.2);
}

.field-value .input[readonly] {
  background-color: var(--bg-light);
  color: var(--text-color-secondary);
  cursor: not-allowed;
}

.field-value .textarea {
  resize: vertical;
  min-height: 60px;
}

/* Стили для редактируемых полей соглашений */
.editable-field {
  width: 100%;
}

.editable-select {
  height: 30px;
  padding: 0 6px;
  border: solid 0.1px var(--gray155);
  border-radius: var(--elem-border-radius);
  outline: none;
  background-color: var(--white);
  box-sizing: border-box;
  color: var(--black);
  width: 100%;
}

.editable-select:focus {
  background-color: var(--brand-light);
}

.editable-input {
  height: 30px;
  padding: 0 10px;
  border: solid 0.1px var(--gray155);
  border-radius: var(--elem-border-radius);
  outline: none;
  background-color: var(--white);
  box-sizing: border-box;
  color: var(--black);
  width: 100%;
}

.editable-input:focus {
  background-color: var(--brand-light);
}

.editable-textarea {
  width: 100%;
  padding: 10px;
  border: 1px solid var(--border-color);
  border-radius: 4px;
  font-family: inherit;
  font-size: 14px;
  resize: none;
  /* Отключаем ручное изменение размера */
  min-height: 40px;
  overflow: hidden;
  line-height: 1.4;
  box-sizing: border-box;
}

.editable-textarea:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 2px rgba(var(--primary-color-rgb), 0.2);
}

/* Стили для заголовка детальной информации соглашения */
.agreement-details-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  padding-bottom: 15px;
  border-bottom: 2px solid var(--border-color);
}

.agreement-details-header h3 {
  margin: 0;
  color: var(--text-color);
  font-size: 18px;
  font-weight: 600;
}

/* Стили для действий детальной информации соглашения */
.agreement-details-actions {
  margin-top: 20px;
  text-align: center;
  padding-top: 20px;
  border-top: 1px solid var(--border-color);
}

.agreement-details-actions .btn {
  margin: 0 10px;
  padding: 10px 20px;
  font-size: 14px;
  font-weight: 500;
}

/* Стили для кнопки удаления */
.btn-danger {
  background-color: #dc3545;
  color: white;
  border: none;
}

.btn-danger:hover {
  background-color: #c82333;
}

.btn-danger:active {
  background-color: #bd2130;
}

/* Стили для select в формах тестирования */
#testing-tab .select {
  height: 30px;
  padding: 0 6px !important;
  border: solid 0.1px var(--gray155);
  border-radius: var(--elem-border-radius);
  outline: none;
  box-sizing: border-box;
  color: var(--black);
  width: 100%;
}

#testing-tab .select:focus {
  background-color: var(--brand-light);
}

/* Стили для input в формах тестирования */
#testing-tab .input {
  height: 30px;
  padding: 0 10px !important;
  border: solid 0.1px var(--gray155);
  border-radius: var(--elem-border-radius);
  outline: none;
  box-sizing: border-box;
  color: var(--black);
  width: 100%;
}

#testing-tab .input:focus {
  background-color: var(--brand-light);
}

/* Стили для таба тестирования */
#testing-tab {
  height: 100%;
  display: flex;
  flex-direction: column;
}

/* Стили для контейнера тестирования */
#testing-page .moder-container {
  height: 100%;
  display: flex;
  flex-direction: row;
  gap: 20px;
  align-items: flex-start;
}

/* Стили для страницы тестирования */
#testing-page .testing-section {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  min-height: 200px;
  margin-top: 0 !important;
}

#testing-page .testing-section form {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  height: auto;
}

#testing-page .testing-section .form-group {
  flex-shrink: 0;
  margin-bottom: 15px;
}

#testing-page .testing-section .btn {
  align-self: flex-start;
}

/* Кнопка сохранения логотипа */
#save-logo-btn.active {
  height: 30px;
  min-width: 120px;
  background-color: var(--red);
}

/* Styles for user agreement modal */
.agreement-display {
  max-height: 60vh;
  overflow-y: auto;
  padding: 20px;
  background-color: var(--bg-color);
  border-radius: 8px;
  border: 1px solid var(--border-color);
}

.agreement-version {
  color: var(--primary-color);
  margin-bottom: 15px;
  font-size: 16px;
  font-weight: 600;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border-color);
}

.agreement-text {
  color: var(--text-color);
  margin: 0;
  padding: 0;
  text-align: left;
  display: block;
}

.agreement-text p {
  margin-block-start: 0;
  margin-block-end: 0;
  margin: 0;
  padding: 0;
  line-height: 1.6;
  white-space: pre-wrap;
  display: block;
}

.agreement-meta {
  border-top: 1px solid var(--border-color);
  padding-top: 15px;
  font-size: 14px;
  color: var(--text-secondary);
}

.agreement-meta p {
  margin: 5px 0;
}

.agreement-error {
  text-align: center;
  padding: 40px 20px;
  color: var(--error-color);
}

.agreement-loading {
  text-align: center;
  padding: 40px 20px;
  color: var(--text-secondary);
}

/* Make user agreement text clickable */
.lng_user_agreement {
  color: var(--primary-color);
  text-decoration: underline;
  cursor: pointer;
}

.lng_user_agreement:hover {
  color: var(--primary-color-dark);
}