/* Estilos para imitar el look de Google Dashboard */
    .navbar-dashboard {
        background: #ffffff;
        border-bottom: 1px solid #e0e0e0;
        padding: 0.5rem 1rem;
    }
    .btn-icon {
        border-radius: 50%;
        width: 40px;
        height: 40px;
        display: flex;
        align-items: center;
        justify-content: center;
        color: #5f6368;
        transition: background 0.2s;
    }
    .btn-icon:hover {
        background: rgba(60, 64, 67, 0.08);
        color: #202124;
    }
    .profile-img {
        width: 32px;
        height: 32px;
        border-radius: 50%;
        object-fit: cover;
    }
    /* Grid de aplicaciones (Google Apps Style) */
    .apps-grid {
        display: grid;
        grid-template-columns: repeat(4, 1fr);
        gap: 10px;
        padding: 15px;
        width: 320px;
    }
    @media (max-width: 768px) {
        .apps-grid {
            grid-template-columns: repeat(2, 1fr);
            width: 200px;
        }
        .hide-mobile { display: none; }
    }
    .app-item {
        text-align: center;
        font-size: 12px;
        color: #5f6368;
        padding: 10px;
        border-radius: 8px;
    }
    .app-item:hover { background: #f1f3f4; text-decoration: none; color: #202124; }
    .app-item i { font-size: 24px; display: block; margin-bottom: 5px; }

    /* Ajuste para que los dropdowns no se salgan de la pantalla a la derecha */
    .dropleft-custom .dropdown-menu {
        right: 0;
        left: auto;
    }
	/* Limita a exactamente 3 líneas y pone puntos suspensivos */
.text-trim-3 {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;  
    overflow: hidden;
}
/*************MENU LATERAL*******************/
/* ================================================================
   SIDEBAR BASE Y RESPONSIVE
   ================================================================ */
#sidebar { 
    width: 320px; 
    background: #fff; 
    border-right: 1px solid #e0e0e0; 
    position: fixed; 
    height: 100vh;
    z-index: 1040; 
    transition: all 0.3s ease;
    overflow-y: auto;
}

@media (max-width: 767.98px) {
    #sidebar {
        width: 100% !important; 
        height: 100vh;
        top: 0;
        left: 0;
    }
}

/* ================================================================
   ESTILOS DE ENLACES (METISMENU)
   ================================================================ */
.metismenu, .metismenu ul {
    padding: 0;
    margin: 0;
    list-style: none;
	background: #fff;
}
.metismenu a { 
    display: flex; 
    align-items: center; 
    padding: 11px 20px; 
    color: #202124; 
    text-decoration: none; 
    font-size: 14px; 
    border-left: 3px solid transparent; 
    transition: all 0.2s; 
}

/* Indentación por niveles */
.metismenu ul a { padding-left: 45px; font-size: 13px; }
.metismenu ul ul a { padding-left: 70px; font-size: 12.5px; }

/* Estado Activo */
.metismenu li.active > a { 
    background-color: #e8f0fe; 
    color: #1a73e8; 
    border-left-color: #1a73e8; 
    font-weight: 600; 
}

/* ================================================================
   FLECHAS DINÁMICAS (HAS-ARROW)
   ================================================================ */
.metismenu .has-arrow::after {
    display: inline-block;
    content: "\f105"; 
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    margin-left: auto;
    transition: transform 0.3s;
}

.metismenu li.active > a.has-arrow::after {
    transform: rotate(90deg);
}

/* ================================================================
   TÍTULOS Y SEPARADORES
   ================================================================ */
.sidebar-title { 
    padding: 15px 20px 5px 20px; 
    font-size: 11px; 
    font-weight: 700; 
    color: #fb0118; 
    text-transform: uppercase; 
    display: flex;
    align-items: center;
}

.sub-title { 
    padding: 10px 20px 5px 45px; 
    font-size: 10.5px; 
    font-weight: 700; 
    color: #adb5bd; 
    text-transform: uppercase; 
    display: flex;
    align-items: center;
}

.metismenu ul ul .sub-title { padding-left: 34px; font-size: 9.5px; }

/* ================================================================
   UNIFICACIÓN Y TAMAÑO DE ICONOS (I, IMG, SVG)
   ================================================================ */

/* Contenedor Nivel 1 */
.main-icon { 
    width: 20px; 
    height: 20px; 
    display: inline-flex; 
    align-items: center; 
    justify-content: center; 
    margin-right: 12px; 
    flex-shrink: 0; 
}

/* Contenedor Nivel 2 y 3 */
.sub-icon, .last-icon { 
    width: 16px; 
    height: 16px; 
    display: inline-flex; 
    align-items: center; 
    justify-content: center; 
    margin-right: 10px; 
    flex-shrink: 0;
}

/* Normalización de contenido: El img/svg se adapta al contenedor .icon */
.main-icon img, .main-icon svg,
.sub-icon img, .sub-icon svg,
.last-icon img, .last-icon svg {
    width: 100% !important;
    height: auto !important;
    max-width: 100%;
    max-height: 100%;
    display: block;
}

/* Iconos sueltos (i) y espaciado general */
.sidebar-title i, .sub-title i {
    margin-right: 10px;
}

/* Ajuste específico para iconos DIRECTOS en títulos (sin contenedor) */
.sidebar-title img, .sidebar-title svg { 
    width: 14px !important; 
    height: 14px !important; 
    margin-right: 10px; 
    flex-shrink: 0;
}

