/* Cosas globales */

:root {
  --color-primario: #3aaa35;
  --color-secundario: #94c11f;
}

/* Estilos para la barra de navegación */

.wz-logo {
    max-width: 80%;
}


/* Estilos para las tablas */


table.dataTable thead>tr>th.sorting:before, table.dataTable thead>tr>th.sorting:after {
    bottom: 50% !important;
}

table.dataTable thead>tr>th.sorting:before {
    margin-bottom: 2px !important;
}

#proveedores-abiertas thead th:nth-child(1) { width: 10% !important; }
#proveedores-abiertas thead th:nth-child(2) { width: 20% !important; }
#proveedores-abiertas thead th:nth-child(5) { width: 40% !important; }

#accesos-personal thead th:nth-child(4) { width: 30% !important; }
#accesos-personal thead th:nth-child(5) { width: 10% !important; }
#accesos-personal thead th:nth-child(6) { width: 10% !important; }


.text-orange {
    color: orange;
}

.text-yellow {
    color: #D6C92A;
}

.avatar-proveedor {
    max-width: 50%;
}

.avatar-preferente {
    max-height: 490px;
}

#accesos-preferentes .avatar-preferente {
    max-width: 50%;
}

#accesos-personal .avatar-preferente {
    max-width: 100%;
}

/* Estilos para los tooltips */
[data-tooltip] {
    position: relative;
    cursor: pointer;
}

[data-tooltip]:hover::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: #333;
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    white-space: nowrap;
    font-size: 12px;
    margin-bottom: 5px;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    text-transform: uppercase;
}

/* Estilo para la fila cuando el cursor está sobre ella */

#invitaciones-abiertas tbody tr.even, #proveedores-abiertas tbody tr.even, #accesos-preferentes tbody tr.even, #accesos-personal tbody tr.even, #eventos-abiertos tbody tr.even {
    background-color: #f5f5f5;
}

#invitaciones-abiertas tbody tr.hover-row, #proveedores-abiertas tbody tr.hover-row, #accesos-preferentes tbody tr.hover-row, #accesos-personal tbody tr.hover-row, #eventos-abiertos tbody tr.hover-row {
    background-color: var(--color-primario);
    cursor: pointer;
    color: white;
}

/* Estilo para la fila cuando el personal no puede acceder */

.no-puede-acceder {
    background-color: #f8d7da !important;
    color: #721c24;
}

