/* Bai Jamjuree — ขนาดมาตรฐาน (ฐาน 16px) */
:root {
  --font-family: 'Bai Jamjuree', sans-serif;
  --text-xs: 12px;
  --text-sm: 14px;
  --text-base: 16px;
  --text-lg: 18px;
  --text-xl: 24px;
}

html {
  font-size: 16px;
}

body {
  font-family: var(--font-family) !important;
  font-size: var(--text-base) !important;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

input,
select,
button,
textarea,
table,
th,
td,
label,
a {
  font-family: inherit;
}

h1 {
  font-size: var(--text-xl) !important;
}

.form-section h3,
#tab-koji .form-section > h3,
#tab-mill .form-section > h3,
#tab-pack .form-section > h3 {
  font-size: var(--text-lg) !important;
}

.tab-btn {
  font-size: var(--text-base) !important;
}

.form-group label {
  font-size: var(--text-sm) !important;
}

.form-group input,
.form-group select,
.form-group textarea {
  font-size: var(--text-base) !important;
}

.btn-save,
.menu-btn,
.menu-item {
  font-size: var(--text-base) !important;
}

thead th {
  font-size: var(--text-sm) !important;
}

tbody td {
  font-size: var(--text-base) !important;
}

.empty-state {
  font-size: var(--text-base) !important;
}

table input[type="number"],
.fg-col {
  font-size: var(--text-sm) !important;
}

.koji-block-title,
.mill-block-title,
.pack-block-title,
.pack-qc-title {
  font-size: var(--text-base) !important;
}

.koji-table,
.mill-table,
.pack-table,
.qc-table,
.qc-summary-table {
  font-size: var(--text-sm) !important;
}

.koji-table thead th,
.mill-table thead th,
.pack-table thead th,
.qc-table thead .qc-th-base,
.qc-table thead .qc-th-sub,
.qc-summary-table thead th,
.mill-table--ph thead th {
  font-size: var(--text-sm) !important;
}

.qc-table thead .qc-th-group {
  font-size: var(--text-base) !important;
}

.koji-input,
.koji-select,
.mill-input,
.mill-select,
.pack-input,
.qc-input {
  font-size: var(--text-base) !important;
}

.koji-table .koji-select--grade,
.mill-table--rice .mill-select--grade,
.mill-input--ph {
  font-size: var(--text-sm) !important;
}

.koji-media-btn,
.koji-upload-btn,
.mill-media-btn,
.qc-file-btn {
  font-size: var(--text-sm) !important;
}

.qc-note-btn,
.qc-note-input {
  font-size: var(--text-xs) !important;
}

.koji-checkbox-item {
  font-size: var(--text-base) !important;
}

.subtitle,
.back-btn,
.koji-media-label,
.mill-media-label,
.koji-preview-text,
.mill-preview-text,
.koji-warning,
.koji-progress-text,
.mill-hint-std,
.mill-hint-tank,
.pack-hint-std,
.pack-hint-produced {
  font-size: var(--text-sm) !important;
}

.qc-std-value,
.koji-std-value,
.mill-std-value,
.pack-std-value {
  font-size: var(--text-base) !important;
}

.wip-link {
  font-size: var(--text-sm) !important;
}

#stock-date {
  font-size: var(--text-base) !important;
}

.stock-table-wrap table {
  font-size: var(--text-sm) !important;
}
