/* VillageWheels Kitchen POS v1.1 — standalone staff pages only. */
:root { --kpos-navy:#0c2f56;--kpos-navy2:#103e70;--kpos-blue:#1c5cb6;--kpos-orange:#f28c28;--kpos-ink:#133552;--kpos-muted:#607891;--kpos-outline:#dce6f0;--kpos-bg:#f3f7fc; }
body.kitchen-login,body.kitchen-pos{font-family:Inter,Segoe UI,Arial,sans-serif;color:var(--kpos-ink);background:var(--kpos-bg);font-synthesis:none}
/* Login — full-bleed two-panel, no unrelated page margins or dark logo tile. */
body.kitchen-login{display:block;margin:0;min-height:100svh}
.kitchen-login .klogin-shell{display:grid;grid-template-columns:minmax(360px,44%) minmax(0,56%);min-height:100svh;width:100%;margin:0;padding:0;max-width:none}
.kitchen-login .klogin-brand{position:relative;min-height:100svh;background:radial-gradient(circle at 0 0,#1d5996 0,transparent 55%),linear-gradient(165deg,#123d6c 0,#0c294b 90%);padding:clamp(30px,4vw,76px);display:flex;flex-direction:column;justify-content:space-between;overflow:hidden;color:white}
.kitchen-login .klogin-brand::after{content:"";pointer-events:none;position:absolute;width:420px;height:420px;right:-230px;bottom:12%;border-radius:50%;border:68px solid rgba(242,140,40,.12)}
.kitchen-login .klogin-brand-top,.kitchen-login .klogin-brand-copy,.kitchen-login .klogin-brand-foot{position:relative;z-index:1}
.kitchen-login .klogin-logo{display:block;width:min(320px,94%);max-height:82px;object-fit:contain;object-position:left center;background:none;border:0;padding:0}
.kitchen-login .klogin-brand-label{font-size:11px;letter-spacing:2.3px;font-weight:700;color:#bdd2e9;display:block;margin-top:14px}
.kitchen-login .klogin-kicker{display:block;font-size:12px;font-weight:800;letter-spacing:2px;color:#ffb16b;margin-bottom:16px}
.kitchen-login .klogin-brand-copy h2{font-size:clamp(36px,3.7vw,64px);line-height:1.14;letter-spacing:-2px;margin:0 0 20px;font-weight:800;color:#fff}
.kitchen-login .klogin-brand-copy p{color:#d2deee;font-size:17px;line-height:1.7;max-width:480px;margin:0 0 26px}
.kitchen-login .klogin-steps{display:flex;flex-wrap:wrap;gap:9px}
.kitchen-login .klogin-steps span{border:1px solid rgba(233,244,255,.24);border-radius:100px;padding:9px 13px;font-size:12px;font-weight:700;color:#dcecff;background:rgba(255,255,255,.055)}
.kitchen-login .klogin-brand-foot{color:#adcae7;font-size:12px;letter-spacing:.4px}
.kitchen-login .klogin-form-side{min-height:100svh;display:grid;place-items:center;background:#f4f7fb;padding:36px 24px}
.kitchen-login .klogin-form-panel{width:min(100%,490px);padding:34px 24px;box-shadow:none;border:none;background:transparent}
.kitchen-login .klogin-label{font-size:12px;letter-spacing:1.8px;color:#a65412;font-weight:800}
.kitchen-login .klogin-form-panel h1{font-size:clamp(30px,3vw,42px);margin:11px 0 8px;letter-spacing:-1.3px;color:#11355b}
.kitchen-login .klogin-intro{color:var(--kpos-muted);font-size:15px;margin:0 0 30px}
.kitchen-login .klogin-form label{display:block;color:#183a5c;font-size:13px;font-weight:700;margin:16px 0}
.kitchen-login .klogin-form input{width:100%;min-height:53px;margin-top:9px;border-radius:12px;background:#fff;color:#143657;padding:14px 15px;border:1px solid #d5e1ed;font-size:15px}
.kitchen-login .klogin-form input:focus{outline:2px solid #8db4ef;outline-offset:1px}
.kitchen-login .klogin-password-wrap{position:relative;display:block}
.kitchen-login .klogin-password-wrap input{padding-right:74px}
.kitchen-login .klogin-visibility{position:absolute;right:8px;top:calc(50% + 4px);transform:translateY(-50%);border:0;background:transparent;color:#185bb1;font-weight:800;font-size:12px;min-height:35px;padding:6px 10px}
.kitchen-login .klogin-submit{width:100%;min-height:55px;margin:18px 0 0;display:flex;justify-content:space-between;align-items:center;padding:14px 22px;border-radius:12px;background:#1c5bbb;color:#fff;font-size:15px;font-weight:800;box-shadow:0 8px 16px rgba(26,82,165,.12)}
.kitchen-login .klogin-submit span{font-size:20px;line-height:1}
.kitchen-login .klogin-submit:hover{background:#114f9f}
.kitchen-login .klogin-alert{border:1px solid #f5babc;background:#fff1f0;color:#9b3034;border-radius:12px;padding:13px 15px;margin:0 0 18px;font-size:14px}
.kitchen-login .klogin-help{margin-top:25px;padding:20px 0;border-top:1px solid #dce7f2}
.kitchen-login .klogin-help strong{font-size:14px;color:#234466}
.kitchen-login .klogin-help p{font-size:13px;line-height:1.55;color:#6c8195;margin:5px 0}
/* Standalone kitchen layout. Does not affect embedded counter or Admin Settings. */
body.kitchen-pos{display:block;min-height:100svh;margin:0}
.kitchen-pos .kpos-shell{display:grid;grid-template-columns:256px minmax(0,1fr);min-height:100svh}
.kitchen-pos .kpos-sidebar{background:linear-gradient(174deg,#103964,#0a2544);padding:28px 17px;display:flex;flex-direction:column;color:#fff;min-width:0}
.kitchen-pos .kpos-brand img{width:220px;max-width:100%;height:auto;display:block}
.kitchen-pos .kpos-brand span{display:block;margin:13px 8px 26px;color:#b6cfea;letter-spacing:2px;font-weight:700;font-size:10px}
.kitchen-pos .kpos-restaurant{background:#1b4874;border:1px solid #397099;border-radius:14px;padding:17px 16px;margin-bottom:30px}
.kitchen-pos .kpos-overline{font-size:11px;letter-spacing:1.5px;font-weight:800;color:#df7425}
.kitchen-pos .kpos-restaurant .kpos-overline{display:block;color:#ffb578;margin-bottom:8px}
.kitchen-pos .kpos-restaurant strong{display:block;color:#fff;font-size:15px}
.kitchen-pos .kpos-nav-item{display:flex;align-items:center;gap:12px;padding:15px 17px;background:#235c98;border-radius:12px;font-weight:750;color:#fff;border-left:3px solid var(--kpos-orange)}
.kitchen-pos .kpos-nav-icon{font-size:18px;color:#ffa75d}
.kitchen-pos .kpos-sidebar-bottom{margin-top:auto;padding-top:25px}
.kitchen-pos .kpos-sidebar-bottom form{margin:0}
.kitchen-pos .kpos-logout{width:100%;border:1px solid #426788;border-radius:10px;color:#fff;background:#163a60;min-height:44px}
.kitchen-pos .kpos-content{min-width:0;background:#f4f7fb}
.kitchen-pos .kpos-topbar{position:static;display:flex;align-items:center;justify-content:space-between;gap:14px;padding:16px clamp(18px,2.8vw,46px);background:#fff;color:#254766;border-bottom:1px solid #e2e9f2}
.kitchen-pos .kpos-breadcrumb{font-size:14px;color:#617791}
.kitchen-pos .kpos-breadcrumb span{padding:0 7px;color:#b1bed0}
.kitchen-pos .kpos-breadcrumb strong{color:#12385f}
.kitchen-pos .kpos-actions{display:flex;align-items:center;gap:10px}
.kitchen-pos .kpos-actions button{white-space:nowrap;min-height:43px;padding:10px 16px;margin:0}
.kitchen-pos .kpos-soft-action{background:#f7fafe;border:1px solid #d7e3f1;color:#185294}
.kitchen-pos .kpos-refresh{background:#1e5eb9;color:#fff;border:1px solid #1e5eb9;border-radius:10px;min-height:44px;padding:10px 18px;font-weight:750}
.kitchen-pos .kpos-refresh:hover{background:#144d9b}
.kitchen-pos .kpos-main{max-width:1600px;margin:0 auto;padding:clamp(22px,2.5vw,43px)}
.kitchen-pos .kpos-titlebar{display:flex;justify-content:space-between;align-items:center;gap:16px;margin-bottom:20px}
.kitchen-pos .kpos-titlebar h1{font-size:clamp(25px,2.7vw,35px);margin:6px 0;letter-spacing:-.9px;color:#163858}
.kitchen-pos .kpos-titlebar p{font-size:14px;margin:2px 0;color:#68809b}
.kitchen-pos .kpos-active-count{border-radius:100px;background:#e9f1fd;color:#2055a0;font-size:13px;font-weight:800;padding:10px 14px;white-space:nowrap}
.kitchen-pos .kpos-utility-row{display:flex;align-items:center;justify-content:space-between;gap:12px;color:#7b8da2;font-size:12px;margin-bottom:16px}
.kitchen-pos .kpos-flow-label{font-size:12px;color:#8394a6}
.kitchen-pos #notice{margin:0 0 18px;background:#e6f7ed;border:1px solid #b9e7ca}
.kitchen-pos #notice.error{background:#fff0f0;border-color:#ffc7c7;color:#a6323e}
.kitchen-pos .kpos-board-section{background:#fff;border:1px solid #e0e8f1;border-radius:20px;padding:18px;box-shadow:0 13px 32px rgba(18,51,94,.045);margin:0}
.kitchen-pos .kpos-board{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}
.kitchen-pos .kpos-board>.kpos-lane{border:1px solid #e1e9f2;background:#f7f9fd;border-radius:14px;min-width:0;padding:16px;min-height:270px}
.kitchen-pos .kpos-lane-title{display:flex;align-items:center;justify-content:space-between;margin:0 0 15px}
.kitchen-pos .kpos-lane-title h2{font-size:16px;margin:0;color:#143a60;letter-spacing:-.2px}
.kitchen-pos .kpos-count{display:inline-flex;min-width:29px;height:29px;justify-content:center;align-items:center;padding:0 8px;border-radius:20px;background:#eaf2fc;color:#255b9a;font-weight:800;font-size:12px}
.kitchen-pos .kpos-lane:first-child .kpos-count{background:#fff0e3;color:#b35a15}
.kitchen-pos .kpos-lane:nth-child(2) .kpos-count{background:#e7efff;color:#2556af}
.kitchen-pos .kpos-lane:nth-child(3) .kpos-count{background:#e4f7ea;color:#187345}
.kitchen-pos .kpos-empty{background:#fff;border:1px dashed #d4e1ef;padding:45px 15px!important;border-radius:12px;text-align:center;color:#8395a8;font-size:13px;margin:0}
.kitchen-pos .kpos-ticket{background:#fff;border-radius:12px;padding:16px;box-shadow:0 2px 7px rgba(15,45,79,.04);border:1px solid #e3eaf2;border-left:4px solid #f28c28;margin:0}
.kitchen-pos .kpos-ticket.preparing{border-left-color:#477ed6;border-top:1px solid #e3eaf2}
.kitchen-pos .kpos-ticket.ready{border-left-color:#26a46b;border-top:1px solid #e3eaf2}
.kitchen-pos .kpos-ticket-head{display:flex;justify-content:space-between;align-items:center;gap:8px}
.kitchen-pos .kpos-ticket-head strong{font-size:16px;color:#153a5b;overflow-wrap:anywhere}
.kitchen-pos .kpos-ticket-status{padding:5px 8px;border-radius:8px;background:#fff0e3;color:#a85a20;font-size:10px;font-weight:800;white-space:nowrap}
.kitchen-pos .preparing .kpos-ticket-status{background:#e8f0fe;color:#2356a4}
.kitchen-pos .ready .kpos-ticket-status{background:#e7f8ec;color:#187345}
.kitchen-pos .kpos-ticket-meta{font-size:12px;color:#72859b;margin:8px 0 13px}
.kitchen-pos .kpos-ticket-summary{border-top:1px solid #edf0f5;border-bottom:1px solid #edf0f5;padding:11px 0;color:#37516d;font-size:13px;line-height:1.7}
.kitchen-pos .kpos-ticket-summary strong{font-size:13px;margin-right:5px}
.kitchen-pos .kpos-ticket-summary small{font-size:11px;color:#7b8b9c;display:block;margin:5px 0 0}
.kitchen-pos .kpos-ticket-actions{display:flex;gap:8px;margin-top:14px;flex-wrap:wrap}
.kitchen-pos .kpos-ticket-actions button{flex:1 1 auto;margin:0;min-height:38px;border-radius:9px;padding:8px 11px;font-size:12px}
.kitchen-pos .kpos-ticket-actions button.secondary{background:#eff5ff;border:1px solid #d7e2ef;color:#24599b}
.kitchen-pos .kpos-ticket-actions button.success{background:#178052;border:1px solid #178052;color:#fff}
.kitchen-pos .kpos-awaiting{font-size:12px;color:#19815b;align-self:center}
/* Accessible, read-only order details; no new API endpoints. */
.kitchen-pos .kpos-dialog{width:min(540px,94vw);max-height:min(85vh,780px);padding:0;border-radius:18px;border:1px solid #d9e4ee;background:#fff;color:#153858;box-shadow:0 24px 80px #061a3f44;overflow:auto}
.kitchen-pos .kpos-dialog::backdrop{background:rgba(9,30,57,.62);backdrop-filter:blur(3px)}
.kitchen-pos .kpos-dialog-top{display:flex;justify-content:space-between;align-items:center;background:#f6f9ff;border-bottom:1px solid #e5edf6;padding:14px 22px}
.kitchen-pos .kpos-dialog-top form,.kitchen-pos .kpos-dialog-bottom form{margin:0}
.kitchen-pos .kpos-dialog-close{background:transparent;color:#254d77;border:0;padding:6px 10px;min-height:35px;font-size:17px}
.kitchen-pos #order-detail-content{padding:20px 24px}
.kitchen-pos #order-detail-content h2{font-size:26px;margin:0 0 5px;letter-spacing:-.65px}
.kitchen-pos .kpos-detail-ref{color:#8190a1;font-size:13px;margin:0 0 15px}
.kitchen-pos .kpos-detail-tags{display:flex;flex-wrap:wrap;gap:6px;padding:0 0 16px;border-bottom:1px solid #e6edf4}
.kitchen-pos .kpos-detail-tags span{background:#eef4fb;color:#25537f;font-weight:700;font-size:12px;border-radius:20px;padding:7px 11px}
.kitchen-pos .kpos-detail-group{padding-top:17px}
.kitchen-pos .kpos-detail-group h3{font-size:15px;margin:0 0 12px;color:#163b5b}
.kitchen-pos .kpos-detail-group ul{margin:0;padding:0;list-style:none}
.kitchen-pos .kpos-detail-group li{display:flex;gap:12px;align-items:center;padding:12px 0;border-bottom:1px solid #eff3f7;color:#2e4c69;font-size:14px}
.kitchen-pos .kpos-detail-group li strong{color:#1459ac;white-space:nowrap;font-size:14px}
.kitchen-pos .kpos-dialog-bottom{padding:14px 22px;border-top:1px solid #e9eef4;display:flex;justify-content:flex-end}
.kitchen-pos .kpos-detail-empty{color:#71859a}
@media(max-width:1080px){.kitchen-pos .kpos-shell{grid-template-columns:205px minmax(0,1fr)}.kitchen-pos .kpos-sidebar{padding:23px 12px}.kitchen-pos .kpos-board{grid-template-columns:1fr}.kitchen-pos .kpos-board>.kpos-lane{min-height:110px}}
@media(max-width:850px){.kitchen-login .klogin-shell{grid-template-columns:1fr}.kitchen-login .klogin-brand{min-height:0;padding:22px 28px}.kitchen-login .klogin-brand-copy,.kitchen-login .klogin-brand-foot{display:none}.kitchen-login .klogin-brand-label{margin-top:6px}.kitchen-login .klogin-logo{width:220px}.kitchen-login .klogin-form-side{min-height:calc(100svh - 145px);padding:20px}.kitchen-login .klogin-form-panel{padding:16px 0}}
@media(max-width:740px){.kitchen-pos .kpos-shell{display:block}.kitchen-pos .kpos-sidebar{display:flex;flex-direction:row;align-items:center;justify-content:space-between;padding:10px 15px;gap:12px}.kitchen-pos .kpos-brand img{width:155px}.kitchen-pos .kpos-brand span,.kitchen-pos .kpos-restaurant,.kitchen-pos .kpos-nav-item{display:none}.kitchen-pos .kpos-sidebar-bottom{padding:0;margin:0}.kitchen-pos .kpos-logout{width:auto;min-height:39px;padding:8px 13px}.kitchen-pos .kpos-topbar{padding:13px 16px}.kitchen-pos .kpos-main{padding:18px 14px}.kitchen-pos .kpos-flow-label{display:none}.kitchen-pos .kpos-titlebar{align-items:flex-start}.kitchen-pos .kpos-actions button{padding:9px 12px;font-size:12px}.kitchen-pos .kpos-logout{display:block}}
@media(prefers-reduced-motion:reduce){.kitchen-login *, .kitchen-pos *{animation:none!important;transition:none!important}}

/* Staff UI v1 – compact, legible kitchen and waiter workspace. */
.kitchen-pos .kpos-main{max-width:1580px;padding:30px clamp(18px,2.5vw,42px) 45px}
.kitchen-pos .kpos-content{background:#f4f7fc}
.kitchen-pos .kpos-titlebar{margin-bottom:24px}
.kitchen-pos .kpos-titlebar h1{font-size:clamp(28px,2.5vw,36px);font-weight:800;letter-spacing:-1.2px}
.kitchen-pos .kpos-titlebar p{font-size:14px;color:#647c97}
.kitchen-pos .kpos-overview{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px;margin:0 0 27px}
.kitchen-pos .kpos-stat{position:relative;display:flex;flex-direction:column;gap:5px;background:#fff;border:1px solid #e1eaf4;border-radius:17px;padding:19px 22px;box-shadow:0 6px 23px #25446b08;min-height:120px;overflow:hidden}
.kitchen-pos .kpos-stat:after{content:'';position:absolute;right:-32px;top:-36px;width:118px;height:118px;border-radius:50%;background:#f7f9fd}
.kitchen-pos .kpos-stat-new{border-top:3px solid #f59d45}
.kitchen-pos .kpos-stat-progress{border-top:3px solid #477cd4}
.kitchen-pos .kpos-stat-ready{border-top:3px solid #32ae78}
.kitchen-pos .kpos-stat-caption{display:flex;gap:8px;align-items:center;font-weight:750;font-size:13px;color:#31516f;position:relative;z-index:1}
.kitchen-pos .kpos-stat-caption i{display:inline-block;background:#e5a35b;width:9px;height:9px;border-radius:50%}
.kitchen-pos .kpos-stat-progress i{background:#4d7ed3}
.kitchen-pos .kpos-stat-ready i{background:#32ae78}
.kitchen-pos .kpos-stat strong{font-size:32px;font-weight:850;line-height:1.15;letter-spacing:-1px;color:#193957;position:relative;z-index:1}
.kitchen-pos .kpos-stat small{font-size:12px;color:#7d91a6;position:relative;z-index:1}
.kitchen-pos .kpos-board-heading{display:flex;justify-content:space-between;align-items:center;gap:15px;margin:0 0 16px}
.kitchen-pos .kpos-board-kicker{color:#f28c28;font-size:10px;font-weight:850;letter-spacing:1.65px}
.kitchen-pos .kpos-board-heading h2{margin:4px 0;font-size:21px;letter-spacing:-.5px;color:#153754}
.kitchen-pos .kpos-board-heading p{margin:2px 0;color:#7b8fa4;font-size:12px}
.kitchen-pos .kpos-flow-pill{background:#e9f0fa;color:#51739a;font-size:12px;font-weight:750;border-radius:999px;padding:9px 14px;white-space:nowrap}
.kitchen-pos .kpos-utility-row{background:#eaf3ff;border:1px solid #d5e4f7;border-radius:11px;padding:11px 15px;margin-bottom:18px;justify-content:flex-start;gap:9px;color:#4c6990;font-size:13px}
.kitchen-pos .kpos-refresh-dot{width:8px;height:8px;background:#7897c6;border-radius:50%;flex-shrink:0}
.kitchen-pos .kpos-board-section{padding:0;background:transparent;box-shadow:none;border:0;border-radius:0}
.kitchen-pos .kpos-board{gap:17px;align-items:start}
.kitchen-pos .kpos-board>.kpos-lane{background:#fff;border:1px solid #e1e9f2;border-radius:17px;padding:16px;min-height:0;box-shadow:0 7px 25px #1c40680b}
.kitchen-pos .kpos-lane-title{margin-bottom:16px;padding:2px 3px 12px;border-bottom:1px solid #eaf0f6}
.kitchen-pos .kpos-lane-title h2{display:flex;gap:9px;align-items:center;font-size:15px}
.kitchen-pos .kpos-lane-title h2:before{content:'';display:inline-block;width:10px;height:10px;background:#f09b4b;border-radius:4px}
.kitchen-pos .kpos-lane-preparing .kpos-lane-title h2:before{background:#4c81d9}
.kitchen-pos .kpos-lane-ready .kpos-lane-title h2:before{background:#38ac75}
.kitchen-pos .kpos-blank{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:5px;background:#f8fafd;border:1px dashed #d9e5f1;border-radius:13px;min-height:180px;padding:20px 22px;text-align:center}
.kitchen-pos .kpos-blank-illustration{display:grid;place-items:center;width:47px;height:47px;border-radius:16px;color:#537ca8;background:#e8f1fc;font-size:24px;margin-bottom:6px;font-weight:700}
.kitchen-pos .kpos-lane-ready .kpos-blank-illustration{color:#2a9a6e;background:#e7f8ee}
.kitchen-pos .kpos-blank strong{font-size:14px;color:#315572}
.kitchen-pos .kpos-blank p{font-size:12px;line-height:1.5;max-width:240px;margin:1px 0;color:#8799a9}
.kitchen-pos .kpos-ticket{box-shadow:0 4px 16px #25446b0a}
.kitchen-pos .kpos-actions button{border-radius:10px;transition:background .15s ease,transform .15s ease}
.kitchen-pos .kpos-actions button:active{transform:translateY(1px)}
.kitchen-pos .kpos-logout{border-radius:10px}
@media(max-width:1080px){.kitchen-pos .kpos-overview{gap:10px}.kitchen-pos .kpos-stat{padding:14px}.kitchen-pos .kpos-board{grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}.kitchen-pos .kpos-board>.kpos-lane{padding:12px}}
@media(max-width:850px){.kitchen-pos .kpos-overview{grid-template-columns:repeat(3,minmax(0,1fr))}.kitchen-pos .kpos-board{grid-template-columns:1fr}.kitchen-pos .kpos-stat strong{font-size:26px}.kitchen-pos .kpos-main{padding:20px 14px}}
@media(max-width:530px){.kitchen-pos .kpos-overview{gap:7px}.kitchen-pos .kpos-stat{padding:12px 10px;min-height:105px;border-radius:11px}.kitchen-pos .kpos-stat-caption{font-size:11px;gap:4px}.kitchen-pos .kpos-stat small{font-size:10px}.kitchen-pos .kpos-titlebar{align-items:flex-start}.kitchen-pos .kpos-active-count{font-size:11px;padding:8px 10px}.kitchen-pos .kpos-board-heading h2{font-size:19px}.kitchen-pos .kpos-flow-pill{display:none}}
