.container {
  max-width: 1440px !important;
}

.my-px-4 {
  padding-right: 2.5rem !important;
  padding-left: 2.5rem !important;
}

@media (min-width: 992px) {
  .navbar-brand img {
    height: 37px;
    padding-left: 8px;
  }
}

.region-sidebar-first {
  background: #F5F7FC;
}

.isand-tile {
  border: 1px solid #DCE7FA;
  border-radius: 12px;
  color: #455E89;
  transition: box-shadow .2s ease;
}

.isand-tile:hover {
  box-shadow: 0 2px 8px rgba(0, 0, 0, .05);
}

.tile-label {
  font-size: 0.9rem;
  color: #6c757d;
  white-space: nowrap;
}

.tile-label i {
  color: #a0b3d9;
  cursor: pointer;
}

.tile-count {
  font-size: 24px;
  line-height: 1.2;
  color: #455E89;
}


.site-logo {
    padding: 24px;
    align-items: center;
}

.region-sidebar-first {
  padding: 0;
}

hr {
  opacity: 1;
  color: #D9E5F8;
}

.sb-sidenav-menu .navbar-nav .nav-link {
  padding: 0;
}

.sb-sidenav-menu nav {
padding: 24px 20px 0 20px;
}


.sb-sidenav-menu nav h5 {
  font-size: 0.75rem;
  padding: 0px 12px 14px 12px;
  text-transform: uppercase;
  color: var(--Blue-700, #084298);

}
.sb-sidenav-menu .nav-item {
  padding: 10px 16px;
  align-items: center;
  margin-bottom: 8px;
}

.sb-sidenav-menu .nav-item:hover{
  border-radius: 6px;
  background: var(--Isand-Silver-500, #D9E5F8);
  cursor: pointer;
}

.sb-sidenav-menu .nav-item {
  font-size: 14px;
  font-style: normal;
  font-weight: 400;
  line-height: 150%;
}

.sb-sidenav-menu .nav-item:has(.nav-link.active) {
  border-radius: 6px;
  background: var(--Isand-Silver-500, #D9E5F8);
}

/* NEW */
.sb-sidenav-menu .nav-item {
  padding: 0;           /* убираем */
  margin-bottom: 8px;
}

.sb-sidenav-menu .nav-link {
  display: flex;
  align-items: center;
  gap: 0.5rem;

  /* ставим старые отступы */
  padding: 10px 16px;

  border-radius: 6px;   /* переносим сюда, иначе рамка за пределами ссылки */
  width: 100%;          /* растянем ссылку на всю ширину li */
}
.sb-sidenav-menu .navbar-nav .nav-link {
  display: flex;
  align-items: center;   /* центрирует иконку и текст по вертикали */
  gap: 0.5rem;           /* расстояние между ними */
  font-size: 14px;       /* размер текста */
  line-height: 1.2;      /* чуть плотнее вертикальный ритм */
  padding: 10px 16px; /* стандартный отступ */
}

.sb-sidenav-menu .navbar-nav .nav-link i {
  font-size: 20px;       /* размер иконки */
  line-height: 1;        /* убираем возможные смещения */
  display: inline-flex;  /* чтобы центрировалось в flex-контейнере */
  color: #4a5568;        /* пример — можно подкорректировать */
}




.sb-sidenav-menu .nav-item {
  padding: 0;
  /* убираем */
  margin-bottom: 8px;
}

.sb-sidenav-menu .nav-link {
  display: flex;
  align-items: center;
  gap: 0.5rem;

  /* ставим старые отступы */
  padding: 10px 16px;

  border-radius: 6px;
  /* переносим сюда, иначе рамка за пределами ссылки */
  width: 100%;
  /* растянем ссылку на всю ширину li */
}




.sb-sidenav-menu {
  display: flex;
  flex-direction: column;
  flex: 1;                  /* растягиваем меню по высоте */
  overflow-y: auto;         /* если меню длинное */
  padding-bottom: 60px;     /* чтобы футер не перекрывался */
}



.sb-sidenav-menu {
  overflow-x: hidden;
}

.sb-sidenav-menu {
  display: flex;
  flex-direction: column;
  flex: 1;                  /* растягиваем меню по высоте */
  overflow-y: auto;         /* если меню длинное */
  padding-bottom: 60px;     /* чтобы футер не перекрывался */
}

/* Блок с контактами — прижат к низу */
.sb-sidenav-menu > div:last-child {
  margin-top: auto;         /* прижимает вниз */
  padding: 1rem;            /* отступ внутри */
  font-size: 12px;
  color: #6c757d;
  border-top: 1px solid #D9E5F8;
}

#nl-form-wrapper .card{
  border-radius: 24px;
  background: #f9fbff;
  border-color: #DCE7FA;
}

div#entity-view-form-wrapper {
  border-radius: 24px;
  background: #f9fbff;
  border-color: #DCE7FA;
}

.px-40 {
  padding-left: 2.5rem !important;
  padding-right: 2.5rem !important;
}
.py-32 {
  padding-bottom: 2rem !important;
  padding-top: 2rem !important;
}

#entity-search-result-wrap {
  border-radius: 6px;
  padding: 24px 40px;
  background: white;
  border: 1px solid #DCE7FA;
}

