﻿/* ===========================================================
   Глобальные стили проекта.
   Важно: специфические стили интерактивной карты вынесены в
   `public/css/map.css`, чтобы не ломать остальные страницы.
   =========================================================== */

/* .nav-wrapper {
  padding: 0 2rem;
} */

/* .zIndex {
  position: absolute;
  z-index: 2;
} */
/* 
.price {
  font-size: 2rem;
}

.course {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.course h1 {
  margin-bottom: 2rem;
}

.course img {
  max-width: 600px;
  height: auto;
}

.course .price.big {
  font-size: 2.5rem;
}

.card-action.actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.course-form {
  margin-bottom: 2rem;
} */

.auth {
  padding-top: 1rem;
}

.alert {
  margin-top: 1rem;
  padding: 0.5rem 1rem;
  border-radius: 10px;
  text-align: center;
  margin-bottom: 1rem;
  background: rgba(255, 0, 0, 0.3);
  color: red;
}

.success {
  margin-top: 1rem;
  padding: 0.5rem 1rem;
  border-radius: 10px;
  text-align: center;
  background: rgba(173, 251, 182, 0.919);
  color: rgb(1, 149, 35);
}

.warning {
  margin-top: 1rem;
  padding: 0.5rem 1rem;
  border-radius: 10px;
  text-align: center;
  background: rgba(255, 228, 92, 0.919);
  color: rgb(255, 167, 3);
}

.home {
  width: 1920;
  height: 1080;
  margin: 0, auto;
}

.avatar {
  max-width: 300px;
  width: auto;
}

/* #menu__toggle {
  opacity: 0;
}

#menu__toggle:checked ~ .menu__btn > span {
  transform: rotate(45deg);
}
#menu__toggle:checked ~ .menu__btn > span::before {
  top: 0;
  transform: rotate(0);
}
#menu__toggle:checked ~ .menu__btn > span::after {
  top: 0;
  transform: rotate(90deg);
}
#menu__toggle:checked ~ .menu__box {
  visibility: visible;
  left: 0;
}

.menu__btn {
  display: flex;
  align-items: center;
  position: fixed;
  top: 20px;
  left: 20px;

  width: 26px;
  height: 26px;

  cursor: pointer;
  z-index: 1;
}

.menu__btn > span,
.menu__btn > span::before,
.menu__btn > span::after {
  display: block;
  position: absolute;

  width: 100%;
  height: 2px;

  background-color: #616161;

  transition-duration: 0.25s;
}
.menu__btn > span::before {
  content: '';
  top: -8px;
}
.menu__btn > span::after {
  content: '';
  top: 8px;
}

.menu__box {
  display: block;
  position: fixed;
  visibility: hidden;
  top: 0;
  left: -100%;

  width: 300px;
  height: 100%;

  margin: 0;
  padding: 80px 0;

  list-style: none;

  background-color: #ee6e73;
  box-shadow: 1px 0px 6px rgba(0, 0, 0, 0.2);

  transition-duration: 0.25s;
}

.menu__item {
  display: block;
  padding: 12px 24px;

  color: #333;

  font-family: 'Roboto', sans-serif;
  font-size: 20px;
  font-weight: 600;

  text-decoration: none;

  transition-duration: 0.25s;
}

.menu__item:hover {
  background-color: #ee6e73;
} */

.width {
  width: auto;
  text-align: center;
}

.widthInput {
  position: relative;
  width: 100px;
}

.hidden-div {
  display: none;
}

.center {
  margin: 0 auto;
}

.hidden {
  display: none;
}

.dropdown-content {
  max-height: 200px; /* Limit the height of the dropdown */
  overflow-y: auto; /* Add vertical scroll if necessary */
}

/* стили поиска */
@media (max-width: 576px) {
  .d-flex {
    flex-direction: column;
  }

  .d-flex > div {
    width: 100%;
  }

  .d-flex > div + div {
    margin-top: 10px;
  }
}

.hidden-column {
  display: none;
}

.hidden-buttons {
  margin-top: 10px;
  margin-bottom: 10px;
  display: flex;
  flex-wrap: wrap;
}

.hidden-buttons button {
  margin-right: 5px;
  padding: 5px 10px;
  font-size: 12px;
  cursor: pointer;
}

@media (max-width: 768px) {
  .hidden-buttons button {
    width: 100%;
    margin-bottom: 5px;
  }
}

