.navbar-light .navbar-nav .active>.nav-link, .navbar-light .navbar-nav .nav-link.active, .navbar-light .navbar-nav .nav-link.show, .navbar-light .navbar-nav .show>.nav-link {
    color: white !important;
    background: #007bff !important;
    font-weight: bold !important;
}

table.dataTable tbody td {
    white-space: nowrap !important;
    font-size: 15px !important;
}

#tbl_productos thead th{
    white-space: nowrap !important;
}

.addNewRecord{
    background-color: #198754 !important;
    color: white !important;
}

.buttons-excel{
    background-color: #0d6efd !important;
    color: white !important;
}

.buttons-print{
    background-color: #ffc107 !important;
    color: white !important;
}

.dt-button{
    padding-top: 5px  !important;
    padding-bottom: 5px !important;
}

#tbl_productos tbody tr td{
    padding: 3px !important;
}

.transparentbar {
    background-repeat:no-repeat;
    cursor:pointer;
    outline:none;
    border:none;
    box-shadow:none; 
    background-image: none;  
    background-color: transparent;
  
  }
  
  .btn-check:focus+.btn-primary, .btn-primary:focus {
    color: #fff;
    background-color: transparent !important;
    border-color: transparent !important;
    box-shadow: none !important;
  }
  
  .transparentbar:hover {
    color: #fff;
    background-color: transparent !important;
    border-color: transparent !important;
  }

  .btn-toolbar{
    flex-wrap: nowrap !important; 
  }

  button.tabledit-save-button.btn.btn-sm.btn-success{
    margin: 0 5px !important;
  }

  button.btn.btn-danger.btn-sm.tabledit-confirm-button{
    margin: 0 5px !important;
  }

  .btn-outline-success{
    border-radius: 20px !important;
    font-weight: bold;
  }

  
  .sidebar-mini{
    height: 100vh !important;
  }

  .scroll {
    max-height: 100px;
    overflow-y: auto;
}

.sidebar-scroll {
  overflow-y: auto;
  max-height: calc(100vh - 100px); /* Ajusta la altura máxima según tus necesidades */
}


.venta-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgb(0 0 0 / 45%); /* Fondo oscuro elegante */
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 999999; /* Encima de TODO */
    backdrop-filter: blur(3px); /* efecto profesional */
}

.venta-overlay-content {
    animation: fadeZoom 0.25s ease-out;
}

@keyframes fadeZoom {
    from { transform: scale(0.85); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}



#procesandoVentaOverlay {
    position: fixed;
    inset: 0;
background: linear-gradient(180deg, rgba(0, 0, 0, 0.35), rgba(39, 102, 19, 0.459));


    backdrop-filter: blur(2px);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 999999999;
}


/* Contenedor que se pone encima del content */
#overlayMantenimiento {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(5px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 999;
    flex-direction: column;
    gap: 15px;
    text-align: center;
    padding: 20px;
}

#overlayMantenimiento .icono {
    font-size: 65px;
    color: #ff9800;
    animation: girar 2.2s linear infinite;
}

@keyframes girar {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

#overlayMantenimiento .titulo {
    font-size: 25px;
    font-weight: bold;
    color: #333;
}

#overlayMantenimiento .descripcion {
    font-size: 16px;
    color: #444;
}


.chart-overlay {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
}


.chart-container {
    position: relative;
    height: 260px;        /* AJUSTA A TU DASHBOARD */
    display: flex;
    justify-content: center;
    align-items: center;
}

.chart-container canvas {
    width: 100% !important;
    height: 100% !important;
}

.chart-overlay {
    position: absolute;
    bottom: 10px;         /* controla la altura del texto */
    left: 50%;
    transform: translateX(-50%);
    pointer-events: none;
}

.chart-overlay small {
    color: #6c757d;
}

