body.layout-compact{
    //text-shadow: 0.2rem 0.2rem 0.1rem #000;
    background: red;

    .main-content{
        height: 90%;
    }

    .main-footer{
            height: 7%;
            position: absolute;
            bottom: 0;

    }

    .creditos{
        padding: 1.5rem 0;
    }

    .footer-content{
        width: 90%;
    }
}

body.layout-full-info{
    //text-shadow: 0.2rem 0.2rem 0.1rem #000;

    .main-content{
        height: 90%;
    }

    .main-footer{
        height: 9%;
        position:absolute;
        bottom:0;
        
    }
}

.loading-div {
    background: #FFFFFF url("Images/loading_inlog.gif") center no-repeat;
    top: 0px;
    z-index: 99999999;
    left: 0px;
    right: 0px;
    bottom: 0px;
    position: absolute;
    opacity: 1;
}

.border-red {
    border-color: red !important;
}

.container{
    @include outer-container;
    height: 100%;
}

.main-header{
    @include span-columns(12);
    @include display(flex);
    @include align-items(center);
    height: 10%;
    background: url('../img/bg-topo.jpg');
    background-size: contain;
    padding: 0 2rem;
}

.main-content{
    @include span-columns(12);
    height: 83%;
    background: #383838;
    position: relative;
}

.main-footer{
    @include span-columns(12);
    @include display(flex);
    @include align-items(stretch);
    background: url('../img/bg-footer.jpg');
    background-size: contain;
    padding: 0 2rem;
}

.dragtable-sortable{
    height: 100%;

    li{
        height: 100%;
    }
}
.JCLRgrip.dragging, .JCLRgrip:hover{
    .JColResizer{
        opacity: 0.5 !important;
        background: #fff;
        width: 0.7vh;
    }
}

.logotipo{
    @include span-columns(2);
    height: 100%;
    text-align: center;
    overflow: hidden;
    padding: 1.8rem;
    img{
        height: 100%;
        width: auto;
        display: block;
    }
}

.main-heading{
    @include span-columns(8);
    font-size: 5rem;
    font-weight: bold;
    color: #fff;
    line-height: 100%;
    margin-top: 0;
    margin-bottom: 0;
    text-shadow: 0.1rem 0.1rem 0.3rem #000;

    .painel-contador{
        margin-left: 1rem;
        font-size: 2rem;
        vertical-align: middle;
    }
}

.relogio-topo{
    @include span-columns(2);
    @include omega;
    font-size: 5rem;
    font-weight: bold;
    color: #fff;
    margin-top: 0;
    margin-bottom: 0;
    text-align: right;
    text-shadow: 0.1rem 0.1rem 0.3rem #000
}

.btn-configuracoes{
    width: 12vh;
    height: 12vh;
    position: absolute;
    top: 10vh;
    bottom: 10vh;
    right: 0;
    margin: auto;
    color: #fff;
    text-align: center;
    z-index: 6;
    cursor: pointer;

    i{
        line-height: 12vh;
        text-align: center;
        width: 12vh;
        height: 12vh;
        display: block;
        font-size: 6vh;
        border: 0.01em solid #397999;
        background: #2d617b url('../img/bg-bt-config.jpg') repeat-x;
        @include transform(translateX(100%));
        @include transition(all, 0.2s, ease-in-out);

        &:before{
            padding-left: 2vh;
        }
    }

    &:hover i{
        @include transform(translateX(0));
    }
}

.painel{
    width: 100%;
    height: auto;
    text-align: center;
    color: #fff;
    font-size: 3rem;
    font-weight: bold;
    text-shadow: 0.2rem 0.2rem 0.4rem #000;

    thead {
        background: url('../img/bg-th.jpg');
        background-size: contain;
        overflow: visible;
        th{
            text-transform: uppercase;
            padding: 1.4rem 0;
            cursor: move;
            white-space: nowrap;
            text-overflow: ellipsis;
            overflow: hidden;
            opacity: 0;

            &.to-left{
                text-align: left;

        }

            &:first-child{
                padding-left: 1rem;
    }
        }
    }

    tbody tr:nth-child(odd) td{
        background: #000000;
    }

    tbody tr:nth-child(even) td{
        background: #383838;;
    }

    tbody tr{
        overflow: hidden;
        display: none;
        opacity: 0;
    }


    td{
        height: 6.4vh;
        font-size: 1.75em;

        &:first-child{
            padding-left: 1rem;
        }

        div{
            white-space: nowrap;
            text-overflow: ellipsis;
            overflow: hidden;
        }
    }

    &.JColResizer td{
        padding-left: 2rem !important;
        padding-right: 2rem !important;
    }

    .dados-veiculo{
        .cod-id-veiculo{

        }

        .veiculo{
            width: 6rem;
            margin: 0 1rem;
            vertical-align: middle;
        }
    }

    .acessibilidade{
        .icon-preferential{
            text-shadow: none;
            font-size: 2rem;
            vertical-align: middle;
            padding: 0.3rem 0.4rem 0.6rem 0.7rem;
            background: #0f64ba;
        }
    }

    .dados-linha{
        @include display(flex);
        @include align-items(center);
        @include justify-content(center);
        .id-linha{
            //max-width: 20%;
            font-size: 2.5rem;
            margin-right: 1rem;
        }

        .nome-linha{
            //width: 100%;
            //min-width: 80%;
            overflow: hidden;
            text-overflow: ellipsis;
        }

    }

    .dados-horario{
        @include display(flex);
        @include align-items(center);
        @include justify-content(center);

        .horario{
            //width: 70%;
            padding: 0 1rem;
            float: left;
            overflow: hidden;
            text-overflow: ellipsis;
        }

        .info{
            //width: 30%;
            @include display(flex);
            @include flex-direction(column);
            @include align-items(center);
            @include justify-content(center);


            height: 1.1em;

            .veiculo{
                width: 4rem;
                display: block;
                margin-top: 0.8rem;
                //margin: auto;
            }

            .cod-id-veiculo{
                font-size: 1.8rem;
                vertical-align: middle;
                //margin-right: 1rem;
            }

            .icon-preferential{
                background: #0f64ba;
                text-shadow: none;
                font-size: 1.2rem;
                padding: 0.3rem 0.4rem 0.4rem 0.5rem;
            }
        }
    }
}

