:root{--bg:#070b14;--panel:#0d1422;--panel2:#111a2b;--line:#24324a;--text:#f3f7ff;--muted:#8290a9;--blue:#5d72ff;--violet:#a94dff;--green:#24d27c;--yellow:#ffb52f;--red:#ff5566;--shadow:0 22px 60px rgba(0,0,0,.38)}*{box-sizing:border-box}html,body{margin:0;min-height:100%;font-family:"Segoe UI",Arial,sans-serif;background:radial-gradient(circle at 12% 0,#182a52 0,transparent 35%),radial-gradient(circle at 92% 10%,#241447 0,transparent 32%),var(--bg);color:var(--text)}a{text-decoration:none;color:inherit}button,input,textarea{font:inherit}.shell{min-height:100vh}.topbar{height:76px;display:flex;align-items:center;justify-content:space-between;padding:0 28px;border-bottom:1px solid rgba(255,255,255,.06);background:rgba(7,11,20,.82);backdrop-filter:blur(18px);position:sticky;top:0;z-index:30}.brand{display:flex;align-items:center;gap:12px}.brand img{width:205px;height:56px;object-fit:contain;display:block}.userbox{display:flex;align-items:center;gap:12px}.user-dot{width:10px;height:10px;border-radius:50%;background:var(--green);box-shadow:0 0 14px var(--green)}.btn{border:1px solid var(--line);background:#10192a;color:#dce6fa;border-radius:11px;padding:10px 15px;font-size:12px;font-weight:800;cursor:pointer}.btn.primary{background:linear-gradient(135deg,var(--blue),var(--violet));border:0;box-shadow:0 12px 30px rgba(94,102,255,.25)}.page{max-width:1440px;margin:auto;padding:28px}.hero{display:flex;justify-content:space-between;align-items:end;gap:20px;margin-bottom:22px}.eyebrow{font-size:10px;letter-spacing:.18em;color:#72809b;font-weight:900}.title{font-size:34px;font-weight:900;margin-top:6px}.subtitle{color:var(--muted);font-size:13px;margin-top:5px}.stats{display:grid;grid-template-columns:repeat(4,1fr);gap:12px;margin-bottom:20px}.card{background:linear-gradient(145deg,rgba(17,26,43,.96),rgba(9,14,24,.96));border:1px solid var(--line);border-radius:18px;box-shadow:var(--shadow)}.stat{padding:18px}.stat-label{font-size:9px;letter-spacing:.15em;color:#71809a;font-weight:900}.stat-value{font-size:29px;font-weight:950;margin-top:7px}.stat-note{font-size:10px;color:#65748e;margin-top:3px}.tabs{display:flex;gap:8px;overflow:auto;margin-bottom:14px}.tab{white-space:nowrap;border:1px solid var(--line);background:#0d1625;color:#8795ad;border-radius:12px;padding:11px 18px;font-size:12px;font-weight:900;cursor:pointer}.tab.active{color:#fff;border-color:#6474ff;background:linear-gradient(135deg,#425dff,#9b47eb);box-shadow:0 10px 25px rgba(79,91,230,.22)}.floor.hidden{display:none}.floor-head{display:flex;justify-content:space-between;align-items:center;margin:8px 2px 12px}.floor-name{font-size:12px;font-weight:900}.legend{display:flex;gap:12px;color:#7f8da7;font-size:10px}.legend i{display:inline-block;width:7px;height:7px;border-radius:50%;margin-right:5px}.legend .g{background:var(--green)}.legend .y{background:var(--yellow)}.legend .r{background:var(--red)}.tables{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px}.table{min-height:210px;padding:16px;position:relative;overflow:hidden}.table:before{content:"";position:absolute;inset:auto -25px -65px auto;width:150px;height:150px;border-radius:50%;opacity:.12}.table.available{border-color:rgba(36,210,124,.45)}.table.running{border-color:rgba(255,181,47,.65);box-shadow:0 20px 55px rgba(255,181,47,.08)}.table.occupied{border-color:rgba(255,85,102,.5)}.table.available:before{background:var(--green)}.table.running:before{background:var(--yellow)}.table.occupied:before{background:var(--red)}.status{display:inline-flex;padding:6px 9px;border-radius:999px;font-size:9px;font-weight:950;letter-spacing:.08em}.available .status{background:rgba(36,210,124,.12);color:#65efab}.running .status{background:rgba(255,181,47,.13);color:#ffd36d}.occupied .status{background:rgba(255,85,102,.13);color:#ff8794}.table-no{font-size:39px;font-weight:950;margin-top:10px}.table-name{font-size:11px;color:#8997ae;font-weight:800}.table-meta{margin-top:10px;color:#71809b;font-size:10px;line-height:1.7;min-height:47px}.table-total{color:#fff;font-size:17px;font-weight:950}.table-action{position:absolute;left:16px;right:16px;bottom:15px;height:38px;border:0;border-radius:10px;color:#fff;font-size:10px;font-weight:950;cursor:pointer}.available .table-action{background:#159f68}.running .table-action{background:#b87809}.occupied .table-action{background:#b6384a}.order-grid{display:grid;grid-template-columns:minmax(0,1fr) 370px;gap:18px}.panel{padding:16px}.search-row{display:flex;gap:9px}.search{flex:1;height:48px;border:1px solid var(--line);background:#09111e;border-radius:12px;display:flex;align-items:center;padding:0 14px}.search input{width:100%;border:0;outline:0;background:transparent;color:#fff}.search input::placeholder{color:#60708a}.categories{display:flex;gap:8px;overflow:auto;padding-top:14px}.cat{border:1px solid var(--line);background:#0c1524;color:#8996ad;border-radius:999px;padding:9px 14px;white-space:nowrap;font-size:10px;font-weight:900;cursor:pointer}.cat.active{color:#fff;background:linear-gradient(135deg,#425fff,#9b47eb);border-color:#6474ff}.menu-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:12px;margin-top:15px}.menu-item{border:1px solid var(--line);border-radius:15px;background:#0c1524;overflow:hidden;cursor:pointer;color:#fff;text-align:left;transition:.18s}.menu-item:hover{transform:translateY(-3px);border-color:#6272b0}.menu-item img{width:100%;height:108px;display:block;object-fit:cover}.menu-info{padding:11px}.menu-name{font-size:12px;font-weight:900;min-height:30px}.menu-rate{color:#62e8aa;font-weight:950;font-size:13px;margin-top:7px}.cart{position:sticky;top:95px;height:max-content;padding:18px}.cart-head{display:flex;justify-content:space-between;align-items:center}.cart-title{font-size:19px;font-weight:950}.badge{font-size:9px;color:#b9c5ff;border:1px solid #39477e;background:#131d3a;padding:6px 8px;border-radius:999px;font-weight:900}.cart-items{margin:14px 0}.cart-row{border-bottom:1px solid rgba(255,255,255,.06);padding:11px 0}.cart-name{font-size:12px;font-weight:850}.cart-sub{display:flex;justify-content:space-between;align-items:center;margin-top:7px;color:#75839d;font-size:10px}.qty{display:flex;align-items:center;gap:6px}.qty button{width:28px;height:28px;border:1px solid var(--line);border-radius:8px;background:#111c2e;color:#fff;font-weight:900;cursor:pointer}.qty .plus{background:#536aff;border-color:#536aff}.totals{border-top:1px solid var(--line);padding-top:12px}.line{display:flex;justify-content:space-between;margin:8px 0;color:#8290a8;font-size:11px}.line strong{color:#f0f4fc}.line.grand{font-size:24px;color:#fff;font-weight:950;margin-top:15px}.remarks{margin-top:12px}.remarks label{font-size:9px;color:#7887a0;font-weight:900;letter-spacing:.12em}.remarks textarea{margin-top:7px;width:100%;height:72px;border:1px solid var(--line);border-radius:10px;background:#09111e;color:#fff;padding:10px;outline:0;resize:vertical}.send{margin-top:13px;width:100%;height:48px;border:0;border-radius:11px;background:linear-gradient(135deg,#16bd72,#20d786);color:#fff;font-weight:950;cursor:pointer}.back{display:block;text-align:center;margin-top:9px;padding:11px;border:1px solid var(--line);border-radius:10px;color:#8896ad;font-size:10px;font-weight:900}.login{min-height:100vh;display:grid;place-items:center;padding:24px;background:radial-gradient(circle at 50% 0,#253b78 0,transparent 42%),linear-gradient(135deg,#050811,#090f1c)}.login-card{width:min(470px,95vw);padding:34px}.login-logo{width:min(360px,92%);height:auto;max-height:150px;display:block;margin:0 auto 8px;object-fit:contain}.login-title{text-align:center;font-size:27px;font-weight:950;margin:8px 0 4px}.login-sub{text-align:center;color:#7f8da6;font-size:11px;margin-bottom:27px}.field{margin-bottom:15px}.field label{display:block;font-size:9px;color:#8290a8;font-weight:900;letter-spacing:.13em;margin-bottom:7px}.input{width:100%;height:50px;border:1px solid var(--line);border-radius:12px;background:#09111e;color:#fff;padding:0 14px;outline:0}.input:focus{border-color:#6475ff;box-shadow:0 0 0 3px rgba(100,117,255,.1)}.login-submit{width:100%;height:50px;margin-top:5px}.error{background:rgba(255,85,102,.1);border:1px solid #703442;color:#ff9aa4;padding:10px;border-radius:10px;font-size:10px;margin-bottom:12px}.loading{position:fixed;inset:0;background:rgba(3,7,14,.68);backdrop-filter:blur(5px);display:none;place-items:center;z-index:100}.spinner{width:46px;height:46px;border-radius:50%;border:4px solid #28364f;border-top-color:#6576ff;border-right-color:#b64cff;animation:spin .8s linear infinite}@keyframes spin{to{transform:rotate(360deg)}}.success{position:fixed;inset:0;background:rgba(3,7,14,.82);backdrop-filter:blur(9px);display:none;place-items:center;z-index:110}.success-card{width:min(510px,92vw);padding:42px 28px;text-align:center;border-radius:24px;border:1px solid #285c4d;background:radial-gradient(circle at 50% 0,#174a3d,#0b121e 58%);box-shadow:0 30px 90px rgba(0,0,0,.55)}.success-icon{width:88px;height:88px;border-radius:50%;display:grid;place-items:center;margin:auto;background:#21c779;font-size:52px;box-shadow:0 0 50px rgba(33,199,121,.35)}.success-title{font-size:29px;font-weight:950;margin-top:18px}.success-sub{color:#9aaca5;font-size:12px;margin-top:7px}.success-info{color:#d4e2dc;font-size:13px;font-weight:850;margin:20px 0}.success-actions{display:flex;gap:10px}.success-actions>*{flex:1;height:45px;border-radius:10px;border:1px solid #2a8e67;background:#0e211b;color:#dcfff1;font-weight:900;display:grid;place-items:center;cursor:pointer}.success-actions button{background:#20b970;color:#fff}.empty{padding:38px;text-align:center;color:#6f7e98;border:1px dashed #2a3852;border-radius:14px;margin-top:15px}.footer{text-align:center;color:#53627c;font-size:9px;padding:22px}@media(max-width:1100px){.tables{grid-template-columns:repeat(3,1fr)}.order-grid{grid-template-columns:1fr}.cart{position:relative;top:auto}}@media(max-width:760px){.topbar{height:66px;padding:0 14px}.brand img{width:170px;height:50px}.userbox .user-name{display:none}.page{padding:16px}.hero{align-items:flex-start}.title{font-size:27px}.stats{grid-template-columns:repeat(2,1fr)}.tables{grid-template-columns:repeat(2,1fr)}.menu-grid{grid-template-columns:repeat(2,1fr)}.success-actions{flex-direction:column}}@media(max-width:460px){.tables{gap:9px}.table{min-height:185px;padding:13px}.table-no{font-size:32px}.table-action{left:13px;right:13px}.login-card{padding:24px}.menu-grid{gap:8px}.menu-item img{height:92px}}

/* Order success dialog: mobile-first touch-friendly layout */
.success-card{width:min(560px,calc(100vw - 28px));padding:38px 26px 30px;text-align:center}
.success-icon{width:84px;height:84px;font-size:46px;line-height:1;margin:0 auto;display:grid;place-items:center}
.success-title{line-height:1.15;text-align:center}
.success-sub{max-width:420px;margin:9px auto 0;line-height:1.5;text-align:center}
.success-info{margin:18px 0 22px;text-align:center}
.success-actions{display:grid;grid-template-columns:1fr 1fr;gap:12px;width:100%}
.success-actions>*{min-height:54px;height:54px;padding:0 16px;border-radius:13px;font-size:14px;line-height:1;display:flex;align-items:center;justify-content:center;text-align:center;white-space:nowrap;touch-action:manipulation}
.success-actions button{font:inherit}
@media(max-width:520px){
  .success{padding:14px}
  .success-card{width:100%;padding:34px 18px 22px;border-radius:22px}
  .success-icon{width:78px;height:78px;font-size:42px}
  .success-title{font-size:28px;margin-top:16px}
  .success-sub{font-size:12px;padding:0 8px}
  .success-info{font-size:14px;margin:17px 0 20px}
  .success-actions{grid-template-columns:1fr;gap:10px}
  .success-actions>*{min-height:56px;height:56px;font-size:14px}
}

/* Final verification overrides: touch targets, alignment, full-card table hit area, safe mobile sizing */
.table.select-card{cursor:pointer;touch-action:manipulation;}
.table.select-card .table-action{z-index:2;}
.table.select-card:focus-visible{outline:2px solid var(--blue);outline-offset:2px;}
.success-card{box-sizing:border-box;}
.success-icon{font-family:"Segoe UI Symbol","Segoe UI",Arial,sans-serif;font-weight:700;text-align:center;}
.success-actions>*{min-width:0;}
.login-logo{width:min(330px,82vw);max-height:132px;}
@media(max-width:520px){
  .login{padding:14px;}
  .login-card{width:min(100%,430px);padding:24px 20px 26px;}
  .login-logo{width:min(300px,82vw);max-height:112px;margin-bottom:6px;}
  .login-title{font-size:25px;}
  .input{height:52px;font-size:16px;}
  .login-submit{height:54px;font-size:14px;}
  .success-card{max-height:calc(100vh - 28px);overflow:auto;}
  .success-actions>*{height:58px;min-height:58px;font-size:15px;}
}
@media(max-width:380px){
  .page{padding:12px;}
  .topbar{padding:0 10px;}
  .brand img{width:150px;}
  .table{min-height:178px;padding:12px;}
  .table-action{left:12px;right:12px;bottom:12px;height:42px;}
}

/* Final QA pass: stable alignment, mobile touch targets, and compact order summary */
.qty-input{width:78px;flex:0 0 78px;text-align:center}
.menu-item{min-height:166px;display:flex;flex-direction:column}
.menu-item img{height:108px;flex:0 0 108px;object-fit:cover}
.menu-info{display:flex;flex:1;flex-direction:column;justify-content:space-between;min-width:0}
.menu-name{line-height:1.35;min-height:32px;overflow:hidden;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical}
.menu-rate{line-height:1.2}
.remarks{margin:0 0 14px;padding:14px}
.remarks textarea{display:block;min-height:64px;height:64px;line-height:1.35;font-size:13px}
.cart{padding:16px}
.cart-items{margin:10px 0}
.cart-row{padding:9px 0}
.cart-name{line-height:1.35}
.qty{margin-top:7px}
.totals{padding-top:8px}
.line{margin:6px 0}
.line.grand{margin-top:10px;font-size:22px}
.send{height:52px;margin-top:10px;font-size:14px}
.back{padding:10px;margin-top:8px}
.success-actions>*{min-height:58px;height:58px;font-size:15px}
@media(max-width:1100px){.cart{position:relative;top:auto}.order-grid{gap:14px}}
@media(max-width:760px){.topbar{height:66px}.brand img{width:165px;height:50px}.page{padding:14px}.hero{margin-bottom:16px}.menu-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}.menu-item{min-height:158px}.menu-item img{height:88px;flex-basis:88px}.cart{padding:12px}.remarks{padding:12px;margin-bottom:10px}.remarks textarea{height:58px;min-height:58px}.cart-title{font-size:18px}.line.grand{font-size:21px}.send{height:54px}.back{height:48px;display:flex;align-items:center;justify-content:center}}
@media(max-width:460px){.page{padding:12px}.search-row{gap:7px}.search{height:50px;padding:0 11px}.qty-input{width:62px;flex-basis:62px}.cat{padding:9px 12px}.menu-grid{gap:8px}.menu-item{min-height:150px;border-radius:13px}.menu-item img{height:80px;flex-basis:80px}.menu-info{padding:9px}.menu-name{font-size:11px}.menu-rate{font-size:12px}.cart{padding:11px}.remarks textarea{font-size:13px}.success{padding:12px}.success-card{width:100%;padding:30px 16px 20px}.success-actions{grid-template-columns:1fr;gap:9px}.success-actions>*{min-height:58px;height:58px}}


