/* ============================================
   Stock Page — Extracted Inline Styles
   ============================================ */

/* === Sidebar Logo Overrides === */
.logo-full--stock { height: 38px; margin: 0 auto; }
.logo-mark--stock { height: 28px; margin: 0 auto; display: none; }

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

/* === Page Header === */
.page-header-actions-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

/* View Toggle */
.view-toggle {
  display: flex;
  border: 1px solid #cbd5e1;
  border-radius: 7px;
  overflow: hidden;
}
.view-toggle__btn {
  padding: 5px 10px;
  border: none;
  font-size: 0.6875rem;
  cursor: pointer;
}
.view-toggle__btn--active {
  background: var(--primary);
  color: #fff;
  font-weight: 600;
}
.view-toggle__btn--inactive {
  background: #fff;
  color: #94a3b8;
}

/* Location Select */
.location-select {
  width: 130px;
  padding: 6px 30px 6px 10px;
  font-size: 0.75rem;
  border-color: #cbd5e1;
}

/* === Filter Bar === */
.filter-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
  flex-wrap: wrap;
  gap: 8px;
}
.filter-bar__group {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

/* Type Filter Buttons */
.type-filter-btn {
  padding: 6px 12px;
  border: 1.5px solid #cbd5e1;
  border-radius: 7px;
  background: #fff;
  display: flex;
  align-items: center;
  gap: 5px;
  cursor: pointer;
  transition: all 0.15s;
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--text-secondary);
}
.type-filter-btn--all {
  padding: 6px 14px;
  border: 1.5px solid var(--primary);
  border-radius: 7px;
  background: #d0e4f7;
  display: flex;
  align-items: center;
  gap: 5px;
  cursor: pointer;
  transition: all 0.15s;
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--primary);
}

/* Status Filter Buttons */
.status-filter-btn {
  padding: 5px 12px;
  border: 1.5px solid #cbd5e1;
  border-radius: 7px;
  background: #fff;
  display: flex;
  align-items: center;
  gap: 4px;
  cursor: pointer;
  transition: all 0.15s;
  font-size: 0.6875rem;
  font-weight: 500;
  color: var(--text-secondary);
}
.status-filter-btn--active {
  padding: 5px 12px;
  border: 1.5px solid #16a34a;
  border-radius: 7px;
  background: #dcfce7;
  display: flex;
  align-items: center;
  gap: 4px;
  cursor: pointer;
  transition: all 0.15s;
  font-size: 0.6875rem;
  font-weight: 500;
  color: #16a34a;
}