body {
  font-family: 'Roboto', sans-serif;
  background-color: #f5f5f5;
  margin: 0;
  padding: 0;
  padding-top: 60px; /* Add padding equal to the navbar height */
}



/* Кнопки на странице Арендаторы */
/* Управление размером текста кнопок */
.button-text {
  font-size: 12px;
  white-space: nowrap;
}

.myBtn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  text-overflow: ellipsis;
  overflow: hidden;
  width: 100%;
}

.myBtn svg {
  margin-right: 8px;
}

/* Адаптивный текст при малом размере кнопки */
@media (max-width: 576px) {
  .button-text {
    font-size: 10px;
  }
}

/* Подсказка при наведении */
.myBtn[title]:hover::after {
  content: attr(title);
  position: absolute;
  top: -25px;
  left: 50%;
  transform: translateX(-50%);
  background-color: #000;
  color: #fff;
  padding: 3px 8px;
  font-size: 12px;
  border-radius: 4px;
  white-space: nowrap;
  z-index: 10;
  pointer-events: none;
}
/* Конец кнопок на странице Арендаторы */

/* Начало рамок для input-field */
.input-field input {
  border: 1px solid #2d0303 !important;
  border-radius: 4px !important;
  padding: 0.5rem !important;
  box-sizing: border-box !important;
}

.input-field input[type='text']:focus,
.input-field input[type='number']:focus,
.input-field input[type='tel']:focus,
.input-field input[type='email']:focus {
  border: 1px solid;
  border-color: #80bdff; /* Цвет рамки при фокусе */
  outline: none; /* Убираем стандартное выделение */
  box-shadow: 0 0 0 0.2rem rgba(135, 160, 186, 0.25); /* Добавляем тень при фокусе */
}
/* Конец рамок для input-field */

/* Отступ для плейсхолдера */
.input-field input[type='text']::placeholder,
.input-field input[type='number']::placeholder,
.input-field input[type='tel']::placeholder,
.input-field input[type='email']::placeholder {
  padding-left: 10px; /* Отступ для плейсхолдера */
  color: #47b0fb;
}

/* Отступ для плейсхолдера */
.input-field input[type='text'] + label,
.input-field input[type='number'] + label,
.input-field input[type='tel'] + label,
.input-field input[type='email'] + label {
  padding-left: 10px; /* Отступ для плейсхолдера */
  color: #47b0fb;
}



/* Пагинация */

.pagination-container {
  display: flex;
  justify-content: center;
  margin-top: 20px;
}

.pagination {
  display: inline-block;
}

.pagination li {
  margin: 0 3px;
}

.pagination .page-link {
  padding: 4px 8px;
  font-size: 12px;
  color: #007bff;
  text-decoration: none;
  border: 1px solid #dee2e6;
  border-radius: 4px;
}

.pagination .page-link:hover {
  background-color: #e9ecef;
  color: #0056b3;
}

.pagination .active .page-link {
  background-color: #007bff;
  color: white;
  border-color: #007bff;
}

/* Конец пагинации */

/* Редактирование магазина */
.editSpace-checkbox {
  cursor: pointer;
}

.editSpace-checkbox + label {
  cursor: pointer;
}

.security-icon,
.rinok-icon,
.daily-icon,
.rented-icon,
.subRent-icon {
  cursor: pointer;
}
/* Конец редактирования магазина */

/* Карточка арендатора / отабражение магазинов */
.space-info {
  margin-bottom: 2rem; /* Увеличенный отступ между блоками */
  align-items: center;
}

.space-info i {
  margin-right: 5px; /* Увеличенный отступ между иконками и текстом */
  margin-left: 5px;
}

.zone-tooltip,
.sector-tooltip {
  position: relative;
  cursor: pointer;
  margin-right: 20px; /* Увеличенный отступ между зонами и другими элементами */
}

.zone-tooltip:hover::after,
.sector-tooltip:hover::after {
  content: attr(title);
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  bottom: 125%;
  background-color: #333;
  color: #fff;
  padding: 5px 10px;
  border-radius: 5px;
  white-space: nowrap;
  z-index: 1000;
  font-size: 0.875rem; /* Размер текста подсказки */
}
/* Конец карточки арендатора */

