/* Reference: baogia.minhlongonline.com/quote, v0-editor.css (2026-10-23).
   One screen type scale shared by CRM, POS, customer and supplier portals. */
@font-face { font-family: 'Be Vietnam Pro'; font-style: normal; font-weight: 400; font-display: swap; src: url('fonts/BeVietnamPro-400.ttf') format('truetype'); }
@font-face { font-family: 'Be Vietnam Pro'; font-style: normal; font-weight: 500; font-display: swap; src: url('fonts/BeVietnamPro-500.ttf') format('truetype'); }
@font-face { font-family: 'Be Vietnam Pro'; font-style: normal; font-weight: 600; font-display: swap; src: url('fonts/BeVietnamPro-600.ttf') format('truetype'); }
@font-face { font-family: 'Be Vietnam Pro'; font-style: normal; font-weight: 700; font-display: swap; src: url('fonts/BeVietnamPro-700.ttf') format('truetype'); }
:root {
  --font: 'Be Vietnam Pro', Inter, 'Segoe UI', sans-serif;
  --text-caption: 12px;
  --text-small: 13px;
  --text-label: 14px;
  --text-body: 16px;
  --text-heading: 24px;
}
@media screen {
  :root, body { font-family: var(--font); font-size: var(--text-body); line-height: 1.5; }
  h1, .page-head h1, .auth-card h1 { font-size: var(--text-heading); line-height: 1.4; font-weight: 600; }
  h2, h3, .card-title, .sup-section h3 { font-size: var(--text-body); line-height: 1.35; font-weight: 600; }
  label, .field-label, .sup-form label { font-size: var(--text-label); font-weight: 500; }
  button, input, select, textarea { font-family: var(--font); }
  input:not([type=checkbox]):not([type=radio]):not([type=range]):not([type=color]), select, textarea { font-size: var(--text-body) !important; }
  .btn, .btn.ghost, .nav, .side-nav .nav { font-size: var(--text-label); }
  .btn.small, .chip, .sup-pill { font-size: var(--text-small); }
  small, .small, .eyebrow { font-size: var(--text-caption); }
  .data-table th, .line-table th, .sup-table th, .pur-lines th { font-size: var(--text-small); font-weight: 500; }
  .data-table td, .sup-table td, .pur-lines td { font-size: var(--text-label); }
  /* Two-line product names and larger source controls need room in the POS tiles. */
  /* Có giới hạn chiều cao thì phải cuộn bên trong: không tràn đè lên bảng Đơn hàng cửa hàng ở màn > 1366px. */
  .pos-grid { grid-auto-rows: minmax(300px, auto); max-height: calc(300px * 10 + 8px * 9); overflow-y: auto; overscroll-behavior: contain; }
  .pos-product-name { height: 40px; flex-basis: 40px; font-size: var(--text-label); }
  .pos-line-top b, .pos-line-top strong { font-size: var(--text-label); }
  .pos-product-price-stock strong { font-size: var(--text-body); }
  .pos-open-payment { font-size: var(--text-label) !important; }
  .pos-head h1, .pos-basket-head h2, .pos-modal h2 { font-size: var(--text-body); }
  .pos-product-name, .flow-node-title { line-height: 1.4; }
}
@media screen and (max-width: 850px) {
  .toolbar .search { flex-basis: 100%; }
  /* Chỉ select nằm thẳng trong thanh lọc: select bọc trong nhãn xếp dọc (Sổ kho, Lịch nhận hàng) mà nhận flex-basis sẽ bị kéo cao 150px. */
  .toolbar > select { flex: 1 1 150px; min-width: 0; }
  .bottom-nav { grid-auto-columns: minmax(84px, 1fr); }
}
