.offcanvas-wide {
    width: 100%;
}

@media (min-width: 768px) {
    .offcanvas-wide {
        width: 700px;
    }
}

.offcanvas-body {
    overflow: visible !important;
}

td.wrap-text {
    white-space: normal !important;
    word-break: break-word;
}

.salto-linea div {
    display: block;
    margin-bottom: 4px;
    white-space: pre-line;
    word-break: break-word;
    /* Fuerza salto en palabras largas */
}

/* Ajuste general de columnas con contenido largo */
#table_objeespe td:nth-child(3),
#table_objeespe td:nth-child(4),
#table_objeespe td:nth-child(5) {
    max-width: 350px;
    min-width: 250px;
    white-space: normal !important;
    word-break: break-word;
    vertical-align: middle;
}

/* Aumentar el ancho de cabecera también */
#table_objeespe th:nth-child(3),
#table_objeespe th:nth-child(4),
#table_objeespe th:nth-child(5) {
    max-width: 350px;
    min-width: 250px;
    white-space: normal;
}

/* Opcional: alinear texto justificado si deseas aún más estética */
#table_objeespe td:nth-child(3),
#table_objeespe td:nth-child(4) {
    text-align: justify;
}

/* Suavizar botones */
#table_objeespe .btn {
    padding: 3px 8px;
    font-size: 14px;
}

/* Alinear texto de celdas en child rows */
table.dataTable.dtr-inline.collapsed>tbody>tr.child ul.dtr-details>li {
    text-align: left !important;
}

/* Alinear títulos como “Metas”, “Acciones” */
table.dataTable.dtr-inline.collapsed>tbody>tr.child ul.dtr-details>li>span.dtr-title {
    text-align: left !important;
    font-weight: 600;
}

/* Alinear el contenido */
table.dataTable.dtr-inline.collapsed>tbody>tr.child ul.dtr-details>li>span.dtr-data {
    text-align: left !important;
}

/*======================================================
 CSS PARA EMPRESA
======================================================*/
/* Ancho mínimo y máximo para columnas clave, más ancho para que no se aplasten */
#table_empresa td,
#table_empresa th {
    white-space: normal !important;
    word-break: break-word;
    vertical-align: middle;
    min-width: 100px;
    /* mínimo para evitar que se compriman demasiado */
    max-width: 300px;
    /* máximo razonable */
    padding: 6px 10px;
}

/* Columnas específicas con más ancho */
#table_empresa td:nth-child(7),
/* Dirección */
#table_empresa td:nth-child(8),
/* Horario atención */
#table_empresa td:nth-child(9),
/* Email */
#table_empresa td:nth-child(10)

/* Url */
    {
    max-width: 350px;
    min-width: 200px;
}

/* Igual para encabezados */
#table_empresa th:nth-child(7),
#table_empresa th:nth-child(8),
#table_empresa th:nth-child(9),
#table_empresa th:nth-child(10) {
    max-width: 350px;
    min-width: 200px;
    white-space: normal;
}

/* Botón expandir a la izquierda */
table#table_empresa td.control,
table#table_empresa th.control {
    text-align: left !important;
    padding-left: 8px;
}

/* Justificar texto para columnas con texto largo */
#table_empresa td:nth-child(7),
#table_empresa td:nth-child(8),
#table_empresa td:nth-child(9),
#table_empresa td:nth-child(10) {
    text-align: justify;
}

/* Opcional: si quieres que la tabla ocupe casi todo el ancho sin scroll */
#table_empresa {
    table-layout: fixed;
    /* fuerza columnas a respetar ancho max/min */
    width: 100%;
}

/*=================================================================
CSS SUCURSAL
=================================================================*/
#table_sucursal td:nth-child(3),
/* Gerente */
#table_sucursal td:nth-child(4),
/* sucursal */
#table_sucursal td:nth-child(5),
/* teléfono */
#table_sucursal td:nth-child(6),
/* Direción */
#table_sucursal td:nth-child(7),

/*=================================================================
CSS ÁREA DE LA EMPRESA
=================================================================*/
#table_data td:nth-child(2) {
    white-space: normal !important;
    word-break: break-word;
    min-width: 150px;
    max-width: 300px;
}

/*=================================================================
CSS CARGOS DE LA EMPRESA
=================================================================*/
/* Para tabla principal */
#table_cargos td:nth-child(2),
#table_cargos td:nth-child(3) {
    white-space: normal !important;
    word-break: break-word;
    min-width: 150px;
    max-width: 300px;
}

/* Para la tabla expandida en modo responsive */
table.dataTable.dtr-inline.collapsed>tbody>tr.child ul.dtr-details li {
    white-space: normal !important;
    word-break: break-word;
    min-width: 150px;
    max-width: 300px;
}

/*=================================================================
CSS PERMISOS DE LOS ROLES
=================================================================*/
#table_permiso td {
    white-space: normal;
    /* Permite saltos de línea en celdas */
    word-break: break-word;
    /* Rompe palabras largas si es necesario */
}