span.clickable.underlined-text {
  border-bottom: 0.75px dashed #000;
  border-bottom-style: dashed;
  border-bottom-width: 0.75px;
  border-image: repeating-linear-gradient(to right, #000 0 3px, transparent 3px 5px) 1; */
  text-decoration: none;
  padding-bottom: 1px;
  font-weight: 500;
}

.search-area .h5 {
  font-weight: 400;
}

.form-control {
  border-color: #B1C4E5;
}

#nl-form-wrapper input::placeholder {
  color: rgba(var(--bs-secondary-rgb));
  opacity: 1;
}


/* Datatables styles START */
/* Datatables styles START */

/* --- 1. Основной текст таблицы --- */
table.dataTable,
table.dataTable tbody td,
table.dataTable thead th {
  color: #212529 !important;
}

/* серый текст в tbody */
table.dataTable tbody td {
  color: var(--bs-secondary-color, #6C7A89) !important;
}

/* --- 2. Ссылки внутри таблицы --- */
table.dataTable a {
  color: #212529 !important;
  text-decoration: none;
}

table.dataTable a:hover {
  color: #0d6efd !important;
}

/* hover по строкам */
table.dataTable tbody tr:hover {
  background-color: var(--bs-table-hover-bg, rgba(0,0,0,.075)) !important;
}

/* --- 1. Основной текст таблицы ---
#special-table.dataTable,
#bar-table.dataTable,
#special-table.dataTable tbody td,
#bar-table.dataTable tbody td,
#special-table.dataTable thead th,
#bar-table.dataTable thead th {
  color: #212529 !important;
}

/* серый текст в tbody
#special-table.dataTable tbody td,
#bar-table.dataTable tbody td {
  color: var(--bs-secondary-color, #6C7A89) !important;
}

/* --- 2. Ссылки внутри таблицы ---
#special-table.dataTable a,
#bar-table.dataTable a {
  color: #212529 !important;
  text-decoration: none;
}

#special-table.dataTable a:hover,
#bar-table.dataTable a:hover {
  color: #0d6efd !important;
}

#special-table.dataTable tbody tr:hover,
#bar-table.dataTable tbody tr:hover {
  background-color: var(--bs-table-hover-bg, rgba(0,0,0,.075)) !important;
}

/* --- 3. Низ таблицы: info, pager, "на странице" --- */
.dt-container .dt-paging,
.dt-container .dt-info,
.dt-container .dt-length {
  color: var(--bs-secondary-color, #6c757d) !important;
}

/* цифры в пагинации тоже серые */
.dt-container .dt-paging .dt-paging-button {
  color: var(--bs-secondary-color, #6c757d) !important;
}

.dt-paging-button button.page-link
{
  color: var(--bs-secondary-color, #6c757d) !important;
}
/* активная страница — если нужна ярче */
.dt-container .dt-paging .dt-paging-button.current {
  color: #212529 !important;
  font-weight: 600;
}

.btn.btn-secondary.buttons-csv, .btn.btn-secondary.buttons-excel {
  background: none;
}
/* Datatables styles END*/

.btn.btn-secondary.buttons-csv:hover,
.btn.btn-secondary.buttons-excel:hover {
  color: green;
}



/* OFFCANVAS: финальная версия */
/* OFFCANVAS: финальная версия */

/* 1. Базовый фон и отступы региона сайдбара */
.region-sidebar-first {
  background: #F5F7FC;
  padding: 0;
}

/* 2. Общая ширина offcanvas-сайдбара */
#siteSidebar {
  --bs-offcanvas-width: 225px;
}

/* 3. Десктоп (lg+): offcanvas ведёт себя как фиксированный левый сайдбар */
@media (min-width: 992px) {

  #layoutSidenav {
    display: block;
  }

  #siteSidebar.offcanvas-lg {
    position: fixed;
    left: 0;
    top: var(--drupal-displace-offset-top, 0);
    height: calc(100vh - var(--drupal-displace-offset-top, 0));
    transform: none !important;
    visibility: visible !important;
    border-right: 1px solid #D9E5F8;
    z-index: 500;
  }

  #layoutSidenav_content {
    margin-left: 225px;
    transition: margin-left .25s ease;
  }

  /* по умолчанию (когда sidebar-open есть на body) — сайдбар виден */
  body.sidebar-open #siteSidebar.offcanvas-lg {
    margin-left: 0;
    transition: margin-left .25s ease;
      /* плавно */
  }

  /* когда класс sidebar-open снят — сайдбар уезжает влево */
  body:not(.sidebar-open) #siteSidebar.offcanvas-lg {
    margin-left: -225px; /* ширина сайдбара */
    transition: margin-left .25s ease;
  }
  body:not(.sidebar-open) #layoutSidenav_content {
    margin-left: 0;
    transition: margin-left .25s ease;
  }

  .offcanvas-backdrop {
    top: var(--drupal-displace-offset-top, 0);
    height: calc(100vh - var(--drupal-displace-offset-top, 0));
  }
}




