
.brand-link .brand-image{
    float: none;
    margin-left: auto;
    margin-right: auto;
    width: 40%;
    max-height: none;
}

.brand-link{
    text-align: center;
}

.main-sidebar{
    background-color: #162c40;
}
.control-sidebar{
    background-color: #162c40;
}

.sidebar-dark-primary .nav-sidebar > .nav-item > .nav-link.active{
    background-color: #5A8C3E;
}

[class*="sidebar-dark-"] .nav-treeview > .nav-item > .nav-link.active,
[class*="sidebar-dark-"] .nav-treeview > .nav-item > .nav-link.active:focus,
[class*="sidebar-dark-"] .nav-treeview > .nav-item > .nav-link.active:hover{
    background-color: #9CCE76;
    color: #fff;
}

.sidebar-dark-primary .nav-sidebar > .nav-item{
    line-height: 1.5;
}

[class*="sidebar-dark"] .brand-link{
    border-bottom: none;
}

.card-img-top{
    padding: 5%;
}

.btn-primary,
.btn-primary:focus{
    background-color: #5A8C3E !important;
    border-color: #5A8C3E !important;
    align-items: flex-end !important;
}

.btn-primary:hover{
    background-color: #9CCE76 !important;
    border-color: #9CCE76 !important;
}

.btn-outline-primary {
    border-color: #5A8C3E !important;
    color: #5A8C3E !important;
}
.btn-outline-primary:hover {
    background-color: #5A8C3E !important;
    color: white !important;
}

.btn-outline-success {
    border-color: #D95427 !important;
    color: #D95427 !important;
}
.btn-outline-success:hover {
    background-color: #D95427 !important;
    color: white !important;
}

.card-title{
    font-size: 1.2rem;
    font-weight: 600;
}

.card-footer{
    background-color: #fff0;
    padding: 0 1.25rem .75rem 1.25rem;
}

.card-text{
    text-align: justify;
    text-justify: inter-word;
}

.map-buttons {
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 1000;
}

.map-buttons .btn {
    margin-right: 5px;
}
.profile-user-img{
    border: 3px solid #5A8C3E;
    margin-top: 10px;
}

hr{
    border-color:#5A8C3E;
}
.content-wrapper{
    min-height: 100vh;
    background-image: url("../img/Background4.png");
    background-repeat: no-repeat;
    background-position: bottom 0px right 0px;
    background-size: 80%;
    background-attachment: fixed;
}
.content-wrapper.flex-layout {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

#viewer-buttons {
    position: absolute;
    bottom: 20px;
    right: 20px;
    z-index: 1000;

    display: flex;
    gap: 10px; /* espacio entre botones */
}



#btn-calendar{
    z-index: 1000; /* Asegura que el botón esté encima del mapa */
    font-size: 14px;
    border: none;
    border-radius: 5px;
    background-color: #162c40;
    color: #fff;
    cursor: pointer;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    transition: background-color 0.3s ease;
    padding-left: 6px;
    padding-right: 6px;
}

#btn-calendar:hover, #btn-info:hover, #btn-BIM:hover, btn-report:hover {
    background-color: #495057;
}

.btn-group{
    position: absolute !important;
}

#infoSidebar {
    width: 300px;
    height: 100vh !important;
    max-height: 100vh;
    overflow-y: auto;
}

#btn-info, #btn-BIM, #btn-report {
    /*position: absolute;
    bottom: 20px;
    right: 70px;*/
    z-index: 1000; /* Asegura que el botón esté encima del mapa 
    padding: 10px 15px;*/
    font-size: 14px;
    border: none;
    border-radius: 5px;
    background-color: #162c40; /* Color del botón */
    color: #fff; /* Color del texto */
    cursor: pointer;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    transition: background-color 0.3s ease;
    width: 42px;
    height: 42px;
}

.ui-dialog .ui-dialog-titlebar{
    background-color: #162c40;
    color: #fff;
}

.ui-dialog .ui-dialog-content{
    padding-top: .0rem !important;
    background-color: #162c40 !important;
    color: white;
}

.ui-icon, .ui-widget-content .ui-icon{
    background-image: url("images/ui-icons_ffffff_256x240.png") !important;
}

#lengend-img2{
    margin-top: 10px;
}

#legend-img3, #legend-img4, #legend-img5, #legend-img6, #legend-img7, #legend-img8, #legend-img9, #legend-img10, #legend-img11, #legend-img12, #legend-img13{
    width: 350px;
}


/*label{
    margin-top: .5rem;
}

.botones{
    text-align: center;
    padding-top: 8px;
}*/


