/* ESTILOS GENERALES PARA ESTRUCTURAR LA APP */

body {
    overflow: hidden; /* Necesario para captura de pantalla de mapa */
}


.floatLeft {
    float: left;
}

.floatRight {
    float: right;
}

.noselect {
  -webkit-touch-callout: none; /* iOS Safari */
    -webkit-user-select: none; /* Safari */
     -khtml-user-select: none; /* Konqueror HTML */
       -moz-user-select: none; /* Firefox */
        -ms-user-select: none; /* Internet Explorer/Edge */
            user-select: none; /* Non-prefixed version, currently
                                  supported by Chrome and Opera */
}

/* ====== Ajuste en altura del contenido ======================== */

.spFlexHeight {
    display: flex;
    flex-flow: column;
    height: 100%;
    flex-basis: auto;
}

.spFlexHeight > .spFlexHeightMax {
    flex: 1 1 auto;
}

.spFlexHeight > .spFlexHeightMin {
    flex: 0 1 auto;
}

.spHeightMax {
    display: flex;
    flex-direction: row;
    align-content: stretch;
    height: 100%;
}

.spHeight100,
.spHeight100 .tab-pane {
    height: 100%;
}

/* ====== Alineación (Utilizando flex) =================== */

.spFlex {
    display: flex;
}

.spText-bottom {
    display: flex;
    align-items: flex-end;
    margin-bottom: 0 !important;
}

/* ====== Panel scrollable ====================================== */

.spScrollX {
    overflow-y: hidden;
    overflow-x: auto;
}

.spScrollY {
    overflow-y: auto;
    overflow-x: hidden;
}

.spScrollXY {
    overflow-y: auto;
    overflow-x: auto;
}
/* ====== Estilos para tratar textos ============================ */

.text-word-break {
    word-break: break-all;
}

.text-truncate {
    position: relative;
    vertical-align: middle !important;
}

.text-truncate span {
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    position: absolute;
    left: 0;
    right: 0;
    top: calc(50% - 9px);
}

.text-truncate:before {
    content: '';
    display: inline-block;
}

.text-min {
    width: 1%;
    white-space: nowrap;
}

label.label-inline {
    padding-top: 7px;
}


/* Estilos para tablas */

.ordenable {
    cursor: pointer;
}

.ordenable:hover {
    opacity: 0.8;
}

/* ============== ALTURA DEL CONTENIDO DE LOS TABS =========== */
/* Tabs en ventanas modales */

.modal-height-max .modalPanelContent,
.modal-height-max .modalPanelContent > div {
    height: 100%;
}

.modal-height-max .tab-content {
    height: calc(100% - 40px);
}


/* ============== VENTANA MODAL TAMAÑO COMPLETO =========== */

/* ventanas modales con tamaño completo de pantalla */
.modal-height-max {
    height: calc(100% - 60px);
    width: calc(100% - 60px);
}

/* ============== DIRECTIVA spInputFileImage =========== */


div.spInputFileImage {
    width: 150px;
    height: 150px;
    background-color: #ffffff;
    text-align: center;
    vertical-align: middle;
    background-repeat: no-repeat;
    background-position: center center;
    background-size: contain;
}

div.spInputFileImage.spBanner {
    width: 100%;
    height: 60px;
}

div.spInputFileImage > input {
    height: 100%;
    width: 100%;
    -webkit-appearance: none;
    opacity: 0;
    cursor: pointer;
}

div.spInputFileImage > input[disabled] {
    cursor: not-allowed;
}

/* ============= DIRECTIVA spPaginationList ============ */

.spPaginationList .spLabel {
    margin: 8px 0 0 0;
    font-size: 16px;
}

/* ============= Clases para iconos que representan opción "activa / noActiva" ============ */
/* ************* Utilizado tanto en administrador como en el mapa ************************* */

.spOptActive,
.spOptActive:hover {
    color: var(--spStylePaleteColor6);
}

.spOptNoActive {
    color: var(--spStylePaleteColor4);
}


/* ************* Clases para los iconos de acls ***************************** */

.aclActivo {
    color: #1AB394;
    font-weight: bold;
}

.aclNoActivo {
    opacity: 0.05;
}

.aclIcon {
    display: inline-block;
    width: 22px;
}

/* ============= NAVBAR TOP  - spTopNavbarModule ============================ */

/*** Elementos de la derecha de la barra ****/

/* Barra superior derecha */
.spTopNavbarModule #navbar-top-right.nav > li > a {
    padding: 4px 8px 4px 8px;
    min-height: auto;
}

/* Imagen avatar en la barra superior derecha */
.spTopNavbarModule .spTopNavbar .spTopNavbarAvatar {
    height: 32px;
    max-width: 32px;
}






/* ============= COLORES DE TIPOS DE CAPAS ============ */

.spLayerTypeColor-TILETMPVRT{
    background-color: #F8FF6A;
}

.spLayerTypeColor-POSTGIS{
    background-color: #E8BD4F;
}

.spLayerTypeColor-SHP{
    background-color: #FF8847;
}

.spLayerTypeColor-SHP{
    background-color: #E83560;
}

.spLayerTypeColor-IMAGE{
    background-color: #B43AFF;
}

.spLayerTypeColor-TILE{
    background-color: #4238FF;
}

.spLayerTypeColor-TILETMP{
    background-color: #3BFF9C;
}

/* ======== tope de tamaño en los ui-select ======== */
.ui-select-bootstrap>.ui-select-choices {
    max-height: 150px !important;
}


/* ======== RESPONSIVE ========== */


@media (max-width: 768px){
    .modal-height-max {
        height: calc(100% - 20px);
        width: calc(100% - 20px);
    }
}
