@charset "UTF-8";
:root {
  --base-color: #5f5f5f;
  --base-color-outline: #9f9f9f;
  --body-base-color: #00b537;
  --body-base-color-outline: #e0f6e7;
  --cart-add-icon-color: #b8c1cc;
  --cart-add-icon-hover-color: #2563eb;
  --product-row-toolbar-highlight-bg: rgba(57, 160, 255, 0.16);
}

:root {
  --var-base-color: #000000;
}

body {
  font: 76%/150% "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  font-weight: 400;
  font-style: normal;
  color: #5f5f5f;
  overflow: hidden;
  max-height: 100vh !important;
  background-color: #ffffff;
}

.container {
  height: 100%;
  display: flex;
  flex-direction: column;
  background: #ffffff;
}

header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 16px;
  background: #f8fafc;
  border-bottom: 1px solid #e2e8f0;
  gap: 16px;
  position: relative;
}

.header-button {
  background: #fff;
  border: 1px solid #e2e8f0;
  color: #4a5568;
  padding: 8px 12px;
  border-radius: 6px;
  cursor: pointer;
  display: flex;
  align-items: center;
  transition: all 0.2s;
  font-size: 14px;
  position: relative;
}

.header-button:hover {
  background: #f7fafc;
  border-color: #cbd5e0;
}

.header-button .button-text {
  min-width: 100px;
}

.header-button i {
  margin-right: 6px;
  font-size: 13px;
}

.search-container {
  position: relative;
  display: flex;
  align-items: center;
  width: 60%;
  flex-grow: 0;
  background: #fff;
  border: 2px solid #e0e0e0;
  border-radius: 8px;
  padding: 8px 15px;
  transition: border-color 0.3s ease;
  margin: 0 16px;
}

.search-container:focus-within {
  border-color: #007bff;
}

.search-input {
  flex: 1;
  border: none;
  outline: none;
  font-size: 16px;
  padding: 5px 0;
  background: transparent;
  -webkit-appearance: none;
  -webkit-border-radius: 0;
}

.search-clear-btn, .search-history-btn {
  cursor: pointer;
  padding: 5px;
  color: #666;
  transition: all 0.3s ease;
  margin-left: 8px;
  opacity: 0;
  visibility: hidden;
  transform: scale(0.8);
  display: flex;
  align-items: center;
  justify-content: center;
}

.search-clear-btn:hover {
  color: #ff4757;
}

.search-history-btn:hover {
  color: #007bff;
}

.search-clear-btn.visible,
.search-history-btn.visible {
  opacity: 1;
  visibility: visible;
  transform: scale(1);
}

.search-history-dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: white;
  border: 1px solid #ddd;
  border-radius: 0 0 8px 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  max-height: 60vh;
  overflow-y: auto;
  z-index: 1000;
  margin-top: 0;
}

.search-history-item {
  padding: 10px 15px;
  cursor: pointer;
  border-bottom: 1px solid #f0f0f0;
  transition: background-color 0.2s ease;
  user-select: none;
}

.search-history-item:hover {
  background-color: #f8f9fa;
}

.search-history-item:last-child {
  border-bottom: none;
}

.search-history-clear {
  padding: 10px 15px;
  text-align: center;
  color: #ff4757;
  cursor: pointer;
  border-top: 1px solid #f0f0f0;
  font-size: 14px;
  user-select: none;
}

.search-history-clear:hover {
  background-color: #fff5f5;
}

.search-history-item.clipboard-item {
  color: #007bff;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 8px;
}

.search-history-item.clipboard-item i {
  font-size: 14px;
  opacity: 0.7;
  margin-right: 10px;
}

.search-history-item.clipboard-item:hover {
  background-color: #e3f2fd;
}

.search-history-empty {
  padding: 10px 15px;
  color: #6c757d;
  font-style: italic;
  text-align: center;
}

.search-icon {
  margin-right: 10px;
  color: #666;
  cursor: pointer;
}

/* Стили для тултим меню фильтров */
.filter-tooltip-menu {
  position: absolute;
  top: 100%;
  left: 0;
  background: white;
  border: 1px solid #ddd;
  border-radius: 0 0 8px 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  z-index: 1001;
  min-width: 300px;
  display: none;
  margin-top: 0;
}

