:root{
    --color-primario: #db2626;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    /* font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif; */
    font-family:Verdana, Geneva, Bitstream Vera Sans, Tahoma, sans-serif;	
	  font-size:12px;
    color: #111;
}

/* HEADER */
header{
    position: sticky;
    top: 0;
    background: var(--color-primario);
    height: 60px;
}

.titulo{
  font-size: 20px;
  font-weight: 600;
  white-space: normal; /* Allow text to break into multiple lines */
  text-align: center; /* Keep text centered */
  max-width: 100%; /* Control the max width of the title */
}

.navbar-brand {
    display: flex;
    align-items: center;
}

.navbar-brand img {
    margin-right: 10px;
}

.botones {
  font-size: 15px;
  font-weight: 350;
  background-color: rgba(192, 192, 192, 0.308);
}

/* Media query for small screens */
@media (max-width: 992px) {
    .navbar-brand {
        flex-direction: column;
        text-align: center;
        align-items: center;
    }
    
    .titulo {
        font-size: 1rem; /* Reduce the size of the title on small screens */
        margin-top: 0.5rem; /* Add some spacing between the logo and the title */
    }

    .navbar-brand img {
        margin-right: 8px;
        width: 50px;
    }
    
    .logo_fen{
        width: 200px !important;
    }

    .offcanvas-start{
        width: 85%; 
    }
}

.logo_fen{
    width: 260px;
}

.offcanvas-start {
    width: 400px; /* Default width for larger screens */
}

/* FOOTER */ 
.footer {
    position: fixed;
    bottom: 0;
    width: 100%;
    height: 40px;
    text-align: center;
    padding: 10px 0;
    background-color: #f8f9fa;
}

.footer span {
  font-size: 14px;
  color: #6c757d;
}

/* LOGIN Y REGISTRO */
.card-login {
    max-height: calc(85vh - 60px); /* Puedes ajustar este valor según sea necesario */
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    border: 2px solid #383E65;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.5);
    height: 100%;
    padding: 0px;
    flex: 1 1 auto;
  }

  .card-register {
    max-height: calc(85vh - 60px); /* Puedes ajustar este valor según sea necesario */
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    border: 2px solid #36b149;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.5);
    height: 100%;
    padding: 0px;
    flex: 1 1 auto;
  }
  
  .card-body-login {
    flex: 1 1 auto;
    overflow-y: auto;
  }

  .card-body-register {
    flex: 1 1 auto;
    overflow-y: auto;
  }

  .card-body-login::-webkit-scrollbar {
    width: 8px;
  }

  .card-body-register::-webkit-scrollbar {
    width: 8px;
  }
  
  .card-body-login::-webkit-scrollbar-thumb {
    background-color: #383E65;
    border-radius: 5px;
  }

  .card-body-register::-webkit-scrollbar-thumb {
    background-color: #36b149;
    border-radius: 5px;
  }
  
  .card-body-login::-webkit-scrollbar-thumb:hover {
    background-color: #383E65;
  }

  .card-body-register::-webkit-scrollbar-thumb:hover {
    background-color: #36b149;
  }

  .card-title-login {
    text-align: center;        /* Centra el texto horizontalmente */
    background-color: #383E65; /* Fondo azul primario (puedes cambiar el color) */
    color: #fff;               /* Texto blanco */
    padding: 10px;             /* Padding interno alrededor del texto */
    border-radius: 5px;        /* Esquinas redondeadas */
    width: 95%;                /* Ancho del 95% del contenedor */
    margin: 0 auto;            /* Centra horizontalmente el elemento */
    font-size: 16px;
    font-weight: 600;
  }

  .card-title-register {
      text-align: center;        /* Centra el texto horizontalmente */
      background-color: #36b149; /* Fondo azul primario (puedes cambiar el color) */
      color: #fff;               /* Texto blanco */
      padding: 10px;             /* Padding interno alrededor del texto */
      border-radius: 5px;        /* Esquinas redondeadas */
      width: 95%;                /* Ancho del 95% del contenedor */
      margin: 0 auto;            /* Centra horizontalmente el elemento */
      font-size: 16px; /* Ajustar el tamaño de fuente según tu preferencia */
      font-weight: 400;
  }

  /* CONTENIDO PRINCIPAL */
  .contenido{
    width: 100%;
    height: calc(100vh - 60px);
    background-color: #dad0cc07;
    background-size: contain;
    background-position: center center;
  }

  /* RECUPERAR CONTRASEñA */
  .d-none {
    display: none !important;
  }

  /* Estilos de los checkbox */
  .form-check-input {
    width: 1.5em;
    height: 1.5em;
    background-color: #ffffff;
    border: 2px solid #007bff;
    border-radius: 0.25em;
  }

  .form-check-input:checked {
      background-color: #007bff;
      border-color: #007bff;
  }

  .form-check-label {
      margin-left: 0.5em;
  }

  .form-check {
      display: flex;
      align-items: center;
  }

  /* MAPA */ 
  #map {
    height: calc(100% - 40px); /* Puedes ajustar la altura según tus necesidades */
    width: 100%;
  }

  /* SELECT */
  .custom-select-multiple {
    position: relative;
    width: 100%;
}

