/* WMS-specific styling on top of shared.css + stock.css. */

.wms-sync-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: white;
  border: 1px solid #e5e5e7;
  border-radius: 12px;
  padding: 12px 18px;
  margin-top: 24px;
  box-shadow: 0 1px 2px rgba(0,0,0,0.03);
  gap: 16px;
  flex-wrap: wrap;
}
.wms-sync-info {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 13px;
  color: #1d1d1f;
  flex: 1;
  min-width: 0;
}
.wms-sync-label { color: #86868b; font-weight: 500; }
.wms-sync-detail { color: #86868b; font-size: 12px; }
.wms-sync-error {
  color: #c93636;
  font-size: 12px;
  background: #fdecec;
  padding: 3px 9px;
  border-radius: 6px;
}

/* SKU cell uses monospace */
.wms-sku-cell {
  font-family: ui-monospace, SFMono-Regular, 'SF Mono', 'Monaco', 'Menlo', 'Consolas', monospace;
  font-size: 12.5px;
  font-weight: 500;
}

/* Delta colors on numeric cells */
.wms-delta-positive { color: #16803c; font-weight: 600; }
.wms-delta-negative { color: #c93636; font-weight: 600; }

/* Toast error variant */
.toast.error { background: #c93636; }

/* Threshold input in filter grid */
#fThreshold { max-width: 100px; }

/* Two-row grouped header for the Discrepancies table */
#discrepanciesTable thead th.th-group {
  text-align: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.25);
  padding-bottom: 8px;
}
#discrepanciesTable thead th.th-sub {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  padding-top: 6px;
  padding-bottom: 10px;
  font-weight: 500;
  position: static;
}
#discrepanciesTable thead th.th-sub.num { text-align: right; }
#discrepanciesTable thead th.th-rowspan {
  vertical-align: middle;
}
#discrepanciesTable thead th.th-sub + th.th-sub {
  border-left: 1px solid rgba(255, 255, 255, 0.15);
}

/* Clickable WMS Qty cell (drill-down to per-warehouse breakdown) */
a.wms-qty-link {
  color: #0066cc;
  text-decoration: none;
  font-weight: 600;
  cursor: pointer;
  border-bottom: 1px dashed #0066cc;
}
a.wms-qty-link:hover {
  color: #0055b3;
  border-bottom-style: solid;
}

/* "New since previous sync" markers on the WMS-only SKUs tab */
.wms-new-toggle {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 500;
  color: #86868b;
  white-space: nowrap;
  cursor: pointer;
}
.wms-new-toggle input[type="checkbox"] {
  accent-color: #0066cc;
  cursor: pointer;
}
.wms-new-badge {
  display: inline-block;
  margin-left: 6px;
  padding: 1px 6px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: #1d7a34;
  background: #e4f7e9;
  border: 1px solid #b7e6c3;
  border-radius: 999px;
  vertical-align: 1px;
}
tr.wms-row-new td { background: #f4fbf5; }
tr.wms-row-new:hover td { background: #eaf6ec; }

/* Unknown products tab */
.wms-tab-desc {
  font-size: 13px;
  color: #6e6e73;
  margin: 0 0 12px;
}
.wms-sku-search {
  padding: 7px 12px;
  font-size: 13px;
  border: 1px solid #d2d2d7;
  border-radius: 8px;
  background: white;
  color: #1d1d1f;
  width: 190px;
  transition: all 0.2s;
}
.wms-sku-search:focus {
  outline: none;
  border-color: #0066cc;
}
a.wms-unknown-link {
  color: inherit;
  text-decoration: underline;
  text-decoration-style: dotted;
  text-underline-offset: 2px;
}
a.wms-unknown-link:hover { color: #0066cc; }