.footer-heading{
    @include span-columns(2);
    @include display(flex);
    @include flex-direction(column);
    @include justify-content(center);
    text-shadow: 0.1rem 0.1rem 0.3rem #000;

    font-size: 4.8rem;
    font-weight: bold;
    color: #fff;
    line-height: 100%;
    margin-top: 0;
    margin-bottom: 0;

    .footer-contador{
        margin-left: 1rem;
        font-size: 2rem;
        vertical-align: middle;
    }
}

.footer-content{
    @include span-columns(9);
    @include display(flex);
    @include align-items(center);
    @include justify-content(flex-start);
    height: 100%;
}

.msg-custom-item{
    @include display(flex);
    @include align-items(center);
    @include border-top-radius(0.6rem);
    @include border-bottom-radius(0.6rem);
    width: 100%;
    height: 85%;
    background: rgba(1, 8, 13, 0.2);
    @include transform(translateX(0));

    .foto{
        width: 40.6rem;
        height: 100%;
        overflow: hidden;
        float: left;
        margin-right: 2rem;
        @include border-top-radius(0.6rem);
        @include border-bottom-radius(0.6rem);

        img{
            width: auto;
            display: block;
            height: 100%;
            @include border-top-radius(0.6rem);
            @include border-bottom-radius(0.6rem);
        }
    }

    .txt{
        color: #fff;
        font-size: 3.3rem;
        margin-left: 2rem;
        margin-top: 0;
        margin-bottom: 0;
    }
}

.footer-animation{
    width: 100%;
    @include display(flex);
    @include align-items(center);
    @include justify-content(flex-start);
    height: 100%;
    opacity: 0;
    display: none;
    @include transform(translateX(100%));
    @include transition(transform .8s ease);

    &.enter{
        @include transform(translateX(0));

    }
}

.previsao-container{
    @include display(flex);
    @include align-items(center);
    @include justify-content(flex-start);
}

$itemsPrevFooter: 4;

.previsao{
    @include border-top-radius(0.6rem);
    @include border-bottom-radius(0.6rem);
    background: rgba(1, 8, 13, 0.2);
    font-weight: bold;
    text-align: center;
    padding: 2rem 2.5rem;
    text-shadow: 0.1rem 0.1rem 0.3rem #000;
    margin: 0 1rem;
    @include transform(translateX(100%));


    @for $i from 0 to $itemsPrevFooter {
        &:nth-child(#{$i}) {
            @include transform(translateX(($itemsPrevFooter - $i) *100%));
            @include transition-property(transform);
            @include transition-timing-function(ease-in);
            @include transition-delay(.1s);
            @include transition-duration(0.8s);
        }
    }





    &.enter{
        @include transform(translateX(0));
    }

    .veiculo{
        display: inline-block;
        vertical-align: middle;
        width: 7.6rem;
    }

    .cod-id-veiculo{
        font-size: 2.4rem;
        margin: 0 1rem;
        vertical-align: middle;
    }

    .icon-preferential{
        background: #0f64ba;
        color: #fff;
        padding: 0.3rem 0.5rem 0.5rem 0.8rem;
        font-size: 1.8rem;
        vertical-align: sub;
    }

    .linha{
        font-size: 3rem;
        margin: 1rem 0;
        color: #fff;
        white-space: nowrap;
        width: 30rem;
        overflow: hidden;
        text-overflow: ellipsis;
        margin: 1rem auto;

    }

    .horario{
        font-size: 3.5rem;
        vertical-align: middle;
    }
}

.plataforma{
    text-transform: uppercase;
    font-size: 2.5rem;
    background: #8757a8;
    color: #fff;
    padding: 0.5rem 0.8rem;
    margin-right: 1rem;
    display: inline;
    @include border-top-radius(0.5rem);
    @include border-bottom-radius(0.5rem);
    vertical-align: middle;
    text-shadow: none;
}



.destaque{
    color: #ecd851;
}

.creditos{
    @include span-columns(1);
    @include display(flex);
    @include justify-content(center);
    @include align-items(flex-end);
    padding: 3rem 0;

    img{
        width: 55%;
    }
}
