@import url("variables.css");

body {
  font-family: Arial, sans-serif;
  height: 100vh;
  display: flex;
  flex-direction: column;
}

table {
  width: 100%;
  border-collapse: collapse;
}
a {
  color: var(--text);
  transition: 0.2s;
  padding: 3px;
  /* background-color: var(--bg); */
  border-radius: 5px;
}
img {
  width: max-content;
  max-width: 100%;
}
.form-select {
  color: var(--text);
}
.card,
.table,
.text-muted,
.table-striped > tbody > tr:nth-of-type(odd) > * {
  color: var(--text);
}
.por {
  position: relative;
}
a:hover {
  color: var(--text-hover);
  background-color: var(--surface-3-hover);
  text-decoration: initial;
}
.btn-primary,
.bg-primary {
  background-color: var(--surface-2) !important;
}
.btn-primary:hover {
  background-color: var(--ligth-blue-color);
}
.nav-link:focus,
.nav-link:hover {
  color: #fff;
}
.fw600 {
  font-weight: 600;
}
th,
td {
  border: 1px solid #ddd;
  padding: 8px;
  text-align: left;
  vertical-align: middle;
}
.jcsb {
  justify-content: space-between;
}
.ali {
  align-items: center;
}
table a {
  background-color: initial;
}
table.table > thead > tr > th,
th {
  background-color: var(--surface-3);
  color: var(--text);
  font-size: 14px;
}
.jcc {
  justify-content: center;
}
.df {
  display: flex;
}

.description-results-container tr:nth-child(even) {
  background-color: initial;
}

tr:nth-child(even) {
  background-color: var(--back_table);
}
.table > :not(caption) > * > * {
  background-color: initial;
  box-shadow: initial;
}
th a {
  color: var(--text);
  text-decoration: none;
}

th a:hover {
  text-decoration: underline;
}

.pagination {
  margin-top: 20px;
}

.pagination a {
  padding: 8px 16px;
  margin: 0 4px;
  text-decoration: none;
  border: 1px solid #ddd;
  color: #007bff;
}

.pagination a:hover {
  background-color: #e6e6e6;
}

.pagination .current {
  padding: 8px 16px;
  border: 1px solid #ddd;
  background-color: #f4f4f4;
}
.description,
.warehouse-info {
  border: 1px solid #ccc;
  margin: 2px 0;
  padding: 5px;
  border-radius: 4px;
}
* {
  transition: 0.2s;
}
.description {
  background-color: var(--bg);
}
.warehouse-info {
  background-color: #e9f7fe;
}
input[type="checkbox"] {
  width: 25px;
  height: 25px;
  border-color: var(--text);
}
.table > thead {
  position: sticky;
  top: 0;
}
.table > thead tr {
  background-color: #007bff;
}
.table > thead tr th {
  color: #fff;
}
.admin-panel {
  padding: 15px;
  display: flex;
  gap: 10px;
}
.admin-panel a {
  border-radius: 6px;
  border: 1px solid var(--blue-color);
  padding: 4px;
}
.main_content {
  flex: 1;
}
th a {
  padding: 4px;
}
.synonim_btn.active .synonim_btn_add {
  display: none;
}
.synonim_btn.active .synonim_btn_delete {
  display: block;
}
.synonim_btn_delete {
  display: none;
}
.synonim_btn {
  width: 250px;
}
.selected_product_type {
  justify-content: space-between;
  width: max-content;
  padding: 8px 14px;
  background-color: var(--surface);
  border-radius: 8px;
}
.selected_product_type p {
  margin-bottom: 0;
  font-weight: 600;
  padding: 3px;
}
.form_check_type {
  align-items: end;
}
.search-queries-list ul {
  list-style: none;
  padding-left: 15px;
}
.search-queries-list li {
  margin-bottom: 10px;
  border-bottom: 1px solid var(--text);
  cursor: pointer;
  padding-left: 5px;
}
.search-queries-list li:hover {
  background-color: var(--surface);
}