.custom-select-single {
    position: relative;
    display: inline-block;
    width: 100%;
}

.custom-select-multiple .select-items {
    display: none;
    position: absolute;
    background-color: #fff;
    border: 1px solid #ced4da;
    max-height: 120px; /* Altura máxima */
    overflow-y: auto; /* Habilitar scroll vertical */
    z-index: 99;
    width: 100%;
}

.custom-select-multiple .select-items div {
    padding: .375rem .75rem;
    display: flex;
    align-items: center;
}

.custom-select-multiple .select-items div:hover {
    background-color: #f1f1f1;
}

.select-selected {
    background-color: #f9f9f9;
    padding: 8px 16px;
    border: 1px solid #ccc;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.select-items {
    display: none;
    position: absolute;
    background-color: #f9f9f9;
    border: 1px solid #ccc;
    z-index: 99;
    width: 100%;
    max-height: 160px; /* Ajusta esta altura máxima según tus necesidades */
    overflow-y: auto; /* Habilita el scroll vertical cuando se supera la altura máxima */
}

.select-items div {
    padding: 4px 8px;
    cursor: pointer;
    font-size: 10px; /* Ajustar el tamaño de fuente según tu preferencia */
}

.select-items div input[type="checkbox"] {
    margin-right: 6px; /* Espacio entre el checkbox y el texto */
}

.select-items div:hover {
    background-color: #ddd;
}

.select-arrow {
    margin-left: 10px;
}

.card-title {
    text-align: center;        /* Centra el texto horizontalmente */
    background-color: #007bff; /* Fondo azul primario (puedes cambiar el color) */
    color: #fff;               /* Texto blanco */
    padding: 10px;             /* Padding interno alrededor del texto */
    border-radius: 5px;        /* Esquinas redondeadas */
    width: 95%;                /* Ancho del 95% del contenedor */
    margin: 0 auto;            /* Centra horizontalmente el elemento */
    font-size: 10px; /* Ajustar el tamaño de fuente según tu preferencia */
    font-weight: 400;
}

.btnBorrar {
    text-align: center;
}

.btnConocer {
    text-align: center;
}

.btnFomulario {
    text-align: center;
}

.boton {
    color: #6c757d;               /* Texto blanco */
    border-radius: 5px;        /* Esquinas redondeadas */
    width: 80%;                /* Ancho del 95% del contenedor */
    margin: 10px auto;            /* Centra horizontalmente el elemento */
    font-size: 10px; /* Ajustar el tamaño de fuente según tu preferencia */ 
}

