.ops-toolbar{grid-column:1/-1;display:flex;flex-wrap:wrap;gap:.7rem;align-items:center;padding:.85rem 1rem;background:#fff;border:1px solid #dfebf8;border-radius:16px;margin-bottom:.5rem;color:#173455}.ops-order-heading{display:grid;gap:.2rem;min-width:155px}.ops-order-heading small{color:#637b96}.ops-actions{display:flex;flex-wrap:wrap;gap:.45rem;align-items:center}.ops-actions button{font-size:.875rem;min-height:38px;padding:.45rem .7rem}.ops-connection{font-size:.8rem;color:#506984}.ops-dialog{width:min(780px,calc(100% - 24px));max-height:88dvh;padding:0;border:1px solid #dce8f6;border-radius:20px;color:#173455;background:#fff;box-shadow:0 24px 80px #10243e40}.ops-dialog::backdrop{background:#10243e85}.ops-dialog>header{display:flex;align-items:center;justify-content:space-between;gap:1rem;padding:1rem 1.2rem;border-bottom:1px solid #e4edf7}.ops-dialog h2{font-size:1.2rem;margin:0}.ops-dialog-body{padding:1.2rem;overflow:auto;max-height:calc(88dvh - 80px)}.ops-dialog p,.ops-benefits p{font-size:.875rem;line-height:1.5;color:#58718c}.ops-fields{display:grid;grid-template-columns:1fr 1fr;gap:1rem;margin:1rem 0}.ops-dialog label,.ops-benefits label{display:grid;gap:.45rem;font-size:.875rem}.ops-dialog .field,.ops-benefits .field{width:100%;min-height:44px;box-sizing:border-box}.ops-dialog button{min-height:40px}.ops-order-list article,.ops-promos article{display:flex;gap:.6rem;align-items:center;border-bottom:1px solid #e3edf6;padding:.7rem 0}.ops-open{display:grid;gap:.4rem;text-align:left;flex:1;min-width:0}.ops-open b,.ops-open span,.ops-open small{overflow-wrap:anywhere}.ops-open small{color:#637b96}.ops-promos article{flex-wrap:wrap;justify-content:space-between}.ops-split-row{display:grid!important;grid-template-columns:1fr 90px;align-items:center;gap:1rem;margin:.7rem 0;padding:.5rem 0;border-bottom:1px solid #e3edf6}.ops-split-row span{display:grid;gap:.3rem}.ops-split-row small{color:#637b96}.ops-kitchen{white-space:pre-wrap;overflow-wrap:anywhere;padding:1rem;background:#f5f8fc;border:1px dashed #9bb9d9;border-radius:12px;font:14px/1.5 monospace}.ops-benefits{padding:1rem;border:1px solid #cfe6dc;background:#f3fcf7;border-radius:14px;margin-bottom:1rem}.ops-benefits [hidden]{display:none!important}.ops-benefits .ops-actions{margin-top:.6rem}.ops-table-wrap{overflow:auto}.ops-table-wrap table{border-collapse:collapse;min-width:900px;font-size:.875rem}.ops-table-wrap td,.ops-table-wrap th{padding:.7rem;text-align:left;border-bottom:1px solid #e3edf6;vertical-align:top}.ops-table-wrap th small{display:block;margin-top:.5rem;color:#637b96;white-space:nowrap}.ops-checkbox{display:flex!important;align-items:center}.ops-checkbox input{width:18px;height:18px}.pos-content>.ops-toolbar{grid-column:1/-1}.ops-dialog details{padding:.8rem 0}.ops-dialog summary{cursor:pointer;font-weight:600}@media(max-width:600px){.ops-toolbar{padding:.7rem}.ops-fields{grid-template-columns:1fr}.ops-actions{width:100%}.ops-actions button{flex:1 1 auto}.ops-connection{width:100%}.ops-dialog-body{padding:1rem}.ops-order-list article{align-items:stretch}.ops-order-list article>.ops-cancel{font-size:.8rem;padding:.5rem}}

/* Existing catalog/cart rules explicitly occupy row one; reserve it for tools. */
@media(min-width:701px){
 #app>.app-shell:has(#posBarcodeInput)>.content.pos-content>.ops-toolbar{grid-column:1/-1!important;grid-row:1!important;margin:0!important}
 #app>.app-shell:has(#posBarcodeInput)>.content.pos-content>.cafe-catalog{grid-column:1!important;grid-row:2!important}
 #app>.app-shell:has(#posBarcodeInput)>.content.pos-content>.pos-entry-card:not(.cafe-retail-tools){grid-row:2!important}
 #app>.app-shell:has(#posBarcodeInput)>.content.pos-content>.cafe-retail-tools{grid-row:3!important}
 #app>.app-shell:has(#posBarcodeInput)>.content.pos-content>.cart{grid-row:2/span 2!important}
}
html[data-dhun-theme=dark] .ops-toolbar,html[data-dhun-theme=dark] .ops-dialog{background:#172b43;color:#edf5ff;border-color:#4c6d8f}
html[data-dhun-theme=dark] .ops-dialog p,html[data-dhun-theme=dark] .ops-order-heading small,html[data-dhun-theme=dark] .ops-connection{color:#c0d2e6}
html[data-dhun-theme=dark] .ops-benefits{background:#12382f;border-color:#3d7b68;color:#edf5ff}
html[data-dhun-theme=dark] .ops-benefits p{color:#c8e5d8}
html[data-dhun-theme=dark] .ops-kitchen{background:#10263d;color:#edf5ff}

.ops-actions-menu{flex:1;min-width:0}.ops-actions-menu>summary{display:none;list-style:none;cursor:pointer;font-weight:650;border:1px solid #bed3eb;background:#f5f9ff;color:#185eab;border-radius:10px;padding:.65rem .8rem;font-size:.875rem}.ops-actions-menu>summary::-webkit-details-marker{display:none}@media(max-width:700px){.ops-actions-menu{flex:0 0 auto;margin-left:auto}.ops-actions-menu>summary{display:block}.ops-actions-menu[open]{flex:1 1 100%;margin:0}.ops-actions-menu[open] .ops-actions{padding-top:.7rem}.ops-order-heading{min-width:0;flex:1}}


/* Compact cashier actions; modules retain the same buttons and handlers. */
.ops-toolbar{position:relative;justify-content:space-between;gap:1rem}.ops-toolbar>.ops-actions{flex:1 1 auto;width:auto;justify-content:flex-end;gap:.65rem;min-width:0}.ops-toolbar .ops-order-heading{flex:0 1 auto;min-width:145px}.ops-toolbar .ops-connection{display:flex;align-items:center;gap:.35rem;width:auto;font-size:.73rem;max-width:240px}.ops-connection::before{content:"";width:6px;height:6px;flex:none;border-radius:50%;background:#16a36a}.ops-connection.is-offline::before{background:#d58a12}.ops-primary-actions{display:flex;flex-wrap:wrap;align-items:center;gap:.5rem}.ops-toolbar button{display:inline-flex;align-items:center;justify-content:center;gap:.4rem;min-height:42px;border-radius:10px;font-size:.81rem;white-space:nowrap}.ops-toolbar button svg{width:17px;height:17px;flex:none;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}.ops-more{position:static;flex:none}.ops-more>summary{display:flex;align-items:center;gap:.45rem;min-height:42px;box-sizing:border-box;padding:.45rem .85rem;list-style:none;cursor:pointer;border:1px solid #c7d8ed;border-radius:10px;background:#f6f9fd;color:#284b74;font-size:.81rem;font-weight:650}.ops-more>summary::-webkit-details-marker{display:none}.ops-more>summary>span{font-size:1.3rem;line-height:1}.ops-more>summary:focus-visible{outline:3px solid #71a9fa;outline-offset:2px}.ops-more[open]>summary{background:#eaf2ff;border-color:#8ab3eb}.ops-more-panel{position:absolute;right:0;top:calc(100% + 8px);z-index:50;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:1.1rem;padding:1.2rem;width:min(570px,calc(100vw - 48px));max-height:65dvh;overflow:auto;box-sizing:border-box;border:1px solid #dce7f5;border-radius:16px;background:#fff;box-shadow:0 12px 36px #19395924}.ops-tool-group[hidden]{display:none}.ops-tool-group h3{margin:0 0 .45rem;font-size:.73rem;letter-spacing:.025em;color:#647b95}.ops-tool-group>div{display:grid;gap:.25rem}.ops-toolbar .ops-tool-group button{justify-content:flex-start;text-align:left;white-space:normal;border:0;background:transparent;color:#264e7b;padding:.6rem;border-radius:8px;width:100%}.ops-toolbar .ops-tool-group button:hover{background:#edf4ff}.ops-toolbar button:disabled{opacity:.5;cursor:not-allowed}
html[data-dhun-theme=dark] .ops-more-panel{background:#172b43;border-color:#4c6d8f}html[data-dhun-theme=dark] .ops-more>summary{background:#213b58;border-color:#4c6d8f;color:#edf5ff}html[data-dhun-theme=dark] .ops-tool-group h3{color:#b4c9df}html[data-dhun-theme=dark] .ops-tool-group button{color:#edf5ff}html[data-dhun-theme=dark] .ops-tool-group button:hover{background:#28496c}
@media(max-width:700px){.ops-toolbar{gap:.65rem;padding:.8rem}.ops-toolbar .ops-order-heading{flex:1 1 100%;min-width:0}.ops-toolbar>.ops-actions{width:100%;justify-content:space-between;flex-wrap:nowrap;gap:.4rem}.ops-primary-actions{flex:1;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:.4rem;min-width:0}.ops-toolbar .ops-primary-actions button{min-width:0;white-space:normal;padding:.45rem .4rem;font-size:.74rem;min-height:44px}.ops-toolbar button svg{width:16px;height:16px}.ops-more>summary{min-height:44px;padding:.45rem .55rem;font-size:.74rem}.ops-more-panel{left:0;right:0;width:100%;grid-template-columns:repeat(2,minmax(0,1fr));gap:.8rem;padding:.85rem;max-height:60dvh}.ops-toolbar .ops-tool-group button{font-size:.78rem;min-height:44px}.ops-toolbar .ops-connection{max-width:none}}
@media(max-width:360px){.ops-toolbar .ops-primary-actions button{gap:.2rem;font-size:.7rem}.ops-toolbar .ops-primary-actions button svg{display:none}}

/* Phone menu: one expandable category at a time, including saved-order actions. */
.ops-tool-group{min-width:0}.ops-tool-group>summary{list-style:none;margin:0 0 .45rem;font-size:.73rem;letter-spacing:.025em;color:#647b95;font-weight:700}.ops-tool-group>summary::-webkit-details-marker{display:none}
@media(min-width:701px){.ops-tool-group>summary{pointer-events:none}}
@media(max-width:700px){.ops-toolbar>.ops-actions{align-items:stretch}.ops-more{display:flex;align-items:stretch}.ops-more>summary{height:100%;justify-content:center}.ops-more-panel{display:block;padding:.45rem .7rem;max-height:min(52dvh,420px);overscroll-behavior:contain}.ops-tool-group{border-bottom:1px solid #e7eef7;padding:0}.ops-tool-group:last-child{border-bottom:0}.ops-tool-group>summary{display:flex;align-items:center;justify-content:space-between;gap:.5rem;min-height:44px;box-sizing:border-box;margin:0;padding:.65rem .35rem;font-size:.82rem;color:#284b74;cursor:pointer}.ops-tool-group>summary::after{content:"";width:7px;height:7px;border-right:1.5px solid currentColor;border-bottom:1.5px solid currentColor;transform:rotate(45deg);margin-right:.35rem}.ops-tool-group[open]>summary::after{transform:rotate(225deg)}.ops-tool-group>div{padding:0 0 .4rem}.ops-toolbar .ops-tool-group button{min-height:44px;padding:.55rem .65rem;font-size:.8rem}.ops-tool-group>summary:focus-visible{outline:2px solid #71a9fa;outline-offset:-2px;border-radius:8px}}
html[data-dhun-theme=dark] .ops-tool-group>summary{color:#c0d2e6}html[data-dhun-theme=dark] .ops-tool-group{border-color:#3d5670}
