/* ==== Estructura principal ==== */
html, body {
    height: 100%;
    margin: 0;
    padding: 0;
	overflow: hidden;
}

body {
    display: flex;
    flex-direction: column;
    min-height: 100vh; /* Asegura que el footer quede abajo */
}

/* ==== Contenido principal ==== */
main {
    flex: 1; /* Ocupa todo el espacio disponible */
    display: flex;
    justify-content: center; /* Centrado horizontal */
    align-items: stretch;
	overflow-y: auto;
	padding-bottom: 0 !important;
    margin-bottom: 0 !important;
}

/* ==== Contenedor de reportes Power BI ==== */
section#report-container {
    position: relative;
    width: 100%;
    /*height: calc(100vh - 56px - 25px); /* ocupa toda la pantalla menos header y footer */
    height: calc(100vh - 56px);
	overflow: hidden; /* oculta lo que se desborda arriba */
    margin: 0;
    padding: 0;
}

/* ==== Power BI iframe ==== */
section#report-container iframe {
    width: 100%;
    height: calc(100%); /* estiramos hacia abajo */
    margin-top: -25px;         /* desplazamos 35px para ocultar banner */
    border: none;
}


@media only screen and (max-width: 575px) {
    section#report-container {
        height: calc(0.5625 * 100vw); /* Ajusta altura en pantallas pequeñas */
    }
}

/* ==== Login ==== */
.card {
  width: 90%;         /* Se ajusta en pantallas pequeñas */
  max-width: 300px;   /* Límite en pantallas grandes */
  margin: auto;       /* Centrado automático */
  border-radius: 12px;
  box-shadow: 0 8px 25px rgba(0,0,0,0.1);
  border: none;
}

/* ==== Footer ==== */
.footer {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: #f8f9fa; /* igual que bg-light */
    text-align: center;
    font-size: 0.75rem;
    padding: 0.2rem 0; /* delgado */
    border-top: 1px solid #ddd; /* línea separadora opcional */
    /* z-index: 1030; /* encima del contenido */
}


/* ==== Navbar ==== */
.navbar {
    background-color: #efefef; /* recomendado */
    height: 56px;             /* Mantener altura */
}

/* Logo dentro del navbar */
.navbar-brand img {
    margin-right: 10px; /* Espacio entre logo y texto */
    height: 25px;       /* Tamaño consistente del logo */
    width: auto;
}

/* Color normal de las opciones */
.navbar .nav-link {
    color: #000000 !important;   /* Negro */
    font-weight: 500;
}

/* Color cuando paso el mouse */
.navbar .nav-link:hover {
    color: #D50000 !important;   /* Rojo de tu marca */
}

/* Opción activa (la página actual) */
.navbar .nav-link.active {
    color: #D50000 !important;   /* También rojo para destacar */
    font-weight: 600;
}


/* Hover: cambio de color y aumento leve */
#btn-fullscreen:hover {
    background-color: #0056b3;
    transform: scale(1.1);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.3);
}

/* Icono centrado */
#btn-fullscreen:focus {
    outline: none;
}



/* Sidebar */
#reportSelectorContainer {
    transition: all 0.3s ease;
}

.sidebar-hidden {
    display: none;
}

/* Botón toggle panel */
.btn-toggle-panel {
    position: fixed;
    top: 68px;
    left: 15px;
    z-index: 9999;

    width: 38px;
    height: 38px;

    display: flex;
    align-items: center;
    justify-content: center;

    border: none;
    border-radius: 10px;

    background-color: rgba(255, 255, 255, 0.95);
    color: #333;

    box-shadow: 0 4px 12px rgba(0,0,0,0.12);
    cursor: pointer;

    transition: all 0.3s ease;
}


/* Contenedor del reporte */
#reportContainer {
    position: relative;
    overflow: hidden;
}

#reportWrapper {
    height: 100%;
}

#reportContainer {
    height: 100%;
}

/* Iframe de Power BI */
#reportContainer iframe {
    position: absolute;
    top: -42px;   /* ajusta este valor */
    
}



.btn-fullscreen {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 9999;

  width: 30px;
  height: 30px;
  border-radius: 50%;

  border: none;
  background-color: #0d6efd;
  color: white;
  font-size: 22px;
  cursor: pointer;

  box-shadow: 0 4px 12px rgba(0,0,0,0.25);
  transition: all 0.2s ease;
}

.btn-fullscreen:hover {
  background-color: #0b5ed7;
  transform: scale(1.05);
}

/* Cuando está en fullscreen */
.fullscreen-active {
  background-color: #dc3545;
}

.recaptcha-container {
    display: flex;
    justify-content: center; /* lo centra */
}

.recaptcha-container div {
    transform: scale(0.85);   /* ajusta el tamaño */
    transform-origin: center;
}


.btn-primary {
    border: none;
    box-shadow: 0 4px 10px rgba(0, 123, 255, 0.3);
    transition: all 0.2s ease-in-out;
}

.btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 14px rgba(0, 123, 255, 0.4);
}

.full-height-container {
    display: flex;
    align-items: center;
    justify-content: center;
}

.alert {
    position: fixed;
    top: 70px;
    left: 50%;
    transform: translateX(-50%);
    
    z-index: 9999;
    min-width: 300px;
    max-width: 500px;
    
    text-align: center;
}

.dropdown-menu {
    border-radius: 8px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

.dropdown-item:hover {
    background-color: #f5f5f5;
}


#searchUser {
    border-radius: 8px;
    border: 1px solid #ced4da;
    box-shadow: none;
}

#searchUser:focus {
    border-color: #80bdff;
    box-shadow: 0 0 0 0.15rem rgba(0, 123, 255, 0.15);
}

#searchReport {
    border-radius: 8px;
    border: 1px solid #ced4da;
    box-shadow: none;
}

#searchReport:focus {
    border-color: #80bdff;
    box-shadow: 0 0 0 0.15rem rgba(0, 123, 255, 0.15);
}


.select2-container--default .select2-selection--single {
    border-radius: 8px;
    height: 38px;
    padding: 4px;
}