/* Orders share B-CAR's navy/orange identity without changing other admin panels. */
.order-detail-page{margin:0;font:15px/1.8 BCAR,Arial,sans-serif}
.order-detail-page *{box-sizing:border-box}
.order-detail-page [hidden]{display:none!important}
.order-page-header{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:18px max(20px,calc((100% - 1180px)/2));border-bottom:1px solid #3a475a}
.order-brand{font-size:21px;font-weight:700;color:#f3f6fa;text-decoration:none;white-space:nowrap}
.order-header-actions,.order-page-heading,.order-card-heading,.order-card-footer,.order-actions,.order-pagination{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap}
.order-page-main{max-width:1220px;margin:auto;padding:34px 20px 70px}
.order-page-main h1{font-size:30px;margin:0 0 12px}.order-page-main h2{font-size:22px;margin:0 0 18px}.order-page-main h3{font-size:17px;margin:0 0 6px}
.order-detail-page :is(button,.btn){font:inherit;cursor:pointer;min-height:44px;padding:10px 16px;text-decoration:none;background:#172b43;color:#edf2f8;border:1px solid #526780;border-radius:5px;display:inline-flex;align-items:center;justify-content:center}
.order-detail-page button:disabled{opacity:.55;cursor:wait}
.order-reference{overflow-wrap:anywhere;color:#b9c5d5;font-size:13px}
.bcar-theme .order-receipt{padding:24px;margin:24px 0;background:#1b2534;border:1px solid #3a485d;border-radius:7px;overflow-wrap:anywhere}.bcar-theme .order-receipt h2{font-size:21px}.bcar-theme .order-receipt li{color:#c6d2e0}
.order-message{min-height:44px;padding:12px 16px;background:#1b293d;border-radius:6px;overflow-wrap:anywhere}.order-message[data-error=true]{background:#382526;color:#ffb5a1}
.order-detail-grid{display:grid;grid-template-columns:1fr 1fr;gap:20px}
.order-detail-section{padding:26px;background:#1b2534;border:1px solid #3a485d;border-radius:8px;margin:0 0 20px;min-width:0}
.order-detail-section p{margin:10px 0}.order-facts{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin:20px 0 0}.order-fact dt{font-size:12px;color:#b1bece}.order-fact dd{margin:3px 0;color:#edf2f8;font-size:14px}
.order-state{display:inline-flex;align-items:center;gap:6px;border-radius:6px;padding:5px 12px;background:#24354c;color:#cfdeee;font-size:12px;font-weight:700}
.order-state[data-state=pending_quote],.order-state[data-state=quoted]{background:#ee792919;color:#ffb278}.order-state[data-state=completed]{background:#17352e;color:#a3dfbe}.order-state[data-state=cancelled]{background:#382526;color:#ffb5a1}
.order-customer{display:flex;flex-direction:column;gap:5px;min-width:0}.order-customer strong{font-size:18px;color:#f3f6fa}.order-customer a{color:#b9d6fb;width:fit-content;text-decoration:none}
.order-products{display:flex;flex-direction:column;gap:14px;margin:18px 0}.order-product{display:flex;align-items:flex-start;gap:16px;padding:16px;background:#111e30;border-radius:6px;min-width:0}.order-product img{width:80px;height:80px;object-fit:contain;background:#fff;border-radius:5px;flex:0 0 80px}.order-product-body{min-width:0;flex:1}.order-product-name{font-weight:700!important;color:#edf2f8!important;overflow-wrap:anywhere}.order-product p{font-size:13px;margin:4px 0}.order-sku{font:11px/1.6 Arial,sans-serif;color:#9faec0!important}.order-quantity{font-size:13px;color:#f3f6fa}.order-muted{color:#b1bece!important;font-size:13px}.order-line-prices{display:flex;gap:12px 30px;flex-wrap:wrap;margin-top:10px}
.order-grand-total{font-size:27px;color:#f3f6fa!important;font-weight:700}.order-notes{white-space:pre-wrap;overflow-wrap:anywhere}
.order-quote-form{max-width:540px;display:grid;gap:12px;margin:12px 0 22px}.order-quote-form label{display:block;color:#d9e2ec}.order-quote-form input{display:block;width:100%;font:16px BCAR,Arial,sans-serif;min-height:48px;padding:12px;border:1px solid #526780;border-radius:4px;background:#172130;color:#edf2f8;margin-top:7px}.order-actions{justify-content:flex-start}
.admin-page .order-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px}.admin-page .order-list-card{margin:0;min-width:0}.admin-page .order-title{color:#f3f6fa;text-decoration:none;font-size:18px;display:inline-flex;min-height:44px;align-items:center}.admin-page .order-title:after{content:'↗';font-size:17px;margin-inline-start:8px}.admin-page .order-list-card>p{font-size:12px}.admin-page .order-card-footer{padding-top:12px;border-top:1px solid #3a475a}.admin-page .order-card-footer .btn{font-size:12px}.admin-page .order-list .order-product img{width:60px;height:60px;flex-basis:60px}.admin-page .order-list .order-product{padding:10px;gap:12px}.admin-page .order-list .order-products{gap:8px}.admin-page .order-list .order-product-name{font-size:14px}.admin-page .order-filters{display:grid;grid-template-columns:2fr 1fr 1fr 1fr;gap:14px;align-items:end}.admin-page .order-filters .bar{grid-column:1/-1}.admin-page .order-filters input,.admin-page .order-filters select{margin-top:8px}.admin-page .order-pagination{justify-content:center;margin:24px 0}.admin-page .admin-stats{grid-template-columns:repeat(auto-fit,minmax(155px,1fr))}
@media(max-width:1000px){.admin-page .order-filters{grid-template-columns:1fr 1fr}.admin-page .order-list{grid-template-columns:1fr}}
@media(max-width:600px){.order-page-header{padding:14px 16px;flex-wrap:wrap}.order-header-actions{width:100%;justify-content:space-between}.order-page-main{padding:24px 16px 40px}.order-page-main h1{font-size:25px}.order-detail-grid{grid-template-columns:1fr;gap:0}.order-detail-section{padding:20px 16px}.order-facts{grid-template-columns:1fr}.order-product{padding:12px;gap:12px}.order-product img{width:64px;height:64px;flex-basis:64px}.order-line-prices{display:block}.order-grand-total{font-size:24px}.order-actions button{flex:1 1 140px}.admin-page .order-filters{grid-template-columns:1fr}.admin-page .order-card-heading{align-items:flex-start}.admin-page .order-list-card{padding:20px 16px}.order-card-footer .order-open{width:100%}}