/***leyendas capas*/
.legends {
    position: absolute;
    bottom: 80px;
    left: 10px;
    display: flex;
    flex-direction: column;
    width: 110px;
    /*gap: 5px;*/
    justify-content: end;
    z-index: 1000;
}
.legends img{
    width:110px;
    height:auto;
}

.legends .max{
    position: absolute;
    right: 2px;
    bottom: -1px;
    font-size: 10px;
}
.legends .min{
    position: absolute;
    left: 2px;
    bottom: -1px;
    font-size: 10px;
}

.alert{
    padding: 10px !important;
    margin-top: 10px;
    margin-bottom: 5px !important;
}

.detener{
    padding: 10px;
    position: absolute;
    top: 3px !important;
    left: 60% !important;
    display: none;
    width: auto !important;
    background-color: rgba(255, 255, 255, 0) !important;
}

.content-wrapper > .content{
    position: relative;
    padding: 0;
}

.card-body{
    padding: 0 1.25rem 0 1.25rem;
    font-weight: 500;
}

.card{
    /*background-color: #ffffffa1;*/
    background-color: #ffffffff;
}

.container-fluid{
    padding-left: 0 !important;
    padding-right: 0 !important;
}

.content-header h1{
    color: #fff0;
}

.container-fluid > .row{
    margin-right: 10px;
    margin-left: 10px;
}

.table-responsive{
    /*background-color: #ffffffa1;*/
    padding-left: 8px;
    padding-right: 8px;
}

.right{
    width: inherit !important;
}

[class*="sidebar-dark-"] .sidebar a{
    color: #6C757D;
}

body{
    font-family: "Source Sans Pro",-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,"Helvetica Neue",Arial,sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol" !important;
    font-size: 1rem !important;
}

.centered{
    padding-top: 6%;
}

.myicon1{
    content:url( "../img/xtract-germany.png");
}

.myicon-top1{
    content:url( "../img/xtract-germany-v3.png");
}

.myicon2{
    content:url( "../img/xtract-sweden.png");
}

.myicon-top2{
    content:url( "../img/xtract-sweden-v3.png");
}

.myicon3{
    content:url( "../img/xtract-portugal.png");
}
.myicon-top3{
    content:url( "../img/xtract-portugal-v3.png");
}


.myicon4{
    content:url( "../img/xtract-greece.png");
}
.myicon-top4{
    content:url( "../img/xtract-greece-v3.png");
}

.myicon1, .myicon2, .myicon3, .myicon4 {
    
    display: inline-block;
    height: 25px;
}

.myicon-top1, .myicon-top2, .myicon-top3, .myicon-top4 {
    display: inline-block;
    height: 30px;

}


.pl-4 > p{
    position:absolute;
}

.nav-sidebar .nav-link p {
    margin-left: 7px;
}

.ol-layerswitcher-image-base-tidop {
    opacity: 0.3;
    transition: opacity 0.3s ease-in-out;
}

/* Por defecto, oculta todas las capas base */
.ol-layerswitcher-image-base-tidop .panel li {
  display: none;
}

/* Siempre mostrar la miniatura activa */
.ol-layerswitcher-image-base-tidop .panel li.ol-visible {
  display: inline-block;
}

/* ESCRITORIO: mostrar todas al hacer hover */
@media (hover: hover) and (pointer: fine) {
  .ol-layerswitcher-image-base-tidop:hover .panel li {
    display: inline-block;
  }
}

/* TÁCTIL: mostrar todas si se activa la clase touch-open */
.ol-layerswitcher-image-base-tidop.touch-open .panel li {
  display: inline-block;
}

/* Suaviza el aspecto del switcher */
.ol-layerswitcher-image-base-tidop {
  opacity: 0.3;
  transition: opacity 0.3s ease-in-out;
}

.ol-layerswitcher-image-base-tidop:hover {
  opacity: 1;
}

.ol-layerswitcher-image-base-tidop li {
  transition: transform 0.2s ease, opacity 0.2s ease;
  cursor: pointer;
}

.ol-layerswitcher-image-base-tidop li:hover {
  transform: scale(1.05);
}

/* Ocultar el <li> de encabezado innecesario */
.ol-layerswitcher-image-base-tidop .panel li.ol-header {
  display: none !important;
}

/* En dispositivos con cursor, usar hover */
@media (hover: hover) {
    .ol-layerswitcher-image-base-tidop:hover {
        opacity: 1 !important;
    }
}

/* En móviles y tablets, quitar la opacidad */
.touch-device .ol-layerswitcher-image-base-tidop {
    opacity: 1 !important;
}

.offcanvas.offcanvas-bottom{
    height: auto !important;
    /*max-height: 80vh !important;
    overflow: hidden;*/
}

