﻿body, html {
    height: 100%;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
}

#sidebar {
    position: fixed;
    left: 0;
    top: 0;
    height: 100vh;
    width: 14rem;
    /*background: #f59e42;*/ /* amarillo Tailwind */
    color: #fff;
    z-index: 60;
    overflow-y: hidden; /* evita scroll global */
    transition: transform 0.3s;
    transform: translateX(-100%);
}

    #sidebar.open {
        transform: translateX(0);
    }

    #sidebar nav {
        height: calc(100vh - 56px); /* ajusta según el alto del logo/header */
        overflow-y: auto; /* solo el menú navega */
    }

#overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.4);
    z-index: 50;
    display: none;
}

    #overlay.show {
        display: block;
    }

@media (min-width: 1024px) {
    #sidebar {
        transform: none !important;
        left: 0;
        top: 0;
        height: 100vh;
    }

    #overlay {
        display: none !important;
    }

    .content-wrapper {
        margin-left: 16rem;
    }
}

.no-scroll {
    overflow: hidden;
}


.content-wrapper main.p-2 .bg-gray-100 {
    border-radius: 8px;
    padding: 10px;
}

.align-title {
    display: flex;
}

.mi-select {
    padding-right: 2.5rem; /* Adds space for icon */
    padding-left: 0.75rem;
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
    border-radius: 0.375rem; /* rounded-md */
    border: 1px solid #d1d5db; /* border-gray-300 */
    background-color: #fff;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg fill='gray' viewBox='0 0 24 24' width='20' height='20' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M7 10l5 5 5-5'%3E%3C/path%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.7rem center;
    background-size: 1.2em 1.2em;
    min-width: 110px;
}

    .mi-select:focus {
        border-color: #2563eb; /* border-blue-600 */
        outline: none;
        box-shadow: 0 0 0 1.5px #2563eb;
    }



/* Contenedor del chart */
.chart-container {
    width: 100%;
    max-width: 600px;
    margin: 0 auto;
}
    /* Canvas responsive */
    .chart-container canvas {
        width: 100% !important;
        height: 300px !important;
        max-width: 100%;
        max-height: 400px;
    }

@media (max-width: 600px) {
    .chart-container {
        max-width: 100%;
    }

        .chart-container canvas {
            height: 200px !important;
        }
}

@media (max-width: 400px) {
    .chart-container canvas {
        height: 150px !important;
    }
}








.custom-infowindow {
    font-family: "Inter", Arial;
    background: #fff;
    padding: 14px;
    max-width: 360px;
    border-radius: 14px;
    box-shadow: 0 6px 20px rgba(0,0,0,0.18);
}

    /* ---- Corrección del HTML de SunEditor ---- */

    .custom-infowindow .comment-html,
    .custom-infowindow .comment-html * {
        max-width: 100% !important;
        height: auto !important;
        box-sizing: border-box;
    }

    .custom-infowindow .se-image-container,
    .custom-infowindow figure,
    .custom-infowindow img {
        display: block !important;
        width: 100% !important;
        max-width: 100% !important;
        height: auto !important;
        margin: 10px 0 !important;
        border-radius: 10px;
    }

    .custom-infowindow .__se__float-left,
    .custom-infowindow .__se__float-right {
        float: none !important;
    }

/* Eliminar scroll interno del InfoWindow */
/*.gm-style-iw-d {
    overflow: visible !important;
}*/