/* Status Dot Indicator */
.status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
}
.status-dot--available { background: #16a34a; }
.status-dot--transit { background: #d97706; }
.status-dot--reserved { background: #2563eb; }

/* === Visual View Layout === */
.visual-view {
  display: grid;
  grid-template-columns: 30% 70%;
  gap: 0;
}

/* === Left Panel: Product List === */
.product-panel {
  background: #fff;
  border-radius: 7px 0 0 7px;
  border-right: 1px solid #e2e8f0;
}
.product-panel__header {
  padding: 12px 16px;
  border-bottom: 1px solid #e2e8f0;
  display: flex;
  align-items: center;
  gap: 8px;
  background: #ececed;
}

/* Filter bar attached to visual view */
.stock-filter-bar {
  border-radius: 7px 7px 0 0;
  margin-bottom: 0;
  border: 1px solid var(--border-color);
  border-bottom: none;
}
.add-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  background: var(--primary);
  border-radius: 5px;
  text-decoration: none;
  flex-shrink: 0;
}
.product-panel__title {
  font-size: 0.875rem;
  font-weight: 700;
  color: #2a60ac;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.product-panel__count {
  font-weight: 400;
  color: #94a3b8;
}

/* Product Search */
.product-search {
  padding: 8px 12px;
  border-bottom: 1px solid #f1f5f9;
}
.product-search__wrapper { position: relative; }
.product-search__input {
  padding: 7px 12px 7px 30px;
  font-size: 0.75rem;
  width: 100%;
  border-color: #e2e8f0;
  background: #f8fafc;
}
.product-search__icon {
  position: absolute;
  left: 10px;
  top: 50%;
  transform: translateY(-50%);
}

/* Product List Items */
.product-row {
  padding: 10px 12px;
  border-left: 3px solid transparent;
  cursor: pointer;
  border-bottom: 1.5px solid #cbd5e1;
}
.product-row--selected {
  padding: 10px 12px;
  border-left: 3px solid #0364B1;
  background: #d0e4f7;
  cursor: pointer;
}
.product-row__inner {
  display: flex;
  align-items: center;
  gap: 10px;
}
.product-row__thumb {
  width: 40px;
  height: 40px;
  border-radius: 5px;
  flex-shrink: 0;
}
.product-row__thumb--icon {
  width: 40px;
  height: 40px;
  border-radius: 5px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.product-row__info {
  flex: 1;
  min-width: 0;
}
.product-row__name {
  font-size: 0.8125rem;
  line-height: 1.2;
}
.product-row__category {
  font-size: 0.6875rem;
  color: #94a3b8;
}
.product-row__qty {
  flex-shrink: 0;
  text-align: right;
}
.product-row__qty-value {
  font-size: 0.8125rem;
  font-weight: 700;
  color: #0364B1;
  line-height: 1.1;
}
.product-row__qty-label {
  font-size: 0.6875rem;
  color: #0364B1;
  opacity: 0.7;
  line-height: 1;
}

/* === Right Panel: Product Detail === */
.detail-panel {
  background: #fff;
  border-radius: 0 7px 7px 0;
}
.detail-header {
  padding: 14px 20px;
  border-bottom: 1px solid #e2e8f0;
}
.detail-header__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.detail-header__totals {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  flex-shrink: 0;
}
.detail-header__totals-label {
  font-size: 0.6875rem;
  font-weight: 600;
  color: #94a3b8;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.detail-header__totals-kpis {
  display: flex;
  gap: 6px;
}
.detail-header__title-row {
  display: flex;
  align-items: center;
  gap: 8px;
}
.detail-header__title {
  font-size: 1.125rem;
  margin: 0;
  font-weight: 700;
}
.detail-header__badge {
  background: #e8f2fb;
  color: #0364B1;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.detail-header__desc {
  margin-top: 2px;
}

/* Availability Bar */
.availability-bar {
  margin-top: 10px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.availability-bar__track {
  flex: 1;
  height: 8px;
  background: #e2e8f0;
  border-radius: 4px;
  overflow: hidden;
  display: flex;
}
.availability-bar__fill--available {
  width: 91%;
  background: #22c55e;
  border-radius: 4px 0 0 4px;
}
.availability-bar__fill--reserved {
  width: 9%;
  background: #3b82f6;
}
.availability-bar__legend {
  display: flex;
  gap: 12px;
  font-size: 0.6875rem;
  flex-shrink: 0;
}
.availability-bar__legend-item {
  display: flex;
  align-items: center;
  gap: 3px;
}
.availability-bar__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}
.availability-bar__dot--available { background: #22c55e; }
.availability-bar__dot--reserved { background: #3b82f6; }
.availability-bar__total {
  font-weight: 600;
  color: var(--text-primary);
}

/* === Batch Strip === */
.batch-strip {
  padding: 10px 20px;
  border-bottom: 1px solid #d0d5dd;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  background: #e2e7ed;
}
.batch-strip__label {
  font-size: 0.6875rem;
  font-weight: 600;
  color: #94a3b8;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  flex-shrink: 0;
}
.batch-chip {
  padding: 6px 14px;
  border: 1px solid #d0d5dd;
  border-radius: 7px;
  background: #f8fafc;
  font-size: 0.6875rem;
  color: var(--text-secondary);
  cursor: pointer;
  text-align: left;
}
.batch-chip--active {
  padding: 6px 14px;
  border: 1.5px solid var(--primary);
  border-radius: 7px;
  background: #d0e4f7;
  font-size: 0.6875rem;
  font-weight: 600;
  color: var(--primary);
  cursor: pointer;
  text-align: left;
}
.batch-chip__main {
  white-space: nowrap;
}
.batch-chip__meta {
  font-size: 0.75rem;
  font-weight: 400;
  opacity: 0.75;
  white-space: nowrap;
  margin-top: 1px;
}
.batch-chip__supplier {
  font-size: 0.6875rem;
  font-weight: 400;
  opacity: 0.7;
  white-space: nowrap;
  font-style: italic;
}
.batch-strip__totals {
  margin-left: auto;
  display: flex;
  gap: 6px;
  flex-shrink: 0;
}

/* === Tabs === */
.detail-tabs {
  padding: 0 20px;
  border-bottom: 1px solid #e2e8f0;
  display: flex;
  gap: 0;
}
.detail-tab {
  padding: 10px 16px;
  border: none;
  background: none;
  font-size: 0.8125rem;
  color: #94a3b8;
  border-bottom: 2px solid transparent;
  cursor: pointer;
}
.detail-tab--active {
  padding: 10px 16px;
  border: none;
  background: none;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--primary);
  border-bottom: 2px solid var(--primary);
  cursor: pointer;
}

/* === Info Tab Content === */
.info-tab {
  padding: 16px 20px 28px;
  background: #ebebeb;
}

/* Lot Info Card */
.lot-card {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 7px;
  padding: 16px;
  margin-bottom: 14px;
}
.lot-card__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 4px;
}
.lot-card__header-kpis {
  display: flex;
  gap: 6px;
  flex-shrink: 0;
}
.lot-card__title {
  font-size: 1.125rem;
  font-weight: 800;
  color: #0364B1;
  margin-bottom: 2px;
}
.lot-card__meta {
  margin-bottom: 0;
}
.lot-card__desc {
  font-size: 0.8125rem;
  color: #64748b;
  margin: 0 0 12px 0;
  line-height: 1.5;
}
.lot-card__images {
  display: flex;
  gap: 8px;
  margin-bottom: 14px;
}
.lot-card__image {
  width: 120px;
  height: 80px;
  border-radius: 5px;
  flex-shrink: 0;
}
.lot-card__kpis {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

/* KPI Section */
.kpi-section__title {
  font-size: 0.6875rem;
  font-weight: 600;
  color: #94a3b8;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 4px;
}
.kpi-section__cards {
  display: flex;
  gap: 6px;
}
.mini-kpi {
  border-radius: 6px;
  padding: 5px 10px;
  text-align: center;
}
.mini-kpi--available {
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
}
.mini-kpi--reserved {
  background: #eff6ff;
  border: 1px solid #bfdbfe;
}
.mini-kpi--total {
  background: #fff;
  border: 1px solid #e2e8f0;
}
.mini-kpi__value {
  font-size: 0.875rem;
  font-weight: 700;
}
.mini-kpi__value--available { color: #166534; }
.mini-kpi__value--reserved { color: #1e40af; }
.mini-kpi__value--total { color: #0f172a; }
.mini-kpi__label {
  font-size: 0.6875rem;
  font-weight: 500;
}
.mini-kpi__label--available { color: #16a34a; }
.mini-kpi__label--reserved { color: #2563eb; }
.mini-kpi__label--total { color: #64748b; }

/* KPI Divider */
.kpi-divider {
  width: 1px;
  background: #e2e8f0;
  align-self: stretch;
}

/* === Detail Grid (Batch details + Pricing) === */
.detail-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

/* Batch Details Card */
.batch-details {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 7px;
  padding: 14px 16px;
  font-size: 0.8125rem;
}
.batch-details__group {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 5px 12px;
  margin-bottom: 12px;
}
.batch-details__separator {
  border-top: 1px solid #e2e8f0;
  padding-top: 10px;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 5px 12px;
}
.batch-details__label {
  color: #94a3b8;
  text-align: right;
  white-space: nowrap;
}
.batch-details__value {
  font-weight: 600;
  color: #0f172a;
}

/* Pricing Table */
.pricing-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.8125rem;
  background: #fff;
  border-radius: 6px;
  overflow: hidden;
}
.pricing-table thead tr {
  border-bottom: 1px solid #e2e8f0;
}
.pricing-table th {
  text-align: left;
  font-weight: 500;
  color: #94a3b8;
  padding: 10px 12px;
  font-size: 0.75rem;
}
.pricing-table td {
  padding: 8px 12px;
}
.pricing-table tbody tr {
  border-bottom: 1px solid #f1f5f9;
}
.pricing-table tbody tr:last-child {
  border-bottom: none;
}
.pricing-table__name {
  font-weight: 500;
  color: #0f172a;
}
.pricing-table__tag {
  font-size: 0.6875rem;
  padding: 2px 6px;
  border-radius: 4px;
}
.pricing-table__tag--active {
  background: #dcfce7;
  color: #166534;
}
.pricing-table__tag--promo {
  background: #fef3c7;
  color: #92400e;
}
.pricing-table__amount-cell {
  padding: 8px 12px;
  vertical-align: top;
}
.pricing-table__price {
  font-weight: 600;
  color: #0f172a;
}
.pricing-table__per-unit {
  font-size: 0.6875rem;
  font-weight: 400;
  color: #94a3b8;
}
.pricing-table__sqft {
  font-size: 0.6875rem;
  color: #64748b;
}
.pricing-table__sqft-label {
  color: #94a3b8;
}

/* === Items Tab Content === */
.items-tab {
  padding: 16px 20px;
}

/* Sort Controls */
.sort-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}
.sort-controls__filters {
  display: flex;
  gap: 6px;
}
.sort-controls__btn {
  padding: 4px 10px;
  border: 1px solid #e2e8f0;
  border-radius: 5px;
  background: #fff;
  font-size: 0.6875rem;
  color: var(--text-secondary);
  cursor: pointer;
}
.sort-controls__btn--available {
  border: 2px solid #22c55e;
  color: #16a34a;
  font-weight: 600;
}
.sort-controls__btn--transit {
  border: 2px solid #3b82f6;
  color: #2563eb;
  font-weight: 600;
}
.sort-controls__btn--reserved {
  border: 2px solid #f59e0b;
  color: #d97706;
  font-weight: 600;
}
.sort-controls__btn--active {
  padding: 4px 10px;
  border: 1px solid var(--primary);
  border-radius: 5px;
  background: #e8f2fb;
  font-size: 0.6875rem;
  color: var(--primary);
  font-weight: 500;
  cursor: pointer;
}
.sort-controls__right {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.6875rem;
  color: #94a3b8;
}
.sort-controls__select {
  border: 1px solid #e2e8f0;
  border-radius: 5px;
  padding: 3px 8px;
  font-size: 0.6875rem;
  background: #fff;
}

/* Slab Grid */
.slab-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}
.slab-card {
  border: 1px solid #e2e8f0;
  border-radius: 7px;
  overflow: hidden;
  cursor: pointer;
  transition: box-shadow 0.15s;
}
.slab-card__image {
  height: 140px;
  position: relative;
}
/* --- Slab card body with left status bar --- */
.slab-card__body {
  padding: 8px 10px;
  border-left: 4px solid transparent;
}
.slab-card__body--available { border-left-color: #22c55e; }
.slab-card__body--reserved  { border-left-color: #f59e0b; }
.slab-card__body--transit   { border-left-color: #3b82f6; }

.slab-card__top-row {
  display: flex;
  align-items: baseline;
  gap: 6px;
}
.slab-card__number {
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--primary);
}
.slab-card__info-icon {
  margin-left: auto;
  flex-shrink: 0;
}
.slab-card__dims {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--text-primary);
}
.slab-card__area {
  font-size: 0.75rem;
  font-weight: 500;
  color: #64748b;
}
.slab-card__bottom-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 3px;
}
.slab-card__location {
  font-size: 0.6875rem;
  color: #64748b;
}
.slab-card__menu {
  background: none;
  border: none;
  cursor: pointer;
  padding: 2px;
  color: #94a3b8;
  border-radius: 4px;
  display: flex;
  align-items: center;
}
.slab-card__menu:hover {
  color: var(--primary);
  background: #f1f5f9;
}

/* === Remnants: bigger dims === */
.slab-card__dims-lg {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-primary);
}
.slab-card__sqft {
  font-size: 0.75rem;
  color: #64748b;
  font-weight: 500;
}

/* === Batch Pricing Tab === */
.batch-pricing {
  padding: 16px 20px;
}
.batch-pricing__toggle {
  margin-bottom: 20px;
}
.batch-pricing__toggle-label {
  font-size: 0.8125rem;
  font-weight: 700;
  color: #2a60ac;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.batch-pricing__options {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 10px;
}
.batch-pricing__option {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px 14px;
  border: 1.5px solid #e2e8f0;
  border-radius: 8px;
  background: #fff;
  cursor: pointer;
  transition: border-color 0.15s;
}
.batch-pricing__option--active {
  border-color: var(--primary);
  background: #f0f7ff;
}
.batch-pricing__option input[type="radio"] {
  margin-top: 2px;
  accent-color: var(--primary);
}
.batch-pricing__option-title {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--text-primary);
}
.batch-pricing__option-desc {
  font-size: 0.75rem;
  color: #64748b;
  margin-top: 2px;
}
.batch-pricing__summary {
  margin-top: 16px;
}
.batch-pricing__summary-title {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 10px;
}
.batch-pricing__table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.8125rem;
}
.batch-pricing__table th {
  padding: 8px 12px;
  font-size: 0.75rem;
  font-weight: 600;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  border-bottom: 1px solid #e2e8f0;
  text-align: left;
}
.batch-pricing__table td {
  padding: 10px 12px;
  border-bottom: 1px solid #f1f5f9;
}
.batch-pricing__note {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 10px;
  padding: 8px 0;
}

/* === List View === */
.list-th {
  background: #ececed;
  color: #2a60ac;
  font-weight: 700;
}
.list-th__product-inner {
  display: flex;
  align-items: center;
  gap: 8px;
}
.list-th__count {
  font-weight: 400;
  color: #94a3b8;
}
.list-th--actions {
  background: #ececed;
  width: 120px;
  text-align: right;
}
.list-th__actions-inner {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 4px;
}
.list-mode-btn {
  padding: 3px 8px;
  border: none;
  border-radius: 5px;
  font-size: 0.6875rem;
  cursor: pointer;
}
.list-mode-btn--active {
  background: #d0e4f7;
  color: var(--primary);
  font-weight: 600;
}
.list-mode-btn--inactive {
  background: transparent;
  color: #94a3b8;
  font-weight: 500;
}

/* List Table Cell Styles */
.list-cell-name {
  font-size: 0.8125rem;
}
.list-cell-sub {
  font-size: 0.6875rem;
  color: #94a3b8;
}
.list-cell-serial {
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--primary);
}
.list-cell-serial--empty {
  font-size: 0.8125rem;
  color: #94a3b8;
}
.list-cell-dims {
  font-size: 0.8125rem;
  color: #64748b;
}
.list-cell-qty {
  text-align: center;
  font-weight: 600;
}
.list-cell-location {
  font-size: 0.8125rem;
  color: #64748b;
}
.list-cell-status {
  text-align: center;
}
.list-cell-actions {
  text-align: center;
}
.list-badge-sm {
  font-size: 0.6875rem;
  border: 1px solid #bbf7d0;
}
.list-badge-sm--info {
  font-size: 0.6875rem;
  border: 1px solid #bfdbfe;
}

/* === Slide-Out Panels === */
.slide-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;
  overflow-y: auto;
}
.slide-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;
}
.slide-panel__title {
  font-size: 1rem;
  margin: 0;
  font-weight: 600;
}
.slide-panel__close {
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  color: #94a3b8;
}
.slide-panel__body {
  padding: 20px;
}

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

/* === Form Helpers (panel-specific) === */
.form-group--sm { margin-bottom: 14px; }
.form-group--none { margin-bottom: 0; }
.form-label--panel {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-secondary);
  display: block;
  margin-bottom: 4px;
}
.form-label--xs {
  font-size: 0.6875rem;
  color: #94a3b8;
  display: block;
  margin-bottom: 3px;
}
.form-label--xxs {
  font-size: 0.6875rem;
  color: #94a3b8;
  display: block;
  margin-bottom: 2px;
}
.form-control--sm { font-size: 0.875rem; }
.form-control--xs {
  font-size: 0.8125rem;
  padding: 6px 10px;
}
.form-control--seq {
  font-size: 0.8125rem;
  padding: 5px 6px;
  text-align: center;
}
.form-control--seq-prefix { width: 60px; }
.form-control--seq-start { width: 60px; }
.form-control--seq-count { width: 55px; }
.form-control--date-sm { width: 180px; }
.form-control--qty { width: 120px; }
.form-textarea--sm {
  font-size: 0.8125rem;
  resize: vertical;
}
.form-textarea--min60 {
  font-size: 0.8125rem;
  resize: vertical;
  min-height: 60px;
}
.form-hint--muted {
  font-weight: 400;
  color: #94a3b8;
}