/* Стрелки сортировки */
.sort-arrows {
  cursor: pointer;
  padding: 2px;
  border: 1px solid transparent;
  border-radius: 4px;
  display: inline-block;
  margin-left: 5px;
}

.sort-arrows.active {
  border-color: #000;
}

.sort-arrows.asc::before {
  content: '\f062'; /* Font Awesome up arrow */
  font-family: 'Font Awesome 5 Free';
  font-weight: 900;
  margin-right: 5px;
}

.sort-arrows.desc::before {
  content: '\f063'; /* Font Awesome down arrow */
  font-family: 'Font Awesome 5 Free';
  font-weight: 900;
  margin-right: 5px;
}

.sort-arrows.none::before {
  content: '\f0dc'; /* Font Awesome neutral icon */
  font-family: 'Font Awesome 5 Free';
  font-weight: 900;
  margin-right: 5px;
}
/* Конец стрелок сортировки */

/* Кнопки все, сданные, пустые */

/* Общая структура */
.d-flex {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
}

/* Для экранов шириной 927px и меньше */
@media (max-width: 927px) {
  #filter-buttons {
    order: 2; /* Кнопки после dropdown */
    width: 100%; /* Кнопки занимают всю ширину */
    margin-bottom: 10px; /* Отступ снизу */
  }

  #search-container {
    order: 3; /* Поиск расположен после кнопок */
    width: 100%; /* Ширина 100% */
  }
}

/* Для экранов шириной 928px и больше */
@media (min-width: 928px) {
  #filter-buttons {
    order: 2; /* Կոճակները տեղադրվում են dropdown-ի տակ */
    width: auto; /* Կոճակները իրենց պարունակության լայնությամբ */
    margin-top: 10px; /* Վերին հեռավորություն */
    display: flex; /* Կողք կողքի դասավորվածություն */
  }

  #search-container {
    order: 3; /* Поиск размещается на той же строке, но после кнопок */
    width: auto; /* Ширина адаптируется к содержимому */
  }

  /* Комментирую, потому что нарушился вид карточки помещения */
  /* .d-flex { */
  /* justify-content: space-between; Равномерное размещение элементов */
  /* align-items: flex-start; Текст находится в верхней части */
  /* flex-wrap: wrap; Элементы могут переходить на следующую строку */
  /* } */
}

/* Конец кнопок все, сданные, пустые */

/* Шиоина для контейнера main layout */
.full-width {
  width: 100%;
  margin: 0 auto;
  padding-left: 15px;
  padding-right: 15px;
}

/* Երբ էկրանի լայնությունը մեծ է քան 768px (օրինակ՝ պլանշետներ և դեսքթոփներ) */
@media (min-width: 768px) {
  .full-width {
    width: 90%; /* 90% լայնություն էկրանի */
    padding-left: 0;
    padding-right: 0;
  }
}
/* Конец ширины для контейнера main layout */


/* spaces/renters mobile polish */
.spaces-page .spaces-toolbar,
.renters-page .renters-toolbar {
  gap: 0.75rem;
}

.spaces-page .spaces-control .dropdown-trigger {
  min-width: 190px;
}

.spaces-page .spaces-filter-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.spaces-page .spaces-filter-select-wrap {
  display: none;
}

.spaces-page .spaces-filter-buttons .btn {
  border-radius: 999px;
}

.renters-page .renters-actions {
  gap: 0.5rem;
}

.renters-page .renters-pagination .pagination {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.25rem;
}

.space-card-page .card-header.d-flex.p-3,
.renter-card-page .card-header.d-flex.p-3 {
  align-items: center;
  gap: 0.45rem;
}

.space-card-page .card-header .tab-btn,
.renter-card-page .card-header .tab-btn {
  margin-right: 0 !important;
  padding: 0.38rem 0.72rem;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 500;
  line-height: 1.2;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(0, 0, 0, 0.1);
  color: #2f3a4a;
  box-shadow: none;
  text-transform: none;
}

.space-card-page .card-header .tab-btn:hover,
.renter-card-page .card-header .tab-btn:hover {
  background: #ffffff;
  border-color: rgba(0, 0, 0, 0.18);
}

.space-card-page .card-header .tab-btn.active,
.renter-card-page .card-header .tab-btn.active {
  background: #2f3a4a;
  color: #ffffff;
  border-color: #2f3a4a;
}

