@import url('https://fonts.googleapis.com/css2?family=Ubuntu:wght@300;400;500;700&display=swap');

:root{
    --blue-bdo: #02A5E2;
    --white : #fff;
    --grey:#f5f5f5;
    --black1:#222;
    --black2:#999;
}

body{
    min-height: 100vh;
    overflow-x:hidden ;
}

/* Asegurar que el contenedor <li> usa flexbox */
.logo-container {
    display: flex;
    justify-content: center;  /* Centrar horizontalmente */
    align-items: center;      /* Centrar verticalmente */
    height: 100px;      
       /* Ajusta según tu diseño */
}

/* Estilizar el <a> para evitar que afecte la alineación */
.logo-container a {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 100%;
}

.navegador{
    position: fixed;
    width: 260px;
    height: 100%;
    background: var(--blue-bdo);
    border-left: 10px solid var(--blue-bdo);
    transition: 0.5s;
    overflow: auto;
}

/* Opcional: Personalizar la barra de scroll para Webkit (Chrome, Edge, Safari) */
.navegador::-webkit-scrollbar {
  width: 6px;
}

.navegador::-webkit-scrollbar-track {
  background: var(--white);
}

.navegador::-webkit-scrollbar-thumb {
  background-color: transparent;
  border-radius: 3px;
}

.navegador.active{
    width: 80px;
}

.navegador ul{
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    padding-bottom: 20px;
}

.navegador.active ul li a img {

    width: 3rem !important;
    height: 1.5rem !important;
}

.navegador.active ul li a img {
    transition: width 0.3s ease, height 0.3s ease;
}

/* main */

.main{
    position: absolute;
    width: calc(100% - 290px);
    left: 280px;
    min-height: 100vh;
    background: var(--white);
    transition: 0.5s;
}

.topbar{
    width: 100%;
    height: 60px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 10px;
}

.toggle{
    position: relative;
    top: 0;
    width: 60px;
    height: 60px;
    background: transparent;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 2.5em;
    cursor: pointer;
}

/* Estilos Filtros */
.topbar2 {
  width: 100%;
  display: flex;
  padding: 1rem;
}

.form-filter2 {
  display: flex;
  width: 100%;
  gap: 1rem;
}

