body{margin:0;background:#FFF8E6}
*{box-sizing:border-box}
a{color:#1C3FB0}a:hover{color:#122A7A}
button,input,select,textarea{font:inherit;color:inherit}
:focus-visible{outline:3px solid #2F5FF2;outline-offset:2px}
.h{font-family:'Fredoka',ui-rounded,'Nunito',system-ui,sans-serif}
.btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:44px;padding:0 18px;border:2px solid #1B1A17;border-radius:12px;background:#FFFFFF;color:#1B1A17;font-weight:700;font-size:14px;cursor:pointer;text-decoration:none;white-space:nowrap}
.btn:hover{background:#FFF1C2;color:#1B1A17}
.btn-p{background:#2F5FF2;border-color:#1B1A17;color:#FFFFFF}
.btn-p:hover{background:#1F48CC;color:#FFFFFF}
.btn-y{background:#FBC20D}
.btn-y:hover{background:#EEB400}
.btn-r{color:#A3260A;border-color:#A3260A}
.btn-r:hover{background:#FDE2DA;color:#A3260A}
.btn-s{min-height:36px;padding:0 12px;font-size:13px;border-radius:10px}
.navbtn{display:flex;align-items:center;gap:12px;width:100%;min-height:44px;padding:0 14px;border:0;border-radius:12px;font-weight:600;font-size:15px;cursor:pointer;text-align:left;white-space:nowrap}
.navbtn:hover{box-shadow:inset 0 0 0 2px #1B1A17}
.chip{display:inline-flex;align-items:center;gap:6px;min-height:38px;padding:0 14px;border:2px solid #1B1A17;border-radius:999px;font-weight:600;font-size:13px;cursor:pointer;white-space:nowrap}
.pill{display:inline-flex;align-items:center;padding:3px 10px;border-radius:999px;font-size:12px;font-weight:700;white-space:nowrap;line-height:1.4}
.card{background:#FFFFFF;border:2px solid #1B1A17;border-radius:18px;box-shadow:4px 4px 0 #1B1A17}
.inp{width:100%;min-height:44px;padding:0 12px;border:2px solid #1B1A17;border-radius:12px;background:#FFFFFF;font-size:15px}
textarea.inp{padding:10px 12px;min-height:84px;resize:vertical}
.lbl{display:flex;flex-direction:column;gap:6px;font-size:13px;font-weight:700}
.rowbtn{display:flex;flex-wrap:wrap;gap:12px 24px;align-items:center;justify-content:space-between;width:100%;text-align:left;background:#FFFFFF;border:2px solid #1B1A17;border-radius:16px;padding:14px 18px;cursor:pointer;color:#1B1A17}
.rowbtn:hover{background:#FFFBEF;box-shadow:3px 3px 0 #1B1A17}
.gt{display:grid;align-items:center;gap:12px;padding:12px 16px;border-bottom:1px solid #EFE6CF;font-size:14px}
.gh{font-size:12px;font-weight:700;text-transform:uppercase;letter-spacing:.05em;color:#5E574A;border-bottom:2px solid #1B1A17}
.muted{color:#6B6354}
.key{min-height:60px;border:2px solid #1B1A17;border-radius:16px;background:#FFFFFF;font-family:'Fredoka',ui-rounded,system-ui,sans-serif;font-size:24px;font-weight:600;cursor:pointer}
.key:hover{background:#FFF1C2}
.key:active{transform:translate(2px,2px)}
.tabbtn{min-height:44px;padding:0 16px;border:0;border-bottom:3px solid transparent;background:transparent;font-weight:700;font-size:15px;cursor:pointer}
/* ---- Top bar, menu and notifications ---- */
.app-root{overflow-x:clip}
.topbar{background:#FBC20D;border-bottom:2px solid #1B1A17;padding:calc(10px + env(safe-area-inset-top)) clamp(14px,3vw,40px) 12px;display:flex;flex-direction:column;gap:10px}
.topbar-row{display:flex;align-items:center;justify-content:space-between;gap:10px;min-width:0}
.brand{display:flex;align-items:center;gap:10px;min-width:0}
.brand-badge{flex:0 0 auto;display:flex;align-items:center;justify-content:center;width:54px;height:54px;background:#F5E6C8;border:2px solid #1B1A17;border-radius:14px;box-shadow:3px 3px 0 #1B1A17}
.brand-name{font-weight:700;font-size:18px;line-height:1.05}
.topbar-right{display:flex;align-items:center;gap:8px;min-width:0}
.whoami{display:flex;flex-direction:column;text-align:right;min-width:0;line-height:1.25;margin-right:4px}
.menubtn{min-height:44px;padding:0 16px 0 12px;gap:10px;font-size:15px;box-shadow:3px 3px 0 #1B1A17}
.menubtn:active{transform:translate(2px,2px);box-shadow:1px 1px 0 #1B1A17}
.syncpill{display:flex;align-items:center;gap:8px;min-width:0;max-width:60%;padding:6px 12px;border:2px solid #1B1A17;border-radius:12px;font-size:12px;font-weight:700}
.syncpill span:last-child{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.bellbtn{position:relative;padding:0 10px}
.bellcount{position:absolute;top:-8px;right:-8px;min-width:22px;height:22px;padding:0 5px;border-radius:999px;background:#C42D0B;color:#FFFFFF;border:2px solid #1B1A17;font-size:11px;font-weight:800;display:flex;align-items:center;justify-content:center;line-height:1}
.drawer-bg{position:fixed;inset:0;z-index:70;background:rgba(27,26,23,.45)}
.drawer,.notifpanel{position:fixed;top:0;bottom:0;z-index:71;overflow-y:auto;-webkit-overflow-scrolling:touch;display:flex;flex-direction:column;gap:16px;padding:calc(16px + env(safe-area-inset-top)) 14px calc(20px + env(safe-area-inset-bottom))}
.drawer{left:0;width:min(300px,86vw);background:#FBC20D;border-right:2px solid #1B1A17}
.notifpanel{right:0;width:min(400px,92vw);background:#FFF8E6;border-left:2px solid #1B1A17}
.pushbox{display:flex;flex-direction:column;gap:10px;padding:14px;background:#FFFFFF;border:2px solid #1B1A17;border-radius:14px;font-size:14px}
.notifrow{display:flex;flex-direction:column;gap:4px;width:100%;text-align:left;padding:12px 14px;border:2px solid #1B1A17;border-radius:14px;cursor:pointer;color:#1B1A17;font:inherit}
.notifrow:hover{box-shadow:3px 3px 0 #1B1A17}
@media (max-width:640px){
.whoami{display:none}
.brand-badge{width:46px;height:46px}
.brand-badge img{width:34px !important}
.brand-name{font-size:16px}
.topbar-right .btn-s{padding:0 10px}
}
/* ---- Phones: keep everything inside the screen ---- */
@media (max-width:700px){
main{overflow-wrap:break-word}
.btn,.chip{white-space:normal;max-width:100%;text-align:center}
.pill{white-space:normal;max-width:100%}
.card{box-shadow:3px 3px 0 #1B1A17}
/* wide tables become one card per row, with the column name beside each value */
:is([style*="min-width: 720px"],[style*="min-width: 760px"],[style*="min-width: 780px"],[style*="min-width: 820px"],[style*="min-width: 900px"],[style*="min-width: 940px"],[style*="min-width: 1080px"]){min-width:0 !important}
:is([style*="min-width: 720px"],[style*="min-width: 760px"],[style*="min-width: 780px"],[style*="min-width: 820px"],[style*="min-width: 900px"],[style*="min-width: 940px"],[style*="min-width: 1080px"]) > .gt.gh{display:none !important}
:is([style*="min-width: 720px"],[style*="min-width: 760px"],[style*="min-width: 780px"],[style*="min-width: 820px"],[style*="min-width: 900px"],[style*="min-width: 940px"],[style*="min-width: 1080px"]) > .gt{display:flex !important;flex-direction:column;align-items:stretch !important;gap:6px !important;padding:12px 14px !important;border-bottom:2px solid #EFE6CF}
:is([style*="min-width: 720px"],[style*="min-width: 760px"],[style*="min-width: 780px"],[style*="min-width: 820px"],[style*="min-width: 900px"],[style*="min-width: 940px"],[style*="min-width: 1080px"]) > .gt > *{min-width:0;max-width:100%;text-align:left !important;justify-content:flex-start !important;overflow-wrap:anywhere}
:is([style*="min-width: 720px"],[style*="min-width: 760px"],[style*="min-width: 780px"],[style*="min-width: 820px"],[style*="min-width: 900px"],[style*="min-width: 940px"],[style*="min-width: 1080px"]) > .gt > [data-label]{display:block;position:relative;padding-left:112px !important;min-height:22px;align-items:flex-start !important}
:is([style*="min-width: 720px"],[style*="min-width: 760px"],[style*="min-width: 780px"],[style*="min-width: 820px"],[style*="min-width: 900px"],[style*="min-width: 940px"],[style*="min-width: 1080px"]) > .gt > [data-label]::before{content:attr(data-label);position:absolute;left:0;top:1px;width:104px;font-size:12px;font-weight:700;line-height:1.5;color:#6B6354;text-transform:none;letter-spacing:0;text-align:left}
:is([style*="min-width: 720px"],[style*="min-width: 760px"],[style*="min-width: 780px"],[style*="min-width: 820px"],[style*="min-width: 900px"],[style*="min-width: 940px"],[style*="min-width: 1080px"]) > .gt > [data-label][style*="border: 2px"]{margin-left:112px;width:calc(100% - 112px) !important;padding-left:6px !important;min-height:44px !important;justify-content:center !important}
:is([style*="min-width: 720px"],[style*="min-width: 760px"],[style*="min-width: 780px"],[style*="min-width: 820px"],[style*="min-width: 900px"],[style*="min-width: 940px"],[style*="min-width: 1080px"]) > .gt > [data-label][style*="border: 2px"]::before{left:-114px;top:50%;transform:translateY(-50%)}
:is([style*="min-width: 720px"],[style*="min-width: 760px"],[style*="min-width: 780px"],[style*="min-width: 820px"],[style*="min-width: 900px"],[style*="min-width: 940px"],[style*="min-width: 1080px"]) > .gt > :empty{display:none}
}
@media print{
@page{size:A4;margin:12mm}
html,body{background:#FFFFFF !important}
.app-root{min-height:0 !important;height:0 !important;overflow:hidden !important;background:none !important}
.doc-wrap{position:absolute !important;inset:auto !important;left:0 !important;top:0 !important;width:100% !important;overflow:visible !important;padding:0 !important;background:none !important}
.print-area,.print-area *{-webkit-print-color-adjust:exact;print-color-adjust:exact}
.print-area{padding:0 !important}
body *{visibility:hidden}
.print-area,.print-area *{visibility:visible}
.print-area{position:absolute;left:0;top:0;width:100%;box-shadow:none !important;border:0 !important}
.no-print{display:none !important}
}

/* Booth POS: drinks on the left, order on the right on wider screens */
@media (min-width:900px){.boothsell{grid-template-columns:minmax(0,1fr) 360px}}
/* Café POS: menu left, order right on iPad and laptop */
@media (min-width:760px){.pcsell{grid-template-columns:minmax(0,1fr) 390px}}
