/* Shared status meanings: blue active, amber waiting, green ready/success,
   gray finished/cancelled, red fault/actual quota overrun. Sidebar unchanged. */
main :is(.badge-cancelled,.badge-completed,.badge-inactive,.badge-requested){background:#e9edf3;color:#4b5e77}
main .badge-faulty{background:#fde8e8;color:#9c3030}
main :is(.badge-ready,.badge-readyforpickup,.badge-available,.badge-returned){background:#e3f3ee;color:#216a57}
main :is(.badge-preparing,.badge-reserved,.badge-assigned,.badge-outofstock){background:#fff1da;color:#815109}
main :is(.badge-new,.badge-checkedout){background:#e8f0ff;color:#2457a7}
.order-preparation{padding:12px 16px;background:#fff;border:1px solid #dde5ef;border-radius:12px;margin-bottom:12px}
.order-preparation-head{display:flex;justify-content:space-between;align-items:center;gap:8px;flex-wrap:wrap}
.order-preparation progress{display:block;width:100%;height:8px;margin-top:8px;accent-color:#2864dc}
.order-detail-screen tr.preparation-pending>td{background:#fff8e9!important}
.order-detail-screen .preparation-help{font-size:.85rem;align-self:center;color:#6a4d13}
.order-ammo-overview .card-body{padding:12px 16px}
.ammo-unified-labels,.ammo-unified-row{display:grid;grid-template-columns:1.25fr repeat(5,1fr);gap:8px;align-items:center}
.ammo-unified-labels{font-size:.8rem;color:#5c6e86;padding:8px 0;border-bottom:1px solid #dce3ed}
.ammo-unified-row{padding:12px 0;border-bottom:1px solid #e7ebf1}
.ammo-unified-row>div{min-width:0;font-variant-numeric:tabular-nums}
.ammo-field-label{display:none}
.ammo-unified-note{grid-column:1/-1;font-size:.8rem}
.ammo-unified-actions{display:flex;flex-wrap:wrap;gap:8px;margin-top:12px}
.ammo-unified-actions .instructor-request-ammo{margin:0!important;width:auto!important}
.order-actionbar .btn{min-height:42px}
.order-detail-screen .order-actionbar{top:0}
@media(max-width:767px){
 .ammo-unified-labels{display:none}
 .ammo-unified-row{grid-template-columns:repeat(3,minmax(0,1fr));gap:10px 8px}
 .ammo-unified-caliber{grid-column:1/-1;border-bottom:1px solid #e7ebf1;padding-bottom:6px}
 .ammo-field-label{display:block;font-size:.75rem;color:#5c6e86;margin-bottom:2px}
 .ammo-unified-row>div>strong,.ammo-unified-row>div>span:last-child{display:block;font-size:1rem;white-space:nowrap}
 .ammo-unified-actions>.btn{flex:1 1 140px;min-height:44px}
 .ammo-unified-actions .instructor-request-ammo{flex-basis:100%}
 .order-ammo-overview .card-body{padding:10px 12px}
 .order-preparation{padding:10px 12px}
}
