@media screen {
 .g3-purchase-actions button {white-space:nowrap}
 .g3-product-management {margin-top:16px;border-top:1px solid var(--ea-edge,#bbb);padding-top:10px}
 .g3-product-management summary {cursor:pointer;font-size:14px;font-weight:600}
 .g3-product-management p,.g3-deactivation p {font-size:14px;line-height:1.4}
 .g3-prices-from-purchase :is([name=retail],[name=middle],[name=wholesale]) {outline:1px solid var(--ea-highlight,#7180a0);outline-offset:1px}
 #g3-new-sale {font-size:13px;padding:8px 10px;white-space:normal}
}
@media print {.g3-purchase-actions,#g3-new-sale,.g3-product-management {display:none!important}}
@media screen {
 .g6-price-guide{border-top:1px solid var(--line);padding-top:8px;margin:10px 0;}
 .g6-price-guide>summary{cursor:pointer;font-weight:600;}
 .g6-price-guide>.grid{margin-top:8px;align-items:start;}
 .g6-price-guide [name=target_margin]{width:120px;max-width:100%;}
 .g6-guide-reference,.g6-projected-note{font-size:14px;}
 .g6-guide-current .tablewrap{overflow:auto;}
 .g6-price-guide :is(th,td){white-space:normal;}
 .g6-projected-total{display:flex;flex-wrap:wrap;gap:4px 8px;}
}

/* Compras G6-R3: conservar el botón Buscar producto y su contenedor. */
#document-form #line-product.g6r3-product-selector,
#document-form .g6r3-product-selector-label{display:none!important}
#modal .foot [data-g6r2-new-product]{white-space:normal}

/* G6-R7: legibility, ordinary wheel scrolling and complete report rows. */
@media screen {
 .g6-projected-total{display:flex;flex-direction:column;align-items:flex-start;gap:6px;}
 .g6-projected-total>span{display:block;white-space:nowrap;}
 html body :is(#content,#modal) .document-total{color:var(--ea-ink,inherit)!important;max-width:100%;white-space:normal;overflow-wrap:anywhere;}
 html body .g7-profit-detail .tablewrap{max-height:none!important;height:auto!important;overflow-x:auto!important;overflow-y:visible!important;}
 html body .g7-profit-detail :is(th,td){white-space:normal;}
 html body :is(#content,#modal) .g7-quantity{width:6.5em!important;max-width:100%!important;min-width:0;text-align:center;}
 html body .quantity-arrows{display:none!important;}
 #g7-investment{white-space:nowrap;}
}
