body {
    font-family: Heebo;
    background-color: #f0f0f0;
    margin: 0;
    padding: 0;
    font-size: 14px;
}

.bg-rojo {
    background-color: rgba(255, 0, 0, 0.3);
}

.bg-verde {
    background-color: rgba(0, 255, 0, 0.3);
}

.tooltip {
  position: relative;
  display: inline-block;
  cursor: help;
}

.tooltip .tooltiptext {
  visibility: hidden;
  background-color: black;
  color: #fff;
  border-radius: 6px;
  padding: 5px 8px;
  position: absolute;
  z-index: 1;
  left: auto;
  right: 100%; /* Aparece a la izquierda */
  top: 50%;
  transform: translateY(-50%);
  white-space: nowrap; /* Todo en una línea */
  opacity: 0;
  transition: opacity 0.3s;
  margin-right: 8px;
}
.tooltip:hover .tooltiptext {
  visibility: visible;
  opacity: 1;
}
.switch {
  position: relative;
  display: inline-block;
  width: 60px;
  height: 34px;
  margin-bottom:10px;
    -webkit-user-select: none; /* Safari */
  -ms-user-select: none; /* IE 10 and IE 11 */
    user-select: none;
}

.switch input { 
  opacity: 0;
  width: 0;
  height: 0;
     -webkit-user-select: none; /* Safari */
  -ms-user-select: none; /* IE 10 and IE 11 */
    user-select: none;

}

.slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #ccc;
  -webkit-transition: .4s;
  transition: .4s;
     -webkit-user-select: none; /* Safari */
  -ms-user-select: none; /* IE 10 and IE 11 */
    user-select: none;

}

.slider:before {
  position: absolute;
  content: "";
  height: 26px;
  width: 26px;
  left: 4px;
  bottom: 4px;
  background-color: white;
  -webkit-transition: .4s;
  transition: .4s;
}

input:checked + .slider {
  background-color: #164d8d;
}

input:focus + .slider {
  box-shadow: 0 0 1px #2196F3;
}

input:checked + .slider:before {
  -webkit-transform: translateX(26px);
  -ms-transform: translateX(26px);
  transform: translateX(26px);
}

/* Rounded sliders */
.slider.round {
  border-radius: 34px;
}

.slider.round:before {
  border-radius: 50%;
}

h2{
    margin-top: 2px;
    margin-bottom: 5px;
    user-select: none;

}
#header {
    background-image: url("banner2.png");
    background-repeat: no-repeat;
    background-size: cover;
    color: white;
    padding: 10px;
    display: flex;
    box-shadow: 0 8px 8px 0 rgba(0, 0, 0, 0.2);
    justify-content: space-between;
    align-items: center;
    -webkit-user-select: none; /* Safari */
  -ms-user-select: none; /* IE 10 and IE 11 */
    user-select: none;
}
#bienvenida{
    font-size: 18px;
    text-shadow: 2px 2px 4px #000000;
}
#busquedaCliente, #busquedaInput, #filterInput, #operacionesfilterInput {
  background-image: url('https://www.w3schools.com/css/searchicon.png');
  background-position: 10px 10px;
  background-repeat: no-repeat;
  background-color: transparent;
  border-radius: 5px;
  font-size: 18px;
  padding: 10px 20px 10px 40px;
  border: 1px solid #ddd;
  
}
label{
  font-size:16px;
-webkit-user-select: none; /* Safari */
  -ms-user-select: none; /* IE 10 and IE 11 */
  user-select: none;
}
#parametrosInforme{
justify-content: space-evenly; 
display:block; 
flex-wrap: wrap;
align-items: baseline;
}
#handpayInput, #puntosRedimir, #montoRetiro, #montoDeposito,#montoRetiro2, #montoDeposito2,  #nombre, #password, #creditInput {
  border-radius: 5px;
  font-size: 18px;
  padding: 10px 20px 10px 20px;
  border: 1px solid #ddd;
}
retirarTodoCheckbox {
  width: 20px;
  cursor: pointer;
  font-size:22px;
}

#historialModal{
  max-height: 80vh;
 width: 90%;
  overflow-x: auto;
}
#selectorCasinoInformes, #casinoSelect, #casinoOperacionesSelector, #casinoListadoSelector, #casinoFilter {
  background-position: 10px 10px;
  background-repeat: no-repeat;
  border-radius: 5px;
  font-size: 18px;
  padding: 10px 20px 10px 10px;
  border: 1px solid #ddd;
}

