@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@100;200;300;400;500;600;700;800;900&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@0,100..900;1,100..900&family=Mozilla+Headline:wght@200..700&family=Mozilla+Text:wght@200..700&family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@0,100..900;1,100..900&family=Mozilla+Headline:wght@200..700&family=Mozilla+Text:wght@200..700&family=Open+Sans:ital,wght@0,300..800;1,300..800&family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap');
    :root{
      --primary-dark: #003164;
      --primary: #004894;
      --primary-light: #0E5AA6;
      --accent: #FF8A00;
      --accent-light: #F2832A;
      --white: #FFFFFF;
      --gray-light:#f8f9fa;
      --gray: #6c757d;
      --dark: #212529;
      --border-color: #E0E0E0;
      --glass: rgba(255, 255, 255, 0.25);
      --glass-dark: rgba(0, 0, 0, 0.05);
      --shadow-light: 0 4px 25px rgba(0, 49, 100, 0.08);
      --shadow-medium: 0 8px 40px rgba(0, 49, 100, 0.12);
      --shadow-heavy: 0 20px 60px rgba(0, 49, 100, 0.25);
    }

.container-fluid {

    flex: 1;
    height: 95vh;
    background-color: var(--color-bg);
    margin: 0;
    padding: 0;

}
.table {
    font-size: 0.85rem;
}
.table .thead-light th {
    color: #495057;
    background-color: #e9ecef;
    border-color: #dee2e6;
}
.header {
 background-color: rgba(255, 255, 255, 0.196);
    width: 100%;
    padding: 10px 20px;
    display: flex;
    align-items: center;    
    justify-content: space-between;
    flex-wrap: nowrap;          
    font-family: 'Franklin Gothic Medium', 'Arial Narrow', Arial, sans-serif;
    font-weight: 200;
    box-sizing: border-box;
}
#header-title b,
.header .col b {
    font-size: 14px;       
    font-weight: 400;      
    color: var(--primary-dark);
    font-family: 'Montserrat', sans-serif;
}
.header.row {
    margin: 0 !important;
}

.header .col-3,
.header .col-5,
.header .col-4 {
    padding: 0 !important;
    display: flex;
    align-items: center;
}

.user-menu {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: flex-end;
}


.user-profile {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    padding: 6px 10px;
    border-radius: 8px;
    transition: background 0.2s ease;
    
}
.user-profile:hover {
    background: rgba(0, 49, 100, 0.08);
}
.user-profile > div > div:first-child {
    font-size: 14px;
    font-weight: 500;
    color: var(--primary-dark);
    font-family: 'Montserrat';
}


.user-profile > div > div:last-child {
    font-size: 12px;
    color: var(--gray);
    font-weight: 400;
    
    
}


.user-dropdown {
    display: none;
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    border: 1px solid var(--border-color);
    min-width: 200px;
    z-index: 9999;
    overflow: hidden;
    animation: fadeDown 0.2s ease;
}

.user-dropdown.open {
    display: block;
}

.user-dropdown-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 16px;
    color: var(--primary-dark);
    text-decoration: none;
    font-size: 13px;
    font-family: 'Montserrat', sans-serif;
    font-weight: 500;
    transition: background 0.2s ease;
}

.user-dropdown-item:hover {
    background: rgba(0, 49, 100, 0.06);
    color: var(--primary-dark);
}

.user-dropdown-item.danger {
    color: #dc3545;
}

.user-dropdown-item.danger:hover {
    background: rgba(220, 53, 69, 0.06);
}

.user-dropdown-divider {
    height: 1px;
    background: var(--border-color);
    margin: 4px 0;
}

@keyframes fadeDown {
    from { opacity: 0; transform: translateY(-6px); }
    to   { opacity: 1; transform: translateY(0); }
}

.user-avatar {
    background-color: var(--primary);
    color: white;
    border-radius: 50%;
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 600;
    flex-shrink: 0;
}
.main-content {
   flex: 1;
    min-width: 0; 
    display: flex;
    flex-direction: column;
    transition: all 0.3s ease;
    overflow-x: hidden;
    padding: 0px 15px;
    }

    .toggle-btn {
       border: none;
      color: black;
      font-size: 15px;
      cursor: pointer;


    }

    .content {
      flex: 1;
      padding-right: 5px;
      padding-left: 0%;
      background-color: #ffffff;
      overflow-y:hidden;
    }



.main-wrapper {
     display: flex;
    width: 100%;
    height: 100vh;
    overflow: hidden;    

}

.sidebar {
  position: relative;
  color: rgb(210, 223, 213);
  transition: transform 0.3s ease;
  z-index: 1000;
  box-shadow: 4px 0 10px rgba(0, 0, 0, 0.1);
  background-color: var(--white);
  width: 250px;
  height: 100vh;
  flex-shrink: 0;
  overflow-y: hidden;
  overflow-x: hidden;
}


   
.sidebar.collapsed {
    width: 85px !important;
    overflow: visible;
}

.sidebar.collapsed ~ .main-content #base {
    width: 100%;
    min-width: 0;
    box-sizing: border-box;
    max-width: 100%;
    transition: all 0.3s ease;

}

.sidebar.collapsed .menu-item {
    position: relative;
    z-index: 3000;
    align-items: center;
}

.sidebar.collapsed .menu-link span {
    display: none;
}

.sidebar.collapsed .sidebar-header {
    padding: 1rem 0.5rem;
    align-items: center;
    padding-bottom: 2px;
}

.sidebar.collapsed .sidebar-header h5,
.sidebar.collapsed .sidebar-header h2 {
    display: none;
}

.sidebar.collapsed .brand {
    justify-content: center;
    width: 100%;
}
.sidebar.collapsed .brand-full {
    display: none;
}

.sidebar.collapsed .brand-collapsed {
    display: block;
    
}


.sidebar.collapsed .brand img {
    height: 65px;
    padding-left: 1px;
    border-radius: 50px;
    
  
  
}

.sidebar.collapsed .sideheader-divider {
    display: none;
}

.sidebar.collapsed ~ .main-content {
    margin-left: 0px !important;
    transition: margin-left 0.3s ease;
}

.sidebar.collapsed .menu-item:hover .menu-link {
    background-color: var(--glass);
    border-radius: 6px 0 0 6px;
    color: var(--primary-dark);
    transition: all 0.3s ease;
    position: relative;
    z-index: 5;
}

.sidebar.collapsed .menu-item:hover i {
    color: var(--primary-light)
    
}
.sidebar.collapsed .menu-link.has-dropdown::after {
     display: none;
   
}
.sidebar.collapsed .menu-item:hover::after {
 content: "\f078";
    content: attr(data-title);
   position:absolute;
    left: 45px;
    top: 50%;
    transform: translateY(-45%);
    background-color:white; 
    color: var(--primary-dark); 
    font-weight: 800;
    padding: 12px 14px;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.85rem;
    font-weight: 600;
    white-space: nowrap;
    border-radius: 1px 5px 5px 1px ;
    z-index: 5;
    transition: all 0.5s ease;
    box-shadow: 4px 4px 12px rgba(0, 0, 0, 0.12);
    margin-left: -1px;
    pointer-events:none;
} 


.sidebar.collapsed .dropdown-item:hover {
    
    padding-left: 10px;
    
}

.sidebar.collapsed .menu-item:hover .dropdown {
    position: absolute;
    left: 40px;
    top: 50px;
    font-weight: 800;
    background-color: white;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    padding: 10px;
    border-radius:   1px 5px 5px 1px ;
    transition: all 0.5s ease;
    z-index: 10000;
    max-height: none;
    display: block;
    
}

.sidebar.collapsed .dropdown-item {
    padding: 5px;
    white-space: nowrap;
    
}

.sidebar.collapsed .menu-item:hover > .tooltip-wrapper {
    display:block;
}

.sidebar.collapsed .dropdown-item:hover {
    background-color: rgba(52, 152, 219, 0.2);
    border-radius: 5px;
    padding-left: 2px;
}

   
.sidebar-header {
  background-color: rgba(18, 73, 144, 0.055);
    padding: 1.5rem 1rem 1rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0;
    width: 100%;
    margin: 0;
    
}

.brand img {

    height: 50px;
    width: auto;
    flex-shrink: 0;
    padding-left: 13px;
    border-radius: 50px;

}
.brand-full {
    display: block;
    height: 40px;
}

