/* Theme: phẳng kiểu Android POS (Material). Nền trắng, xanh lá. Không gradient, không bóng. */
:root {
  --c-primary: #4CAF50;
  --c-primary-hover: #388E3C;
  --c-primary-dark: #388E3C;
  --c-primary-soft: #E8F5E9;
  --c-on-primary: #FFFFFF;
  --c-action: #8BC34A;
  --c-action-hover: #7CB342;
  --c-accent: #8BC34A;
  --c-bg: #FFFFFF;
  --c-surface: #FFFFFF;
  --c-surface-2: #F5F5F5;
  --c-border: #E0E0E0;
  --c-text: #212121;
  --c-text-muted: #757575;
  --c-ok: #388E3C;
  --c-ok-soft: #E8F5E9;
  --c-err: #F44336;
  --c-err-soft: #FFEBEE;
  --c-warn: #E65100;
  --c-warn-soft: #FFF3E0;
  --c-info: #1976D2;
  --c-info-soft: #E3F2FD;
  --c-scrim: rgba(0, 0, 0, .5);
  --c-snack: #323232;

  --tile-bg: #E0E0E0;
  --tile-fg: #212121;

  --radius-sm: 2px;
  --radius: 2px;
  --radius-lg: 4px;
  --shadow-sm: none;
  --shadow: none;
  --shadow-lg: 0 8px 24px rgba(0, 0, 0, .28); /* chỉ dùng cho dialog/ngăn kéo nổi */

  --font: Roboto, system-ui, -apple-system, "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  --font-mono: ui-monospace, Consolas, "Courier New", monospace;
  --fs-sm: 13px;
  --fs: 15px;
  --fs-lg: 18px;
  --fs-xl: 22px;
  --fs-xxl: 28px;

  --sp-1: 4px;
  --sp-2: 8px;
  --sp-3: 12px;
  --sp-4: 16px;
  --sp-5: 24px;
  --sp-6: 32px;
  --tap: 44px;
  --row-h: 56px;
  --header-h: 56px;

  --safe-t: env(safe-area-inset-top, 0px);
  --safe-b: env(safe-area-inset-bottom, 0px);
  --safe-l: env(safe-area-inset-left, 0px);
  --safe-r: env(safe-area-inset-right, 0px);
}

*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }

html { -webkit-text-size-adjust: 100%; color-scheme: light; background: #388E3C; }

body {
  font-family: var(--font);
  font-size: var(--fs);
  line-height: 1.5;
  background: var(--c-bg);
  color: var(--c-text);
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
}

button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
h1, h2, h3, h4 { line-height: 1.25; font-weight: 500; }
table { border-collapse: collapse; }
svg.ic { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; display: block; }

* { scrollbar-width: thin; scrollbar-color: #BDBDBD transparent; }
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: #BDBDBD; border-radius: 0; }

:focus-visible { outline: 2px solid var(--c-primary); outline-offset: 1px; }
