/*====================================*/
/*              BUTTONS               */
/*====================================*/

button{cursor: pointer;}

/*............. PRIMARY ..............*/
button.primary{
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 32px;
    border: none;
    background-color: steelblue;
    color: white;
}
button.primary.hollow{background-color:transparent; color:steelblue; border:1px solid steelblue}

button.primary.active{background-color: var(--dcny-gold);}
button.primary.round{border-radius: 22px;}
button.primary.nomin{min-height: 0px;}
button.primary.fit{min-height: 0px; height: 100%}

button.primary img.icon{
    height: 24px; 
    width:24px;
    margin:6px
}

/*.............. GHOST ...............*/
button.ghost{
    background-color: transparent;
    border: none; 
    color: rgba(0,0,0,0.5);
    padding: 8px;
}

/*.............. ICONO ...............*/
button.icono{
    background-color: transparent;
    border: none; 
}
button.icono:active{background-color: rgba(0,0,0,0.3)}
button.icono.active{background-color: rgba(0,0,0,0.2)}

button.icono img{
    height: 100%;
    width: auto;
}
button.icono .material-icons{ margin: auto; }

button.icono.white{ color : white; }



/*............... LINK ...............*/
button.link-out {
    display: grid;
    grid-template-columns: 24px 1fr 24px;
    grid-gap: 8px;    
    width: 100%;

    min-height: 24px;
    font-size: 0.9rem;
    padding: 4px 8px;

    background-color: transparent;
    border: 1px solid var(--dcny-gray-dark);
    color: var(--dcny-gray-dark);
}
button.link-out span{
    text-align: left;
    margin: auto 0;
}
button.link-out .material-icons{margin: auto 0;}
button.link-out .material-icons:first-child{
    transform: rotate(45deg);
}

/*............... TAB ................*/
button.tab{
    padding: 12px;
    min-width: 80px;
    /*width: 100%;*/
    text-align: left;
    cursor: pointer;
    border: none;
    width: auto;

    border-top: 4px solid var(--dcny-gray-med);
    background-color: var(--dcny-gray-light);
    margin-right: 1px;

    font-family: "Montserrat", sans-serif;
    text-align: center;
}

button.tab.active{
    border-color: var(--dcny-gold);
    background-color: white;
    color: steelblue;
}


/*-------------- TOGGLE --------------*/
button.toggle{
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 32px;
    border: none;
    background-color: var(--dcny-gray-light);
    color: var(--dcny-gray-dark);

    /*border-radius: 17px;*/
}
button.toggle.active{background-color: var(--dcny-gold); color: steelblue;}

button.toggle svg{height: 24px; width: 24px;}
button.toggle svg path:first-child{fill: var(--dcny-gray-dark);}
button.toggle.active svg path:first-child{fill: steelblue;}


/*------ OVERWRITE ESRI BUTTONS ------*/
button.esri-button{background-color: steelblue !important; border: none !important;}


/*-------------- HOVER ---------------*/
@media (hover: hover) and (pointer: fine) {
    /*Protect against click hover on touch devices;*/

    button.primary:hover{filter: brightness(0.85);}
    button.primary.hollow:hover{background-color:rgb(70,130,180,0.85)}
    
    button.ghost:hover, button.icono:not(.active):hover{background-color: rgba(0,0,0,0.1)}
    button.icono.white:hover{background-color: rgba(255,255,255,0.2)}
    
    button.link-out:hover{background-color: var(--dcny-gray-light);}
    button.popout:hover{background-color: rgba(255,255,255,0.2); }

    button.toggle:hover{background-color:var(--hover-gray-light);}
    button.toggle.active:hover{background-color: var(--hover-gold);}
    button.esri-button:hover{background-color: var(--hover-blue-dark) !important; }
}