.brand-collapsed {
    display: none;
    height: 35px;
}

.sidebar-header h5 {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--primary-dark);
    font-family: 'Montserrat', sans-serif;
    letter-spacing: -0.02em;
    line-height: 1.3;
    margin: 0;
    white-space: nowrap;
}

.sidebar-header h2 {
  text-align: center;
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--accent);
    font-family: 'Montserrat', sans-serif;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    opacity: 0.6;
    margin: 0;
    padding-left: 0.25rem;
}
 /* .sideheader-divider {
    height: 1px;
    background: linear-gradient(to right, var(--primary-dark), transparent, var(--primary-dark));
    opacity: 0.3;
    margin-top: 0.5rem;
}  */


.menu-container {
  width: 100%;
  display: flex;
  height: 100%;
  flex-direction: column;
  align-items: center;
}


/*------------------------Estilos del menù con submenus despegable--------------*/
.sidebar.collapsed .menu{
 

padding-left: 1rem;


  

}

  .menu {
  padding-top: 5%;
  width: 100%;
  display: flex;
  flex-direction:column;
  font-family:'Montserrat', sans-serif;
  font-weight: 700;


  }
  .dropdown {

            font-weight: 700;
            max-height: 0;
            overflow: hidden;
            background-color: var(--white);
            transition: max-height 0.4s ease, padding 0.3s ease;
            padding: 0;
        }

  .dropdown-item {
            font-family: 'Montserrat', sans-serif;
            font-size: 14px;
            font-weight: 600;
            display: block;
            padding: 5px 50px 5px 50px;
            color:var(--primary-dark);
            text-decoration: none;
            transition: all 0.3s ease;
            position: relative;
            list-style: none;

        }

        .dropdown li {
          list-style: none;
        }

        .dropdown-item::before {

            position: absolute;
            left: 30px;
            opacity: 0;
            transition: all 0.3s ease;
            list-style: none;
        }

        .dropdown-item:hover {
            background-color: rgba(52, 152, 219, 0.2);
            color: var(--primary-dark);
            padding-left: 80px;
        }

        .dropdown-item:hover::before {
            opacity: 1;
            left: 35px;
        }

       .menu-item {

            position: relative;
            border-bottom: 1px solid rgba(255,255,255,0.05);
            list-style: none;
            overflow: visible;
        }

         .menu-item:hover .dropdown {
            max-height: 300px;
            padding: 10px 0;
        }


        .menu-link:hover {
            background-color: rgba(52, 152, 219, 0.2);
            transform: translateX(1px);
     padding-left: 20px;
        }

        .menu-link.has-dropdown::after {
            font-family: "Font Awesome 5 Free";
  content: "\f078";
            margin-left: auto;
            padding-right: 2px;
            font-size: 0.7rem;
            transition: transform 0.3s ease;
        }

        .menu-item:hover .menu-link.has-dropdown::after {
            transform: rotate(180deg);
        }

        .menu-link i {
            margin-right: 15px;
            width: 20px;
            font-size: 1.2rem;
        }

 .menu-link {
  width: 100%;
  display: flex;
  align-items: center;
  padding: 0.5rem 0.8rem;
  color: var(--primary-dark);
  text-decoration: none;
  border-radius: 0.3rem;
  transition: all 0.3s ease;
  cursor: pointer;
  z-index: 3;
}





.menu-link span {
  color: var(--primary-dark);
  font-size: 0.9rem;
  font-weight: 600;
  transition: all 0.3s ease;
}






/*--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------*/



.circle-container {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  overflow: hidden;
}

.circle-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.title-underline {
  width: 150px;
  height: 1px;
  margin: 5px auto;
}

#user-subtitle{
  font-size: 12px;
}

/* Asignacion tamaño */
#user{
  width: 200px;
  height: 190px;
}

#session{
  width: 200px;
  height: 90px;
}

#nav_container{
  width: 200px;

  overflow-y: auto;
  scrollbar-width: thin; 
}

#nav_container::-webkit-scrollbar {
  width: 2px; 
}

/*
  Base
*/

.col.px-4 {              
  min-width: 0;
  max-width: 100%;
}

#base {
   position: relative;
  width: 100%;          
  min-width: 0;        
  min-height: 89vh;
  max-height: 89vh;
  overflow-y: auto;
  overflow-x: hidden;   
  scrollbar-width: none;
  transition: flex-grow 0.3s ease-in-out;
  box-sizing: border-box;
}



#base::-webkit-scrollbar {

    display: none; 
}

/*modal*/

 .card-body th{
  background-color: var(--gray-light);
  text-align:left;
  font-size: 14px;
  font-weight: 600;
  color: var(--primary-dark);
  line-height: 2;
  width: 9.09%; 
  padding: 5px 2px;
  word-wrap: break-word;

}

.card-body td{
  font-size: 11px;
  font-weight: 400;
  font-family: 'Montserrat', sans-serif;
  text-align: left;
 
  
}
.card-body .total{
  text-align: left;
  font-size: 12px;
  font-weight: 700;
  color: var(--accent);
  background-color: var(--gray-light);
}

.title-modal{
  text-align:left;
  font-size: 16px;
  font-weight: 400;
  color: var(--primary-dark);
   font-family: 'Montserrat', sans-serif;

}

.action-button-wrapper {
        display: inline-block;
        position: relative;
        transition: transform 0.3s ease;
    }


    .action-link {
        display: block;
        padding: 12px;
        border-radius: 12px;
        background: linear-gradient(145deg, #f8f9fa, #e9ecef);
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
        transition: all 0.3s ease;
        text-decoration: none;
    }

 
    .action-icon {
        width: 50px;
        height: auto;
        transition: transform 0.3s ease;
        filter: brightness(1);
    }

 
    .action-button-wrapper:hover {
        transform: translateY(-5px);
    }

    .action-link:hover {
        box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
        background: linear-gradient(145deg, #ffffff, #f0f2f5);
    }

  
    .action-link:hover .action-icon {
        transform: scale(1.1);
        filter: brightness(1.1);
    }

    .action-label {
        display: block;
        margin-top: 8px;
        font-size: 12px;
        color: #6c757d;
        font-weight: 500;
        opacity: 0;
        transition: opacity 0.3s ease;
    }

    .action-button-wrapper:hover .action-label {
        opacity: 1;
    }


    .action-link:active {
        transform: scale(0.95);
    }
  


    @media (max-width: 768px) {
        .action-icon {
            width: 40px;
        }
        
        .action-link {
            padding: 10px;
        }
        
        .action-label {
            font-size: 11px;
        }
    }
 
    .modal-table{
      width: 30%;
      font-size: 11px; 
      margin-left: auto;
      margin-right: 0;

    }
  .btn-delete{
            background-color: var(--gray-light);
            color: red;
            box-shadow: 0 8px 25px rgb(230, 216, 216);
        }
        .btn-delete:hover{
            transform: translateY(-3px);
            color: red;
    
         box-shadow: 0 8px 25px rgb(230, 216, 216);


        }

        .btn-sm{
            padding: 8px 16px;
            border: none;
            border-radius: 5px;
            font-family: 'Montserrat', sans-serif;
            font-weight: 600;
            font-size: 0.8rem;
            cursor: pointer;
            transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
            text-decoration: none;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            position: relative;
            overflow: hidden;
            letter-spacing: 0.3px;
        }

/* Botón flotante de excel */
.floating-btn {
    position: fixed;
    bottom: 85px;
    right: 30px;
    background: none;
    backdrop-filter: blur(20px) saturate(1.4);
    -webkit-backdrop-filter: blur(20px) saturate(1.4);
    border-radius: 50px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15),0 0 0 0 rgba(0, 0, 0, 0.08);
    display: flex;
    align-items: center;
    z-index: 1000000;
    transition:
    transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1),
    box-shadow 0.35s ease,
    background 0.25s ease,
    border-color 0.25s ease;
    cursor: pointer;
    animation: slideInUp 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    will-change: transform;
        animation: floatPulse 3s infinite;
}


.floating-btn::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 50px;
    box-shadow: 0 0 0 0 rgba(0, 0, 0, 0.12);
    animation: pulse 2.8s ease-out infinite;
    pointer-events: none;
}

