/* Compare Page Enhancements */

/* Toolbar */
.compare-toolbar {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  padding: 10px 16px;
  margin-bottom: 12px;
  background: var(--bg, #f8f9fa);
  border: 1px solid var(--border, #e5e7eb);
  border-radius: 8px;
}

.compare-toolbar__info {
  font-size: 13px;
  color: var(--muted, #6b7280);
  margin-right: auto;
}

.compare-toolbar__toggle svg,
.compare-toolbar__bulk svg {
  vertical-align: -2px;
  margin-right: 4px;
}

.compare-toolbar__bulk {
  white-space: nowrap;
}

/* Diff highlighting */
.compare__row--diff .compare__cell--highlight {
  background: #fef3c7;
  border-left: 2px solid #f59e0b;
}

.compare__row--diff .compare__cell--label {
  font-weight: 600;
  color: #92400e;
}

/* Same rows (dimmed slightly) */
.compare__row--same .compare__cell:not(.compare__cell--label) {
  color: var(--muted, #6b7280);
}

/* Success state for bulk button */
.btn--success {
  background: #059669 !important;
  border-color: #059669 !important;
  color: #fff !important;
}

/* Print — hide interactive toolbar (diff toggle + bulk add); comparison data stays */
@media print {
  .compare-toolbar { display: none !important; }
  .compare__row--diff .compare__cell--highlight { background: #fff !important; border-left: 2px solid #000 !important; }
  .compare__row--same .compare__cell:not(.compare__cell--label) { color: #000 !important; }
}

/* High Contrast — preserve diff indicator + success button visibility */
@media (forced-colors: active) {
  .compare__row--diff .compare__cell--highlight { border-left: 3px solid Highlight; }
  .btn--success { border: 2px solid ButtonText !important; }
}

/* Mobile */
@media (max-width: 767px) {
  .compare-toolbar {
    padding: 8px 12px;
    gap: 8px;
  }
  .compare-toolbar__info {
    width: 100%;
    font-size: 12px;
  }
  .compare-toolbar__toggle,
  .compare-toolbar__bulk {
    font-size: 12px;
    padding: 6px 10px;
    min-height: 44px;
  }
}