.sub-title img, .sub-title svg { 
    width: 12px !important; 
    height: 12px !important; 
    margin-right: 8px; 
    flex-shrink: 0;
}

/* ================================================================
   CONTROL DE VISIBILIDAD (METISMENU JS)
   ================================================================ */
.metismenu li.active > ul { 
    display: block !important; 
    height: auto !important; 
}

.metismenu li:not(.active) > ul { 
    display: none; 
}
/* Encapsulamiento en clase footer-final */
    .footer-final {
        background: #fff;
        border-top: 1px solid #e0e0e0;
        padding: 7px 15px;
        color: #5f6368;
        font-size: 13px;
        width: 100%;
        transition: all 0.3s;
    }

    .footer-final .footer-links a {
        color: #5f6368;
        margin-left: 15px;
        text-decoration: none;
        transition: color 0.2s;
    }

    .footer-final .footer-links a:hover {
        color: #1a73e8;
    }

    .footer-final .status-indicator {
        display: inline-flex;
        align-items: center;
    }

    .footer-final .dot {
        height: 8px;
        width: 8px;
        background-color: #34a853; /* Verde Google */
        border-radius: 50%;
        display: inline-block;
        margin-right: 5px;
    }

    /* Ajustes responsivos dentro de la clase */
    @media (max-width: 768px) {
        .footer-final {
            text-align: center;
        }
        .footer-final .footer-right {
            margin-top: 10px;
            justify-content: center !important;
        }
        .footer-final .col-md-6 {
            padding-bottom: 10px;
        }
    }
	/******CONTAINER****/
	.contentenna {
        display: flex;
        width: 100%;
        overflow-x: hidden; /* Evita scroll horizontal accidental */
    }

    .contenedor {
        display: flex;
        flex-direction: column;
        
        background-color: #FFFFFF;
        transition: all 0.3s ease;
        /* Inicialmente 0, el JS lo posicionará */
        margin-left: 0; 
        width: 100%;
    }

    .main-content {
        flex: 1;
        width: 100%;
        padding-right: 15px;
        padding-left: 15px;
        margin-right: auto;
        margin-left: auto;
		padding-top:8px;
		padding-bottom:16px;
        /* Comportamiento container-fluid: no tiene max-width */
    }
	/* --- ESTILOS UNIFICADOS PARA BREADCRUMB HEADER --- */
.breadcrumb-header {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    padding: 1rem !important; /* Equivalente a p-3 */
    background-color: #f8f9fa !important; /* bg-light */
    border-bottom: 1px solid #dee2e6 !important; /* border-bottom estándar */
}

/* Estilo para el título interno */
.breadcrumb-header h4 {
    margin-bottom: 0;
    color: #343a40;
    font-weight: 700;
    font-size: 1.25rem;
}

/* Limpieza de estilos del breadcrumb interno */
.breadcrumb-header .breadcrumb {
    margin-bottom: 0;
    background-color: transparent;
    padding: 0;
}

.breadcrumb-header .breadcrumb-item a {
    text-decoration: none;
}
/*********INSTALL*************/
/* Reutilizamos la lógica de tus iconos unificados */
        .install-icon {
            width: auto;
            height: auto;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            margin-bottom: 15px;
        }
        .install-icon img, .install-icon svg {
            width: 100% !important;
            height: auto !important;
            display: block;
        }


        .install-card {
            width: 100%;
            max-width: 960px;
            background: #fff;
            border: none;
            border-radius: 8px;
            box-shadow: 0 4px 10px rgba(0,0,0,0.05);
            overflow: hidden;
        }

        .install-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 1.5rem;
            background-color: #f8f9fa;
            border-bottom: 1px solid #dee2e6;
        }

        .install-header h4 {
            margin-bottom: 0;
            color: #1a73e8; /* Color activo de tu sidebar */
            font-weight: 700;
            font-size: 1.25rem;
        }

        .install-body {
            padding: 2rem;
        }

      

        .btn-install {
            background-color: #1a73e8;
            border: none;
            font-weight: 600;
            padding: 10px;
            transition: all 0.3s;
        }

        .btn-install:hover {
            background-color: #1557b0;
            transform: translateY(-1px);
        }
		/* Estilos de bienvenida */
        .welcome-text {
            color: #5f6368;
            font-size: 0.95rem;
            line-height: 1.6;
        }

        .setup-list {
            list-style: none;
            padding: 0;
            margin: 20px 0;
        }

        .setup-list li {
            display: flex;
            align-items: center;
            margin-bottom: 10px;
            color: #5f6368;
            font-size: 0.9rem;
        }

        .setup-list li i {
            color: #28a745;
            margin-right: 12px;
            width: 20px;
            text-align: center;
        }
		.tabs-responsive-container {
    overflow: hidden;
    width: 100%;
}
/****TABS RESPONSIVE***/
.tabs-responsive {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch; /* Scroll suave en iOS */
    border-bottom: 1px solid #dee2e6;
}

/* Evita que los textos se partan en varias líneas */
.tabs-responsive .nav-item {
    white-space: nowrap;
    flex: 0 0 auto;
}

/* Opcional: Ocultar barra de scroll en Chrome/Safari/Firefox */
.tabs-responsive::-webkit-scrollbar {
    display: none;
}
.tabs-responsive {
    -ms-overflow-style: none;  /* IE and Edge */
    scrollbar-width: none;  /* Firefox */
}