body.cashier {background:#edf4fc;color:#162c49}
.cashier main {max-width:94rem;padding:clamp(.8rem,2.5vw,2rem)}
.cashier header {background:#132d49;color:#fff;padding:1rem 1.35rem}
.cashier header p {color:#a9d0f4}
.cashier .panel,.cashier .ticket {background:#fff;border-color:#cad9ea}
.cashier .layout {grid-template-columns:minmax(15rem, .82fr) minmax(0, 2fr);align-items:start}
.cashier #order-summary {grid-area:1/1;position:sticky;top:1rem}
.cashier .layout > .panel:first-child {grid-area:1/2}
.cashier :is(button,select,input,nav a) {background:#f7fbff;border-color:#b8cbe0;color:#19334f}
.cashier :is(button.primary, nav a[aria-current="page"],#categories button[aria-pressed="true"],#print-receipt) {background:#075eac;border-color:#075eac;color:white}
.cashier :focus-visible {outline-color:#1269ba}
#categories {display:flex;flex-wrap:wrap;gap:.4rem;margin:.9rem 0}
#categories button {display:flex;align-items:center;gap:.4rem;min-height:44px;padding:.3rem .55rem}
#categories img {width:32px;height:28px;object-fit:cover;border-radius:4px}
.till-search {display:grid;gap:.3rem;margin-bottom:.75rem;font-size:.88rem;font-weight:650}
.cashier #menu {display:grid;grid-template-columns:repeat(auto-fill,minmax(min(100%, 140px),1fr));gap:.65rem}
.cashier .dish-tile {text-align:left;padding:0;overflow:hidden;display:flex;flex-direction:column;min-height:146px}
.cashier .dish-tile img {width:100%;height:92px;object-fit:cover;background:#e5eef5}
.dish-tile span {padding:.4rem .55rem .2rem}
.dish-tile strong {padding:0 .55rem .5rem;margin-top:auto;color:#075eac}
.cashier .item {border-color:#dae5f1}
.cart-thumb {width:40px;height:38px;object-fit:cover;border-radius:5px}
.cart-text {flex:1}
.cart-text small {display:block;color:#47627c}
.cashier .item button {min-width:2rem;padding:.4rem}
#draft-total {display:flex;justify-content:space-between;padding:.75rem .65rem;background:#dfedfa;color:#143d65;border-radius:7px;margin-top:.75rem;font-weight:800}
.cashier #cash {background:#a12935;color:white;border-color:#a12935}
.cashier #pay {background:#ffc35b;color:#292a27;border-color:#cf8c27}
@media(max-width:700px){
 .cashier .layout {grid-template-columns:1fr}
 .cashier .layout > .panel:first-child {grid-area:1/1}
 .cashier #order-summary {grid-area:2/1;position:static}
}
@media print {
 body.printing-receipt main > :not(#receipt) {display:none!important}
 body.printing-receipt {background:white}
 body.printing-receipt main {margin:0;padding:0}
 body.printing-receipt #receipt {color:black;width:72mm;font:12px system-ui,sans-serif;padding:3mm}
}

.tile-caption {padding:.35rem .55rem 0;color:#47627c;font-size:.72rem}
.cashier main {max-width:none}
.cashier #station-header {display:flex;align-items:center;justify-content:space-between;gap:.8rem;flex-wrap:wrap}
.cashier #station-header h1 {font-size:clamp(1.25rem,3vw,2rem)}
#cashier-header-actions {display:flex;align-items:center;gap:.45rem;flex-wrap:wrap}
.cashier #fullscreen {background:#075eac;border-color:#78b7f0;color:white;font-weight:750}
.cashier #category-title {margin:.35rem 0 .65rem;font-size:1.25rem}
.cashier #menu {grid-template-columns:repeat(auto-fill,minmax(min(100%, 170px),1fr))}
.cashier .dish-tile img {height:clamp(112px,16vw,190px);object-fit:contain;background:#f1f6fb}
.cashier #staff > .panel:first-child {min-width:0}
html.till-focused,html:fullscreen {background:#edf4fc}
.cashier.till-focused main {width:100%;min-height:100dvh;padding:clamp(.45rem,1.25vw,1rem)}
.cashier.till-focused #station-toggle {display:none}
.cashier #station-nav[hidden] {display:none}
@media(max-width:700px){
  .cashier #menu {grid-template-columns:repeat(2,minmax(0,1fr))}
  .cashier .dish-tile img {height:115px}
}
.cashier #menu {align-content:start}
.cashier article.dish-tile {background:#fff;border:1px solid #b8cbe0;border-radius:9px}
.cashier .dish-select {padding:0;display:flex;flex-direction:column;align-items:stretch;flex:1;text-align:left;border:0;border-radius:0;background:#fff}
.cashier .dish-select .dish-name {font-weight:700}
.cashier .dish-select strong {margin-top:auto}
.cashier .tile-quantity {display:grid;grid-template-columns:1fr auto 1fr;align-items:center;gap:.3rem;padding:.35rem;background:#edf4fc}
.tile-quantity span {min-width:1.4rem;text-align:center;padding:0;font-weight:750}
.cashier .tile-quantity button {min-height:44px;padding:.2rem;font-size:1.3rem;font-weight:800}
.cashier #categories {display:grid;grid-template-columns:repeat(auto-fill,minmax(90px,1fr));margin:.55rem 0}
.cashier #categories button {display:grid;grid-template-rows:44px auto;justify-items:center;text-align:center;gap:.2rem;font-size:.82rem;font-weight:700}
.cashier #categories img {width:100%;max-width:82px;height:44px}
.category-picture {display:grid;place-items:center;min-height:44px;font-size:1.6rem}
.cashier .dish-select .category-picture {height:clamp(112px,16vw,190px);background:#f1f6fb}
.cashier #board {margin-top:.65rem}
.cashier #tickets {grid-template-columns:1fr}
#category-editor {width:min(92vw,38rem)}
#category-settings {max-height:min(55dvh,30rem);overflow:auto}
.category-setting {display:grid;grid-template-columns:minmax(0,1fr) auto auto auto;gap:.35rem;align-items:end;padding:.35rem 0}
.category-setting-name {display:grid;gap:.2rem}
.category-setting-show {padding:.65rem 0}
.category-setting button {padding:.6rem}
@media(min-width:701px){
 .cashier.till-focused main {position:fixed;inset:0;height:100dvh;min-height:0;display:flex;flex-direction:column;overflow:hidden;background:#edf4fc}
 .cashier.till-focused #staff {flex:1;min-height:0;align-items:stretch;gap:.65rem}
 .cashier.till-focused #order-summary {position:static;overflow:auto}
 .cashier.till-focused #staff > .panel:first-child {display:flex;flex-direction:column;min-height:0}
 .cashier.till-focused #menu {flex:1;min-height:0;overflow:auto}
 .cashier.till-focused #categories {max-height:27dvh;overflow:auto}
}
@media print {
 body.cashier.till-focused.printing-receipt main {position:static;height:auto;display:block;overflow:visible;background:white}
}
@media screen and (max-width:700px){
 .cashier.till-focused main {position:fixed;inset:0;height:100dvh;min-height:0;overflow:auto;background:#edf4fc}
 .cashier.till-focused #order-summary {grid-area:1/1;position:sticky;top:0;z-index:1;max-height:32dvh;overflow:auto}
 .cashier.till-focused #staff > .panel:first-child {grid-area:2/1}
}
@media screen and (max-width:700px){
 .desktop-till .cashier main {min-width:1100px}
 .desktop-till .cashier .layout {grid-template-columns:minmax(15rem,.82fr) minmax(0,2fr);align-items:start}
 .desktop-till .cashier #order-summary {grid-area:1/1;position:static;max-height:none}
 .desktop-till .cashier #staff > .panel:first-child {grid-area:1/2}
 .desktop-till .cashier #menu {grid-template-columns:repeat(auto-fill,minmax(170px,1fr))}
 .desktop-till .cashier.till-focused main {min-width:0}
 .desktop-till .cashier.till-focused #staff {min-width:1070px}
}
.cashier #till-actions {
  display:flex;align-items:center;gap:.4rem;flex-wrap:nowrap;
  margin:0 0 .55rem;padding:.35rem .45rem;border:1px solid #cad9ea;
  border-radius:8px;background:#fff;overflow-x:auto;
}
.cashier #till-actions > :not(#sound-status) {flex-shrink:0}
.cashier #till-actions :is(button,select) {padding:.36rem .55rem;font-size:.85rem;white-space:nowrap}
.cashier #till-actions label {display:flex;gap:.3rem;align-items:center;font-size:.85rem}
.cashier #cashier-header-actions {margin-inline-start:auto;flex-wrap:nowrap}
.cashier #sound-status,.visually-hidden {
  position:absolute;width:1px;height:1px;padding:0;margin:-1px;
  overflow:hidden;clip-path:inset(50%);white-space:nowrap;
}
.cashier #table-controls:has(#scan[hidden]) {display:none}
.cashier #order-summary #title {font-size:.8rem;color:#47627c;margin:0 0 .3rem}
.cashier #catalogue-tools {display:flex;align-items:center;gap:.45rem}
.cashier #catalogue-tools .till-search {margin:0;flex:1;min-width:0}
.cashier #catalogue-tools input {width:100%}
.cashier #catalogue-tools :is(input,button) {padding:.37rem .55rem;font-size:.85rem}
.cashier #menu {touch-action:pan-y}
@media screen and (min-width:701px){
 .cashier #catalogue-controls {position:sticky;top:0;z-index:1;background:#fff}
 .cashier.till-focused #catalogue-controls {position:static;flex-shrink:0}
}
.cashier #order-summary {display:flex;flex-direction:column}
.cashier #till-payment-controls {position:sticky;bottom:0;margin-top:auto;padding:.55rem 0 0;background:#fff}
#till-tender-bar {display:grid;grid-template-columns:1fr 1fr 1fr;gap:.4rem}
.cashier #till-tender-bar button {min-height:46px;font-weight:750}
.cashier #till-tender-bar .cash-tender {background:#a12935;border-color:#a12935;color:#fff}
.cashier #till-tender-bar .card-tender {background:#ffc35b;border-color:#cf8c27;color:#292a27}
#till-extra-actions {display:flex;flex-wrap:wrap;gap:.32rem;margin-bottom:.45rem}
.cashier #till-extra-actions button {font-size:.85rem;padding:.4rem}
#bill-adjustments {display:flex;flex-wrap:wrap;gap:.55rem;margin:.6rem 0}
#bill-adjustments label,#cash-panel label,.operation-field {display:grid;gap:.25rem;margin-bottom:.5rem;font-weight:650}
#bill-adjustments input,#cash-panel input {width:min(10rem,100%)}
#cash-panel {margin:.6rem 0;border:1px solid #cad9ea;border-radius:8px}
#cash-shortcuts,#cash-keypad {display:grid;gap:.3rem;margin-top:.4rem}
#cash-shortcuts {grid-template-columns:repeat(4,1fr)}
#cash-keypad {grid-template-columns:repeat(3,1fr)}
#cash-change {margin:.5rem 0 0;font-weight:750}
#till-operation {width:min(92vw,36rem)}
.till-report {display:grid;grid-template-columns:1fr auto;gap:.4rem 1rem}
.till-report dd {margin:0;text-align:right;font-variant-numeric:tabular-nums;font-weight:700}