table tbody .unmatched-description {
  font-style: italic;
  color: red;
  font-weight: 600;
}

.product-block h5 {
  font-size: 16px;
}
.search_button_next {
  display: none;
}
.form_check_type {
  font-size: 14px;
}
.preloader_img {
  width: 40px;
  height: 40px;
  background-image: url(../img/preloader.gif);
  background-size: cover;
  background-size: 0;
}
.preloader_img.active {
  background-size: cover;
}
.product-row td {
  padding: 0;
  font-size: 12px;
}
.product-row td h5 {
  font-size: 14px;
  margin-bottom: 0;
}
.table > tbody {
  font-size: 14px;
}
.product-row td input[type="checkbox"] {
  width: 18px;
  height: 18px;
  border-color: var(--text);
}
.description-results-container tr td {
  border: initial;
  border-bottom: 1px solid var(--border);
  border-right: 1px solid var(--border);
  padding: 0;
}
.description-results-container td p {
  margin-bottom: 0;
}
.description-results-container th:
.description-results-container tr:nth-child(odd) {
  background-color: initial;
}
.description-results-container tr.product-row {
  background-color: var(--ligth-blue-color);
}
table.table.description-results-container > thead tr {
  background-color: #007bff;
}
.is-type-node > a {
  color: #ff0000; /* Красный цвет текста для узлов типа "тип товара" */
  font-weight: bold; /* Жирный шрифт */
}
a.jstree-anchor {
  background-color: initial;
  margin-bottom: 3px;
}
#selectProductTypeModal .modal-dialog {
  max-width: 800px;
}
th input {
  border-radius: 10px;
}
.main_table_index th input,
th input {
  border-radius: 20px;
  padding-left: 30px;
  line-height: 30px;
}
input {
  border: 1px solid rgb(128, 128, 128);
}
.no_p {
  margin-bottom: 0;
  padding-bottom: 0;
}
.no_p p {
  margin-bottom: 0;
  padding-bottom: 0;
}
.tooltip_help {
  position: absolute;
  left: 14px;
  top: 12px;
}
.img_help:after {
  width: 20px;
  height: 20px;
  content: "";
  background-image: url(../img/help.png);
  position: absolute;
  border-radius: 50%;
  background-color: #000;
  left: 0px;
  right: 0;
  display: flex;
  background-repeat: no-repeat;
  align-items: center;
  justify-content: center;
  background-position: center;
}
.tooltiptext {
  position: absolute;
  top: -28px;
  left: 8px;
  width: 180px;
  font-size: 14px;
}
.history_btn_main table {
  display: none;
}
.history_btn_main.active table {
  display: table;
}
.btn.copy-btn-viz {
  padding: 8px;
  font-size: 14px;
  background-color: var(--surface);
  color: #fff;
}
.btn.copy-btn-viz:hover {
  background-color: var(--ok);
}
.btn.copy-btn-viz:hover path {
  fill: var(--dark-color);
}
path {
  transition: 0.2s;
}
.btn {
  border-radius: 8px;
}
.btn_copy_main {
  display: flex;
  background-color: var(--bg);
  border-radius: 8px;
  color: #fff;
  overflow: hidden;
  justify-content: space-between;
  min-width: 200px;
}

