/* Pedidos sem ruptura de fluxo, aviso antes de esgotar estoque e saída protegida. */
.pote-order-availability{
 margin:13px 0 15px;padding:14px 16px;border-radius:13px;
 border:1px solid #82b8a1b0;background:linear-gradient(135deg,#1c4638,#193127);
 color:#e0f5e7;display:flex;flex-direction:column;gap:7px;
 box-shadow:inset 0 1px #ffffff2a;font-family:system-ui,Arial,sans-serif
}
.pote-order-availability strong{font-size:14px;line-height:1.3;font-weight:830;letter-spacing:.01em}
.pote-order-availability span{font-size:12px;line-height:1.6}
.pote-order-availability small{font-size:11px;color:#d7d9e0}
.pote-order-availability.low{border-color:#e5b976;background:linear-gradient(135deg,#594021,#362b21);color:#ffdf9f}
.pote-order-availability.blocked{border-color:#db817c;background:linear-gradient(135deg,#582b31,#301d26);color:#ffdad3}
#poteOrderRegister:disabled{opacity:.5;cursor:not-allowed;filter:grayscale(.35)}
.pote-order-focus{border:2px solid #e5c68b!important;box-shadow:0 0 0 3px #e8c79025,0 14px 32px #0009!important;transition:box-shadow .2s}
#poteOrderAlerts[hidden],#poteExitConfirm[hidden]{display:none!important}
#poteOrderAlerts,#poteExitConfirm{position:fixed;inset:0;z-index:13000;
 display:flex;align-items:center;justify-content:center;background:#000c;backdrop-filter:blur(6px);
 padding:16px;overflow-y:auto}
.pote-order-dialog,.pote-exit-dialog{
 width:min(470px,100%);max-height:90dvh;overflow:auto;box-sizing:border-box;
 border:2px solid #ddaa6cb8;background:linear-gradient(135deg,#334052,#111f31);
 border-radius:23px;padding:clamp(21px,5vw,29px);
 color:#f2e6d2;box-shadow:0 22px 60px #000e,inset 0 1px #ffffff36;
 font-family:system-ui,Arial,sans-serif
}
.pote-order-dialog>small,.pote-exit-dialog>small{color:#e8c48b;letter-spacing:.14em;font-size:10px;font-weight:840}
.pote-order-dialog h2,.pote-exit-dialog h2{font-size:clamp(21px,5vw,27px);line-height:1.2;margin:11px 0;color:#ffe3ad;letter-spacing:-.035em}
.pote-order-dialog p,.pote-exit-dialog p{font-size:13px;line-height:1.7;color:#d6dfeb;overflow-wrap:anywhere}
.pote-order-alert-actions,.pote-exit-actions{display:flex;flex-wrap:wrap;gap:10px;margin-top:23px}
.pote-order-alert-actions button,.pote-exit-actions button{flex:1;min-height:43px;white-space:normal}
.stock-shortage-alert{
 padding:15px 19px;margin-bottom:16px;border-radius:15px;
 background:linear-gradient(115deg,#503321,#2e2630);
 border:1px solid #e5ae738e;box-shadow:0 7px 18px #0006;color:#ffe1ba
}
.stock-shortage-alert>strong{font-size:16px;color:#ffce8e}
.stock-shortage-alert p{font-size:12px;line-height:1.55;margin:8px 0;color:#efddcc}
.stock-shortage-alert>div{display:flex;gap:7px;flex-wrap:wrap}
.stock-shortage-alert span{font-size:11px;border-radius:11px;padding:7px 9px;
 border:1px solid #d4a47472;background:#25192288}
@media(max-width:420px){
 .pote-order-alert-actions,.pote-exit-actions{flex-direction:column}
 .pote-order-dialog,.pote-exit-dialog{padding:22px}
 .pote-order-availability{padding:12px}
}
