.ow-toolbar,.ow-status,.ow-order header,.ow-detail-head{display:flex;gap:16px;align-items:center;flex-wrap:wrap}.ow-toolbar{margin:18px 0}.ow-status{justify-content:space-between;padding:16px 20px;background:#fff;border:1px solid #d5e4eb;border-radius:12px}.ow-toolbar form{display:flex;gap:10px;flex:1;min-width:260px}.ow-toolbar input{flex:1;min-width:180px}.ow-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(330px,1fr));gap:20px}.ow-card,.ow-order{border:1px solid #d5e4eb;border-radius:14px;background:white;padding:22px}.ow-card h2,.ow-order h2{font-size:19px;line-height:1.5;margin:10px 0}.ow-card p{line-height:1.5;margin:8px 0}.order-photo{width:90px;height:100px;object-fit:contain;background:#f6f9fb;border-radius:10px;flex-shrink:0}.ow-card>.order-photo{width:100%;height:190px;background:white}.order-photo.missing{display:inline-flex;align-items:center;justify-content:center;color:#647885;font-size:13px}.ow-meta{font-size:14px;line-height:1.8;color:#526e7a}.ow-orders{display:grid;gap:18px}.ow-line,.ow-candidate,.ow-capture-row{display:flex;align-items:center;gap:18px;padding:16px 0;border-top:1px solid #e3ebef}.ow-line>div,.ow-candidate>div{flex:1}.ow-line p{margin:6px 0}.ow-detail{font-size:17px;line-height:1.6}.ow-detail label,.ow-more label{display:block;margin:16px 0}.ow-detail label input,.ow-detail textarea,.ow-more input[type=url]{display:block;width:100%;margin-top:6px}.ow-detail-head>.order-photo{width:150px;height:160px}.ow-confirm{border:1px solid #a7dcec;border-radius:10px;padding:20px;background:#f0fafc}.ow-capture-row input{width:auto!important}.ow-capture-row .order-photo{height:70px;width:70px}.ow-more{position:relative}.ow-more[open]>div{position:absolute;z-index:4;right:0;top:30px;width:min(450px,85vw);padding:22px;background:white;border:1px solid #cddfe8;box-shadow:0 8px 28px #163b4822;border-radius:12px}.ow-more input[type=checkbox]{width:auto}.ow-detail form{margin:18px 0}.order-workspace .spinner{display:inline-block;vertical-align:middle;margin-right:8px}.ow-candidate .order-photo{width:65px;height:75px}@media(max-width:650px){.ow-grid{grid-template-columns:1fr}.ow-line,.ow-candidate{align-items:flex-start;flex-wrap:wrap}.ow-toolbar form{flex-wrap:wrap}.ow-detail-head>.order-photo{width:100px;height:120px}}
.ow-toolbar select{width:auto;max-width:100%;min-width:220px}.ow-toolbar form button{flex-shrink:0}.ow-status button{margin-left:12px}

.ow-issue{padding:16px 0;border-top:1px solid #d5e4eb}.ow-issue p{line-height:1.5}.ow-issue h3{margin:8px 0}.ow-toolbar select[hidden]{display:none}

.ow-order-row{display:flex;align-items:center;gap:18px;width:100%;text-align:left;background:white;border:1px solid #d5e4eb;border-radius:12px;padding:18px 22px;color:#203944;cursor:pointer;line-height:1.5;font-size:16px}.ow-order-row:hover{background:#f0faff;border-color:#49b4d4}.ow-order-row:focus-visible,.ow-modal-items button:focus-visible{outline:3px solid #37b0da;outline-offset:3px}.ow-order-row .order-photo{width:64px;height:70px}.ow-row-main{display:grid;gap:4px;flex:1;min-width:0}.ow-row-main>strong{font-size:17px}.ow-row-main>span{font-weight:400}.ow-row-status{display:grid;justify-items:end;gap:5px;font-size:15px}.ow-row-status small{color:#9c6106}.ow-tabs{display:flex;border-bottom:1px solid #d5e4eb;gap:12px;margin-bottom:24px}.ow-tabs button{border:0;border-bottom:3px solid transparent;border-radius:0;padding:12px 18px}.ow-tabs button.active{background:#e5f6fc;border-color:#3eb1d4;color:#17657e}.ow-compact{max-width:850px;margin:auto}.ow-order-summary{display:flex;flex-wrap:wrap;gap:24px 48px;margin-bottom:20px}.ow-order-summary>span{display:grid;gap:4px}.ow-order-summary small{color:#526e7a}.ow-modal-items{display:grid}.ow-modal-items button{display:flex;align-items:center;gap:16px;width:100%;text-align:left;border:0;border-top:1px solid #d5e4eb;border-radius:0;background:#fff;padding:16px 0;color:#203944}.ow-modal-items .order-photo{width:70px;height:78px}.ow-modal-items button>span:nth-child(2){display:grid;gap:4px;flex:1}.ow-modal-items small{font-size:14px;color:#526e7a}.ow-links{display:flex;gap:12px 20px;flex-wrap:wrap}.ow-compact h3{font-size:19px;margin:8px 0}.ow-compact .ow-detail-head>.order-photo{width:100px;height:115px}.ow-compact .ow-detail-head>div{flex:1;min-width:180px}.ow-compact input[type=checkbox]{display:inline-block;width:auto;margin:0 8px 0 0}.ow-check{font-size:15px}.ow-compact select{width:100%;margin-top:6px}.ow-compact #ow-detail-error:empty{display:none}.ow-buyer{padding:12px 0 25px}.ow-row-status>span:last-child{font-size:24px;line-height:1}
@media(max-width:650px){.ow-order-row{padding:14px;gap:12px;flex-wrap:wrap}.ow-row-main{flex-basis:calc(100% - 80px)}.ow-row-status{display:flex;justify-content:space-between;width:100%;border-top:1px solid #e3ebef;padding-top:8px}.ow-tabs{gap:4px}.ow-tabs button{padding:10px 15px}.ow-order-summary{gap:12px 24px}.ow-compact .ow-detail-head{gap:12px}}

.ow-search-match{display:grid;gap:4px;margin:10px 0;padding:10px 12px;background:#f0f8fa;border-radius:8px;font-size:14px;line-height:1.5;color:#385560;font-weight:400}.ow-search-match strong{font-size:14px;color:#206076}.ow-detail #ow-label-form{padding-bottom:18px;border-bottom:1px solid #d5e4eb}.ow-detail #ow-label-form textarea{min-height:80px}

.om-comparison{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px;margin:16px 0}.om-comparison section{padding:16px;border:1px solid var(--border,#d8e5eb);border-radius:12px;overflow-wrap:anywhere}.om-comparison strong{display:block}.om-comparison .order-photo{width:100px;height:100px;object-fit:contain;margin-bottom:12px}.om-comparison h4{margin-top:0}.om-warning{font-size:14px;color:#825310}.om-candidates .ow-candidate{align-items:start}.om-candidates small{display:block}#ow-smart-matching{margin-top:20px}@media(max-width:760px){.om-comparison{grid-template-columns:1fr}}

/* Checkbox controls must not inherit the full-width dialog input layout. */
#dialog .ow-check{display:flex;align-items:flex-start;gap:10px;line-height:1.5}
#dialog .ow-check input[type=checkbox]{display:inline-block;flex:0 0 auto;width:18px;max-width:18px;height:18px;margin:3px 0 0;padding:0}
.om-blockers{margin:16px 0}.om-blockers summary{cursor:pointer}.om-blockers li{margin:5px 0}
