/* Nexora Stocktake, Purchasing & Picking Shared Modal Styles (v8.0 Design System Law) */
.nx-stocktake-notice {
  padding: 12px 15px;
  border: 1px solid #eee8f2;
  border-radius: 12px;
  background: #faf8fc;
  line-height: 1.75;
  font-size: 13px;
  color: var(--ink, #1b1823);
  overflow-wrap: anywhere;
  margin: 0 0 14px;
}
.nx-stocktake-notice.success {
  color: #3d6f4b;
  border-color: #dcebe2;
  background: #f6fbf8;
}
.nx-stocktake-notice.warn {
  color: #825d24;
  border-color: #eed9b7;
  background: #fdf6ec;
}
.nx-stocktake-notice[hidden] {
  display: none !important;
}
.nx-stocktake-hint {
  color: var(--muted, #685e74);
  font-size: 12px;
  line-height: 1.75;
  overflow-wrap: anywhere;
  font-variant-numeric: tabular-nums;
}
.nx-stocktake-filter {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: end;
  padding: 12px 14px;
  margin: 14px 0;
  border-radius: 14px;
  background: #faf8fc;
  border: 1px solid #eee8f2;
}
.nx-stocktake-filter label {
  display: grid;
  gap: 6px;
  min-width: 0;
  flex: 1 1 150px;
  font-size: 12px;
  color: var(--muted, #685e74);
}
.nx-stocktake-filter input,
.nx-stocktake-filter select {
  margin-top: 0 !important;
  min-height: 38px !important;
  height: 38px;
  padding: 0 11px !important;
  background: #fff !important;
  border-radius: 10px !important;
  font-size: 13px !important;
}
.nx-stocktake-filter .ghost-button {
  min-height: 38px;
  height: 38px;
}
.nx-stocktake-selection {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  align-items: center;
  padding: 10px 14px;
  margin: 12px 0;
  border-radius: 12px;
  background: #faf8fc;
  border: 1px solid #eee8f2;
  font-size: 12px;
  color: var(--muted, #685e74);
  font-variant-numeric: tabular-nums;
}
.nx-stocktake-product-check {
  width: 18px !important;
  height: 18px !important;
  min-height: 18px !important;
  padding: 0 !important;
  accent-color: var(--purple, #7d3aef);
}
.nx-stocktake-balance-table { min-width: 780px; }
.nx-stocktake-review-table { min-width: 680px; }
.nx-stocktake-lines { min-width: 1020px; }
.nx-stocktake-list-table { min-width: 580px; }
.nx-stocktake-lines td,
.nx-stocktake-balance-table td,
.nx-stocktake-list-table td,
.nx-stocktake-review-table td {
  max-width: 260px;
  overflow-wrap: anywhere;
  font-variant-numeric: tabular-nums;
}
.nx-stocktake-lines small,
.nx-stocktake-balance-table small,
.nx-stocktake-list-table small,
.nx-stocktake-review-table small {
  display: block;
  margin-top: 4px;
  color: var(--muted, #685e74);
  font-size: 12px;
  line-height: 1.65;
  overflow-wrap: anywhere;
}
.nx-stocktake-lines [data-stocktake-count] {
  width: 220px;
  max-width: 100%;
  font-variant-numeric: tabular-nums;
}
.nx-stocktake-lines [data-stocktake-line-note] {
  width: 180px;
  max-width: 100%;
}
.nx-stocktake-drifted td {
  background: #fff9f4 !important;
}
.nx-stocktake-tools {
  flex-wrap: wrap;
  margin: 14px 0;
  padding: 10px 12px;
  border-radius: 12px;
  background: #faf8fc;
  border: 1px solid #eee8f2;
}
.nx-stocktake-tools .ghost-button {
  min-height: 34px;
  height: 34px;
  padding: 0 13px;
  font-size: 12px;
}
.nx-stocktake-confirm {
  align-items: flex-start;
  margin: 14px 0;
  padding: 10px 12px;
  border-radius: 11px;
  background: #faf8fc;
  border: 1px solid #eee8f2;
  line-height: 1.7;
}
.nx-stocktake-confirm input { margin-top: 3px; }
.nx-stocktake-history { margin-top: 22px; }
.nx-stocktake-history h3 { font-size: 15px; margin: 0 0 10px; }
.nx-stocktake-import-errors {
  padding: 12px 14px;
  border-radius: 12px;
  background: #fff5f7;
  border: 1px solid #efd7df;
  color: #a63d58;
  line-height: 1.75;
  margin-bottom: 12px;
}
.nx-stocktake-print-frame {
  position: fixed;
  width: 0;
  height: 0;
  left: -10000px;
  border: 0;
}
#stocktake-editor .modal-actions,
#stocktake-review .modal-actions,
#purchase-order .modal-actions,
#picking-wave .modal-actions {
  flex-wrap: wrap;
}

@media(max-width:700px) {
  .nx-stocktake-filter { padding: 10px 12px; gap: 10px; }
  .nx-stocktake-filter label { flex-basis: 100%; }
  .nx-stocktake-tools { gap: 7px; padding: 8px 10px; }
  .nx-stocktake-tools button { font-size: 12px; padding: 0 11px; }
  #stocktake-editor .modal-actions,
  #stocktake-review .modal-actions,
  #purchase-order .modal-actions,
  #picking-wave .modal-actions { gap: 7px; }
  #stocktake-editor .modal-actions button,
  #stocktake-review .modal-actions button,
  #purchase-order .modal-actions button,
  #picking-wave .modal-actions button { padding: 8px 12px; font-size: 12px; min-height: 36px; }
}
