/* Root cashier pages: left bill / narrow actions / right goods, following archived billing.vue. */
#work{display:block;max-width:none}#work[data-panel="tables"] #order-panel,#work[data-panel="tables"] #checkout-panel,#work[data-panel="tables"] #shift-panel,#work[data-panel="tables"] #members-panel,#work[data-panel="order"] #tables-panel,#work[data-panel="order"] #checkout-panel,#work[data-panel="order"] #shift-panel,#work[data-panel="order"] #members-panel,#work[data-panel="checkout"] #tables-panel,#work[data-panel="checkout"] #order-panel,#work[data-panel="checkout"] #shift-panel,#work[data-panel="checkout"] #members-panel,#work[data-panel="members"] #tables-panel,#work[data-panel="members"] #order-panel,#work[data-panel="members"] #checkout-panel,#work[data-panel="members"] #shift-panel,#work[data-panel="shift"] #tables-panel,#work[data-panel="shift"] #order-panel,#work[data-panel="shift"] #checkout-panel,#work[data-panel="shift"] #members-panel{display:none!important}
#mobile-nav{overflow-y:auto;padding-top:14px;gap:6px}#mobile-nav button,#mobile-nav a{min-height:68px}#work .page-heading{min-height:50px;margin-bottom:12px}.page-heading-actions{display:flex;gap:10px}#order-head h1{font-size:24px}#order-head .muted{font-size:13px}.ordering-grid{grid-template-columns:30vw 100px minmax(0,1fr);gap:0;min-height:calc(100dvh - 235px);background:white;border:1px solid #dde2ea;border-radius:8px;overflow:hidden}.ordering-grid .order-ticket{width:auto;border:0;border-right:1px solid #dde2ea;border-radius:0;align-self:stretch;padding:0;display:flex;flex-direction:column;min-width:0}.bill-heading{display:flex;justify-content:space-between;font-size:15px;padding:12px 15px;border-bottom:1px solid #e6e6e6;background:#fbfcff}.bill-heading span{font-size:13px;color:#6c7689}.bill-scroll{flex:1;padding:0 13px;overflow:auto;max-height:calc(100dvh - 410px);min-height:220px}.bill-scroll #lines{max-height:none;overflow:visible}.bill-scroll #lines .line{font-size:13px;padding:10px 2px}.bill-scroll #lines .line strong{font-size:16px}.bill-scroll details{margin:10px 0}.bill-scroll summary{cursor:pointer;font-size:14px;color:#51617b}.bill-scroll #lines .line [data-stage]{display:none}.bill-footer{margin-top:auto;padding:12px 15px;border-top:1px solid #dde2ea;display:flex;gap:12px;align-items:center;justify-content:space-between}.bill-footer .primary{min-width:120px;font-size:17px;padding:12px}.bill-footer span{font-size:14px;color:#536079}#cart{margin-top:8px;padding-top:12px}#cart .cart-heading{font-size:15px;display:block;margin-bottom:5px}#cart .cart-line{display:flex;align-items:center;gap:6px;padding:12px 7px;cursor:pointer;border:1px solid transparent;border-bottom-color:#e8edf5}#cart .cart-line.selected{background:#eaf0ff;border-color:#4275f4;border-radius:4px}#cart .cart-line>span{display:grid;grid-template-columns:minmax(0,1fr) 45px 70px;gap:8px;align-items:center;flex:1;font-size:15px}#cart .cart-line>span strong{font-size:17px;margin:0}#cart .cart-line>span span:last-child{text-align:right}#cart .cart-line>button{display:none}#cart #submit{margin-top:14px;font-size:17px}#cart #clear-cart,#cart #employee-save{font-size:13px;margin:8px 5px 3px 0}#cart .cart-empty{padding:25px 10px;text-align:center;color:#9aa3b3}#employee-drafts{padding:10px 0;border-top:0;margin:4px 0}#employee-drafts summary{font-size:13px}#employee-drafts p{font-size:12px}
.ordering-grid .legacy-actions{width:auto;height:auto;padding:12px 10px;display:flex;align-items:stretch;flex-direction:column;gap:10px;border-right:1px solid #e1e5ed;background:#eff0f4;min-width:0}.legacy-actions>button{font-size:16px;min-height:55px;margin:0;padding:10px 4px}.legacy-actions #cart-plus,.legacy-actions #cart-minus{font-size:27px}.rail-title{font-size:12px;text-align:center;color:#7c8799}.order-tools{margin:0;text-align:center;font-size:14px}.order-tools summary{cursor:pointer;border:1px solid #d9e0ec;padding:13px 4px;border-radius:6px;background:white}#operations{margin-top:8px}#operations button{display:block;width:100%;font-size:12px;margin:7px 0;padding:8px 3px;white-space:normal}
.ordering-grid .catalog{border:0;border-radius:0;padding:0;min-width:0;display:flex;flex-direction:column}.catalog-heading{display:flex;align-items:center;gap:15px;padding:12px 15px;border-bottom:1px solid #e8edf5}.catalog-heading label{display:flex;align-items:center;gap:12px;font-size:14px;flex:1;margin:0}.catalog-heading input{flex:1;margin:0;max-width:560px;font-size:15px;height:44px}.catalog-heading>span{font-size:12px;color:#8390a6;white-space:nowrap}.catalog-body{display:grid;grid-template-columns:minmax(0,1fr) 115px;flex:1;min-height:0}.legacy-goods #menu{display:flex;flex-wrap:wrap;align-content:flex-start;padding:15px;gap:0;overflow:auto;max-height:calc(100dvh - 315px)}.legacy-goods #menu .dish{padding:12px;cursor:pointer;font-size:18px;min-width:135px;margin:0 10px 10px 0}.legacy-goods #menu .dish strong{font-size:18px;line-height:1.35}.legacy-goods #menu .dish p{font-size:18px;margin:8px 0;color:#ea5359}.legacy-goods #menu .dish button{font-size:13px;padding:3px;background:transparent;border:0;color:#65748d;min-height:26px}.legacy-goods #menu .dish.picked{border-color:#4275f4;background:#f1f5ff}.legacy-categories{display:flex!important;flex-direction:column;padding:10px!important;margin:0!important;gap:10px!important;border-left:1px solid #e5e5e5;overflow:auto!important;background:#fafbfe}.legacy-categories button{width:100%;min-height:45px;font-size:16px!important;padding:10px 3px!important;margin:0!important}.legacy-categories button.selected{background:#4275f4!important;color:white!important}
#member{margin:0;padding:0;border:0;color:inherit}#profile-order-card{border:0!important;margin:0!important;padding:12px 14px!important;display:grid;grid-template-columns:minmax(0,1fr) auto;gap:3px 12px;align-items:center}#profile-order-card h3{margin:0;font-size:16px}#profile-order-card p{font-size:12px;color:#8390a4;margin:3px 0;grid-column:1}#profile-order-card button{font-size:13px;padding:7px 10px;min-height:36px;margin:0;grid-column:2;grid-row:1/3}#profile-order-card #profile-remove{grid-column:1;grid-row:auto;justify-self:start;font-size:12px;color:#61738d}#member>h3,#member>p{margin:5px 12px}#member>button{margin:5px 12px}
#checkout-panel{border:0;background:transparent;padding:0;margin:0}.checkout-workspace{display:grid;grid-template-columns:minmax(300px,.9fr) minmax(360px,1.1fr);gap:16px}.checkout-bill,.payment-options{background:white;padding:22px;border:1px solid #dde4ef;border-radius:8px;min-width:0}.checkout-workspace h2{font-size:20px;margin:0 0 20px}.checkout-line{display:grid;grid-template-columns:minmax(0,1fr) 75px 100px;gap:10px;padding:13px 0;border-bottom:1px solid #e6eaf2;font-size:16px}.checkout-line span:last-child{text-align:right}#checkout-panel #totals p{font-size:16px}#checkout-panel #totals p.price{font-size:28px}.payment-method{padding:15px 20px;font-size:19px;display:inline-block;border:2px solid #4275f4;background:#eef3ff;border-radius:6px;margin-bottom:10px}.payment-method span{display:block;font-size:12px;color:#738098}.payment-options #cash{max-width:560px}.payment-options #cash label{font-size:16px;margin:16px 0}.payment-options #cash input{height:55px;font-size:23px}.payment-options #receive{font-size:18px;min-height:56px}.payment-options #cash button:not(#receive){font-size:14px;min-height:42px}.payment-options #checkout-member-slot{margin:20px 0;border-top:1px solid #dde2eb;padding-top:10px}.pending-order-warning{padding:12px;background:#fff3d5;color:#8d5c18;margin-bottom:15px}.pending-order-warning button{margin-left:12px}
.shift-workspace{display:grid;grid-template-columns:minmax(300px,1fr) minmax(280px,.7fr);gap:20px}.shift-workspace>section{padding:30px;border:1px solid #dde4ef;border-radius:9px;background:white}#shift-panel #handover{margin:0;border:1px solid #dde4ef}#shift-panel h3,#shift-panel h2{font-size:23px;margin:0 0 15px}#shift-panel #shift{display:block;font-size:19px;padding:16px 35px;background:#4275f4;color:white;margin:25px 0 15px}.button-link{display:inline-block;border:1px solid #cbd7ed;background:#fff;border-radius:6px;padding:12px 20px;color:#365fb6}
.page-empty{padding:80px 20px;text-align:center;background:white;border:1px solid #e0e6ef;border-radius:9px}.page-empty h2{font-size:25px}.page-empty p{color:#7b879b}#work[data-has-order="false"] .ordering-grid,#work[data-has-order="false"] .checkout-workspace,#work[data-has-order="false"] #go-checkout-top{display:none}#work[data-has-order="true"] #order-empty,#work[data-has-order="true"] #checkout-empty{display:none}
#members-panel .directory-view{display:block;position:static;width:100%;max-width:none;margin:0;box-shadow:none;padding:24px;border:1px solid #dce3ee;border-radius:8px;background:white;max-height:none}#members-panel .directory-view .profile-heading{border-bottom:1px solid #e1e6ef;padding-bottom:18px;margin-bottom:12px}#members-panel .directory-view .profile-heading h2{font-size:25px;margin:0;flex:1}#members-panel .directory-view .profile-heading button{font-size:15px}#members-panel .directory-view #profile-new{background:#4275f4;color:white}.profile-workspace{display:grid;grid-template-columns:minmax(280px,360px) minmax(0,1fr);gap:24px;align-items:start}#members-panel .userInfo{height:auto}#members-panel #profile-list{width:auto;max-height:55vh;overflow:auto;border:1px solid #e1e6ef;border-radius:6px;padding:0 12px}#members-panel .profile-row{padding:15px 0;border-bottom:1px solid #e4e9f1;margin:0}#members-panel .profile-row strong{font-size:18px}#members-panel .profile-row p{font-size:13px;color:#7b89a0}#members-panel .profile-row button{font-size:14px;margin-top:8px}#members-panel #profile-detail{margin:0;padding:20px;background:#f8faff;border:1px solid #dbe4f3;border-radius:8px}#members-panel #profile-detail h3{font-size:20px}#members-panel #profile-edit-form{max-width:600px}#members-panel #profile-edit-form input{font-size:16px}#members-panel #profile-order-history p{padding:12px;background:white;border:1px solid #e0e7f1;border-radius:6px;font-size:14px}#members-panel #profile-create-panel{max-width:700px}#members-panel #profile-create-form{padding:18px;background:#f7f9ff;border-radius:7px}#members-panel #profile-search-form{max-width:750px;margin:20px 0}#members-panel #profile-search{font-size:17px;height:48px}.directory-view::backdrop{display:none}
#draft-quantity-dialog{width:400px}#draft-quantity-dialog input{font-size:28px;text-align:center}.draft-dialog-actions{display:flex;justify-content:flex-end;gap:10px;margin-top:20px}#draft-quantity-message{color:#aa3e2c}
@media(min-width:1500px){.ordering-grid{grid-template-columns:400px 100px minmax(0,1fr)}}@media(max-width:1150px){.ordering-grid{grid-template-columns:320px 82px minmax(0,1fr)}.ordering-grid .order-ticket{order:0}.ordering-grid .legacy-actions{order:1}.ordering-grid .catalog{order:2}.catalog-body{grid-template-columns:minmax(0,1fr) 85px}.legacy-goods #menu .dish{width:145px;height:120px}.catalog-heading label{font-size:12px;gap:7px}.checkout-workspace{grid-template-columns:1fr 1fr}}@media(max-width:800px){.ordering-grid{grid-template-columns:280px minmax(0,1fr)}.ordering-grid .legacy-actions{grid-column:1/-1;grid-row:2;flex-direction:row;height:auto;padding:6px;overflow:auto}.legacy-actions>button{flex:1;min-height:44px}.rail-title{display:none}.order-tools{width:80px}.catalog-body{grid-template-columns:minmax(0,1fr)}.legacy-categories{grid-row:1;flex-direction:row;max-height:65px;border-left:0;border-bottom:1px solid #e4e9f1}.legacy-categories button{width:auto;min-width:60px}.legacy-goods #menu{grid-row:2;padding:10px}.profile-workspace{grid-template-columns:1fr}.checkout-workspace,.shift-workspace{grid-template-columns:1fr}.bill-scroll{max-height:55vh}}
@media(max-width:580px){#work{padding-bottom:95px}#mobile-nav{overflow-x:auto;overflow-y:hidden;justify-content:flex-start;gap:3px;width:100%}#mobile-nav button,#mobile-nav a{min-width:62px;min-height:55px;flex-shrink:0}.ordering-grid{display:flex;flex-direction:column;min-height:0}.ordering-grid .catalog{order:0}.ordering-grid .legacy-actions{order:1;display:flex;flex-direction:row;flex-wrap:wrap}.ordering-grid .order-ticket{order:2;width:100%;border-right:0;border-top:1px solid #dce3ef}.legacy-goods #menu{max-height:290px}.legacy-goods #menu .dish{width:calc(50% - 10px);min-width:100px;height:115px}.catalog-heading{padding:10px}.catalog-heading label{display:block}.catalog-heading input{width:100%;height:40px}.catalog-body{display:flex;flex-direction:column}.legacy-categories{order:0;flex-direction:row}.legacy-goods #menu{order:1}.bill-scroll{max-height:none;min-height:150px}.legacy-actions #cart-plus,.legacy-actions #cart-minus{font-size:20px}.legacy-actions>button{min-width:50px}.checkout-bill,.payment-options{padding:16px}.checkout-line{font-size:14px;grid-template-columns:1fr 55px 75px;gap:5px}.profile-workspace{display:block}#members-panel .directory-view{padding:15px}#members-panel #profile-detail{margin-top:16px}#members-panel #profile-list{max-height:38vh}.page-heading-actions button{padding:8px;font-size:12px}#order-head h1{font-size:21px}#members-panel .profile-heading{flex-wrap:wrap}}

/* Expanded catalog: specifications remain readable and each pane scrolls separately. */
.legacy-goods #menu .dish{width:176px;height:150px;display:flex;flex-direction:column;overflow:hidden}.legacy-goods #menu .dish strong{font-size:16px;line-height:1.4;min-height:45px;white-space:normal;overflow-wrap:anywhere}.legacy-goods #menu .dish p{font-size:17px;margin:7px 0}.legacy-goods #menu .dish button{margin-top:auto;flex-shrink:0}.legacy-categories{max-height:calc(100dvh - 315px)}
@media(min-width:701px){.ordering-grid{height:calc(100dvh - 235px)}.catalog-body{overflow:hidden}.legacy-goods #menu{max-height:100%;box-sizing:border-box}}
@media(min-width:701px){.ordering-grid{grid-template-rows:minmax(0,1fr)}.ordering-grid>.catalog,.ordering-grid>.order-ticket,.ordering-grid>.legacy-actions{min-height:0}.legacy-goods #menu{min-height:0}}

/* Ordering: table identity belongs to the bill; categories run above the menu. */
.order-ticket>#order-head{padding:12px 14px 9px;border-bottom:1px solid #e4e9f1}#order-head h1{font-size:20px;margin:0 0 3px}#order-head p{margin:0;font-size:12px}.catalog>.legacy-categories{flex-direction:row!important;max-height:none;min-height:58px;flex-shrink:0;border-left:0;border-bottom:1px solid #e4e9f1;overflow-x:auto!important;overflow-y:hidden!important;padding:8px 12px!important;gap:8px!important}.catalog>.legacy-categories button{width:auto;min-width:70px;min-height:40px;flex-shrink:0;padding:8px 12px!important;font-size:14px!important}.catalog .catalog-body{display:block;min-width:0}.catalog .catalog-heading{flex-shrink:0}.catalog .catalog-heading label{min-width:0}.catalog .catalog-heading input{min-width:0}
@media(min-width:701px){.ordering-grid{height:calc(100dvh - 160px);min-height:420px}.ordering-grid .bill-scroll{max-height:none;min-height:0}.ordering-grid .catalog-body{overflow:auto}.legacy-goods #menu{max-height:none;overflow:visible}.order-ticket>#order-head{flex-shrink:0}}
@media(max-width:700px){.catalog>.legacy-categories{order:0}.catalog>.catalog-heading{order:1}.catalog>.catalog-body{order:2}.catalog-body #menu{max-height:320px;overflow:auto}.ordering-grid{height:auto;min-height:0}}