/* Panel Sections */
.panel-section {
  border-top: 1px solid #e2e8f0;
  padding-top: 14px;
  margin-top: 6px;
}
.panel-section--lg {
  border-top: 1px solid #e2e8f0;
  padding-top: 14px;
  margin-top: 14px;
}
.panel-section--xl {
  border-top: 1px solid #e2e8f0;
  padding-top: 14px;
  margin-top: 18px;
}
.panel-section__title {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 8px;
}
.panel-section__title--uppercase {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.panel-section__title--locked {
  font-size: 0.75rem;
  font-weight: 600;
  color: #94a3b8;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 4px;
}
.panel-section__subtitle {
  font-size: 0.8125rem;
  color: var(--text-secondary);
  margin-bottom: 12px;
}
.panel-section__hint {
  font-size: 0.8125rem;
  color: var(--text-secondary);
  margin-bottom: 8px;
}

/* Grid Layouts */
.grid-2col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.grid-3col {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 10px;
}
.grid-2col--mb { margin-bottom: 16px; }
.grid-3col--mb { margin-bottom: 14px; }
.grid-2col--lg-gap {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 10px;
}

/* Panel Flex Row */
.panel-flex-row {
  display: flex;
  gap: 6px;
}
.panel-flex-row--between {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}
.panel-flex-row--qty {
  display: flex;
  align-items: center;
  gap: 8px;
}
.panel-flex-row__label {
  font-size: 0.8125rem;
  font-weight: 500;
}
.panel-flex-row__unit {
  font-size: 0.8125rem;
  color: var(--text-secondary);
  font-weight: 500;
}

/* Toggle Switch */
.toggle-switch {
  width: 40px;
  height: 22px;
  background: var(--primary);
  border-radius: 11px;
  position: relative;
  cursor: pointer;
}
.toggle-switch__knob {
  width: 18px;
  height: 18px;
  background: #fff;
  border-radius: 50%;
  position: absolute;
  top: 2px;
  right: 2px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.15);
}

