.formulario-dj * { box-sizing: border-box; }

.formulario-dj .dj-page { position: relative; padding: 0; margin: 0 0 12px; }
.formulario-dj .dj-doc-header { display: table; width: 100%; color: #555; font-size: 10px; margin-bottom: 10px; }
.formulario-dj .dj-doc-header > span { display: table-cell; }
.formulario-dj .dj-doc-header > span + span { text-align: right; }
.formulario-dj .dj-page-no { text-align: right; color: #555; font-size: 10px; margin-top: 4px; }

.formulario-dj table { width: 100% !important; border-collapse: collapse !important; table-layout: fixed !important; margin: 0 0 2px; }
.formulario-dj td, .formulario-dj th { border: 1px solid #000; padding: 2px 4px; vertical-align: middle; height: 18px; word-wrap: break-word; overflow-wrap: break-word; font-weight: normal; text-align: left; }

.formulario-dj .dj-green { background: #c6ebc6; font-weight: bold; }
.formulario-dj .dj-green-light { background: #e2f7ec; }

/* Temas de color por familia (barra/etiqueta segun w:fill del PDF). Verde = default Inicio (11211/11213). */
.formulario-dj.dj-tema-mp .dj-green { background: #ffefc7; }
.formulario-dj.dj-tema-mp .dj-green-light { background: #f9f5e0; }
.formulario-dj.dj-tema-termino .dj-green { background: #e0dcf9; }
.formulario-dj.dj-tema-termino .dj-green-light { background: #f5f5f9; }

.formulario-dj .dj-center { text-align: center; }
.formulario-dj .dj-right { text-align: right; }
.formulario-dj .dj-bold { font-weight: bold; }
.formulario-dj .dj-small { font-size: 9px; color: #555; }
.formulario-dj .dj-note { font-size: 8.5px; color: #555; line-height: 1.2; margin: 1px 0 6px; }
.formulario-dj .dj-field { min-height: 18px; }
.formulario-dj .dj-tall { height: 30px; }
.formulario-dj .dj-sig { height: 86px; vertical-align: top; }
.formulario-dj .dj-nb { border: 0 !important; }
.formulario-dj .dj-nb > tbody > tr > td { border: 0 !important; }
.formulario-dj .dj-blockbox { border: 1px solid #000; margin: 0 0 2px; }
.formulario-dj .dj-blockbox .dj-subsection-title { border-top: 1px solid #000; border-bottom: 1px solid #000; padding: 2px 4px; }
.formulario-dj .dj-inv { margin: 0; }
.formulario-dj .dj-inv td, .formulario-dj .dj-inv th { border: 0 !important; padding: 2px 4px; height: auto; }
.formulario-dj .dj-invl td, .formulario-dj .dj-invl th { border: 0 !important; border-bottom: 1px solid #000 !important; padding: 2px 4px; height: 20px; }
.formulario-dj .dj-ul { display: inline-block; min-width: 120px; border-bottom: 1px solid #000; height: 14px; }
.formulario-dj .dj-selbox { display: inline-block; min-width: 130px; border: 1px solid #000; background: #fff; padding: 0 16px 0 4px; height: 15px; vertical-align: middle; }
.formulario-dj td > .dj-split { display: flex; justify-content: space-between; align-items: center; gap: 6px; }

.formulario-dj .dj-check { display: inline-block; width: 15px; height: 15px; border: 1px solid #000; background: #fff; vertical-align: middle; }
.formulario-dj .dj-checkcell { text-align: center; }

.formulario-dj .dj-section-title { font-size: 14px; font-weight: bold; margin: 12px 0 3px; }
.formulario-dj .dj-subsection-title { font-weight: bold; }

.formulario-dj .dj-doctitle { text-align: center; font-weight: bold; font-size: 19px; line-height: 1.2; }
.formulario-dj .dj-docsub { text-align: center; font-size: 14px; line-height: 1.25; }

.formulario-dj .dj-declar { line-height: 1.7; }
.formulario-dj ol.dj-legal { margin: 2px 0 0 18px; padding: 0; }
.formulario-dj ol.dj-legal li { margin-bottom: 3px; line-height: 1.25; text-align: justify; }
.formulario-dj .dj-ab { margin: 0 0 0 16px; }
.formulario-dj .dj-notabox { vertical-align: top; padding: 8px 10px; }
/* caja de notas alta solo en la salida impresa (no fuerza altura en edicion) */
.formulario-dj.bloquearformulario .dj-notabox { height: 470px; }
/* tablas de cabecera (DECLARACION N / INGRESO N): centrar el valor para alinearlo con su titulo (centrado) */
.formulario-dj .dj-field.dj-tall { text-align: center; }

.formulario-dj input[type="text"], .formulario-dj input[type="date"], .formulario-dj select { width: 100%; border: 0; background: transparent; padding: 0 2px; margin: 0; height: 16px; font: inherit; }
.formulario-dj input.dj-uline { width: auto; min-width: 120px; border: 0; border-bottom: 1px solid #000; background: transparent; height: 14px; }
.formulario-dj input.dj-inline, .formulario-dj select.dj-inline { width: auto; }
.formulario-dj input[type="checkbox"], .formulario-dj input[type="radio"] { vertical-align: middle; margin: 0 3px; }
.formulario-dj .row { margin: 0; }
.formulario-dj .container { width: auto; max-width: none; padding: 0; margin: 0; }
.formulario-dj .adjuntoIzquierda, .formulario-dj .adjuntoDerecha { word-break: break-word; overflow-wrap: anywhere; vertical-align: middle; }
.formulario-dj .adjuntoDerecha img, .formulario-dj .adjuntoDerecha a { max-width: 100%; }

.formulario-dj.bloquearformulario .add,
.formulario-dj.bloquearformulario .remove { display: none; }

/* impresion (wkhtmltopdf): los inputs con height/borde bajo recortan los descendentes (p/g/q) del texto;
   damos mas alto y line-height SOLO en la salida impresa para que el valor no se corte. Aplica a los 6 DJ. */
.formulario-dj.bloquearformulario input[type="text"],
.formulario-dj.bloquearformulario input[type="date"],
.formulario-dj.bloquearformulario select { height: 19px; line-height: 18px; vertical-align: bottom; }
.formulario-dj.bloquearformulario input.dj-uline { height: 18px; line-height: 16px; padding-bottom: 2px; }
.formulario-dj.bloquearformulario .dj-invl td,
.formulario-dj.bloquearformulario .dj-inv td { height: auto; padding-top: 3px; padding-bottom: 4px; vertical-align: bottom; }
.formulario-dj.bloquearformulario .dj-invl { line-height: 1.45; }

.formulario-dj .uploadifive-queue { width: 100%; max-width: 100%; }
.formulario-dj .uploadifive-queue-item {
    box-sizing: border-box;
    width: 100%;
    max-width: 100%;
    margin: 2px 0;
    padding: 4px 6px;
    font-size: 9px;
    line-height: 1.3;
    overflow: hidden;
}
.formulario-dj .uploadifive-queue-item > div { max-width: 100%; overflow: hidden; }
.formulario-dj .uploadifive-queue-item .filename {
    display: inline-block;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    vertical-align: bottom;
}
.formulario-dj .uploadifive-queue-item .fileinfo { white-space: nowrap; color: #777; }

/* ===== Tablas extensibles (dj-ext): controles +/- en la base de la tabla (esquina der.) ===== */
.formulario-dj .dj-ext-ctrls { text-align: right; margin: 2px 0 10px; line-height: 1; }
.formulario-dj .dj-ext-celda { position: relative; white-space: nowrap; }
.formulario-dj .dj-ext-add,
.formulario-dj .dj-ext-remove {
    display: inline-block; width: 18px; height: 18px; line-height: 16px; text-align: center;
    margin-left: 4px; border-radius: 3px; cursor: pointer; font-weight: bold; font-size: 13px;
    color: #fff; -webkit-user-select: none; user-select: none; vertical-align: middle;
}
.formulario-dj .dj-ext-add { background: #4CAF50; }
.formulario-dj .dj-ext-remove { background: #C0392B; }
.formulario-dj .dj-ext-add:hover { background: #43A047; }
.formulario-dj .dj-ext-remove:hover { background: #A93226; }
/* en impresion no se muestran los controles */
.bloquearformulario .dj-ext-ctrls, .bloquearformulario .dj-ext-add, .bloquearformulario .dj-ext-remove { display: none !important; }
