/* V0.6.1: photo-first order workbench. Scoped; storefront and business logic unchanged. */
.order-visual{max-width:none;font-family:Arial,Helvetica,sans-serif;--ot-line:#dce5e9;--ot-muted:#64747d}
.order-visual *{box-sizing:border-box;min-width:0}.order-visual [hidden]{display:none!important}
.order-visual .order-title{margin:0 0 18px}.order-visual .order-title h1{font-size:27px;letter-spacing:-.6px;margin:7px 0}.order-visual .order-title p{font-size:12px;margin:6px 0}.order-visual .eyebrow{font-size:10px;letter-spacing:1.6px}
.order-visual .panel{padding:18px;margin:0;border-radius:10px}.order-visual h2{font-size:17px;margin:0 0 14px}.order-visual h3{font-size:15px;margin:0 0 12px}
.order-visual .panel-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;padding-bottom:14px;margin-bottom:14px;border-bottom:1px solid var(--ot-line)}.order-visual .panel-heading h2{margin:0}
.order-visual .order-kpis{gap:10px;margin-bottom:16px}.order-visual .order-kpis>div{padding:12px 15px;border-radius:8px}.order-visual .order-kpis strong{font-size:22px;margin-top:4px}.order-visual .order-kpis small{font-size:12px}
.order-visual .order-edit-grid{display:block}.order-visual .visual-layout{display:grid;grid-template-columns:minmax(340px,.38fr) minmax(0,.62fr);gap:16px;align-items:start}
.order-visual .fields{gap:8px 14px;grid-template-columns:repeat(2,minmax(0,1fr))}.order-visual label{font-size:12px;font-weight:600;display:block;margin:0 0 10px}.order-visual label small{font-size:11px;font-weight:400;display:block;margin:4px 0}
.order-visual input,.order-visual select,.order-visual textarea{font-family:inherit;font-size:14px;font-weight:400;min-height:40px;border:1px solid #cbd9d5;border-radius:5px;padding:9px 10px;margin:5px 0 0}.order-visual textarea{min-height:65px;line-height:1.5}.order-visual input[readonly]{background:#f5f7f7;color:#52636c}
.order-visual button,.order-visual .button{font:600 13px Arial,Helvetica,sans-serif;min-height:40px;padding:9px 12px;border-radius:5px}.order-visual .read-facts{display:flex;justify-content:space-between;gap:10px;flex-wrap:wrap;font-size:11px;background:#f5f7f8;padding:10px;margin:3px 0 14px}.order-visual .read-facts b{display:block;font-size:12px;margin-top:4px}
.order-visual .product-table-heading,.order-visual .photo-order-line{display:grid;grid-template-columns:minmax(190px,1fr) 80px 94px 60px 88px 32px;gap:9px;align-items:start}
.order-visual .product-table-heading{font-size:11px;font-weight:700;background:#f2f6f5;border-bottom:1px solid var(--ot-line);padding:11px 0}.order-visual .product-table-heading span:first-child{padding-left:8px}
.order-visual .photo-order-line{padding:14px 0;border-bottom:1px solid var(--ot-line);margin:0}.order-visual .photo-order-line label{margin:0}.order-visual .photo-order-line select,.order-visual .photo-order-line input{margin:0;font-size:13px;width:100%;padding:8px;min-height:38px}
.order-visual .photo-order-line .line-product{display:flex;gap:10px;align-items:start}.line-product-info{flex:1;min-width:0}.order-visual .line-product-info [data-product-filter]{font-size:12px;min-height:30px;margin-bottom:5px;background:#fbfcfc}
.order-visual .enhanced-select>label{display:block}.order-visual .selected-product-name{display:block;font-size:12px;margin-top:8px;line-height:1.35;overflow-wrap:anywhere}.order-visual .line-sku,.order-visual [data-line-info]{font-size:10px;margin-top:4px;line-height:1.4;overflow-wrap:anywhere}.order-visual .photo-editor-ready .native-variant,.order-visual.photo-editor-ready .native-variant{display:none}
.order-visual .mobile-field-label{display:block;font-size:11px;margin-bottom:5px}.order-visual.photo-editor-ready .photo-order-line .mobile-field-label{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
.order-visual .photo-order-line>.remove-line{margin:0;min-height:36px;padding:5px;font-size:22px;color:#a43b32;border-color:#e9ccc7;background:white}.order-visual .remove-line:disabled{opacity:.35;cursor:default}
.order-visual .line-price{padding-top:8px;font-size:13px;text-align:right;line-height:1.4}.order-visual .line-price small{display:block;font-size:10px;margin-top:5px;overflow-wrap:anywhere}.order-visual .photo-note,.order-visual .save-note{font-size:11px;color:#63747a;line-height:1.5;margin:12px 0}
.order-photo{display:flex;position:relative;flex:none;align-items:center;justify-content:center;width:72px;height:88px;border:1px solid #dde5e4;border-radius:6px;background:#f6f8f7;overflow:hidden;text-decoration:none!important}.order-photo img{display:block;width:100%;height:100%;object-fit:contain}.order-photo .photo-fallback{display:none;text-align:center;padding:6px;font:11px/1.35 Arial,sans-serif;color:#6a7d78}.order-photo.is-missing img{display:none}.order-photo.is-missing .photo-fallback{display:block}.order-photo:focus-visible{outline:3px solid #57857b;outline-offset:2px}
.order-visual .order-money-layout{display:grid;grid-template-columns:minmax(0,1fr) minmax(225px,1fr);gap:25px;margin-top:20px}.order-visual .order-charge-settings p,.order-visual .payment-note p{font-size:11px;line-height:1.5}.order-visual .payment-note{padding:12px;border:1px dashed #c9dcd3;border-radius:6px;background:#f8fbfa;font-size:12px}.order-visual .payment-note a{font-weight:bold;color:#205b45;text-decoration:underline}.order-visual .order-totals{position:static;padding:0;background:transparent;box-shadow:none;border:0}.order-visual #order-preview-status{font-size:12px;min-height:44px;border-radius:5px}
.order-visual .money-lines{margin:10px 0 0}.order-visual .money-lines>div{font-size:13px;gap:8px;margin:10px 0}.order-visual .money-lines .grand{font-size:14px;padding-top:10px}.order-visual .money-lines .cod-total{background:#edf5f0;padding:12px;border-radius:5px;color:#1c513f;font-size:16px}
.order-visual .review-actions{display:grid;grid-template-columns:1fr 1.4fr;gap:10px;margin-top:16px}.order-visual .review-actions button{min-height:44px}.order-visual .save-note{margin-bottom:0}
.order-visual .order-support-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;margin-top:16px;align-items:start}.order-visual .order-support-grid>.panel{margin:0}.order-visual .support-advances{grid-column:1/-1}.order-visual .order-support-grid p{font-size:12px;line-height:1.55}.order-visual .tablewrap{overflow:auto}.order-visual .tablewrap table{font-size:12px;min-width:500px}.order-visual .tablewrap td,.order-visual .tablewrap th{padding:10px 8px}.order-visual .support-customer h3{margin-top:22px}.order-visual .support-customer a{font-weight:bold;text-decoration:underline;color:#205b45}.order-visual .no-history{border:1px dashed #d6e0dc;border-radius:6px;background:#f7faf8;padding:14px;color:#6b7770;font-size:13px}.order-visual #advances{scroll-margin-top:20px}
.order-visual .history-entry{padding:10px 12px;margin:12px 0}.order-visual .history-entry p{margin:6px 0}.order-visual .order-support-grid summary{font-size:12px}.order-visual .order-support-grid .inline label{min-width:120px}
.order-list-product{display:flex;align-items:center;gap:10px;margin-bottom:8px;min-width:230px}.order-list-product>div{min-width:0;max-width:250px}.order-list-product .list-photo{width:48px;height:58px}.order-list-product .photo-fallback{font-size:9px}
.order-image-dialog{width:min(760px,calc(100vw - 32px));max-width:760px;max-height:92vh;border:0;border-radius:12px;padding:16px;box-shadow:0 24px 100px #0005;overflow:auto;background:white;color:#172a38}.order-image-dialog::backdrop{background:#0f222bd4}.image-dialog-head{display:flex;justify-content:space-between;align-items:center;gap:12px}.image-dialog-head h2{font:700 17px Arial,sans-serif;margin:0}.order-image-dialog img{display:block;width:100%;height:min(67vh,650px);object-fit:contain;background:#f7f8f6;border-radius:8px;margin-top:12px}.order-image-dialog p{font:12px/1.5 Arial,sans-serif;color:#62766b;margin:12px 0 0}.order-image-dialog button{font:600 13px Arial,sans-serif;border:1px solid #205b45;background:white;color:#205b45;padding:8px 14px;border-radius:6px;min-height:40px}
@media(min-width:1650px){.order-visual .product-table-heading,.order-visual .photo-order-line{grid-template-columns:minmax(240px,1fr) 92px 110px 68px 95px 34px}.order-visual .order-money-layout{gap:40px}}
@media(max-width:1250px){.order-visual .visual-layout{grid-template-columns:1fr}.order-visual .customer-panel .fields{grid-template-columns:repeat(2,minmax(0,1fr))}.order-visual .order-support-grid{grid-template-columns:1fr}.order-visual .support-advances{grid-column:auto}}
@media(max-width:700px){.order-visual .panel{padding:14px}.order-visual input,.order-visual select,.order-visual textarea{font-size:16px;min-height:44px}.order-visual .order-title{display:block}.order-visual .order-title h1{font-size:24px}.order-visual .order-title .inline{margin-top:12px}.order-visual .order-kpis{grid-template-columns:repeat(2,minmax(0,1fr))}.order-visual .order-kpis strong{font-size:20px}.order-visual .order-title .button{font-size:12px}.order-visual .product-table-heading{display:none}.order-visual .photo-order-line{grid-template-columns:minmax(0,1fr) minmax(0,1fr) 50px;gap:10px;background:#fafcfb;padding:12px;border:1px solid var(--ot-line);border-radius:8px;margin-bottom:12px}.order-visual .line-product{grid-column:1/-1}.order-visual .photo-order-line .line-size{grid-column:1}.order-visual .photo-order-line .line-color{grid-column:2/4}.order-visual .photo-order-line .line-quantity{grid-column:1}.order-visual .photo-order-line .line-price{grid-column:2;text-align:left;align-self:center;padding:0}.order-visual .line-price::before{content:'Unit price';display:block;font-size:11px;color:#65766d;margin-bottom:4px}.order-visual .photo-order-line>.remove-line{grid-column:3;align-self:center;margin-top:16px;min-height:44px}.order-visual.photo-editor-ready .photo-order-line .mobile-field-label{position:static;width:auto;height:auto;clip:auto;margin:0 0 5px;overflow:visible;white-space:normal}.order-visual .photo-order-line input,.order-visual .photo-order-line select{font-size:16px;min-height:44px}.order-visual .line-product-info [data-product-filter]{font-size:16px;min-height:40px}.order-visual .order-money-layout{grid-template-columns:1fr;gap:18px}.order-visual .review-actions{grid-template-columns:1fr}.order-visual .review-actions button{font-size:14px;min-height:46px}.order-visual .support-customer .tablewrap table{min-width:540px}.order-visual .fields,.order-visual .customer-panel .fields{grid-template-columns:1fr}.order-visual .order-support-grid .inline{display:block}.order-visual .order-support-grid .inline button{width:100%;margin-top:8px}.order-visual .panel-heading{flex-wrap:wrap}.order-visual .photo-order-line .native-variant select{max-width:100%}.order-visual details form{min-width:0}}
@media print{.order-visual .review-actions,.order-image-dialog{display:none!important}}
