/* ════════════════════════════════════════════════════════════════
   2325 Back Office · สไตล์
   ธีม = โหมด (สว่าง/มืด) × ธีมร้าน (ปิด/เปิด)
     สว่าง + ปิด = Stone   · มืด + ปิด = Noir
     สว่าง + เปิด = Espresso · มืด + เปิด = Espresso มืด
   ════════════════════════════════════════════════════════════════ */

:root {
  --font: 'Inter', 'IBM Plex Sans Thai', system-ui, sans-serif;
  --r-lg: 20px; --r-md: 14px; --r-sm: 10px;
  --side-w: 92px;
}

/* Stone (สว่าง) */
:root { --accent-text: var(--accent); }
:root, [data-mode="light"][data-brand="off"] {
  --bg: #F7F6F3; --surface: #FFFFFF; --surface-2: #F3F1EC; --ink: #141414; --ink-2: #4A4A48; --muted: #9A9893;
  --line: #ECEAE5; --accent: #141414; --accent-ink: #FFFFFF; --accent-soft: #EFEDE8;
  --side-bg: #FFFFFF; --side-ink: #9A9893; --side-active: #F1EFEA; --side-active-ink: #141414; --side-line: #ECEAE5;
  --bar: #E4E1DA; --bar-hi: #141414;
  --ok: #3F6B4F; --ok-soft: #EAF1EC; --bad: #A24B3A; --bad-soft: #F6E8E4; --warn: #8A6A1F; --warn-soft: #F6F0E1;
  --shadow: 0 1px 2px rgba(0,0,0,.04), 0 8px 24px rgba(0,0,0,.05); --card-border: transparent;
  --insight: #141414; --insight-ink: #F7F6F3;
  color-scheme: light;
}
/* Noir (มืด) */
[data-mode="dark"][data-brand="off"] {
  --bg: #0E0E10; --surface: #17171A; --surface-2: #1F1E22; --ink: #F2EEE8; --ink-2: #B9B3AA; --muted: #7D776F;
  --line: #26262A; --accent: #C9A96E; --accent-ink: #0E0E10; --accent-soft: rgba(201,169,110,.12);
  --side-bg: #0A0A0B; --side-ink: #8B857D; --side-active: #1C1B1E; --side-active-ink: #C9A96E; --side-line: #1F1F22;
  --bar: #2E2C2A; --bar-hi: #C9A96E;
  --ok: #8FC49B; --ok-soft: rgba(143,196,155,.12); --bad: #E58B74; --bad-soft: rgba(229,139,116,.12); --warn: #E2C07A; --warn-soft: rgba(226,192,122,.12);
  --shadow: none; --card-border: #232327;
  --insight: linear-gradient(135deg, #C9A96E, #8E7244); --insight-ink: #0E0E10;
  color-scheme: dark;
}
/* Espresso (ธีมร้าน สว่าง) */
[data-mode="light"][data-brand="on"] {
  --bg: #EDE6DC; --surface: #F8F4EE; --surface-2: #EFE7DC; --ink: #2A1D16; --ink-2: #5E4C40; --muted: #9A8878;
  --line: #E0D5C6; --accent: #A9784A; --accent-ink: #FFFFFF; --accent-soft: #E9DCCB;
  --side-bg: #2A1D16; --side-ink: #C9B8A6; --side-active: #3D2C22; --side-active-ink: #F3E6D6; --side-line: #2A1D16;
  --bar: #D8C6AF; --bar-hi: #2A1D16;
  --ok: #4E7A5A; --ok-soft: #E1EFE4; --bad: #A24B3A; --bad-soft: #F3E1DA; --warn: #8A6A1F; --warn-soft: #F4EAD4;
  --shadow: 0 6px 18px rgba(42,29,22,.06); --card-border: transparent;
  --insight: linear-gradient(135deg, #A9784A, #6E4B2E); --insight-ink: #FFF8EE;
  color-scheme: light;
}
/* Espresso มืด (ธีมร้าน มืด) */
[data-mode="dark"][data-brand="on"] {
  --bg: #16100C; --surface: #201712; --surface-2: #2A1F18; --ink: #F3E6D6; --ink-2: #CDB9A5; --muted: #8F7B69;
  --line: #33261D; --accent: #C8995F; --accent-ink: #1A120D; --accent-soft: rgba(200,153,95,.14);
  --side-bg: #110C09; --side-ink: #9C8672; --side-active: #2A1F18; --side-active-ink: #E3C08F; --side-line: #1E1510;
  --bar: #3A2C22; --bar-hi: #C8995F;
  --ok: #9CC7A5; --ok-soft: rgba(156,199,165,.12); --bad: #E8957E; --bad-soft: rgba(232,149,126,.12); --warn: #E6C27F; --warn-soft: rgba(230,194,127,.12);
  --shadow: none; --card-border: #2E221A;
  --insight: linear-gradient(135deg, #C8995F, #7A5431); --insight-ink: #1A120D;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body { font-family: var(--font); background: var(--bg); color: var(--ink); font-size: 15px; line-height: 1.5; -webkit-font-smoothing: antialiased; transition: background .25s, color .25s; }
button, input, select, textarea { font: inherit; color: inherit; }
[hidden] { display: none !important; }
a { color: inherit; }
.num { font-family: 'Inter', sans-serif; font-variant-numeric: tabular-nums; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.row { display: flex; gap: 10px; align-items: center; }
.grow { flex: 1; min-width: 0; }
.spacer { flex: 1; }

/* ─── ปุ่ม ─── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 0; cursor: pointer;
  padding: 11px 18px; border-radius: 12px; font-weight: 600; font-size: 14.5px;
  background: var(--accent); color: var(--accent-ink); transition: transform .08s, opacity .2s, background .2s; text-decoration: none;
}
.btn:active { transform: scale(.98); }
.btn:disabled { opacity: .45; cursor: default; }
.btn.ghost { background: transparent; color: var(--ink-2); }
.btn.line { background: transparent; color: var(--ink); border: 1.5px solid var(--line); }
.btn.soft { background: var(--surface-2); color: var(--ink); }
.btn.danger { background: var(--bad-soft); color: var(--bad); }
.btn.block { width: 100%; }
.btn.lg { padding: 15px 20px; font-size: 16px; border-radius: 14px; }
.btn svg { width: 18px; height: 18px; flex: none; }
.icon-btn { width: 40px; height: 40px; border-radius: 12px; border: 0; background: transparent; color: var(--side-ink); display: grid; place-items: center; cursor: pointer; }
.icon-btn svg { width: 20px; height: 20px; }
.icon-btn.on { background: var(--side-active); color: var(--side-active-ink); }

/* ─── ฟอร์ม ─── */
.field { display: block; margin-bottom: 14px; }
.field > span { display: block; font-size: 13px; color: var(--ink-2); margin-bottom: 6px; font-weight: 500; }
.input, select.input, textarea.input {
  width: 100%; padding: 12px 14px; border-radius: 12px; border: 1.5px solid var(--line);
  background: var(--surface); color: var(--ink); outline: none; transition: border-color .15s;
}
.input:focus { border-color: var(--accent); }
.input.big { font-size: 26px; font-weight: 600; padding: 12px 14px; font-family: 'Inter', sans-serif; }
textarea.input { resize: vertical; min-height: 80px; }
.check { display: flex; gap: 10px; align-items: center; font-size: 14px; cursor: pointer; }
.check input { width: 18px; height: 18px; accent-color: var(--accent); }
.chips { display: flex; gap: 8px; flex-wrap: wrap; }
.chip { padding: 8px 14px; border-radius: 999px; border: 1.5px solid var(--line); background: var(--surface); cursor: pointer; font-size: 14px; color: var(--ink-2); }
.chip.on { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }

/* ─── การ์ด ─── */
.card { background: var(--surface); border: 1px solid var(--card-border); border-radius: var(--r-lg); padding: 18px; box-shadow: var(--shadow); }
.card-title { font-weight: 700; font-size: 15.5px; display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 12px; }
.card-title .muted { font-weight: 400; font-size: 12.5px; }
.grid { display: grid; gap: 16px; }
.kpi small { font-size: 12.5px; color: var(--muted); }
.kpi b { display: block; font-family: 'Inter', sans-serif; font-weight: 300; font-size: 32px; letter-spacing: -.01em; margin: 4px 0 2px; }
.kpi em { font-style: normal; font-size: 12.5px; color: var(--ok); font-weight: 600; }
.pill { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 600; padding: 3px 10px; border-radius: 999px; white-space: nowrap; background: var(--surface-2); color: var(--ink-2); }
.pill.ok { background: var(--ok-soft); color: var(--ok); }
.pill.bad { background: var(--bad-soft); color: var(--bad); }
.pill.warn { background: var(--warn-soft); color: var(--warn); }
.pill.acc { background: var(--accent-soft); color: var(--accent-text); }
.list-row { display: flex; align-items: center; gap: 12px; padding: 11px 0; border-top: 1px solid var(--line); font-size: 14px; }
.list-row:first-child { border-top: 0; padding-top: 2px; }
.insight { background: var(--insight); color: var(--insight-ink); border-radius: var(--r-lg); padding: 18px; }
.insight small { opacity: .75; font-size: 12.5px; }
.insight b { display: block; font-family: 'Inter', sans-serif; font-weight: 600; font-size: 26px; margin: 6px 0; }
.insight p { margin: 0; font-size: 13px; opacity: .85; }
.empty { text-align: center; color: var(--muted); padding: 28px 10px; font-size: 14px; }

/* ─── โครงหน้า ─── */
.layout { display: flex; min-height: 100vh; }
.side {
  width: var(--side-w); flex: none; background: var(--side-bg); color: var(--side-ink); border-right: 1px solid var(--side-line);
  display: flex; flex-direction: column; align-items: center; padding: 18px 0 14px; gap: 4px;
  position: sticky; top: 0; height: 100vh; transition: background .25s;
}
.logo { width: 50px; height: 50px; border-radius: 16px; display: grid; place-items: center; margin-bottom: 14px; overflow: hidden;
  font: 700 13px 'Inter', sans-serif; letter-spacing: .02em; background: var(--accent); color: var(--accent-ink); }
[data-mode="dark"][data-brand="off"] .logo { background: transparent; border: 1px solid var(--accent); color: var(--accent); }
.logo img { width: 100%; height: 100%; object-fit: cover; }
.nav { width: 74px; padding: 9px 0 8px; border-radius: 14px; text-align: center; font-size: 11.5px; cursor: pointer; border: 0; background: none; color: inherit; text-decoration: none; display: block; }
.nav svg { width: 22px; height: 22px; display: block; margin: 0 auto 4px; }
.nav.on { background: var(--side-active); color: var(--side-active-ink); font-weight: 600; }
.side-foot { margin-top: auto; display: flex; flex-direction: column; align-items: center; gap: 8px; }
.theme-sw { display: flex; flex-direction: column; gap: 4px; padding: 4px; border-radius: 14px; background: color-mix(in srgb, var(--side-ink) 10%, transparent); }
.me { text-align: center; font: inherit; font-size: 11px; line-height: 1.3; max-width: 84px; overflow: hidden; border: 0; background: none; color: inherit; cursor: pointer; padding: 2px 4px 4px; border-radius: 12px; }
.me:hover { background: color-mix(in srgb, var(--side-ink) 10%, transparent); }
.me span { display: block; }
.me b { display: block; width: 36px; height: 36px; border-radius: 50%; margin: 4px auto; background: var(--side-active); color: var(--side-active-ink); display: grid; place-items: center; font-size: 14px; }
.main { flex: 1; min-width: 0; padding: 26px 30px 40px; }
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 20px; flex-wrap: wrap; }
.page-head h1 { margin: 0; font-size: 26px; font-weight: 700; letter-spacing: -.01em; }
.page-head p { margin: 2px 0 0; color: var(--muted); font-size: 13.5px; }

/* ─── ล็อกอิน ─── */
.login { min-height: 100vh; display: grid; place-items: center; padding: 24px; }
.login .box { width: 100%; max-width: 400px; }
.login h1 { font-size: 28px; margin: 18px 0 4px; letter-spacing: -.01em; }
.login .logo { width: 60px; height: 60px; border-radius: 18px; margin: 0; font-size: 15px; }

/* ─── สมาชิก ─── */
.member-head { display: flex; gap: 14px; align-items: center; }
.avatar { width: 52px; height: 52px; border-radius: 50%; flex: none; background: var(--surface-2); color: var(--ink-2); display: grid; place-items: center; font-weight: 700; font-size: 18px; overflow: hidden; }
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.stat3 { display: grid; grid-template-columns: repeat(3, 1fr); text-align: center; gap: 8px; margin-top: 16px; }
.stat3 b { display: block; font: 600 22px 'Inter', sans-serif; }
.stat3 span { font-size: 12px; color: var(--muted); }
.preview { background: var(--accent-soft); border-radius: 12px; padding: 12px 14px; margin: 12px 0; font-size: 14px; min-height: 46px; }
.preview b { font-size: 18px; }
.tx { display: flex; justify-content: space-between; gap: 10px; padding: 9px 0; border-top: 1px solid var(--line); font-size: 13.5px; }
.tx:first-child { border-top: 0; }
.tx .p { font-weight: 700; white-space: nowrap; }
.tx .p.plus { color: var(--ok); } .tx .p.minus { color: var(--bad); }
.table { width: 100%; border-collapse: collapse; font-size: 14px; }
.table th { text-align: left; font-size: 12px; color: var(--muted); font-weight: 500; padding: 8px 10px; border-bottom: 1px solid var(--line); }
.table td { padding: 11px 10px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.table tr:last-child td { border-bottom: 0; }
.table tr.click { cursor: pointer; }
.table tr.click:hover td { background: var(--surface-2); }

/* ─── เมนู ─── */
.menu-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 14px; }
.mi { background: var(--surface); border: 1px solid var(--card-border); border-radius: 16px; overflow: hidden; box-shadow: var(--shadow); display: flex; flex-direction: column; }
.mi .ph { position: relative; flex: none; aspect-ratio: 4 / 3; overflow: hidden; background: var(--surface-2); display: grid; place-items: center; color: var(--muted); }
/* รูปวางทับกรอบ 4:3 พอดี (Safari/iPad ไม่ยืดรูปตามกรอบ aspect-ratio ถ้าไม่ล็อกตำแหน่ง) */
.mi .ph img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.mi .ph svg { width: 34px; height: 34px; opacity: .5; }
.mi .bd { padding: 10px 12px 12px; display: flex; flex-direction: column; gap: 4px; flex: 1; }
.mi .nm { font-weight: 600; line-height: 1.3; }
.mi .pr { color: var(--accent-text); font-weight: 700; font-family: 'Inter', sans-serif; }
.mi.off { opacity: .5; }
.mi .acts { display: flex; gap: 6px; margin-top: auto; padding-top: 8px; }
.mi .acts .btn { padding: 7px 10px; font-size: 12.5px; border-radius: 10px; flex: 1; }

/* ─── แผ่นเด้ง (modal) ─── */
.modal-bg { position: fixed; inset: 0; z-index: 50; background: rgba(10,10,10,.45); display: flex; align-items: center; justify-content: center; padding: 20px; animation: fade .15s; }
.modal { width: 100%; max-width: 520px; max-height: 92vh; overflow: auto; background: var(--surface); border-radius: 22px; padding: 22px; box-shadow: 0 20px 60px rgba(0,0,0,.25); animation: up .2s ease-out; }
.modal h2 { margin: 0 0 16px; font-size: 20px; }
@keyframes fade { from { opacity: 0; } }
@keyframes up { from { transform: translateY(16px); opacity: 0; } }
#reader { width: 100%; border-radius: 14px; overflow: hidden; background: #000; min-height: 260px; }
#reader video { border-radius: 14px; }

/* ─── แจ้งเตือน ─── */
#toast { position: fixed; left: 50%; bottom: 26px; transform: translateX(-50%) translateY(12px); z-index: 90; background: var(--ink); color: var(--bg);
  padding: 12px 18px; border-radius: 14px; font-size: 14.5px; opacity: 0; pointer-events: none; transition: all .25s; max-width: calc(100% - 32px); text-align: center; }
#toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
#toast.ok { background: var(--ok); color: #fff; }
#toast.err { background: var(--bad); color: #fff; }
.spinner { width: 28px; height: 28px; margin: 40px auto; border-radius: 50%; border: 3px solid var(--line); border-top-color: var(--accent); animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.skel { background: linear-gradient(90deg, var(--surface-2) 25%, var(--line) 50%, var(--surface-2) 75%); background-size: 200% 100%; animation: shimmer 1.2s infinite; border-radius: 12px; }
@keyframes shimmer { to { background-position: -200% 0; } }

/* ─── จอเล็ก (มือถือ): เมนูไปอยู่ด้านล่าง ─── */
@media (max-width: 760px) {
  .layout { flex-direction: column; }
  .side { position: fixed; bottom: 0; left: 0; right: 0; top: auto; height: auto; width: 100%; flex-direction: row; padding: 6px 8px calc(6px + env(safe-area-inset-bottom)); z-index: 40; border-right: 0; border-top: 1px solid var(--side-line); justify-content: space-around; }
  .side .logo, .side-foot .me span { display: none; }
  .side-foot .me { padding: 0; }
  .side-foot .me b { width: 32px; height: 32px; margin: 0; font-size: 13px; }
  .nav { width: auto; flex: 1; font-size: 10.5px; padding: 6px 0; }
  .side-foot { margin: 0; flex-direction: row; }
  .theme-sw { flex-direction: row; }
  .main { padding: 18px 16px 110px; }
  .col-act { order: -1; }
  .page-head h1 { font-size: 22px; }
}

/* ════════════════════════════════════════════════════════════════
   POS (หน้าขาย)
   ════════════════════════════════════════════════════════════════ */
.btn.sm { padding: 8px 12px; font-size: 13px; border-radius: 10px; }
.btn.lg { padding: 15px 18px; font-size: 16px; }
.icon-btn.sm { width: 32px; height: 32px; color: var(--muted); }
.icon-btn.sm svg { width: 17px; height: 17px; }
.main.pos-main { padding: 0; height: 100vh; height: 100dvh; overflow: hidden; }
.pos { display: grid; grid-template-columns: minmax(0, 1fr) 360px; height: 100%; }
.pos-menu { padding: 18px 20px 20px; overflow-y: auto; -webkit-overflow-scrolling: touch; }
.pos-top { display: flex; align-items: center; gap: 8px; margin-bottom: 12px; flex-wrap: wrap; }
.pos-top h1 { margin: 0 6px 0 0; font-size: 24px; }
.pill-btn { display: inline-flex; align-items: center; gap: 6px; border: 0; cursor: pointer; font: inherit; font-size: 13px; font-weight: 500; padding: 7px 12px; border-radius: 999px; background: var(--surface-2); color: var(--ink-2); }
.pill-btn svg { width: 15px; height: 15px; }
.pill-btn.ok { background: var(--ok-soft); color: var(--ok); }
.pill-btn .dot { width: 7px; height: 7px; border-radius: 9px; background: currentColor; }
.pos-search { display: flex; align-items: center; gap: 8px; border: 1.5px solid var(--line); background: var(--surface); border-radius: 12px; padding: 0 12px; color: var(--muted); }
.pos-search svg { width: 17px; height: 17px; flex: none; }
.pos-search input { border: 0; outline: 0; background: none; font: inherit; color: var(--ink); padding: 9px 0; width: 150px; }
.pos-chips { margin-bottom: 14px; flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
.pos-chips .chip { flex: none; }
.pos-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(148px, 1fr)); gap: 10px; }
.pi { position: relative; text-align: left; border: 1px solid var(--card-border); background: var(--surface); border-radius: 15px; overflow: hidden; padding: 0; cursor: pointer; font: inherit; color: inherit; transition: transform .08s; }
.pi:active { transform: scale(.97); }
.pi .ph { position: relative; aspect-ratio: 16 / 10; overflow: hidden; background: var(--surface-2); display: grid; place-items: center; color: var(--muted); font-size: 26px; font-weight: 600; }
.pi .ph img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.pi .bd { padding: 7px 10px 9px; }
.pi .n { font-size: 14px; font-weight: 600; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.pi .p { font-size: 14px; font-weight: 600; color: var(--ink-2); }
.pi.sel { outline: 2.5px solid var(--accent); outline-offset: -2.5px; }
.pi .cnt { position: absolute; top: 7px; right: 7px; min-width: 26px; height: 26px; padding: 0 7px; border-radius: 14px; background: var(--accent); color: var(--accent-ink); display: grid; place-items: center; font-size: 13px; box-shadow: 0 2px 8px rgba(0,0,0,.25); }
.pi.out { cursor: default; }
.pi.out .ph { filter: grayscale(1); opacity: .45; }
.pi.out .p { color: var(--bad); }

.pos-bill { background: var(--surface); border-left: 1px solid var(--line); display: flex; flex-direction: column; min-height: 0; padding: 14px 16px 16px; }
.pb-head { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; }
.pb-head b { font-size: 17px; flex: 1; }
.pb-mem { display: flex; align-items: center; gap: 10px; background: var(--surface-2); border-radius: 14px; padding: 9px 10px; }
.pb-mem .avatar { width: 38px; height: 38px; font-size: 15px; background: var(--accent); color: var(--accent-ink); }
.pb-find { display: flex; gap: 8px; }
.pb-find .input { padding: 10px 12px; }
.pb-find .btn { padding: 0 12px; white-space: nowrap; flex: none; }
.pb-lines { flex: 1; overflow-y: auto; margin: 6px -4px 0; padding: 0 4px; min-height: 60px; -webkit-overflow-scrolling: touch; }
.pb-li { display: flex; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.pb-li .grow { cursor: pointer; min-width: 0; }
.pb-li .n { font-weight: 600; }
.pb-li .o { font-size: 12.5px; color: var(--muted); }
.pb-li .rw { font-size: 12.5px; color: var(--ok); font-weight: 600; margin-top: 2px; }
.pb-li .r { text-align: right; flex: none; }
.pb-li .p { font-weight: 600; }
.pb-li.new { animation: flash 1s ease-out; }
@keyframes flash { from { background: var(--accent-soft); } to { background: transparent; } }
.step { display: inline-flex; align-items: center; border: 1.5px solid var(--line); border-radius: 10px; margin-top: 5px; }
.step button { width: 32px; height: 30px; border: 0; background: none; font: 500 17px 'Inter', sans-serif; color: var(--ink-2); cursor: pointer; }
.step b { min-width: 22px; text-align: center; font-size: 14px; }
.pb-empty { text-align: center; color: var(--muted); padding: 40px 10px; font-size: 14px; }
.pb-empty svg { width: 34px; height: 34px; opacity: .5; margin-bottom: 6px; }
.pb-links { display: flex; gap: 6px; margin: 10px 0 4px; }
.pb-links button { flex: 1; display: flex; align-items: center; justify-content: center; gap: 5px; border: 1.5px dashed var(--line); background: none; border-radius: 11px; padding: 8px 4px; font: inherit; font-size: 12.5px; color: var(--ink-2); cursor: pointer; white-space: nowrap; }
.pb-links button svg { width: 15px; height: 15px; }
.pb-links button.on { border-style: solid; border-color: var(--accent); color: var(--ink); font-weight: 600; }
.pb-tot { border-top: 1px solid var(--line); padding-top: 8px; }
.pb-tot .tr { display: flex; justify-content: space-between; font-size: 14px; color: var(--ink-2); padding: 2px 0; }
.pb-tot .tr.ok { color: var(--ok); } .pb-tot .tr.bad { color: var(--bad); }
.pb-tot .tr.big { font-size: 16px; font-weight: 700; color: var(--ink); padding: 6px 0 10px; align-items: baseline; }
.pb-tot .tr.big span:last-child { font-size: 28px; }
.pb-tot .row .btn.line { padding: 15px 14px; }

/* ตัวเลือกเมนู */
.modal-opt { max-width: 600px; }
.opt-head { display: flex; gap: 14px; align-items: center; margin-bottom: 6px; }
.opt-head img { width: 72px; height: 72px; border-radius: 14px; object-fit: cover; }
.opt-lb { font-size: 13.5px; font-weight: 600; color: var(--ink-2); margin: 14px 0 8px; }
.opt-lb small { font-weight: 400; color: var(--muted); }
.opts { display: flex; gap: 8px; flex-wrap: wrap; }
.op { border: 1.5px solid var(--line); background: var(--surface); border-radius: 13px; padding: 9px 14px; font: inherit; font-size: 15px; font-weight: 500; color: var(--ink-2); min-width: 78px; cursor: pointer; }
.op small { display: block; font-size: 12px; color: var(--muted); font-family: 'Inter', sans-serif; }
.op.on { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.op.on small { color: inherit; opacity: .75; }
.op.chk { display: flex; align-items: center; gap: 8px; }
.op.chk small { display: inline; }
.op.chk::before { content: ""; width: 17px; height: 17px; border-radius: 6px; border: 1.5px solid var(--line); flex: none; }
.op.chk.on::before { background: var(--accent-ink); border-color: var(--accent-ink); box-shadow: inset 0 0 0 3px var(--accent); }
.opt-foot { display: flex; gap: 8px; align-items: center; margin-top: 18px; }
.qty { display: flex; align-items: center; border: 1.5px solid var(--line); border-radius: 13px; }
.qty button { width: 44px; height: 46px; border: 0; background: none; font: 500 22px 'Inter', sans-serif; color: var(--ink); cursor: pointer; }
.qty b { min-width: 30px; text-align: center; font-size: 18px; }
.seg { display: inline-flex; background: var(--surface-2); border-radius: 12px; padding: 3px; margin-bottom: 12px; }
.seg button { border: 0; background: none; font: inherit; font-weight: 600; padding: 7px 18px; border-radius: 9px; color: var(--ink-2); cursor: pointer; }
.seg button.on { background: var(--surface); color: var(--ink); box-shadow: 0 1px 4px rgba(0,0,0,.12); }
.rw-row { display: flex; justify-content: space-between; align-items: center; gap: 10px; width: 100%; border: 1.5px solid var(--line); background: var(--surface); border-radius: 13px; padding: 11px 14px; margin-bottom: 7px; font: inherit; color: var(--ink); cursor: pointer; text-align: left; }
.rw-row.on { border-color: var(--accent); box-shadow: inset 0 0 0 1px var(--accent); }
.rw-row:disabled { opacity: .4; cursor: default; }
.hb { border: 1.5px solid var(--line); border-radius: 15px; padding: 12px 14px; margin-bottom: 10px; }

/* ชำระเงิน */
.modal-pay { max-width: 760px; }
.pay { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.due { background: var(--surface-2); border-radius: 16px; padding: 14px 16px; }
.due small { color: var(--muted); font-size: 13px; }
.due b { display: block; font-size: 40px; font-weight: 700; letter-spacing: -.02em; line-height: 1.2; }
.meth { display: grid; grid-template-columns: repeat(4, 1fr); gap: 7px; margin: 12px 0; }
.meth button { border: 1.5px solid var(--line); background: var(--surface); border-radius: 13px; padding: 9px 4px; font: inherit; font-size: 13px; font-weight: 600; color: var(--ink-2); cursor: pointer; }
.meth button svg { width: 22px; height: 22px; display: block; margin: 0 auto 3px; }
.meth button.on { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.quick { display: grid; grid-template-columns: 1fr 1fr; gap: 7px; }
.quick button { border: 1.5px solid var(--line); background: var(--surface); border-radius: 13px; padding: 11px; font: 600 18px 'Inter', sans-serif; color: var(--ink); cursor: pointer; }
.quick button small { display: block; font: 500 11.5px var(--font); color: var(--muted); }
.quick button.on { border-color: var(--accent); box-shadow: inset 0 0 0 1px var(--accent); }
.rcv { border: 2px solid var(--accent); border-radius: 14px; padding: 8px 14px; display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.rcv small { color: var(--muted); } .rcv b { font-size: 28px; }
.pad { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.pad button { border: 0; background: var(--surface-2); border-radius: 12px; padding: 11px 0; font: 600 20px 'Inter', sans-serif; color: var(--ink); cursor: pointer; }
.pad button:active { background: var(--line); }
.chg { background: var(--ok-soft); color: var(--ok); border-radius: 14px; padding: 10px 14px; display: flex; justify-content: space-between; align-items: center; margin: 10px 0; font-weight: 600; }
.chg b { font-size: 26px; }
.chg.bad { background: var(--bad-soft); color: var(--bad); }
.chg.big b { font-size: 34px; }
.pp-box { text-align: center; background: #fff; color: #141414; border-radius: 16px; padding: 14px; border: 1px solid var(--line); }
.pp-box svg { width: 200px; height: 200px; display: block; margin: 0 auto 8px; }
.pp-box b { display: block; font-size: 22px; } .pp-box small { color: #777; }
.done-head { display: flex; gap: 14px; align-items: center; margin-bottom: 12px; }
.done-head .ck { width: 48px; height: 48px; border-radius: 50%; background: var(--ok); color: #fff; display: grid; place-items: center; flex: none; }
.done-head .ck svg { width: 26px; height: 26px; stroke-width: 2.6; }
.rc-wrap { background: var(--surface-2); border-radius: 14px; padding: 14px; max-height: 38vh; overflow: auto; }
.rc { font-size: 13.5px; color: var(--ink); max-width: 320px; margin: 0 auto; }
.rc-h { text-align: center; border-bottom: 1px dashed var(--muted); padding-bottom: 8px; margin-bottom: 8px; line-height: 1.5; }
.rc-h b { font-size: 16px; }
.rc-li { display: flex; gap: 10px; padding: 3px 0; }
.rc-li small { display: block; color: var(--muted); font-size: 12px; }
.rc-t { border-top: 1px dashed var(--muted); margin-top: 6px; padding-top: 6px; }
.rc-t > div { display: flex; justify-content: space-between; padding: 1px 0; }
.rc-t .big { font-weight: 700; font-size: 15px; }
.rc-m { border-top: 1px dashed var(--muted); margin-top: 6px; padding-top: 6px; text-align: center; }
.rc-f { text-align: center; margin-top: 8px; color: var(--muted); }
.steps { padding-left: 20px; margin: 8px 0 0; line-height: 1.6; }
.steps li { margin-bottom: 12px; }
.steps .url { display: flex; gap: 8px; align-items: center; background: var(--surface-2); border-radius: 10px; padding: 6px 6px 6px 12px; margin-top: 6px; font-size: 13px; word-break: break-all; }
.steps .url span { flex: 1; }
.steps .code { font-size: 38px; font-weight: 700; letter-spacing: .1em; margin-top: 4px; }
#print-area { display: none; }
@media print {
  body > *:not(#print-area) { display: none !important; }
  #print-area { display: block !important; }
  #print-area .rc { max-width: 72mm; font-size: 12px; color: #000; }
  @page { size: 80mm auto; margin: 4mm; }
}
@media (max-width: 1000px) { .pos { grid-template-columns: minmax(0, 1fr) 320px; } .pos-search input { width: 110px; } }
@media (max-width: 760px) {
  .main.pos-main { height: auto; overflow: visible; padding-bottom: 90px; }
  .pos { grid-template-columns: 1fr; height: auto; }
  .pos-bill { border-left: 0; border-top: 1px solid var(--line); }
  .pb-lines { max-height: none; }
  .pay { grid-template-columns: 1fr; }
}
.bill-no { font-size: 13px; color: var(--muted); font-weight: 600; width: 52px; flex: none; }
.list-row.void { opacity: .5; }
.list-row.void b.num { text-decoration: line-through; }
.hbar { position: relative; display: flex; gap: 10px; padding: 8px 10px; margin-bottom: 6px; border-radius: 10px; overflow: hidden; font-size: 14px; }
.hbar i { position: absolute; left: 0; top: 0; bottom: 0; background: var(--accent-soft); z-index: 0; border-radius: 10px; }
.hbar span, .hbar b { position: relative; z-index: 1; }
.chip-check { border: 1.5px solid var(--line); border-radius: 999px; padding: 6px 12px; }
.pill.bad { background: var(--bad-soft); color: var(--bad); }
.hol-d { width: 46px; height: 46px; border-radius: 12px; background: var(--bad-soft); color: var(--bad); display: grid; place-items: center; font-size: 11px; line-height: 1; flex: none; }
.hol-d b { font-size: 18px; display: block; }
.img-prev img { width: 100%; max-height: 160px; object-fit: cover; border-radius: 12px; margin: -6px 0 14px; display: block; }
.promo-th { width: 56px; height: 42px; border-radius: 10px; overflow: hidden; background: var(--surface-2); flex: none; }
.promo-th img { width: 100%; height: 100%; object-fit: cover; }
.set-tabs { margin: -4px 0 16px; }
.set-grid { display: block !important; columns: 2 340px; column-gap: 16px; max-width: 1180px; }
.set-grid > .card { break-inside: avoid; margin: 0 0 16px; display: inline-block; width: 100%; }

/* ─── การจอง Wellness ─── */
.nav { position: relative; }
.nav-badge { position: absolute; top: 3px; right: 12px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--bad); color: #fff; font-size: 11px; font-weight: 700; line-height: 18px; text-align: center; }
.bk-head { flex-wrap: wrap; gap: 12px; }
.bk-nav { flex-wrap: nowrap; gap: 6px; }
.bk-nav .btn { padding-left: 12px; padding-right: 12px; }
.bk-date { position: relative; gap: 8px; font-weight: 600; white-space: nowrap; }
.bk-date input { position: absolute; inset: 0; opacity: 0; cursor: pointer; width: 100%; }
.bk-alert { display: flex; align-items: center; gap: 12px; padding: 11px 16px; border-radius: 14px; margin-bottom: 10px; font-size: 14px; }
.bk-alert.bad { background: var(--bad-soft); } .bk-alert.bad b { color: var(--bad); }
.bk-alert.warn { background: var(--warn-soft); } .bk-alert.warn b { color: var(--warn); }
.bk-alert a { color: inherit; font-weight: 600; }
.bk-kpis { grid-template-columns: repeat(4, minmax(0, 1fr)); margin-bottom: 14px; }
.bk-kpis .kpi b { font-size: 24px; }
.bk-body { display: grid; grid-template-columns: minmax(0, 1fr) 370px; gap: 16px; align-items: start; }
.bk-tl { padding: 14px 16px 10px 0; overflow: hidden; }
.tl-in { position: relative; }
.tl-hr { position: absolute; left: 0; right: 0; height: 1px; background: var(--line); }
.tl-hr span { position: absolute; left: 12px; top: -9px; font-size: 12px; color: var(--muted); background: var(--surface); padding-right: 6px; }
.tl-closed { position: absolute; left: 70px; right: 8px; top: 30px; padding: 12px; border-radius: 12px; background: var(--surface-2); color: var(--muted); font-size: 13px; text-align: center; z-index: 1; }
.tl-bk, .tl-free, .tl-buf { position: absolute; left: 66px; right: 6px; border-radius: 12px; }
.tl-bk { padding: 7px 12px; font-size: 13.5px; overflow: hidden; cursor: pointer; border-left: 4px solid; z-index: 2; line-height: 1.35; }
.tl-bk b { font-size: 14px; }
.tl-bk .small { color: var(--ink-2); margin-top: 2px; }
.tl-bk .tag { float: right; font-size: 11.5px; font-weight: 700; padding: 2px 9px; border-radius: 99px; margin-left: 8px; background: rgba(127,127,127,.16); }
.tl-bk.ok { background: var(--accent-soft); border-color: var(--accent); }
.tl-bk.slip { background: var(--bad-soft); border-color: var(--bad); box-shadow: inset 0 0 0 1.5px var(--bad); } .tl-bk.slip .tag { color: var(--bad); }
.tl-bk.hold { background: var(--warn-soft); border-color: var(--warn); border-style: dashed; border-left-style: solid; } .tl-bk.hold .tag { color: var(--warn); }
.tl-bk.in { background: var(--ok-soft); border-color: var(--ok); } .tl-bk.in .tag { color: var(--ok); }
.tl-bk.walk { background: var(--surface-2); border-color: var(--ink-2); }
.tl-bk.blk { background: repeating-linear-gradient(135deg, var(--surface-2) 0 8px, transparent 8px 16px); border-color: var(--muted); color: var(--muted); display: flex; align-items: center; gap: 6px; }
.tl-bk.blk svg { width: 16px; height: 16px; flex: none; }
.tl-bk.sel { outline: 2.5px solid var(--ink); outline-offset: 1px; }
.tl-buf { background: repeating-linear-gradient(135deg, var(--surface-2) 0 5px, transparent 5px 10px); color: var(--muted); font-size: 10.5px; padding-left: 14px; display: flex; align-items: center; z-index: 1; border-radius: 0 0 10px 10px; overflow: hidden; }
.tl-free { border: 1.5px dashed var(--line); background: none; color: var(--muted); font: inherit; font-size: 13px; display: flex; align-items: center; gap: 8px; padding: 0 12px; cursor: pointer; text-align: left; z-index: 1; }
.tl-free svg { width: 16px; height: 16px; flex: none; }
.tl-free:hover { border-color: var(--accent); color: var(--accent-text); }
.tl-now { position: absolute; left: 56px; right: 6px; height: 2px; background: var(--bad); z-index: 3; pointer-events: none; }
.tl-now::before { content: ''; position: absolute; left: -5px; top: -4px; width: 10px; height: 10px; border-radius: 50%; background: var(--bad); }
.bk-pn { position: sticky; top: 16px; min-height: 300px; }
.bk-hint { text-align: center; color: var(--muted); padding: 30px 10px; font-size: 14px; }
.bk-hint svg { width: 36px; height: 36px; display: block; margin: 0 auto 10px; opacity: .6; }
.bk-hint b { color: var(--ink); display: block; margin-bottom: 4px; }
.bk-lg { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; margin-top: 18px; }
.bk-lg span { font-size: 11.5px; padding: 3px 9px; border-radius: 99px; border-left: 3px solid; }
.bk-lg .ok { background: var(--accent-soft); border-color: var(--accent); } .bk-lg .slip { background: var(--bad-soft); border-color: var(--bad); }
.bk-lg .hold { background: var(--warn-soft); border-color: var(--warn); } .bk-lg .in { background: var(--ok-soft); border-color: var(--ok); }
.bk-lg .walk { background: var(--surface-2); border-color: var(--ink-2); } .bk-lg .blk { background: var(--surface-2); border-color: var(--muted); }
.bk-name { font-size: 21px; margin: 10px 0 2px; }
.bk-kv { margin-top: 12px; border-top: 1px solid var(--line); padding-top: 8px; }
.bk-kv > div { display: flex; justify-content: space-between; gap: 10px; font-size: 14px; padding: 5px 0; }
.bk-kv > div > span:first-child { color: var(--muted); }
.bk-slip { display: flex; gap: 12px; align-items: center; background: var(--surface-2); border-radius: 14px; padding: 10px; margin-top: 12px; font-size: 14px; }
.bk-slip small { display: block; color: var(--muted); font-size: 12px; }
.slip-img { width: 86px; height: 120px; border-radius: 10px; object-fit: cover; flex: none; cursor: zoom-in; background: var(--surface); display: grid; place-items: center; font-size: 11px; color: var(--muted); }
.bk-acts { margin-top: 16px; display: flex; flex-direction: column; gap: 8px; }
.bk-acts .row.wrap { flex-wrap: wrap; gap: 8px; }
.bk-acts .row.wrap .btn { flex: 1 1 30%; padding-left: 8px; padding-right: 8px; }
.btn.ok-btn { background: var(--ok); color: #fff; }
.btn.bad-line { color: var(--bad); }
.bk-modal { max-width: 460px; }
.pb-bk { background: var(--accent-soft); border-radius: 12px; padding: 10px 12px !important; margin-bottom: 6px; }
.pb-bk .r { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; }
#pay-cred.on { background: var(--ok-soft); color: var(--ok); border-color: var(--ok); }
.ln-qr { width: 190px; margin: 0 auto; background: #fff; padding: 8px; border-radius: 12px; }
.ln-qr svg { width: 100%; height: auto; display: block; }
@media (max-width: 1020px) {
  .bk-body { grid-template-columns: 1fr; }
  .bk-pn { display: none; }
  .bk-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) { .bk-nav .bk-date span { font-size: 13px; } }

/* ─── สต็อก ─── */
.nav-badge.warn { background: var(--warn); }
.sk-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 14px; }
.sk-card { cursor: pointer; display: flex; flex-direction: column; }
.sk-card.low { box-shadow: inset 0 0 0 1.5px var(--bad); }
.sk-top { display: flex; gap: 8px; align-items: flex-start; }
.sk-top b { display: block; font-size: 15px; line-height: 1.35; }
.sk-qty { display: flex; align-items: baseline; gap: 6px; margin: 12px 0 8px; }
.sk-qty b { font-family: 'Inter', sans-serif; font-weight: 300; font-size: 34px; line-height: 1; }
.sk-qty span { color: var(--muted); font-size: 14px; }
.sk-card.low .sk-qty b { color: var(--bad); }
.sk-bar { position: relative; height: 6px; border-radius: 6px; background: var(--surface-2); }
.sk-bar i { position: absolute; left: 0; top: 0; bottom: 0; border-radius: 6px; background: var(--accent); }
.sk-card.low .sk-bar i { background: var(--bad); }
.sk-bar em { position: absolute; top: -3px; width: 2px; height: 12px; background: var(--ink-2); border-radius: 2px; }
.sk-card .row { margin-top: auto; }
.sk-card .btn svg { width: 18px; height: 18px; }
.sk-step { display: flex; gap: 8px; align-items: stretch; }
.sk-step button { width: 54px; border: 0; border-radius: 12px; background: var(--surface-2); color: var(--ink); cursor: pointer; display: grid; place-items: center; }
.sk-step button svg { width: 20px; height: 20px; }
.sk-step .input { text-align: center; font-size: 24px; font-weight: 600; }
.sk-reasons { display: flex; flex-wrap: wrap; gap: 8px; }
.sk-kv { display: grid; grid-template-columns: repeat(auto-fit, minmax(100px, 1fr)); gap: 10px; margin-top: 14px; }
.sk-kv > div { background: var(--surface-2); border-radius: 12px; padding: 10px 12px; }
.sk-kv small { display: block; color: var(--muted); font-size: 12px; }
.sk-kv b { font-size: 18px; }
.sk-modal { max-width: 600px; }
.sk-menus { max-height: 260px; overflow: auto; border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; }
.sk-mcat { margin-bottom: 10px; }
.sk-mcat .check { margin-bottom: 6px; }
.sk-mcat .chips { gap: 6px; }
.sk-mcat .chip-check { font-size: 13px; display: inline-flex; align-items: center; gap: 4px; cursor: pointer; }
.sk-tbl th, .sk-tbl td { white-space: nowrap; }
.sk-tbl td.num, .sk-tbl th:not(:first-child) { text-align: right; }
.rs-row { display: flex; gap: 12px; align-items: flex-start; padding: 10px 12px; border: 1.5px solid var(--line); border-radius: 12px; margin-bottom: 8px; cursor: pointer; font-size: 14px; }
.rs-row input { margin-top: 3px; width: 18px; height: 18px; flex: none; }
.rs-row.on { border-color: var(--bad); background: var(--bad-soft); }
.rs-row.off { opacity: .55; }

/* ─── กราฟโดนัท / ตัวแปรสีกราฟ ─── */
:root { --c1: var(--bar-hi); --c2: var(--ok); --c3: var(--warn); --c4: var(--muted); --c5: var(--bar); }
.donut-row { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.donut-leg { flex: 1 1 120px; display: flex; flex-direction: column; gap: 8px; font-size: 14px; }
.donut-leg div { display: flex; align-items: center; gap: 10px; }
.donut-leg i { width: 12px; height: 12px; border-radius: 4px; flex: none; }
.donut-leg span { flex: 1; color: var(--ink-2); }

/* ธีม Neo · ฟ้าอ่อน ดำ เขียวมะนาว ม่วง (ทดลอง) */
html.neo[data-mode] {
  --accent-text: #5B3FF0;
  --bg: #DCE9F1; --surface: #F4F5F6; --surface-2: #E8EDF0; --ink: #0E0F12; --ink-2: #44505A; --muted: #8493A0;
  --line: #E1E6EA; --accent: #C8F53C; --accent-ink: #0C0D10; --accent-soft: rgba(200,245,60,.28);
  --side-bg: #0C0D10; --side-ink: #8D98A1; --side-active: #1A1D22; --side-active-ink: #FFFFFF; --side-line: #0C0D10;
  --bar: #CFE0EA; --bar-hi: #0E0F12;
  --ok: #2E7D3E; --ok-soft: #DDF5C8; --bad: #C0392B; --bad-soft: #FBE3DF; --warn: #8A6A1F; --warn-soft: #F6EBC9;
  --shadow: 0 10px 30px rgba(40,70,100,.10); --card-border: transparent;
  --insight: linear-gradient(135deg, #6B4DFF, #4A2FE0); --insight-ink: #FFFFFF;
  --c1: #C8F53C; --c2: #0C0D10; --c3: #6B4DFF; --c4: #9CCBE3; --c5: #C9D2D8;
  --r-lg: 26px; --r-md: 18px; --r-sm: 12px;
  color-scheme: light;
}
html.neo body { background: radial-gradient(900px 500px at 100% 0%, #EEF6FB 0%, transparent 60%), #DCE9F1; }
html.neo .side { border-right: 0; margin: 12px 0 12px 12px; height: calc(100vh - 24px); border-radius: 30px; top: 12px; }
html.neo .nav { border-radius: 18px; }
html.neo .nav.on { background: radial-gradient(60px 30px at 50% 0%, rgba(200,245,60,.40), transparent 70%), #1A1D22; box-shadow: inset 0 0 0 1px rgba(200,245,60,.28); }
html.neo .nav.on svg { color: #C8F53C; }
html.neo .logo { background: #C8F53C; color: #0C0D10; }
html.neo .btn { border-radius: 16px; }
html.neo .btn.soft { background: #E2E8EC; }
html.neo .chip.on { background: #0C0D10; color: #C8F53C; border-color: #0C0D10; }
html.neo .pill.acc { background: #ECE8FF; color: #5B3FF0; }
html.neo .kpi b { font-weight: 600; }
html.neo .input { border-radius: 16px; background: #fff; }
html.neo .bar-past { fill: #CFE3EE; }
html.neo .bar-today { fill: #C8F53C; stroke: #0C0D10; stroke-width: 2; filter: drop-shadow(0 6px 10px rgba(160,225,30,.55)); }
html.neo .donut circle[stroke] { stroke-linecap: butt; }
html.neo .hbar i { background: linear-gradient(90deg, rgba(200,245,60,.55), rgba(200,245,60,.25)); }
html.neo .hbar:nth-child(odd) i { background: linear-gradient(90deg, rgba(200,245,60,.55), rgba(200,245,60,.25)); }
html.neo .insight { box-shadow: 0 14px 34px rgba(91,63,240,.35); }

/* ─── ปรับแถบเมนูให้พอดีเมื่อมีปุ่มธีม 3 ปุ่ม ─── */
.side { overflow-y: auto; scrollbar-width: none; }
.side::-webkit-scrollbar { display: none; }
.theme-sw .icon-btn { width: 32px; height: 32px; border-radius: 10px; }
.theme-sw .icon-btn svg { width: 17px; height: 17px; }
.donut { width: 118px; height: 118px; flex: none; }