/* Locked Fields */
.locked-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  opacity: 0.5;
}
.locked-field__label {
  font-size: 0.6875rem;
  color: #94a3b8;
  margin-bottom: 2px;
}
.locked-field__value {
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--text-primary);
}

/* Panel Actions */
.panel-actions {
  display: flex;
  gap: 8px;
  justify-content: flex-end;
  margin-top: 24px;
  padding-top: 14px;
  border-top: 1px solid #e2e8f0;
}
.panel-actions--split {
  display: flex;
  gap: 8px;
  justify-content: space-between;
  margin-top: 24px;
  padding-top: 14px;
  border-top: 1px solid #e2e8f0;
}
.panel-actions__group {
  display: flex;
  gap: 8px;
}
.btn--panel {
  font-size: 0.8125rem;
  padding: 8px 16px;
}

/* Read-Only Field */
.readonly-value {
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--text-primary);
}
.readonly-value--primary {
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--primary);
}

/* Batch Info Grid */
.batch-info-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  font-size: 0.8125rem;
}
.batch-info-grid__label {
  color: #94a3b8;
}

/* Slab Photo in Panel */
.slab-photo {
  height: 200px;
  border-radius: 7px;
  margin-bottom: 16px;
  position: relative;
}
.slab-photo__badge {
  position: absolute;
  top: 10px;
  right: 10px;
  border: 1px solid #bbf7d0;
}