.floating-btn:hover {
    transform: translateY(-6px) scale(1.03);
    box-shadow:
        0 8px 24px rgba(0, 0, 0, 0.18),
        0 2px 6px rgba(0, 0, 0, 0.10);
    background: rgba(255, 255, 255, 1);
    border-color: #ffffffff;
}

.floating-btn:hover::after {
    animation: none;
}

.floating-btn:active {
    transform: translateY(-2px) scale(0.97);
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.14);
    transition: transform 0.1s ease, box-shadow 0.1s ease;
}

.floating-btn .action-icon {
    transition:
        transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1),
        filter 0.3s ease;
    filter: brightness(1);
}

.floating-btn:hover .action-icon {
    transform: scale(1.45) rotate(-4deg);
    filter: brightness(1.1);
}

.floating-btn .action-label {
    color: #333;
    font-weight: 500;
    font-size: 16px;
    margin: 0;
    transition:
        letter-spacing 0.3s ease,
        opacity 0.3s ease;
}

.floating-btn:hover .action-label {
    letter-spacing: 0.02em;
}

.floating-btn .action-link {
    display: flex;
    border-radius: 55px;
    align-items: center;
}

@keyframes slideInUp {
    from {
        transform: translateY(100px) scale(0.85);
        opacity: 0;
    }
    to {
        transform: translateY(0) scale(1);
        opacity: 1;
    }
}

@keyframes pulse {
    0%   { box-shadow: 0 0 0 0 rgba(0, 0, 0, 0.10); }
    60%  { box-shadow: 0 0 0 10px rgba(0, 0, 0, 0); }
    100% { box-shadow: 0 0 0 0 rgba(0, 0, 0, 0); }
}
   
/*  -----------------------
    BOTÓN PARA DESCARGAR VALIDACIONES INDIVIDUALES 
--------------------------------------- */ 

.btn-excel {
  position: absolute;
  bottom: 20px;
  right: 20px;
  border: none;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.btn-excel:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
    background: var(--glass);
    border-color: #ffffffff;
}

.excel-logo{
    width: 35px;
    height: 35px;
}


/*Estilos de las Cards*/


.card {
  display:flex;

}

.card-container {
  flex: 1;
  margin: 4px;
  overflow: hidden;
}

.card-container .card-img{
  border-radius: 0 0 0 0;
}


/*-----------------------------------estilos del footer-------------------------------------------------------------------------------------------------------*/


.footer {
   position: fixed;
  bottom: 0;
  left: 0;
  height: auto;
  width: 100%;
  color: rgb(255, 255, 255);
  padding: 4px 0;        /* ← reduce el padding, antes era 12px */
  text-align: center;
  font-family: 'Open Sans', sans-serif;
  z-index: 1000;
  box-shadow: 0 -2px 5px rgba(0, 0, 0, 0.1);
}

.footer-content {
  max-width: 100%;

  margin: auto;
 ;

  gap: 5px;

}

.footer-text {
  font-size: 12px;
  font-weight: 300;
  padding-left: 20px;
}

.footer-copyright {
  font-size: 12px;
  font-weight: 300;
  padding-right: 15px;
}

body {
  margin-bottom: 25px;
}

@media (max-width: 768px) {
  .footer {
    padding: 4px 0;

  }

  .footer-text {
    font-size: 10px;
  }

  .footer-copyright {
    font-size: 10px;
  }

  body {
    margin-bottom: 30px;
  }

  .navbar{
    padding: 5px;
    font-size: 10px;
  }
  .header {
    padding: 5px;
    font-size: 10px;

  }
  
  
}

@media (max-width: 992px) {
    .menu-container{
        padding-right: 20px;
        align-items: center;    
    }

    .navbar-toggler-icon {
        display: none;
    }

    .sidebar {
        width: 95px !important;
        overflow: visible;
    }

    
      
.sidebar {
    width: 85px !important;
    overflow: visible;
}

.sidebar ~ .main-content {
    margin-left: 0; 
    margin-right: 0;

}

.sidebar .menu-item {
    position: relative;
    z-index: 3000;
    align-items: center;
}

.sidebar .menu-link span {
    display: none;
}

.sidebar .sidebar-header {
    padding: 1rem 0.5rem;
    align-items: center;
    padding-bottom: 2px;
}

.sidebar .sidebar-header h5,
.sidebar .sidebar-header h2 {
    display: none;
}

.sidebar .brand {
    justify-content: center;
    width: 100%;
}
.sidebar .brand-full {
    display: none;
}

.sidebar .brand-collapsed {
    display: block;
    
}


.sidebar .brand img {
    height: 65px;
    padding-left: 1px;
    border-radius: 50px;
  
  
}

.sidebar .sideheader-divider {
    display: none;
}

.sidebar ~ .main-content {
    margin-left: 0px !important;
    transition: margin-left 0.3s ease;
}

.sidebar .menu-item:hover .menu-link {
    background-color: var(--glass);
    border-radius: 6px 0 0 6px;
    color: var(--primary-dark);
    transition: all 0.3s ease;
    position: relative;
    z-index: 5;
}

.sidebar .menu-item:hover i {
    color: var(--primary-light)
    
}
.sidebar .menu-link.has-dropdown::after {
     display: none;
   
}
.sidebar .menu-item:hover::after {
 content: "\f078";
    content: attr(data-title);
   position:absolute;
    left: 45px;
    top: 50%;
    transform: translateY(-45%);
    background-color:white; 
    color: var(--primary-dark); 
    font-weight: 800;
    padding: 12px 14px;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.85rem;
    font-weight: 600;
    white-space: nowrap;
    border-radius: 1px 5px 5px 1px ;
    z-index: 5;
    transition: all 0.5s ease;
    box-shadow: 4px 4px 12px rgba(0, 0, 0, 0.12);
    margin-left: -1px;
    pointer-events:none;
} 


.sidebar .dropdown-item:hover {
    
    padding-left: 10px;
    
}

.sidebar .menu-item:hover .dropdown {
    position: absolute;
    left: 40px;
    top: 50px;
    font-weight: 800;
    background-color: white;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    padding: 10px;
    border-radius:   1px 5px 5px 1px ;
    transition: all 0.5s ease;
    z-index: 10000;
    max-height: none;
    display: block;
    
}

.sidebar .dropdown-item {
    padding: 5px;
    white-space: nowrap;
    
}

.sidebar .menu-item:hover > .tooltip-wrapper {
    display:block;
}

.sidebar .dropdown-item:hover {
    background-color: rgba(52, 152, 219, 0.2);
    border-radius: 5px;
    padding-left: 2px;
}

}




/*
Tabla
*/
#show-section {
  display: flex;
  align-items: center;
}

#show-section span,
#show-select {
  font-size: 13px;
  margin-right: 8px;
}

#option-menu{
  display: flex;
  align-items: center;
}

.input-group .custom-input {
  font-size: 14px;
  height: 35px;
}

.input-group .custom-input:focus, #show-select:focus {
  box-shadow: none;
}

.input-group .custom-button {
  font-size: 14px;
}

.input-group .input-group-text {
  text-align: end;
  font-size: 14px;
  width: 80px;
  height: 35px;
}

.foot-table{
  font-size: 13px;
}

ul.pagination{
  border-color: none;
  justify-content: end;
  margin: 0;
}

ul.pagination li a{
  font-size: 13px;

}

ul.pagination li a:hover, .input-group .custom-button:hover{
  box-shadow: none;
}

/* button.btn-primary {
  height: 35px;
} */

i.bi-save{
  color:darkblue;
}

i.bi-filetype-pdf{
  color: red;
}

span.badge{
  border-radius: 8px;
  font-size: 13px;
  text-align: center;
  
}
.badge {
            padding: 6px 10px;
            border-radius: 20px;
            font-size: 12px;
            font-weight: 500;
        }
        
        .badge-success {
            background: rgba(40, 167, 69, 0.15);
            color: #28a745;
        }
        
        .badge-warning {
            background: rgba(255, 193, 7, 0.15);
            color: #ffc107;
        }

        .badge-danger {
            background: rgba(255, 7, 7, 0.15);
            color: #ff0707;
        }
i.bi-archive-fill{
  color: blueviolet;
}

i.bi-save, i.bi-filetype-pdf,
i.bi-pencil-square, i.bi-trash{
  font-size: 20px;
  text-decoration: none;
}
/*
submenu de imagenes
*/