.btn_copy_main a {
  color: var(--text);
  font-size: 14px;
  text-decoration: initial;
  padding: 8px;
  line-height: 16px;
  display: flex;
  align-items: center;
  flex: 1;
}
.type_fixed.active {
  position: fixed;
  width: 100%;
  top: 0px;
  left: 0;
  z-index: 999;
  background-color: var(--surface);
  padding: 0 15px;
}
.type_fixed.active .type_fixed_none,
.type_fixed.active label {
  display: none;
}
.type_fixed.active > p label {
  display: none;
}
.type_fixed.active .mb-3 {
  margin-bottom: 5px !important;
}
.type_fixed.active input {
  padding: 2px 6px;
  font-size: 14px;
}
.prod_types {
  display: flex;
  gap: 5px;
}
.new_types {
  display: none;
}
.new_types.active {
  display: block;
}
.type_fixed.active > p {
  margin-bottom: 4px;
}
.type_fixed.active .btn {
  font-size: 14px;
  padding: 3px;
  line-height: 14px;
  height: 24px;
}
.type_fixed.active input[type="checkbox"] {
  width: 20px;
  height: 20px;
  border-color: var(--text);
}
.type_fixed.active .preloader_img {
  width: 20px;
  height: 20px;
}
.form-check-input:checked {
  background-color: #000;
  border-color: var(--text);
}
.btn-success,
.bg-success {
  background-color: var(--ok) !important;
}
#imageDimensions {
  font-weight: 600;
}
.btn-danger,
.bg-danger {
  background-color: var(--red-color) !important;
}
.btn-success:hover {
  background-color: var(--dark-color);
}
.supplier_warehouses .list-group {
  display: none;
}
.supplier_warehouses.active .list-group {
  display: flex;
}
.mega_min {
  font-size: 10px;
}
.table-mini {
  font-size: 14px;
}
.active_btn_item {
  display: none;
}
.active_btn.active .active_btn_item {
  display: block;
  border: 1px solid #ddd;
  border-radius: 6px;
  padding: 10px;
}

.green_color {
  background-color: var(--ok) !important;
}
.table_analog {
  background-color: var(--gold) !important;
}
.legend-box {
  width: 16px;
  height: 16px;
  display: inline-block;
  border: 1px solid #000;
  border-radius: 3px;
}
.analog_table td p {
  margin-bottom: 2px;
}
table.table_analog_mini input::placeholder {
  font-size: 12px;
}
.sticky_btn {
  position: sticky;
  top: 0;
  right: 0;
  z-index: 99998;
  display: flex;
  justify-content: end;
  gap: 10px;
}
.fixed_btn.active {
  position: fixed;
  top: 5px;
  left: 5px;
  z-index: 99998;
  display: flex;
  justify-content: end;
  gap: 10px;
}
.h70 {
  max-height: 70px;
}
.h70 .img-thumbnail {
  height: 100%;
}
.btn.btm_mini {
  padding: 3px 6px;
  font-size: 12px;
}
.active_btn_parent table {
  display: none;
}
.active_btn_parent.active table {
  display: table;
}
.active_parent {
  cursor: pointer;
}
.active_parent::after {
  content: " ▼";
  font-size: 0.9em;
  margin-left: 0.4em;
  transition: transform 0.2s ease;
  display: inline-block;
}
.active_parent[aria-expanded="true"]::after {
  transform: rotate(180deg);
  display: inline-block;
}
.active_btn.active .active_parent::after {
  transform: rotate(180deg);
  padding-top: 2px;
}
.history_btn_main.active .active_parent::after {
  transform: rotate(180deg);
}
.images_mini {
  display: flex;
  gap: 2px;
}
.w200 {
  width: 200px;
}
.w100 {
  width: 100px;
}
.images_mini .img-thumbnail {
  padding: 0;
}
.table > thead.top-30 {
  top: 17px;
}
table p {
  margin-bottom: 0px;
}
.jce {
  justify-content: end;
}
.table > thead.top15 {
  top: 15px;
}
.dfcolumn {
  flex-direction: column;
}
.left_analog_img {
  display: flex;
  flex-direction: column;
  height: auto;
  justify-content: space-between;
  max-width: 316px;
  align-items: start;
}
.analog_img {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 300px;
}
.left_analog_img input {
  margin-top: 31px;
}
.nav-item.dropdown:hover .dropdown-menu {
  display: block;
  margin-top: 0;
}
.fz-16 {
  font-size: 16px;
}
.hide_active {
  display: none;
}
.active .hide_active {
  display: block;
}
.active .hide_active.flex {
  display: flex;
}

