/* =============================================
   INVENTORY DASHBOARD — styles matching Dremmy Care brand
   ============================================= */

.inventory-page {
  padding-top: 68px;
  min-height: 100vh;
  background: var(--cream);
}

.inv-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 40px 80px;
}

/* Header */
.inv-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 40px;
}
.inv-title {
  font-family: 'Lora', serif;
  font-size: 32px;
  font-weight: 600;
  color: var(--forest);
  letter-spacing: -0.02em;
}
.inv-subtitle {
  font-size: 14px;
  color: var(--text-muted);
  margin-top: 4px;
}
.inv-refresh-form button {
  background: var(--forest);
  color: var(--white);
  border: none;
  padding: 10px 24px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.2s;
  font-family: inherit;
}
.inv-refresh-form button:hover { background: var(--forest-light); }
.inv-refresh-form button:disabled { opacity: 0.6; cursor: not-allowed; }

/* Mock badge */
.mock-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #FFF8E6;
  border: 1px solid var(--amber);
  color: var(--amber);
  font-size: 12px;
  padding: 4px 12px;
  border-radius: 20px;
  margin-left: 12px;
}
.mock-badge::before {
  content: '';
  display: block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--amber);
}

/* Stats */
.inv-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 40px;
}
.inv-stat {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 20px 24px;
}
.inv-stat-label {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  font-weight: 500;
  margin-bottom: 8px;
}
.inv-stat-value {
  font-size: 36px;
  font-weight: 600;
  color: var(--text);
  line-height: 1;
}
.inv-stat-value.danger { color: #C0392B; }
.inv-stat-value.warning { color: var(--amber); }
.inv-stat-value.ok { color: var(--forest); }

/* Alerts */
.inv-section-title {
  font-family: 'Lora', serif;
  font-size: 20px;
  font-weight: 600;
  color: var(--forest);
  margin-bottom: 16px;
}
.inv-alerts {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 40px;
}
.inv-alert {
  display: flex;
  align-items: center;
  gap: 16px;
  background: #FEF2F2;
  border: 1px solid #FECACA;
  border-radius: 8px;
  padding: 14px 20px;
}
.inv-alert.out-of-stock { background: #FEF2F2; border-color: #FECACA; }
.inv-alert.low-stock { background: #FFFBEB; border-color: #FDE68A; }
.inv-alert-icon {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
}
.inv-alert.out-of-stock .inv-alert-icon { background: #FEE2E2; }
.inv-alert.low-stock .inv-alert-icon { background: #FEF3C7; }
.inv-alert-body { flex: 1; min-width: 0; }
.inv-alert-title {
  font-size: 14px;
  font-weight: 500;
  color: var(--text);
}
.inv-alert-meta {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 2px;
}
.inv-alert-qty {
  font-size: 20px;
  font-weight: 600;
  flex-shrink: 0;
}
.inv-alert.out-of-stock .inv-alert-qty { color: #C0392B; }
.inv-alert.low-stock .inv-alert-qty { color: var(--amber); }
.inv-alert-ack {
  background: none;
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 6px 14px;
  font-size: 12px;
  cursor: pointer;
  color: var(--text-muted);
  transition: all 0.2s;
  font-family: inherit;
  flex-shrink: 0;
}
.inv-alert-ack:hover { background: var(--white); color: var(--text); }

/* Table */
.inv-table-wrap {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
}
.inv-table {
  width: 100%;
  border-collapse: collapse;
}
.inv-table th {
  background: var(--cream-dark);
  padding: 12px 20px;
  text-align: left;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  font-weight: 500;
  border-bottom: 1px solid var(--border);
}
.inv-table td {
  padding: 14px 20px;
  font-size: 14px;
  border-bottom: 1px solid var(--border);
  vertical-align: middle;
}
.inv-table tr:last-child td { border-bottom: none; }
.inv-table tr:hover td { background: var(--cream); }
.inv-table .sku {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 12px;
  color: var(--text-muted);
}
.qty-badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 12px;
  font-size: 13px;
  font-weight: 500;
}
.qty-badge.zero { background: #FEE2E2; color: #C0392B; }
.qty-badge.low { background: #FEF3C7; color: var(--amber); }
.qty-badge.ok { background: #D1FAE5; color: var(--forest); }
.status-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  margin-right: 6px;
}
.status-dot.oos { background: #C0392B; }
.status-dot.low { background: var(--amber); }
.status-dot.ok { background: var(--forest); }

.empty-state {
  padding: 60px 40px;
  text-align: center;
  color: var(--text-muted);
}
.empty-state p { font-size: 15px; margin-top: 8px; }