/* ── Biosfera Admin – Mobile fixes ── */
@media (max-width: 767px) {

    /* ── Nav header: logo fijo arriba a la izquierda ── */
    .nav-header {
        width: 220px !important;
        position: fixed !important;
        top: 0;
        left: 0;
        z-index: 9999;
        height: 60px;
        display: flex !important;
        align-items: center;
        padding: 0 16px;
        background: #1c2e25 !important;
    }

    /* ── Hamburger: visible en esquina superior derecha ── */
    .nav-control {
        position: fixed !important;
        top: 8px;
        left: 228px;
        z-index: 10000;
        display: flex !important;
        align-items: center;
        justify-content: center;
        width: 44px;
        height: 44px;
        background: #1c2e25;
        border-radius: 8px;
        cursor: pointer;
    }
    .hamburger .line {
        display: block !important;
        width: 22px;
        height: 2.5px;
        background: #fff !important;
        margin: 5px auto;
        border-radius: 2px;
        transition: all 0.3s;
    }

    /* ── Header de notificaciones ── */
    .header {
        margin-left: 0 !important;
        padding-left: 280px !important;
        position: fixed !important;
        top: 0;
        left: 0;
        right: 0;
        height: 60px;
        z-index: 9998;
    }

    /* ── Sidebar: oculto por defecto, desliza al abrir ── */
    .dlabnav {
        left: -280px !important;
        transition: left 0.3s ease !important;
        z-index: 9997 !important;
        top: 60px !important;
        width: 260px !important;
        bottom: 0 !important;
        overflow-y: auto !important;
    }
    .menu-toggle .dlabnav {
        left: 0 !important;
    }

    /* ── Contenido principal ── */
    .content-body {
        margin-left: 0 !important;
        padding-top: 75px !important;
    }

    /* ── Overlay oscuro cuando el menú está abierto ── */
    .menu-toggle::before {
        content: '';
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(0, 0, 0, 0.5);
        z-index: 9996;
    }

    /* ── Footer del sidebar ── */
    .copyright {
        padding: 16px;
    }

    /* ── Tablas responsive ── */
    .table-responsive { overflow-x: auto; }

    /* ── Cards en 1 columna ── */
    .row .col-xl-3,
    .row .col-xl-4,
    .row .col-xl-6 {
        flex: 0 0 100%;
        max-width: 100%;
    }
}
