/* ===============================
   GLOBAL RESET
   =============================== */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* ===============================
   BODY
   =============================== */
body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  background: #faf6f1;
  color: #3c2e27;
  padding: 24px; 
}

/* Center the container */
.vh-container {
  max-width: 900px;
  margin: 0 auto;
  background: #ffffff;
  padding: 36px 24px 24px;
  border-radius: 14px;
  box-shadow: 0 6px 18px rgba(0,0,0,0.08);
  border: 1px solid #e6d7ce;
}

/* ===============================
   HEADER TITLE
   =============================== */
.vh-header h1,
#vendorHeader {
  font-size: 26px;
  font-weight: 700;
  color: #4a352e;
  margin-bottom: 6px;
}

/* ===============================
   DATE RANGE + LAST UPDATED
   =============================== */
.vh-dates-block {
  text-align: left;
  margin: 10px 0 18px 0;
  line-height: 1.35;
}

.vh-dates-block p {
  font-size: 13px;
  color: #6b5e58;
  margin: 3px 0;
}

/* Vendor Note – prominent */
.vh-note {
  margin-top: 8px;
  padding: 10px 14px;
  font-size: 15px;          /* bigger */
  line-height: 1.5;
  font-weight: 600;
  background: #fff4ec;
  border-left: 4px solid #e68f6c;
  border-radius: 6px;
  color: #3c2e27;
}

/* ===============================
   SUMMARY BOXES
   =============================== */
.vh-totals-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-bottom: 20px;
}

.vh-total-box {
  background: #fff7f2;
  border: 1px solid #f0d7c8;
  padding: 16px;
  border-radius: 10px;
}

.vh-total-title {
  font-size: 12px;
  text-transform: uppercase;
  color: #8a6d60;
  margin-bottom: 4px;
}

.vh-total-value {
  font-size: 24px;
  font-weight: 700;
  color: #3c2e27;
}

/* ===============================
   INFO BLOCK (peach box)
   =============================== */
.vh-info-block {
  background: #fff7f2;
  border: 1px solid #e7d4c8;
  padding: 14px 18px;
  border-radius: 10px;
  margin-bottom: 22px;
}

.vh-infotext {
  font-size: 14px;
  line-height: 1.45;
  margin-bottom: 8px;
  color: #3a2f2a;
}

.vh-updated {
  font-size: 13px;
  color: #6b5e58;
}

/* ===============================
   BUTTON BAR
   =============================== */
.vh-top-buttons {
  display: flex;
  gap: 10px;
  margin: 20px 0;
  flex-wrap: wrap;
  justify-content: center;
}

.vh-top-buttons button {
  padding: 10px 18px;
  border: none;
  border-radius: 999px;
  background: #e68f6c;
  color: #fff;
  cursor: pointer;
  font-size: 14px;
  white-space: nowrap;
}

.vh-top-buttons button:hover {
  filter: brightness(1.07);
}

/* ===============================
   SEARCH BAR
   =============================== */
.vh-search-row {
  margin-bottom: 16px;
}

#searchInput {
  width: 100%;
  padding: 10px 12px;
  font-size: 14px;
  border: 1px solid #d5c4b8;
  background: #fffbf7;
  border-radius: 8px;
}

/* ===============================
   TABLE BASE STYLE
   =============================== */
.vh-table-wrapper {
  overflow-x: auto;
  margin-bottom: 18px;
}

.vh-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

.vh-table thead {
  background: #f5e6df;
}

/* ← ORIGINAL PADDING RESTORED HERE */
.vh-table th,
.vh-table td {
  padding: 8px 10px !important;
  border-bottom: 1px solid #eadcd2;
  white-space: nowrap;
  text-align: left;
}

.vh-table tbody tr:nth-child(even) {
  background: #fffaf5;
}

.vh-table-empty {
  text-align: center;
  padding: 20px 10px;
  color: #7a6a63;
}

/* ===============================
   RESPONSIVE (ORIGINAL)
   =============================== */
@media (max-width: 700px) {

  .vh-totals-row {
    grid-template-columns: 1fr;
  }

  .vh-table th,
  .vh-table td {
    font-size: 12px;
    padding: 6px;
  }

  .vh-top-buttons {
    flex-direction: column !important;
    align-items: stretch !important;
    width: 100% !important;
    gap: 8px !important;
    margin-top: 12px !important;
  }

  .vh-top-buttons button {
    width: 100% !important;
    max-width: 100% !important;
    font-size: 14px !important;
    padding: 10px 12px !important;
  }
}

/* ===============================
   TYPOGRAPHY OVERRIDE (Inter)
   =============================== */
body, button, input, table, th, td {
  font-family: 'Inter', sans-serif !important;
}

#lastUpdated {
  font-weight: bold;
}

body.vh-body {
  padding-top: 35px !important;
}

/* ============================================================
   NEW: DESCRIPTION TRUNCATION (kept)
   ============================================================ */
.vh-table td:nth-child(3) {
  max-width: 180px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ============================================================
   NEW: TRUNCATE STOCK TO 5 CHARACTERS (NO ELLIPSIS)
   ============================================================ */
.vh-table td:nth-child(2) {
  max-width: 55px;
  overflow: hidden;
  white-space: nowrap;
}



/* ============================================================
   NEW: MOBILE OPTIMIZATION (kept, adjusted)
   ============================================================ */
@media (max-width: 780px) {

  .vh-table,
  .vh-table th,
  .vh-table td {
    font-size: 12px !important;
    padding: 6px 6px !important;
  }

  .vh-table-wrapper {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .vh-table td:nth-child(3) {
    max-width: 140px;
  }

  .vh-total-box {
    padding: 10px !important;
  }

  .vh-total-value {
    font-size: 18px !important;
  }

  .vh-total-title {
    font-size: 11px !important;
  }

  .vh-totals-row {
    gap: 10px !important;
    flex-direction: column;
  }

  .vh-search-row input {
    width: 100%;
  }
}