.select2-container--default .select2-results > .select2-results__options {
  max-height: 400px;
}

.select2-container--default input[type="checkbox"] {
  width: 15px;
  height: 15px;
  border-color: var(--text);
}
.select2-container--default .select2-selection--multiple,
.form-select {
  background-color: initial;
}

.select2-container--default
  .select2-selection--multiple
  .select2-selection__choice {
  background-color: var(--surface);
  border: initial;
  color: var(--text);
}
.select2-dropdown {
  background-color: var(--surface);
}
.select2-container--default
  .select2-results__option--highlighted.select2-results__option--selectable {
  background-color: #5897fb;
  color: #333;
}
.select2-container--default .select2-selection--single {
  background-color: initial;
}
.select2-container--default
  .select2-selection--single
  .select2-selection__rendered {
  color: var(--text);
}
.product-img-option {
  width: min-content;
  min-width: 120px;
  min-height: 172px;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
}

/* ===== Pine Slate Design (dark green) ===== */

* {
  box-sizing: border-box;
}

/* Container */
.ps-container {
  max-width: 1180px;
  margin: 24px auto 80px;
  padding: 0 18px;
}

/* Header */
.ps-header {
  display: grid;
  gap: 18px;
}
.ps-header__main {
  display: grid;
  gap: 10px;
  grid-template-columns: 6fr 4fr 2fr;
  align-items: end;
}
.ps-title {
  margin: 0;
  font-size: 28px;
  letter-spacing: 0.2px;
}
.ps-sub {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: end;
}
.ps-actions {
  display: flex;
  gap: 10px;
}
.ps-kpi {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

/* Chips */
.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  font-size: 12px;
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: 999px;
  width: 100%;
}
.chipset {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.mono {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
}

/* KPI card */
.stat {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 12px 14px;
  box-shadow: var(--shadow);
}
.stat__label {
  color: var(--muted);
  font-size: 12px;
  margin-bottom: 4px;
}
.stat__value {
  font-size: 18px;
  font-weight: 700;
}
.stat__value--ok {
  color: var(--ok);
}

/* Tabs */
.ps-tabs {
  margin-top: 10px;
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  border-bottom: 1px solid var(--border);
}
.ps-tab {
  background: transparent;
  color: var(--muted);
  border: 0;
  padding: 10px 12px;
  cursor: pointer;
  position: relative;
  border-radius: 10px 10px 0 0;
}
.ps-tab:hover {
  color: var(--text);
}
.ps-tab.is-active {
  font-weight: 400;
  text-shadow: 0 0 0.6px var(--text), 0 0 0.6px var(--text);
}
.ps-tab.is-active::after {
  content: "";
  position: absolute;
  left: 8px;
  right: 8px;
  bottom: -1px;
  height: 3px;
  border-radius: 3px;
  background: linear-gradient(90deg, var(--primary), var(--primary-700));
}

/* Panels */
.ps-panels {
  margin-top: 14px;
}
.ps-panel {
  display: none;
}
.ps-panel.is-active {
  display: block;
}

.panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px;
  box-shadow: var(--shadow);
  min-height: 550px;
}
.panel__title {
  margin: 0 0 10px;
  font-size: 16px;
  font-weight: 700;
}
.text-block p {
  margin: 0 0 8px;
  color: #dce7e0;
}

/* Grid helpers */
.grid-2 {
  display: grid;
  gap: 14px;
  grid-template-columns: 1fr 1fr;
}
.vstack-8 > * + * {
  margin-top: 8px;
}
.mt-24 {
  margin-top: 24px;
}

/* Key-Value list */
.kv {
  list-style: none;
  padding: 0;
  margin: 0;
}
.kv li {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  padding: 8px 0;
  border-bottom: 1px dashed rgba(255, 255, 255, 0.06);
}
.kv li:last-child {
  border-bottom: 0;
}
.kv span {
  color: var(--muted);
}
.no_bg {
  background-color: initial;
}
/* Metric mini-cards */
.metric-card {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 12px;
}
.metric-card__title {
  color: #dce7e0;
  margin-bottom: 8px;
  font-weight: 700;
}