/* FINAL TARGETED FIX: restore login layout, preserve dashboard logo footprint, and prevent intrinsic-image overflow */
.login-card{overflow:hidden;}
.login-logo{display:block !important;width:300px !important;max-width:100% !important;height:auto !important;max-height:145px !important;object-fit:contain !important;margin:0 auto 8px !important;}
.brand img{display:block;width:205px;height:56px;max-width:100%;object-fit:contain;}
@media(max-width:760px){.brand img{width:170px;height:50px;max-width:170px;}.login-card{width:min(470px,95vw);padding:24px;}}
@media(max-width:460px){.login-logo{width:280px !important;max-width:100% !important;max-height:135px !important;}.login-card{padding:24px 18px 26px;}}


/* FINAL HOTFIX 2026-08-28: only logo sizing + Razor/encoding safety */
.login{overflow-x:hidden;}
.login-card{overflow:hidden;}
.login-logo{display:block !important;width:300px !important;max-width:100% !important;height:145px !important;max-height:145px !important;object-fit:contain !important;margin:0 auto 8px !important;}
.brand{min-width:0;}
.brand img{display:block !important;width:205px !important;height:56px !important;max-width:205px !important;object-fit:contain !important;}
@media(max-width:760px){.brand img{width:170px !important;height:50px !important;max-width:170px !important;}.login-card{width:min(470px,95vw);padding:24px;}}
@media(max-width:460px){.login-logo{width:280px !important;height:135px !important;max-width:100% !important;max-height:135px !important;}.login-card{padding:24px 18px 26px;}}