.filter-menu-item {
  padding: 10px 15px;
  cursor: pointer;
  transition: background-color 0.2s ease;
  display: flex;
  align-items: center;
}

.filter-menu-item:hover {
  background-color: #f8f9fa;
}

.filter-menu-divider {
  height: 1px;
  background-color: #e2e8f0;
  margin: 5px 0;
}

.container {
  height: 100%;
  display: flex;
  flex-direction: column;
  background: #fff;
  overflow-x: hidden;
}

.table-header {
  display: grid;
  padding: 12px 16px;
  background: #f8fafc;
  color: #4a5568;
  font-weight: 600;
  font-size: 14px;
  border-bottom: 1px solid #e2e8f0;
  overflow-x: hidden;
}

.table-scroll-container {
  flex: 1;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  height: 500px;
}

.table-scroll {
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
}

/* Остальные стили остаются без изменений */
.table-header-cell {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  white-space: nowrap;
}

.table-header-cell:nth-child(4),
.table-header-cell:nth-child(5) {
  justify-content: flex-end;
  text-align: right;
  padding-right: 20px;
}

.table-header-cell:hover {
  color: #2d3748;
}

.table-header-cell:hover .sort-icon {
  opacity: 1;
}

.table-header-cell, .table-cell {
  min-width: 0;
}

.relevance {
  display: flex;
  color: #f59e0b;
  font-size: 14px;
  position: relative;
}

.relevance .fa-chart-simple {
  color: #3b82f6;
  position: absolute;
  left: -30px;
  top: 50%;
  transform: translateY(-50%);
}

.relevance i {
  margin-right: 0;
  margin-left: -2px;
}

.sort-icon {
  opacity: 0.3;
  font-size: 15px;
  margin-left: 10px;
  display: inline-flex;
}

.sort-asc .sort-icon {
  opacity: 1;
  transform: rotate(0deg);
}

.sort-desc .sort-icon {
  opacity: 1;
  transform: rotate(180deg);
}

.table-row {
  display: grid;
  padding: 0 10px;
  border-bottom: 1px solid #f1f5f9;
  background: #fff;
  transition: background 0.2s;
  position: relative;
}

.table-row:hover {
  background: #f8fafc;
}

.table-cell {
  padding: 4px 16px;
  display: flex;
  align-items: center;
  font-size: 14px;
  position: relative;
}

.table-cell:nth-child(4),
.table-cell:nth-child(5) {
  justify-content: flex-end;
  text-align: right;
  padding-right: 20px;
}