/*.offcanvas-body{
    visibility: hidden;
}*/

.offcanvas-fixed {
  --bs-offcanvas-width: min(100vw, 400px) !important;
}

#chartEGMS_Interf .canvasjs-stock-container canvas{
    height: auto;
    width: auto;
}

#chartEGMS{
    visibility: visible;
    display: block !important;
}

.tooltip {
    position: absolute;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 5px 10px;
    border-radius: 5px;
    font-size: 12px;
    white-space: nowrap;
    pointer-events: none; /* No bloquea la interacción */
    opacity: 0;
    transition: opacity 0.2s ease-in-out;
    z-index: 1000;
}


/* x-adminlte-modal */
.modal-content {
    background-color: #162c40 !important; 
    color: #ffffff !important;
    border: 1px solid #5A8C3E;
}

.modal-header {
    background-color: #5A8C3E !important;
    border-bottom: 1px solid #5A8C3E; /* Línea de separación */
}

.modal-footer {
    background-color: #162c40; /* Fondo igual que el sidebar */
    border-top: 1px solid #5A8C3E;
}

.bg-gradient-info-xtract {
    background-color: #9CCE76 !important;
    color: #ffffff !important;
}


.section-box {
    backdrop-filter: blur(4px);
    padding: 1.5rem;
    border-radius: 0.75rem;
}

body:not(.dark-mode) .section-box {
    background-color: rgba(255, 255, 255, 0.9);
}

body.dark-mode .section-box {
    background-color: rgba(30, 30, 30, 0.85);
    color: #f1f1f1;
}

.main-footer
{
    padding: 0;
}

.xtract-footer {
    background-color: #5A8C3E;
    color: white;
    padding: 0.5rem 0;
    text-align: center;
    font-size: 0.875rem;
}

.xtract-footer a {
    color: white;
    text-decoration: underline;
}

.boton-descarga{
    margin-left: 0px;
    position: absolute;
    left: -20px;
    top: 0px;
    font-size: 12px;
    background-color: transparent !important;
}

.boton-descarga > i{
    color: #5A8C3E
}

/* Clase para cajas blancas con padding y bordes redondeados */
.bg-white-box {
    background-color: #ffffff !important;
    padding: .5rem 0 !important;
    border-radius: 0.25rem !important;
}



/* Sobreescribir estilos del popup para que coincida con tu paleta */
.ol-popup.default > div {
    background-color: white;
    border: 2px solid #5A8C3E !important; /* primaryGreen */
    border-radius: 10px !important;
    box-shadow: 0 4px 15px rgba(22, 44, 64, 0.25) !important; /* primaryDark con transparencia */
    min-width: 280px;
    max-width: 320px;
}

.ol-popup.default .anchor {
    color: #5A8C3E !important; /* primaryGreen para la flecha */
}

.ol-popup.default .closeBox {
    background-color: rgba(22, 44, 64, 0.7) !important; /* primaryDark */
    border-radius: 50% !important;
    color: #9CCE76 !important; /* secondaryLightGreen */
    font-size: 0.9em !important;
    width: 1.5em !important;
    height: 1.5em !important;
    margin: 8px 8px 0 0 !important;
}

.ol-popup.default .closeBox:hover {
    background-color: #D95427 !important; /* secondaryOrange */
    color: white !important;
}

.ol-popup .ol-popup-content {
    padding: 12px 15px !important;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: #333;
    max-height: 300px;
    overflow-y: auto;
}

/* Estilos para la tabla dentro del popup */
.ol-popup .ol-popup-content table {
    width: 100%;
    margin: 0;
}

.ol-popup .ol-popup-content tr {
    border-bottom: 1px dashed #e8f0e5;
}

.ol-popup .ol-popup-content tr:last-child {
    border-bottom: none;
}

/* Si quieres quitar completamente la flecha (anchor) */
.ol-popup.default .anchor {
    display: none; /* Ocultar la flecha si no la quieres */
}

/* O si prefieres mantenerla pero con tus colores */
.ol-popup.default .anchor:before {
    border-color: #5A8C3E transparent !important; /* primaryGreen */
}

.ol-popup.default .anchor:after {
    border-color: white transparent !important;
}

.map-title {
  position: absolute;
  top: 10px;
  z-index: 1000;

  background: rgba(22 , 44, 64, 1);
  color: white;
  padding: 6px 10px;
  border-radius: 6px;

  font-size: 13px;
  font-weight: 500;
  pointer-events: none; 

  display: none;
}

#map-der{
  left: 50%;
  transform: translateX(-50%);
}

#map-iz{
  left: 25%;
  transform: translateX(-50%);
}

.ol-attribution.ol-uncollapsible{
    display: none;
}