/* Cambios acotados a las tres áreas solicitadas. */
.cg-work-20261021 body[data-cg-view="ventas"] .card:has(>#form)>.card-head::after{left:20px!important;right:20px!important;width:auto!important;height:1px!important;border-radius:0!important;background:#f58220!important;animation:none!important;box-shadow:none!important}
.cg-work-20261021 body[data-cg-view="ventas"] .cg-catalog-combo{min-width:0!important;isolation:isolate;border-radius:10px}
.cg-work-20261021 body[data-cg-view="ventas"] .cg-catalog-combo>input{width:100%!important;min-width:0!important;box-sizing:border-box!important;padding:12px 42px 12px 12px!important;animation:none!important;transition:none!important;transform:none!important;text-overflow:ellipsis}
.cg-work-20261021 body[data-cg-view="ventas"] .cg-catalog-arrow{position:absolute!important;inset:4px 4px 4px auto!important;width:32px!important;min-width:32px!important;min-height:0!important;height:auto!important;margin:0!important;padding:0!important;border:0!important;background:transparent!important;color:#64748b!important;box-shadow:none!important;transform:none!important;animation:none!important;font-size:0!important;border-radius:7px!important}
.cg-work-20261021 body[data-cg-view="ventas"] .cg-catalog-arrow::before{content:""!important;display:block!important;position:absolute;left:12px;top:calc(50% - 4px);width:6px;height:6px;border:solid currentColor;border-width:0 1.5px 1.5px 0;transform:rotate(45deg)!important}
.cg-work-20261021 body[data-cg-view="ventas"] .cg-catalog-arrow::after,.cg-work-20261021 body[data-cg-view="ventas"] .cg-catalog-combo::after,.cg-work-20261021 body[data-cg-view="ventas"] .cg-catalog-combo::before{display:none!important}
.cg-work-20261021 body[data-cg-view="ventas"] .cg-catalog-combo:focus-within{outline:none!important;box-shadow:none!important}
.cg-work-20261021 body[data-cg-view="ventas"] .cg-catalog-combo>input:focus{outline:0!important;box-shadow:inset 0 0 0 1px #f58220!important;border-color:#f58220!important}
.cg-work-20261021 body[data-cg-view="ventas"] .cg-catalog-arrow:focus-visible{outline:0!important;box-shadow:inset 0 0 0 1px #f58220!important}
.cg-work-20261021 .cg-catalog-list [role="option"]{display:flex!important;gap:12px!important;justify-content:space-between!important;align-items:flex-start!important}
.cg-work-20261021 .cg-catalog-list [role="option"] strong{min-width:0!important;white-space:normal!important;overflow-wrap:anywhere!important}
.cg-work-20261021 .cg-catalog-list [role="option"] small{flex:none!important;white-space:nowrap!important}
.cg-work-20261021 body:is([data-cg-view="ventas"],[data-cg-view="produccion"]) header{display:flex!important;align-items:center!important;flex-wrap:wrap!important;gap:16px!important}
.cg-work-20261021 body:is([data-cg-view="ventas"],[data-cg-view="produccion"]) header .cg-options-menu{order:8!important;position:relative!important;margin:0 0 0 auto!important;flex:0 0 auto!important;align-self:center!important}
.cg-work-20261021 body:is([data-cg-view="ventas"],[data-cg-view="produccion"]) header .cg-session-area{order:9!important;margin:0!important;flex:0 0 auto!important;width:auto!important}
.cg-work-20261021 body:is([data-cg-view="ventas"],[data-cg-view="produccion"]) header .cg-avatar{display:flex!important;align-items:center!important;justify-content:center!important;width:36px!important;height:36px!important;min-width:36px!important;flex:0 0 36px!important;border-radius:11px!important;background:#fff0e3!important;color:#a9470b!important;font:600 12px Inter,system-ui,sans-serif!important;box-shadow:none!important;border:0!important}
.cg-work-20261021 header .cg-options-items :is(#cgMisReportesAbrir,[data-cg-report-builder]){width:100%!important;max-width:100%!important;box-sizing:border-box!important;margin:0!important;min-height:40px!important;padding:10px 12px!important;justify-content:flex-start!important;text-align:left!important;background:transparent!important;color:#334155!important;border:0!important;border-radius:7px!important;font:500 13px Inter,system-ui,sans-serif!important}
.cg-work-20261021 .cg-options-items .cg-work-alarm{display:flex!important;flex-direction:column!important;align-items:stretch!important;gap:8px!important;width:100%!important;min-width:0!important;margin:0!important;padding:8px 0!important;border:0!important;border-radius:0!important;box-shadow:none!important;background:transparent!important}
.cg-work-20261021 .cg-work-alarm .cg-alerta-hoy-info{min-width:0!important;flex:auto!important}.cg-work-alarm .cg-alerta-hoy-info strong{font-size:12px!important}.cg-work-alarm .cg-alerta-hoy-info small{font-size:11px!important}
.cg-work-20261021 #cgChecklistPanel .cg-report-actions{display:flex!important;flex-wrap:wrap!important;gap:10px!important;margin-top:18px!important;margin-bottom:12px!important;align-items:center!important}
.cg-work-20261021 #cgChecklistPanel .cg-report-actions button{min-height:44px!important;margin:0!important;padding:11px 16px!important;font-size:13px!important;line-height:1.3!important;flex:0 1 auto!important}
.cg-work-20261021 #cgReporteEstado{margin:10px 0 0!important;font-size:12px!important}
.cg-work-20261021 body[data-cg-view="oficina"] .kpis{display:flex!important;flex-wrap:wrap!important;gap:8px!important;margin:14px 0 8px!important}
.cg-work-20261021 body[data-cg-view="oficina"] .kpi{display:flex!important;align-items:center!important;gap:10px!important;flex:1 1 190px!important;min-height:0!important;padding:10px 13px!important;border:1px solid #e1e8e3!important;border-radius:9px!important;background:white!important;box-shadow:none!important}
.cg-work-20261021 body[data-cg-view="oficina"] .kpi span{font-size:12px!important;line-height:1.4!important}.cg-work-20261021 body[data-cg-view="oficina"] .kpi strong{font-size:19px!important;margin:0 0 0 auto!important;line-height:1.2!important}
.cg-work-20261021 body[data-cg-view="oficina"] .kpi small{display:none!important}
.cg-work-20261021 #cgOficinaCantidades .cg-qty-cards{display:flex!important;flex-wrap:wrap!important;gap:8px!important;margin:0!important}
.cg-work-20261021 #cgOficinaCantidades .cg-qty-cards>article{display:flex!important;align-items:center!important;gap:12px!important;flex:1 1 250px!important;min-height:0!important;padding:10px 13px!important;border:1px solid #e1e8e3!important;border-radius:9px!important;background:white!important;box-shadow:none!important}
.cg-work-20261021 #cgOficinaCantidades article>span{font-size:12px!important}.cg-work-20261021 #cgOficinaCantidades article>strong{font-size:18px!important;margin:0 0 0 auto!important;line-height:1.2!important}.cg-work-20261021 #cgOficinaCantidades article>small{display:none!important}.cg-work-20261021 #cgOficinaCantidades .cg-qty-note{font-size:10px!important;margin:5px 0 12px!important}
.cg-work-20261021 .office-filter-actions{display:flex!important;align-items:center!important;flex-wrap:wrap!important;gap:10px!important}
.cg-work-20261021 #cgTarifasConsulta{margin:12px 0!important}.cg-work-20261021 .heading-actions{gap:8px!important}
.cg-work-20261021 .office-heading{display:flex!important;flex-wrap:wrap!important;align-items:flex-start!important;gap:16px!important}.cg-work-20261021 .office-heading>div:first-child{flex:1 1 420px!important;min-width:0!important}.cg-work-20261021 .office-heading .heading-actions{flex:0 1 auto!important;flex-wrap:wrap!important}
.cg-work-20261021 .cg-production-actions{display:flex!important;flex-wrap:wrap!important;align-items:center!important;gap:8px!important}.cg-work-20261021 #cgCustomLabelOpen{min-height:44px!important;white-space:normal!important}
body dialog.cg-work-dialog{position:fixed!important;inset:0!important;margin:auto!important;width:min(1000px,calc(100vw - 28px))!important;max-width:calc(100vw - 28px)!important;max-height:calc(100dvh - 32px)!important;height:auto!important;min-width:0!important;padding:0!important;border:1px solid #dfe7e3!important;border-radius:18px!important;background:#fff!important;color:#253b32!important;box-shadow:0 30px 100px #142b3940!important;font:14px Inter,system-ui,sans-serif!important;overflow:auto!important}
body dialog.cg-work-dialog:not([open]){display:none!important}body dialog.cg-work-dialog::backdrop{background:#10251e80;backdrop-filter:blur(3px)}body dialog.cg-work-order-dialog{width:min(760px,calc(100vw - 28px))!important}
.cg-work-dialog-head{position:sticky;top:0;z-index:2;display:flex;align-items:center;gap:16px;padding:20px 24px;border-bottom:1px solid #e5ebe7;background:#fff}
.cg-work-dialog-head>div{flex:1;min-width:0}.cg-work-dialog-head h2{font:650 21px/1.3 Inter,system-ui,sans-serif!important;margin:4px 0 0!important;overflow-wrap:anywhere}.cg-work-eyebrow{color:#a75b20;font-size:10px;letter-spacing:.1em;font-weight:700}
body .cg-work-dialog button{font:600 13px/1.35 Inter,system-ui,sans-serif!important;min-height:40px!important;min-width:40px;padding:9px 13px!important;border:1px solid #dbe5df!important;border-radius:9px!important;background:#fff;color:#24513f;cursor:pointer;box-shadow:none!important}
body .cg-work-dialog button:disabled{opacity:.45;cursor:not-allowed}.cg-work-dialog-head>[data-close]{font-size:22px!important;padding:6px 12px!important}.cg-work-dialog-body{padding:22px 24px}.cg-work-dialog input,.cg-work-dialog select,.cg-work-dialog textarea{box-sizing:border-box!important;max-width:100%!important;min-width:0!important;width:100%;font:14px/1.4 Inter,system-ui,sans-serif!important;border:1px solid #d9e2dc!important;border-radius:8px!important;padding:10px!important;background:#fff!important;color:#253b32!important;min-height:42px}
.cg-work-dialog label{display:grid;gap:6px;font-size:12px;font-weight:600;color:#5c7065}.cg-work-dialog h3{font-size:14px;margin:20px 0 10px}.cg-work-dialog p{line-height:1.6}.cg-work-dialog [hidden]{display:none!important}.cg-work-dialog input[type="checkbox"]{width:16px!important;min-height:16px!important;height:16px!important;padding:0!important}
.cg-work-order-meta{display:flex;flex-wrap:wrap;gap:8px;margin:14px 0}.cg-work-order-meta span{padding:6px 9px;border-radius:6px;background:#f0f5f2;font-size:12px}.cg-work-products{display:grid;gap:8px;margin:20px 0}.cg-work-products>div{padding:13px;border-left:3px solid #f58220;border-radius:6px;background:#f8faf8;display:flex;justify-content:space-between;gap:12px}.cg-work-products span{color:#5d7064;font-size:13px}.cg-work-notes{white-space:pre-wrap;overflow-wrap:anywhere}
.cg-work-beta{display:inline-flex;align-items:center;padding:3px 7px;border-radius:5px;background:#fff0df;color:#9a4d13;font-size:10px;font-weight:700;letter-spacing:.06em}.cg-work-muted{font-size:12px;color:#687c71}.cg-work-beta-note{font-size:12px;color:#8b541d;background:#fff8ef;border:1px solid #f0dfc8;padding:9px 12px;border-radius:8px}
.cg-order-prices>summary{display:flex;align-items:center;justify-content:space-between;gap:12px;cursor:pointer;font-size:13px;font-weight:600;list-style:none}.cg-order-prices>summary::after{content:'⌄';font-size:18px;color:#698074}.cg-order-prices[open]>summary{margin-bottom:12px}.cg-order-prices[open]>summary::after{content:'⌃'}.cg-order-prices>summary::-webkit-details-marker{display:none}
@media(max-width:780px){.cg-work-20261021 body[data-cg-view="ventas"] #form .row2:has(.cg-catalog-combo){grid-template-columns:1fr!important;gap:14px!important}.cg-work-20261021 body:is([data-cg-view="ventas"],[data-cg-view="produccion"]) header{gap:10px!important;padding:12px!important}.cg-work-20261021 body:is([data-cg-view="ventas"],[data-cg-view="produccion"]) header .cg-session-area{flex:1 1 auto!important}.cg-work-20261021 body:is([data-cg-view="ventas"],[data-cg-view="produccion"]) header .cg-options-menu{margin-left:auto!important}.cg-work-20261021 #cgChecklistPanel .cg-report-actions button{flex:1 1 160px!important}.cg-work-dialog-head{padding:16px}.cg-work-dialog-body{padding:16px}.cg-work-products>div{flex-direction:column;gap:5px}.cg-work-20261021 body[data-cg-view="oficina"] .kpi{flex-basis:140px!important}}
@media(prefers-reduced-motion:reduce){.cg-work-dialog *{scroll-behavior:auto!important}}

.cg-account-customer{display:grid;grid-template-columns:1fr 1.4fr;gap:14px;margin-top:18px}.cg-account-totals{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;margin:18px 0}.cg-account-totals>div{padding:14px;background:#f6f9f7;border:1px solid #e1e8e4;border-radius:10px;display:grid;gap:8px;min-width:0}.cg-account-totals span{font-size:11px;color:#61766a}.cg-account-totals strong{font-size:22px;overflow-wrap:anywhere;font-variant-numeric:tabular-nums}.cg-account-totals .cg-account-balance{background:#edf6f0;border-color:#bcd7c6}.cg-account-filtered{margin:12px 0}.cg-account-filtered>div{padding:9px 12px;background:#fff}.cg-account-filtered strong{font-size:16px}.cg-account-filters{display:grid;grid-template-columns:1.4fr 1fr 1fr 1.2fr;gap:10px;border-top:1px solid #e0e8e3;padding-top:20px;margin-top:22px}.cg-account-filters>div{grid-column:1/-1;display:flex;gap:8px;flex-wrap:wrap}.cg-account-table-scroll{overflow:auto;border:1px solid #e2e9e4;border-radius:10px}.cg-account-table{width:100%;border-collapse:collapse;min-width:740px;font-size:12px}.cg-account-table th{background:#f3f7f4;color:#667b6e;font-size:10px;text-transform:uppercase;letter-spacing:.04em;padding:12px;text-align:left}.cg-account-table td{padding:12px;border-top:1px solid #e6ece8;vertical-align:top;line-height:1.5;font-variant-numeric:tabular-nums}.cg-account-table td:nth-child(n+3):nth-child(-n+5){white-space:nowrap}.cg-account-table small{display:block;color:#788a80;font-size:10px;margin-top:4px}.cg-account-table .cg-account-amount{font-weight:700}.cg-account-table details>summary{cursor:pointer;color:#1d6a4c}.cg-account-payments{list-style:none;margin:8px 0;padding:0;min-width:200px}.cg-account-payments li{padding:8px 0;border-bottom:1px solid #e8ede9}.cg-account-payments strong{font-size:11px}.cg-account-paging{display:flex;align-items:center;gap:8px;margin-top:14px;font-size:12px}.cg-account-paging>span{margin-right:auto}#cgAccountError,#cgLabelError{color:#a13c20;font-size:12px;white-space:pre-wrap}.cg-label-layout{display:grid;grid-template-columns:minmax(290px,1fr) minmax(290px,1.15fr);min-height:400px}.cg-label-controls{padding:20px;border-right:1px solid #e4ebe6;max-height:calc(100dvh - 160px);overflow:auto}.cg-label-controls details{margin:20px 0;padding:12px;border:1px solid #dce6df;border-radius:9px}.cg-label-controls details>summary{cursor:pointer;font-size:13px;font-weight:600;margin-bottom:10px}.cg-label-controls details label{margin:8px 0}.cg-label-setup{display:grid;gap:12px}.cg-label-setup h3{margin:0!important}.cg-label-pair{display:grid;grid-template-columns:1fr 1fr;gap:10px}.cg-label-check{display:flex!important;align-items:center;gap:10px!important}.cg-label-field{border:1px solid #e1e8e3;border-radius:10px;padding:12px;margin:10px 0}.cg-label-field-head{display:flex;justify-content:space-between;align-items:center;gap:8px;margin-bottom:9px}.cg-label-field-head>label{display:flex!important;align-items:center;gap:8px;font-size:12px}.cg-label-field-head>div{display:flex;gap:5px}.cg-label-field-head button{padding:4px!important;min-height:30px!important;min-width:30px!important}.cg-label-type-controls{display:grid;grid-template-columns:1fr 1.5fr;gap:8px;margin-top:8px}.cg-label-preview{padding:20px;background:#f5f7f5;min-width:0;position:sticky;top:0;align-self:start}.cg-label-preview-head{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:18px}.cg-label-preview-head h3{margin:0!important}.cg-label-preview-head span{font-size:11px;color:#6c7b72}#cgLabelPreviewStage{display:flex;justify-content:center;align-items:flex-start;min-height:220px;padding:16px 0;border:1px dashed #ced9d0;background:#e9eeea;border-radius:10px;overflow:auto}#cgLabelPreviewSizer{position:relative;flex:none}.cg-custom-label-paper{box-sizing:border-box;width:100mm;height:50mm;padding:3mm;transform-origin:top left;background:#fff;color:#000;box-shadow:0 5px 20px #16312520;overflow:hidden;display:flex;flex-direction:column;gap:1.6mm;font-family:Arial,sans-serif}.cg-custom-label-line{line-height:1.15;white-space:pre-wrap;overflow-wrap:anywhere;flex-shrink:0}.cg-custom-label-line span{display:block;font-size:.58em;font-weight:400;margin-bottom:.4mm}.cg-custom-label-line strong{font-weight:700}.cg-custom-label-logo{height:8mm;max-width:35mm;object-fit:contain;object-position:left;align-self:flex-start;flex-shrink:0}#cgLabelPrint{background:#f58220!important;color:white!important;border-color:#f58220!important;width:100%;margin-top:10px}
@media(max-width:780px){.cg-account-customer{grid-template-columns:1fr}.cg-account-filters{grid-template-columns:1fr 1fr}.cg-account-totals{gap:6px}.cg-account-totals>div{padding:10px}.cg-account-totals strong{font-size:17px}.cg-account-totals span{font-size:10px}.cg-label-layout{grid-template-columns:1fr}.cg-label-controls{max-height:none;border-right:0}.cg-label-preview{position:static;border-top:1px solid #dfe7e1}.cg-account-paging{flex-wrap:wrap}}

@media(max-width:600px){.cg-account-totals{grid-template-columns:1fr}.cg-account-totals>div{display:flex;justify-content:space-between;align-items:center;gap:12px;padding:10px 12px}.cg-account-totals strong{font-size:18px;white-space:nowrap}.cg-account-totals span{font-size:11px}.cg-label-preview{order:-1}.cg-label-layout{display:flex;flex-direction:column}}

/* Ventas: alineación y superficies neutras; BETA verde. */
body[data-cg-view="ventas"] details.cg-filter-panel{margin-top:0!important;background:#fff!important}
body[data-cg-view="ventas"] details.cg-filter-panel>.cg-filter-toggle{background:#fff!important}
body[data-cg-view="ventas"] .cg-filter-badge{background:#f1f3f5!important;color:#475569!important}
body[data-cg-view="ventas"] .cg-order-prices{background:#fff!important;border-color:#e2e8e5!important}
body[data-cg-view="ventas"] .cg-order-prices>summary{justify-content:flex-start;gap:8px;flex-wrap:wrap}
body[data-cg-view="ventas"] .cg-order-prices>summary::after{margin-left:auto}
body[data-cg-view="ventas"] .cg-order-prices .cg-work-beta{background:#e7f4ec!important;color:#176b45!important;border:1px solid #c1dec9;border-radius:6px;padding:2px 7px;font-size:10px;line-height:1.4;white-space:nowrap;flex:none;letter-spacing:.04em}

/* Acciones de pedido: estilo estable por función, nunca por posición. */
body[data-cg-view="ventas"] .order .cg-order-actions,body[data-cg-view="ventas"] .order .cg-attachment-actions{display:flex!important;flex-wrap:wrap!important;align-items:center!important;gap:8px!important}
body[data-cg-view="ventas"] .order .cg-order-actions button,body[data-cg-view="ventas"] .order .cg-attachment-actions button{display:inline-flex!important;align-items:center!important;justify-content:center!important;gap:7px!important;min-height:40px!important;padding:9px 12px!important;border-radius:9px!important;border:1px solid #d6dedb!important;background:#fff!important;color:#334b40!important;font-family:inherit!important;font-size:12px!important;font-weight:600!important;line-height:1.3!important;box-shadow:none!important;cursor:pointer;transform:none!important;animation:none!important}
body[data-cg-view="ventas"] .order [data-work-view-order]{background:#176b50!important;color:#fff!important;border-color:#176b50!important}
body[data-cg-view="ventas"] .order button[onclick^="cancelarPedido"]{color:#a63332!important;border-color:#e6bfbd!important;background:#fff!important}
body[data-cg-view="ventas"] .order .cg-order-actions button:hover,body[data-cg-view="ventas"] .order .cg-attachment-actions button:hover{filter:brightness(.95)}
body[data-cg-view="ventas"] .order .cg-order-actions button:focus-visible,body[data-cg-view="ventas"] .order .cg-attachment-actions button:focus-visible{outline:2px solid #f58220!important;outline-offset:3px}
body[data-cg-view="ventas"] .order [data-work-view-order]::before{content:""!important;display:inline-block!important;width:16px!important;height:16px!important;flex:0 0 16px;background:currentColor!important;-webkit-mask:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22black%22%20stroke-width%3D%221.8%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22M2%2012s3.5-7%2010-7%2010%207%2010%207-3.5%207-10%207S2%2012%202%2012Z%22%2F%3E%3Ccircle%20cx%3D%2212%22%20cy%3D%2212%22%20r%3D%223%22%2F%3E%3C%2Fsvg%3E") center/contain no-repeat;mask:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22black%22%20stroke-width%3D%221.8%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22M2%2012s3.5-7%2010-7%2010%207%2010%207-3.5%207-10%207S2%2012%202%2012Z%22%2F%3E%3Ccircle%20cx%3D%2212%22%20cy%3D%2212%22%20r%3D%223%22%2F%3E%3C%2Fsvg%3E") center/contain no-repeat}
body[data-cg-view="ventas"] .order button[onclick^="editarPedido"]::before{content:""!important;display:inline-block!important;width:16px!important;height:16px!important;flex:0 0 16px;background:currentColor!important;-webkit-mask:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22black%22%20stroke-width%3D%221.8%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22m15%205%204%204M4%2020l4-1%2012-12a2.8%202.8%200%200%200-4-4L4%2015l-1%206Z%22%2F%3E%3C%2Fsvg%3E") center/contain no-repeat;mask:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22black%22%20stroke-width%3D%221.8%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22m15%205%204%204M4%2020l4-1%2012-12a2.8%202.8%200%200%200-4-4L4%2015l-1%206Z%22%2F%3E%3C%2Fsvg%3E") center/contain no-repeat}
body[data-cg-view="ventas"] .order button[onclick^="cancelarPedido"]::before{content:""!important;display:inline-block!important;width:16px!important;height:16px!important;flex:0 0 16px;background:currentColor!important;-webkit-mask:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22black%22%20stroke-width%3D%221.8%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Ccircle%20cx%3D%2212%22%20cy%3D%2212%22%20r%3D%229%22%2F%3E%3Cpath%20d%3D%22m9%209%206%206m0-6-6%206%22%2F%3E%3C%2Fsvg%3E") center/contain no-repeat;mask:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22black%22%20stroke-width%3D%221.8%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Ccircle%20cx%3D%2212%22%20cy%3D%2212%22%20r%3D%229%22%2F%3E%3Cpath%20d%3D%22m9%209%206%206m0-6-6%206%22%2F%3E%3C%2Fsvg%3E") center/contain no-repeat}
body[data-cg-view="ventas"] .order [data-cg-attachment-upload]::before{content:""!important;display:inline-block!important;width:16px!important;height:16px!important;flex:0 0 16px;background:currentColor!important;-webkit-mask:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22black%22%20stroke-width%3D%221.8%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22m8%2012%206-6a3%203%200%200%201%204%204l-8%208a5%205%200%200%201-7-7l8-8m-5%2012%209-9%22%2F%3E%3C%2Fsvg%3E") center/contain no-repeat;mask:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22black%22%20stroke-width%3D%221.8%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22m8%2012%206-6a3%203%200%200%201%204%204l-8%208a5%205%200%200%201-7-7l8-8m-5%2012%209-9%22%2F%3E%3C%2Fsvg%3E") center/contain no-repeat}
body[data-cg-view="ventas"] .order [data-cg-attachment-list]::before{content:""!important;display:inline-block!important;width:16px!important;height:16px!important;flex:0 0 16px;background:currentColor!important;-webkit-mask:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22black%22%20stroke-width%3D%221.8%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22M3%207h6l2%202h10v11H3Z%22%2F%3E%3Cpath%20d%3D%22M3%207V4h7l2%203h7v2%22%2F%3E%3C%2Fsvg%3E") center/contain no-repeat;mask:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22black%22%20stroke-width%3D%221.8%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22M3%207h6l2%202h10v11H3Z%22%2F%3E%3Cpath%20d%3D%22M3%207V4h7l2%203h7v2%22%2F%3E%3C%2Fsvg%3E") center/contain no-repeat}

/* Detalle del pedido: altura intrínseca, centrado y desplazamiento para contenido largo. */
body[data-cg-view="ventas"] dialog.cg-work-order-dialog{height:fit-content!important;min-height:0!important;max-height:calc(100dvh - 32px)!important;box-sizing:border-box!important;overflow:auto!important}
body[data-cg-view="ventas"] dialog.cg-work-order-dialog[open]{display:block!important}
body[data-cg-view="ventas"] dialog.cg-work-order-dialog .cg-work-dialog-body{min-height:0!important;height:auto!important}

.cg-fuego-branch{display:grid;gap:8px;grid-column:1/-1;margin:10px 0}.cg-fuego-branch[hidden]{display:none!important}.cg-fuego-branch small{font-size:12px;color:#61746a;font-weight:400}.cg-fuego-branch select{width:100%;min-height:44px;padding:10px;border:1px solid #cbdad1;border-radius:9px;background:#fff;color:#244d3b;font:inherit}

/* Ordenar, limpiar y exportar: una misma línea y altura en filtros de Ventas. */
body[data-cg-view="ventas"] .cg-filter-panel .cf-result-row{
 display:grid!important;
 grid-template-columns:minmax(150px,1fr) auto auto!important;
 align-items:end!important;
 gap:10px!important;
}
body[data-cg-view="ventas"] .cg-filter-panel .cf-result-row>p{
 grid-column:1/-1!important;
 margin:0!important;
}
body[data-cg-view="ventas"] .cg-filter-panel .cf-result-row>label{
 min-width:0!important;
 margin:0!important;
 align-self:end!important;
}
body[data-cg-view="ventas"] .cg-filter-panel .cf-result-row>label select,
body[data-cg-view="ventas"] .cg-filter-panel .cf-result-row>button{
 box-sizing:border-box!important;
 height:44px!important;
 min-height:44px!important;
 margin:0!important;
 align-self:end!important;
}
body[data-cg-view="ventas"] .cg-filter-panel .cf-result-row>button{
 display:inline-flex!important;
 align-items:center!important;
 justify-content:center!important;
 line-height:1.2!important;
}
@media(max-width:600px){
 body[data-cg-view="ventas"] .cg-filter-panel .cf-result-row{
  grid-template-columns:minmax(0,1fr) minmax(0,1fr)!important;
 }
 body[data-cg-view="ventas"] .cg-filter-panel .cf-result-row>label{grid-column:1/-1!important}
 body[data-cg-view="ventas"] .cg-filter-panel .cf-result-row>button{
  width:100%!important;
  height:auto!important;
  align-self:stretch!important;
  min-width:0!important;
  white-space:normal!important;
 }
}