.thumbnail {
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.thumbnail img[src=""], .thumbnail img:not([src]) {
  display: none;
}

/* Стиль для иконки по умолчанию */
.thumbnail .fa-image {
  display: none;
}

.thumbnail:not(img[src]) .fa-image {
  display: block;
}

.name-article {
  display: flex;
  flex-direction: column;
}

.name-article div:first-child {
  font-weight: 500;
  color: #2d3748;
}

.article-info {
  display: flex;
  flex-direction: column;
  margin-top: 4px;
}

.article-line {
  display: flex;
  align-items: center;
  color: #718096;
  flex-wrap: wrap;
  opacity: 0.5;
}

.article {
  display: flex;
  align-items: center;
  margin-right: 8px;
  cursor: pointer;
}

.manufacturer {
  font-style: italic;
}

.separator {
  margin: 0 6px;
  color: #cbd5e0;
}

.copy-icon {
  opacity: 0;
  transition: opacity 0.2s;
  color: #a0aec0;
  cursor: pointer;
  margin-left: 5px;
}

.article:hover .copy-icon {
  color: #a0aec0;
  opacity: 1;
}

.price-container {
  display: flex;
  flex-direction: column;
}

.purchase-price {
  color: #007bff !important;
  font-size: 14px;
}

.sale-price {
  font-size: 16px;
  font-weight: 600;
  margin-top: 2p;
}

.status-indicator {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  margin-right: 6px;
}

.status-available {
  background-color: #38a169;
}

.status-low {
  background-color: #dd6b20;
}

.status-out {
  background-color: #e53e3e;
}

.table-scroll::-webkit-scrollbar {
  width: 6px;
}

.table-scroll::-webkit-scrollbar-track {
  background: #f1f5f9;
}

.table-scroll::-webkit-scrollbar-thumb {
  background: #cbd5e0;
  border-radius: 3px;
}

.notification {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  background: #2d3748;
  color: white;
  padding: 10px 20px;
  border-radius: 6px;
  transition: opacity 0.3s;
  pointer-events: none;
}

.tooltip {
  position: absolute;
  z-index: 1000;
  background: white;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  padding: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  min-width: 300px;
  transition: opacity 0.2s;
  display: flex;
  gap: 12px;
}

.tooltip-img {
  width: 120px !important;
  height: 120px !important;
  object-fit: contain;
  flex-shrink: 0;
  padding-right: 15px;
}

.tooltip-info {
  font-size: 13px;
  line-height: 1.4;
  flex: 1;
  max-width: 600px;
}

.tooltip-info h4 {
  margin: 0 0 8px 0;
  color: #2d3748;
  font-size: 14px;
}

.tooltip-info p {
  margin: 4px 0;
  color: #4a5568;
}

.tooltip-info .tooltip-loading {
  color: #a0aec0;
  font-style: italic;
}

.toolTipInfo {
  bottom: 5px;
  transform: translateY(100%);
}

.tooltip.visible {
  opacity: 1;
  pointer-events: auto;
}

.tooltip-info dl {
  margin: 0;
  padding: 0;
}

.tooltip-info dt {
  font-weight: 600;
  color: #2d3748;
  float: left;
  clear: left;
  width: 140px;
  text-align: right;
  margin-right: 12px;
}

.tooltip-info dd {
  margin: 0 0 8px 0;
  color: #4a5568;
  min-height: 1.2em;
}

.tooltip-info dd:after {
  content: "";
  display: table;
  clear: both;
}

.table-cell[data-column=code] .code:empty::after {
  content: "+";
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  color: white;
  font-weight: 900;
  background: #38a169;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  text-align: center;
  line-height: 18px;
  opacity: 0;
}

.table-row:hover .table-cell[data-column=code] .code:empty::after {
  opacity: 1;
}

.copyable-code {
  cursor: pointer;
}

.copy-code-icon {
  opacity: 0;
  transition: opacity 0.2s;
  color: #a0aec0;
  cursor: pointer;
  margin-left: 5px;
}

.copyable-code:hover .copy-code-icon {
  opacity: 1;
}

.star {
  position: relative;
  width: 60px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.star::before {
  content: "\f005";
  font-family: "Font Awesome 6 Free", serif;
  font-weight: 900;
  font-size: 40px;
  color: #ff9800;
  position: absolute;
  z-index: 1;
}

.star-value {
  position: relative;
  z-index: 2;
  color: white;
  font-weight: bold;
  font-size: 16px;
  margin-top: 6px;
}

.report-info {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 8px;
  background-color: #f9f9f9;
  border-radius: 4px;
  cursor: pointer;
}

.report-info:hover {
  background-color: #e9e9e9;
}

.report-info i {
  color: #0066cc;
}

.cart-cell {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 68px;
  padding: 4px;
  position: relative;
  cursor: pointer;
}

.cart-icon {
  color: #3b82f6;
  font-weight: 600;
}

.cart-icon:hover, .cart-icon.active {
  color: #3467d2 !important;
}

/* БЕЙДЖ КОРЗИНЫ */
.cart-cell::before {
  content: attr(data-cart);
  background: #3b82f6;
  color: white;
  border-radius: 12px;
  padding: 4px 8px;
  font-size: 12px;
  font-weight: 600;
  min-width: 24px;
  text-align: center;
  display: none;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  z-index: 2;
}

/* ИКОНКА КОРЗИНЫ */
.cart-cell::after {
  content: "\f217";
  font-family: "Font Awesome 6 Free", "Font Awesome 6 Pro", "FontAwesome", serif;
  font-weight: 900;
  color: #3b82f6;
  font-size: 16px;
  opacity: 0;
  z-index: 1;
  display: inline-block;
}

/* ЛОГИКА ОТОБРАЖЕНИЯ */
.cart-cell[data-cart]:not([data-cart="0"])::before {
  display: inline-block;
}

.cart-cell[data-cart="0"]::after,
.cart-cell:not([data-cart])::after {
  opacity: 0;
}

.table-row:hover .cart-cell[data-cart="0"]::after,
.table-row:hover .cart-cell:not([data-cart])::after {
  opacity: 1;
}

.cart-cell[data-cart]:not([data-cart="0"])::after {
  display: none;
}

/* АДАПТИВНОСТЬ ДЛЯ БОЛЬШИХ ЧИСЕЛ */
.cart-cell[data-cart="0"]::before {
  display: none !important;
}

.cart-cell::before {
  max-width: 70px;
}

.cart-cell[data-cart*="999"]::before,
.cart-cell[data-cart*="."]::before {
  font-size: 11px;
  padding: 4px 6px;
}

.icons-container {
  display: flex;
  margin: 15px 0;
  flex-wrap: nowrap;
}

.icon-item {
  display: flex;
  align-items: center;
  padding: 8px 12px;
  white-space: nowrap;
  border-radius: 6px;
  border: 1px solid #d0e2ff;
  cursor: pointer;
}

.icon-item:hover {
  background-color: #e2efff;
}

/* ТУЛТИП ЦЕН */
.price-section,
.packaging-section,
.warehouse-section,
.suppliers-section {
  margin: 15px 0;
}

.price-section h5,
.packaging-section h5,
.warehouse-section h5,
.suppliers-section h5 {
  margin-bottom: 10px;
  color: #2d3748;
}

.price-buttons {
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
}

.price-button {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  min-width: 80px;
  border-radius: 6px;
  border: 1px solid #d0e2ff;
  cursor: pointer;
}

.price-button:hover {
  background-color: #e2efff;
}

.price-button.small {
  min-width: 70px;
  padding: 6px 8px;
}

.price-label {
  font-size: 10px;
  color: #718096;
  margin-bottom: 0;
}

.price-value {
  font-size: 16px;
  font-weight: 600;
}

.price-value.current {
  color: #38a169;
}

.price-value.wholesale,
.price-value.tariff {
  color: #3b82f6;
}

.price-value.dealer,
.price-value.purchase {
  color: #e53e3e;
}

.packaging-list {
  font-size: 13px;
}

.packaging-item {
  display: flex;
  justify-content: space-between;
  padding: 4px 0;
  border-bottom: 1px solid #f1f5f9;
}

.packaging-item:last-child {
  border-bottom: none;
}

.warehouse-grid,
.supplier-warehouses {
  font-size: 12px;
}

.warehouse-header {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 8px;
  padding: 4px 0;
  border-bottom: 1px solid #e2e8f0;
  font-weight: 500;
}

.warehouse-row {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 8px;
  padding: 4px 0;
  border-bottom: 1px solid #f1f5f9;
}

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

.supplier-block {
  margin-bottom: 15px;
  padding: 12px;
  background: #f8fafc;
  border-radius: 6px;
}

.supplier-block:last-child {
  margin-bottom: 0;
}

.supplier-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 10px;
}

.supplier-info h6 {
  font-size: 14px;
  margin: 0 0 4px 0;
  color: #2d3748;
}

.supplier-update {
  font-size: 11px;
  color: #718096;
  display: flex;
  align-items: center;
  gap: 8px;
}

.status-badge {
  display: inline-flex;
  align-items: center;
}

.status-badge .fas.fa-circle {
  font-size: 10px;
  margin-right: 4px;
}

.status-badge.actual .fas.fa-circle {
  color: #38a169;
}

.status-badge.outdated .fas.fa-circle {
  color: #D2D2D2;
}

.supplier-prices {
  display: flex;
  gap: 10px;
}

.highlight {
  padding: 1px 3px !important;
  border-radius: 14px !important;
  box-shadow: 0 0 5px rgba(209, 114, 31, 0.9) !important;
}

.dropbtn {
  cursor: pointer;
}

.dropdown {
  position: relative;
  display: inline-block;
}

.dropdown-content {
  display: none;
  position: absolute;
  background: white;
  min-width: 160px;
  top: 100%;
  left: 0;
}

.dropdown-content a {
  color: #333;
  padding: 8px 12px;
  text-decoration: none;
  display: block;
  font-size: 14px;
}

.dropdown-content a:hover {
  background: #d0e2ff;
}

.divider {
  height: 1px;
  background: #ccc;
  margin: 2px 0;
}

.show {
  display: block;
}

.btn-white-i {
  position: relative;
  border: none !important;
  background-color: #f3f3f3 !important;
  display: flex;
  align-items: center;
  justify-content: center;
}

.btn-yellow {
  background-color: #ffdc0f !important;
}

.btn-light-blue {
  background-color: #C1F0EF !important;
}

.btn-text-160 {
  padding-left: 2.2rem !important;
  white-space: nowrap;
  max-width: 12rem;
  overflow: hidden;
  text-overflow: ellipsis;
  display: block;
}

.border-bottom-1 {
  border-bottom: 1px solid #d0d0d0 !important;
}

.btn-white-i:hover {
  color: #2d3748;
}

[data-column-name] .tooltip {
  overflow: hidden;
}

[data-column-name=name] .tooltip {
  max-width: 750px;
}

[data-column-name=code] .tooltip {
  max-width: 250px;
}

[data-column-name=quantity] {
  max-width: 100%;
  text-overflow: ellipsis;
  overflow: hidden;
}

[data-column-name=price] .tooltip {
  max-width: 600px;
}

[data-column-name=quantity] .tooltip {
  max-width: 600px;
}

[data-column-name=relevance] .tooltip {
  max-width: 250px;
}

.btn-150 {
  min-width: 150px;
  max-height: 50px;
  padding-left: 10px;
  height: 2rem;
  border-radius: 5px;
}

.btn-300 {
  width: 11rem !important;
  max-height: 2.2rem;
  margin-bottom: 5px;
  padding-left: 10px;
  height: 2.2rem;
  border-radius: 5px;
  position: relative;
}

.left-icon {
  position: absolute;
  left: 10px;
}

.menu-item {
  padding: 6px 8px;
  font-size: 15px;
  cursor: pointer;
  border-radius: 4px;
  transition: background 0.2s;
  white-space: nowrap !important;
}

.menu-item:hover {
  background: #f2f2f2;
}

.menu-divider {
  border-bottom: 1px solid #ddd;
  margin: 6px 0;
}

.filter-dropdown {
  position: absolute;
  top: 2rem;
  width: max-content;
  left: 0;
  background: white;
  border: 1px solid #ddd;
  border-radius: 8px;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
  z-index: 20;
}

.close-button {
  position: absolute;
  top: 8px;
  right: 8px;
  border: 1px solid rgba(255, 255, 255, 0);
  font-size: 16px;
  color: #6b3737;
  cursor: pointer;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: border 0.3s ease;
  z-index: 10;
  background-color: #fff;
}

.close-button:hover {
  border: 1px solid rgba(93, 26, 26, 0.3);
  color: #5d1a1a;
  background-color: #f4eaea;
}

.onsale-icon {
  margin-right: 10px;
  color: #3b82f6;
  margin-top: 4px;
}

.tooltip-images {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  max-height: 16rem;
  overflow-y: auto;
  overflow-x: hidden;
  scrollbar-width: thin;
  scrollbar-color: #c8c8c8 transparent;
}

.products-list-row-grid > *,
.products-list-header-grid > * {
  min-width: 0;
  max-width: 100%;
  text-overflow: ellipsis;
  white-space: wrap !important;
}

.tooltip-images::-webkit-scrollbar {
  width: 4px;
}

.tooltip-images::-webkit-scrollbar-track {
  background: transparent;
}

.tooltip-images::-webkit-scrollbar-thumb {
  background: #bbbbbb;
  border-radius: 2px;
}

.tooltip-images::-webkit-scrollbar-thumb:hover {
  background: #999999;
}

.tooltip-images img + img {
  margin-top: 5px;
}

.tooltip-content-code .tooltip-info dl {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  column-gap: 12px;
  row-gap: 6px;
  width: 100%;
  margin: 0;
  padding: 0;
}
.tooltip-content-code .tooltip-info dt,
.tooltip-content-code .tooltip-info dd {
  margin: 0;
  min-width: 0;
  float: none;
  clear: none;
}
.tooltip-content-code .tooltip-info dt {
  text-align: left;
  justify-self: start;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.tooltip-content-code .tooltip-info dd {
  text-align: right;
  justify-self: end;
  white-space: nowrap;
  overflow: visible;
}

/*# sourceMappingURL=project.css.map */