/* 4. Мобилка (<lg): нативный Bootstrap offcanvas, ничего не фиксируем */
@media (max-width: 991.98px) {
  .region-sidebar-first {
    display: block !important;
    position: static !important;
    width: auto !important;
    height: auto !important;
    overflow: visible !important;
  }

  .my-px-4 {
    padding-right: 1rem !important;
    padding-left: 1rem !important;
  }
}

/* 5. Прокрутка и прилипающий к низу копирайт */

#siteSidebar .offcanvas-body {
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow-y: auto;
}

/* region заполняет тело offcanvas */
#siteSidebar .region-sidebar-first {
  flex: 1;
  display: flex;
  flex-direction: column;
}

/* sb-sidenav-menu уже flex:1 в твоём коде, этого достаточно,
   а last-child мы уже прижимаем вниз: */
.sb-sidenav-menu>div:last-child {
  margin-top: auto;
}



/* Контейнер-лента — приятный скролл на мобилках */
.scenario-scroll {
  -webkit-overflow-scrolling: touch;
}

/* Минимальная ширина плашки, чтобы выглядела как "карточка" */
.isand-scenario-tile {
  min-width: 220px;
  /* подгони под Figma — 200–260px обычно норм */
}

/* Активная/неактивная плашка — как уже делали */
.isand-scenario-tile {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 6px 12px;
  border-radius: 6px;
  white-space: nowrap;
  border: none;
  text-decoration: none;
  cursor: pointer;
  transition: background-color .15s ease, border-color .15s ease, color .15s ease;
}

.isand-scenario-tile--inactive {
  background-color: #F8F9FA;
  color: #212529;
}

.isand-scenario-tile--inactive:hover {
  background-color: #D2F4EA;
  color: #0D503C;
}

.isand-scenario-tile--active {
  background-color: #D2F4EA;
  color: #0D503C;
  font-weight: 600;
}

.scenario-scroll::-webkit-scrollbar {
  height: 6px;
}

.scenario-scroll::-webkit-scrollbar-track {
  background: transparent;
}

.scenario-scroll::-webkit-scrollbar-thumb {
  background: rgba(0, 0, 0, .15);
  border-radius: 3px;
}



/* Стиль для полноэкранного загрузчика */
.ajax-progress-fullscreen {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  width: 100% !important;
  height: 100% !important;
  background: rgba(255, 255, 255, 0.5) !important;
  /* Прозрачность 50% */
  backdrop-filter: blur(4px) !important;
  /* Мягкое размытие */
  -webkit-backdrop-filter: blur(4px) !important;
  z-index: 999999 !important;
  display: flex !important;
  flex-direction: column !important;
  justify-content: center !important;
  align-items: center !important;
  opacity: 0;
  animation: fadeIn 0.3s ease-out forwards;
}

/* --------- Спиннер START */
.ajax-progress-fullscreen::before {
  content: "";
  width: 40px;
  height: 40px;
  border: 3px solid rgba(0, 0, 0, 0.1);
  border-top-color: #5a67d8;
  /* Цвет можно изменить */
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin-bottom: 16px;
}

/* Сообщение */
.ajax-progress-fullscreen .message {
  font-family: Arial, sans-serif;
  font-size: 16px;
  color: #333;
}

/* Анимации */
@keyframes fadeIn {
  to {
    opacity: 1;
  }
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}
/* --------- Спиннер  END */


button#toggleSidebarDesktop {
  margin: 0;
  color: #212529;
}

i.bi.bi-star-fill {
  color: #FFC107;
}

/* Чтобы было больше одной кнопки пагинации!!! */
.pagination {
  padding: 0;
  --bs-pagination-active-border-color: #D9E5F8;
}
.dt-paging-button.active button.page-link {
  background-color: #D9E5F8;
}
div.dt-container div.dt-length select {
  margin-left: .5em;
}
/* очень узкая колонка под номер */
.dt-col-index {
  width: 1%;
  white-space: nowrap;
  text-align: right;
  padding-right: 0.5rem;
}