#casinosAsignados{
  background-position: 10px 10px;
  background-repeat: no-repeat;
  border-radius: 5px;
  font-size: 16px;
  padding: 10px 20px 10px 10px;
  border: 1px solid #ddd;
  width: 100%;
}

.valor-negativo{
  color: red;
  font-weight: bold;
}
.valor-positivo{
  color: green;
  font-weight: bold;
}


/* Container for flexboxes */
.row {
  display: -webkit-flex;
  display: flex;
}

/* Create three unequal columns that sits next to each other */
.column {
-webkit-user-select: none; /* Safari */
  -ms-user-select: none; /* IE 10 and IE 11 */
  user-select: none;
}

/* Left and right column */
.column.side {
   -webkit-flex: 3;
   -ms-flex: 3;
   flex: 3;
}

/* Middle column */
.column.middle {
  -webkit-flex: 1;
  -ms-flex: 1;
  flex: 1;
  justify-content: right;
}

#menu {
  list-style: none;
  margin: 0;
  padding: 0;
  overflow: hidden;
  background-color: #354551;
  display: flex;
  justify-content: space-around;
  -webkit-user-select: none; /* Safari */
  -ms-user-select: none; /* IE 10 and IE 11 */
  user-select: none;
}

#menu li {
  cursor: pointer;
  float: left;
  display: block;
  color: white;
  text-align: center;
  padding: 14px 16px;
  text-decoration: none;
  font-size:18px;
  text-shadow: 1px 1px 2px #000000;
}
#menu li:hover:not(.active) {
  background-color: #1b212c;
} 
#menuToggle {
  display: none;
  font-size: 18px;
  padding: 10px;
  background: #ccc;
  border: none;
  cursor: pointer;
}


.section {
    display: none;
    padding: 20px;
}

#clientes, #auditoria,#analisisGeneral, #estadoDelSistema, #listado, #ultimosEventos, #informes, #usuarios, #operaciones {
    margin: 20px;
    background-color: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}
#clientesTable, #auditoriaTable, #maquinasTable, #operacionesmaquinasTable{
    font-size: 16px;
    padding: 10px;
}

.login-container {
    width: auto; 
    margin: 20px;
    background-color: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 10px;
}

table, th, td {
    border: 1px solid #ccc;
}

th, td {
    padding:6px;
    text-align: left;
}

#informeTablaBody tr:nth-child(even){background-color: #f2f2f2;}
#maquinasTableBody tr:nth-child(even){background-color: #f2f2f2;}
#ultimosEventosTablaBody tr:nth-child(even){background-color: #f2f2f2;}
#operacionesTableBody tr:nth-child(even){background-color: #f2f2f2;}
#auditoriaTable tr:nth-child(even){background-color: #f2f2f2;}
#clientesTable tr:nth-child(even){background-color: #f2f2f2;}

#maquinasTableBody tr:hover {background-color: #ddd;}
#ultimosEventosTablaBody tr:hover {background-color: #ddd;}
#informeTablaBody tr:hover {background-color: #ddd;}
#operacionesTableBody tr:hover {background-color: #ddd;}
#auditoriaTable tr:hover {background-color: #ddd;}
#clientesTable tr:hover {background-color: #ddd;}

.operacionesContainer{
  margin-left: 20px;
  margin-right: 20px;
}
#infoMaquinaSeleccionada{
  font-size: 16px;
}
button {
    background-color: #164d8d;
    font-family: Arial, sans-serif;
    color: white;
    border: none;
    padding: 6px 5px 6px 5px;
    border-radius: 5px;
    cursor: pointer;
    margin: 2px;
    width: 140px;
    height: 40px; 
    font-size: 14px;
    box-shadow: 1px 1px 5px #666;box-shadow: 1px 1px 3px #666;
    text-shadow: 2px 2px 4px #000000;
    user-select: none;
    -webkit-user-select: none; /* Safari */
  -ms-user-select: none; /* IE 10 and IE 11 */
}

button:hover {
    background-color: #0056b3;
}
.redButton{
    background-color: #CC0000;
    padding: 10px;
    border-radius: 5px;
}
.redButton:hover{
    background-color: #dd0000;
}

