html {
    font-size: 14px;
    height: 100%;
    margin: 0;
}

@media (min-width: 768px) {
    html {
        font-size: 16px;
    }
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
    box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

html {
    position: relative;
    min-height: 100%;
}

body {
    margin-bottom: 60px;
    background-image: url('https://uploads-ssl.webflow.com/63e243301667410e99e1031e/66918f9f0838f9a757318f68_fondo.png');
    background-position: right bottom;
    background-repeat: no-repeat;
}

.custom-navbar {
    background-color: #AA8EC2 !important; /* Color morado */
    height: 61px; /* Altura de la barra superior */
    width: 100%; /* Asegura que ocupe todo el ancho del contenedor */
    position: relative; /* Cambia a fixed si necesitas que sea fija */
    z-index: 1000; /* Asegura que la barra esté encima de otros elementos */
}


    .custom-navbar .navbar-nav .nav-link {
        color: white !important;
    }

    .custom-navbar .navbar-brand {
        color: white !important;
    }

.navbar-icon {
    height: 40px;
    cursor: pointer;
    border-radius: 50%; /* Opcional: hace que el ícono sea circular */
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.3); /* Opcional: sombra para destacar */
}

.combineButton {
    background-color: #800080;
    color: white;
    border: none;
    padding: 10px 20px;
    font-size: 16px;
    cursor: pointer;
    border-radius: 5px;
}

    .combineButton:hover {
        background-color: #5a005a; /* Un morado más oscuro al hacer hover */
    }

.custom-footer {
    background-color: #D3D1D2;
}

/* Estilos para la barra lateral */
/* Estilos generales para la barra lateral */
.sidebar {
    width: 60px;
    height: 100vh;
    background-color: #D3D1D2; /* Color base para la barra */
    color: white;
    border-right: 2px solid black; /* Bordes negros */
    overflow: hidden;
    transition: width 0.3s ease-in-out;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1000;
}

    .sidebar.expanded {
        width: 250px;
    }

/* Estilo específico para la parte del ícono */
.sidebar-header {
    background-color: #AA8EC2; /* Mismo color que la barra superior */
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px;
    height: 60px; /* Altura fija para la parte del ícono */
}

/* Ícono en la cabecera */
/* Ajustes para el GIF en la cabecera */
.sidebar-icon {
    width: 100px; /* Ajusta el tamaño del GIF */
    height: auto; /* Mantén las proporciones */
    cursor: pointer;
    border-radius: 0%; /* Opcional: hace que el GIF sea circular */
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.0); /* Opcional: agrega un efecto de sombra */
}

/* Lista de menús */
.sidebar-menu {
    list-style: none;
    padding: 0;
    margin: 0;
    background-color: #D3D1D2; /* Color de fondo del menú */
    height: calc(100vh - 60px); /* Ajusta el menú al espacio restante */
    overflow-y: auto; /* Permitir scroll si hay muchas opciones */
}

    .sidebar-menu li {
        display: flex;
        align-items: center;
        padding: 15px;
        text-align: center;
        transition: all 0.3s ease-in-out;
    }

        .sidebar-menu li img {
            width: 25px;
            height: 25px;
        }

        .sidebar-menu li a {
            color: white;
            text-decoration: none;
            display: inline-block;
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
            margin-left: 10px; /* Espaciado entre ícono y texto */
            opacity: 0; /* Texto oculto inicialmente */
            width: 0;
            transition: opacity 0.3s ease-in-out, width 0.3s ease-in-out;
        }

.sidebar.expanded .sidebar-menu li a {
    opacity: 1; /* Mostrar texto al expandir */
    width: auto;
}

.sidebar-menu li:hover {
    background-color: #5a005a;
}

/* Alinear ícono y texto */
.sidebar-menu li img {
    width: 25px;
    height: 25px;
}

table {
    border-collapse: collapse;
    width: 100%;
}

th, td {
    border: 1px solid #ccc; /* Líneas grises en las celdas */
    padding: 8px;
    text-align: right;
}

th {
    background-color: #f5f5f5;
    text-align: center;
}

    td:first-child, th:first-child {
        text-align: left; /* Alineación izquierda para nombres de sucursales */
    }