.form-section {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.izquierda {
  flex: 0 0 auto;
  align-items: center;
}

.centro {
  flex: 1;
  align-items: center;
  justify-content: center;
}

.derecha {
  flex: 0 0 auto;
  flex-direction: column;
  align-items:center;
  justify-content: center;
}



.form-filter2 button{
    position: relative;
}


.filter-input2 {
    width: 200px;
    border-radius: 40px;
    padding: 5px 20px;
    padding-left: 15px;
    font-size: 12.8px;
    outline: none;
    border: 1px solid #ccc;
    transition: border-color 0.3s ease;
}

.filter-input2:focus {
    border-color: #5a9ff5;
}

.filter-input2::placeholder {
    color: gray;
    opacity: 1;
    /* importante en algunos navegadores */
}

.button-filter2{
    display: inline-block;
    padding: 5px 25px;
    border: 1px solid #02A5E2;
    color: #fff;
    background: #02A5E2;
    border-radius: 15px;
    text-decoration: none;
    font-weight: 500;
    letter-spacing: 1px;
    transition: 0.7s;
    text-align: right;
    cursor: pointer;
    width: 100%;
    text-align: center;
}

.button-filter2:hover {
    background: #007bbd
}

.botones-derecha {
    margin-left: 155px;
    display: flex;
    gap: 10px;
}

.nuevo-izquierda {
    right: 0;
    margin-right: 10px;
    position: absolute;
}

.barra-filtros {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    
}

.barra-filtros2 {
    display: block;
    justify-content: space-around;
    margin-left: 35px;
    flex-wrap: wrap;
    width: 100%;
}
.barra-filtros form {
    display: flex;
    align-items: center;
}

.tabla-wrapper {
  max-height: 700px; /* Ajusta a lo que necesites */
  overflow-y: auto;
  overflow-x: auto;
  border-radius: 10px;
}

/* Para asegurar que la tabla no se desborde horizontalmente */
.tabla-wrapper table {
  width: 100%;
  min-width: 900px; /* o el ancho que cubra todas las columnas */
  border-collapse: collapse;
}

/* Opcional: fijar el header al hacer scroll */
.tabla-wrapper thead td {
  position: sticky;
  top: 0;
  background-color: white;
  z-index: 1;
  font-weight: bold;
}

.filter-input,
.filter-input2,
.button-filter,
.select-filter select {
  height: 30px; /* misma altura */

}

/* Si el select está dentro de un div (como #role_id_filter), puedes hacer que el div no estorbe */
.select-filter {
  display: inline-block;
}

.filter-input {
    width: 160px;
    border-radius: 40px;
    padding: 5px 20px;
    padding-left: 15px;
    font-size: 12.8px;
    outline: none;
    border: 1px solid #ccc;
    transition: border-color 0.3s ease;
}

.filter-input:focus {
    border-color: #5a9ff5;
}

.form-filter {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: start;
}

.filter-input::placeholder {
    color: gray;
    opacity: 1;
    /* importante en algunos navegadores */
}

.select-filter select {
    appearance: none;
    /* quita la flechita nativa */
    -webkit-appearance: none;
    -moz-appearance: none;
    padding: 0.5em 2.5em 0.5em 1em;
    border: 1px solid #ccc;
    border-radius: 40px;
    background-color: #fff;
    color: #7e7e7e;
    font-size: 12.8px;
    cursor: pointer;
    width: 200px;
    position: relative;
}

.select-filter {
    position: relative;
    display: inline-block;
}

.select-filter::after {
    content: '\25BC';
    /* flechita ▼ */
    position: absolute;
    top: 50%;
    right: 0em;
    transform: translateY(-50%);
    background: #02A5E2;
    color: white;
    padding: 0.4em 0.5em;
    border-radius: 40px;
    pointer-events: none;
    /* para que no bloquee clics */
    transition: all 0.25s ease;
}

.select-filter:hover::after {
    background: #007bbd;
}


.buscador{
    position: relative;
    width: 400px;
    margin: 0 10px;
    display: flex;
    justify-content: center;
    align-items: center;
}

/*
.buscador ion-icon:first-child {
    margin-right: 10px; 
}

*/

.buscador form{
    position: relative;
    width: 100%;
    margin-left: 10px;
}

.buscador form input{
    width: 100%;
    height: 40px;
    border-radius: 40px;
    padding: 5px 20px;
    padding-left: 35px;
    font-size: 18px;
    outline: none;
    border: 1px solid var(--black2);
}

.buscador form ion-icon{
    position: absolute;
    top: 9px;
    left: 10px;
    font-size: 1.2em;
}
.usuario{
   position: relative;
   width: 40px ;
   height: 40px;
   border-radius: 50%;
   overflow: hidden;
   cursor:pointer;

}

.usuario img{
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.cardBx{
    position: relative;
    width: 100%;
    padding: 20px;
    display: grid;
    grid-template-columns: repeat(4,1fr);
    grid-gap:30px;
}

.cardBx .card{
    position: relative;
    background: var(--white);
    padding: 30px;
    border-radius: 20px;
    display: flex;
    justify-content: space-between;
    cursor: pointer;
    box-shadow: 0 7px 25px rgba(0,0,0,0.08);
}

.cardBx .card .numeros{
    position: relative;
    font-weight: 500;
    font-size: 2.5em;
    color: var(--blue-bdo);
}

.cardBx .card .cardName{
    color: var(--black2);
    font-size: 1.1em;
    margin-top: 5px;
}


.cardBx .card .iconBx{
    font-size: 3.5em;
    color: var(--black2);
}

.cardBx .card .iconBx img{
    width: 5rem;
    height: 5rem;
}

.cardBx .card:hover{
    background: var(--blue-bdo);
}

.cardBx .card:hover .numeros,
.cardBx .card:hover .cardName,
.cardBx .card:hover .iconBx{
    color: var(--white);
}

/* Graficos */

.graficosBx{
    position: relative;
    width: 100%;
    padding: 20px;
    display: grid;
    grid-template-columns: 1fr 2fr ;
    grid-gap: 30px;
    min-height: 200px;
}


.graficosBx .box{
    position: relative;
    padding: 20px;
    width: 100%;
    box-shadow: 0 7px 25px rgba(0,0,0,0.08);
    border-radius: 20px;
}

.graficosBx2{
    position: relative;
    width: 150%;
    padding: 30px;
    display: grid;
    grid-template-columns: 1fr 0.5fr;
    grid-gap: 30px;
    min-height: 200px;
}

.graficosBx2 .box{
    position: relative;
    padding: 20px;
    width: 100%;
    box-shadow: 0 7px 25px rgba(0,0,0,0.08);
    border-radius: 20px;
}


.cardinicio{
    position: relative;
    display: grid;
    min-height: 500px;
    background: var(--white);
    padding: 20px ;
    box-shadow: 0 7px 25px rgba(0,0,0,0.08);
    border-radius: 20px;
    margin-left: 22px;
    width: 96%;
}


.detalles .recientes{
    position: relative;
    display: grid;
   height: auto;
   background: var(--white);
   padding: 20px ;
   box-shadow: 0 7px 25px rgba(0,0,0,0.08);
   border-radius: 20px;
}

.detalles .recientes.tax{
    position: relative;
    display: grid;
   height: auto;
   background: var(--white);
   padding: 20px ;
   box-shadow: 0 7px 25px rgba(0,0,0,0.08);
   border-radius: 20px;
}

.cardHeader{
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    position: relative; 
}

.cardHeader.Home{
    display: flex;
    justify-content: space-evenly;
    align-items: center;
    flex-direction: column;
    text-align: center;
}

.cardHeader {
    margin-bottom: 20px;
}


.cardHeader-left,
.cardHeader-right {
  width: 40px; /* ajusta según el tamaño del ícono */
  display: flex;
  justify-content: center;
  align-items: center;
}

.cardHeader-center {
  flex-grow: 1;
  text-align: center;
}
.cardHeader-left,
.cardHeader-right {
  width: 40px; /* ajusta según el tamaño del ícono */
  display: flex;
  justify-content: center;
  align-items: center;
}


.cardHeader p{
    font-size: 1.5rem;
    width: 80%;
}

.cardHeader h1{
    font-weight: 600;
    font-size: 3rem;
    color: var(--blue-bdo);
}


.cardHeaderTax{
    display: flex;
    align-items: start;
    text-align: start;
}

.cardHeaderTax ion-icon{
   font-size: 35px;
}

.cardHeaderTax p{
    font-size: 1.5rem;
    width: 80%;
}

.cardHeaderTax h1{
    font-weight: 600;
    font-size: 3rem;
    color: var(--blue-bdo);
}

.btn{
    position: relative;
    padding: 5px 10px;
    background: var(--blue-bdo);
    text-decoration: none;
    color: var(--white);
    border-radius: 6px;
}

.detalles table{
    width: 100%;
    height: 80%;
    border-collapse: collapse;
    margin-top: 10px;
}


.detalles table thead td{
    font-weight: 600;
}

.detalles .recientes table tbody tr:hover{
    background: var(--blue-bdo);
    color: var(--white);
}

.detalles .recientes table tbody .tr-pagination:hover{
    background: var(--white);
    color: var(--black1);
}

.detalles .recientes table tbody tr:hover td:first-child {
    border-top-left-radius: 20px;
    border-bottom-left-radius: 20px;
}

.detalles .recientes table tbody tr:hover td:last-child {
    border-top-right-radius: 20px;
    border-bottom-right-radius: 20px;
}


.detalles .recientes table tbody tr:hover ion-icon {
    color: var(--white);
    cursor: pointer;
}

.estado{
    padding: 2px 4px;
    background: #8de02c;
    color: var(--white);
    border-radius: 4px;
    font-size: 14px;
    font-weight: 500;
}

.detalle-row {
  background-color: transparent; /* Detalles con fondo transparente */
}

.detalle-hint {
  font-style: italic;
  color: #888;
}

.toggle-icon {
  margin-right: 6px;
  transition: transform 0.3s ease;
}


.icon ion-icon {
    pointer-events: none;
}
.icon {
    cursor: pointer;
}






/* responsive */




@media (max-width:991px){


    .graficosBx{
        grid-template-columns: 1fr;
        height: auto;
    }

    .navegador.active{
        width: 260px;
        left: 0;
    }

    .main{
        width: 100%;
        left: 0;
    }

    .main.active{
        left: 260px;
    }

    .cardBx{
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width:768px){
    .detalles{
        grid-template-columns: repeat(1,1fr);
    }

    .recientes{
        overflow-x: auto;
    }

    .estado{
        white-space: nowrap;
    }

    .cardinicio{
        width: 100%;
        margin: 0px;

    }
}

@media (max-width:480px){

    .navegador.active ul li a img {
        width: 7rem !important;
        height: 3rem !important;
    }

    .cardHeader h1 {
        font-weight: 600;
        font-size: 2rem;
        color: var(--blue-bdo);
    }

    .cardHeader p {
        font-size: 1,5rem;
    }

    .cardBx{
        grid-template-columns: repeat(1,1fr);
    }

    .cardHeader{
        font-size: 15px;
    }

    .usuario{
        min-width: 40px; 
    }

    .navegador{
        width: 100%;
        left: -100%;
        z-index: 1000;
    }

    .navegador.active{
        width: 100%;
        left: 0;
    }

    .toggle{
        z-index: 10001;
    }

    .cardinicio{
        width: 100%;
        margin: 0px;

    }

    }