/* ============================================
   Inventory Pages — Extracted Inline Styles
   Covers: inventory-list, inventory-detail,
           stock-detail, stock-item-detail,
           batch-detail
   ============================================ */

/* ======================
   SHARED / CROSS-PAGE
   ====================== */

/* Sidebar logo overrides (shared across all pages) */
.logo-full--inv { height: 32px; margin: 0 auto; }
.logo-mark--inv { height: 24px; margin: 0 auto; display: none; }

/* Topbar user pointer */
.cursor-pointer { cursor: pointer; }

/* Badge color variants */
.badge--natural-slab { background: #e8f2fb; color: #0364B1; }
.badge--natural-slab-sm { background: #e8f2fb; color: #0364B1; font-size: 0.75rem; }
.badge--engineered { background: #f3e8ff; color: #7c3aed; display: inline-flex; align-items: center; gap: 4px; }
.badge--tiles { background: #f0fdfa; color: #0d9488; display: inline-flex; align-items: center; gap: 4px; }
.badge--natural-slab-icon { background: #e8f2fb; color: #0364B1; display: inline-flex; align-items: center; gap: 4px; }
.badge--damaged { font-size: 0.75rem; background: #fef3c7; color: #92400e; border: 1px solid #fde68a; }
.badge--manual { font-size: 0.75rem; background: #f1f5f9; color: #475569; border: 1px solid #cbd5e1; }
.badge--received-bordered { font-size: 0.75rem; border: 1px solid #bbf7d0; }
.badge--reserved-bordered { font-size: 0.75rem; border: 1px solid #bfdbfe; }

/* Tag badges row */

/* Product type badges with icons in inventory list */

/* Text color utilities */
.text-color-success { color: var(--success); }

/* Grid 2-col with row-gap */

/* Field label tight */

/* Grid column span-2 */

/* Two-column detail layout (60/40) */

/* Column gap override */

/* Card spacing */
.card--mb16 { margin-bottom: 16px; }

/* ======================
   PHOTOS (stock-detail / inventory-detail)
   ====================== */
.photo-gallery {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* ======================
   PRICING CARD (stock-detail / inventory-detail)
   ====================== */

/* ======================
   RESERVATIONS (stock-detail / inventory-detail)
   ====================== */

/* ======================
   BATCH DETAIL PAGE
   ====================== */

/* Batch header card inner */
.batch-header-pad { padding: 16px 20px; }

.batch-header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.batch-header-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.batch-title {
  font-size: 1.25rem;
  margin: 0;
  font-weight: 700;
}

.batch-meta {
  font-size: 0.8125rem;
  color: #64748b;
  margin-top: 6px;
}

/* Stats row */
.stats-row-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-bottom: 16px;
}

.stat-card-compact {
  padding: 14px 18px;
  text-align: center;
}

.stat-card-label {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.stat-card-label--muted { color: #94a3b8; }
.stat-card-label--success { color: #16a34a; }
.stat-card-label--info { color: #2563eb; }

.stat-card-value {
  font-size: 1.5rem;
  font-weight: 700;
  margin-top: 2px;
}

.stat-card-value--primary { color: var(--text-primary); }
.stat-card-value--success { color: #16a34a; }
.stat-card-value--info { color: #2563eb; }

/* Tabs bar */

.batch-tab {
  padding: 10px 16px;
  border: none;
  background: none;
  font-size: 0.8125rem;
  cursor: pointer;
}

/* Sort controls (batch items tab) */
.batch-sort-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.batch-filter-group {
  display: flex;
  gap: 6px;
}

.batch-filter-btn {
  padding: 4px 10px;
  border: 1px solid #e2e8f0;
  border-radius: 5px;
  background: #fff;
  font-size: 0.75rem;
  color: var(--text-secondary);
  cursor: pointer;
}

.batch-filter-btn--active {
  padding: 4px 10px;
  border: 1px solid var(--primary);
  border-radius: 5px;
  background: #e8f2fb;
  font-size: 0.75rem;
  color: var(--primary);
  font-weight: 500;
  cursor: pointer;
}

.batch-sort-right {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.75rem;
  color: #94a3b8;
}

.batch-sort-select {
  border: 1px solid #e2e8f0;
  border-radius: 5px;
  padding: 3px 8px;
  font-size: 0.75rem;
  background: #fff;
}

/* Slab photo grid */
.slab-photo-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}

.slab-card-batch {
  border: 1px solid #e2e8f0;
  border-radius: 4px;
  overflow: hidden;
  cursor: pointer;
  transition: box-shadow 0.15s;
}

.slab-card-batch:hover {
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.slab-img {
  height: 140px;
  position: relative;
}

.slab-img__number {
  position: absolute;
  top: 6px;
  left: 6px;
  background: rgba(0,0,0,0.6);
  color: #fff;
  font-size: 0.75rem;
  padding: 2px 6px;
  border-radius: 3px;
  font-weight: 600;
}

.slab-img__dot {
  position: absolute;
  top: 6px;
  right: 6px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: 1.5px solid #fff;
}

.slab-img__dot--available { background: #22c55e; }
.slab-img__dot--reserved { background: #3b82f6; }

.slab-card-body { padding: 8px 10px; }

.slab-card-serial {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--primary);
}

.slab-card-dims {
  font-size: 0.75rem;
  color: #94a3b8;
}

.slab-card-location {
  font-size: 0.75rem;
  color: #b0b8c4;
  margin-top: 2px;
}

.slab-card-location--reserved {
  font-size: 0.75rem;
  color: #3b82f6;
  margin-top: 2px;
  font-weight: 500;
}

/* Info tab */
.info-tab-card { padding: 20px; }

.info-tab-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 20px;
}

.info-field-label {
  font-size: 0.75rem;
  font-weight: 600;
  color: #94a3b8;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 4px;
}

.info-field-value {
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--text-primary);
}

.info-section-divider {
  border-top: 1px solid #e2e8f0;
  padding-top: 16px;
  margin-bottom: 20px;
}

.info-section-divider--last {
  border-top: 1px solid #e2e8f0;
  padding-top: 16px;
}

.info-notes-textarea {
  font-size: 0.8125rem;
  resize: vertical;
}

.info-attr-label {
  font-size: 0.75rem;
  color: #94a3b8;
  margin-bottom: 2px;
}

.info-attr-value {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-primary);
}

.info-attr-card {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 4px;
  padding: 10px 14px;
}

.info-attr-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.info-attr-title {
  font-size: 0.75rem;
  font-weight: 600;
  color: #94a3b8;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 10px;
}

/* Adjustments table */
.adj-th {
  background: #e6eef9;
  color: #2a60ac;
  font-weight: 700;
}

.adj-th--center {
  background: #e6eef9;
  color: #2a60ac;
  font-weight: 700;
  text-align: center;
}

.adj-th--empty {
  background: #e6eef9;
  width: 36px;
}

.adj-cell {
  font-size: 0.8125rem;
  color: #64748b;
}

.adj-cell--nowrap {
  font-size: 0.8125rem;
  color: #64748b;
  white-space: nowrap;
}

.adj-cell--item {
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--primary);
}

.adj-cell--center {
  text-align: center;
  font-size: 0.8125rem;
  color: #64748b;
}

.adj-cell--center-bold {
  text-align: center;
  font-size: 0.8125rem;
  font-weight: 600;
}

.adj-cell--actions { text-align: center; }

.adj-delta--positive {
  text-align: center;
  font-weight: 600;
  color: #16a34a;
}

.adj-delta--negative {
  text-align: center;
  font-weight: 600;
  color: #dc2626;
}

.adj-delta--neutral {
  text-align: center;
  font-weight: 600;
  color: #64748b;
}

/* Slide-out edit panel */
.edit-panel {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: 480px;
  background: #fff;
  box-shadow: -4px 0 24px rgba(0,0,0,0.12);
  z-index: 1001;
}

.edit-panel__header {
  padding: 16px 20px;
  border-bottom: 1px solid #e2e8f0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  background: #fff;
  z-index: 1;
}

.edit-panel__title {
  font-size: 1rem;
  margin: 0;
  font-weight: 600;
}

.edit-panel__close {
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  color: #94a3b8;
}

.edit-panel__body { padding: 20px; }

.edit-panel__form-group { margin-bottom: 14px; }
.edit-panel__form-group--none { margin-bottom: 0; }

.edit-panel__label {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-secondary);
  display: block;
  margin-bottom: 4px;
}

.edit-panel__label-xs {
  font-size: 0.75rem;
  color: #94a3b8;
  display: block;
  margin-bottom: 3px;
}

.edit-panel__input { font-size: 0.875rem; }
.edit-panel__input-xs {
  font-size: 0.8125rem;
  padding: 6px 10px;
}

.edit-panel__textarea {
  font-size: 0.875rem;
  resize: vertical;
}

.edit-panel__section {
  border-top: 1px solid #e2e8f0;
  padding-top: 14px;
  margin-top: 6px;
}

.edit-panel__section-title {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 10px;
}

.edit-panel__attr-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.edit-panel__actions {
  display: flex;
  gap: 8px;
  justify-content: flex-end;
  margin-top: 24px;
  padding-top: 14px;
  border-top: 1px solid #e2e8f0;
}

.edit-panel__btn {
  font-size: 0.8125rem;
  padding: 8px 16px;
}

/* Panel overlay */
.edit-panel-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0,0,0,0.3);
  z-index: 1000;
}

/* ======================
   INVENTORY LIST PAGE
   ====================== */

/* Type filter buttons */

/* Search + filters row */

/* Table header (inventory list) */

/* Product rows */

/* Batch sub-rows */

/* Danger text in dropdowns */
.dropdown-item--danger { color: var(--danger); }

/* ======================
   STOCK-ITEM-DETAIL PAGE
   ====================== */

/* (embedded <style> block, moved here) */
.detail-grid { display: grid; grid-template-columns: 55% 45%; gap: 20px; }

/* Photo area */
.photo-main {
  width: 100%;
  height: 300px;
  border-radius: 4px;
  background: linear-gradient(135deg, #e8e0d4 0%, #d4c8b8 25%, #f5efe8 50%, #c8baa8 75%, #e0d4c4 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #94a3b8;
  font-size: 0.875rem;
  font-weight: 500;
  position: relative;
  overflow: hidden;
}
.photo-main::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(45deg, rgba(180,160,130,0.3) 0%, transparent 40%),
    linear-gradient(200deg, rgba(200,185,160,0.4) 0%, transparent 50%),
    linear-gradient(320deg, rgba(160,140,110,0.2) 10%, transparent 60%);
}
.photo-main span { position: relative; z-index: 1; background: rgba(255,255,255,0.7); padding: 4px 12px; border-radius: 4px; }

.thumb-strip { display: flex; gap: 8px; margin-top: 10px; }
.thumb {
  width: 64px;
  height: 64px;
  border-radius: 4px;
  background: #e2e8f0;
  border: 2px solid transparent;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  color: #94a3b8;
  transition: border-color 0.15s ease;
}
.thumb:hover { border-color: var(--primary); }
.thumb.active { border-color: var(--primary); box-shadow: 0 0 0 2px rgba(3,100,177,0.15); }

/* Upload button */
.upload-btn-row { margin-top: 12px; }

/* Right header area */
.item-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.item-header-left { flex: 1; }
.item-serial { font-size: 1.5rem; font-weight: 700; color: var(--text-primary); margin-bottom: 6px; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.item-product { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 4px; }
.item-product__link { font-weight: 600; font-size: 1rem; }
.item-batch { font-size: 0.8125rem; color: var(--text-secondary); }
.item-header-actions { display: flex; gap: 6px; flex-shrink: 0; }

/* Three-dot menu */
.dots-menu-btn {
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 4px;
  color: var(--text-secondary);
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.15s ease;
  padding: 0;
  line-height: 1;
}
.dots-menu-btn:hover { background: var(--border-light); color: var(--text-primary); }
.dots-menu-btn--close { font-size: 1.25rem; }

/* Info cards in right column */
.info-card {
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 4px;
  padding: 16px 20px;
  margin-bottom: 12px;
}
.info-card-title {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-secondary);
  margin-bottom: 12px;
}
.info-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 6px 0;
}
.info-row + .info-row { border-top: 1px solid var(--border-light); }
.info-row--top-border {
  border-top: 1px solid var(--border-light);
  padding-top: 10px;
}
.info-label { font-size: 0.8125rem; color: var(--text-secondary); }
.info-value { font-size: 0.875rem; font-weight: 600; color: var(--text-primary); }
.info-value.lg { font-size: 1.125rem; font-weight: 700; }

.dim-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-bottom: 10px; }
.dim-item { text-align: center; }
.dim-val { font-size: 1.125rem; font-weight: 700; color: var(--text-primary); }
.dim-label { font-size: 0.75rem; color: var(--text-secondary); margin-top: 2px; }

/* Location move button row */
.info-card__action-row { margin-top: 10px; }

/* Tabs full-width section */
.detail-tabs-section { margin-top: 20px; }
.detail-tabs-section .tabs { margin-bottom: 0; }
.detail-tabs-section--mt20 { margin-top: 20px; }
.detail-tabs-pad { padding: 0 20px; }
.tab-panel { padding: 0; }
.tab-panel__header {
  padding: 16px 20px 8px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* Table header override for this page */
.detail-tabs-section thead th {
  background: #e6eef9;
  color: #2a60ac;
  font-weight: 700;
}

/* Inline three-dot in table */
.table-dots {
  width: 28px;
  height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: none;
  border: none;
  border-radius: 4px;
  color: var(--text-muted);
  cursor: pointer;
  font-size: 0.875rem;
  transition: all 0.15s ease;
  padding: 0;
  line-height: 1;
}
.table-dots:hover { background: var(--border-light); color: var(--text-primary); }

/* Notes tab */
.notes-pad { padding: 20px; }
.notes-form { margin-bottom: 20px; }
.notes-form__textarea { min-height: 80px; resize: vertical; }
.notes-form__actions {
  margin-top: 8px;
  display: flex;
  justify-content: flex-end;
}
.notes-history {
  border-top: 1px solid var(--border-color);
  padding-top: 16px;
}

/* Note item */
.note-item {
  padding: 12px 0;
  border-bottom: 1px solid var(--border-light);
}
.note-item:last-child { border-bottom: none; }
.note-meta { font-size: 0.75rem; color: var(--text-secondary); margin-bottom: 4px; }
.note-text { font-size: 0.875rem; color: var(--text-primary); line-height: 1.5; }

/* Slide-out panel (stock-item-detail) */
.slide-panel-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.35);
  z-index: 100;
}
.slide-panel-overlay.open { display: block; }
.slide-panel-detail {
  position: fixed;
  top: 0;
  right: -420px;
  width: 420px;
  height: 100vh;
  background: var(--card-bg);
  box-shadow: -4px 0 24px rgba(0, 0, 0, 0.12);
  z-index: 101;
  display: flex;
  flex-direction: column;
  transition: right 0.25s ease;
}
.slide-panel-detail.open { right: 0; }
.slide-panel-header {
  padding: 20px 24px;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.slide-panel-header h3 { margin: 0; }
.slide-panel-body { flex: 1; padding: 24px; overflow-y: auto; }
.slide-panel-footer {
  padding: 16px 24px;
  border-top: 1px solid var(--border-color);
  display: flex;
  justify-content: flex-end;
  gap: 8px;
}

.slide-panel-detail .form-control--textarea {
  min-height: 100px;
}

/* Mountain icon for slab badge */
.mountain-icon { display: inline-flex; align-items: center; margin-right: 3px; vertical-align: middle; }

/* UOM note */
.uom-note {
  font-size: 0.75rem;
  color: var(--text-muted);
  font-style: italic;
  padding-top: 6px;
  border-top: 1px solid var(--border-light);
}

/* Table column width helpers */
.th--w40 { width: 40px; }

/* Background row variants for grouped table */

/* Slide panel textarea min-height */
.form-control--textarea { min-height: 100px; }

/* Font-weight reset for inline supplier text */
.font-normal { font-weight: 400; }

/* Display block for sub-line text */
.d-block { display: block; }