/* Badges */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 4px;
  border-radius: 999px;
  font-size: 10px;
  border: 1px solid transparent;
}
.badge--ok {
  background: rgba(34, 197, 94, 0.12);
  color: #51d08a;
  border-color: rgba(34, 197, 94, 0.2);
}
.badge--warn {
  background: rgba(245, 158, 11, 0.12);
  color: #fbbf24;
  border-color: rgba(245, 158, 11, 0.2);
}
.badge--bad {
  background: rgba(239, 68, 68, 0.13);
  color: #f87171;
  border-color: rgba(239, 68, 68, 0.2);
}

/* Buttons */
.btn {
  appearance: none;
  border: 1px solid var(--border);
  background: var(--surface-2);
  color: #eaf5ee;
  padding: 9px 12px;
  border-radius: 10px;
  cursor: pointer;
  transition: transform 0.06s ease, background 0.15s, border-color 0.15s;
}
.btn:hover {
  background: #173324;
  border-color: #214a37;
}
.btn:active {
  transform: translateY(1px);
}
.btn-outline {
  background: transparent;
}

/* List of chips */
.list-chips {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.relative {
  position: relative;
}
.relative .preloader_img {
  position: absolute;
  left: 100px;
  top: 0px;
}
.wrap {
  flex-wrap: wrap;
}
/* Accordion (ожидает .is-open от твоего JS) */
.accordion {
  border: 1px solid var(--border);
  border-radius: 6px;
  background: var(--surface-2);
  margin-top: 10px;
}
.text_accordion {
  border: 1px solid var(--border);
  border-radius: 6px;
  background: var(--bg);
  margin-top: 10px;
  padding: 10px;
}
.text_accordion p:last-child {
  margin-bottom: 0;
}
.accordion__btn {
  width: 100%;
  text-align: left;
  padding: 10px 12px;
  background: transparent;
  border: 0;
  color: #eaf5ee;
  cursor: pointer;
}
.accordion__content {
  display: none;
  padding: 0 12px 12px;
  color: #dce7e0;
}
.accordion.is-open .accordion__content {
  display: block;
}

/* Gallery */
.gallery {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.thumb {
  display: block;
  width: 92px;
  height: 92px;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--surface-3);
}
.thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Muted text */
.muted {
  color: var(--muted);
}

/* Tables (если используешь свои) */
.table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 6px;
  overflow: hidden;
}

.table thead th {
  background: var(--surface-2);
  text-align: left;
}
.table tr:hover td {
  background: rgba(140, 140, 140, 0.2);
}
.theme-dark .table tr:hover td {
  background: rgba(255, 255, 255, 0.2);
}

/* Общая база для всех кнопок */
.btn {
  background: var(--btn-bg);
  color: var(--btn-text);
  border: 1px solid var(--btn-border);
  border-radius: 10px;
  padding: 8px 14px;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}
.btn:hover {
  background: var(--surface-2);
  border-color: var(--btn-outline-border);
}

/* Primary */
.btn-primary {
  background: var(--btn-primary-bg);
  border-color: var(--btn-primary-border);
  color: var(--text);
}
.btn-primary:hover {
  background: var(--btn-primary-border);
  filter: brightness(1.1);
  color: var(--text-hover);
}
.btn.disabled, .btn:disabled, fieldset:disabled .btn{
  color: var(--text);
}
.btn-outline {
  background: transparent;
  border: 1px solid var(--btn-outline-border);
  color: var(--btn-outline-text);
}
.btn-outline:hover {
  background: var(--btn-outline-border);
  color: #fff;
}
.bg-light {
  background-color: var(--bs-light-rgb) !important;
}
.navbar {
  box-shadow: var(--shadow-soft);
}
.nav-link {
  color: var(--text);
}
.list-chips li {
}
.panel .panel__title {
  margin-top: 14px;
}
.panel .panel__title:first-child {
  margin-top: 0px;
}
.pp-noaccess {
  inset: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  pointer-events: none;
}

