/* Отдельные стили для страницы "Сверка авто".
   Подключается после общего style.css и переопределяет внешний вид,
   чтобы страница сразу выглядела аккуратно без изменения масштаба. */

body.reconcile-page {
  background: #f3f4f6;
  color: #111827;
}

body.reconcile-page .reconcile-container {
  max-width: 1120px;
}

body.reconcile-page .page-header {
  align-items: flex-start;
  gap: 16px;
}

body.reconcile-page .page-header h2 {
  font-size: 40px;
  line-height: 1.1;
  letter-spacing: -0.6px;
  margin-top: 6px;
}

body.reconcile-page .header-buttons {
  flex-wrap: wrap;
  justify-content: flex-end;
}

body.reconcile-page .btn {
  border-radius: 10px;
  padding: 10px 16px;
}

body.reconcile-page .reconcile-grid-page {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  align-items: start;
  margin-top: 12px;
}

body.reconcile-page .reconcile-section {
  background: #ffffff;
  border-radius: 14px;
  padding: 22px;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
  border: 1px solid rgba(15, 23, 42, 0.06);
}

body.reconcile-page .progress-section {
  margin-bottom: 20px;
}

body.reconcile-page .progress-meta {
  margin-bottom: 10px;
  font-size: 14px;
  color: #334155;
  font-weight: 600;
}

body.reconcile-page .progress-track {
  height: 14px;
  width: 100%;
  background: #e2e8f0;
  border-radius: 999px;
  overflow: hidden;
  border: 1px solid #cbd5e1;
}

body.reconcile-page .progress-bar-fill {
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, #0ea5e9, #22c55e);
  transition: width 0.35s ease;
}

body.reconcile-page .section-header h3 {
  font-size: 20px;
  line-height: 1.2;
  margin-bottom: 10px;
}

body.reconcile-page .section-description {
  font-size: 15px;
  line-height: 1.6;
  color: #475569;
}

body.reconcile-page .reconcile-summary {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 14px 16px;
  gap: 14px;
}

body.reconcile-page .summary-label {
  font-size: 14px;
  color: #475569;
}

body.reconcile-page .summary-value {
  font-size: 22px;
  color: #0f172a;
}

body.reconcile-page .reconcile-success-message {
  background: #dcfce7;
  border: 1px solid #bbf7d0;
  color: #166534;
  border-radius: 12px;
  padding: 14px 16px;
  font-weight: 700;
}

/* Карточки с расхождениями */
body.reconcile-page .reconcile-grid {
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

body.reconcile-page .reconcile-card {
  border-radius: 12px;
  border: 1px solid #e2e8f0;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.05);
}

body.reconcile-page .discrepancy-card.error {
  border-left: 4px solid #ef4444;
}

body.reconcile-page .discrepancy-card.warning {
  border-left: 4px solid #f59e0b;
}

body.reconcile-page .reconcile-title {
  font-size: 16px;
}

body.reconcile-page .discrepancy-subtitle {
  margin-top: 6px;
  font-size: 13px;
  color: #64748b;
  font-weight: 600;
}

body.reconcile-page .table-wrapper-scroll-small {
  max-height: 240px;
  overflow: auto;
  border-radius: 10px;
  border: 1px solid #e2e8f0;
  background: #fff;
}

body.reconcile-page .reconcile-table-small {
  width: 100%;
  border-collapse: collapse;
}

body.reconcile-page .reconcile-table-small td {
  padding: 10px 12px;
  border-bottom: 1px solid #eef2f7;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  font-size: 14px;
}

body.reconcile-page .reconcile-table-small tr:last-child td {
  border-bottom: none;
}

body.reconcile-page .idle-plates-grid-table {
  width: 100%;
  border-collapse: collapse;
}

body.reconcile-page .idle-plates-grid-table td {
  width: 25%;
  padding: 10px 12px;
  border-bottom: 1px solid #eef2f7;
  border-right: 1px solid #eef2f7;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  font-size: 14px;
}

body.reconcile-page .idle-plates-grid-table td:last-child {
  border-right: none;
}

@media (max-width: 1100px) {
  body.reconcile-page .reconcile-container {
    max-width: 980px;
  }
  body.reconcile-page .reconcile-grid-page {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  body.reconcile-page .reconcile-container {
    padding: 16px;
  }
  body.reconcile-page .page-header h2 {
    font-size: 30px;
  }
  body.reconcile-page .header-buttons {
    width: 100%;
    justify-content: flex-start;
  }
}

body.reconcile-page .manual-match-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 10px;
}

body.reconcile-page .manual-match-item {
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 10px;
  background: #f8fafc;
}

body.reconcile-page .manual-match-title {
  font-weight: 600;
  margin-bottom: 6px;
}

body.reconcile-page .manual-match-similarity {
  font-size: 13px;
  color: #475569;
  margin-bottom: 8px;
}

body.reconcile-page .manual-match-similarity-low {
  color: #b91c1c;
  font-weight: 700;
}

body.reconcile-page .manual-match-select {
  width: 100%;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  padding: 8px 10px;
  background: #fff;
}

body.reconcile-page .price-report-table thead th {
  position: sticky;
  top: 0;
  background: #fff;
  z-index: 2;
}

body.reconcile-page .price-filters-row th {
  padding: 6px;
  background: #f8fafc;
}

body.reconcile-page .price-filter-select {
  width: 100%;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  padding: 5px 8px;
  font-size: 12px;
  background: #fff;
}

body.reconcile-page .price-table-wrap {
  min-height: 72vh;
  max-height: 92vh;
}

body.reconcile-page .sortable {
  cursor: pointer;
}

body.reconcile-page .price-row-rollout td {
  background: #e9f5ff !important;
}

body.reconcile-page tr.price-row-rollout {
  background: #e9f5ff !important;
}

body.reconcile-page .column-filter {
  position: relative;
}

body.reconcile-page .price-filter-btn {
  width: 100%;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  background: #fff;
  font-size: 12px;
  padding: 5px 8px;
  cursor: pointer;
}

body.reconcile-page .price-filter-menu {
  position: absolute;
  left: 0;
  top: calc(100% + 4px);
  width: 230px;
  max-height: 320px;
  overflow: auto;
  background: #fff;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.14);
  z-index: 30;
  padding: 8px;
}

body.reconcile-page .price-filter-search {
  width: 100%;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  padding: 5px 8px;
  margin-bottom: 8px;
  font-size: 12px;
}

body.reconcile-page .price-filter-values {
  max-height: 220px;
  overflow: auto;
  border-top: 1px solid #e2e8f0;
  margin-top: 6px;
  padding-top: 6px;
}

body.reconcile-page .price-filter-row {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  padding: 4px 2px;
  cursor: pointer;
}
