.cashier-body { background: #f6f0df; }
.cashier-body .topbar { box-shadow: inset 0 4px #77967a; }
.cashier-body .top-inner { width: min(1536px, calc(100% - 40px)); min-height: 61px; }
.cashier-body .brand { font-size: 1.12rem; }
.cashier-body .brand small { font-size: .73rem; }
.cashier-app { width: min(1536px, calc(100% - 40px)); margin: 14px auto 0; display: grid; gap: 12px; }
.cash-controls { display: grid; grid-template-columns: minmax(345px, 1.32fr) minmax(165px, .74fr) minmax(148px, .65fr); gap: 12px; align-items: center; padding: 10px 14px; border: 1px solid #738777; border-radius: 15px; background: #3c5644; color: #fff8e5; box-shadow: 0 3px 0 #d7d2b9; }
.cash-fields { display: grid; grid-template-columns: minmax(130px, 1.6fr) minmax(62px, .65fr) minmax(96px, .9fr); gap: 8px; align-items: end; }
.cash-fields label { min-width: 0; font-size: .8rem; font-weight: 750; }
.cash-fields label span { font-size: .67rem; color: #dbebd5; }
.cash-fields input, .cash-fields select { display: block; margin-top: 3px; min-height: 35px; font-size: .96rem; padding: 4px 7px; color: var(--ink); }
.cash-progress > span { display: block; font-size: .86rem; font-weight: 750; margin-bottom: 5px; }
.cash-progress strong { color: #fae6a7; margin-left: 5px; }
.cash-progress .progress-marks li { border-color: #a0b094; background: #536a56; color: #f6efd8; }
.cash-progress .progress-marks .current { background: var(--sun); color: #483b27; }
.cash-progress .progress-marks .done { background: #c8e3bc; color: var(--dark-green); }
.cash-totals { display: grid; grid-template-columns: 1.25fr .75fr; gap: 7px; }
.cash-totals div { display: grid; padding: 3px 7px; text-align: center; border: 1px solid #7d9980; border-radius: 9px; background: #2c4436; }
.cash-totals span { font-size: .74rem; color: #f5e8be; }
.cash-totals strong { line-height: 1.26; font-size: clamp(1.15rem, 2.1vw, 1.75rem); font-variant-numeric: tabular-nums; }

.register-workspace { display: grid; grid-template-columns: minmax(0, .93fr) minmax(0, 1.07fr); gap: 12px; align-items: stretch; }
.counter-side { display: grid; gap: 10px; grid-template-rows: auto 1fr; min-width: 0; }
.counter-products, .register-services { padding: 11px; }
.register-heading { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 7px; }
.register-heading h2 { color: var(--dark-green); font-size: clamp(1.08rem, 2.15vw, 1.48rem); }
.register-heading > span:not(.mission-tag) { font-size: .8rem; color: var(--muted); font-weight: 700; }
.counter-products .products { gap: 8px; }
.counter-products .product-card { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 2px; padding: 4px 9px 6px; }
.counter-products .product-card img { width: min(100%, 122px); max-height: 89px; grid-column: 1 / -1; scale: 1.12; }
.counter-products .product-card strong { text-align: start; font-size: clamp(.94rem, 2vw, 1.35rem); }
.counter-products .product-quantity { margin: 0; }
.tray { position: relative; display: flex; flex-direction: column; min-height: 179px; overflow: hidden; isolation: isolate; padding: 10px 11px; border: 2px solid #9eb296; border-radius: 19px; background: #dce8d1; box-shadow: inset 0 0 0 4px #d0dfc6, 0 3px 0 #d9ddc8; }
.tray .register-heading { margin-bottom: 0; }
.tray .register-heading img { width: 56px; height: 31px; object-fit: cover; }
.tray-products { list-style: none; display: flex; justify-content: center; gap: 10px; padding-top: 4px; }
.tray-item { min-width: 0; position: relative; display: grid; justify-items: center; flex: 0 1 111px; }
.tray-item img { width: 95px; height: 58px; object-fit: contain; scale: 1.1; }
.tray-item span:not(.steam) { font-size: .78rem; color: #415340; font-weight: 750; overflow-wrap: anywhere; text-align: center; }
.tray-extras { display: flex; justify-content: center; flex-wrap: wrap; gap: 4px; min-height: 43px; }
.tray-extra { display: grid; justify-items: center; padding: 2px 5px; min-width: 48px; border-radius: 8px; background: #f5f2db; border: 1px solid #c7d2b9; align-content: end; }
.extra-icons { display: flex; justify-content: center; align-items: center; }
.extra-icons img { width: 25px; height: 22px; object-fit: cover; }
.tray-extra > span { font-size: .72rem; font-weight: 800; }
.tray-note { position: relative; z-index: 1; margin-top: auto; padding-top: 3px; text-align: center; color: #3e5843; font-size: .8rem; font-weight: 750; }
.tray-note img { display: inline-block; vertical-align: middle; width: 25px; height: 21px; object-fit: contain; margin-right: 4px; }
.tray-preview { position: absolute; z-index: 3; left: 50%; bottom: 27px; transform: translateX(-50%); display: flex; align-items: center; justify-content: center; width: max-content; max-width: 94%; gap: 5px; padding: 6px 9px; border-radius: 9px; border: 1px dashed #b36551; background: #fff0e3; color: #823b2f; box-shadow: 0 2px 7px #7854433d; pointer-events: none; }
.tray-preview .extra-icons img { width: 34px; height: 27px; }
.tray-preview strong { font-size: .85rem; line-height: 1.3; }
.handed-over .tray-products, .handed-over .tray-extras { animation: handover .62s ease-out both; }
@keyframes handover { 45% { transform: translateY(-12px) scale(1.04); } 100% { transform: translateY(0); } }
.steam { position: absolute; top: 1px; left: calc(50% - 14px); display: flex; align-items: end; gap: 5px; pointer-events: none; animation: steam-appear .68s step-end; }
.steam i { display: block; width: 5px; height: 14px; border-inline-start: 2px solid #78937c; border-radius: 50%; opacity: .9; }
.steam i:nth-child(2) { height: 18px; }
@keyframes steam-appear { from { opacity: 0; } to { opacity: 1; } }
.heat-show { position: absolute; z-index: 2; top: 45%; left: 50%; width: 148px; height: 92px; transform: translate(-50%, -50%); background: #f4edcd; border: 1px solid #b1bd9e; border-radius: 10px; pointer-events: none; }
.show-microwave { width: 119px; margin-left: 17px; }
.show-food { position: absolute; top: 38px; left: 43px; width: 46px; animation: into-microwave .73s ease-out both; }
@keyframes into-microwave { 0% { transform: translate(-84px, 20px); opacity: 1; } 52%, 83% { transform: translate(-1px, -7px) scale(.77); opacity: 1; } 100% { transform: translate(2px, -5px) scale(.68); opacity: 0; } }

.service-panels { display: grid; gap: 6px; }
.service-panel { border: 1px solid var(--line); border-radius: 11px; padding: 4px 8px 7px; background: #fbf7eb; min-width: 0; }
.service-heading { display: grid; grid-template-columns: 34px minmax(0, 1fr) auto; gap: 4px; align-items: center; margin-bottom: 4px; }
.service-heading img { width: 34px; height: 29px; object-fit: cover; }
.service-heading h3 { font-size: clamp(1rem, 1.75vw, 1.22rem); }
.service-heading p { color: #655947; font-size: .78rem; line-height: 1.3; }
.service-state { font-size: .82rem; font-weight: 850; color: #385c41; white-space: nowrap; }
.choice-buttons { display: grid; gap: 5px; }
.choice-buttons.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.choice-buttons.four { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.choice-buttons button { min-height: 38px; padding: 3px 4px; line-height: 1.17; border: 1px solid #c9b798; border-radius: 8px; background: var(--white); box-shadow: 0 2px 0 #e9dbc4; color: #3a4235; font-weight: 800; font-size: clamp(.94rem, 1.75vw, 1.12rem); }
.choice-buttons button:hover:not(:disabled) { background: #f7e5b8; border-color: #ae895b; }
.choice-buttons button:active:not(:disabled) { transform: translateY(1px); box-shadow: none; }
.service-panel.is-fixed { background: #edf2e5; border-color: #c6d4bd; }
.choice-buttons button[aria-pressed="true"] { color: white; background: var(--green); border-color: var(--dark-green); box-shadow: none; opacity: 1; }
.choice-buttons button:disabled:not([aria-pressed="true"]) { color: #6a7163; background: #f3f1e9; border-color: #d7d3c6; box-shadow: none; }
.service-panel.is-retry { border-color: #d3977d; }
.service-panel.is-retry .service-state { color: #8a4335; }
.choice-buttons button.rejected { color: #7f3e31; border-color: #bd755e; background: #f9e1d4; }

.cash-bottom { min-height: 78px; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px; align-items: stretch; }
.feedback { display: grid; grid-template-columns: 43px minmax(0, 1fr); align-items: center; gap: 9px; min-width: 0; padding: 8px 13px; border-radius: 13px; border: 1px solid #dfceaa; background: #f8e8b8; }
.feedback.correct, .feedback.paid { border-color: #bacfae; background: #e1ecd5; color: #31543a; }
.feedback.wrong { border-color: #d49377; background: #f9e1d4; color: #7d3a2c; }
.feedback-mark { display: grid; place-items: center; height: 41px; width: 41px; border-radius: 50%; background: #fff9e6bf; font-size: 1.9rem; font-family: system-ui, sans-serif; }
.feedback strong { display: block; font-size: clamp(1.45rem, 3.2vw, 2.2rem); line-height: 1.15; }
.feedback p { font-weight: 650; font-size: clamp(.84rem, 1.65vw, 1.15rem); }
.cash-actions { align-self: center; display: flex; flex-wrap: wrap; align-items: center; justify-content: end; gap: 8px; }
.cash-actions .primary { min-height: 58px; font-size: 1.25rem; min-width: 148px; }
.cash-actions .secondary { font-size: .92rem; }
.cash-tools { display: flex; flex-wrap: wrap; justify-content: end; gap: 4px 13px; }
.text-button { border: 0; padding: 3px 4px; background: transparent; color: var(--dark-green); font-size: .83rem; text-decoration: underline; text-underline-offset: 3px; }
.text-button:disabled { opacity: .52; text-decoration: none; }
.cashier-body .site-footer { margin-top: 11px; padding: 8px 12px 11px; font-size: .7rem; }
.cash-goal { position: relative; overflow: hidden; padding: 17px 16px 25px; text-align: center; background: #f9e7b6; }
.cash-goal-stamp { width: 94px; margin-inline: auto; }
.cash-goal h1 { font-size: clamp(2rem, 6vw, 3.35rem); color: var(--dark-green); margin-top: -4px; }
.cash-goal-sub { font-size: clamp(1.2rem, 4vw, 2rem); font-weight: 800; }
.goal-totals { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 7px; width: min(100%, 760px); margin: 13px auto; }
.goal-totals div { display: grid; padding: 7px; border: 1px solid #e1c98f; border-radius: 10px; background: var(--white); }
.goal-totals dt { font-weight: 650; }
.goal-totals dd { font-size: 1.68rem; color: var(--dark-green); font-weight: 850; }

dialog { max-width: min(92vw, 730px); max-height: 88vh; padding: 0; border: 1px solid var(--line); border-radius: 15px; color: var(--ink); background: var(--white); }
dialog::backdrop { background: #2d382da3; }
.dialog-body { padding: 15px; }
.dialog-body h2 { margin-bottom: 8px; color: var(--dark-green); }
.dialog-actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 8px; margin-top: 10px; }
#clear-records { margin-top: 10px; }
@media (min-width: 791px) and (max-height: 799px) {
  .cashier-app { margin-top: 10px; gap: 9px; }
  .cash-controls { padding-block: 7px; }
  .service-panel { padding-bottom: 5px; }
  .service-heading h3 { line-height: 1.2; }
  .service-heading p { line-height: 1.23; }
}
@media (min-width: 1000px) and (min-height: 800px) {
  .cashier-app { gap: 16px; margin-top: 18px; }
  .counter-products, .register-services { padding: 14px; }
  .counter-products .product-card img { width: 152px; max-height: 111px; }
  .tray { padding: 13px 14px; min-height: 220px; }
  .tray-item img { width: 120px; height: 76px; }
  .service-panel { padding: 6px 9px 8px; }
  .choice-buttons button { min-height: 43px; }
}
@media (max-width: 790px) {
  .cashier-app, .cashier-body .top-inner { width: calc(100% - 20px); }
  .cash-controls { grid-template-columns: minmax(0, 1fr) auto; }
  .cash-fields { grid-column: 1 / -1; }
  .cash-totals { min-width: 123px; }
  .cash-bottom { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .cashier-body .brand { font-size: .8rem; }
  .cashier-body .sound span { display: none; }
  .register-workspace { grid-template-columns: 1fr; }
  .cash-fields { grid-template-columns: minmax(0, 1fr) 54px 83px; }
  .cash-actions { justify-content: stretch; }
  .cash-actions .primary, .cash-actions .secondary { flex: 1 1 auto; }
  .goal-totals { grid-template-columns: 1fr 1fr; }
}