.pp-noaccess img {
  max-width: min(76vw, 820px);
  max-height: min(76vh, 820px);
  object-fit: contain;
  filter: drop-shadow(0 12px 36px rgba(0, 0, 0, 0.45));
}

.login_h1 {
  text-align: center;
  font-size: 24px;
  font-weight: 600;
  text-transform: uppercase;
  margin-bottom: 40px;
}
.term_img_main {
  display: flex;
  justify-content: center;
}
.container_login {
  max-width: 650px;
}
.term_img_main img {
  border-radius: 50%; /* круглая форма */
  box-shadow: 0 0 25px rgba(255, 132, 132, 0.5), 0 0 45px rgba(255, 0, 0, 0.3),
    0 0 65px rgba(0, 0, 0, 0.6); /* красное свечение + тень */
  background: radial-gradient(
    circle at center,
    rgba(255, 255, 255, 0.05) 0%,
    rgba(0, 0, 0, 0.7) 100%
  ); /* эффект глубины */
  padding: 8px; /* отступ вокруг */
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.term_img_main img:hover {
  transform: scale(1.05) rotate(1deg); /* анимация при наведении */
  box-shadow: 0 0 35px rgba(255, 0, 0, 0.7), 0 0 65px rgba(255, 0, 0, 0.5),
    0 0 90px rgba(0, 0, 0, 0.8);
}
.description-results-container {
  width: 100%;
  table-layout: fixed;
}
.description-results-container th,
.description-results-container td {
  overflow: hidden;
  text-overflow: ellipsis;
}

.description-results-container th:nth-child(1),
.description-results-container td:nth-child(1) {
  width: 10%;
}

.description-results-container th:nth-child(2),
.description-results-container td:nth-child(2) {
  width: 10%;
}

.description-results-container th:nth-child(3),
.description-results-container td:nth-child(3) {
  width: 40%;
}

.description-results-container th:nth-child(4),
.description-results-container td:nth-child(4) {
  width: 25%;
}

.description-results-container th:nth-child(5),
.description-results-container td:nth-child(5) {
  width: 15%;
}
.form-control {
  color: var(--text);
  background-color: initial;
  background-clip: padding-box;
  border: var(--bs-border-width) solid var(--bs-border-color);
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  border-radius: var(--bs-border-radius);
  transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}
.form-control::placeholder {
  color: var(--text);
}

.custom-tooltip {
  position: absolute;
  top: -25px;
  transform: translateY(-50%);
  white-space: nowrap;
  padding: 6px 10px;
  background: rgba(0, 0, 0, 0.85);
  color: #fff;
  border-radius: 6px;
  font-size: 0.875rem;
  z-index: 999;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s ease;
}

.por:hover .custom-tooltip {
  opacity: 1;
  visibility: visible;
}

.custom-tooltip.right {
  left: 120%;
}
.custom-tooltip.left {
  right: 120%;
}
.bi-question-circle-fill {
  position: absolute;
  top: -18px;
  cursor: pointer;
  display: block;
  width: 14px;
  height: 14px;
  right: 5px;
}
.custom-question {
  width: 14px;
  height: 14px;
  display: block;
}
.btn.btn-danger {
  background-color: var(--red-color);
}
.image_product_main .image_product {
  width: 19%;
}
.modal-content {
  background-color: var(--surface-2);
}

.image_product {
  height: 240px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.image_product_main .image_product img {
  width: 100%;
  height: 100%;
  object-fit: contain; /* или cover, если нужно обрезать */
}
.h1,
.h2,
.h3,
.h4,
.h5,
.h6,
h1,
h2,
h3,
h4,
h5,
h6 {
  color: var(--text);
}
.card-header {
  background-color: var(--surface-2);
}
.navbar-toggler-my {
  position: relative;
  display: inline-block;
  width: 30px;
  height: 20px;
  cursor: pointer;
}

.navbar-toggler-my::before,
.navbar-toggler-my::after,
.navbar-toggler-my {
  content: "";
  position: absolute;
  right: 0px;
  width: 24px;
  height: 3px;
  background-color: var(--text);
  border-radius: 2px;
  transition: all 0.3s ease;
}
.navbar-toggler .navbar-toggler-my {
  right: 16px;
}
.navbar-toggler-my {
}

.navbar-toggler-my::before {
  top: -8px;
}

.navbar-toggler-my::after {
  top: 8px;
}

/* когда кнопка активна (меню раскрыто) */
.navbar-toggler[aria-expanded="true"] .navbar-toggler-my {
  background-color: transparent;
}

.navbar-toggler[aria-expanded="true"] .navbar-toggler-my::before {
  top: 0;
  transform: rotate(45deg);
}

.navbar-toggler[aria-expanded="true"] .navbar-toggler-my::after {
  top: 0;
  transform: rotate(-45deg);
}
.sticky_btn .btn {
  background-color: var(--btn-bg) !important;
}
.theme-dark .btn-close {
  background-color: #f5f5f5;
}
.container-fluid {
  max-width: 2800px;
}
.bi-question-circle-fill::before {
  color: var(--text);
}
select.form-select {
  background-color: var(--surface); /* фон */
  color: var(--text); /* цвет текста */
  border: 1px solid #ccc; /* рамка */
  border-radius: 6px; /* скругления */
  padding: 6px 10px; /* внутренние отступы */
  font-size: 14px;
  cursor: pointer;
}

/* Стили для option */
select.form-select option {
  color: var(--text);
  background-color: var(--surface);
}

/* Стили при наведении */
select.form-select option:hover {
  background-color: var(--surface-2);
}

.brand-card {
  transition: transform 0.2s, box-shadow 0.2s;
  background: var(--surface);
  border: initial;
  box-shadow: var(--shadow);
}
.brand-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-soft);
  background: var(--surface-3-hover);
}
.drom_item_bg{
  padding: 5px;
  background-color: var(--surface);
}
.breadcrumb-item.active {
    color: var(--text-2);
}
.breadcrumb-item + .breadcrumb-item::before {
    color: var(--text-2);
}
.select2-container--default .select2-results__option--highlighted.select2-results__option--selectable {
    color: var(--text);
}
.select2-container--default .select2-results__option--selected{
    background-color: var(--surface-2);

}