.modal {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: white;
    padding: 10px;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    z-index: 1000;
}

.modal.show {
    display: block;
}
#contenedorAuditoria{
   width: 80vw;
   height: 90%;
   left: 50%;
}

#denominacion, #casino_id, .modal input[type=text],.modal input[type=email],.modal input[type=password], select[type=casinolist] {
  width: 100%;
  padding: 12px 20px;
  margin: 8px 0;
  display: inline-block;
  border: 1px solid #ccc;
  border-radius: 4px;
  box-sizing: border-box;
  font-size: 18px;
}
.editContainer{
  margin-left:20px;
  margin-right:20px
}
#editMachineForm input{
    width: 100%;
    padding: 12px 20px;
    margin: 5px 0;
    display: inline-block;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-sizing: border-box;
    font-size: 18px;
}

#editCasino_id, #selectorCasinoAnalisis, #maquinaSelector, #fechaFin, #fechaInicio{
  padding: 8px 20px;
  display: inline-block;
  border: 1px solid #ccc;
  border-radius: 4px;
  box-sizing: border-box;
  font-size: 18px;
}

#contenedorGauges {
  display: flex;
  flex-wrap: wrap;
  font-size: 30px;
  text-align: center;
  gap: 40px; /* Espacio entre cada gauge */
  font-size: 16px;
}
.analisis-flex-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 16px;
}

.analisis-item {
  flex: 1 1 300px;
  min-width: 300px;
}

.graficas-flex {
  display: flex;
  gap: 20px;
  justify-content: space-between;
  flex-wrap: wrap;
}

.grafica-box {
  flex: 1;
  min-width: 300px;
}

      #contenedor-depositos,
      #contenedor-recargas,
      #contenedor-pagos {
        overflow-y: auto;
        overflow-x: auto;
        max-height: 50vh;
      }
      #contenedor-depositos thead,
      #contenedor-recargas thead,
      #contenedor-pagos thead {
        background-color: #f2f2f2;
        position: sticky;
        top: 0px;
      }
      
      .accordion {
        background-color: #eee;
        color: #444;
        cursor: pointer;
        padding: 18px;
        width: 100%;
        border: none;
        text-align: left;
        outline: none;
        font-size: 15px;
        transition: 0.8s;
       box-shadow: 1px 1px 5px #666;
       text-shadow: none;

      }

      .activeTab,
      .accordion:hover {
        background-color: #ccc;
      }

      .accordion:after {
        content: '\002B';
        color: #777;
        font-weight: bold;
        float: right;
        margin-left: 5px;
      }

      .activeTab:after {
        content: "\2212";
      }

      .panelAuditoria {
        padding: 0 5px;
        background-color: white;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.2s ease-out;
      }

      .cerrarAudit {
        float: right;
        max-width: 40px;
        font-size: 26px;
        text-align: center;
        color: #222;
        background-color: #cccccc;
        text-shadow: none;     
      }
      .cerrarAudit:hover{
        background-color: #c1c1c1;
      }
#nombreModalAuditoria{
   margin-bottom:5px;
}
#menuModalClientes{
    list-style: none;
    font-size: 18px;
    align-content: center;
    display: flex;
    flex-direction: row;
    user-select: none;
    -webkit-user-select: none; /* Safari */
  -ms-user-select: none; /* IE 10 and IE 11 */

}
#menuModalClientes li{
  margin: 10px 40px 10px 40px;
  border: 0px;
  min-width: 20px;
  width: 20vw;
  text-align:center;
  padding: 10px 10px 10px 10px;
  border-radius: 5px;
  cursor: pointer;
  background-color: #144b8b;
  color: white;
  box-shadow: 1px 1px 5px #666;
  text-shadow: 2px 2px 4px #000000;

}
#menuModalClientes li:hover{
  background-color: #0056b3;
}
#targetCliente{
    margin-left: 80px;
    margin-right: 20%;
    background-color: white;
    padding: 5px 5px 5px 5px;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    width: 300px;
}
.clientesSidenav {
  height: 80vh;
  width: 0;
  position: fixed;
  z-index: 1;
  bottom: 30px;
  left: 0;
  background-color: #f2f2f2;
  overflow-x: hidden;
  transition: 0.3s;
  padding-top: 10px;
  text-align:left;
}

