.navbar-light .navbar-nav .active>.nav-link, .navbar-light .navbar-nav .nav-link.active, .navbar-light .navbar-nav .nav-link.show, .navbar-light .navbar-nav .show>.nav-link {
    color: white !important;
    background: #007bff !important;
    font-weight: bold !important;
}

.addNewEmpleado{

    background: #008000 !important;
    color: #ffffff !important; 
}

.buttons-excel{

    background: #008000 !important;
    color: #ffffff !important; 
}

.buttons-print{

    background: #ffc107 !important;
    color: #ffffff !important; 
}

.buttons-page-length{

    background: #17a2b8 !important;
    color: #ffffff !important; 
}

.dt-button{

    padding-top: 10px !important;
    padding-bottom: 10px !important; 
}

/*table th{
    background-color: #659cee !important;
    color: #ffffff;
}

.table-empleados  tbody tr:nth-child(odd) td,
.table-empleados tbody tr:nth-child(odd) th {
 background-color: #bde6f3!important;
 }

.table-empleados tbody tr:nth-child(even) td,
.table-empleados tbody tr:nth-child(even) th {
background-color: #5dbaf0!important;
color:#fff!important;
}*/

.card-lista thead {
	display: none;
}

.card-lista tbody tr {
	float: left;
	width: 19em;
	margin: 0.5em;
	border: 1px solid #bfbfbf;
	border-radius: 0.5em;
	background-color: transparent !important;
	box-shadow: 0.25rem 0.25rem 0.5rem rgba(0, 0, 0, 0.25);
}
.card-lista tbody tr td {
	display: block;
	border: 0;
}

.btn-circle.btn-sm {
    width: 30px;
    height: 30px;
    padding: 6px 0px;
    border-radius: 15px;
    font-size: 12px;
    text-align: center;
}
.btn-circle.btn-md {
    width: 50px;
    height: 50px;
    padding: 7px 10px;
    border-radius: 25px;
    font-size: 10px;
    text-align: center;
}
.btn-circle.btn-xl {
    width: 70px;
    height: 70px;
    padding: 10px 16px;
    border-radius: 35px;
    font-size: 12px;
    text-align: center;
}


/* ================================================================ */
/* PREVENCIÓN DE CAMBIOS DE LAYOUT */
/* ================================================================ */

/* Prevenir cambios de layout al mostrar SweetAlert */
body.swal2-shown:not(.swal2-no-backdrop):not(.swal2-toast-shown) {
    overflow: hidden !important;
    padding-right: 0px !important;
}

.swal2-container {
    overflow: auto !important;
    padding: 10px !important;
}

/* ================================================================ */
/* AJUSTE SUAVE SIDEBAR (compatible con AdminLTE) */
/* ================================================================ */

/* Eliminar scroll interno forzado y posición fija del sidebar */
/*
.main-sidebar {
  position: fixed;
  top: 57px;
  left: 0;
  height: calc(100vh - 57px);
  background-color: #343a40 !important;
  z-index: 1050;
}
.main-sidebar .sidebar {
  height: 100%;
  overflow-y: auto;
}
*/

/* Estabilizar el tamaño de los elementos principales */
.dataTables_wrapper {
    width: 100% !important;
    min-height: 400px !important;
}

.card-body {
    min-height: 50px !important;
}

/* Asegurar que los contenedores mantengan su tamaño */
.content, .container-fluid {
    min-height: auto !important;
}

.table-striped {
    width: 100% !important;
    table-layout: auto !important;
}

/* Estabilizar tablas específicas */
.table-partestrabajo,
.table-empleados,
.table-clientes,
.table-tickets {
    width: 100% !important;
    table-layout: auto !important;
}

#tablaPartesTrabajos_wrapper,
#tbl_empleados_wrapper,
#tbl_clientes_wrapper,
#tbl_tickets_wrapper {
    width: 100% !important;
    min-height: 400px !important;
}

/* ===================================
   ESTILOS PERSONALIZADOS PARA LOGIN
   =================================== */

.login-page {
    background: #ffffff;
    min-height: 100vh;
}

.login-box {
    margin: 7% auto;
    width: 360px;
}

.login-logo img {
    max-height: 120px;
    margin-bottom: 20px;
    filter: drop-shadow(0 2px 8px rgba(0,0,0,0.15));
    transition: transform 0.3s ease;
}

.login-logo img:hover {
    transform: scale(1.05);
}

.login-logo a,
.login-logo h2 {
    color: #333333 !important;
    text-decoration: none;
    font-size: 36px;
    font-weight: 300;
    text-shadow: 0 2px 4px rgba(0,0,0,0.1);
    margin: 0;
}

.card {
    border: none;
    border-radius: 15px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.1);
    backdrop-filter: blur(10px);
    background: rgba(255,255,255,0.95);
}

.login-card-body {
    padding: 30px;
    border-radius: 15px;
}

.login-box-msg {
    margin-bottom: 25px;
    font-weight: 500;
    color: #666;
    text-align: center;
}

.input-group {
    margin-bottom: 20px;
}

.input-group .form-control {
    border: 2px solid #e9ecef;
    border-right: none;
    border-radius: 8px 0 0 8px;
    padding: 12px 15px;
    font-size: 16px;
    transition: all 0.3s ease;
}

.input-group .form-control:focus {
    border-color: #007bff;
    box-shadow: none;
}

.input-group-text {
    border: 2px solid #e9ecef;
    border-left: none;
    border-radius: 0 8px 8px 0;
    background: #f8f9fa;
    color: #6c757d;
    transition: all 0.3s ease;
}

.input-group .form-control:focus + .input-group-append .input-group-text {
    border-color: #007bff;
    background: #007bff;
    color: white;
}

.btn-primary {
    background: linear-gradient(45deg, #007bff, #0056b3);
    border: none;
    border-radius: 8px;
    padding: 15px 25px;
    font-weight: 600;
    font-size: 16px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0,123,255,0.3);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0,123,255,0.4);
    background: linear-gradient(45deg, #0056b3, #004494);
}

.btn-primary:active {
    transform: translateY(0);
    box-shadow: 0 2px 10px rgba(0,123,255,0.3);
}

.btn-lg {
    padding: 18px 30px !important;
    font-size: 18px !important;
}

.icheck-primary label {
    font-weight: normal;
    color: #666;
}

/* Responsive */
@media (max-width: 576px) {
    .login-box {
        width: 90%;
        margin: 5% auto;
    }
    
    .login-card-body {
        padding: 20px;
    }
}


/* Eliminado bloque de CSS para sidebar. Se usará la funcionalidad nativa de AdminLTE con layout-fixed. */

/* Sidebar con altura infinita para evitar huecos blancos */
.main-sidebar {
  background-color: #343a40 !important;
}

/* Forzar que el contenido principal tenga altura mínima para que el sidebar acompañe hasta el final */
/*
.wrapper {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
.content-wrapper {
  flex: 1 0 auto;
}
*/

