@use "helpers";

.table {
    thead {
        background-color: helpers.$medium;
        font-family: helpers.$fontRegular;
        font-size: 13px;
        line-height: 40px;
        text-transform: uppercase;

        th {
            font-weight: normal;
            text-align: center;

            &:first-child {
                text-align: left;
                padding-left: 10px;
            }
        }
    }

    tbody {
        text-align: center;

        tr {
            background-color: helpers.$light;
            border-bottom: 1px solid helpers.$borders;

            .tdesc, .tqtd, .tvl1, .tvl2 {
                white-space: nowrap;
                width: 22%;

                @media (max-width: 767px) {
                    font-size: 12px;
                    white-space: normal;
                }
            }
            .tdesc a:last-child {
                white-space: normal;
            }
            .tqtd a {
                color: helpers.$textoDark;
                font-weight: normal;
            }
            .tvl1 {
                color: helpers.$textoDark;
            }
            .tdel {
                width: 12%;
            }
            td {
                padding: 16px 0;
                min-width: 32px;

                &:first-child {
                    text-align: left;
                    padding-left: 30px;
 
                    @media (max-width: 767px) {
                        padding-left: 10px;
                    }
                }

                a {
                    @include helpers.transicao(0.8s);
                    display: inline-block;
                    font-weight: bold;
                    vertical-align: top;
                    &:hover {
                        color: helpers.$textoDark;
                    }
                    span {
                        color: helpers.$textoDark;
                        display: block;
                        font-size: 12px;
                        font-weight: normal;
                    }
                    .ico-remove {
                        display: inline-block;
                        width: 20px;
                        height: 20px;
                        background: url(../img/sprite.png) no-repeat;
                        background-position: -3px -291px;
                    }
                }
                img {
                    max-height: 100px;
                    max-width: 100%;
                    margin-right: 5px;
                }
                &.tdel a {
                    height: 100%;
                    display: block;
                    width: 100%;
                }
            }
        }
        tr:nth-child(even) {
            /*background-color: #f9f9f9;*/
        }
    }

    tfoot {
        background-color: helpers.$medium;
        border: 2px solid helpers.$borders;
        border-top-width: 0px;
        color: helpers.$textoDark;
        font-family: helpers.$fontRegular;
        font-size: 12px;
        line-height: 50px;

        td {
            text-align: center;

            &:first-child {
                text-align: left;
            }

            &:nth-child(2) {
                font-size: 14px;
            }
        }
    }
}

.rastreamento {
    .tabela-eventos {
        background-color: helpers.$light;
        width: 100%;

        tbody {
            display: block;
            padding: 0px 8px;

            tr {
                border-top: 1px solid helpers.$borders;
                display: block;
                padding: 8px 0px;

                td {
                    display: block;
                    width: 100%;
                }

                &:first-child {
                    border: none;
                }
            }
        }
    }
}