.img-submenu{
  width: 40px;
  height: 40px;
  margin: 4px 50px 4px 50px;
}

.submenu{
  display:flex;
  justify-content: center;
  width: auto;
  border-bottom-left-radius: 10px;
  border-bottom-right-radius: 10px;
}

.image-container {
  transition: transform 0.3s;
}

.image-container:hover {
  transform: scale(1.2);
}

/*
Formularios
*/

.input-group .label-custom{
  text-align: end;
  font-size: 14px;
  width: 120px;
}

input.custom-input:focus, select.custom-input:focus,
textarea.custom-input:focus{
  box-shadow: none;
}


/*
Cambio de modo
*/

/* -----------------------Estilos para el modo claro------------------ */
body {
  background-color: #fff;
  color: #2A2F3D;
  overflow-x: hidden;
}

/*Navegación*/
 #toggleSidebar{
  color: #2A2F3D;
  font-size: 20px;
}


 #titPrin{

  color: var(--primary-dark);
  font-weight: 300;
}



 .nav-item{
  color: #c81b15;
}

 .navbar{

  
  box-shadow: 5 5px 20px rgba(42, 47, 61, 0.1);
  border-radius: 8px; 


}
.navbar a{
    font-size: 16px;
    font-family: 'Montserrat', sans-serif;
    font-weight: 500;

}
.navbar:hover{
    box-shadow: 5 5px 20px rgba(42, 47, 61, 0.1);
    transition: 0.3s ease;
    color: #01080e;
    cursor: pointer;
  

}

 ul.sub-menu li a, ul.nav li div a{
  color: #2A2F3D;
}

 .nav-item-content:hover,
 ul.sub-menu li a:hover,
 ul.nav li div a:hover{
  color: #5D87FF;
}

 ul.sub-menu li a:hover{
  color: #5D87FF;
}

 .title-underline {
  background-color: #fff; /* Puedes ajustar el color de la línea según tus necesidades */
}

 #nav_container{
  scrollbar-color: #5D87FF #F5F5F5; /* Color de la barra y el fondo de la pista */
}

 #nav_container::-webkit-scrollbar-track {
  background-color: #F5F5F5; /* Color de fondo de la pista */
}

 #nav_container::-webkit-scrollbar-thumb {
  background-color: #5D87FF; /* Color de la barra de desplazamiento */
}

/*Base*/

 #base {

  background-color: #fff;
  scrollbar-color: #abc0da83 #F5F5F5;
  box-shadow: 0 0px 20px rgba(42, 47, 61, 0.1);
}

 h5.num, p.cont{
  color: #ffffff;
}

 #base::-webkit-scrollbar-track {
  background-color: #F5F5F5; /* Color de fondo de la pista */
}

 #base::-webkit-scrollbar-thumb {
  background-color: #5D87FF; /* Color de la barra de desplazamiento */
}

 .card-footer a{
  color: #2A2F3D;
}

/* Tabla */

 .input-group .custom-input:focus, #show-select:focus {
  border-color: #5D87FF;
}

 .input-group .input-group-text {
  color: #fff;
  background-color: #5D87FF;
}

 ul.pagination li a{
  color: #2A2F3D;
}

 ul.pagination li a:hover, .input-group .custom-button:hover{
  color: #fff;
  background-color: #5D87FF;
}

 /* button.btn-primary {
  border-color: #2A2F3D;
  background-color: #fff;
  color: #2A2F3D;
} */

 /* button.btn-primary:hover{
  border-color: #5D87FF;
  background-color: #5D87FF;
  color: #fff;
} */

 i.bi-pencil-square,  i.bi-trash{
  color: #2A2F3D;
}

/* submenu de imagenes */

 .submenu{
  box-shadow: 0 0px 2px rgba(0, 0, 0, 0.1);
}

/* Formularios */

 .input-group .label-custom{
  color: #fff;
  background-color: #5D87FF;
}

 input.custom-input:focus,  select.custom-input:focus,
 textarea.custom-input:focus{
  border-color: #5D87FF;
}

 select.custom-input option::-moz-selection {
  background-color: #5D87FF;
}

 select.custom-input option::selection {
  background-color: #5D87FF;
}

/* Footer */

 #boton:active {
  border-color: #5D87FF;
  background-color: #5D87FF;
}

 #footer{
  width: 100%;
  height: auto !important;  
  padding: 10px 0;
  background-color: var(--primary-dark);
  color: #ffffff;
  box-shadow: 0 20px 20px rgba(42, 47, 61, 0.1);
}

 #btnChange{
  border-color: none;
  background-color: none;
  width: auto;
  height: auto;
}

 #btnChange:hover{
  color: none;
}

 #modeIcon{
  color: #2A2F3D;
}

.light #modeIcon:hover{
  color: #5D87FF;
}

@keyframes loading{
from{
transform: rotate(0turn);
}to{
transform: rotate(1turn);
}
}

/*/checkbox/*/
@supports(-webkit-appearance: none) or (-moz-appearance: none) {
  input[type='checkbox'],
  input[type='radio'] {
    --active: #1962bb;
    --active-inner: #fff;
    --focus: 2px rgba(39, 94, 254, .3);
    --border: #BBC1E1;
    --border-hover: #275EFE;
    --background: #fff;
    --disabled: #F6F8FF;
    --disabled-inner: #E1E6F9;
    -webkit-appearance: none;
    -moz-appearance: none;
    height: 21px;
    outline: none;
    display: inline-block;
    vertical-align: top;
    position: relative;
    margin: 0;
    cursor: pointer;
    border: 1px solid var(--bc, var(--border));
    background: var(--b, var(--background));
    transition: background .3s, border-color .3s, box-shadow .2s;
    &:after {
      content: '';
      display: block;
      left: 0;
      top: 0;
      position: absolute;
      transition: transform var(--d-t, .3s) var(--d-t-e, ease), opacity var(--d-o, .2s);
    }
    &:checked {
      --b: var(--active);
      --bc: var(--active);
      --d-o: .3s;
      --d-t: .6s;
      --d-t-e: cubic-bezier(.2, .85, .32, 1.2);
    }
    &:disabled {
      --b: var(--disabled);
      cursor: not-allowed;
      opacity: .9;
      &:checked {
        --b: var(--disabled-inner);
        --bc: var(--border);
      }
      & + label {
        cursor: not-allowed;
      }
    }
    &:hover {
      &:not(:checked) {
        &:not(:disabled) {
          --bc: var(--border-hover);
        }
      }
    }
    &:focus {
      box-shadow: 0 0 0 var(--focus);
    }
    &:not(.switch) {
      width: 21px;
      &:after {
        opacity: var(--o, 0);
      }
      &:checked {
        --o: 1;
      }
    }
    & + label {
      font-size: 14px;
      line-height: 21px;
      display: inline-block;
      vertical-align: top;
      cursor: pointer;
      margin-left: 4px;
    }
  }
  input[type='checkbox'] {
    &:not(.switch) {
      border-radius: 7px;
      &:after {
        width: 5px;
        height: 9px;
        border: 2px solid var(--active-inner);
        border-top: 0;
        border-left: 0;
        left: 7px;
        top: 4px;
        transform: rotate(var(--r, 20deg));
      }
      &:checked {
        --r: 43deg;
      }
    }
    &.switch {
      width: 38px;
      border-radius: 11px;
      &:after {
        left: 2px;
        top: 2px;
        border-radius: 50%;
        width: 15px;
        height: 15px;
        background: var(--ab, var(--border));
        transform: translateX(var(--x, 0));
      }
      &:checked {
        --ab: var(--active-inner);
        --x: 17px;
      }
      &:disabled {
        &:not(:checked) {
          &:after {
            opacity: .6;
          }
        }
      }
    }
  }
  input[type='radio'] {
    border-radius: 50%;
    &:after {
      width: 19px;
      height: 19px;
      border-radius: 50%;
      background: var(--active-inner);
      opacity: 0;
      transform: scale(var(--s, .7));
    }
    &:checked {
      --s: .5;
    }
  }
}



.checkbox-containers {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: px;
    align-items: center;
    position: relative;
    cursor: pointer;
    font-size: 14px;
    user-select: none;
}





.checkbox-item {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
}

.checkbox-item input[type="checkbox"] {
    margin-right: 10px;
}