.select2-container--default .select2-results__option--highlighted.select2-results__option--selectable{
  background-color: var(--surface-3-hover);
}
.list-group-item { position: relative; }
.sticky-model-controls.active {
  position: fixed;
  top: 0;
  z-index: 1020;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(4px);
  padding: 6px 10px;
  border-bottom: 1px solid #dee2e6;
  width: 500px;
}

.min-300{
  min-width: 250px;
}
.sticky_match{
  overflow-y: scroll;
  position: sticky;
  height: 1000px;
}
/* .tree-left .tree-toggle{
  display: none;
} */

.sticky-model-controls{
  position: sticky;
  top: 10px;
  
}
.jce{
  justify-content: end;
}
/* Кнопка переключения */
.theme-toggle {
  top: 12px;
  right: 12px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 50%;
  width: 40px;
  height: 40px;
  font-size: 18px;
  cursor: pointer;
  color: var(--text);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.3s, color 0.3s, transform 0.1s;
}
.theme-toggle:hover {
  background: var(--surface-3);
}
.theme-toggle:active {
  transform: scale(0.9);
}
.btn-check:checked+.btn, .btn.active, .btn.show, .btn:first-child:active, :not(.btn-check)+.btn:active {
    color: var(--text-hover);
    background-color: var(--bs-btn-active-bg);
    border-color: var(--bs-btn-active-border-color);
}
.badge{
  color: var(--text);
}
.brand_select > span{
  width: 100px;
}