.clientesSidenav a {
  padding: 8px 8px 8px 32px;
  text-decoration: none;
  font-size: 25px;
  color: black;
  display: block;
  transition: 0.2s;

}


.clientesSidenav .closebtn {
  position: absolute;
  top: 0;
  right: 25px;
  font-size: 36px;
  margin-left: 50px;
}

.operacionesSidenav, .editSidenav {
  height: 80vh;
  width: 0;
  position: fixed;
  z-index: 1;
  bottom: 36px;
  left: 0;
  background-color:#f3f3f3;
  overflow-x: hidden;
  transition: 0.5s;
  padding-top: 50px;
  text-align:left;
  justify-items: left;
  border-radius: 5px;
  box-shadow: 2px 3px 2px #555;
}
.operacionesSidenav p, .editSidenav p {
  color:black;
}
.operacionesSidenav a, .editSidenav a {
  padding: 8px 8px 8px 32px;
  text-decoration: none;
  font-size: 25px;
  color: #444;
  display: block;
  transition: 0.3s;

}
.operacionesSidenav a:hover, .editSidenav a:hover{
  color: black;
}

.operacionesSidenav .closebtn, .editSidenav .closebtn {
  position: absolute;
  top: 0;
  right: 25px;
  font-size: 36px;
  margin-left: 50px;
}

footer {
  background-color: #CCC;
  width: 100%;
  position: fixed;
  bottom: 0;
  padding: 1px;
  font-size: 10px;
  text-align: center;
  color: white;
}
@media only screen and (max-width: 768px) {
  body {
    
  }
  button {
    background-color: #164d8d;
    font-family: Arial, sans-serif;
    color: white;
    border: none;
    padding: 6px 5px 6px 5px;
    border-radius: 5px;
    cursor: pointer;
    margin:5px;
    width: 140px;
    height: 40px;
}
.botonInforme {
    background-color: #164d8d;
    font-family: Arial, sans-serif;
    color: white;
    border: none;
    padding: 6px 5px 6px 5px;
    border-radius: 5px;
    cursor: pointer;
    margin-top: 5px;
    width: 140px;
    height: 40px;
}
#parametrosInforme{
display: flex;
flex-direction: column;
}

#contenedor-depositos, #contenedor-recargas, #contenedor-pagos{
   overflow-y:auto;
   overflow-x:auto;
   max-height:40vh;
}
#contenedor-recargas thead, #contenedor-pagos thead{
   background-color: #f2f2f2;
   position: sticky;
   top: 0px;
}

#casinoListadoSelector{
   margin-top: 10px;
   margin-bottom: 10px;
}
#casinoOperacionesSelector{
   margin-top: 10px;
   margin-bottom: 10px;
}

  #graficoProduccionCasino{
  }
  .graficas-flex {
    flex-direction: column;
    align-items: center;
  }

  .grafica-box {
    width: 90%;
    max-width: 500px;
  }
  .row {
  display: block;
  }
  .column {

  }
  .column.middle {
  -webkit-flex: 1;
  -ms-flex: 1;
  flex: 1;
  justify-content: left;
  }
  #menuModalClientes{
    list-style: none;
    font-size: 18px;
    align-items: center;
    display: flex;
    flex-direction: column;
    margin: 0;
    padding: 0;
}

  #menuModalClientes li{
  margin: 10px 10px 10px 5px;
  border: 1px solid;
  min-width: 40vw;
  width: 50vw;
  text-align:center;
  padding: 10px 10px 10px 10px;
  border-radius: 5px;
  cursor: pointer;
  background-color: #144b8b;
  color: white;
}
#targetCliente{
    margin-left: 10px;
  margin-right: 20%;
  background-color: white;
  padding: 5px 5px 5px 5px;
  border-radius: 10px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
  width: auto;
  
}
  #header {
    background-color: #1b212c;
    color: white;
    padding: 20px;
    display: block;
    box-shadow: 0 8px 8px 0 rgba(0, 0, 0, 0.2);
    justify-content: space-between;
    align-items: center;
}
  #menu {
    display: none;
    background-color: #354551;
    flex-direction: column;
    align-items: flex-start;
    width: 100%;
  }

  #menu.show {
    display: flex;
  }

  #menuToggle {
    margin: 1px 0px;
    width: 45%;
    background-color: #144781;
    display: block;
  }  
  .clientesSidenav {
  height: 85vh;
  }
 }