/* Upload Zone */
.upload-zone {
  border: 2px dashed #cbd5e1;
  border-radius: 7px;
  padding: 24px;
  text-align: center;
  color: #94a3b8;
  cursor: pointer;
}
.upload-zone__icon {
  margin: 0 auto 8px;
}
.upload-zone__text {
  font-size: 0.8125rem;
}
.upload-zone__hint {
  font-size: 0.6875rem;
  margin-top: 4px;
}
.upload-zone__footnote {
  font-size: 0.6875rem;
  color: #94a3b8;
  margin-top: 6px;
}

/* Photo Preview */
.photo-preview {
  display: flex;
  gap: 8px;
  margin-top: 8px;
  flex-wrap: wrap;
}

/* Sequence Row */
.seq-row {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 8px;
  padding: 10px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 7px;
}
.seq-row__field { flex-shrink: 0; }
.seq-row__preview {
  flex: 1;
  min-width: 0;
}
.seq-preview {
  font-size: 0.75rem;
  color: var(--primary);
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.seq-row__remove {
  width: 24px;
  height: 24px;
  border: 1px solid #e2e8f0;
  border-radius: 5px;
  background: #fff;
  color: #94a3b8;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 0.75rem;
  flex-shrink: 0;
  margin-top: 12px;
}

/* Sequence Total */
.seq-total {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--text-primary);
  padding: 8px 12px;
  background: #e8f2fb;
  border-radius: 7px;
  text-align: center;
}

/* New Batch Inline */
.new-batch-inline {
  margin-bottom: 14px;
  padding: 12px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 7px;
}
.notes-section { margin-top: 14px; }

/* List Table Header Widths */
.list-th--serial { width: 100px; }
.list-th--dims { width: 120px; }
.list-th--qty { width: 80px; text-align: center; }
.list-th--location { width: 110px; }
.list-th--status { width: 90px; text-align: center; }

/* Flex-fill for inputs/selects inside flex rows */
.flex-fill { flex: 1; }

/* Auto-generate button (addStockItem panel) */
.btn--auto-generate {
  font-size: 0.75rem;
  padding: 6px 12px;
  white-space: nowrap;
}

/* Add Sequence button */
.btn--add-seq {
  font-size: 0.75rem;
  margin-bottom: 8px;
}

/* Textarea resize vertical */
.resize-vertical { resize: vertical; }

/* Inline hint reset for text-transform override */
.form-hint--inline {
  text-transform: none;
  letter-spacing: 0;
}
