/* Workshop Manager — Allocate Stock modal (detachable) */

.ws-allocate-pane-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}

.ws-allocate-pane-hint {
  margin: 0 0 12px;
  font-size: 13px;
  color: #6c757d;
}

.ws-stock-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
}

.ws-stock-table th,
.ws-stock-table td {
  border: 1px solid #dee2e6;
  padding: 7px 8px;
  text-align: left;
}

.ws-stock-table th {
  background: #f8f9fa;
  font-size: 11px;
}

.ws-stock-available,
.ws-stock-qty {
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.ws-stock-available-loading {
  color: #adb5bd;
}

.ws-allocate-table tr.ws-allocate-short td {
  background: #fff3cd;
}

.ws-allocate-table tr.ws-allocate-short .ws-stock-available {
  color: #856404;
  font-weight: 700;
}

.ws-allocate-table tr.ws-allocate-done td {
  background: #f0fff4;
}

.ws-allocate-status {
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
}

.ws-allocate-status-done {
  color: #198754;
}

.ws-allocate-status-nosku {
  color: #adb5bd;
}

.ws-allocate-btn-row {
  padding: 2px 10px;
  font-size: 12px;
  border: 1px solid #0d6efd;
  border-radius: 4px;
  background: #e7f1ff;
  color: #0d6efd;
  cursor: pointer;
}

.ws-allocate-btn-row:hover:not(:disabled) {
  background: #0d6efd;
  color: #fff;
}

.ws-allocate-btn-row:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.ws-allocate-unallocate-btn {
  padding: 2px 10px;
  font-size: 12px;
  border: 1px solid #dc3545;
  border-radius: 4px;
  background: #fff5f5;
  color: #dc3545;
  cursor: pointer;
  margin-left: 8px;
}

.ws-allocate-unallocate-btn:hover:not(:disabled) {
  background: #dc3545;
  color: #fff;
}

.ws-allocate-table tr.ws-allocate-done.ws-allocate-row-clickable {
  cursor: pointer;
}

.ws-allocate-table tr.ws-allocate-done.ws-allocate-row-clickable:hover td {
  background: #e8f5ec;
}

.ws-allocate-actions {
  white-space: nowrap;
}

.ws-allocate-all-btn {
  padding: 6px 14px;
  font-size: 13px;
  border: 1px solid #dc3545;
  border-radius: 4px;
  background: #dc3545;
  color: #fff;
  cursor: pointer;
}

.ws-allocate-all-btn:hover:not(:disabled) {
  background: #bb2d3b;
  border-color: #bb2d3b;
}

.ws-allocate-all-btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.ws-allocate-error {
  color: #dc3545;
  font-size: 13px;
  margin: 8px 0 0;
}

.ws-allocate-summary {
  font-size: 12px;
  color: #6c757d;
  margin-left: auto;
}

.ws-allocate-table th.ws-stock-allocated-col,
.ws-allocate-table td.ws-stock-allocated-col {
  font-weight: 700;
  text-align: center;
}

#stock-unallocate-modal-backdrop .ws-unallocate-confirm-btn {
  background: #dc3545;
  border-color: #dc3545;
  color: #fff;
}

#stock-unallocate-modal-backdrop .ws-unallocate-confirm-btn:hover:not(:disabled) {
  background: #bb2d3b;
  border-color: #bb2d3b;
}

#stock-unallocate-modal-backdrop .ws-unallocate-error {
  display: none;
  padding: 10px;
  background: #f8d7da;
  border: 1px solid #f5c6cb;
  border-radius: 4px;
  color: #842029;
  font-size: 13px;
  margin-bottom: 10px;
}

#stock-unallocate-modal-backdrop .ws-unallocate-sku {
  font-size: 12px;
  color: #6c757d;
  margin-top: 2px;
}

#stock-unallocate-modal-backdrop .confirm-modal-actions {
  margin-top: 14px;
}

#stock-unallocate-modal-backdrop .confirm-modal-actions .modal-cancel-btn,
#stock-unallocate-modal-backdrop .confirm-modal-actions .modal-apply-btn {
  width: auto;
  margin-top: 0;
  padding: 8px 14px;
}
