/* Encomendas (ui/orders-ui.js): order cards, empty / locked slots, the small "delivered" window. */
.ord-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(270px,1fr));gap:12px}
.ord{position:relative;display:flex;flex-direction:column;gap:8px;padding:12px;border-radius:18px;background:#fff;border:3px solid #3a2340;box-shadow:0 5px 0 #3a2340}
.ord.ready{border-color:#2f8a55;box-shadow:0 5px 0 #2f8a55,0 0 0 4px rgba(124,199,154,.35)}
.ord-h{display:grid;grid-template-columns:42px 1fr auto;gap:8px;align-items:center}
.ord-av{width:42px;height:42px;border-radius:12px;display:grid;place-items:center;overflow:hidden;border:2.5px solid #3a2340;box-shadow:0 2px 0 #3a2340;background:linear-gradient(#ffd0e2,#f59bbd)}
.ord-av svg{width:30px;height:30px}
.ord-h b{display:block;font:700 15px/1.1 Fredoka,sans-serif;color:#3a2340}
.ord-h small{font:600 11.5px/1.2 Fredoka,sans-serif;color:#8a7590}
.ord-time{display:inline-flex;align-items:center;gap:4px;padding:3px 9px;border-radius:999px;background:#fff4c2;border:2px solid #3a2340;font:700 12px/1 Fredoka,sans-serif;color:#3a2340;white-space:nowrap}
.ord-time.low{background:#ffd6d6}
.ord-it{display:grid;grid-template-columns:46px 1fr auto;gap:8px;align-items:center;padding:4px 8px 4px 4px;border-radius:14px;background:#fbf4f7;border:2px solid rgba(58,35,64,.18)}
.ord-it .gicon{width:46px;height:46px}
.ord-it b{font:700 13px/1.15 Fredoka,sans-serif;color:#3a2340}
.ord-it small{display:block;font:600 11px/1.2 Fredoka,sans-serif;color:#2f8a55}
.ord-it small.none{color:#a0899f}
.ord-n{font:800 15px/1 Fredoka,sans-serif;color:#3a2340;white-space:nowrap}
.ord-n.full{color:#2f8a55}
.ord-bar{height:14px;border-radius:99px;background:#efe6f4;border:2px solid #3a2340;overflow:hidden}
.ord-bar i{display:block;height:100%;background:linear-gradient(#f59bbd,#e8579a);border-right:2px solid #3a2340}
.ord-f{display:flex;align-items:center;justify-content:space-between;gap:8px;flex-wrap:wrap}
.ord-lines{display:inline-flex;align-items:center;gap:4px;padding:3px 9px;border-radius:999px;background:#e9dcff;border:2px solid #3a2340;font:700 12px/1 Fredoka,sans-serif;color:#3a2340}
.ord-btns{display:flex;gap:8px;justify-content:flex-end}
.ord-empty{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:6px;min-height:150px;border:3px dashed rgba(58,35,64,.35);border-radius:18px;background:#fffaf5;font:600 13px/1.3 Fredoka,sans-serif;color:#8a7590;text-align:center;padding:12px}
.ord-empty b{font:700 15px/1.1 Fredoka,sans-serif;color:#3a2340}
.ord-tip{font:600 12px/1.35 Fredoka,sans-serif;color:#6e5571;margin:10px 2px 0}
.ord-done{text-align:center}
.ord-done .big{font:700 30px/1 Fredoka,sans-serif;color:#fff;-webkit-text-stroke:6px #3a2340;paint-order:stroke fill;margin:6px 0 10px}
.ord-done .rws{justify-content:center}
.ord-done .pile{display:flex;justify-content:center;gap:4px;margin:4px 0 10px}
.ord-done .pile .gicon{width:64px;height:64px}
.ord-done p{font:600 14px/1.35 Fredoka,sans-serif;color:#3a2340;margin:0 0 10px}
.modal.enc{width:min(1000px,100%);max-width:none}
.ord-grid{grid-template-columns:repeat(3,minmax(0,1fr))}
.ord-time svg{width:14px;height:14px}
.ord .btn{font-size:14px;padding:7px 14px 9px}
.ord-it{grid-template-columns:40px 1fr auto}.ord-it .gicon{width:40px;height:40px}
@media (max-height:500px){.ord-grid{gap:8px}.ord{padding:8px;gap:5px}.ord-h{grid-template-columns:34px 1fr auto}.ord-av{width:34px;height:34px}.ord-av svg{width:24px;height:24px}
 .ord-h b{font-size:13px}.ord-h small{font-size:10.5px}.ord-it{grid-template-columns:32px 1fr auto;padding:2px 6px 2px 2px}.ord-it .gicon{width:32px;height:32px}.ord-it b{font-size:11.5px}.ord-it small{font-size:10px}
 .ord-bar{height:10px}.ord .btn{font-size:12px;padding:5px 10px 7px}.ord-lines,.ord-time{font-size:10.5px;padding:2px 7px}.ord-empty{min-height:110px;font-size:11.5px}.ord-tip{font-size:11px;margin-top:6px}}
.ord-av{overflow:hidden;background:radial-gradient(circle at 50% 35%,#fff3f8,#f7d3e4)!important;place-items:end center!important}
.ord-av canvas{display:block}
.ord-empty .ord-ad{display:inline-flex;align-items:center;gap:6px}
.ord-ad .pl{width:0;height:0;border-left:9px solid #fff;border-top:6px solid transparent;border-bottom:6px solid transparent;filter:drop-shadow(0 0 1px #3a2340)}
.ord-empty span{font-size:11.5px}
.ord-empty.locked{background:#f4eef2;color:#9a8aa0}.ord-empty .lk{opacity:.8}
.modal.encdone{width:min(420px,92vw);max-width:none}
.ord-done2{display:grid;grid-template-columns:64px 1fr;gap:12px;align-items:center}
.ord-done2 b{display:block;font:700 16px/1.2 Fredoka,sans-serif;color:#3a2340}
.ord-done2 small{display:block;font:600 12.5px/1.3 Fredoka,sans-serif;color:#6e5571;margin:2px 0 6px}
.ord-av.big{width:64px;height:64px;border-radius:16px;border:3px solid #3a2340;box-shadow:0 3px 0 #3a2340;display:grid}
.ord-av.big canvas{width:64px!important;height:64px!important}
.ord-empty>*{align-self:center;margin-left:auto;margin-right:auto}
.ord-empty .ord-ad{justify-content:center}

.ord-tabs{margin-bottom:6px}
.ord-badge{display:inline-grid;place-items:center;min-width:18px;height:18px;padding:0 4px;margin-left:6px;border-radius:99px;background:#e8579a;color:#fff;border:2px solid #3a2340;font:800 11px/1 Fredoka,sans-serif}
.ord-ask{font:600 14px/1.4 Fredoka,sans-serif;color:#3a2340;text-align:center;margin:4px 0 12px}
.ord-done2 .ord-lines{margin-top:6px}
@media (max-width:760px){.ord-grid{grid-template-columns:repeat(auto-fill,minmax(230px,1fr))}}
/* everything centred, like the messages above it */
.ord-f{justify-content:center}
.ord-f .rws{justify-content:center}
.ord-btns{justify-content:center}
.ord-done2{grid-template-columns:1fr;justify-items:center;text-align:center;gap:8px}
.ord-done2 .rws{justify-content:center}
/* v149: new orders are offers — accept to start the deadline */
.ord-new{margin-left:auto;padding:3px 10px;border-radius:999px;background:#e8579a;border:2px solid #3a2340;color:#fff;font:700 12px/1 Fredoka,sans-serif;white-space:nowrap}
.ord.offer{background:#fff7fb}
.ord-dl{display:flex;align-items:center;justify-content:center;gap:6px;padding:6px 10px;border-radius:12px;background:#fff4c2;border:2px solid #3a2340;font:600 12.5px/1.25 Quicksand,sans-serif;color:#3a2340;text-align:center}
.ord-dl svg{width:15px;height:15px;flex:none}
.ord-dl b{font-family:Fredoka,sans-serif}
@media (max-width:560px),(max-height:520px){.ord-dl{font-size:11px;padding:4px 8px}.ord-new{font-size:10.5px;padding:2px 7px}}
/* v151: "Entregues 3 de 10" (what was delivered), with a little label on top */
.ord-n{display:flex;flex-direction:column;align-items:flex-end;gap:2px;text-align:right}
.ord-n small{font:700 9.5px/1 Fredoka,sans-serif;color:#8a7590;text-transform:uppercase;letter-spacing:.04em}
.ord-n.full small{color:#2f8a55}
.ord-bar i{transition:width .6s cubic-bezier(.23,1,.32,1)}
.ord.complete .ord-bar i{background:linear-gradient(#8fdcaa,#3fae6b)}
.ord.complete{animation:ordDone .5s ease}
@keyframes ordDone{0%{transform:scale(1)}40%{transform:scale(1.03)}100%{transform:scale(1)}}
@media (max-height:500px){.ord-n{font-size:12.5px}.ord-n small{font-size:8.5px}}
/* v152: the portrait (head and shoulders, already centred) fills the whole frame */
.ord-av{place-items:center!important}
.ord-av canvas{width:100%!important;height:100%!important}
/* v154: rush orders, fast delivery, the speed-up button, the on-time streak and the bonuses in the "delivered" box */
.ord.urgent{border-color:#c8324f;box-shadow:0 5px 0 #c8324f}
.ord.urgent.offer{background:#fff3f4}
.ord-new.urgent{background:#e0344f}
.ord-chip{display:flex;align-items:center;justify-content:center;gap:5px;padding:4px 10px;border-radius:999px;border:2px solid #3a2340;font:700 12px/1.1 Fredoka,sans-serif;color:#3a2340;text-align:center}
.ord-chip.fast{background:#fff4c2}
.ord-chip.urgent{background:#ffd6dc;color:#8d1d33}
.ord-chip svg{flex:none}
.ord-speed{display:inline-flex;align-items:center;gap:6px}
.ord-speed .pl{width:0;height:0;border-left:9px solid #fff;border-top:6px solid transparent;border-bottom:6px solid transparent;filter:drop-shadow(0 0 1px #3a2340)}
.ord-streak{display:flex;align-items:center;justify-content:center;flex-wrap:wrap;gap:6px 10px;margin:0 0 10px;font:600 12.5px/1.2 Fredoka,sans-serif;color:#6e5571}
.ord-streak .dots{display:inline-flex;gap:5px}
.ord-streak .dots i{width:14px;height:14px;border-radius:50%;border:2px solid #3a2340;background:#fff}
.ord-streak .dots i.on{background:linear-gradient(#8fdcaa,#3fae6b)}
.ord-streak b{padding:2px 9px;border-radius:999px;background:#e9dcff;border:2px solid #3a2340;color:#3a2340;font-weight:700}
.ord-bonuses{display:flex;flex-direction:column;align-items:center;gap:4px;margin-top:6px}
.ord-bonus{display:inline-flex;align-items:center;gap:5px;padding:3px 10px;border-radius:999px;border:2px solid #3a2340;font:700 12px/1.1 Fredoka,sans-serif;color:#3a2340;background:#fff}
.ord-bonus.fast{background:#fff4c2}.ord-bonus.urgent{background:#ffd6dc}.ord-bonus.streak{background:#e9dcff}.ord-bonus.seq{background:#f4eef2;font-weight:600}
@media (max-height:500px){.ord-chip{font-size:10.5px;padding:2px 8px}.ord-streak{font-size:11px;margin-bottom:6px}.ord-streak .dots i{width:11px;height:11px}}