.checkbox-list {
    list-style-type: none;
    padding: 0;
}
.checkbox-list li {
    margin-bottom: 10px;
}
.checkbox-list input[type="checkbox"] {
    margin-right: 10px;
}
.checkbox-list label {
    margin-bottom: 0;
}
/*--------------------------------------------------------------
# Back to top button
--------------------------------------------------------------*/
.back-to-top {
  position: fixed;
  visibility: hidden;
  opacity: 0;
  right: 15px;
  bottom: 15px;
  z-index: 996;
  background: #007bff;
  width: 40px;
  height: 40px;
  border-radius: 50px;
  transition: all 0.4s;
}
.back-to-top i {
  font-size: 28px;
  color: #fff;
  line-height: 0;
}
.back-to-top:hover {
  background: #2990ff;
  color: #fff;
}
.back-to-top.active {
  visibility: visible;
  opacity: 1;
}

/*--------------------------------------------------------------
# Scroll Top Button
--------------------------------------------------------------*/
.scroll-top {
  position: fixed;
  visibility: hidden;
  opacity: 0;
  right: 15px;
  bottom: -15px;
  z-index: 99999;
  background-color: var(--accent-color);
  width: 44px;
  height: 44px;
  border-radius: 50px;
  transition: all 0.4s;
}

.scroll-top i {
  font-size: 24px;
  color: var(--contrast-color);
  line-height: 0;
}

.scroll-top:hover {
  background-color: color-mix(in srgb, var(--accent-color), transparent 20%);
  color: var(--contrast-color);
}

.scroll-top.active {
  visibility: visible;
  opacity: 1;
  bottom: 15px;
}
 .card-header {
    background-color: var(--glass-dark);
    color: var(--primary-dark);
    border-bottom: 1px solid var(--primary-light);
     padding: 20px 24px;
    weight: 600;
    text-align: center;
    font-size: 16px;
    font-weight: 600;
    letter-spacing: 0.3px;
     
   
    

}

.card-header h5{
   background-color: #fff;
    border-bottom: 1px solid #e3e6f0;
    padding: 0.75rem 1.25rem;

    color: var(--primary-dark);
    text-decoration: none;
}
.card-header h6{
   background-color: #fff;
    border-bottom: 1px solid #e3e6f0;
    padding: 0.75rem 1.25rem;
    font-weight: 700;
    color: var(--primary-dark);
    text-decoration: none;
}s

/*________________________________________________________________________________________________________*/

.button-f{
  background-color: #dcab897a;
  border-radius: 100px;
  box-shadow: rgba(187, 134, 44, 0.2) 0 -25px 18px -14px inset,rgba(187, 127, 44, 0.15) 0 1px 2px,rgba(187, 139, 44, 0.15) 0 2px 4px,rgba(224, 154, 63, 0.15) 0 4px 8px,rgba(187, 132, 44, 0.15) 0 8px 16px,rgba(187, 139, 44, 0.15) 0 16px 32px;
  color: rgb(0, 0, 0);
  cursor: pointer;
  display: inline-block;
  font-family: CerebriSans-Regular,-apple-system,system-ui,Roboto,sans-serif;
  padding: 7px 20px;
  text-align: center;
  text-decoration: none;
  transition: all 250ms;
  border: 0;
  font-size: 16px;
  user-select: none;
  -webkit-user-select: none;
  touch-action: manipulation;

}
.button-f:hover{
   box-shadow:rgba(187, 134, 44, 0.2) 0 -25px 18px -14px inset,rgba(44,187,99,.25) 0 1px 2px,rgba(187, 139, 44, 0.25) 0 2px 4px,rgba(187, 139, 44, 0.25) 0 4px 8px,rgba(187, 106, 44, 0.25) 0 8px 16px,rgba(187, 125, 44, 0.25) 0 16px 32px;
  transform: scale(1.05) rotate(-1deg);

}


/*-----------------------------*/

.menus-container{

    width: 100%;
    display: flex;
    height: 100%;
    flex-direction: column;
    align-items: center;
}

.menus{

    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 0.20rem;
}

.menus .menus-item{

    position: relative;
    list-style: none;
    overflow: hidden;
}