.bg-morado-suave {
    background-color: #f3e5f5; /* morado pastel */
}

table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid #ccc;
}

th {
    background-color: #59449B;
    color: white;
    padding: 10px;
    text-align: left;
}

td {
    padding: 10px;
    border-bottom: 1px solid #ccc;
}

tr:last-child td {
    border-bottom: none;
}

.hover-cell:hover {
    background-color: #f0f0f0; /* o cualquier color suave que combine con tu diseño */
    cursor: pointer;
}

.hover-cell[contenteditable="true"] {
    outline: 2px dashed #59449B;
    background-color: #ffffff;
}

.table-responsive {
    max-width: 100%;
    overflow-x: auto;
}

.reporte-tabla {
    font-size: 12px;
    table-layout: auto;
    width: 100%;
}

.sidebar-menu img {
    cursor: pointer;
}

.dropdown-checkbox {
    position: relative;
    display: inline-block;
}

.dropdown-checkbox-content {
    display: none;
    position: absolute;
    background-color: white;
    border: 1px solid #ccc;
    z-index: 100;
    max-height: 200px;
    overflow-y: auto;
    width: 250px;
    padding: 10px;
    box-shadow: 0px 4px 8px rgba(0,0,0,0.1);
}


.dropdown-campanas {
    width: 320px;
}


.dropdown-checkbox label {
    display: block;
    margin-bottom: 5px;
    font-weight: normal;
}

#loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: transparent; 
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    pointer-events: none; /* evita interferencia con clics */
}

    #loading-overlay img {
        width: 200px;
        height: auto;
        max-width: 100%;
        max-height: 100%;
    }


/* Contenedor: una sola línea, sin wrap */
.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    flex-wrap: nowrap; /* clave: nunca baja de línea */
    max-width: 100%;
}

/* Logo responsivo: también se achica para dejar espacio a los botones */
.brand-logo {
    height: clamp(28px, 6vw, 40px); /* se reduce si la pantalla es angosta */
}

/* Grupo de botones: una sola línea siempre */
.nav-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: nowrap; /* clave: no permitir salto de línea */
    min-width: 0; /* permite que el grupo se encoja correctamente */
}

/* Estilos base de los botones */
.btn-pink {
    background-color: #DD3F93;
    color: #fff;
    border: 0;
}

.btn-grey {
    background-color: #6c757d;
    color: #fff;
    border: 0;
}

/* Botón móvil con tamaño fluido que se reduce en pantallas pequeñas */
.btn-mobile {
    padding: clamp(2px, 1.2vw, 8px) clamp(6px, 2.2vw, 12px);
    font-size: clamp(10px, 2.8vw, 14px);
    line-height: 1.2;
    white-space: nowrap; /* mantiene el texto en una sola línea */
}

/* En pantallas muy angostas, reducimos aún más el espacio entre botones */
@media (max-width: 360px) {
    .nav-actions {
        gap: 4px;
    }
}

/* Por si iOS/Safari calcula raro, evita que sobresalga contenido visualmente */
.custom-navbar .container {
    overflow: hidden;
}

:root {
    --sidebar-w: 100px;
}
/* ancho real de tu sidebar */

@media (min-width: 992px) {
    .custom-navbar .navbar-brand {
        margin-left: var(--sidebar-w) !important; /* vence al m-0 */
    }
}

.switch {
    position: relative;
    display: inline-block;
    width: 60px;
    height: 34px;
}

    .switch input {
        opacity: 0;
        width: 0;
        height: 0;
    }

.slider {
    position: absolute;
    cursor: pointer;
    inset: 0;
    background-color: #ccc;
    transition: .4s;
    border-radius: 34px;
}

    .slider:before {
        position: absolute;
        content: "";
        height: 26px;
        width: 26px;
        left: 4px;
        bottom: 4px;
        background-color: #fff;
        transition: .4s;
        border-radius: 50%;
        box-shadow: 0 1px 3px rgba(0,0,0,.2);
    }

.switch input:checked + .slider {
    background-color: orange;
}

    .switch input:checked + .slider:before {
        transform: translateX(26px);
    }