/* QA FINAL: deterministic mobile sizing + full table-card hit area */
.login-logo{width:100% !important;max-width:300px !important;height:auto !important;max-height:198px !important;object-fit:contain !important;margin-left:auto !important;margin-right:auto !important;display:block !important;}
.brand img{width:205px !important;height:56px !important;max-width:100% !important;object-fit:contain !important;display:block !important;}
.table.select-card{cursor:pointer;}
.table.select-card:focus-visible{outline:2px solid #6475ff;outline-offset:2px;}
.success-actions>*{min-height:52px;touch-action:manipulation;}
@media(max-width:760px){.brand img{width:170px !important;height:50px !important;max-width:170px !important;}.login{padding:16px;}.login-card{width:min(470px,95vw);padding:24px;}.login-logo{max-width:300px !important;max-height:198px !important;}.success-actions>*{min-height:58px;height:58px;font-size:12px;}}
@media(max-width:460px){.login-card{padding:22px 16px 24px;}.login-logo{max-width:280px !important;max-height:183px !important;}.success-actions>*{min-height:60px;height:60px;}}

/* 2026-08-28 targeted table-status + mobile usability fix */
.table{box-sizing:border-box;padding-bottom:58px;}
.table-action{left:12px;right:12px;bottom:10px;height:34px;min-height:34px;padding:0 8px;border-radius:9px;font-size:9px;line-height:34px;white-space:nowrap;}
.table-settlement{position:absolute;left:14px;right:14px;bottom:12px;height:24px;display:flex;align-items:center;justify-content:center;border-radius:8px;background:rgba(198,56,78,.12);border:1px solid rgba(255,94,118,.22);color:#ff8c9d;font-size:8px;font-weight:950;letter-spacing:.06em;white-space:nowrap;}
.table-meta{padding-bottom:2px;line-height:1.45;}
.readonly-order{grid-template-columns:minmax(0,1fr);max-width:760px;margin:0 auto;}
.readonly-cart{position:relative!important;top:auto!important;width:100%;box-sizing:border-box;}
.readonly-cart .cart-items{max-height:none;}
.readonly-cart .qty{display:none;}
.readonly-cart .back{margin-top:12px;}
.login-card{box-sizing:border-box;}
@media(max-width:760px){
  .table{min-height:175px;padding:12px 12px 54px;}
  .table-action{left:11px;right:11px;bottom:9px;height:34px;min-height:34px;line-height:34px;}
  .table-settlement{left:12px;right:12px;bottom:10px;height:22px;font-size:7.5px;}
  .login-card{box-sizing:border-box;width:min(470px,calc(100vw - 28px));}
}
@media(max-width:460px){
  .table{min-height:170px;padding:11px 11px 52px;}
  .table-action{left:10px;right:10px;bottom:8px;height:32px;min-height:32px;line-height:32px;font-size:8.5px;}
  .table-settlement{left:11px;right:11px;bottom:9px;height:21px;font-size:7px;}
  .login-card{width:calc(100vw - 28px);margin-left:-4px;}
}

/* NEW ITEM CONTROL: only newly added/unpunched items show a remove X. Punched items have no qty controls. */
.qty:empty{display:none;}
.qty .remove-new{width:32px;height:32px;border:1px solid var(--line);border-radius:8px;background:#111c2e;color:#fff;font-weight:950;font-size:20px;line-height:1;cursor:pointer;display:inline-grid;place-items:center;}
.qty .remove-new:hover{border-color:rgba(255,85,102,.65);background:rgba(255,85,102,.12);color:#ff8794;}


/* NEW ITEM CONTROLS + THIN DISH NOTE */
.qty{display:flex;align-items:center;gap:6px;flex-wrap:wrap;margin-top:7px}
.qty-btn{width:32px;height:32px;border:1px solid var(--line);border-radius:8px;background:#111c2e;color:#fff;font-weight:950;cursor:pointer;display:inline-grid;place-items:center;line-height:1}
.qty-btn.plus{background:#536aff;border-color:#536aff}
.qty-value{min-width:16px;text-align:center;color:#fff;font-size:14px;font-weight:800}
.qty-btn.remove-new{font-size:20px}
.dish-note-btn{height:28px;padding:0 9px;border:1px solid #34445f;border-radius:7px;background:#0d1727;color:#9eacc2;font-size:8px;font-weight:900;letter-spacing:.05em;cursor:pointer;white-space:nowrap}
.dish-note-btn:active{transform:translateY(1px)}
.dish-note-editor{margin-top:6px}
.dish-note-input{width:100%;height:30px;border:1px solid #273852;border-radius:7px;background:#09111e;color:#fff;padding:0 9px;outline:0;font-size:10px;box-sizing:border-box}
.dish-note-input::placeholder{color:#5e6d84}
@media(max-width:460px){.qty{gap:5px}.qty-btn{width:30px;height:30px}.dish-note-btn{height:27px;padding:0 8px;font-size:7.5px}}


/* 2026-09-12 occupied-card bill/item preview */
.table-bill{color:#dce6fa;font-weight:850;}
.table-items-preview{display:grid;gap:2px;margin:5px 0 4px;max-width:82%;color:#a8b4c8;font-size:9px;line-height:1.35;}
.table-items-preview span{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;}
.table-more-items{color:#ff9aa6!important;font-weight:850;}
.table.occupied.has-preview{min-height:238px;padding-bottom:58px;}
@media(max-width:760px){.table.occupied.has-preview{min-height:220px}.table-items-preview{max-width:90%;font-size:8.5px}}
@media(max-width:460px){.table.occupied.has-preview{min-height:210px}.table-items-preview{font-size:8px}}


/* v9 mobile table alignment + sticky section headers + occupied item popup */
.tabs{position:sticky;top:76px;z-index:24;padding:8px 0 7px;margin-top:-8px;background:linear-gradient(180deg,rgba(7,11,20,.98) 72%,rgba(7,11,20,.88));backdrop-filter:blur(14px)}
.floor-head{position:sticky;top:132px;z-index:23;padding:10px 2px;margin:0 0 12px;background:rgba(7,11,20,.96);backdrop-filter:blur(14px)}
.table,.table.occupied.has-preview{height:250px;min-height:250px;padding:16px;display:flex;flex-direction:column;align-items:stretch;overflow:hidden}
.table-meta{min-height:0;flex:0 1 auto;margin-bottom:8px;overflow:hidden}
.table-items-preview{max-height:38px;overflow:hidden}
.table-action,.table-settlement{position:relative;left:auto;right:auto;bottom:auto;margin-top:auto;width:100%;height:38px;min-height:38px;line-height:38px;flex:0 0 38px}
.table-settlement{display:flex;align-items:center;justify-content:center;line-height:1}
.occupied-full-items{display:none!important}
.modal-open{overflow:hidden}
.occupied-modal{position:fixed;inset:0;z-index:120;display:grid;place-items:center;padding:18px;background:rgba(2,6,13,.82);backdrop-filter:blur(8px)}
.occupied-modal[hidden]{display:none!important}
.occupied-modal-card{position:relative;width:min(470px,94vw);max-height:min(72vh,700px);display:flex;flex-direction:column;padding:22px;border:1px solid rgba(255,85,102,.48);border-radius:20px;background:linear-gradient(145deg,#111b2d,#090f1a);box-shadow:0 28px 90px rgba(0,0,0,.62)}
.occupied-modal-close{position:absolute;right:14px;top:12px;width:38px;height:38px;border:1px solid #36445d;border-radius:10px;background:#10192a;color:#fff;font-size:24px;line-height:1}
.occupied-modal-kicker{color:#ff8794;font-size:9px;font-weight:950;letter-spacing:.14em}.occupied-modal-card h2{margin:8px 46px 4px 0;font-size:24px}.occupied-modal-meta{display:flex;justify-content:space-between;gap:12px;color:#8190aa;font-size:12px;padding-bottom:12px;border-bottom:1px solid #26354d}.occupied-modal-meta strong{color:#fff;font-size:18px}.occupied-modal-items{overflow:auto;display:grid;gap:8px;padding:14px 0;min-height:80px}.occupied-modal-row{padding:11px 12px;border:1px solid #263750;border-radius:10px;background:#0e192a;color:#eef3ff;font-size:13px;font-weight:750}.occupied-modal-empty{color:#8795ad;padding:22px 8px;text-align:center}.occupied-modal-done{height:46px;border:1px solid rgba(255,85,102,.5);border-radius:10px;background:rgba(255,85,102,.12);color:#ff9ba7;font-weight:900}
@media(max-width:760px){.hero,.stats{display:none}.tabs{top:66px;margin:0 -14px;padding:10px 14px 8px}.floor-head{top:124px;margin:0 -14px 12px;padding:10px 14px}.tables{gap:12px}.table,.table.occupied.has-preview{height:300px;min-height:300px;padding:14px}.table-no{font-size:38px;margin-top:10px}.table-name{font-size:11px}.table-meta{font-size:10px;line-height:1.55;margin-top:11px;margin-bottom:10px}.table-items-preview{max-height:44px;font-size:8.5px}.table-action,.table-settlement{height:40px;min-height:40px;flex-basis:40px;line-height:40px;font-size:9px}}
@media(max-width:460px){.tables{gap:11px}.table,.table.occupied.has-preview{height:300px;min-height:300px;padding:13px}.table-no{font-size:36px}.table-action,.table-settlement{height:40px;min-height:40px;flex-basis:40px}}

/* v10 2026-09-14: restore compact table cards and mobile section-first sticky scrolling.
   Mobile behaviour: logo/logout header scrolls away; RESTAURANT/BAR tabs + active section heading stay pinned. */
@media(max-width:760px){
  .topbar{
    position:relative;
    top:auto;
    z-index:20;
  }

  .tabs{
    position:sticky;
    top:0;
    z-index:52;
    margin:0 -14px;
    padding:10px 14px 8px;
    background:rgba(7,11,20,.98);
    backdrop-filter:blur(14px);
    box-shadow:0 1px 0 rgba(255,255,255,.05);
  }

  .floor-head{
    position:sticky;
    top:58px;
    z-index:51;
    margin:0 -14px 12px;
    padding:9px 14px 10px;
    background:rgba(7,11,20,.97);
    backdrop-filter:blur(14px);
    box-shadow:0 1px 0 rgba(255,255,255,.04);
  }

  /* Match the compact 9/10-table proportion from the approved reference. */
  .table,
  .table.occupied.has-preview{
    height:240px;
    min-height:240px;
    padding:13px;
  }

  .table-no{
    font-size:36px;
    margin-top:8px;
  }

  .table-meta{
    margin-top:8px;
    margin-bottom:7px;
    line-height:1.45;
  }

  .table-items-preview{
    max-height:36px;
  }

  .table-action,
  .table-settlement{
    height:38px;
    min-height:38px;
    flex-basis:38px;
    line-height:38px;
  }
}

@media(max-width:460px){
  .tabs{
    margin-left:-12px;
    margin-right:-12px;
    padding-left:12px;
    padding-right:12px;
  }

  .floor-head{
    top:58px;
    margin-left:-12px;
    margin-right:-12px;
    padding-left:12px;
    padding-right:12px;
  }

  .tables{
    gap:10px;
  }

  .table,
  .table.occupied.has-preview{
    height:235px;
    min-height:235px;
    padding:12px;
  }

  .table-no{
    font-size:35px;
  }

  .table-action,
  .table-settlement{
    height:37px;
    min-height:37px;
    flex-basis:37px;
    line-height:37px;
  }
}

/* v11 2026-09-14: compact occupied cards, no on-card punched-item preview.
   Punched items are shown only by tapping an occupied table. */
.table-total{display:block;margin-top:1px;line-height:1.2}
@media(max-width:760px){
  .table,
  .table.occupied,
  .table.occupied.has-preview{
    height:225px;
    min-height:225px;
    padding:12px;
  }

  .table-meta{
    margin-top:7px;
    margin-bottom:5px;
    line-height:1.35;
    overflow:visible;
  }

  .table-total{
    font-size:16px;
    margin-top:2px;
  }

  .table-action{
    height:35px;
    min-height:35px;
    flex-basis:35px;
    line-height:35px;
    font-size:8.5px;
  }

  .table-settlement{
    width:82%;
    align-self:center;
    height:30px;
    min-height:30px;
    flex-basis:30px;
    line-height:1;
    font-size:7.2px;
    border-radius:7px;
  }
}

@media(max-width:460px){
  .table,
  .table.occupied,
  .table.occupied.has-preview{
    height:220px;
    min-height:220px;
    padding:11px;
  }

  .table-no{font-size:34px;margin-top:7px}
  .table-name{font-size:10.5px}
  .table-meta{font-size:9.5px;margin-top:6px;margin-bottom:4px;line-height:1.32}
  .table-total{font-size:15.5px}

  .table-action{
    height:34px;
    min-height:34px;
    flex-basis:34px;
    line-height:34px;
    font-size:8px;
  }

  .table-settlement{
    width:80%;
    height:29px;
    min-height:29px;
    flex-basis:29px;
    font-size:6.8px;
  }
}