.menus .menus-link{
    display:flex;
    padding: 0.20rem 0;
    color: var(--color-text-secondary);
    text-decoration: none;
    border-radius: 0.3rem;
}





    body {
        font-family: 'Open Sans' sans-serif;
        color: var(--text-color);
        background-color: var(--background-light);
        overflow-x: hidden;
    }

    .empresa-container {
      max-width: 100%;    
    width: 100%;
    min-width: 0;
    margin: 0;
    padding: 5px 20px;
    box-sizing: border-box;

    }

    .empresa-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        margin-bottom: 20px;
        gap: 20px;
    }
    
    .search-container {
        width: 100%;
        display: flex;
        justify-content: flex-end;
        margin-bottom: 15px;
    }

    .search-box {
        position: relative;
        flex-grow: 1;
        max-width: 500px;
    }

    .search-icon {
        position: absolute;
        left: 12px;
        top: 50%;
        transform: translateY(-50%);
        color: var(--light-text);
        font-size: 14px;
    }

    .search-input {
        width: 100%;
        padding: 8px 12px 8px 36px;
        border: 1px solid var(--border-color);
        border-radius: 4px;
        font-size: 14px;
        transition: all 0.2s ease;
        background-color: var(--white);
    }

    .search-input:focus {
        outline: none;
        border-color: var(--primary);
        box-shadow: 0 0 0 2px  rgba(0, 49, 100, 0.12);
    }

    .search-clear {
        position: absolute;
        right: 10px;
        top: 50%;
        transform: translateY(-50%);
        background: none;
        border: none;
        color: var(--light-text);
        cursor: pointer;
        opacity: 0.7;
        font-size: 12px;
        transition: opacity 0.2s ease;
    }

    .search-clear:hover {
        opacity: 1;
    }

    .header-actions {
        display: flex;
        align-items: center;
        gap: 15px;
    }

    .records-count {
        background-color: var(--border-color);
        color: var(--active);
        padding: 5px 10px;
        border-radius: 12px;
        font-size: 12px;
        font-weight: 500;
        min-width: 30px;
        text-align: center;
        align-items: center;
    }

    /* Estilos de los botones con los colores propuestos */
    
    .btn {
            padding: 16px 32px;
            border: none;
            border-radius: 12px;
            font-family: 'Montserrat', sans-serif;
            font-weight: 600;
            font-size: 1rem;
            cursor: pointer;
            transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
            text-decoration: none;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            position: relative;
            overflow: hidden;
            letter-spacing: 0.3px;
        }

        .btn::before {
            content: '';
            position: absolute;
            top: 0;
            left: -100%;
            width: 100%;
            height: 100%;
            background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
            transition: left 0.5s ease;
        }

        .btn:hover::before {
            left: 100%;
        }

        .btn-primary {
            background: linear-gradient(135deg, var(--primary), var(--primary-light));
            color: var(--white);
            box-shadow: 0 8px 25px rgba(0, 72, 148, 0.25);
        }

        .btn-primary:hover {
            transform: translateY(-3px);
            box-shadow: 0 15px 35px rgba(0, 72, 148, 0.4);
        }

        .btn-accent {
            background: linear-gradient(135deg, var(--accent), var(--accent-light));
            color: var(--white);
            box-shadow: 0 8px 25px rgba(255, 138, 0, 0.25);
        }

        .btn-accent:hover {
            transform: translateY(-3px);
            box-shadow: 0 15px 35px rgba(255, 138, 0, 0.4);
        }

        .btn-outline {
            background: rgba(255, 255, 255, 0.9);
            color: var(--primary);
            border: 2px solid var(--primary);
            backdrop-filter: blur(10px);
        }

        .btn-outline:hover {
            background: var(--primary);
            color: var(--white);
            transform: translateY(-3px);
            box-shadow: 0 15px 35px rgba(0, 72, 148, 0.3);
        }

        .btn-glass {
            background: rgba(255, 255, 255, 0.15);
            backdrop-filter: blur(20px);
            color: var(--primary-dark);
            border: 1px solid rgba(255, 255, 255, 0.2);
        }

        .btn-glass:hover {
            background: rgba(255, 255, 255, 0.25);
            transform: translateY(-3px);
            box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
        }

        .btn-close{
           
          
            font-size: 15px;
            cursor: pointer;
            color: var(--accent);
          
        }

 
  /*Resultados*/
  
  .table-container {
    overflow-x: auto;
}

  .table-container table {
    border-collapse: separate;
    border-spacing: 0;
}
  .empresa-card {
        background-color: var(--white);
        border-radius: 6px;
        box-shadow: 0 1px 3px rgba(77, 151, 211, 0.05);
        overflow: hidden;
         background-color: var(--gray-light);
    }


    .empresa-table {
        width: 100%;
         border-collapse: separate;
        border-spacing: 0;
        font-size: 13px;
        background: white;
    }
    
    .empresa-table thead tr {
        background: linear-gradient(to bottom, #f8f9fa, #ffffff);
    }

    .empresa-table thead th  {
       
      position: sticky;
      top: 0;
        color: var(--primary-dark);
        font-family: 'Open Sans' sans-serif;
        font-weight: 700;
        text-align: left;
        padding: 10px 12px;
        text-transform: uppercase;
        letter-spacing: 0.3px;
        white-space: nowrap;
        font-size: 12px;
        text-align: center;
        border-bottom: var(--primary-dark);
        background-color: var(--gray-light);
    }

    .empresa-table tbody tr {
        transition: all 0.3s ease;
        border-bottom: 1px solid #e5e7eb;
    }

    .empresa-table tbody tr:hover {
    background-color: #f8f9ff;
        transform: scale(1.002);
        box-shadow: 0 2px 4px rgba(102, 126, 234, 0.1);
    }
     .empresa-table tbody tr:last-child {
        border-bottom: none;
        
    }
    
    .empresa-table tbody tr:nth-child(even) {
        background-color: #fafbfc;
    }

       .empresa-table tbody td {
        padding: 10px;
        color: var(--primary-dark);
        font-weight: 400;
    
        vertical-align: middle;
        border-right: 1px solid #f3f4f6;
        border-bottom: 1px solid var(--border-color);
    }

    /*Estilo de resultados por columna*/
     .empresa-table tbody td:nth-child(1) {
        font-family: 'Montserrat', sans-serif;
        font-size: 11px;
        color: var(--primary-light);
        max-width: 280px;
        word-beak: break-all;
    }
      .empresa-table tbody td:nth-child(20) {
        text-align: center;
        color: var(--accent);
        font-weight: 600;
    }
      
    .empresa-table tr:hover {
        background-color: rgba(230, 126, 34, 0.03);
    }

    
    /* Responsive */
    @media (max-width: 1200px) {
        .table-responsive {
            padding: 15px;
        }
        
        .empresa-table {
            font-size: 12px;
        }
        
        .empresa-table thead th,
        .empresa-table tbody td {
            padding: 10px 8px;
        }
    }

   


    .col-name {
        width: 45%;
    }

    .col-rfc {
        width: 20%;
    }

    .col-regimen {
        width: 25%;
    }

    .col-actions {
        width: 10%;
    }

    .empresa-name {
        font-weight: 500;
        color: var(--primary-color);
    }

    .empresa-rfc {
        font-family: 'Courier New', monospace;
        color: var(--secondary-color);
        font-size: 13px;
    }

    .empresa-regimen {
        color: var(--text-color);
        font-size: 13px;
    }


    .actions-cell {
        text-align: right;
    }

    .actions-container {
        display: flex;
        justify-content: flex-end;
        gap: 8px;
    }

    .btn-action {

            color: var(--primary);
            border: 2px solid var(--primary);
            backdrop-filter: blur(10px);


        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 30px;
        height: 30px;
        border-radius: 50px;

        background: none;
        border: none;
        cursor: pointer;
        transition: all 0.2s ease;
        font-size: 16px;
    }

    .btn-action:hover {

            color: var(--white);
            transform: translateY(-3px);
            box-shadow: 0 15px 35px rgba(0, 72, 148, 0.3);
    }

    .view-btn:hover {
        color: var(--accent);
    }

    .edit-btn:hover {
        color: var(--accent);
    }


    .pagination-container {

        padding: 12px 16px;
        border-top: 1px solid var(--accent);
        display: flex;
        justify-content: center;
    }

    .dataTables_wrapper .dataTables_paginate {
        padding: 0;
    }

    .dataTables_wrapper .dataTables_paginate .paginate_button {
      position: relative;
        border: 1px solid var(--white) ;
        border-radius: 5px;
        margin: 0 3px ;
        padding: 4px 10px;
        color: var(--primary-dark) ;
        font-size: 13px ;
        transition: all 0.2s ease;
    }

    .dataTables_wrapper .dataTables_paginate .paginate_button.current {
        background-color: var(--primary-light) ;
        border-color: var(--white) ;
        color: var(--primary-dark) ;
         border-radius: 25px;

    }

    .dataTables_wrapper .dataTables_paginate .paginate_button:hover:not(.current) {
        background-color: rgb(250, 250, 250);
        border: var(--accent);
        background: var(--accent);
        color: var(--primary-dark) ;
         border-radius: 25px;

    }


    @media (max-width: 768px) {
        .empresa-header {
            flex-direction: column;
            align-items: stretch;
        }

        .search-box {
            max-width: 100%;
        }

        .header-actions {
            justify-content: space-between;
        }

        .col-name, .col-rfc, .col-regimen, .col-actions {
            width: auto;
        }

        .empresa-table thead th,
        .empresa-table tbody td {
            padding: 10px 12px;
        }
    }


    /*------------------Estilos de formularios---------------------------------------------------------------*/


    .actions-group { /*Esta clase se usa en cfdi/consulta*/
    display: flex;
    gap: 12px;
    margin-top: 24px;
   }

.filters-containers {
    display: none;
    margin-top: 20px;
    padding: 16px;
    background-color: var(--glass-dark);
    border-radius: 6px;
}

.filters-titles {
    font-weight: 500;
    color: var(--primary-dark);
    margin-bottom: 20px;
    font-size: 14px;
}

.filters-grids {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 12px;
}

.filter-items {
    display: flex;
    align-items: center;
}
.filter-labels {
    color: var(--text-color);
}






    .empresa-form-container {
        max-width: 1200px;
        margin: 30px auto;
        padding: 0 20px;
    }

    .empresa-form-card {
        background-color: var(--white);
        border-radius: 8px;
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
        margin-bottom: 20px;
         overflow: hidden;
    }

    .form-header {
        padding: 15px 25px;
       
    }

    .form-header h3 {
        color: var(--primary-dark);
        font-weight: 600;
        margin: 0;
        display: flex;
        align-items: center;
        gap: 10px;
        font-size: 18px;
    }

.form-header h4 {
    font-size: 18px;
    font-weight: 600;
    color: var(--primary-dark);
    margin: 0;
    display: flex;
    align-items: center;
    gap: 10px;
}


    .form-header i {
        color: var(--accent-color);
    }

    .header-divider {
        height: 2px;
        background: linear-gradient(90deg, var(--accent), var(--border-color));
        margin-top: 10px;
    }


    .form-body {
        padding: 20px 25px;
    }

    .form-row {
        display: flex;
        flex-wrap: wrap;
        gap: 15px;
         margin-bottom: 16px
    }
    .form-columns {
        display: flex;
        gap: 30px;
          margin-bottom: 16px;
    }
    .form-column {
        flex: 1;
    }

    .section-title {
        color: var(--primary-dark);
        font-size: 16px;
        margin-bottom: 20px;
        padding-bottom: 8px;
        border-bottom: 1px solid var(--border-color);
        display: flex;
        align-items: center;
        gap: 8px;
    }

   .form-row .form-group {
    flex: 1;
    min-width: 200px;
    margin-bottom: 16px;
    }

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--primary-light);
    font-size: 14px;
}

.form-control {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    font-size: 14px;
    transition: all 0.2s ease;
    background-color: var(--white);
}
.form-control:focus {
        outline: none;
        border-color: var(--accent-color);
        box-shadow: 0 0 0 2px rgba(230, 126, 34, 0.1);
    }

.validation-selector {
    margin-top: 8px;

}

    .file-upload {
        position: relative;
    }

     .form-control-file {
        width: 100%;
        height: 100%;
        position: absolute;
        opacity: 0;
        z-index: 2;
        cursor: pointer;
    }

    .file-info {
        padding: 10px 12px;
        border: 1px solid var(--border-color);
        border-radius: 4px;
        background-color: var(--background-light);
        color: var(--light-text);
        font-size: 14px;
    }
 .file-info2 {
     padding: 10px 12px;
        border: 1px solid var(--border-color);
        border-radius: 4px;
        background-color: var(--background-light);
    
        font-size: 14px;
    margin-top: 8px;
    font-size: 0.9em;
    color: #666;
    transition: all 0.3s ease; 
}


