/* Semáforo operacional: vermelho faltante, laranja baixo, verde suficiente. */
.stock-health-badge{display:inline-flex;align-items:center;align-self:flex-start;gap:5px;
 padding:5px 8px;margin-top:5px;border-radius:8px;font-size:10px;font-weight:900;
 letter-spacing:.08em;border:1px solid currentColor}
.stock-health-badge:before{content:"";height:8px;width:8px;border-radius:100%;
 background:currentColor;box-shadow:0 0 7px currentColor}
.stock-health-badge.missing{color:#ffc3bf;background:#7826298e}
.stock-health-badge.low{color:#ffcf84;background:#71501ca6}
.stock-health-badge.good{color:#b0f5c4;background:#1b513b9f}
.stock-card.stock-status-missing,.stock-beverage-card.stock-status-missing{
 border:2px solid #ec716b!important;box-shadow:inset 0 0 0 1px #ba2e2744,0 10px 21px #0005}
.stock-card.stock-status-low,.stock-beverage-card.stock-status-low{
 border:2px solid #eca64d!important;box-shadow:inset 0 0 0 1px #e8a84d25,0 10px 21px #0005}
.stock-card.stock-status-good,.stock-beverage-card.stock-status-good{
 border:1px solid #84c8a2!important}
.stock-balance-missing{color:#ffaba7!important}
.stock-balance-low{color:#ffd48b!important}
.stock-balance-good{color:#b2f2c5!important}
.pote-order-alert-items{display:flex;flex-direction:column;gap:8px;margin:12px 0}
.pote-order-alert-item{display:flex;flex-direction:column;gap:5px;padding:10px 13px;
 border-radius:11px;border:1px solid;line-height:1.5}
.pote-order-alert-item strong{font-size:13px;font-weight:880}
.pote-order-alert-item small{font-size:11px}
.pote-order-alert-item.missing{background:#642a30;border-color:#ff7775;color:#ffe0dc}
.pote-order-alert-item.low{background:#654924;border-color:#efaf5f;color:#ffdfaf}
.pote-order-alert-actions button[hidden]{display:none!important}
#poteOrderAlertRestock{border-color:#e6c48e!important;background:#ffdfac!important;color:#201713!important;
 font-weight:850;box-shadow:0 5px 15px #0005}
.stock-pending-replenish{margin:0 0 17px;padding:17px;border:2px solid #f0a36c;
 border-radius:16px;background:linear-gradient(125deg,#4a3031,#242b39);color:#fff1db}
.stock-pending-replenish>strong{font-size:18px;color:#ffe0ad}
.stock-pending-replenish>p{font-size:12px;line-height:1.65;color:#e9d6ca}
.stock-pending-replenish>div{display:grid;gap:8px;margin:14px 0}
.stock-pending-item{display:flex;align-items:center;flex-wrap:wrap;gap:10px;
 padding:11px;border:1px solid;border-radius:11px}
.stock-pending-item strong{flex:1;min-width:130px;font-size:13px}
.stock-pending-item span{font-size:12px}
.stock-pending-item button{min-height:38px}
.stock-pending-item.missing{border-color:#ff7874;background:#632b30}
.stock-pending-item.missing strong{color:#ffd0ce}
.stock-pending-item.low{border-color:#eeb065;background:#604822}
.stock-pending-item.low strong{color:#ffdc99}
@media(max-width:480px){
 .pote-order-alert-actions{flex-direction:column}
 .stock-pending-item{align-items:stretch;flex-direction:column}
 .stock-pending-item button{width:100%}
}
/* Reposição prioritária, botão direto e lixeira com recuperação. */
.stock-urgent-list{padding:16px;margin:14px 0;border:2px solid #dc6567;border-radius:16px;
 background:linear-gradient(120deg,#54292e,#302739);box-shadow:0 11px 22px #0007;color:#ffe3df}
.stock-urgent-header{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:10px}
.stock-urgent-header>strong{font-size:16px;letter-spacing:.02em;color:#ffd0cd}
.stock-urgent-header small{font-size:11px;color:#f2d0d0}
.stock-urgent-list>div:last-child{display:grid;grid-template-columns:repeat(auto-fill,minmax(220px,1fr));
 gap:7px;margin-top:13px}
.stock-urgent-link{cursor:pointer;text-align:left;border:1px solid #ec9390!important;
 border-radius:11px;padding:11px;background:#542c35!important;color:#ffe9df!important;
 display:flex;flex-direction:column;gap:5px;overflow-wrap:anywhere}
.stock-urgent-link strong{font-size:13px}
.stock-urgent-link span{font-size:10px;line-height:1.4}
.stock-urgent-link b{font-size:11px;color:#ffdea5}
.stock-urgent-link:hover,.stock-urgent-link:focus-visible{outline:2px solid #ffdbad;outline-offset:2px}
.stock-priority-title{grid-column:1/-1;border-radius:12px;padding:12px 15px;
 display:flex;justify-content:space-between;align-items:center;gap:8px;flex-wrap:wrap}
.stock-priority-title strong{font-size:16px;font-weight:900}
.stock-priority-title small{font-size:10px}
.stock-priority-title.missing{background:#5b2d34;border-left:5px solid #f87b78;color:#ffe2dc}
.stock-priority-title.low{background:#614724;border-left:5px solid #efb45e;color:#ffdda4}
.stock-priority-title.good{background:#1d4b3b;border-left:5px solid #8ad5aa;color:#d3ffe1}
.stock-item-open{border:none!important;display:inline-block;cursor:pointer;padding:3px 0;
 text-align:left;background:transparent!important;color:#f1e5d8!important;
 font-weight:900;font-size:inherit;text-decoration:underline;text-decoration-style:dotted;
 text-underline-offset:4px}
.stock-item-open:hover{color:#ffe0a7!important}
.stock-delete-button{display:inline-flex!important;gap:7px;justify-content:center;
 align-items:center;background:#5d2832!important;color:#ffd2d1!important;
 border:1px solid #df7d7a!important}
.stock-delete-button:hover{background:#8b333c!important}
.stock-pending-open,.pote-order-missing-open{background:transparent!important;border:0!important;
 color:inherit!important;text-align:left;padding:3px 0;cursor:pointer;font:inherit;
 font-weight:900;text-decoration:underline;text-underline-offset:3px;
 text-decoration-style:dotted}
.stock-pending-open:focus-visible,.pote-order-missing-open:focus-visible{outline:2px solid #ffddb5}
.stock-restock-resolved{margin-bottom:16px;padding:17px;border:2px solid #80d1a3;
 border-radius:15px;color:#d6ffe5;background:linear-gradient(125deg,#204737,#142d33)}
.stock-restock-resolved strong{font-size:17px;color:#cdffdf}
.stock-restock-resolved p{font-size:12px;line-height:1.6}
#poteDeleteStockModal[hidden]{display:none!important}
#poteDeleteStockModal{position:fixed;inset:0;z-index:15400;display:flex;align-items:center;
 justify-content:center;padding:15px;background:#000d;backdrop-filter:blur(6px);overflow-y:auto}
.stock-delete-dialog{background:linear-gradient(145deg,#2b3b4c,#122133);
 border:1px solid #e2aa79;color:#f4e9db;box-shadow:0 17px 50px #000c;
 width:min(560px,100%);max-height:90dvh;overflow:auto;box-sizing:border-box;
 border-radius:19px;padding:clamp(16px,4vw,25px);font-family:system-ui,Arial}
.stock-delete-dialog h2{font-size:22px;margin:2px 0 11px;color:#ffe6b5}
.stock-delete-dialog p{font-size:12px;line-height:1.65;overflow-wrap:anywhere}
.stock-delete-dialog label{display:block;font-weight:790;font-size:12px;margin:10px 0}
.stock-delete-dialog select{width:100%;padding:10px;border-radius:10px;
 background:#152638;color:#ffe9d1;border:1px solid #a8b8c6;margin-top:7px}
.stock-delete-dialog small{display:block;font-size:10px;line-height:1.5;color:#e3d0bf}
.stock-delete-usage{border-radius:10px;border:1px solid #91adc275;padding:12px;background:#1a2b3c}
.stock-delete-stop{color:#ffd5cf!important;background:#5f2b2e;padding:10px;border-radius:8px}
.stock-delete-warning{color:#ffd1cd!important;font-weight:800}
.stock-delete-actions{display:flex;gap:9px;flex-wrap:wrap;margin-top:18px}
.stock-delete-actions button{min-height:42px;flex:1;white-space:normal}
.stock-delete-actions button[hidden]{display:none!important}
.stock-trash-section{margin-top:16px;padding:15px;border:1px solid #d9b78b;
 border-radius:13px;background:#2a3646;color:#ffe4ba}
.stock-trash-section summary{font-size:14px;cursor:pointer;font-weight:830}
.stock-trash-section>p{font-size:12px;line-height:1.5}
.stock-trash-section>div{display:flex;align-items:center;gap:10px;flex-wrap:wrap;
 padding:10px 0;border-top:1px solid #f2d5af33}
.stock-trash-section>div strong{flex:1;min-width:100px;font-size:12px}
.stock-trash-section>div span{font-size:11px;color:#d7dfe2}
@media(max-width:560px){
 .stock-urgent-list>div:last-child{grid-template-columns:1fr}
 .stock-delete-actions{flex-direction:column}
 .stock-delete-actions button{width:100%}
}