.botonConocer {
    color: #fff;               /* Texto blanco */
    border-radius: 5px;        /* Esquinas redondeadas */
    width: 80%;                /* Ancho del 95% del contenedor */
    margin: 10px auto;            /* Centra horizontalmente el elemento */
    font-size: 10px; /* Ajustar el tamaño de fuente según tu preferencia */ 
}

.botonFomulario {
    color: #fff;               /* Texto blanco */
    border-radius: 5px;        /* Esquinas redondeadas */
    width: 80%;                /* Ancho del 95% del contenedor */
    margin: 10px auto;            /* Centra horizontalmente el elemento */
    font-size: 10px; /* Ajustar el tamaño de fuente según tu preferencia */ 
}

.table-icon {
    width: 15px;
    height: 15px;
}

.note-table td {
    vertical-align: top;
}

.note-table td:first-child {
    width: 10%;
}

#additional-fields {
    display: none;
}

.optgroup-label {
    font-weight: bold;
    margin-top: 10px;
}

.option {
    padding: 5px;
    cursor: pointer;
}

.option:hover {
    background-color: #ddd;
}

.select-items .optgroup .option {
    padding: 10px;
    cursor: pointer;
}

.select-items .optgroup .option:hover {
    background-color: #fff;
}

/* Custom styles for Criterio select  */
#custom-select6 .select-items .option,
#custom-select6 .select-items .optgroup .option {
    padding: 10px;
    cursor: pointer;
    background-color: #f9f9f9;
}

#custom-select6 .select-items .option:hover,
#custom-select6 .select-items .optgroup .option:hover {
    background-color: #ddd;
}

#custom-select6 .optgroup {
    padding: 0;
    border: none;
}

#custom-select6 .optgroup-label {
    font-weight: bold;
    padding: 10px;
    background-color: #f1f1f1;
    cursor: default;
    user-select: none;
}

/* Offcanvas */
.offcanvas-footer {
  margin-bottom: 5px; /* Ajusta este valor según sea necesario */
}

/* Opciones de Administración */
.administracion {
    display: flex;
    justify-content: space-around;
    width: 100%;
}

.icon {
    margin: 0 10px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: relative;
    cursor: pointer;
}

.icon a {
    width: 50px;
    height: 50px;
    background: #e8e8e8;
    border-radius: 50%;
    text-align: center;
    line-height: 50px;
    font-size: 24px;
    transition: background 0.5s;
}

.icon .tooltip {
    position: absolute;
    top: -60px;
    background: #e8e8e8;
    padding: 10px 18px;
    border-radius: 25px;
    font-weight: 600;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.5s, transform 0.5s;
    transform: translateY(10px);
}

.icon:hover .tooltip {
    opacity: 1;
    transform: translateY(-10px);
}

.icon .tooltip::before {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    width: 15px;
    height: 15px;
    background: #ccc;
    transform: translateX(-50%) rotate(45deg);
    transition: background 0.5s;
}

.icon.usuarios:hover a,
.icon.usuarios:hover .tooltip,
.icon.usuarios:hover .tooltip::before {
    background: #3B5999;
    color: #FFF;
}

.icon.granjas:hover a,
.icon.granjas:hover .tooltip,
.icon.granjas:hover .tooltip::before {
    background: #46c1f6;
    color: #FFF;
}

.icon.shapes:hover a,
.icon.shapes:hover .tooltip,
.icon.shapes:hover .tooltip::before {
    background: #E1306C;
    color: #FFF;
}

.icon.mapa:hover a,
.icon.mapa:hover .tooltip,
.icon.mapa:hover .tooltip::before {
    background: #1f9633;
    color: #FFF;
}

.offcanvas-footer .icon span.active {
    color: rgb(128, 128, 128);
}

/* Elimina el fondo oscuro del Offcanvas */
.offcanvas-backdrop {
    display: none; /* Oculta el fondo oscuro */
}

.offcanvas-footer {
    background-color: #D7DBDD;
}