﻿html, body {
    height: 100%;
    margin: 0;
    padding: 0;
}

body {
    display: flex;
    flex-direction: column;
    min-height: 100vh; /* esto asegura que ocupe toda la pantalla */
}

/* Header */
header {
    height: 80px;
    background-color: white;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

/* Contenido crece y empuja el footer hacia abajo */
.page-wrapper {
    flex: 1;
    padding: 20px;
    background-color: #d1e7dd;
    display: flex;
    flex-direction: column;
    box-sizing: border-box;
}

/* Footer que siempre queda al final */
footer.footerS {
    background-color: #111;
    color: white;
    text-align: center;
    padding: 1rem 0;
    flex-shrink: 0;
}

.sidebar {
    height: 100%;
    background: linear-gradient(180deg, #e8f3ef 0%, #dbeee7 100%);
    color: #18453b;
    border-radius: 16px;
    border: 1px solid #c9e2d8;
    box-shadow: 0 8px 22px rgba(24, 69, 59, 0.08);
    overflow: hidden;
}

    .sidebar h3 {
        margin: 0;
        color: #18453b;
        background: rgba(255,255,255,0.45);
        border-bottom: 1px solid #c9e2d8;
        font-weight: 800;
    }

    .sidebar a {
        display: block;
        padding: 15px 20px;
        color: #18453b;
        text-decoration: none;
        border-bottom: 1px solid #d7e9e2;
        font-weight: 600;
        transition: background-color .18s ease, color .18s ease, padding-left .18s ease;
    }

        .sidebar a:hover {
            background-color: #cfe6de;
            color: #0f332b;
            padding-left: 24px;
        }

.logo {
    position: fixed;
    top: 0px;
    left: 10px;
    z-index: 1001;
}

/*#cleaning {
    background-image: linear-gradient(rgba(0, 0, 0, 1.5), rgba(0, 0, 0, 0.3)), url('/assets/images/logo/sabuesoLogo.png');
    background-size: 35%;
    background-repeat: no-repeat;
    background-position: bottom center;
    background-color: black;
    color: white;
    flex: 1;
}*/

.content {
    padding: 20px;
}

.container-fluid,
.wrapper,
#cleaning {
    margin-bottom: 0 !important;
}
[mostrar]{
    display:none;
}
/* ============================================================
   Menú moderno + responsive (PC / tablet / celular)
   ============================================================ */
.mobile-menu-toggle {
    display: none;
    align-items: center;
    gap: 8px;
    border: 1px solid #bcd9cf;
    background: #e8f3ef;
    color: #18453b;
    border-radius: 10px;
    padding: 8px 12px;
    font-weight: 700;
    cursor: pointer;
}

.sidebar-link {
    display: flex !important;
    align-items: center;
    gap: 12px;
}

.sidebar-link i {
    width: 20px;
    text-align: center;
    color: #2f7d69;
}

.sidebar-exit {
    color: #8b2f2f !important;
}

.sidebar-exit i {
    color: #b33b3b;
}

.sidebar-overlay {
    display: none;
}

.main-content-container {
    width: 100% !important;
    max-width: none !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
}

.main-content-container > .row {
    margin-left: 0;
    margin-right: 0;
    width: 100%;
}

@media (max-width: 991.98px) {
    body.sidebar-mobile-open {
        overflow: hidden;
    }

    .mobile-menu-toggle {
        display: inline-flex;
        position: fixed;
        top: 18px;
        left: 112px;
        z-index: 1200;
        box-shadow: 0 4px 14px rgba(15, 23, 42, .10);
    }

    .menu-col {
        position: fixed !important;
        top: 80px;
        left: -290px;
        width: 270px !important;
        max-width: 270px !important;
        height: calc(100vh - 80px);
        z-index: 1150;
        padding: 8px !important;
        transition: left .22s ease;
        background: transparent;
    }

    .menu-col.menu-open {
        left: 0;
    }

    .menu-col .sidebar {
        height: 100%;
        overflow-y: auto;
        overscroll-behavior: contain;
    }

    .content-col {
        flex: 0 0 100% !important;
        max-width: 100% !important;
        width: 100% !important;
        padding-left: 0 !important;
        padding-right: 0 !important;
    }

    .sidebar-overlay {
        display: block;
        position: fixed;
        inset: 0;
        background: rgba(15, 23, 42, .35);
        opacity: 0;
        visibility: hidden;
        z-index: 1100;
        transition: opacity .2s ease, visibility .2s ease;
    }

    .sidebar-overlay.show {
        opacity: 1;
        visibility: visible;
    }

    .page-wrapper {
        padding: 8px;
    }

    .page-wrapper .container-fluid.alert {
        padding: 8px;
    }
}

@media (max-width: 575.98px) {
    header {
        height: 72px;
    }

    .mobile-menu-toggle {
        top: 16px;
        left: 92px;
        padding: 7px 10px;
    }

    .mobile-menu-toggle span {
        display: none;
    }

    .menu-col {
        top: 72px;
        height: calc(100vh - 72px);
        width: min(82vw, 270px) !important;
        max-width: min(82vw, 270px) !important;
    }

    .sidebar a {
        padding: 13px 16px;
    }
}