.file-info2.file-selected {
    color: var(--accent-light); 
    font-weight: 500; 
}


.file-info2 i {
    margin-right: 5px;
}




    .alert-message {
        padding: 12px 15px;
        border-radius: 4px;
        margin: 20px 0;
        font-size: 14px;
        display: flex;
        align-items: center;
        gap: 10px;
    }
       .alert-message.error {
        background-color: rgba(231, 76, 60, 0.1);
        border-left: 3px solid var(--error-color);
        color: var(--error-color);
    }




    .form-group {
        margin-bottom: 16px;
        flex: 1;
        min-width: 200px;
    }
     .form-group label {
        display: block;
        margin-bottom: 8px;
        font-weight: 500;
        color: var(--primary);
        font-size: 14px;
    }
    label {
        display: block;
        margin-bottom: 8px;
        font-weight: 500;
        color: var(--secondary-color);
        font-size: 14px;
    }



       .form-footer {
        padding: 15px 25px;
        border-top: 1px solid var(--border-color);
        display: flex;
        justify-content: flex-end;
        gap: 15px;
    }

    .btn {
        padding: 8px 16px;
        border-radius: 4px;
        font-size: 14px;
        font-weight: 500;
        transition: all 0.2s ease;
        display: inline-flex;
        align-items: center;
        gap: 8px;
        cursor: pointer;
        border: 1px solid transparent;
    }

    .btn-primary {
        background-color: var(--accent-color);
        color: var(--white);
    }

    .btn-primary:hover {
        background-color: var(--light-accent);
    }

    .btn-primary:disabled {
        background-color: var(--light-text);
        cursor: not-allowed;
    }
     .btn-secondary {
        background-color: var(--white);
        border: 1px solid var(--border-color);
        color: var(--secondary-color);
    }

    .btn-secondary:hover {
        background-color: var(--background-light);
    }

    .result-container {
        max-height: 400px;
        overflow-y: auto;
        padding: 10px;
        border: 1px solid var(--border-color);
        border-radius: 4px;
        margin-top: 15px;
    }

    .text-center {
        text-align: center;
    }

    .py-3 {
        padding-top: 1rem;
        padding-bottom: 1rem;
    }

    .loading-indicator {
        color: var(--accent-color);
    }

    .error-message {
        color: var(--error-color);
    }

    .success-message {
        color: var(--success-color);
    }

    .loading-state {
    display: none;
    text-align: center;
    padding: 40px;
    background-color: var(--white);
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    margin-bottom: 24px;
}

.loading-state p {
    margin-top: 12px;
    color: var(--secondary-color);
}

.spinner {
    width: 40px;
    height: 40px;
    margin: 0 auto;
    border: 4px solid rgba(230, 126, 34, 0.1);
    border-top: 4px solid var(--accent-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}


    @media (max-width: 768px) {
        .form-row {
            flex-direction: column;
        }

        .form-group {
            min-width: 100%;
        }

        .empresa-form-container {
            padding: 0 15px;
        }
    }

    @keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

    /*------*/


.page-header-container {
    margin-bottom: 24px;
}
.header-content {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 16px;
}
.header-title-container {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.header-icon {
    font-size: 24px;
    color: var(--accent-color);
}

.page-title {
    font-size: 24px;
    font-weight: 600;
    color: var(--primary-dark);
    margin: 0;
}
.header-subtitle {
    font-size: 14px;
    color: var(--light-text);
    font-weight: 400;
}
.content-card {
      background: #ffffff;
        border-radius: 12px;
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.07);
        overflow: hidden;
        margin: 20px 0;
        border: 1px solid #e5e7eb;
}
 .table-responsive {
        padding: 20px;
        overflow-x: auto;
    }


/* de validaciones*/
.result-header {
    padding: 16px 24px;
    background-color: var(--background-light);
    border-bottom: 1px solid var(--border-color);
    font-weight: 600;
    color: var(--primary-color);
}
.result-body {
    padding: 0;
    overflow-x: auto;
}

.result-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.result-table th {
    background-color: var(--background-light);
    color: var(--secondary-color);
    font-weight: 600;
    padding: 12px 16px;
    text-align: left;
    border-bottom: 2px solid var(--border-color);
    white-space: nowrap;
}
.result-table td {
    padding: 12px 16px;
    border-bottom: 1px solid var(--border-color);
    color: var(--text-color)
}
.result-table tr:hover {
    background-color: rgba(230, 126, 34, 0.03);
}


.validation-table {
    width: 100%;
}



.validation-table th {
    background-color: #f8d7da;
    color: #721c24;
}

@media (max-width: 992px) {
    .form-row {
        flex-direction: column;
        gap: 16px;
    }

    .form-group {
        min-width: 100%;
    }
}

@media (max-width: 768px) {
    .empresa-container {
        padding: 15px;
    }

    .form-header, .form-body {
        padding: 16px;
    }

    .result-table {
        font-size: 13px;
    }

    .result-table th,
    .result-table td {
        padding: 10px 12px;
    }
}


/**/
.empresa-table tr{
  background: var(--white);
   color: var(--primary-dark); 
   font-weight: 600; 
   letter-spacing: 0.5px; 
   font-size: 14px;
}


/* Boton de whatsapp */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: #25D366;
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    box-shadow: 0 8px 30px rgba(37, 211, 102, 0.3);
    z-index: 9999;
    text-decoration: none;
    transition: all 0.3s ease;
    animation: floatPulse 3s infinite;
}

@keyframes floatPulse {
    0%, 100% {
        transform: translateY(0) scale(1);
        box-shadow: 0 8px 30px rgba(37, 211, 102, 0.3);
    }
    50% {
        transform: translateY(-10px) scale(1.05);
        box-shadow: 0 15px 40px rgba(37, 211, 102, 0.4);
    }
}

.whatsapp-float:hover {
    transform: scale(1.15);
    box-shadow: 0 15px 50px rgba(37, 211, 102, 0.5);
    animation: none;
}

.whatsapp-float::before {
    content: '';
    position: absolute;
    inset: -8px;
    border-radius: 50%;
    background: #25D366;
    opacity: 0.2;
    animation: ripple 2s infinite;
}

@keyframes ripple {
    0% {
        transform: scale(1);
        opacity: 0.2;
    }
    100% {
        transform: scale(1.5);
        opacity: 0;
    }
}

