/* มาตรฐาน UI ร่วมทุกโมดูล — เพิ่มบนของเดิม ไม่แทนที่ธีม/ฟอร์ม */
.vnc-digit-group, .shop-digit-group {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 3px;
  min-height: 38px;
}
.vnc-digit-sep, .shop-digit-sep {
  color: #94a3b8;
  font-weight: 800;
  font-size: 0.85rem;
  padding: 0 1px;
}
.vnc-digit-box, .shop-digit-box {
  width: 1.7rem;
  height: 34px;
  text-align: center;
  padding: 0;
  font-size: 0.88rem;
  font-weight: 700;
  font-family: inherit;
  border: 1.5px solid #e2e8f0;
  border-radius: 6px;
  background: #fff;
  color: #0f172a;
}
/* ชนะ .si-fg input / input[type=text] ที่ใส่ padding กว้าง — มิฉะนั้นกล่อง 1.7rem เหลือพื้นที่พิมพ์ 0px */
input.vnc-digit-box,
input.shop-digit-box {
  width: 1.7rem !important;
  min-width: 1.7rem !important;
  max-width: 1.7rem !important;
  height: 34px !important;
  padding: 0 !important;
  box-sizing: border-box !important;
}
.vnc-digit-box:focus, .shop-digit-box:focus {
  outline: none;
  border-color: #0d9488;
  box-shadow: 0 0 0 3px rgba(13, 148, 136, 0.14);
}
.vnc-digit-group.is-readonly .vnc-digit-box,
.shop-digit-group.is-readonly .shop-digit-box {
  background: #edf2f7;
  color: #718096;
  cursor: not-allowed;
}
.vnc-digit-group.is-incomplete .vnc-digit-box,
.vnc-digit-group.is-error .vnc-digit-box,
.shop-digit-group.is-incomplete .shop-digit-box,
.shop-digit-group.is-error .shop-digit-box {
  border-color: #ef4444;
  background: #fef2f2;
}
.vnc-digit-source, .shop-digit-source {
  position: absolute !important;
  opacity: 0 !important;
  width: 1px !important;
  height: 1px !important;
  pointer-events: none !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
}

.vnc-date-range, .shop-date-range {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
}
.vnc-date-hyphen, .shop-date-hyphen { font-weight: 800; color: #64748b; }

.mmain-wrap table thead th,
.table-wrapper thead th,
.premium-table thead th {
  position: sticky;
  top: 0;
  z-index: 2;
}

@media (max-width: 640px) {
  .vnc-digit-box, .shop-digit-box { width: 1.45rem; height: 32px; font-size: 0.8rem; }
  input.vnc-digit-box,
  input.shop-digit-box {
    width: 1.45rem !important;
    min-width: 1.45rem !important;
    max-width: 1.45rem !important;
    height: 32px !important;
  }
}
