/* ===== Luckau UX: confirmações, maquininha e "pague no caixa" ===== */
@keyframes lkUxIn{from{opacity:0;transform:translateY(16px) scale(.97)}to{opacity:1;transform:none}}
@keyframes lkUxFade{from{opacity:0}to{opacity:1}}
@keyframes lkUxPop{0%{transform:scale(.3);opacity:0}70%{transform:scale(1.1);opacity:1}100%{transform:scale(1)}}
@keyframes lkUxShake{0%,100%{transform:translateX(0)}20%,60%{transform:translateX(-6px)}40%,80%{transform:translateX(6px)}}

/* confirmação / pergunta */
.lk-ask{position:fixed;inset:0;z-index:1300;display:grid;place-items:center;padding:16px;background:rgba(33,19,9,.55);backdrop-filter:blur(3px);animation:lkUxFade .18s ease both}
.lk-ask-box{width:min(440px,100%);max-height:calc(100dvh - 32px);overflow:auto;background:var(--paper,#fffdfa);color:var(--ink,#34271f);border-radius:22px;box-shadow:0 24px 70px rgba(20,10,4,.35);padding:26px;display:flex;flex-direction:column;gap:12px;animation:lkUxIn .26s cubic-bezier(.2,.9,.3,1.05) both;font-family:Poppins,Arial,sans-serif}
.lk-ask-ic{width:56px;height:56px;border-radius:16px;display:grid;place-items:center;background:#f6ecdc;color:#7a5528}
.lk-ask-box.danger .lk-ask-ic{background:#fbeeed;color:#a5403a}
.lk-ask-ic svg,.lk-tef-oi svg,.lk-tefr-ic svg,.lk-cw-paid svg{fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.lk-ask-ic svg{width:28px;height:28px}
.lk-ask-box h2{margin:0;font-family:Quiche,Georgia,serif;font-weight:500;font-size:clamp(21px,2.6vw,25px);line-height:1.25;overflow-wrap:anywhere}
.lk-ask-box p{margin:0;font-size:14px;line-height:1.6;color:#5b4a3e;white-space:pre-line;overflow-wrap:anywhere}
.lk-ask-form label{display:flex;flex-direction:column;gap:6px;font-size:13px;color:#5b4a3e}
.lk-ask-form input{box-sizing:border-box;width:100%;min-height:52px;border:2px solid var(--line,#eae3da);border-radius:12px;padding:0 14px;font:inherit;font-size:16px;color:inherit;background:#fff}
.lk-ask-form input:focus{border-color:var(--brown,#633319);outline:none}
.lk-ask-actions{display:flex;gap:10px;margin-top:6px}
.lk-ask-actions button{flex:1;min-height:54px;border-radius:14px;font:inherit;font-size:15px;cursor:pointer;touch-action:manipulation}
.lk-ask-no{border:1px solid var(--line,#eae3da);background:#fff;color:inherit}
.lk-ask-yes{border:0;background:var(--brown,#633319);color:#fff8f0;font-weight:600}
.lk-ask-box.danger .lk-ask-yes{background:#a5403a;color:#fff}
.lk-ask-yes:disabled{background:#efe7dc!important;color:#8f7f72!important;font-weight:400;cursor:not-allowed}
.lk-ask-actions button:active:not(:disabled){transform:scale(.97)}

/* janela da maquininha (complementa o estilo do core/tef.js) */
body #lk-tef{background:rgba(33,19,9,.6);backdrop-filter:blur(3px)}
body #lk-tef .box{border-radius:22px;width:min(560px,100%);animation:lkUxIn .26s cubic-bezier(.2,.9,.3,1.05) both}
body #lk-tef .bar{padding:16px 22px;font-size:16px}
body #lk-tef .msg{font:600 19px/1.4 Poppins,Arial,sans-serif;border-style:solid;border-radius:14px}
body #lk-tef .opts button{border-radius:14px;min-height:64px}
body #lk-tef .foot .btn{min-height:50px;border-radius:12px;padding:0 18px}
body #lk-tef.tef-kiosk .box{width:min(680px,100%)}
body #lk-tef .lk-tef-q{margin:0;font-family:Quiche,Georgia,serif;font-weight:500;font-size:24px}
body #lk-tef .lk-tef-qs{margin:2px 0 6px;font-size:13px;color:var(--muted,#6f6157)}
body #lk-tef .lk-tef-credit .opts{grid-template-columns:1fr;gap:10px}
body #lk-tef .opts button.lk-tef-copt{flex-direction:row;justify-content:flex-start;align-items:center;gap:14px;min-height:80px;padding:0 18px;text-align:left;border:2px solid var(--line,#eae3da);background:#fff}
body #lk-tef .opts button.lk-tef-copt.main{border-color:var(--brown,#633319);background:#f8eee2}
body #lk-tef .opts button.lk-tef-copt kbd,body #lk-tef .opts button.lk-tef-copt .oi{display:none}
body #lk-tef .lk-tef-x,body #lk-tef .lk-tef-oi{flex:none;width:46px;height:46px;border-radius:13px;display:grid;place-items:center;background:#f1e9dd;color:var(--brown,#633319);font-weight:700;font-size:17px}
body #lk-tef .main .lk-tef-x{background:var(--brown,#633319);color:#fff}
body #lk-tef .lk-tef-oi svg{width:24px;height:24px}
body #lk-tef .lk-tef-ot{flex:1;min-width:0;display:flex;flex-direction:column;gap:2px}
body #lk-tef .lk-tef-ot strong{font-size:18px}body #lk-tef .lk-tef-ot small{font-size:12px;color:var(--muted,#6f6157);font-weight:400;line-height:1.35}
body #lk-tef .lk-tef-copt em{font-style:normal;font-size:11px;padding:4px 10px;border-radius:12px;background:var(--brown,#633319);color:#fff;white-space:nowrap}
body #lk-tef .lk-tef-chips{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px;margin-bottom:10px}
body #lk-tef .lk-tef-chips button{min-height:66px;border-radius:14px;border:2px solid var(--line,#eae3da);background:#fff;color:inherit;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:2px;cursor:pointer;font:inherit}
body #lk-tef .lk-tef-chips button strong{font-size:20px}body #lk-tef .lk-tef-chips button small{font-size:11px;color:var(--muted,#6f6157)}
body #lk-tef .lk-tef-chips button.on,body #lk-tef .lk-tef-chips button:hover{border-color:var(--brown,#633319);background:#f8eee2}
body #lk-tef .lk-tefr{display:flex;flex-direction:column;align-items:center;gap:8px;text-align:center;padding:6px 0 2px}
body #lk-tef .lk-tefr-ic{width:88px;height:88px;border-radius:50%;display:grid;place-items:center;animation:lkUxPop .5s cubic-bezier(.2,.9,.3,1.3) both}
body #lk-tef .lk-tefr-ic svg{width:46px;height:46px;stroke-width:2.6}
body #lk-tef .lk-tefr-ic.ok{background:#e3f1e7;color:#378763}
body #lk-tef .lk-tefr-ic.bad{background:#fbeeed;color:#a5403a}
body #lk-tef .lk-tefr-ic.bad svg{animation:lkUxShake .45s ease both .15s}
body #lk-tef .lk-tefr strong{font-family:Quiche,Georgia,serif;font-weight:500;font-size:26px}
body #lk-tef .lk-tefr strong.ok{color:#2b6a4d}body #lk-tef .lk-tefr strong.bad{color:#8f332e}
body #lk-tef .lk-tefr p{margin:0;font-size:15px;line-height:1.5;color:#34271f;max-width:460px}
body #lk-tef .msg.lk-tef-raw{position:relative;font:400 14px/1.5 Poppins,Arial,sans-serif;min-height:0;padding:22px 14px 12px;text-align:left;background:#faf7f2!important;border:1px solid var(--line,#eae3da)!important;color:#5b4a3e!important}
body #lk-tef .msg.lk-tef-raw:before{content:attr(data-caption);position:absolute;top:7px;left:14px;font-size:10px;letter-spacing:1.5px;font-weight:600;text-transform:uppercase;color:#94867b}
body #lk-tef.tef-kiosk .lk-tefr strong{font-size:32px}body #lk-tef.tef-kiosk .lk-tefr p{font-size:18px}

/* totem: apresente seu pedido no caixa */
@keyframes lkCwPrint{0%{transform:translateY(-62px);opacity:0}15%{opacity:1}45%,100%{transform:translateY(0);opacity:1}}
@keyframes lkCwWalk{0%{transform:translateX(0)}50%,100%{transform:translateX(150px)}}
@keyframes lkCwBob{0%,100%{transform:translateY(0)}50%{transform:translateY(-4px)}}
@keyframes lkCwStep{0%,100%{opacity:.15}50%{opacity:1}}
@keyframes lkCwPaid{0%,50%{opacity:0;transform:translateY(10px) scale(.4)}58%{opacity:1;transform:translateY(0) scale(1.15)}63%,90%{opacity:1;transform:none}100%{opacity:0;transform:translateY(-6px)}}
@keyframes lkCwScreen{0%,52%{background:#7fc79a;box-shadow:none}58%,90%{background:#2fa36b;box-shadow:0 0 18px 6px rgba(55,135,99,.55)}100%{background:#7fc79a;box-shadow:none}}
@keyframes lkCwRing{0%,55%{opacity:0;transform:scale(.6)}60%{opacity:.7;transform:scale(1)}80%,100%{opacity:0;transform:scale(1.9)}}
@keyframes lkCwBar{from{width:0}to{width:100%}}
#modal-root .modal.lk-cw-modal{max-width:min(600px,calc(100vw - 24px));padding:22px 24px}
#modal-root .lk-cw-modal .modal-header{display:none}
.lk-cw{display:flex;flex-direction:column;align-items:center;text-align:center;color:var(--ink,#34271f);font-family:Poppins,Arial,sans-serif}
.lk-cw-k{font-size:13px;letter-spacing:3px;font-weight:600;color:#8a6240}
.lk-cw-no{font-family:Quiche,Georgia,serif;font-weight:500;font-size:clamp(60px,11vmin,90px);line-height:1;letter-spacing:10px;color:#2c1a12;margin-top:4px}
.lk-cw-amt{margin-top:10px;padding:8px 18px;border-radius:20px;background:#f6ecdc;color:#7a5528;font-size:16px;font-weight:600}
.lk-cw-art{width:min(440px,100%);aspect-ratio:440/240;margin-top:22px;position:relative;overflow:visible}
.lk-cw-stage{position:absolute;left:50%;top:0;width:440px;height:300px;transform:translateX(-50%) scale(.8);transform-origin:top center}
@media(max-width:480px){.lk-cw-stage{transform:translateX(-50%) scale(.68)}}
.lk-cw-stage>svg{position:absolute;inset:0}
.lk-cw-slot{position:absolute;left:46px;top:222px;width:60px;height:62px;overflow:hidden}
.lk-cw-ticket{width:50px;height:60px;margin:0 auto;background:#fff;border:1px solid #d5c4af;border-radius:0 0 6px 6px;display:flex;flex-direction:column;align-items:center;gap:3px;padding-top:6px;box-sizing:border-box;animation:lkCwPrint 2.4s cubic-bezier(.2,.8,.2,1) infinite}
.lk-cw-ticket span{font-size:6px;letter-spacing:1px;color:#5b4a3e}.lk-cw-ticket b{font-family:Georgia,serif;font-size:13px;font-weight:500;color:#2c1a12}.lk-cw-ticket i{width:34px;height:2px;background:#e0d4c6}
.lk-cw-steps{position:absolute;left:132px;top:288px;display:flex;gap:18px}
.lk-cw-steps i{width:10px;height:10px;border-radius:50%;background:#c49a6c;animation:lkCwStep 1.2s ease-in-out infinite}
.lk-cw-steps i:nth-child(2){animation-delay:.2s}.lk-cw-steps i:nth-child(3){animation-delay:.4s}.lk-cw-steps i:nth-child(4){animation-delay:.6s}.lk-cw-steps i:nth-child(5){animation-delay:.8s}
.lk-cw-walker{position:absolute;left:128px;top:104px;animation:lkCwWalk 3.2s ease-in-out infinite}
.lk-cw-walker svg{animation:lkCwBob .4s ease-in-out infinite}
.lk-cw-screen{position:absolute;left:328px;top:104px;width:44px;height:18px;border-radius:4px;background:#7fc79a;animation:lkCwScreen 3.2s ease-in-out infinite}
.lk-cw-ring{position:absolute;left:310px;top:6px;width:80px;height:80px;border-radius:50%;border:4px solid #378763;opacity:0;animation:lkCwRing 3.2s ease-out infinite}
.lk-cw-paid{position:absolute;left:298px;top:14px;display:flex;align-items:center;gap:8px;padding:10px 16px;border-radius:30px;background:#378763;color:#fff;font-size:20px;font-weight:700;box-shadow:0 10px 24px rgba(55,135,99,.4);opacity:0;animation:lkCwPaid 3.2s ease-in-out infinite}
.lk-cw-paid svg{width:24px;height:24px;stroke-width:3}
.lk-cw-t{margin:10px 0 0;font-family:Quiche,Georgia,serif;font-weight:500;font-size:clamp(24px,4.2vmin,32px);line-height:1.2;max-width:480px}
.lk-cw-list{list-style:none;margin:14px 0 0;padding:0;width:min(460px,100%);display:flex;flex-direction:column;gap:8px;text-align:left}
.lk-cw-list li{display:flex;align-items:center;gap:12px;padding:11px 16px;border-radius:14px;background:#faf7f2;font-size:clamp(15px,2.4vmin,17px)}
.lk-cw-list li>b{flex:none;width:30px;height:30px;border-radius:50%;background:#633319;color:#fff;display:grid;place-items:center;font-size:15px}
.lk-cw-bar{width:min(460px,100%);height:6px;border-radius:3px;background:#efe6da;margin-top:16px;overflow:hidden}
.lk-cw-bar i{display:block;height:100%;background:#c49a6c;animation:lkCwBar 6s linear both}
.lk-cw-print{margin-top:6px;font-size:13px;color:#6f6157}
@media(prefers-reduced-motion:reduce){.lk-ask,.lk-ask-box,.lk-cw *,body #lk-tef .lk-tefr-ic,body #lk-tef .lk-tefr-ic svg{animation:none!important}.lk-cw-paid,.lk-cw-ring{opacity:0}}
.lk-cw-note{margin:12px 0 0;font-size:13px;color:#6f6157;max-width:460px}
@media(min-height:1200px){#modal-root .modal.lk-cw-modal{max-width:min(760px,calc(100vw - 24px));padding:34px 36px}.lk-cw-art{width:min(560px,100%)}.lk-cw-stage{transform:translateX(-50%) scale(1.02)}.lk-cw-list,.lk-cw-bar{width:min(580px,100%)}.lk-cw-t{max-width:600px}#modal-root .lk-cw-modal .modal-footer .btn{min-height:64px;font-size:18px;padding:0 28px;border-radius:16px}}

/* ===== Produção (modo TV) no tablet: 3 colunas lado a lado, cards que não encolhem ===== */
@keyframes lkPdLate{0%,100%{box-shadow:0 0 0 0 rgba(165,64,58,.45)}50%{box-shadow:0 0 0 6px rgba(165,64,58,0)}}
.tv-stage.producao .tv-coluna-corpo>*{flex-shrink:0}
@media(max-width:1100px) and (min-width:700px){
  .tv-stage.producao .tv-kanban{grid-template-columns:repeat(3,minmax(0,1fr));overflow:hidden;padding:12px;gap:12px}
}
@media(max-width:699px){
  .tv-stage.producao{height:auto;min-height:100dvh;overflow:visible}
  .tv-stage.producao .tv-kanban{grid-template-columns:1fr;grid-auto-rows:max-content;overflow:visible;padding:10px;gap:10px}
  .tv-stage.producao .tv-coluna-corpo{flex:none;overflow:visible}
}
@media(max-width:1400px) and (pointer:coarse),(max-width:1100px){
  .tv-stage.producao .tv-top{padding:10px 16px;gap:12px}
  .tv-stage.producao .tv-brand strong{font-size:20px}
  .tv-stage.producao .tv-relogio{display:none}
  .tv-stage.producao .tv-btn{min-height:46px;padding:0 14px;border-radius:12px;font-size:13px;display:inline-flex;align-items:center;gap:8px}
  .tv-stage.producao .tv-coluna{border-radius:18px;overflow:hidden}
  .tv-stage.producao .tv-coluna-topo{padding:12px 14px;font-size:16px}
  .tv-stage.producao .tv-coluna-topo span{min-width:30px;height:30px;padding:0 8px;display:inline-flex;align-items:center;justify-content:center;font-weight:700;font-size:14px}
  .tv-stage.producao .tv-coluna-corpo{padding:10px;gap:10px}
  .tv-stage.producao .tv-card{padding:0 12px 12px;border-radius:14px;overflow:hidden}
  .tv-stage.producao.lk-kds-claro .tv-card{border:2px solid #eae3da}
  .tv-stage.producao .tv-card .lk-origin-band{margin:0 -12px 10px;padding:6px 12px;font-size:12px}
  .tv-stage.producao .tv-card h2{font-size:clamp(26px,4.4vh,34px);letter-spacing:3px;line-height:1}
  .tv-stage.producao .tv-card .kds-timer{font-size:16px;font-weight:700;padding:4px 10px;border-radius:10px;background:#f1e9dd;color:#6b4a2c}
  .tv-stage.producao .tv-card.late{border-color:#e7a59f;animation:lkPdLate 1.6s ease-in-out infinite}
  .tv-stage.producao .tv-card.late .kds-timer,.tv-stage.producao .tv-card .kds-timer.late{background:#fbeeed;color:#a5403a}
  .tv-stage.producao .tv-card .kds-meta{margin:8px 0;gap:6px;flex-wrap:wrap}
  .tv-stage.producao .tv-card .kds-item{min-height:44px;font-size:14px;padding:6px 8px;border-radius:10px}
  .tv-stage.producao .tv-avanca{width:100%;min-height:52px;border-radius:12px;font-size:16px;font-weight:600}
  .tv-stage.producao .tv-rodape{padding:10px 16px;font-size:13px}
}
@media(prefers-reduced-motion:reduce){.tv-stage.producao .tv-card.late{animation:none}}
@media(max-width:1400px) and (pointer:coarse),(max-width:1100px){.tv-stage.producao.lk-kds-claro .tv-card .tv-avanca{background:#633319;color:#fff8f0;border:0}.tv-stage.producao.lk-kds-claro .tv-card.em_preparo .tv-avanca{background:#378763;color:#fff}}