.chart-overlay h5 {
    font-weight: bold;
    margin: 0;
}





    #contenedorNotificaciones {
        max-height: 400px;
        overflow-y: auto;
    }

    .itemNotificacion {
        padding: 12px 15px !important;
        white-space: normal !important;
        transition: background-color 0.2s ease;
    }

    .itemNotificacion:hover {
        background-color: #f5f6f7;
    }

    .iconoNotificacion {
        width: 38px;
        height: 38px;
        min-width: 38px;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        background-color: #f1f3f5;
    }

    .iconoNotificacion i {
        font-size: 15px;
    }

    .contenidoNotificacion {
        min-width: 0;
        padding-left: 12px;
    }

    .tituloNotificacion {
        font-size: 13px;
        font-weight: 600;
        color: #343a40;
        margin-bottom: 2px;
    }

    .mensajeNotificacion {
        font-size: 12px;
        line-height: 1.4;
        color: #6c757d;
    }

    .fechaNotificacion {
        font-size: 10px;
        color: #adb5bd;
        margin-top: 4px;
    }

    .separadorNotificacion {
        margin: 0 !important;
    }

    .sinNotificaciones {
        padding: 25px 15px;
        text-align: center;
        color: #adb5bd;
    }

    .sinNotificaciones i {
        font-size: 25px;
        margin-bottom: 8px;
        display: block;
    }

    .sinNotificaciones span {
        font-size: 12px;
    }

    .iconoCampanaNotificaciones {
    color: #bcac19;
    font-size: 19px;
    transition: all 0.2s ease;
}

#dropdownNotificaciones:hover .iconoCampanaNotificaciones {
    color: #9e9115;
    transform: scale(1.12);
}

.campanaNotificacionActiva {
    animation: campanaNotificacion 1.5s ease-in-out infinite;
}

@keyframes campanaNotificacion {

    0% {
        transform: rotate(0deg);
    }

    10% {
        transform: rotate(12deg);
    }

    20% {
        transform: rotate(-12deg);
    }

    30% {
        transform: rotate(8deg);
    }

    40% {
        transform: rotate(-8deg);
    }

    50% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(0deg);
    }
}


.iconoModalNotificacion {
    width: 45px;
    height: 45px;
    min-width: 45px;
    border-radius: 50%;
    background-color: #f1f3f5;
    display: flex;
    align-items: center;
    justify-content: center;
}

.iconoModalNotificacion i {
    font-size: 18px;
}

.contenidoModalNotificacion {
    min-width: 0;
    padding-left: 15px;
    width: 100%;
}

.tituloModalNotificacion {
    font-size: 16px;
    font-weight: 600;
    color: #343a40;
    margin-bottom: 8px;
}

.mensajeModalNotificacion {
    font-size: 14px;
    line-height: 1.5;
    color: #6c757d;
}

.fechaModalNotificacion {
    font-size: 11px;
    color: #adb5bd;
    margin-top: 12px;
}

.notificacionHistorial {
    display: flex;
    align-items: flex-start;
    padding: 15px;
    border-bottom: 1px solid #e9ecef;
    transition: background-color 0.2s ease;
}

.notificacionHistorial:hover {
    background-color: #f8f9fa;
}

.notificacionHistorialNoVista {
    background-color: #f8f9fa;
}

.notificacionHistorialIcono {
    width: 42px;
    height: 42px;
    min-width: 42px;
    border-radius: 50%;
    background-color: #f1f3f5;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 12px;
}

.notificacionHistorialIcono i {
    font-size: 17px;
}

.notificacionHistorialContenido {
    min-width: 0;
    flex: 1;
}

.notificacionHistorialTitulo {
    font-size: 14px;
    font-weight: 600;
    color: #343a40;
    margin-bottom: 4px;
}

.notificacionHistorialMensaje {
    font-size: 13px;
    color: #6c757d;
    line-height: 1.4;
}

.notificacionHistorialFecha {
    font-size: 11px;
    color: #adb5bd;
    margin-top: 7px;
}