.space-card-page .card-header .tab-btn:focus,
.renter-card-page .card-header .tab-btn:focus {
  outline: none;
  box-shadow: 0 0 0 0.14rem rgba(65, 84, 122, 0.26);
}

.space-card-page .tab-select-mobile,
.renter-card-page .tab-select-mobile {
  display: none;
  max-width: 260px;
  background: #fff;
  border-radius: 10px;
  height: 34px;
  font-size: 0.82rem;
}

.space-card-page .tab-buttons-row,
.renter-card-page .tab-buttons-row {
  display: flex;
  gap: 0.45rem;
}

.space-card-page .tab-mobile-hint,
.renter-card-page .tab-mobile-hint {
  display: none;
}

.mobile-stacked-table td[data-label]::before {
  content: none;
}

@media (max-width: 767.98px) {
  .spaces-page .spaces-control,
  .spaces-page .spaces-search,
  .renters-page .renters-search {
    width: 100%;
    max-width: none !important;
  }

  .spaces-page .spaces-control .dropdown-trigger {
    width: 100%;
  }

  .spaces-page .spaces-filter-buttons {
    display: none;
  }

  .spaces-page .spaces-filter-select-wrap {
    display: block;
    width: 100%;
  }

  .spaces-page .spaces-filter-select {
    width: 100%;
  }

  .renters-page .renters-actions {
    width: 100%;
    display: grid !important;
    grid-template-columns: 1fr;
  }

  .renters-page .renters-actions form,
  .renters-page .renters-actions .myBtn {
    width: 100%;
  }

  .renters-page .renters-actions .myBtn {
    margin-right: 0 !important;
  }

  /* Keep dense data pages in classic table mode on mobile. */
  .spaces-table-wrap,
  .renters-table-wrap {
    overflow-x: auto;
  }

  .spaces-table,
  .renters-table {
    min-width: 1100px;
  }

  .mobile-stacked-table thead {
    display: table-header-group;
  }

  .mobile-stacked-table tfoot {
    display: table-footer-group;
  }

  .mobile-stacked-table tbody {
    display: table-row-group;
  }

  .mobile-stacked-table tr {
    display: table-row;
    border: 0;
    border-radius: 0;
    margin: 0;
    padding: 0;
    background: transparent;
    box-shadow: none;
  }

  .mobile-stacked-table th,
  .mobile-stacked-table td {
    display: table-cell;
    width: auto;
    text-align: center !important;
    vertical-align: middle;
  }

  /* Preserve JS-driven column hide/show state on mobile tables. */
  .mobile-stacked-table th.hidden-column,
  .mobile-stacked-table td.hidden-column {
    display: none !important;
  }

  .mobile-stacked-table td[data-label] {
    text-align: inherit;
  }

  .mobile-stacked-table td[data-label]::before {
    content: none;
  }

  .space-card-page,
  .renter-card-page {
    padding: 0.9rem !important;
  }

  .space-card-page .card-header,
  .renter-card-page .card-header {
    padding: 0.9rem !important;
  }

  .space-card-page .card-body,
  .renter-card-page .card-body {
    padding: 0.9rem !important;
  }

  .space-card-page .card-header .tab-btn,
  .renter-card-page .card-header .tab-btn {
    flex: 0 0 auto;
    white-space: nowrap;
    font-size: 0.76rem;
    padding: 0.32rem 0.62rem;
  }

  .space-card-page .card-header.d-flex.p-3,
  .renter-card-page .card-header.d-flex.p-3 {
    overflow: hidden;
    flex-wrap: nowrap !important;
    gap: 0.35rem;
  }

  .space-card-page .tab-select-mobile,
  .renter-card-page .tab-select-mobile {
    display: block;
    width: 100%;
    max-width: none;
  }

  .space-card-page .tab-mobile-hint,
  .renter-card-page .tab-mobile-hint {
    display: block;
    flex: 0 0 auto;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    color: rgba(255, 255, 255, 0.85);
    margin-right: 0.35rem;
    white-space: nowrap;
  }

  .space-card-page .tab-buttons-row,
  .renter-card-page .tab-buttons-row {
    display: none;
  }

  .space-card-page .d-flex.align-items-center,
  .renter-card-page .d-flex.align-items-center {
    align-items: flex-start !important;
    gap: 0.6rem;
  }

  .space-card-page .tab-content,
  .renter-card-page .tab-content {
    overflow-x: auto;
  }
}

