/* DKA IMPORT 31.56.107 — Legibilidad de formularios, mismo sistema escritorio y móvil. */
#proformaFormBox.dka-v102-sales-editor,#v82Editor.dka-v102-sales-editor{padding:clamp(12px,1.6vw,24px)!important;max-width:100%;}
.dka-v102-sales-editor .dka-v102-form-section{padding:clamp(14px,1.5vw,22px)!important;margin:0 0 14px!important;gap:11px!important;border:2px solid #c4d3e2!important;border-radius:12px;background:#fff;min-width:0}
.dka-v102-sales-editor .dka-v102-section-heading{border-bottom:1px solid #c9d9e8;padding-bottom:11px!important;margin-bottom:2px}
.dka-v102-sales-editor .dka-v102-section-heading h3{font-size:1.02rem}
.dka-v102-sales-editor .dka-v102-form-section input,.dka-v102-sales-editor .dka-v102-form-section select,.dka-v102-sales-editor .dka-v102-form-section textarea{min-width:0}
.dka-v102-sales-editor .dka-v102-form-section:nth-of-type(2){background:#fcfdff;min-width:0}
.dka-v102-sales-editor .dka-v102-form-section:nth-of-type(2) .table-wrap{min-width:0;overflow-x:auto}
/* En una proforma/notas prima la identificación y luego el detalle de productos; cierre en una fila compacta. */
@media(min-width:1120px){
 #proformaForm.dka-v107-commercial,#v82Form.dka-v107-commercial{display:grid;grid-template-columns:repeat(12,minmax(0,1fr));gap:12px 18px;align-items:start}
 #proformaForm.dka-v107-commercial>.dka-v102-form-section:nth-of-type(1),#v82Form.dka-v107-commercial>.dka-v102-form-section:nth-of-type(1){grid-column:1/-1;grid-row:1}
 #proformaForm.dka-v107-commercial>.dka-v102-form-section:nth-of-type(2),#v82Form.dka-v107-commercial>.dka-v102-form-section:nth-of-type(2){grid-column:1/-1;grid-row:2}
 #proformaForm.dka-v107-commercial>.dka-v102-form-section:nth-of-type(3),#v82Form.dka-v107-commercial>.dka-v102-form-section:nth-of-type(3){grid-column:1/span 8;grid-row:3}
 #proformaForm.dka-v107-commercial>.dka-v102-form-section:nth-of-type(4),#v82Form.dka-v107-commercial>.dka-v102-form-section:nth-of-type(4){grid-column:9/-1;grid-row:3}
 #proformaForm.dka-v107-commercial>.dka-v102-form-section:nth-of-type(1) .form-grid,#v82Form.dka-v107-commercial>.dka-v102-form-section:nth-of-type(1) .form-grid{grid-template-columns:repeat(4,minmax(0,1fr));gap:12px}
}
@media(min-width:760px) and (max-width:1119px){#proformaForm.dka-v107-commercial,#v82Form.dka-v107-commercial{display:grid;grid-template-columns:1fr 1fr;gap:13px}#proformaForm.dka-v107-commercial>.dka-v102-form-section:nth-of-type(-n+2),#v82Form.dka-v107-commercial>.dka-v102-form-section:nth-of-type(-n+2){grid-column:1/-1}}
@media(max-width:759px){#proformaForm.dka-v107-commercial,#v82Form.dka-v107-commercial{display:flex;flex-direction:column;gap:12px}#proformaForm.dka-v107-commercial>.dka-v102-form-section,#v82Form.dka-v107-commercial>.dka-v102-form-section{width:100%;box-sizing:border-box;padding:13px!important}#proformaForm.dka-v107-commercial .dka-v102-form-section .form-grid,#v82Form.dka-v107-commercial .dka-v102-form-section .form-grid{grid-template-columns:1fr}}
/* Respetar espacio entre bordes y contenidos de módulos administrativos. */
.screen .card{padding:clamp(15px,1.7vw,25px);box-sizing:border-box}
.screen .card .form-grid{gap:13px 16px}
.v99-integrated-screen .dka-v103-module-main>section,.v99-integrated-screen .dka-v103-module-main>article,.v99-integrated-screen .surface{box-sizing:border-box;padding:clamp(16px,2vw,26px)!important;margin-bottom:14px;border:1px solid #bacbdb;border-radius:12px}
.v99-integrated-screen .dka-v103-module-main form{min-width:0}
.v99-integrated-screen .dka-v103-module-main input,.v99-integrated-screen .dka-v103-module-main textarea,.v99-integrated-screen .dka-v103-module-main select{max-width:100%;box-sizing:border-box}
/* Los textos del catálogo se revelan únicamente después de recibir datos del servidor. */
.dka-store:not(.dka-ready) main,.dka-store:not(.dka-ready) footer,.dka-store:not(.dka-ready) .store-info-strip{visibility:hidden!important}
#dkaLoading{position:fixed;z-index:20;inset:0;display:grid;place-items:center;background:#f6f9fc;color:#164b75;font:600 1rem system-ui,sans-serif;text-align:center;padding:32px}
.dka-store.dka-ready #dkaLoading{display:none}
.dka-store.dka-failed #dkaLoading{z-index:50}

/* Vistas financieras legibles y tablas móviles sin recortar columnas. */
.dka-v102-sales-editor .v86-summary{display:flex;flex-wrap:wrap;gap:8px 20px;align-items:center;padding:6px 0}
#v82Editor .dka-v102-form-section .table-wrap{overflow-x:auto;max-width:100%;overscroll-behavior-x:contain;-webkit-overflow-scrolling:touch}
@media(max-width:759px){#v82Editor .dka-v102-form-section .v82-lines{min-width:750px}#proformaForm.dka-v107-commercial #pfLines{overflow-x:auto;max-width:100%}}
