.order-rim-status-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(190px,1fr));gap:10px;margin:0 0 22px}
.order-rim-card{border:1px solid var(--line);border-left:5px solid #a66400;border-radius:10px;padding:13px;background:#fff;display:grid;gap:9px}
.order-rim-card div{display:grid;gap:3px}.order-rim-card small{color:var(--muted);font-weight:800}.order-rim-card strong{font-size:15px}.order-rim-card>span{color:var(--muted);font-size:12px}.order-rim-card p{margin:0;color:var(--red);font-size:12px}.order-rim-card button{justify-self:start}
.order-rim-ready{border-left-color:var(--green);background:#f3fbf7}.order-rim-work{border-left-color:var(--blue);background:#f3f8ff}.order-rim-danger{border-left-color:var(--red);background:#fff7f7}

.order-detail-minimal{display:grid;gap:18px;min-width:0;max-width:1120px;margin-inline:auto;padding:clamp(14px,2.2vw,24px)}
.order-detail-back{justify-self:start;min-height:42px}.order-detail-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:16px}.order-detail-heading h2{margin:7px 0 2px;font-size:clamp(20px,2.4vw,28px)}.order-detail-heading small{display:block;color:var(--muted)}
.order-detail-status{display:inline-flex;padding:6px 10px;border-radius:999px;background:#fff0d7;color:var(--amber);font-weight:800}
.order-detail-summary{display:grid;grid-template-columns:repeat(auto-fit,minmax(125px,1fr));gap:9px;margin:0}.order-detail-summary div{min-width:0;padding:10px 12px;border:1px solid var(--line);border-radius:10px;background:#f8fafc}.order-detail-summary dt{color:var(--muted);font-size:11px;font-weight:750;text-transform:uppercase;letter-spacing:.04em}.order-detail-summary dd{margin:3px 0 0;font-weight:750;overflow-wrap:anywhere}
.order-next-step{display:flex;align-items:center;justify-content:space-between;gap:14px;padding:14px 16px;border:1px solid #b8d3f8;border-radius:12px;background:#eff6ff}.order-next-step>div:first-child{display:grid;gap:3px;min-width:0}.order-next-step small{color:#1d5fae;font-size:11px;font-weight:800;letter-spacing:.08em}.order-next-step strong{font-size:16px}.order-next-step .actions,.order-next-step #v3-quality-actions{margin-left:auto}
.order-detail-notes{padding:12px 14px;border-left:4px solid var(--amber);border-radius:8px;background:#fff9ed}.order-detail-notes h3,.order-detail-notes p{margin:0}.order-detail-note{margin-top:10px}.order-detail-note h4{margin:0 0 4px;font-size:13px}.order-detail-note details{margin-top:7px}.order-detail-note summary{min-height:38px;display:flex;align-items:center;cursor:pointer;font-weight:750}.order-detail-note details p{margin-top:7px;white-space:pre-wrap;overflow-wrap:anywhere}.order-rims h3,.order-more>h3{margin:0 0 10px}
.order-rim-compact,.order-tire-row{display:flex;align-items:center;justify-content:space-between;gap:12px;min-width:0;padding:12px 14px;border:1px solid var(--line);border-radius:10px;background:#f8fafc}.order-rim-compact strong,.order-tire-row strong{min-width:0;overflow-wrap:anywhere}.order-rim-compact button,.order-tire-row button{flex:0 0 auto}
.order-rim-status-visible{margin-bottom:0}.order-rim-status-grid[hidden]{display:none}.order-rim-status-grid{margin-top:10px;margin-bottom:0}
.order-more{display:grid;gap:8px;min-width:0}.order-more-item{min-width:0;border:1px solid var(--line);border-radius:10px;background:#fff}.order-more-item>summary{min-height:44px;padding:12px 14px;cursor:pointer;font-weight:750}.order-more-item>summary:focus-visible{outline:3px solid var(--blue);outline-offset:2px}.order-more-content{min-width:0;padding:0 14px 14px}.order-more-content h4{margin:10px 0 6px}.order-more-content .task{min-width:0}.order-more-content .task>div{min-width:0}.order-more-content .actions{flex-wrap:wrap}.order-more-item#v3-order-tires{padding:0;border:0}.order-partner-tires{display:grid;gap:4px;padding:11px 13px;margin-bottom:8px;border:1px solid #f0d59e;border-radius:10px;background:#fff9ed}.order-partner-tires small{color:var(--muted);font-weight:750}.order-partner-tires strong{overflow-wrap:anywhere}.order-related-action{margin-top:6px}
#v3-order-photos{min-width:0}.order-detail-minimal .order-photo-details{margin:0}.order-detail-minimal .order-photo-details h2{margin:0 0 9px;font-size:15px}.order-detail-minimal .order-photo-gallery{display:flex;align-items:stretch;gap:9px;flex-wrap:wrap}.order-detail-minimal .order-photo-thumb{flex:0 1 112px;min-width:0;padding:6px}.order-detail-minimal .order-photo-thumb:first-child{flex-basis:220px}.order-detail-minimal .order-photo-thumb img{height:88px}.order-detail-minimal .order-photo-thumb:first-child img{height:150px}.order-detail-minimal .order-photo-thumb span{overflow-wrap:anywhere}
#v3-tire-editor-panel{min-width:0;padding-top:10px}#v3-tire-editor-panel>.tire-editor{margin:0}#v3-tire-editor-panel[hidden]{display:none}

@media(max-width:620px){.order-detail-minimal{gap:14px;padding:12px}.order-detail-heading{display:block}.order-detail-summary{grid-template-columns:repeat(2,minmax(0,1fr))}.order-next-step,.order-rim-compact,.order-tire-row{align-items:stretch;flex-direction:column}.order-next-step .actions,.order-next-step #v3-quality-actions{width:100%;margin-left:0}.order-next-step button,.order-rim-compact button,.order-tire-row button{width:100%;min-height:44px}.order-detail-minimal .order-photo-gallery{display:grid;grid-template-columns:repeat(2,minmax(0,1fr))}.order-detail-minimal .order-photo-thumb,.order-detail-minimal .order-photo-thumb:first-child{width:100%;max-width:none}.order-detail-minimal .order-photo-thumb:first-child{grid-column:1/-1}.order-detail-minimal .order-photo-thumb img{height:100px}.order-detail-minimal .order-photo-thumb:first-child img{height:min(48vw,190px)}.order-rim-status-grid{grid-template-columns:minmax(0,1fr)}}
@media(max-width:390px){.order-detail-summary{grid-template-columns:minmax(0,1fr)}.order-detail-minimal .order-photo-gallery{grid-template-columns:minmax(0,1fr)}.order-detail-minimal .order-photo-thumb img,.order-detail-minimal .order-photo-thumb:first-child img{height:auto;max-height:220px}}
