/* 🎨 메뉴판 꾸밈 셋(2026-11-25 대표님 「타머넷의 심장부 — 첫눈에 와~」 · 「A,B,C 모두 구현」)
   손님 · 사장님이 표 위 단추로 고름(이 휴대폰에 기억 · 기본 A) — web/screens/common/mb_theme.js
   A 금테 한지(고급 한식당 차림표) · B 산뜻 앱(흰 바탕 · 알약 숫자) · C 선명 가격표(검정 · 노랑 · 큰 숫자)
   📋 메뉴판 · 🧾 내 주문 합계 · 🎨 할인 메뉴판을 틀 하나로 이어 한 장처럼(대표님 「딱 붙어 보이게」)
   짜임 · 칸 · 세로쓰기 · 높이 맞춤(eqMid · .dlin)은 guest.css 그대로 — 여기선 색 · 틀 · 글씨 굵기만 */

/* 꾸밈 고르기 단추 */
.tm-mb-look { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 4px; margin: 0 0 6px; }
.tm-mb-look .h { font-size: 13px; font-weight: 700; color: var(--tm-text-weak); margin-right: 2px; }
.tm-mb-lk { min-height: 36px; padding: 0 10px; border-radius: 999px; border: 1.5px solid var(--tm-line-strong, var(--tm-line)); background: var(--tm-surface, #fff); color: var(--tm-text); font: inherit; font-size: 13px; font-weight: 700; cursor: pointer; word-break: keep-all; }
.tm-mb-lk.lk-a.on { background: linear-gradient(#6b4415, #4a2f0e); border-color: #B8892B; color: #ffe9b0; }
.tm-mb-lk.lk-b.on { background: #2563eb; border-color: #2563eb; color: #fff; }
.tm-mb-lk.lk-c.on { background: #1a1a1a; border-color: #1a1a1a; color: #ffd400; }

/* 세 꾸밈 공통 — 틀 이어 붙이기 · 어두운 화면 설정에서도 글이 묻히지 않게 글색을 정해 둠 */
.tm-mb[class*="th-"] .tm-mb-list, .tm-mb[class*="th-"] .tm-mb-cart, .tm-mb[class*="th-"] .tm-mb-dh { margin: 0; }
.tm-mb[class*="th-"] .tm-mb-holder { overflow: hidden; }
.tm-sheet .tm-mb[class*="th-"] .tm-mb-list, .tm-sheet .tm-mb[class*="th-"] .tm-mb-cart, .tm-sheet .tm-mb[class*="th-"] .tm-mb-dh { margin-left: -10px; margin-right: -10px; }   /* 손님 화면 — 위 상자들도 할인판(.tm-mb-holder −10px)과 같은 폭 · 테두리가 곧게 이어지게(11-26 대표님) */
.tm-mb[class*="th-"] .tm-mb-t { font-variant-numeric: tabular-nums; }
.tm-mb[class*="th-"] .tm-mb-t th.yel { font-size: .8em; word-break: keep-all; line-height: 1.15; }
.tm-mb[class*="th-"] .tm-mb-t td.fin .amt .mstack .n { font-size: 1.12em; font-weight: 900; }
.tm-mb[class*="th-"] .tm-mb-t td.ck input { width: 22px; height: 22px; }
.tm-mb[class*="th-"] .tm-mb-t td.sel { outline: none; }
.tm-mb[class*="th-"] .tm-mb-exnote:not(.tap) { margin: 0; padding: 7px 4px; text-align: center; font-weight: 800; }
/* 사장님 화면(메뉴판 · 합계 없이 표만) — 표 틀 위도 둥글게 */
.tm-mb.nolist[class*="th-"] .tm-mb-holder { border-radius: 16px; }

/* ── A 금테 한지 ── */
.tm-mb.th-a .tm-mb-list { border: 0; border-radius: 16px 16px 0 0; padding: 14px 16px 10px; color: #2a1a05; background: linear-gradient(#fffaf0, #fff6e2); box-shadow: inset 0 0 0 2px #B8892B, inset 0 0 0 5px #fffaf0, inset 0 0 0 6px #e3c98a; }
.tm-mb.th-a .tm-mb-list .h { font-size: 21px; letter-spacing: 2px; color: #5a3b12; }
.tm-mb.th-a .tm-mb-list .it { border-bottom-color: #d9c79a; }
.tm-mb.th-a .tm-mb-cart { border-radius: 0; border: 2px solid #B8892B; border-top: 0; background: #f4fbf6; color: #14321f; }
.tm-mb.th-a .tm-mb-dh { padding: 8px 0 6px; border: 2px solid #B8892B; border-top: 0; background: linear-gradient(#6b4415, #4a2f0e); color: #ffe9b0; font-size: 19px; letter-spacing: 3px; text-shadow: 0 1px 0 #000; }
.tm-mb.th-a .tm-mb-holder { border: 2px solid #B8892B; border-top: 0; border-radius: 0 0 16px 16px; background: #fffdf7; color: #2a1a05; box-shadow: 0 6px 18px rgba(90, 59, 18, .18); }
.tm-mb.th-a.nolist .tm-mb-holder { border-top: 2px solid #B8892B; }
.tm-mb.th-a .tm-mb-t th, .tm-mb.th-a .tm-mb-t td { border-color: #e6d6ae; }
.tm-mb.th-a .tm-mb-t th { background: #fff3d6; color: #5a3b12; font-size: .92em; }
.tm-mb.th-a .tm-mb-t th.blue { background: linear-gradient(#2f6fc4, #1d4f96); color: #fff; letter-spacing: 2px; }
.tm-mb.th-a .tm-mb-t th.yel { background: linear-gradient(#e0473a, #b42318); color: #fff; }
.tm-mb.th-a .tm-mb-t tr:has(td.mn) > td { border-top: 3px solid #B8892B; }
.tm-mb.th-a .tm-mb-t td.mn { background: #fff6e2; }
.tm-mb.th-a .tm-mb-t td.mn > span.v { color: #3d2508; }
.tm-mb.th-a .tm-mb-t td.pr { background: #fffaf0; color: #5a3b12; }
.tm-mb.th-a .tm-mb-t td.kd.blue { background: #dceafa; color: #1d4f96; }
.tm-mb.th-a .tm-mb-t td.lb { color: #6b5a2e; font-size: .85em; background: #fffdf7; }
.tm-mb.th-a .tm-mb-t td.t.blue { background: #eef5fd; color: #123e78; }
.tm-mb.th-a .tm-mb-t td.t.blue b { color: #1d4f96; font-size: 1.08em; }
.tm-mb.th-a .tm-mb-t td.sel { background: #1d4f96 !important; color: #fff !important; box-shadow: inset 0 0 0 2px #0d2f5e; }
.tm-mb.th-a .tm-mb-t td.sel b, .tm-mb.th-a .tm-mb-t td.sel .h2 { color: #fff !important; }
.tm-mb.th-a .tm-mb-t td.ck input { accent-color: #1d4f96; }
.tm-mb.th-a .tm-mb-t td.fin { background: linear-gradient(#fff1ee, #ffe3dd); }
.tm-mb.th-a .tm-mb-t td.fin .amt .mstack { color: #b42318; }
.tm-mb.th-a .tm-mb-t td.dl.yel { background: linear-gradient(#fff4dc, #ffe7b8); }
.tm-mb.th-a .tm-mb-t td.dl .pct { background: linear-gradient(#e0473a, #b42318); box-shadow: 0 2px 4px rgba(180, 35, 24, .35); }
.tm-mb.th-a .tm-mb-exnote:not(.tap) { color: #7a5a1e; }

/* ── B 산뜻 앱 ── */
.tm-mb.th-b .tm-mb-list { border: 1px solid #e3e7ee; border-radius: 18px 18px 0 0; background: #fff; color: #1b2a41; }
.tm-mb.th-b .tm-mb-list .h { color: #1b2a41; }
.tm-mb.th-b .tm-mb-list .it { border-bottom: 1px solid #eef1f5; }
.tm-mb.th-b .tm-mb-list .it .tag { background: #ff5a4e; }
.tm-mb.th-b .tm-mb-cart { border-radius: 0; border: 1px solid #e3e7ee; border-top: 0; background: #f6fbf8; color: #14321f; }
.tm-mb.th-b .tm-mb-dh { padding: 10px 0 8px; border: 1px solid #e3e7ee; border-top: 0; background: #fff; color: #1b2a41; font-size: 19px; }
.tm-mb.th-b .tm-mb-holder { border: 1px solid #e3e7ee; border-top: 0; border-radius: 0 0 18px 18px; background: #fff; color: #1b2a41; box-shadow: 0 10px 24px rgba(27, 42, 65, .10); }
.tm-mb.th-b.nolist .tm-mb-holder { border-top: 1px solid #e3e7ee; }
.tm-mb.th-b .tm-mb-t th, .tm-mb.th-b .tm-mb-t td { border-color: #eef1f5; }
.tm-mb.th-b .tm-mb-t th { background: #f7f9fc; color: #56637a; font-size: .85em; }
.tm-mb.th-b .tm-mb-t th.blue { background: #eaf2ff; color: #2563eb; }
.tm-mb.th-b .tm-mb-t th.yel { background: #ffeceb; color: #e5372a; }
.tm-mb.th-b .tm-mb-t tr:has(td.mn) > td { border-top: 8px solid #f3f5f9; }
.tm-mb.th-b .tm-mb-t td.mn > span.v { color: #1b2a41; }
.tm-mb.th-b .tm-mb-t td.kd.blue { background: #fff; color: #2563eb; }
.tm-mb.th-b .tm-mb-t td.lb { color: #8a94a6; font-size: .82em; }
.tm-mb.th-b .tm-mb-t td.t.blue { background: #fff; color: #1b2a41; }
.tm-mb.th-b .tm-mb-t td.t.blue b { display: inline-block; padding: 1px 6px; border-radius: 999px; background: #eaf2ff; color: #2563eb; }
.tm-mb.th-b .tm-mb-t td.sel { background: #2563eb !important; color: #fff !important; }
.tm-mb.th-b .tm-mb-t td.sel b { background: #fff !important; color: #2563eb !important; }
.tm-mb.th-b .tm-mb-t td.sel .h2 { color: #dbe7ff; }
.tm-mb.th-b .tm-mb-t td.ck input { accent-color: #2563eb; }
.tm-mb.th-b .tm-mb-t td.fin { background: #fff; }
.tm-mb.th-b .tm-mb-t td.fin .amt .mstack { color: #e5372a; }
.tm-mb.th-b .tm-mb-t td.fin .sub { display: inline-block; margin-top: 3px; padding: 1px 4px; border-radius: 10px; background: #e8f7ee; color: #16884a; font-weight: 700; }
.tm-mb.th-b .tm-mb-t td.dl.yel { background: #fff6f5; }
.tm-mb.th-b .tm-mb-t td.dl .pct { background: #e5372a; border-radius: 999px; }
.tm-mb.th-b .tm-mb-exnote:not(.tap) { color: #56637a; }

/* ── C 선명 가격표 ── */
.tm-mb.th-c .tm-mb-list { border: 3px solid #1a1a1a; border-radius: 14px 14px 0 0; background: #fffbe6; color: #111; }
.tm-mb.th-c .tm-mb-list .h { font-size: 21px; font-weight: 900; }
.tm-mb.th-c .tm-mb-list .it { border-bottom: 2px dashed rgba(26, 26, 26, .2); }
.tm-mb.th-c .tm-mb-list .it .pr { font-weight: 900; }
.tm-mb.th-c .tm-mb-cart { border-radius: 0; border: 3px solid #1a1a1a; border-top: 0; background: #f0fff4; color: #111; }
.tm-mb.th-c .tm-mb-dh { padding: 8px 0; background: #c8ecc9; color: #1b5e20; font-size: 20px; font-weight: 900; letter-spacing: 2px; border-left: 3px solid #1a1a1a; border-right: 3px solid #1a1a1a; }   /* 검정 띠 → 연한 녹색(11-26 대표님 「검정이라 위아래가 끊긴 느낌」) */
.tm-mb.th-c .tm-mb-holder { border: 3px solid #1a1a1a; border-top: 0; border-radius: 0 0 14px 14px; background: #fff; color: #111; }
.tm-mb.th-c.nolist .tm-mb-holder { border-top: 3px solid #1a1a1a; }
.tm-mb.th-c .tm-mb-t th, .tm-mb.th-c .tm-mb-t td { border-color: #cfc8b0; }
.tm-mb.th-c .tm-mb-t th { background: #ffd400; color: #1a1a1a; font-weight: 900; }
.tm-mb.th-c .tm-mb-t th.blue { background: #0b57d0; color: #fff; }
.tm-mb.th-c .tm-mb-t th.yel { background: #e10600; color: #fff; }
.tm-mb.th-c .tm-mb-t tr:has(td.mn) > td { border-top: 3px solid #1a1a1a; }
.tm-mb.th-c .tm-mb-t td.mn { background: #fffbe6; }
.tm-mb.th-c .tm-mb-t td.mn > span.v { color: #000; font-weight: 900; }
.tm-mb.th-c .tm-mb-t td.pr .mstack .n { font-weight: 900; font-size: 1.15em; }
.tm-mb.th-c .tm-mb-t td.kd.blue { background: #0b57d0; color: #fff; }
.tm-mb.th-c .tm-mb-t td.t.blue { background: #e7efff; color: #0b2a66; }
.tm-mb.th-c .tm-mb-t td.t.blue b { font-size: 1.2em; font-weight: 900; color: #0b57d0; }
.tm-mb.th-c .tm-mb-t td.sel { outline: 3px solid #ffd400; outline-offset: -3px; background: #0b57d0 !important; color: #fff !important; }
.tm-mb.th-c .tm-mb-t td.sel b, .tm-mb.th-c .tm-mb-t td.sel .h2 { color: #ffd400 !important; }
.tm-mb.th-c .tm-mb-t td.ck input { accent-color: #0b57d0; width: 24px; height: 24px; }
.tm-mb.th-c .tm-mb-t td.fin { background: #fff3b0; }
.tm-mb.th-c .tm-mb-t td.fin .amt .mstack { color: #e10600; }
.tm-mb.th-c .tm-mb-t td.dl.yel { background: #fff3b0; }
.tm-mb.th-c .tm-mb-t td.dl .pct { background: #e10600; }
.tm-mb.th-c .tm-mb-exnote:not(.tap) { color: #1a1a1a; font-weight: 900; }

/* 긴 말(몽골어 · 러시아어 · 베트남어 등) — 좁은 칸에서 글이 옆 칸으로 넘치던 것(11-25 10개 말 점검) */
.tm-mb-t td.lb, .tm-mb-t th { overflow-wrap: anywhere; hyphens: auto; }
.tm-mb-t td.lb { font-size: .85em; line-height: 1.15; }
.tm-mb-t td.fin .mstack:not(:has(.n)), .tm-mb-t td.pr .mstack:not(:has(.n)) { font-size: .86em; letter-spacing: -.3px; }
.tm-mb-t td.t .mstack:not(:has(.n)) { font-size: .9em; letter-spacing: -.3px; }
.tm-mb-pick, .tm-mb-go, .tm-mb-t td.fin .sub, .tm-mb-t td.t .h2 { overflow-wrap: anywhere; }
/* 📋 사진 한 줄 가격표(카페 · 호프 · 미장원 · 11-25 대표님 「심플하고 좁은 공간에 많은 서비스 · 가격 흐름 · 좌측 사진」) — 사장님 「메뉴 관리」 한 줄을 촘촘하게 */
.tm-mb-list.lines .flow { margin: 0 0 6px; text-align: center; font-size: 14px; font-weight: 800; color: #6b5a2e; font-variant-numeric: tabular-nums; }
.tm-mb-list.lines .ml-list { display: flex; flex-direction: column; gap: 5px; }
.tm-ml.tight { grid-template-columns: 52px minmax(0, 1fr) auto; min-height: 60px; gap: 8px; padding: 4px 10px 4px 4px; }
.tm-ml.tight .tm-ml-ph { width: 52px; height: 52px; border-radius: 8px; }
.tm-ml.tight .tm-ml-ph.none { font-size: 28px; }
.tm-ml.tight .tm-ml-nm { font-size: 16px; }
.tm-ml.tight .tm-ml-pay { font-size: 17px; }
.tm-ml.tight .tm-ml-tag { padding: 0 6px; font-size: 12px; background: #1E5BB8; color: #fff; }
.tm-mb.th-b .tm-ml.tight { border-color: #e3e7ee; }
.tm-mb.th-c .tm-ml.tight { border: 2px solid #1a1a1a; }
/* 📷 사진 없는 칸(11-25 대표님 「포크 · 접시 · 나이프 그림 빼고 사진 넣기로」) — 손님 = 깔끔한 빈 칸 · 사장님 = 「📷 사진 넣기」 */
.tm-ml-ph.none.blank { background: linear-gradient(135deg, #fbf5e6, #f3e8cc); }
.tm-ml-ph.none.add { flex-direction: column; gap: 1px; border: 2px dashed #B8892B; background: #fffaf0; color: #7a5a1c; cursor: pointer; font-size: 22px; }
.tm-ml-ph.none.add small { font-size: 11px; font-weight: 800; line-height: 1.1; text-align: center; }
.tm-ml.tight .tm-ml-ph.none.add { font-size: 18px; } .tm-ml.tight .tm-ml-ph.none.add small { font-size: 10px; }
.tm-ml-ph.none.add:focus-visible { outline: 3px solid #1E5BB8; }
.o-phadd .o-phadd-nm { margin: 0 0 6px; font-weight: 800; font-size: 17px; }
.o-phadd .o-filebtn.cam { margin-bottom: 6px; }
/* 🧾 합계 칸 메뉴 이름이 한 글자씩 세로로 꺾이지 않게(11-25 대표님 「카페라떼」) — 이름 칸이 좁아지면 − n개 + 를 다음 줄로 */
.tm-mb .tm-mb-cart .ln .nm { flex: 1 1 7em; word-break: keep-all; overflow-wrap: break-word; }
