/* ==========================================================================
   PRICE SEARCH & HIGHLIGHT STYLES
   Стоматологическая клиника «Академия Дент»
   ========================================================================== */

.price-search {
  max-width: 620px;
  margin: 25px auto 35px;
  position: relative;
  width: 100%;
}

.price-search input {
  width: 100%;
  border: 1.5px solid #d1d5db;
  border-radius: 50px;
  padding: 13px 48px 13px 22px;
  font-size: 15px;
  font-family: inherit;
  color: #212529;
  background: #ffffff;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  outline: none;
  transition: border-color 0.25s ease, box-shadow 0.25s ease, background-color 0.25s ease;
}

.price-search input:focus {
  border-color: #009024;
  box-shadow: 0 0 0 3.5px rgba(0, 144, 36, 0.16);
}

.price-search input::placeholder {
  color: #8c8c8c;
}

.price-search .search-icon {
  position: absolute;
  right: 18px;
  top: 50%;
  transform: translateY(-50%);
  width: 20px;
  height: 20px;
  color: #009024;
  pointer-events: none;
  transition: opacity 0.2s ease;
}

.price-search .price-search-clear {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  width: 26px;
  height: 26px;
  border: none;
  background: #e2e8f0;
  color: #475569;
  cursor: pointer;
  display: none;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  padding: 0;
  font-size: 12px;
  line-height: 1;
  transition: all 0.2s ease;
}

.price-search .price-search-clear:hover {
  background: #cbd5e1;
  color: #0f172a;
}

.price-search.has-query .price-search-clear {
  display: flex;
}

.price-search.has-query .search-icon {
  display: none;
}

.price-category-block.price-hidden,
.table-price tr.price-hidden {
  display: none !important;
}

.table-price mark.price-hit {
  background: #ffe69c;
  color: #664d03;
  padding: 1px 2px;
  border-radius: 2px;
  font-weight: 700;
}

.price-empty {
  text-align: center;
  color: #64748b;
  background: #ffffff;
  border: 1.5px dashed #cbd5e1;
  border-radius: 12px;
  padding: 36px 20px;
  font-size: 15px;
  display: none;
  margin: 10px auto 35px;
  max-width: 650px;
  line-height: 1.6;
}

.price-empty.show {
  display: block;
}

/* Поддержка режима для слабовидящих (BVI) */
body.bvi-mode .price-search input,
body.bvi-mode .price-empty {
  background: #111111 !important;
  border-color: #ffff00 !important;
  color: #ffffff !important;
}

body.bvi-mode .price-search .search-icon {
  color: #ffff00 !important;
}

body.bvi-mode .price-search .price-search-clear {
  background: #333333 !important;
  color: #ffff00 !important;
}

body.bvi-mode .table-price mark.price-hit {
  background: #ffff00 !important;
  color: #000000 !important;
}

/* ==========================================================================
   PRICE TABLE STYLES (3-column layout)
   ========================================================================== */

.table-price {
  width: 100%;
  margin-bottom: 2rem;
  background-color: #ffffff;
}

.table-price th {
  vertical-align: middle;
  background-color: #f8fafc;
  color: #1e293b;
  font-weight: 700;
  padding: 12px 14px;
  border-bottom: 2px solid #e2e8f0;
}

.table-price .price-col-code {
  width: 140px;
  min-width: 120px;
}

.table-price .price-col-name {
  text-align: left !important;
}

.table-price .price-col-price {
  width: 155px;
  min-width: 130px;
  text-align: right !important;
}

.table-price td {
  padding: 12px 14px;
  vertical-align: middle;
}

.table-price .price-code {
  text-align: center;
  font-size: 13px;
  font-weight: 600;
  color: #475569;
  line-height: 1.35;
  letter-spacing: 0.2px;
}

.table-price .price-name {
  text-align: left;
}

.table-price .price-title {
  display: inline;
  font-size: 15px;
  font-weight: 600;
  color: #1e293b;
  line-height: 1.45;
}

.table-price .price-comment {
  display: block;
  font-size: 14px;
  color: #64748b;
  margin-top: 3px;
  line-height: 1.4;
  font-weight: 400;
}

.table-price .price-cost {
  text-align: right;
  font-weight: 700;
  color: #212529;
  white-space: nowrap;
  font-size: 15px;
}

/* Адаптивность для мобильных экранов */
@media (max-width: 576px) {
  .table-price th,
  .table-price td {
    padding: 8px 10px;
  }
  .table-price .price-col-code {
    width: 105px;
    min-width: 95px;
  }
  .table-price .price-code {
    font-size: 12px;
  }
  .table-price .price-title {
    font-size: 14px;
  }
  .table-price .price-comment {
    font-size: 13px;
  }
  .table-price .price-cost {
    font-size: 14px;
  }
}

/* Стили для слабовидящих (BVI) */
body.bvi-mode .table-price th {
  background-color: #222222 !important;
  color: #ffff00 !important;
  border-color: #ffff00 !important;
}

body.bvi-mode .table-price .price-code {
  color: #ffff00 !important;
}

body.bvi-mode .table-price .price-title {
  color: #ffffff !important;
}

body.bvi-mode .table-price .price-comment {
  color: #cccccc !important;
}

body.bvi-mode .table-price .price-cost {
  color: #ffff00 !important;
}

