/* Indicador de foco global, también en modales y controles dinámicos. */
body input:not([type="hidden"]):focus,
body textarea:focus,
body select:focus,
body [contenteditable]:not([contenteditable="false"]):focus,
body .select2-container--focus .select2-selection,
body .select2-container--open .select2-selection,
body .select2-container-active .select2-choice,
body .select2-container-active .select2-choices,
body .smart-form .checkbox input:focus + i,
body .smart-form .radio input:focus + i,
body .smart-form .toggle input:focus + i {
    background-color: #e6f7df !important;
    border-color: #77b86a !important;
    box-shadow: 0 0 0 2px rgba(119, 184, 106, .25) !important;
    outline: 2px solid transparent;
    outline-offset: 1px;
}

/* Listados de movimientos/trazabilidad: cada columna toma el ancho de su contenido (nada
   recortado); solo las de texto largo (agente, proveedor, cliente, almacen) parten en lineas. */
table.dt-ajuste { table-layout: auto; }
table.dt-ajuste > thead > tr > th,
table.dt-ajuste > tbody > tr > td { white-space: nowrap; overflow: visible; }
table.dt-ajuste > thead > tr > th.dt-texto,
table.dt-ajuste > tbody > tr > td.dt-texto { white-space: normal; min-width: 140px; }
table.dt-ajuste > thead > tr > th input { min-width: 0; width: 100%; box-sizing: border-box; }
