/* Order management shares the quiet surfaces and burgundy actions of the shop. */
#shop-dashboard .request-card{padding:24px;border:1px solid light-dark(#e2e5e9,#3c4149);border-radius:16px;margin:18px 0;background:light-dark(#fff,#212429);overflow-wrap:anywhere}
#shop-dashboard .request-card h2{font-size:17px;letter-spacing:0}
.order-status-badge{display:inline-block;padding:6px 12px;border-radius:20px;background:light-dark(#e9edf2,#343c49);font-weight:600;font-size:13px}
.order-status-badge[data-status=completed]{background:light-dark(#e4eee5,#2d4233)}
.order-status-badge[data-status=ready],.order-status-badge[data-status=shipped]{background:light-dark(#e2edf2,#2b414b)}
.order-status-form{border-top:1px solid #8884;padding-top:18px;margin-top:18px;display:flex;align-items:end;gap:12px;flex-wrap:wrap}.order-status-form label{flex:1;min-width:200px}.order-status-form button{background:#892631;color:#fff;border-color:#892631}.order-status-form p{flex-basis:100%;margin:0}
.shop-delivery-settings{border:1px solid #8884;border-radius:12px;padding:18px;margin:20px 0}.shop-delivery-settings summary{cursor:pointer;font-weight:600;min-height:44px}
#editor{width:min(1100px,calc(100% - 24px));max-width:none;border-radius:18px}
#product-form{display:grid;grid-template-columns:minmax(230px,.8fr) minmax(0,1.5fr);gap:0 28px}
#product-form>.dialog-heading,#product-form>.dialog-actions,#product-form>#editor-error{grid-column:1 / -1}
#product-form>.product-form-section,#product-form>.english-fields{grid-column:2;min-width:0}
#product-form .product-form-section{border-left:1px solid light-dark(#e1e3e6,#42464d);background:light-dark(#fff,#212429);border-radius:14px}
.admin-product-preview{grid-column:1;grid-row:2 / span 6;align-self:start;position:sticky;top:12px;padding-top:20px;min-width:0}
.preview-photo{height:260px;display:flex;align-items:center;justify-content:center;border-radius:22px;overflow:hidden;color:#626871;padding:16px;box-sizing:border-box}.preview-photo img{width:100%;height:100%;object-fit:contain}.preview-photo span{font-size:13px}
.preview-brand{margin-top:18px}.preview-brand img{width:64px;height:32px;object-fit:contain}.preview-category{color:light-dark(#626871,#b3b9c2)}.admin-product-preview h3{font-size:20px;line-height:1.3;overflow-wrap:anywhere}.preview-price{display:block;font-size:24px;margin-top:20px}.preview-stock{font-size:13px}
@media(max-width:760px){#product-form{display:block}.admin-product-preview{position:static;max-width:360px;margin:0 auto 24px}.preview-photo{height:220px}.order-status-form button{width:100%}}
.order-list-tools{display:flex;gap:16px;flex-wrap:wrap;margin:16px 0}.order-list-tools label{flex:1;min-width:200px}.order-list-tools input,.order-list-tools select{width:100%;box-sizing:border-box}
/* Order cards keep contact, products and processing easy to scan. */
#shop-dashboard .request-card,#requests-list .request-card:has(.order-card-heading){display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.2fr);gap:18px;padding:20px;border:1px solid light-dark(#dfe3e8,#41464e);border-radius:16px;background:light-dark(#fff,#1d2024)}
#shop-dashboard .request-card[hidden],#requests-list .request-card[hidden]{display:none}
.order-card-heading{grid-column:1/-1;display:flex;flex-wrap:wrap;align-items:center;gap:10px 24px;border-bottom:1px solid #8883;padding-bottom:14px}.order-card-heading h2{flex-basis:100%;margin:0;overflow-wrap:anywhere}.order-card-heading p{margin:0}.order-card-heading p:last-child{margin-left:auto;font-size:22px;font-weight:650}
.order-detail-card,.order-products-card,.order-state-card{padding:20px;border-radius:12px;border:1px solid #8883;min-width:0;overflow-wrap:anywhere}.order-detail-card{background:light-dark(#eef3f7,#252d34);border-top:3px solid #9bb9ca}.order-products-card{background:light-dark(#f5f1f7,#2d2732);border-top:3px solid #b6a2c7}.order-state-card{grid-column:1/-1;background:light-dark(#eef4ef,#252f29);border-top:3px solid #9ebdab}
.order-detail-card h3,.order-products-card h3,.order-state-card h3{font-size:16px;margin:0 0 18px}.order-detail-card p,.order-state-card p{font-size:14px}.order-product-row{display:flex;align-items:center;gap:16px;margin:14px 0}.order-product-row>div{min-width:0}.order-product-row p{margin:4px 0;font-size:13px}.order-product-row img,.order-photo-placeholder{width:64px;height:80px;object-fit:contain;background:#e7eaf0;border-radius:10px;flex:none;padding:6px;box-sizing:border-box}.order-photo-placeholder{display:grid;place-items:center;font-size:40px;color:#657181}
#shop-dashboard .order-status-form{margin-top:12px;padding-top:12px}#shop-dashboard .order-status-form label{max-width:500px}.order-status-form button{border-radius:24px}
#dashboard .section-heading,#repairs-dashboard .section-heading,#shop-dashboard .section-heading{border-bottom:1px solid #8883;padding-bottom:20px}
#product-form .product-form-section:nth-of-type(3n+1){border-left:4px solid #9bb9ca;background:light-dark(#f5f8fa,#252d34)}#product-form .product-form-section:nth-of-type(3n+2){border-left:4px solid #b6a2c7;background:light-dark(#f8f5fa,#2d2732)}#product-form .product-form-section:nth-of-type(3n){border-left:4px solid #9ebdab;background:light-dark(#f4f8f5,#252f29)}
#shop-dashboard button,#dashboard button{min-height:44px}#shop-dashboard input,#shop-dashboard select{border-radius:8px}
@media(max-width:760px){#shop-dashboard .request-card,#requests-list .request-card:has(.order-card-heading){grid-template-columns:minmax(0,1fr);padding:12px;gap:12px}.order-detail-card,.order-products-card,.order-state-card{padding:16px}.order-card-heading h2{font-size:15px}.order-list-tools label,.order-status-form label{min-width:0;width:100%}}
