:root{
  --navy:#1d4e9e; --navy-d:#163c7a; --sand:#f6efe4; --sand-d:#efe5d2;
  --ink:#22293a; --sub:#7a8296; --line:#e7e0d2; --ok:#1e9e63; --warn:#e2762d; --red:#d94040;
  --card:#fff; --rad:16px;
}
*{margin:0;padding:0;box-sizing:border-box;-webkit-tap-highlight-color:transparent}
body{font-family:'Pretendard Variable',Pretendard,-apple-system,BlinkMacSystemFont,'Segoe UI','Noto Sans KR','Helvetica Neue',Arial,sans-serif;background:var(--sand);color:var(--ink);font-size:15px}
button{font-family:inherit;border:none;cursor:pointer;background:none;touch-action:manipulation}
input,textarea,select{font-family:inherit}
.hide{display:none!important}
.badge{display:inline-block;padding:2px 10px;border-radius:99px;font-size:12px;font-weight:700}
.b-new{background:#fdeaea;color:var(--red)} .b-ok{background:#e5f6ed;color:var(--ok)} .b-off{background:#eef0f4;color:var(--sub)} .b-cook{background:#fdf1e3;color:var(--warn)}
.a-serve{background:var(--ok);color:#fff}
.a-paid{background:#eef0f4;color:var(--sub)}
.kcard.s-cooking{border-top-color:var(--warn)}
.kcard.s-served{border-top-color:var(--ok)}
.kcard.s-paid{border-top-color:#b9c0cd}
.btn{border-radius:12px;padding:12px 18px;font-weight:700;font-size:15px}
.btn-p{background:var(--navy);color:#fff}
.btn-o{background:#fff;color:var(--navy);border:1.5px solid var(--navy)}
.btn-g{background:#eef0f4;color:var(--ink)}
.brandchip{background:#fff;border-radius:12px;padding:5px 12px;display:inline-block}
.brandchip img{height:40px;display:block}
.wordmark{color:#fff;font-weight:900;font-size:13.5px;line-height:1.3;letter-spacing:.2px;display:flex;flex-direction:column;white-space:nowrap}
.wordmark span{font-size:9.5px;font-weight:800;letter-spacing:.5px;color:#ffd94a;margin-top:1px}
@media(max-width:460px){.langlabel{display:none}}
#toast{position:fixed;left:50%;transform:translateX(-50%);bottom:110px;background:var(--ink);color:#fff;padding:12px 22px;border-radius:99px;font-weight:700;font-size:14px;z-index:99;opacity:0;transition:.3s;pointer-events:none;white-space:nowrap}
#toast.on{opacity:1}
.demoflag{position:fixed;bottom:8px;left:8px;background:#ffe9c9;color:#8a5a12;font-size:11px;font-weight:700;padding:4px 10px;border-radius:99px;z-index:98}

/* ---------- customer ---------- */
#custApp{max-width:520px;margin:0 auto;min-height:100vh;padding-bottom:120px}
.chead{position:sticky;top:0;z-index:40;background:var(--navy);color:#fff;padding:14px 16px 12px;border-radius:0 0 18px 18px}
.chead .row1{display:flex;align-items:center;justify-content:space-between}
.chead .tbl{background:rgba(255,255,255,.16);border-radius:10px;padding:6px 12px;font-weight:800;font-size:13px}
.langsel{background:rgba(255,255,255,.16);color:#fff;border:none;border-radius:10px;padding:6px 8px;font-weight:700;font-size:13px;margin-left:6px}
.langsel option{color:#222}
.langlabel{font-size:11px;opacity:.85;font-weight:700;margin-left:10px;letter-spacing:.5px}
.viewtabs{display:flex;gap:8px;margin-top:12px}
.viewtabs button{flex:1;padding:8px 0;border-radius:10px;background:rgba(255,255,255,.13);color:#fff;font-weight:700;font-size:13px}
.viewtabs button.on{background:#fff;color:var(--navy)}
#banner{margin:12px 16px 0;background:#fff8e0;border:1.5px solid #f0d890;border-radius:14px;padding:12px 16px;font-weight:700;font-size:14px;color:#7a5c10;line-height:1.5}
.cattabs{display:flex;gap:8px;overflow-x:auto;padding:14px 16px 6px;scrollbar-width:none}
.cattabs::-webkit-scrollbar{display:none}
.cattabs button{white-space:nowrap;padding:10.5px 16px;border-radius:99px;background:#fff;color:var(--sub);font-weight:700;font-size:13.5px;border:1.5px solid var(--line)}
.cattabs button.on{background:var(--navy);color:#fff;border-color:var(--navy)}
.items{padding:10px 16px;display:flex;flex-direction:column;gap:12px}
.icard{background:var(--card);border-radius:var(--rad);overflow:hidden;box-shadow:0 2px 10px rgba(29,78,158,.06)}
.icard>img{width:100%;height:150px;object-fit:cover;display:block}
.icard .body{padding:13px 15px 15px}
.icard .nm{font-weight:800;font-size:15.5px;word-break:break-word;line-height:1.4}
.icard .ds{color:var(--sub);font-size:12.5px;line-height:1.55;margin:6px 0 10px;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.icard .ft{display:flex;align-items:center;justify-content:space-between;gap:10px;row-gap:9px;flex-wrap:wrap;margin-top:2px}
.icard .pr{font-weight:800;font-size:15.5px;color:var(--navy);line-height:1.4;word-break:break-word}
.icard .add{background:var(--navy);color:#fff;border-radius:10px;padding:8px 16px;font-weight:700;font-size:13px;white-space:nowrap;flex:none;margin-left:auto}
.icard .pr{min-width:0}
.icard.h{display:flex;align-items:center}
.icard.h .body{flex:1;min-width:0}
.icard.h .thumb{width:96px;height:96px;border-radius:12px;object-fit:cover;margin:12px 14px 12px 0;flex:none;background:#f0ece2}
.icard.off{opacity:.55}
.icard.off .add{background:#c6ccd8;pointer-events:none}
.soldtag{display:inline-block;background:var(--red);color:#fff;font-size:10.5px;font-weight:800;border-radius:99px;padding:2px 8px;margin-left:6px;vertical-align:2px}
.unit{font-size:11px;color:var(--sub);font-weight:600;letter-spacing:0}
.icard .pr .unit{display:block;margin-top:2px}
.minbadge{display:inline-block;background:#fff3d6;color:#9a6b00;border:1px solid #edd9a3;font-size:11px;font-weight:800;border-radius:99px;padding:2px 9px;margin:4px 0 1px}
.minnote{background:#fff3d6;border:1.5px solid #edd9a3;color:#8a5f00;border-radius:12px;padding:10px 14px;font-size:13px;font-weight:700;margin-bottom:12px}
.timer{font-weight:700;font-size:12.5px;color:var(--sub);white-space:nowrap}
.timer.warn{color:var(--red)}
.stable{width:100%;border-collapse:collapse;font-size:13.5px;min-width:820px}
.stable th{background:#f4f6fa;color:var(--sub);font-size:12px;padding:10px 12px;text-align:right;white-space:nowrap}
.stable th:first-child,.stable td:first-child{text-align:left}
.stable td{padding:10px 12px;border-top:1px solid #eef0f4;text-align:right;white-space:nowrap}
.callrow{display:flex;gap:10px;padding:10px 16px 0}
.callrow button{flex:1;background:#fff;border:1.5px solid var(--line);color:var(--navy);border-radius:12px;padding:12px 0;font-weight:800;font-size:14px;box-shadow:0 2px 8px rgba(29,78,158,.08);transition:background .25s,color .25s,border-color .25s}
.callrow button.sent{background:var(--navy);border-color:var(--navy);color:#fff}

.sheetwrap{position:fixed;inset:0;background:rgba(20,28,48,.5);z-index:60;display:flex;align-items:flex-end;justify-content:center}
.sheet{background:#fff;border-radius:22px 22px 0 0;width:100%;max-width:520px;max-height:90vh;max-height:90dvh;overflow-y:auto;position:relative;padding-bottom:env(safe-area-inset-bottom);overscroll-behavior:contain;-webkit-overflow-scrolling:touch}
.sheet .grab{width:44px;height:5px;border-radius:99px;background:#dcd5c6;margin:10px auto 0}
.shxw{position:sticky;top:0;height:0;text-align:right;z-index:6}
.shx{width:40px;height:40px;border-radius:99px;background:rgba(241,242,246,.95);color:#5a6272;font-size:17px;font-weight:700;margin:14px 16px 0 0;line-height:1;border:none;box-shadow:0 2px 10px rgba(0,0,0,.15)}
.sheet img.hero{width:100%;height:150px;object-fit:cover}
.sheet .inner{padding:16px 18px 20px}
.sheet h3{font-size:18px;font-weight:900}
.sheet .price{color:var(--navy);font-weight:900;font-size:17px;margin:6px 0 10px}
.sheet .desc{color:var(--sub);font-size:13.5px;line-height:1.65;background:var(--sand);border-radius:12px;padding:12px 14px;margin-bottom:14px}
.vgroup{border:1.5px solid var(--line);border-radius:12px;margin-bottom:14px;overflow:hidden}
.vopt{display:flex;align-items:center;gap:10px;padding:11px 14px;border-bottom:1px solid var(--line);font-size:14px;font-weight:600;cursor:pointer}
.vopt:last-child{border-bottom:none}
.vopt input{accent-color:var(--navy);width:17px;height:17px}
.vopt b{margin-left:auto;color:var(--navy);font-size:13.5px}
.vopt small{color:var(--sub);font-weight:600}
.optbox{border:1.5px solid var(--line);border-radius:12px;padding:12px 14px;display:flex;align-items:center;justify-content:space-between;margin-bottom:14px}
.optbox label{font-weight:700;font-size:14px;display:flex;gap:10px;align-items:center}
.optbox input{width:19px;height:19px;accent-color:var(--navy)}
.optbox .op{color:var(--navy);font-weight:800;font-size:13.5px}
.notein{width:100%;border:1.5px solid var(--line);border-radius:12px;padding:11px 13px;font-size:14px;margin-bottom:16px;resize:none;background:#fff}
.qtyrow{display:flex;align-items:center;justify-content:space-between;margin-bottom:16px}
.stepper{display:flex;align-items:center;gap:16px;border:1.5px solid var(--line);border-radius:12px;padding:7px 14px}
.stepper button{font-size:22px;font-weight:800;color:var(--navy);width:46px;padding:6px 0}
.stepper span{font-weight:900;font-size:17px;min-width:22px;text-align:center}
.sheet .cta{width:100%;background:var(--navy);color:#fff;border-radius:14px;padding:15px 0;font-weight:800;font-size:16px;position:sticky;bottom:10px;box-shadow:0 6px 20px rgba(29,78,158,.4)}
.sheet .ctabar{position:sticky;bottom:0;background:linear-gradient(to top,#fff 72%,rgba(255,255,255,0));padding:14px 0 10px;z-index:5}
.sheet .ctabar .cta{position:static;box-shadow:0 6px 20px rgba(29,78,158,.35)}
#cartbar{position:fixed;bottom:0;left:0;right:0;z-index:50;display:flex;justify-content:center;padding:0 14px calc(14px + env(safe-area-inset-bottom))}
#cartbar button{width:100%;max-width:492px;background:var(--navy);color:#fff;border:1.5px solid rgba(255,255,255,.45);border-radius:16px;padding:15px 20px;font-weight:800;font-size:15.5px;display:flex;justify-content:space-between;align-items:center;box-shadow:0 -4px 14px rgba(20,28,48,.18),0 10px 26px rgba(29,78,158,.45)}
#cartbar .cnt{background:#fff;color:var(--navy);border-radius:99px;min-width:24px;height:24px;display:inline-flex;align-items:center;justify-content:center;font-size:13px;margin-right:9px}
.cline{display:flex;gap:12px;align-items:flex-start;padding:13px 0;border-bottom:1px solid var(--line)}
.cline .nm{font-weight:700;font-size:14.5px}
.cline .meta{color:var(--sub);font-size:12px;margin-top:3px}
.cline .pr{font-weight:800;color:var(--navy);font-size:14px;margin-top:4px}
.cline .right{margin-left:auto}
.mini{display:flex;align-items:center;gap:10px;border:1.5px solid var(--line);border-radius:10px;padding:3px 9px;margin-top:6px}
.mini button{font-size:16px;font-weight:800;color:var(--navy)}
.mini button.rm{color:#e0483e;display:inline-flex;align-items:center;justify-content:center}
.mini span{font-weight:800;font-size:14px;min-width:16px;text-align:center}
.totrow{display:flex;justify-content:space-between;padding:16px 0 6px;font-weight:900;font-size:17px}
.hist{padding:14px 16px 110px;display:flex;flex-direction:column;gap:12px}
.ocard{background:#fff;border-radius:var(--rad);padding:15px 16px;box-shadow:0 2px 10px rgba(29,78,158,.06)}
.ocard .top{display:flex;justify-content:space-between;align-items:center;margin-bottom:8px}
.ocard .oid{font-weight:800;font-size:13px;color:var(--sub)}
.ocard ul{list-style:none;margin:6px 0}
.ocard li{display:flex;justify-content:space-between;font-size:13.5px;padding:3px 0}
.ocard li .q{color:var(--sub)}
.ocard .tt{display:flex;justify-content:space-between;font-weight:900;border-top:1px dashed var(--line);padding-top:8px;margin-top:6px}
.empty{text-align:center;color:var(--sub);padding:60px 20px;font-size:14px;line-height:1.7}
/* done overlay */
#doneWrap{position:fixed;inset:0;background:var(--sand);z-index:80;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:14px;text-align:center;padding:30px}
#doneWrap .big{font-size:52px}
#doneWrap h2{font-size:20px}
#doneWrap p{color:var(--sub);font-size:14px;line-height:1.6}
/* language overlay */
#langOverlay{position:fixed;inset:0;background:rgba(20,28,48,.55);backdrop-filter:blur(4px);z-index:90;display:flex;align-items:center;justify-content:center;padding:24px}
#langOverlay .box{background:#fff;border-radius:22px;padding:28px 22px;width:100%;max-width:360px;text-align:center}
#langOverlay h2{font-size:16px;margin-bottom:18px;line-height:1.5}
.langbtn{display:flex;align-items:center;gap:12px;width:100%;padding:13px 16px;border-radius:14px;background:var(--sand);margin-bottom:10px;font-size:16px;font-weight:700}
.langbtn .fl{font-size:22px}

/* ---------- reception / admin ---------- */
.khead{background:var(--navy);color:#fff;padding:14px 22px;display:flex;align-items:center;gap:14px;flex-wrap:wrap}
.khead .sub{opacity:.75;font-size:12.5px;font-weight:600}
.khead .sp{flex:1}
.khead button,.khead select,.khead input{background:rgba(255,255,255,.15);color:#fff;border:none;border-radius:10px;padding:8px 14px;font-weight:700;font-size:13px;cursor:pointer}
.khead select option{color:#222}
.kstats{display:flex;gap:14px;padding:14px 22px 0;flex-wrap:wrap}
.stat{background:#fff;border-radius:14px;padding:12px 20px;min-width:130px;box-shadow:0 2px 8px rgba(0,0,0,.05)}
.stat .k{font-size:12px;color:var(--sub);font-weight:700}
.stat .v{font-size:21px;font-weight:700;color:var(--navy);margin-top:2px}
.kboard{padding:16px 22px 40px;display:grid;grid-template-columns:repeat(auto-fill,minmax(320px,1fr));gap:18px;align-items:start;background:#f0f2f6;min-height:70vh}
.kcard{background:#fff;border-radius:16px;padding:20px 26px;box-shadow:0 2px 10px rgba(0,0,0,.06);border-top:5px solid var(--sub)}
.kcard.s-new{border:3px solid var(--red);border-top:6px solid var(--red);animation:newblink 1s ease-in-out infinite}
.kcard.s-confirmed{border-top-color:var(--ok)}
.kcard.s-cancelled{border-top-color:#b9c0cd;opacity:.7}
@keyframes pulse{0%,100%{box-shadow:0 2px 10px rgba(0,0,0,.06)}50%{box-shadow:0 2px 18px rgba(217,64,64,.35)}}
@keyframes newblink{
  0%,100%{background:#fff;box-shadow:0 2px 10px rgba(0,0,0,.06)}
  50%{background:#fdeeee;box-shadow:0 0 0 6px rgba(217,64,64,.28),0 2px 18px rgba(217,64,64,.45)}
}
.newbadge{background:var(--red);color:#fff;border-radius:8px;padding:4px 10px;font-weight:700;font-size:12px;letter-spacing:.3px;animation:badgeblink .8s step-end infinite}
@keyframes badgeblink{0%,100%{opacity:1}50%{opacity:.25}}
.seqno{background:#1e9e63;color:#fff;border-radius:10px;padding:6px 12px;font-weight:700;font-size:18px}
.kcard .top{display:flex;align-items:center;gap:10px;margin-bottom:16px;flex-wrap:wrap}
.kcard .tno{background:var(--navy);color:#fff;border-radius:10px;padding:6px 16px;font-weight:700;font-size:18px;letter-spacing:.2px}
.kcard .tm{color:var(--sub);font-size:12px;font-weight:600;margin-left:auto;text-align:right;line-height:1.5}
.kcard ul{list-style:none;margin:6px 0 10px}
.kcard li{display:flex;justify-content:space-between;gap:10px;padding:10px 0;font-size:14px;line-height:1.6;border-bottom:1px dashed #eee}
.kcard li b{font-weight:600}
.kcard li .qn{color:var(--navy);font-weight:700;white-space:nowrap}
.kcard .note{background:#fff8e6;border-radius:8px;padding:7px 10px;font-size:12.5px;color:#8a6d1d;margin:6px 0}
.kcard .notevi{margin-top:5px;padding-top:5px;border-top:1px dashed #e3d4a0;color:#14713f;font-weight:700}
.kcard .tt{display:flex;justify-content:space-between;font-weight:700;font-size:15px;margin:14px 0 16px}
.kcard .acts{display:flex;flex-wrap:wrap;gap:8px}
.kcard .acts button{flex:1;border-radius:10px;padding:9px 0;font-weight:700;font-size:12.5px}
/* 주 액션(조리시작/서빙완료/결제완료): 풀폭 크게, 보조(취소/이동)는 아래 작게 */
.kcard .acts .a-confirm,.kcard .acts .a-serve,.kcard .acts .a-paid{flex:1 1 100%;order:1;padding:15px 0;font-size:15.5px;border-radius:12px}
.kcard .acts .a-cancel,.kcard .acts .a-move{order:2}
.a-confirm{background:var(--ok);color:#fff}
.a-cancel{background:#fff;color:var(--red);border:1.5px solid var(--red)}
/* admin */
.awrap{max-width:1080px;margin:0 auto;padding:20px 22px 80px}
.acard input[type=text],.acard input[type=email],.acard input[type=number],.acard input[type=password],.acard select,.loginbox input{border:1.5px solid #dde1e8;border-radius:8px;padding:8px 10px;font-size:13.5px;background:#fff}
.acard input:focus,.acard select:focus{outline:none;border-color:var(--navy)}
.acard{background:#fff;border-radius:16px;padding:18px 20px;box-shadow:0 2px 8px rgba(0,0,0,.05);margin-bottom:18px}
.acard h3{font-size:15px;margin-bottom:12px}
.arow{display:grid;grid-template-columns:100px 1fr 1fr 175px 60px 76px;gap:8px;align-items:center;padding:7px 0;border-bottom:1px solid #f0f0f0;font-size:13px}
.arow input[type=text],.arow input[type=number]{border:1.5px solid #dde1e8;border-radius:8px;padding:7px 9px;font-size:13px;width:100%}
.arow .del{color:var(--red);font-weight:800;cursor:pointer;text-align:center}
.langflag{font-size:16px;margin-left:7px;vertical-align:-1px}
.ahead{font-weight:800;color:var(--sub);font-size:11.5px;border-bottom:2px solid #e8e8e8;position:sticky;top:0;background:#fff;z-index:2}
#itemRows .arow{padding:12px 0;align-items:start}
#itemRows .arow>span{display:flex;flex-direction:column;justify-content:flex-start}
#itemRows .arow>span:nth-child(5),#itemRows .arow>span:last-child{flex-direction:row;align-items:center;justify-content:center;padding-top:5px}
#itemRows .arow:hover{background:#f7f9fd}
.acat{color:var(--sub);font-weight:700;line-height:1.4}
.aid{font-size:10.5px;color:#aab0bd;font-weight:600;margin-top:2px}
.achips{margin-top:5px;display:flex;gap:4px;flex-wrap:wrap}
.achip{display:inline-block;background:#eef0f5;color:#6a7284;font-size:10.5px;font-weight:700;border-radius:99px;padding:2px 8px}
.achip.g100{background:#fff3d6;color:#9a6b00}
.achip.v{background:#eef3fc;color:#1d4e9e}
.avp{display:flex;align-items:center;gap:7px;margin-bottom:5px}
.avp label{flex:none;width:64px;font-size:10px;color:#8a92a3;font-weight:700;text-align:right;line-height:1.25;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.avp input{flex:1;min-width:0}
.avp.ming label{color:#9a6b00}
.avp.ming input{border-color:#edd9a3;background:#fffdf6}
#itemRows .arow>span:nth-child(4) input[data-f=price]{margin-top:0}
.nmopts{margin-top:12px;border-top:1px solid #eef0f4;padding-top:12px}
.nmck{display:flex;align-items:center;gap:8px;font-weight:700;font-size:13.5px;margin:8px 0 6px;cursor:pointer}
.nmck input{width:17px;height:17px}
.nmbox{margin:2px 0 10px 25px}
.nmbox input{border:1.5px solid #dde1e8;border-radius:8px;padding:7px 9px;font-size:13px}
.nmhint{display:block;font-size:11.5px;color:#98a0b0;margin-top:5px}
.nmvrow{display:flex;gap:8px;align-items:center;margin-bottom:6px}
.nmvrow .nv_l{flex:2;min-width:160px}
.nmvrow .nv_p{flex:1;min-width:120px}
.nmvrow .del{color:var(--red);font-weight:800;cursor:pointer;padding:0 4px}
.switch{position:relative;width:40px;height:22px;display:inline-block}
.switch input{opacity:0;width:0;height:0}
.slider{position:absolute;cursor:pointer;inset:0;background:#ccd2dd;border-radius:99px;transition:.2s}
.slider:before{content:"";position:absolute;height:16px;width:16px;left:3px;top:3px;background:#fff;border-radius:99px;transition:.2s}
.switch input:checked + .slider{background:var(--red)}
.switch input:checked + .slider:before{transform:translateX(18px)}
.loginbox{max-width:360px;margin:80px auto;background:#fff;border-radius:18px;padding:28px;box-shadow:0 8px 30px rgba(29,78,158,.1);text-align:center}
.loginbox input{width:100%;border:1.5px solid #dde1e8;border-radius:10px;padding:11px 13px;font-size:14px;margin-bottom:10px}
@media(max-width:900px){ .arow{grid-template-columns:84px 1fr 150px 54px 70px} .arow .c-vi{display:none} }
@media(max-width:700px){ .kboard{grid-template-columns:1fr} }
