.cv-order-desk,.cv-order-desk *{box-sizing:border-box}.cv-order-desk{font:15px Arial,sans-serif;color:#173d31}.cv-order-desk h1{font-size:30px;margin:4px 0 10px}.cv-order-desk h2{font-size:23px;margin:0}.orders-heading,.orders-line{display:flex;align-items:center;justify-content:space-between;gap:10px}.orders-eyebrow{font-size:12px;font-weight:bold;letter-spacing:1.5px;color:#347c59}.orders-button{display:inline-block;background:#fff;border:1px solid #bdd8c6;border-radius:10px;padding:12px 16px;font:bold 14px Arial,sans-serif;color:#22583e;cursor:pointer;text-decoration:none;white-space:normal}.orders-primary{background:#16865b;color:#fff;border-color:#16865b}.orders-button:disabled{opacity:.5;cursor:wait}.cv-order-desk [hidden]{display:none!important}.orders-filters{display:flex;align-items:flex-end;flex-wrap:wrap;gap:10px;margin:18px 0}.orders-filters label{flex:1 1 130px}.orders-filters label:first-child{flex:2 1 220px}.cv-order-desk label{display:block;font-weight:bold}.cv-order-desk input:not([type=checkbox]),.cv-order-desk select{display:block;width:100%;min-height:44px;padding:10px;margin-top:6px;border:1px solid #bdd8c6;border-radius:9px;background:#fff;color:#173d31;font:15px Arial,sans-serif}.cv-order-desk select{height:44px;-webkit-appearance:none;appearance:none;padding-right:26px;background:#fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='m1 1 5 5 5-5' fill='none' stroke='%23173d31' stroke-width='2'/%3E%3C/svg%3E") no-repeat right 9px center}.orders-kpis{display:flex;gap:12px;margin:14px 0}.orders-kpis>div{flex:1;padding:16px;border:1px solid #d6e6da;border-radius:14px;background:#fff}.orders-kpis span,.orders-kpis strong{display:block}.orders-kpis strong{font-size:25px;margin-top:6px}.orders-layout{display:flex;gap:18px;align-items:flex-start}.orders-list{width:330px;flex:0 0 330px;max-height:75vh;overflow-y:auto}.orders-list-item{display:block;text-align:left;width:100%;margin-bottom:10px;border:1px solid #d2e5d8;border-radius:14px;background:#fff;padding:15px;cursor:pointer;color:#173d31;font:14px Arial,sans-serif;white-space:normal}.orders-list-item>strong,.orders-list-item>span{display:block;margin-bottom:6px}.orders-list-item .orders-line{display:flex}.orders-selected{border:2px solid #16865b;background:#eaf7ef}.orders-channel,.orders-payment{display:inline-block;padding:5px 9px;border-radius:12px;background:#e7f1fb;color:#216391;font-weight:bold;font-size:12px}.orders-payment{background:#fff1d6;color:#8e5c13}.orders-paid{background:#e2f4e7;color:#18764d}.orders-detail{flex:1;min-width:0;background:#fff;border:1px solid #d6e6da;border-radius:18px;padding:22px}.orders-cart{overflow-x:auto}.orders-cart table{width:100%;border-collapse:collapse}.orders-cart th,.orders-cart td{padding:12px 8px;border-bottom:1px solid #dce8df;text-align:left}.orders-cart th:last-child,.orders-cart td:last-child{text-align:right}.orders-cart td span{display:block;color:#64786a;font-size:13px;margin-top:5px}.orders-totals p{display:flex;justify-content:space-between;gap:12px}.orders-total{font-size:22px;font-weight:bold}.orders-transfer{padding:16px;background:#f5faf6;border:1px solid #d5e6d9;border-radius:14px;margin-top:20px}.orders-transfer label{margin:12px 0}.orders-proof{display:block;max-width:100%;max-height:360px;object-fit:contain;margin:14px auto}.cv-order-desk .orders-reviewed{display:flex;gap:10px;align-items:flex-start;line-height:1.4;font-weight:normal}.orders-reviewed input{width:20px;height:20px;flex:0 0 20px}.orders-status{min-height:22px;color:#397956}.orders-error{color:#ad2e31}.orders-actions{display:flex;gap:8px;margin:12px 0}@media(max-width:900px){.orders-layout{display:block}.orders-list{width:100%;max-height:320px;margin-bottom:18px}.orders-detail{width:100%}}@media(max-width:500px){.orders-heading{display:block}.orders-kpis{gap:6px}.orders-kpis>div{padding:10px}.orders-detail{padding:14px}.orders-kpis span{font-size:12px}.orders-filters label{flex-basis:45%}}

.orders-stage{flex:1;min-width:140px;text-align:left;border:1px solid #d5e6d9;border-top:5px solid #16865b;border-radius:12px;padding:14px;background:#fff;color:#173d31;cursor:pointer}.orders-stage strong{display:block;font-size:26px}.orders-stage-realizado{border-top:5px solid #5599d6}.orders-stage-verificacion{border-top:5px solid #f39b26}.orders-stage-verificado{border-top:5px solid #16865b}.orders-stage-entregado{border-top:5px solid #8073bc}.orders-pipeline-board{display:grid;grid-template-columns:repeat(4,minmax(210px,1fr));gap:12px;overflow-x:auto}.orders-column{padding:12px;border-radius:12px;background:#f1f7f2;min-width:210px}.orders-column h3{font-size:15px;margin:0 0 12px}.orders-layout{display:block}.orders-list{width:100%;max-height:none;margin-bottom:20px}.orders-detail{width:100%}.orders-duplicate{display:block;background:#fff2d9;color:#8d5312;padding:8px;border-radius:8px}.cv-order-desk textarea{width:100%;min-height:90px;padding:10px;border:1px solid #bdd8c6;border-radius:9px;font:15px Arial,sans-serif}.orders-preserve-lines{white-space:pre-wrap}.orders-reply{padding:12px;margin:10px 0;background:#f4f9f5;border:1px solid #d5e6d9;border-radius:10px}.orders-operator-row{display:flex;align-items:end;gap:10px;margin:12px 0}.orders-operator-row label{flex:1}.orders-kpis{flex-wrap:wrap}@media(max-width:500px){.orders-stage{min-width:40%}.orders-operator-row{display:block}}

/* Editable orders and pipeline controls. Drag only begins on the explicit handle. */
.orders-pipeline-board{display:flex;display:grid;max-width:100%;-webkit-overflow-scrolling:touch;padding-bottom:10px;align-items:stretch}.orders-column{flex:1 0 240px;min-height:180px;transition:background-color .15s,box-shadow .15s}.orders-list-item{position:relative;cursor:default;padding:12px;min-width:0}.orders-card-top{display:flex;align-items:center;gap:7px;min-height:42px}.orders-card-top .orders-channel{margin-left:auto}.orders-open,.orders-card-content{font:14px Arial,sans-serif;color:#173d31;border:0;background:none;padding:0;text-align:left;cursor:pointer}.orders-open{min-height:40px}.orders-card-content{display:block;width:100%;line-height:1.45}.orders-card-content>strong,.orders-card-content>span{display:block;margin-bottom:6px}.orders-card-content .orders-line{display:flex}.orders-drag-handle{border:1px solid #d4e4da;border-radius:8px;flex:0 0 44px;width:44px;height:44px;font:28px Arial,sans-serif;color:#366650;background:#f5faf6;cursor:grab;-webkit-user-select:none;user-select:none;touch-action:none;-webkit-touch-callout:none}.orders-drag-handle:active{cursor:grabbing}.orders-card-stage{font-size:12px;color:#5c7465;padding-top:8px;border-top:1px solid #e2ebe5}.cv-order-desk .orders-card-stage select{font-size:13px;margin-top:4px;padding:8px;min-height:44px}.orders-detail-stage{max-width:360px;margin-bottom:18px}.orders-drop-target{background:#dff2e6;box-shadow:inset 0 0 0 3px #16865b}.orders-drag-ghost{position:fixed!important;z-index:2147482000;pointer-events:none!important;opacity:.9;box-shadow:0 14px 32px rgba(10,46,31,.28);max-height:220px;overflow:hidden;transform:rotate(2deg);margin:0!important}.orders-drag-ghost *{pointer-events:none!important}.orders-danger{color:#a33132;border-color:#dfb7b9;background:#fff7f7}.orders-danger[type=submit]{background:#b23b3e;color:#fff;border-color:#b23b3e}.orders-edit-fields{display:flex;flex-wrap:wrap;gap:14px;margin:18px 0}.orders-edit-fields>label{flex:1 1 230px;min-width:0}.orders-edit-line{display:flex;align-items:flex-end;flex-wrap:wrap;gap:10px;padding:14px;margin:10px 0;border:1px solid #d6e6da;border-radius:12px;background:#f6faf7}.orders-edit-line label{flex:1 1 100px;min-width:0}.orders-edit-line .orders-edit-product{flex:3 1 250px}.orders-edit-product small{display:block;font-weight:normal;color:#61786a;margin-top:6px}.orders-edit-line-end{display:flex;align-items:center;justify-content:space-between;gap:12px;flex:1 1 150px;min-height:44px}.orders-edit-line-end strong{white-space:nowrap}.orders-edit-amounts>label{flex-basis:150px}.cv-order-desk button:focus-visible,.cv-order-desk select:focus-visible,.cv-order-desk input:focus-visible,.cv-order-desk textarea:focus-visible{outline:3px solid #1975a4;outline-offset:3px}.orders-detail>form>label{margin:16px 0}.orders-layout{min-width:0}.orders-list{max-width:100%;min-width:0}@media(max-width:600px){.orders-pipeline-board{grid-template-columns:repeat(4, minmax(255px, 78vw))}.orders-column{flex-basis:78vw;min-width:255px}.orders-edit-line .orders-edit-product{flex-basis:100%}.orders-edit-line>label:not(.orders-edit-product){flex-basis:40%}.orders-edit-line-end{flex-basis:100%}.orders-edit-fields>label{flex-basis:100%}.orders-edit-fields.orders-edit-amounts>label{flex-basis:40%}.orders-detail .orders-actions{flex-wrap:wrap}.orders-detail .orders-actions .orders-button{flex:1 1 130px}.orders-heading>div:last-child{display:flex;flex-wrap:wrap;gap:8px;margin-top:12px}.orders-heading>div:last-child .orders-button{flex:1 1 150px}.orders-status{line-height:1.4}.orders-detail h2{font-size:21px}.orders-card-content{font-size:15px}}

.cv-order-desk input:disabled,.cv-order-desk select:disabled,.cv-order-desk textarea:disabled{opacity:.65;cursor:wait}

/* The pipeline remains in the main area; selected orders open on its right. */
.orders-layout{display:block;position:relative}.orders-layout.orders-has-detail{display:flex;align-items:flex-start;gap:18px}.orders-layout .orders-list{flex:1 1 0;width:auto;min-width:0;margin-bottom:0}.orders-layout .orders-detail{flex:0 0 390px;width:390px;max-width:440px;min-width:360px;position:sticky;position:-webkit-sticky;top:12px;max-height:calc(100vh - 24px);overflow-y:auto;overflow-x:hidden;-webkit-overflow-scrolling:touch;overscroll-behavior:contain;padding:0;box-shadow:0 8px 24px rgba(16,58,40,.06)}.orders-panel-toolbar{display:flex;align-items:center;justify-content:space-between;gap:12px;position:sticky;position:-webkit-sticky;top:0;z-index:2;background:#fff;border-bottom:1px solid #dfebe3;padding:12px 18px;border-radius:17px 17px 0 0}.orders-panel-toolbar>strong{font-size:14px;color:#60776a}.orders-close{flex:0 0 44px;width:44px;height:44px;padding:0;background:#edf6f0;color:#24583e;border:1px solid #d4e6da;border-radius:10px;font:28px/1 Arial,sans-serif;cursor:pointer}.orders-close:hover{background:#deeee4}.orders-detail [data-orders-detail-content]{padding:20px}.orders-detail [data-orders-detail-content] h2{font-size:22px;line-height:1.25}.orders-detail [data-orders-detail-content] .orders-line{align-items:flex-start;flex-wrap:wrap}.orders-detail [data-orders-detail-content] .orders-edit-fields>label{flex-basis:100%}.orders-detail [data-orders-detail-content] .orders-edit-amounts>label{flex-basis:40%}.orders-detail [data-orders-detail-content] .orders-edit-line .orders-edit-product{flex-basis:100%}.orders-detail [data-orders-detail-content] .orders-edit-line-end{flex-basis:100%}.orders-detail [data-orders-detail-content] .orders-actions{flex-wrap:wrap}.orders-detail [data-orders-detail-content] .orders-actions>.orders-button{flex:1 1 120px}.orders-panel-status{margin:0;padding:12px 20px;background:#f4f9f5;font-size:14px;line-height:1.4}.orders-panel-status:empty{display:none}.orders-backdrop{position:fixed;inset:0;top:0;right:0;bottom:0;left:0;z-index:10040;background:rgba(10,36,26,.42)}
@media(min-width:1600px){.orders-layout .orders-detail{flex-basis:420px;width:420px}}
@media(max-width:1199px){.orders-layout.orders-has-detail{display:block}.orders-layout .orders-list{width:100%}.orders-layout .orders-detail{position:fixed;z-index:10050;top:0;right:0;bottom:0;width:430px;max-width:92vw;min-width:0;height:100%;max-height:100vh;border-radius:18px 0 0 18px;border-right:0;box-shadow:-12px 0 36px rgba(10,36,26,.2);padding-bottom:env(safe-area-inset-bottom)}.orders-panel-toolbar{border-top-right-radius:0}}
@media(max-width:600px){.orders-layout .orders-detail{width:100%;max-width:100%;height:100%;max-height:100%;border:0;border-radius:0}.orders-panel-toolbar{border-radius:0;padding-top:calc(10px + env(safe-area-inset-top))}.orders-detail [data-orders-detail-content]{padding:16px}.orders-detail [data-orders-detail-content] .orders-edit-line>label:not(.orders-edit-product){flex-basis:40%}.orders-detail [data-orders-detail-content] h2{font-size:21px}}

.orders-card-top{flex-wrap:wrap}.orders-card-top .orders-channel{max-width:100%;margin-left:0}.orders-card-top .orders-drag-handle{margin-left:auto}
