#allOrdersProductsScreen{width:100%;padding:0;margin:0}.aop-shell{padding:8px 5px 35px}.aop-header{display:flex;align-items:center;justify-content:space-between;gap:10px;background:linear-gradient(135deg,#0d47a1,#1976d2);color:#fff;border-radius:16px;padding:15px;box-shadow:0 5px 16px rgba(13,71,161,.2)}.aop-header h2{margin:0;font-size:19px}.aop-header p{margin:5px 0 0;font-size:10px;opacity:.9}.aop-refresh{width:38px;height:38px;border:0;border-radius:11px;background:rgba(255,255,255,.16);color:#fff;display:grid;place-items:center;cursor:pointer}.aop-filters{display:flex;gap:6px;overflow-x:auto;padding:10px 1px 5px;scrollbar-width:none}.aop-filters::-webkit-scrollbar{display:none}.aop-filter{border:1px solid #dfe5eb;background:#fff;border-radius:999px;padding:8px 12px;font-size:10px;font-weight:800;white-space:nowrap}.aop-filter.active{background:#1565c0;color:#fff;border-color:#1565c0}.aop-filter-label{font-size:10px;color:#6b7580;font-weight:700;padding:2px 3px 8px}.aop-content{display:flex;flex-direction:column}.aop-order{background:#fff;border:1px solid #e1e7ed;border-radius:15px;overflow:hidden;box-shadow:0 2px 9px rgba(0,0,0,.05)}.aop-order.is-cancelled{opacity:.62}.aop-order-head{display:flex;align-items:center;gap:9px;padding:11px;background:linear-gradient(180deg,#f8fbff,#eef5fc);border-bottom:1px solid #e3eaf1}.aop-avatar{width:39px;height:39px;border-radius:50%;display:grid;place-items:center;background:#1565c0;color:#fff;font-size:17px;font-weight:900}.aop-order-main{min-width:0;flex:1}.aop-customer{font-size:14px;font-weight:900;color:#17212b;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.aop-order-meta{font-size:9px;color:#71808c;margin-top:3px}.aop-order-total{text-align:right}.aop-order-total small{display:block;font-size:8px;color:#7b8792}.aop-order-total b{font-size:11px}.aop-products{padding:8px;display:flex;flex-direction:column;gap:7px}.aop-product-card{border:1px solid #e4e9ee;border-radius:11px;padding:9px;background:#fff}.aop-product-card.is-complete{opacity:.62;background:#f5f7f9}.aop-product-top{display:flex;align-items:flex-start;justify-content:space-between;gap:8px}.aop-product-name{font-size:11px;font-weight:900;color:#26323c;line-height:1.35}.aop-tag{display:inline-flex;align-items:center;border-radius:999px;padding:4px 7px;font-size:8px;font-weight:900;white-space:nowrap}.aop-tag.pending{background:#fff4df;color:#a76500}.aop-tag.moved{background:#e8f5e9;color:#1b6e2b}.aop-tag.complete{background:#e3f2fd;color:#075b9b}.aop-product-grid{display:grid;grid-template-columns:repeat(5,1fr);gap:5px;margin-top:8px}.aop-product-grid div{background:#f7f9fb;border-radius:7px;padding:6px 4px;text-align:center}.aop-product-grid small{display:block;font-size:7px;color:#7a858f}.aop-product-grid b{display:block;font-size:9px;color:#26323c;margin-top:2px}.aop-product-foot{display:flex;align-items:center;justify-content:space-between;gap:7px;margin-top:8px;padding-top:7px;border-top:1px dashed #e1e6ea}.aop-remaining,.aop-complete-note{font-size:8px;color:#707b84}.aop-move-btn{border:0;border-radius:8px;background:#1565c0;color:#fff;padding:7px 9px;font-size:8px;font-weight:900;display:inline-flex;align-items:center;gap:4px;cursor:pointer}.aop-move-btn .material-icons{font-size:14px}.aop-divider{height:9px;border-top:2px solid #dce3ea;margin:8px 0}.aop-loading,.aop-empty{text-align:center;background:#fff;border:1px dashed #d7dfe7;border-radius:13px;padding:35px 15px;color:#74808b;font-size:11px}.aop-empty .material-icons{font-size:36px}.aop-modal-overlay{position:fixed;inset:0;background:rgba(0,0,0,.45);display:grid;place-items:center;padding:15px;z-index:99999}.aop-modal,.aop-confirm{width:min(430px,100%);background:#fff;border-radius:16px;padding:18px;box-shadow:0 14px 40px rgba(0,0,0,.22);position:relative}.aop-modal h3,.aop-confirm h3{margin:0 0 15px;font-size:16px}.aop-modal-close{position:absolute;right:10px;top:8px;border:0;background:#f1f3f5;border-radius:50%;width:30px;height:30px;font-size:20px}.aop-modal label{display:block;font-size:10px;font-weight:800;color:#66717c;margin:10px 0}.aop-modal input{display:block;width:100%;box-sizing:border-box;margin-top:5px;height:42px;border:1px solid #dce2e7;border-radius:10px;padding:0 10px}.aop-modal-actions,.aop-confirm-actions{display:flex;gap:8px;margin-top:16px}.aop-modal-actions button,.aop-confirm-actions button{flex:1;border:0;border-radius:10px;height:40px;font-weight:800}.aop-modal-actions .primary,.aop-confirm-actions .primary{background:#1565c0;color:#fff}.aop-confirm-row{display:flex;justify-content:space-between;gap:15px;padding:10px 0;border-bottom:1px solid #edf0f2;font-size:10px}.aop-confirm-row span{color:#78838c}.aop-confirm-row b{text-align:right;color:#26323c}.aop-confirm-actions{margin-top:18px}.aop-confirm-actions button{background:#eef1f4}.aop-confirm-actions .primary{background:#1565c0;color:#fff}@media(max-width:600px){.aop-product-grid{grid-template-columns:repeat(3,1fr)}.aop-product-grid div:nth-child(5){grid-column:span 1}.aop-order-total{display:none}}

