/* Минимальные переопределения для FuckOz на Bootstrap */

html {
  scroll-padding-top: 4rem;
}

body {
  min-height: 100vh;
}

.navbar-brand {
  color: #0d6efd !important;
}

.card {
  border: 1px solid rgba(0, 0, 0, 0.08);
}

.table th {
  font-weight: 600;
  font-size: 0.875rem;
}

.table th .dropdown-toggle-caret {
  font-size: 0.65rem;
  opacity: 0.8;
  text-decoration: none;
}
.table th .dropdown .btn-link:hover {
  opacity: 1;
}

.filter-reset-btn {
  font-size: 1rem;
  line-height: 1;
  text-decoration: none;
}
.filter-reset-btn:hover {
  color: var(--bs-danger) !important;
}

.font-monospace {
  font-variant-numeric: tabular-nums;
}

.order-number-link:hover {
  text-decoration: underline !important;
}

/* Цвета статусов заказов */
.badge-status-orange { background-color: #fd7e14; color: #fff; }
.badge-status-purple { background-color: #6f42c1; color: #fff; }
.badge-status-turquoise { background-color: #20c997; color: #fff; }

/* Цвета схем */
.badge-scheme-fbo { background-color: #e7f1ff; color: #0d6efd; }
.badge-scheme-fbs { background-color: #d1e7dd; color: #198754; }

.commission-link {
  text-decoration: underline dotted;
  cursor: pointer;
}

.commission-link:hover {
  opacity: 0.85;
}

.commission-cell {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.commission-cell .margin-line {
  font-size: 0.8em;
  color: var(--bs-secondary-color);
  font-weight: normal;
}

.commission-cell .margin-line.margin-low {
  color: #dc3545;
  font-weight: 600;
}

.offer-cell {
  font-weight: inherit;
}

.offer-name {
  font-size: 0.8em;
  color: var(--bs-secondary-color);
  font-weight: normal;
  margin-top: 0.15rem;
}

/* Текст «Комиссии OZON» — кликабельная ссылка с пунктирным подчёркиванием */
.ozon-fees-toggle-link {
  background: none;
  border: 0;
  padding: 0;
  font: inherit;
  color: var(--bs-body-color);
  text-decoration: underline dotted;
  cursor: pointer;
}

.ozon-fees-toggle-link:hover {
  color: var(--bs-body-color);
  opacity: 0.85;
}

.ozon-fees-detail-row td {
  padding-top: 0.25rem;
  padding-bottom: 0.25rem;
}

.ozon-fees-detail-row table {
  width: 100%;
}

/* Таблица товаров: фиксированная высота и вертикальный скролл — тогда шапка липкая */
#products-table-wrapper {
  max-height: min(70vh, 600px);
  overflow: auto;
}

#products-table-wrapper thead th {
  position: sticky;
  top: 0;
  z-index: 2;
  background-color: #f8f9fa;
  box-shadow: 0 1px 0 0 rgba(0, 0, 0, 0.08);
}

/* Таблица заказов: фиксированная высота и вертикальный скролл — шапка липкая */
#orders-table-wrapper {
  max-height: min(70vh, 600px);
  overflow: auto;
}

#orders-table-wrapper thead th {
  position: sticky;
  top: 0;
  z-index: 2;
  background-color: #f8f9fa;
  box-shadow: 0 1px 0 0 rgba(0, 0, 0, 0.08);
}