.whatsapp-text {
    position: absolute;
    right: 85px;
    background: var(--primary-dark);
    color: white;
    padding: 12px 20px;
    border-radius: 25px;
    white-space: nowrap;
    font-size: 0.95rem;
    font-weight: 600;
    opacity: 0;
    pointer-events: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.whatsapp-text::after {
    content: '';
    position: absolute;
    right: -8px;
    top: 50%;
    transform: translateY(-50%);
    border: 8px solid transparent;
    border-left-color: var(--primary-dark);
}

.whatsapp-float:hover .whatsapp-text {
    opacity: 1;
    right: 95px;
}
.hidden {
    display: none !important;
}

/* 
    CSS PARA TOOLTIPs */
.tooltip-wrap {
    position: relative;
    display: inline-block;
    width: fit-content;
  }

  .tooltip-wrap::after {
    content: attr(data-tooltip);
    position: absolute;
    left: 100%;
    bottom: 100%;
    white-space: nowrap; 
    width: max-content;
    transform: translateX(-50%) translateY(4px);
    background: #ffffff;
    color: var(--primary-dark);
    font-family: 'Segoe UI', system-ui, sans-serif;
    font-size: 0.78rem;
    line-height: 1;
    padding: 10px 10px;
    border-radius: 10px;
  
    box-shadow: 0 8px 24px rgba(0,0,0,.35);
    border: 1px solid rgba(137,180,250,.25);
    opacity: 0;
    pointer-events: none;
    transition: opacity .2s ease, transform .2s ease;
    z-index: 100;
  }

 
  .tooltip-wrap:hover::after,
  .tooltip-wrap:focus-within::after {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
  }
  .tooltip-wrap:hover::before,
  .tooltip-wrap:focus-within::before {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
  }
 /* Botón manual de usuario */
        .btn-manual {
            position: relative; 
            display: inline-flex;
            align-items: center;
            justify-content: center;
            width: 38px;
            height: 38px;
            border-radius: 10px;
            background: #f1f5f9;
            border: 1px solid #e2e8f0;
            color: var(--gray);
            flex-shrink: 0;
            font-size: 17px;
            transition: all .2s ease;
        }

        .btn-manual:hover {
            background: #dbeafe;
            border-color: #93c5fd;
            color: var(--primary-dark);
            box-shadow: 0 3px 10px rgba(59,130,246,.15);
            transform: translateY(-1px);
        }

        /* Tooltip texto */
        .btn-manual::after {
            content: attr(data-title);
            position: absolute;
            bottom: 50%; 
            left: 50%;
            transform: translateX(-50%);
            background: #fff;
            color: var(--primary-light);
            padding: 6px 10px;
            border-radius: 6px;
            font-size: 12px;
            white-space: nowrap;
            opacity: 0;
            pointer-events: none;
            transition: all .2s ease;
            box-shadow: 0 8px 24px rgba(0,0,0,.35);
            border: 1px solid rgba(137,180,250,.25);
            z-index: 1000;
        }

        .btn-manual::before {
            content: "";
            position: absolute;
            bottom: -8px;
            left: 50%;
            transform: translateX(-50%);
            border: 6px solid transparent;
            border-bottom-color: #fff;
            opacity: 0;
            transition: opacity .2s ease;
        }

        .btn-manual:hover::after,
        .btn-manual:focus-within::after {
            opacity: 1;
            transform: translateX(-50%) translateY(0);
        }
        .btn-manual:hover::before,
        .btn-manual:focus-within::before {
            opacity: 1;
            transform: translateX(-50%) translateY(0);
        }

        /* Responsive */
        @media (max-width: 992px) {
            .sidebar {
                width: 70px;
            }

            .sidebar .menu-text, .sidebar-brand h2 {
                display: none;
            }

            .sidebar-brand {
                justify-content: center;
            }


        }

        @media (max-width: 768px) {
            .stats-grid {
                grid-template-columns: 1fr;
            }

            .top-bar {
                flex-direction: column;
                align-items: flex-start;
                gap: 15px;
            }

            .user-menu {
                align-self: flex-end;
            }
        }
.navbar-toggler-icon {
   width: 2.5em;
    height: 2.5em; 
}


/*panel de control */
   .content-card.panel {
            background: var(--white);
            border-radius: 10px;
            padding: 5px;
            box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
            margin-bottom: 30px;
        }

        .card-header.panel{
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 20px;
        } 


  .top-bar {
            display: flex;
            justify-content: space-between;
            align-items: center;

        }

  .page-title h1 {
            font-family: 'Montserrat', sans-serif;
            font-weight: 700;
            color: var(--primary-dark);
            margin: 0;
            font-size: 28px;
        }

        .page-title p {
            color: var(--gray);
            margin: 5px 0 0;
            font-size: 14px;
        }
    
               .user-menu {
            display: flex;
            align-items: center;
            gap: 15px;
        }

        .notification-bell {
            position: relative;
            color: var(--gray);
            cursor: pointer;
        }

        .notification-badge {
            position: absolute;
            top: -5px;
            right: -5px;
            background: var(--accent);
            color: white;
            border-radius: 50%;
            width: 18px;
            height: 18px;
            font-size: 11px;
            display: flex;
            align-items: center;
            justify-content: center;
        }

       
        .stats-grid {
            display: grid;
            gap: 20px;
            margin-bottom: 30px;
            grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
        }

        .stats-grid.four-cols {
            grid-template-columns: repeat(4, 1fr); /*para cards validaciones*/
        }

        .stats-grid.auto {
            grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
        }

        .stat-card {
            background: var(--white);
            border-radius: 10px;
            padding: 20px;
            box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
            transition: transform 0.3s;
        }

        .stat-card:hover {
            transform: translateY(-5px);
        }

        .stat-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 15px;
        }

        .stat-title {
            font-size: 14px;
            color: var(--gray);
            font-weight: 500;
        }


        .stat-title.validaciones {
            font-size: 19px;
            color: var(--primary-dark);
            font-weight: 500;
            min-height: 60px;
            display: flex;
            align-items: center;
            text-align: center;
            justify-content: center;  
        }
        

        .stat-icon {
            width: 40px;
            height: 40px;
            border-radius: 10px;
            display: flex;
            align-items: center;
            justify-content: center;
            color: white;
        }

        .stat-icon.blue {
            background: var(--primary-light);
        }

        .stat-icon.orange {
            background: var(--accent);
        }

        .stat-icon.green {
            background: #28a745;
        }

        .stat-icon.purple {
            background: #6f42c1;
        }

        .stat-value {
            font-family: 'Montserrat', sans-serif;
            font-size: 28px;
            font-weight: 700;
            color: var(--primary-dark);
            margin: 5px 0;
        }

        .stat-value .link-validaciones {
            color: var(--accent);
            font-family: 'Montserrat', sans-serif;
            font-size: 50px;
            font-weight: 650;
            cursor: pointer;
            text-decoration: none;
            transition: 0.2s ease;
            text-align: center;
        }
        
        
        .stat-value .link-validaciones:hover {
            color: var(--primary-dark);
            text-decoration: none;
        }

        .stat-card.validaciones {
            position: relative;
            background: #fff;
            border-radius: 12px;
            padding: 16px;
            min-height: 160px;
            box-shadow: 0 4px 10px rgba(0,0,0,0.08);

            display: flex;
            flex-direction: column;
            justify-content: space-between;

            
            max-width: 370px;
        }

        .stat-value.validaciones {
            display: flex;
            justify-content: center;
            align-items: center;
            font-size: 36px;
            font-weight: bold;
        }


        .stat-change {
            display: flex;
            align-items: center;
            gap: 5px;
            font-size: 13px;
            font-weight: 500;
        }

        .stat-change.positive {
            color: #28a745;
        }

        .stat-change.negative {
            color: #dc3545;
        }

        
        .card-title {
            font-family: 'Montserrat', sans-serif;
            font-weight: 600;
            color: var(--primary-dark);
            font-size: 18px;
            margin: 0;
        }

        .data-table {
            width: 100%;
            border-collapse: separate;
            border-spacing: 0;
        }

        .data-table th {
            background: var(--gray-light);
            padding: 12px 15px;
            text-align: left;
            font-family: 'Montserrat', sans-serif;
            font-weight: 600;
            color: var(--primary-dark);
            border-bottom: 2px solid var(--primary);
        }

        .data-table td {
            padding: 12px 15px;
            border-bottom: 1px solid #eee;
        }

        .data-table tr:hover {
            background: rgba(0, 72, 148, 0.03);
        }


        .chart-container {
            position: relative;
            height: 300px;
            width: 100%;
        }


.modal-content {
    background-color: var(--white);
    margin: 5% auto;
    border-radius: 8px;
    width: 80%;
    max-width: 1140px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    overflow: hidden;
}

/* para modales que muestran tabla de CFDI  */
.modal-content.cfdi {
    width: 100%;
}


.modal-header {
    padding: 16px 24px;
    background-color: var(--primary-color);
    color: var(--white);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h4 {
    margin: 0;
    font-size: 18px;
    color: var(--white);
}

.close-modal {
    color: var(--white);
    font-size: 12px;
    font-weight: bold;
    cursor: pointer;
}

.close-modal:hover {
    color: var(-);
}

.modal-body {
    padding: 24px;
    max-height: 70vh;
    overflow-y: auto;
}

.modal-footer {
    padding: 16px 24px;
    border-top: 1px solid var(--border-color);
    text-align: right;
}


@media (max-width: 992px) {
    .form-columns {
        flex-direction: column;
        gap: 16px;
    }
    
    .filters-grid {
        grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    }
    
    .modal-content {
        width: 90%;
        margin: 10% auto;
    }
}

@media (max-width: 768px) {
    .form-header, .form-body {
        padding: 16px;
    }
    
    .empresa-table {
        font-size: 13px;
    }
    
    .empresa-table th, 
    .empresa-table td {
        padding: 10px 12px;
    }
    
    .modal-content {
        width: 95%;
    }
}