/* ── Bring List ─────────────────────────────────────────────────── */

/* Section heading */
.bring-heading {
  text-align: center;
  font-size: 1rem;
  font-weight: 600;
  color: var(--text);
  margin: 0 0 12px;
}

/* Add bar — search + trigger button */
.bring-add-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  justify-content: flex-end;
  margin-bottom: 14px;
}
.bring-add-trigger {
  min-height: 44px;
  padding: 0 20px;
  flex-shrink: 0;
}

/* Search input */
.bring-search {
  flex: 1;
  min-height: 44px;
  padding: 0 14px;
  border: 1.5px solid var(--border, #e5e7eb);
  border-radius: 10px;
  font-size: 0.9rem;
  background: var(--card-bg, #fff);
  color: var(--text);
  outline: none;
}
.bring-search:focus {
  border-color: var(--blue, #6C3CE1);
}

/* Modal qty row */
.bring-modal-qty-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

/* Compact modal */
.bring-add-modal {
  max-width: 380px;
}

/* Progress bar */
.bring-progress-wrap { margin-bottom: 14px; }
.bring-progress-label { font-size: 0.82rem; color: var(--muted); display: block; margin-bottom: 5px; }
.bring-progress-bar { height: 8px; background: var(--bg2, #e5e7eb); border-radius: 99px; overflow: hidden; }
.bring-progress-fill { height: 100%; background: var(--blue, #6C3CE1); border-radius: 99px; transition: width 0.4s ease; }
.bring-progress-fill.all-done { background: #22c55e; }

/* ── List rows ─────────────────────────────────────────────────── */
.bring-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.bring-row {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--card-bg, #fff);
  border: 1.5px solid var(--border, #e5e7eb);
  border-radius: 12px;
  padding: 10px 14px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.05);
  transition: background 0.2s, border-color 0.2s;
  min-height: 56px;
}
.bring-row--claimed { background: #f0fdf4; border-color: #86efac; }
.bring-row--other   { background: #f5f3ff; border-color: #c4b5fd; }
.bring-row--mine    { background: #f0fdf4; border-color: #22c55e; }

/* Main block: qty stepper stacked above item name */
.bring-row-main {
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex: 1;
  min-width: 0;
}

/* Name */
.bring-row-name {
  font-size: 0.93rem;
  font-weight: 600;
  color: var(--text);
  word-break: break-word;
}

/* Quantity stepper — sits above item name inside .bring-row-main */
.bring-qty {
  display: flex;
  align-items: center;
  gap: 4px;
}
.bring-qty--static {
  min-height: 0;
}
.bring-qty-badge {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--muted);
  background: var(--bg2, #f3f4f6);
  border-radius: 6px;
  padding: 2px 6px;
}
.bring-qty-val {
  font-size: 0.9rem;
  font-weight: 700;
  min-width: 22px;
  text-align: center;
  color: var(--text);
}
.bring-qty-btn {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 1.5px solid var(--border, #d1d5db);
  background: var(--bg, #fff);
  color: var(--text);
  font-size: 1.1rem;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.12s, border-color 0.12s;
  flex-shrink: 0;
  min-height: 30px; /* overridden to 30 intentionally — tight in row context */
}
.bring-qty-btn:disabled { opacity: 0.35; cursor: not-allowed; }
.bring-qty-btn:not(:disabled):hover { background: var(--blue, #6C3CE1); border-color: var(--blue, #6C3CE1); color: #fff; }

/* Claimer label */
.bring-claimer {
  font-size: 0.78rem;
  font-weight: 600;
  white-space: nowrap;
  flex-shrink: 0;
}
.bring-claimer--me    { color: #15803d; }
.bring-claimer--other { color: var(--blue, #6C3CE1); }
.bring-claimer--empty { color: var(--muted); font-weight: 400; font-style: italic; }

/* Action buttons */
.bring-row-actions {
  display: flex;
  gap: 6px;
  align-items: center;
  flex-shrink: 0;
}
.bring-action-btn {
  border-radius: 8px;
  padding: 6px 12px;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
  min-height: 34px;
  white-space: nowrap;
  border: none;
}
.bring-got-btn {
  background: var(--blue, #6C3CE1);
  color: #fff;
}
.bring-got-btn:hover { background: #4b23b0; }

.bring-unclaim-btn {
  background: transparent;
  color: #15803d;
  border: 1.5px solid #22c55e !important;
}
.bring-unclaim-btn:hover { background: #dcfce7; }

.bring-delete-btn {
  background: none;
  border: none;
  color: var(--muted);
  font-size: 0.9rem;
  cursor: pointer;
  padding: 4px 6px;
  border-radius: 6px;
  line-height: 1;
  min-height: 30px;
  display: flex;
  align-items: center;
}
.bring-delete-btn:hover { color: #ef4444; background: #fee2e2; }

/* Allocation badge — who has been assigned to bring this item */
.bring-allocatee {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 3px 9px;
  border-radius: 20px;
  white-space: nowrap;
  line-height: 1.4;
}
.bring-allocatee--me {
  background: rgba(108, 60, 225, 0.10);
  color: #6C3CE1;
  border: 1px solid rgba(108, 60, 225, 0.30);
}
.bring-allocatee--other {
  background: rgba(99, 102, 241, 0.07);
  color: #4338ca;
  border: 1px solid rgba(99, 102, 241, 0.22);
}

/* Row highlight when you are the assignee */
.bring-row--allocated-me {
  background: rgba(108, 60, 225, 0.04);
  border-left: 3px solid rgba(108, 60, 225, 0.45);
}

/* Assign / Re-assign button */
.bring-assign-btn {
  padding: 4px 10px;
  border: 1.5px solid rgba(108, 60, 225, 0.30);
  border-radius: 8px;
  background: rgba(108, 60, 225, 0.06);
  color: #6C3CE1;
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: all .15s;
  min-height: 30px;
  display: flex;
  align-items: center;
}
.bring-assign-btn:hover {
  background: rgba(108, 60, 225, 0.14);
  border-color: rgba(108, 60, 225, 0.55);
}

@media (prefers-reduced-motion: reduce) {
  .bring-row { transition: none; }
}

/* Mobile tweaks */
@media (max-width: 480px) {
  .bring-row { padding: 8px 10px; gap: 8px; }
  .bring-row-icon { font-size: 1.25rem; }
  .bring-row-name { font-size: 0.87rem; }
  .bring-action-btn { padding: 5px 8px; font-size: 0.75rem; }
  .bring-claimer { font-size: 0.72rem; }
  .bring-add-qty-row { width: 100%; }
  .bring-assign-btn { padding: 4px 8px; font-size: 0.72rem; }
}
