/* Retailer Inventory Management Page */

.retailer-inventory-page {
  max-width: 1100px;
  margin: 0 auto;
  padding-bottom: 80px;
}

.retailer-inventory-page h2 {
  font-weight: 600;
  margin-bottom: 2px;
}

.inventory-actions {
  display: flex;
  gap: 8px;
  align-items: center;
}

.inventory-actions .btn svg {
  margin-right: 4px;
  vertical-align: -2px;
}

/* Location cards */
.inventory-location-card {
  background: #fff;
  border: 1px solid #e2e6ea;
  border-radius: 8px;
  overflow: hidden;
}

.location-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 20px;
  background: #f8f9fa;
  border-bottom: 1px solid #e2e6ea;
}

.location-header h5 {
  font-weight: 600;
  font-size: 15px;
}

.location-header .badge {
  font-size: 11px;
  font-weight: 500;
}

/* Table */
.inventory-table {
  margin-bottom: 0;
  font-size: 14px;
}

.inventory-table thead th {
  background: #fff;
  border-top: none;
  border-bottom: 2px solid #e2e6ea;
  font-weight: 600;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #6c757d;
  padding: 10px 16px;
  white-space: nowrap;
}

.inventory-table tbody td {
  padding: 10px 16px;
  vertical-align: middle;
  border-color: #f0f0f0;
}

.inventory-table tbody tr:last-child td {
  border-bottom: none;
}

.inventory-table tbody tr:hover {
  background: #f8f9ff;
}

.inventory-table tbody tr.row-modified {
  background: #fff8e1;
}

.inventory-table tbody tr.row-modified:hover {
  background: #fff3cd;
}

/* Item info */
.item-info strong {
  font-size: 14px;
}

.item-info small {
  font-size: 11px;
}

/* Input fields */
.inv-stock-input,
.inv-threshold-input {
  width: 90px;
  display: inline-block;
  border: 1px solid #dee2e6;
  border-radius: 4px;
  transition: border-color 0.15s;
}

.inv-stock-input:focus,
.inv-threshold-input:focus {
  border-color: #5b47d4;
  box-shadow: 0 0 0 2px rgba(91, 71, 212, 0.15);
}

.row-modified .inv-stock-input,
.row-modified .inv-threshold-input {
  border-color: #ffc107;
}

/* Column widths */
.col-stock,
.col-threshold {
  width: 120px;
}

.col-status {
  width: 100px;
}

.col-updated {
  width: 130px;
}

/* Status badges */
.inventory-table .badge {
  font-size: 11px;
  padding: 4px 8px;
  font-weight: 500;
  border-radius: 4px;
}

.badge-success {
  background-color: #d4edda;
  color: #155724;
}

.badge-warning {
  background-color: #fff3cd;
  color: #856404;
}

.badge-danger {
  background-color: #f8d7da;
  color: #721c24;
}

.badge-secondary {
  background-color: #e9ecef;
  color: #495057;
}

/* Unsaved changes banner */
.unsaved-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 1050;
  padding: 0 16px;
}

.unsaved-banner .alert {
  max-width: 1100px;
  margin: 0 auto;
  border-radius: 8px 8px 0 0;
  box-shadow: 0 -2px 12px rgba(0, 0, 0, 0.1);
}

/* Responsive */
@media (max-width: 768px) {
  .retailer-inventory-page {
    padding-left: 8px;
    padding-right: 8px;
  }

  .inventory-actions {
    flex-wrap: wrap;
  }

  .inv-stock-input,
  .inv-threshold-input {
    width: 70px;
  }

  .col-updated {
    display: none;
  }

  .inventory-table thead th:last-child {
    display: none;
  }
}
