/* SSF 0.61.6 — full-screen, read-only customer POS display. */
:root{color-scheme:light;--forest:#173f31;--leaf:#226449;--mint:#e6f4eb;--text:#152820;--muted:#667a6d;--border:#cbded1;--surface:#f3f7f4;--shadow:0 12px 38px rgba(16,52,34,.10)}
*{box-sizing:border-box}html,body{margin:0;min-height:100%;background:var(--surface);color:var(--text);font-family:system-ui,-apple-system,"Segoe UI",Roboto,Arial,sans-serif}button,input{font:inherit}a{color:inherit}.screen-top{background:var(--forest);color:#fff;min-height:90px;padding:20px max(20px,3.6vw);display:flex;align-items:center;justify-content:space-between;gap:20px}.screen-brand{display:flex;align-items:center;gap:16px;min-width:0}.screen-brand img{max-height:50px;max-width:68px;object-fit:contain}.screen-brand strong{display:block;font-size:clamp(16px,1.5vw,24px);line-height:1.2}.screen-brand span{display:block;color:#b6dbca;font-size:13px;margin-top:2px}.screen-top-actions{display:flex;gap:8px;align-items:center;flex-wrap:wrap}.screen-top-actions form{margin:0}.screen-btn{display:inline-flex;align-items:center;justify-content:center;min-height:42px;border-radius:10px;border:1px solid #a9d2bb;padding:9px 17px;text-decoration:none;font-weight:700;cursor:pointer;font-size:14px;background:transparent;color:inherit}.screen-btn:hover{filter:brightness(.95)}.screen-btn:focus-visible,.screen-pos-choice:focus-visible,input:focus-visible{outline:3px solid #5dbb88;outline-offset:3px}.screen-btn-quiet{border-color:#5e9176;color:#e5f5eb}.screen-btn-primary{background:var(--leaf);border-color:var(--leaf);color:white;width:100%;font-size:17px;min-height:52px}.screen-login-wrap,.screen-select-wrap{min-height:calc(100dvh - 90px);display:flex;align-items:center;justify-content:center;padding:24px}.screen-login-card{max-width:460px;width:100%;border:1px solid var(--border);background:#fff;box-shadow:var(--shadow);border-radius:22px;padding:clamp(22px,4vw,40px);text-align:center}.screen-intro-icon{width:62px;height:62px;display:grid;place-items:center;margin:0 auto 16px;border-radius:17px;background:var(--mint);font-size:30px;color:var(--forest)}h1,h2,p{margin-top:0}.screen-login-card h1{font-size:27px;margin-bottom:12px}.screen-login-card p{color:var(--muted);line-height:1.55}.screen-alert{background:#fff3d8;border:1px solid #ebd28e;text-align:left;border-radius:11px;padding:12px;margin:14px 0;color:#704c0b}.screen-alert-error{background:#fee8e8;border-color:#ed9c9c;color:#8e1d1d}.screen-login-form{text-align:left;display:grid;gap:9px;margin:22px 0}.screen-login-form label{font-weight:700}.screen-login-form input{height:56px;border:2px solid var(--border);border-radius:10px;text-align:center;font-size:28px;letter-spacing:.22em;width:100%;background:#fff}.screen-login-form button{margin-top:8px}.screen-small{font-size:13px;margin-bottom:0}.screen-select-wrap{flex-direction:column;align-items:stretch;max-width:1060px;margin:auto}.screen-select-intro{text-align:center;margin-bottom:26px}.screen-eyebrow{display:block;text-transform:uppercase;letter-spacing:.14em;font-size:13px;font-weight:800;color:var(--leaf);margin-bottom:4px}.screen-select-intro h1{font-size:clamp(24px,3vw,38px);margin-bottom:10px}.screen-select-intro p{color:var(--muted)}.screen-pos-grid{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:14px;width:100%}.screen-pos-choice{display:flex;flex-direction:column;align-items:center;justify-content:center;min-height:152px;gap:2px;border:2px solid var(--border);background:#fff;border-radius:16px;text-decoration:none;box-shadow:0 3px 15px #00200709;transition:transform .15s,border-color .15s}.screen-pos-choice:hover{transform:translateY(-2px);border-color:var(--leaf)}.screen-pos-choice span{color:var(--muted);font-weight:700;font-size:15px}.screen-pos-choice strong{font-size:48px;line-height:1.1;color:var(--forest)}.screen-pos-choice small{color:var(--leaf);font-weight:700}.screen-live{max-width:1600px;margin:auto;padding:clamp(20px,3.3vw,48px)}.screen-live-heading{display:flex;gap:20px;align-items:flex-end;justify-content:space-between;margin-bottom:26px}.screen-live-heading h1{font-size:clamp(36px,5vw,64px);margin:0}.screen-live-heading p{color:var(--muted);font-size:16px;margin:2px 0}.screen-live-pill{display:inline-flex;align-items:center;gap:9px;border-radius:99px;padding:10px 16px;background:#e6eae7;color:#596b5e;font-weight:750;white-space:nowrap}.screen-led{width:10px;height:10px;border-radius:50%;background:#a5b4a9}.screen-live-pill.is-active{background:#dbf3e3;color:#166240}.screen-live-pill.is-active .screen-led{background:#17a454}.screen-live-grid{display:grid;grid-template-columns:minmax(0,1.27fr) minmax(320px,0.73fr);gap:24px;align-items:stretch}.screen-panel{background:#fff;border:1px solid var(--border);border-radius:22px;box-shadow:var(--shadow);padding:clamp(22px,2.8vw,38px);min-height:530px;display:flex;flex-direction:column}.screen-panel-title{display:flex;justify-content:space-between;gap:14px;align-items:center;border-bottom:1px solid var(--border);padding-bottom:18px}.screen-panel-title h2{font-size:clamp(22px,2.3vw,32px);margin:0}.screen-count{white-space:nowrap;background:var(--mint);color:#1c6a44;padding:8px 12px;border-radius:99px;font-weight:700}.screen-lines{flex:1;padding:10px 0;min-height:200px}.screen-line{display:grid;grid-template-columns:54px minmax(0,1fr) auto;gap:15px;align-items:center;padding:17px 0;border-bottom:1px solid #e4ebe6}.screen-line-qty{display:grid;place-items:center;width:50px;min-height:50px;border-radius:12px;background:#e2f1e7;color:var(--forest);font-size:21px;font-weight:800}.screen-line-name{font-size:clamp(16px,1.55vw,22px);font-weight:700;overflow-wrap:anywhere}.screen-line-sub{font-size:13px;color:var(--muted);margin-top:3px}.screen-line-sum{font-size:clamp(16px,1.55vw,22px);font-weight:800;white-space:nowrap;font-variant-numeric:tabular-nums}.screen-total{display:flex;justify-content:space-between;align-items:center;gap:10px;padding-top:20px;border-top:2px solid var(--forest);font-size:25px;font-weight:800}.screen-total strong{font-size:clamp(30px,3.7vw,52px);font-variant-numeric:tabular-nums;white-space:nowrap;color:var(--forest)}.screen-payment-panel{text-align:center;align-items:center;justify-content:flex-start;background:linear-gradient(165deg,#fff 10%,#ecf7ef 100%)}.screen-payment-panel .screen-eyebrow{margin-bottom:8px}.screen-payment-panel h2{font-size:clamp(23px,2.4vw,35px);line-height:1.18;margin-bottom:22px}.screen-pay-qr{width:min(100%,315px);aspect-ratio:1;background:#fff;padding:14px;border:1px solid var(--border);border-radius:17px;margin:0 auto 16px;display:grid;place-items:center}.screen-pay-qr[hidden],.screen-boxno[hidden]{display:none}.screen-pay-qr svg,.screen-pay-qr img{max-width:100%;max-height:100%;width:100%;height:100%;display:block;object-fit:contain}.screen-boxno{font-size:15px;color:#506454;margin:5px 0}.screen-boxno strong{display:block;color:var(--forest);font-size:27px;letter-spacing:.07em;margin-top:4px}.screen-pay-info{max-width:360px;color:var(--muted);line-height:1.5;font-size:16px}.screen-empty{display:grid;place-items:center;text-align:center;min-height:210px;color:var(--muted);font-size:22px}.screen-live-foot{text-align:center;color:var(--muted);margin:24px auto 4px;font-size:14px}
@media(max-width:1000px){.screen-pos-grid{grid-template-columns:repeat(4,minmax(0,1fr))}.screen-live-grid{grid-template-columns:1fr 1fr;gap:14px}.screen-panel{min-height:480px}.screen-live{padding:20px}.screen-line{grid-template-columns:40px minmax(0,1fr);gap:8px}.screen-line-sum{grid-column:2;justify-self:start}.screen-line-qty{width:38px;min-height:38px;font-size:18px}.screen-total{font-size:20px}.screen-total strong{font-size:30px}}
@media(max-width:720px){.screen-top{padding:12px 16px;min-height:68px}.screen-brand span{font-size:11px}.screen-brand strong{font-size:15px}.screen-top-actions{justify-content:flex-end}.screen-btn-top{display:none}.screen-btn{padding:8px 10px;font-size:12px}.screen-pos-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:9px}.screen-pos-choice{min-height:100px}.screen-pos-choice strong{font-size:34px}.screen-live-grid{grid-template-columns:1fr}.screen-panel{min-height:240px;padding:20px}.screen-live-heading h1{font-size:37px}.screen-live-heading{align-items:flex-start}.screen-live-pill{font-size:13px}.screen-total strong{font-size:34px}.screen-lines{min-height:100px}.screen-empty{min-height:120px}.screen-payment-panel{min-height:300px}.screen-pay-qr{width:min(260px,72vw)}.screen-select-wrap{padding:16px}}
@media(prefers-reduced-motion:reduce){.screen-pos-choice{transition:none}}

/* 0.61.7 – customer display kiosk. Only the item list scrolls; count, total and QR remain visible. */
body.ssf-customer-display.is-running { height: 100vh; height: 100dvh; min-height: 0; overflow: hidden; display: flex; flex-direction: column; }
.is-running .screen-top { flex: 0 0 auto; min-height: 62px; padding: 8px clamp(12px,2vw,28px); }
.is-running .screen-brand img { max-height: 42px; }
.screen-kiosk-controls { display: inline-flex; align-items: center; gap: 9px; }
.screen-btn-kiosk { border-color: #b0d5c1; background: #f4fff7; color: #17432f; min-height: 40px; white-space: nowrap; }
.screen-awake-state { color: #e9f5ec; font-size: 12px; max-width: 195px; line-height: 1.2; }
.screen-awake-state.is-on { color: #96f4bb; }
.is-running .screen-live { flex: 1 1 auto; min-height: 0; height: 100%; width: 100%; overflow: hidden; display: flex; flex-direction: column; padding: clamp(8px, 1.5vh, 18px) clamp(12px, 2vw, 28px); }
.is-running .screen-live-heading { flex: 0 0 auto; align-items: center; margin-bottom: clamp(7px, 1vh, 12px); }
.is-running .screen-live-heading h1 { font-size: clamp(26px, 3.1vh, 42px); line-height: 1.08; }
.is-running .screen-live-heading p { font-size: 13px; }
.is-running .screen-live-heading .screen-eyebrow { font-size: 10px; }
.is-running .screen-live-pill { padding: 7px 11px; font-size: 13px; }
.is-running .screen-live-grid { flex: 1 1 auto; min-height: 0; height: 100%; gap: clamp(10px, 1.4vw, 20px); grid-template-columns: minmax(0,1.25fr) minmax(300px,0.75fr); align-items: stretch; }
.is-running .screen-panel { min-height: 0; height: 100%; overflow: hidden; padding: clamp(12px,2vw,26px); }
.is-running .screen-cart-panel { min-width: 0; }
.is-running .screen-panel-title { flex: 0 0 auto; padding-bottom: 10px; }
.is-running .screen-panel-title h2 { font-size: clamp(17px,1.8vw,25px); }
.is-running .screen-count { font-size: clamp(15px,1.6vw,20px); }
.is-running .screen-lines { flex: 1 1 auto; min-height: 0; max-height: 100%; overflow-y: auto; overscroll-behavior: contain; scrollbar-gutter: stable; padding: 0 8px 3px 0; }
.is-running .screen-lines:focus-visible { outline: 2px solid var(--leaf); outline-offset: -2px; }
.is-running .screen-line { padding: clamp(9px,1.6vh,14px) 0; }
.is-running .screen-live-foot { flex: 0 0 auto; margin: 7px 0 0; font-size: 11px; }
.is-running .screen-payment-panel { justify-content: flex-start; gap: 0; text-align: center; }
.is-running .screen-payment-top { display: flex; flex-direction: column; align-items: center; gap: clamp(7px,1.1vh,12px); width: 100%; min-height: 0; }
.is-running .screen-payment-amount { width: 100%; flex: 0 0 auto; }
.is-running .screen-payment-amount .screen-eyebrow { margin-bottom: 5px; }
.is-running .screen-total { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 0; margin: 0; padding: 8px 0 2px; font-size: 14px; border-top: 2px solid var(--forest); }
.is-running .screen-total strong { font-size: clamp(27px,4.4vh,55px); line-height: 1.15; }
.is-running .screen-payment-panel h2 { margin: 4px 0 0; font-size: clamp(16px,2.5vh,28px); line-height: 1.22; }
.is-running .screen-pay-qr { flex: 0 1 auto; width: min(100%,30vh,260px); max-height: min(30vh,260px); margin: 0; padding: clamp(7px,1vh,11px); }
.is-running .screen-boxno { flex: 0 0 auto; font-size: 13px; margin: 7px 0 0; }
.is-running .screen-boxno strong { display: inline; font-size: 20px; }
.is-running .screen-pay-info { font-size: clamp(12px,1.5vh,15px); line-height: 1.34; margin: 5px 0 0; }
@media (max-width: 950px) and (orientation: portrait), (max-width: 720px) {
  .is-running .screen-top { min-height: 52px; padding: 6px 10px; gap: 9px; }
  .is-running .screen-brand { gap: 7px; }
  .is-running .screen-brand img { max-height: 31px; max-width: 33px; }
  .is-running .screen-brand strong { font-size: 13px; }
  .is-running .screen-brand span { display: none; }
  .screen-kiosk-controls { gap: 5px; }
  .screen-btn-kiosk { font-size: 12px; padding: 6px 9px; min-height: 36px; }
  .screen-awake-state { display: none; }
  .is-running .screen-top-actions { gap: 6px; }
  .is-running .screen-top-actions form { display: none; }
  .is-running .screen-live { padding: 8px; }
  .is-running .screen-live-heading { margin-bottom: 6px; }
  .is-running .screen-live-heading h1 { font-size: 27px; }
  .is-running .screen-live-heading p { font-size: 11px; }
  .is-running .screen-live-grid { display: flex; flex-direction: column; gap: 8px; }
  .is-running .screen-cart-panel { flex: 1 1 auto; order: 2; }
  .is-running .screen-payment-panel { flex: 0 0 auto; height: auto; max-height: min(34vh,265px); padding: 10px 14px; order: 1; overflow: hidden; }
  .is-running .screen-payment-top { display: grid; grid-template-columns: minmax(0,1fr) minmax(105px,23vh); gap: clamp(8px,2vw,18px); align-items: center; }
  .is-running .screen-payment-amount { text-align: left; }
  .is-running .screen-total { align-items: flex-start; border-top: none; padding: 0; font-size: 12px; }
  .is-running .screen-total strong { font-size: clamp(24px,4.5vw,38px); line-height: 1.1; }
  .is-running .screen-payment-panel h2 { font-size: clamp(14px,1.7vw,18px); }
  .is-running .screen-payment-amount .screen-eyebrow { display: none; }
  .is-running .screen-pay-qr { width: min(23vh,155px); height: min(23vh,155px); max-height: 155px; margin: 0; padding: 5px; }
  .is-running .screen-boxno { font-size: 11px; margin-top: 3px; }
  .is-running .screen-boxno strong { font-size: 15px; }
  .is-running .screen-pay-info { font-size: 11px; margin: 3px 0 0; line-height: 1.2; }
  .is-running .screen-cart-panel { padding: 10px 13px; }
  .is-running .screen-panel-title { padding-bottom: 6px; }
  .is-running .screen-panel-title h2 { font-size: 18px; }
  .is-running .screen-lines { min-height: 0; padding: 0 6px 0 0; }
  .is-running .screen-line { display: grid; grid-template-columns: 38px minmax(0,1fr) auto; gap: 8px; padding: 8px 0; }
  .is-running .screen-line-sum { grid-column: auto; justify-self: end; font-size: 14px; }
  .is-running .screen-line-name { font-size: 15px; }
  .is-running .screen-line-qty { width: 36px; min-height: 36px; font-size: 16px; }
  .is-running .screen-line-sub { font-size: 10px; }
  .is-running .screen-live-foot { display: none; }
}
@media (max-height: 600px) and (min-width: 721px) {
  .is-running .screen-top { min-height: 49px; padding-top: 4px; padding-bottom: 4px; }
  .is-running .screen-live { padding-top: 5px; padding-bottom: 5px; }
  .is-running .screen-live-heading { margin-bottom: 4px; }
  .is-running .screen-pay-info { display: none; }
  .is-running .screen-payment-panel h2 { font-size: 17px; }
  .is-running .screen-total strong { font-size: 29px; }
  .is-running .screen-pay-qr { width: min(25vh,175px); max-height: min(25vh,175px); }
}
@media (max-height: 540px) and (max-width: 720px) {
  .is-running .screen-payment-panel { max-height: 30vh; }
  .is-running .screen-pay-qr { width: 18vh; height: 18vh; }
  .is-running .screen-pay-info { display: none; }
  .is-running .screen-live-heading p { display: none; }
}


/* 0.61.9 – animate the first added product image on the SSF customer screen. */
.is-running .screen-live{position:relative}
.screen-item-flash{position:absolute;inset:0;display:grid;place-items:center;padding:clamp(12px,2vw,28px);pointer-events:none;z-index:8}
.screen-item-flash[hidden]{display:none}
.screen-item-flash-card{display:grid;grid-template-columns:minmax(140px,260px) minmax(180px,340px);align-items:center;gap:clamp(14px,2vw,22px);width:min(92vw,680px);padding:clamp(14px,2.2vw,24px);border-radius:26px;border:1px solid rgba(255,255,255,.65);background:rgba(255,255,255,.95);box-shadow:0 28px 70px rgba(16,49,35,.28);backdrop-filter:blur(10px);opacity:0;transform:translateY(28px) scale(.94)}
.screen-item-flash.is-visible .screen-item-flash-card{animation:screen-item-flash 2.9s ease both}
.screen-item-flash-media{aspect-ratio:1;display:grid;place-items:center;border-radius:20px;background:linear-gradient(180deg,#f8fffa 0%,#e9f5ec 100%);overflow:hidden}
.screen-item-flash-media img{display:block;max-width:100%;max-height:min(34vh,240px);width:auto;height:auto;object-fit:contain}
.screen-item-flash-text{display:flex;flex-direction:column;gap:7px;min-width:0}
.screen-item-flash-text strong{font-size:clamp(24px,3vw,40px);line-height:1.08;color:var(--forest);overflow-wrap:anywhere}
@keyframes screen-item-flash{0%{opacity:0;transform:translateY(34px) scale(.9)}10%{opacity:1;transform:translateY(0) scale(1)}78%{opacity:1;transform:translateY(0) scale(1)}100%{opacity:0;transform:translateY(-18px) scale(.98)}}
@media(max-width:720px){.screen-item-flash{padding:10px}.screen-item-flash-card{grid-template-columns:1fr;gap:10px;width:min(92vw,360px);padding:14px 14px 16px;border-radius:18px}.screen-item-flash-media img{max-height:min(28vh,165px)}.screen-item-flash-text{align-items:center;text-align:center}.screen-item-flash-text strong{font-size:clamp(20px,6vw,30px)}}
@media(prefers-reduced-motion:reduce){.screen-item-flash.is-visible .screen-item-flash-card{animation:none;opacity:1;transform:none}}

/* 0.61.11: explicit pending-payment status on read-only customer screen. */
.screen-awaiting{display:inline-flex;margin-top:5px;padding:5px 11px;border-radius:999px;border:1px solid #e6c268;background:#fff2cc;color:#785000;font-size:clamp(12px,1.35vw,16px);font-weight:850;letter-spacing:.01em}
.screen-awaiting[hidden]{display:none!important}
.is-running .screen-live-heading .screen-awaiting{margin-top:4px}


/* Customer POS row feedback: movement, changed quantity and line subtotal. */
.screen-line{border-radius:12px}
.screen-line.is-qty-up,.screen-line.is-qty-down{position:relative;z-index:2}
.screen-line.is-qty-up{animation:screen-line-add-pulse 1.3s ease-out both}
.screen-line.is-qty-down{animation:screen-line-sub-pulse 1.3s ease-out both}
.screen-line.is-qty-up .screen-line-qty,.screen-line.is-qty-down .screen-line-qty{animation:screen-line-qty-bounce .8s cubic-bezier(.2,1.6,.35,1) both}
.screen-line.is-qty-up .screen-line-sum,.screen-line.is-qty-down .screen-line-sum{animation:screen-line-sum-pulse .9s ease-out both}
@keyframes screen-line-add-pulse{0%,28%{background-color:#cff6d9;box-shadow:0 0 0 2px #7dcf92 inset}100%{background-color:transparent;box-shadow:0 0 0 0 transparent inset}}
@keyframes screen-line-sub-pulse{0%,28%{background-color:#fff0c7;box-shadow:0 0 0 2px #edc371 inset}100%{background-color:transparent;box-shadow:0 0 0 0 transparent inset}}
@keyframes screen-line-qty-bounce{0%{transform:scale(.86)}40%{transform:scale(1.24)}68%{transform:scale(.97)}100%{transform:scale(1)}}
@keyframes screen-line-sum-pulse{0%{filter:brightness(1.65)}30%{color:#087544}100%{filter:brightness(1);color:inherit}}
@media(prefers-reduced-motion:reduce){.screen-line.is-qty-up,.screen-line.is-qty-down,.screen-line.is-qty-up .screen-line-qty,.screen-line.is-qty-down .screen-line-qty,.screen-line.is-qty-up .screen-line-sum,.screen-line.is-qty-down .screen-line-sum{animation:none!important}}