/* Compact product cards + detail popup */
.aop-order-head{background:linear-gradient(135deg,#0b3d91,#1565c0);color:#fff;padding:12px 13px}
.aop-customer,.aop-order-meta,.aop-order-count{color:#fff}
.aop-order-meta{opacity:.86}
.aop-order-count{font-size:9px;font-weight:800;margin-top:3px;opacity:.92}
.aop-product-card{padding:7px 9px;border-radius:9px}
.aop-product-top{align-items:center}
.aop-product-name{font-size:10px;line-height:1.25}
.aop-product-actions{display:flex;align-items:center;gap:5px;flex-shrink:0}
.aop-details-btn{width:26px;height:26px;border:0;border-radius:7px;background:#f1f4f7;color:#4b5964;font-size:17px;line-height:20px;cursor:pointer}
.aop-compact-line{display:flex;align-items:center;gap:5px;margin-top:5px;min-height:20px}
.aop-qty-pill,.aop-moved-pill,.aop-remaining-pill{display:inline-flex;align-items:center;border-radius:999px;padding:3px 7px;font-size:7px;font-weight:900}
.aop-qty-pill{background:#eef3f8;color:#40515f}
.aop-moved-pill{background:#e5f5e9;color:#176b2b}
.aop-remaining-pill{background:#fff1dc;color:#9a5b00}
.aop-product-foot{margin-top:6px;padding-top:6px}
.aop-move-btn{padding:5px 7px;font-size:7px}
.aop-product-grid{display:none}
.aop-complete-note{font-size:7px}
.aop-detail-modal{max-height:82vh;overflow:auto}

/* Keep Move button background limited to its own content instead of the card edge. */
.aop-product-foot .aop-move-btn{width:max-content;max-width:100%;flex:0 0 auto;align-self:flex-end;box-sizing:border-box;}


/* All Orders Products — collapsed orders, stronger completed-state dimming */
.aop-order-head{cursor:pointer;position:relative}
.aop-expand-btn{width:31px;height:31px;flex:0 0 31px;border:1px solid rgba(255,255,255,.35);border-radius:8px;background:rgba(255,255,255,.14);color:#fff;display:grid;place-items:center;padding:0;cursor:pointer}
.aop-expand-btn .material-icons{font-size:20px}
.aop-products[hidden]{display:none}
.aop-products{padding-top:8px}
.aop-product-card.is-complete{opacity:.24!important;filter:saturate(.18)!important;background:#eef0f2!important;border-color:#e2e5e8!important;box-shadow:none!important}
.aop-product-card.is-complete .aop-product-name,.aop-product-card.is-complete .aop-compact-line,.aop-product-card.is-complete .aop-product-foot{opacity:.72}
.aop-pq-back{width:38px;height:38px;flex:0 0 38px;border:0;border-radius:11px;background:rgba(255,255,255,.16);color:#fff;display:grid;place-items:center;cursor:pointer}
.aop-pq-back .material-icons{font-size:20px}
@media(max-width:600px){.aop-expand-btn{width:29px;height:29px;flex-basis:29px}.aop-pq-back{width:35px;height:35px;flex-basis:35px}}
