
/* table.css */
/* =========================
   INVENTORY TABLE SCALING
========================= */

/* ======================================
   INVENTORY TABLE — ADAPTIVE DENSITY
====================================== */

.inventory-page .table {
  font-size: clamp(0.9rem, 0.4vw + 0.7rem, 1.05rem);
}

.inventory-page .table th,
.inventory-page .table td {
  padding: clamp(0.35rem, 0.6vw, 0.65rem)
           clamp(0.5rem, 0.8vw, 0.9rem);
  line-height: 1.25;
}
@media (pointer: coarse) {
  .inventory-page .table th,
  .inventory-page .table td {
    padding: 0.7rem 0.9rem;
    font-size: 1rem;
  }
}

/* Medium screens */
@media (min-width: 1400px) {
  .inventory-page .table {
    font-size: 1.05rem;
  }

  .inventory-page .table th,
  .inventory-page .table td {
    padding: 1rem 1rem;
  }
}
.inventory-page .table tbody td {
  font-size: 1rem;
}

@media (min-width: 1400px) {
  .inventory-page .table tbody td {
    font-size: 1.1rem;
  }
}

@media (min-width: 1800px) {
  .inventory-page .table tbody td {
    font-size: 1.2rem;
  }
}

/* Large desktop / POS screens */
@media (min-width: 1800px) {
  .inventory-page .table {
    font-size: 1.15rem;
  }

  .inventory-page .table th,
  .inventory-page .table td {
    padding: 1.2rem 1.25rem;
  }
}
.inventory-page .table tbody td {
  font-size: clamp(0.95rem, 0.4vw + 0.8rem, 1.25rem);
}

/* Ultra-wide displays */
@media (min-width: 2200px) {
  .inventory-page .table {
    font-size: 1.25rem;
  }
}
/* Scroll container */
.table-container {
  max-height: none;
  overflow-y: auto;
  overflow-x: auto;
  background-color: #fff;   /* 👈 THIS IS THE FIX */
  border-radius: 4px;
}
/* Force white table background */
.table {
  background-color: #fff !important;
}

.table-container {
  width: 100%;
  display: block;
}

.table thead th {
  position: sticky;
  top: 0;
  background-color: #212529 !important; /* Bootstrap dark */
  color: #fff !important;
  z-index: 20;
}
/* Force body cells to stay white background */
.table tbody tr {
  background-color: #fff !important;
}

.table tbody td {
  background-color: #fff !important;
  color: #000 !important;
  font-size: 1.2rem;
}
/* Product Details - Variant Section */
#variant-table,
#variant-table .table,
#variant-table .card-body {
  background-color: #fff !important;
  color: #000 !important;
}
.variant-section .card-body {
  padding: 1rem 1.5rem;
}


/* ==========================================
   Metrics Breakdown Page — White Headings
   ========================================== */

.metrics-breakdown-page h1,
.metrics-breakdown-page h2,
.metrics-breakdown-page h3,
.metrics-breakdown-page h4,
.metrics-breakdown-page h5,
.metrics-breakdown-page h6 {
  color: #ffffff !important;
  border-bottom: none !important;  /* optional */
}


/* ==========================================
   Breakdown Page — White Headers
   ========================================== */


.breakdown-page h1{
  color: #000 !important;
  text-shadow: none !important;
  border-bottom: none !important;
}

.breakdown-page h2,
.breakdown-page h3,
.breakdown-page h4,
.breakdown-page h5,
.breakdown-page h6 {
  color: var(--color-text-on-dark) !important;
  text-shadow: none !important;
  border-bottom: none !important;
}
.breakdown-page .breakdown-card .card-header {
  transition: box-shadow 0.2s ease;
}

.breakdown-page .breakdown-card .card-header.is-stuck {
  box-shadow: 0 4px 12px rgba(0,0,0,0.25);
}

.breakdown-page .table thead th {
  position: sticky;
  background-color: #212529 !important;
  color: #fff !important;
  text-shadow: none !important;
}

.breakdown-page .table thead th a {
  color: inherit !important;
  text-decoration: none;
}

.breakdown-page .table thead th a:hover {
  text-decoration: underline;
}