/* Tighter stack for Customer / Project / Location in the New form. */
#warehouseNewForm .locates-grid > .locates-field:not(.locates-field--full) {
  margin-bottom: 10px;
  gap: 4px;
}

#warehouseNewForm .locates-grid > .locates-field:not(.locates-field--full) .locates-hint {
  margin-top: 0;
  min-height: 0;
}

#warehouseNewForm .locates-grid > .locates-field:not(.locates-field--full) .locates-hint:empty {
  display: none;
}

.wh-tabs {
  display: flex;
  gap: 6px;
  margin-bottom: 18px;
  background: var(--surface, #fff);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 5px;
}

.wh-tab {
  flex: 1;
  padding: 9px 8px;
  border-radius: 10px;
  border: none;
  background: transparent;
  font-family: var(--font);
  font-size: 13px;
  font-weight: 800;
  color: var(--text-muted);
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}

.wh-tab.active {
  background: var(--accent);
  color: #fff;
}

.wh-card {
  position: relative;
}

.wh-add-confirmation-btn {
  position: absolute;
  right: 14px;
  bottom: 14px;
  border-radius: 12px;
  border: 1px solid rgba(255, 130, 0, 0.28);
  background: rgba(255, 130, 0, 0.08);
  color: var(--accent);
  cursor: pointer;
  font-family: var(--font);
  font-size: 13px;
  font-weight: 700;
  padding: 10px 12px;
}

.wh-confirmation-wrap {
  margin-top: 10px;
}

.wh-confirmation-text {
  width: 100%;
  border-radius: 11px;
  border: 1px solid var(--border);
  background: #fff;
  font-family: var(--font);
  font-size: 14px;
  outline: none;
  box-sizing: border-box;
  padding: 12px;
  resize: vertical;
  min-height: 110px;
}

.wh-confirmation-actions {
  display: flex;
  gap: 10px;
  margin-top: 10px;
}

.wh-confirmation-save {
  border: none;
  border-radius: 14px;
  padding: 12px 14px;
  background: var(--accent);
  color: #fff;
  font-weight: 700;
  cursor: pointer;
}

.wh-confirmation-cancel {
  border-radius: 14px;
  padding: 12px 14px;
  border: 1px solid var(--border);
  background: #fff;
  cursor: pointer;
}

.wh-materials-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-height: 280px;
  overflow: auto;
  margin-top: 8px;
}

.wh-material-row {
  display: grid;
  grid-template-columns: auto 1fr auto auto;
  gap: 10px;
  align-items: center;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 11px;
  background: #fff;
}

.wh-material-row input[type="checkbox"] {
  width: 18px;
  height: 18px;
  min-width: 18px;
  margin: 0;
  padding: 0;
  border-radius: 4px;
  border: 1px solid rgba(0, 0, 0, 0.22);
  background: #fff;
  accent-color: var(--accent);
  cursor: pointer;
  flex-shrink: 0;
}

.wh-material-row.is-checked {
  border-color: rgba(255, 130, 0, 0.28);
  background: rgba(255, 130, 0, 0.04);
}

.wh-material-name {
  font-size: 13px;
  font-weight: 700;
  line-height: 1.25;
  min-width: 0;
  word-break: break-word;
}

.wh-material-qty {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
  white-space: nowrap;
}

.wh-material-amount {
  width: 72px;
  height: 36px;
  border-radius: 10px;
  border: 1px solid var(--border);
  padding: 0 10px;
  font-size: 14px;
  font-family: var(--font);
  box-sizing: border-box;
  text-align: right;
}

.wh-material-amount:disabled {
  opacity: 0.45;
  background: #f2f2f7;
}

.wh-material-amount:focus {
  outline: none;
  border-color: rgba(255, 130, 0, 0.45);
}

.locates-pill--status-submitted {
  background: rgb(84, 156, 201);
  border-color: rgba(84, 156, 201, 0.65);
  color: #fff;
}

.locates-pill--status-ready {
  background: rgb(243, 191, 115);
  border-color: rgba(243, 191, 115, 0.7);
  color: #111;
}

.locates-pill--status-picked,
.locates-pill--status-returned {
  background: rgb(106, 208, 150);
  border-color: rgba(106, 208, 150, 0.65);
  color: #111;
}

/* Confirmation materials editor (Request only) */
.wh-confirm-materials-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-height: 240px;
  overflow: auto;
  margin-top: 8px;
}

.wh-confirm-material-row {
  display: grid;
  grid-template-columns: 1fr 88px;
  gap: 10px;
  align-items: center;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 11px;
  background: #fff;
}

.wh-confirm-material-name {
  font-size: 13px;
  font-weight: 700;
  line-height: 1.25;
  min-width: 0;
  word-break: break-word;
}

.wh-confirm-material-amount {
  width: 100%;
  height: 36px;
  border-radius: 10px;
  border: 1px solid var(--border);
  padding: 0 10px;
  font-size: 14px;
  font-family: var(--font);
  box-sizing: border-box;
  text-align: right;
}

.wh-confirm-material-amount:focus {
  outline: none;
  border-color: rgba(255,130,0,0.45);
  box-shadow: 0 0 0 3px rgba(255,130,0,0.12);
}
