.painel-tabelas{
	height: 100%;
}

.painel-tabelas #select-marca, .painel-tabelas #select-rep{
    height: 3em;
    border: 1px solid #000;
    vertical-align: middle;
    margin-top: 1rem;
    width: 99%
}

.painel-tabelas-inputs{
    margin-bottom: 30px;
    text-align: center;
}

.cdr {
    background-color: #809CAB !important;
}

.painel-tabelas-inputs .input-field, #select-rep, #select-marca{
    display: inline-block;
    width: 49%;
    vertical-align: middle;
}

.painel-tabelas-inputs .input-field input{
    height: 3em;
    border: 1px solid;
    width: 100%;
}

.painel-tabelas-inputs .input-field label{
	margin-left: 5px;
}

.painel-tabelas-inputs .button-field{
    width: 48%;
    vertical-align: middle;
    height: 3em;
    margin: 1rem auto 0 auto;
}

/* .painel-tabelas-inputs .button-field button{
	width: 100%;
} */

.painel-tabelas-lista{
    height: -webkit-calc(70% - 65px);
    overflow: auto;
    text-align: center;
}

.painel-tabelas-lista .painel-tabelas-header{
	background: #ccc;
	padding: 5px 0px;
}

.painel-tabelas-table tr{
    border: 1px solid #000;
    box-shadow: 1px 1px 3px #777;
}

.painel-tabelas-table .item{
    cursor: pointer;
}

.painel-tabelas-header td{
    padding: 5px 0px;
}

.painel-tabelas-table label[for], .link-table label[for]{
    height: 16px;
    padding-left: 15px;
}

.painel-tabelas-table td{
	padding: 12px 5px;
	text-align: center;
}

.painel-tabelas-table .item td:last-child{
    padding: 5px;
    font-size: 1.5em;
}

#linking-modal{
    max-width: 1000px;
    width: 55vw;
    overflow: hidden;
    max-height: none;
}

#linking-modal .modal-header{
    text-align: center;
    padding: 10px 0px 0px 0px;
}

.link-table .header , .btn.modal-close, .btn.create-links{
    background-color: #809CAB;
    color: #fff;
}

#linking-modal .modal-content{
    height: 65vh;
    overflow: hidden;
}

#linking-modal .modal-content .search-container{
    width: 70%;
    height: 15%;
    margin: 0 auto;
}

#linking-modal .modal-content .table-container{
    overflow-y: auto;
    overflow-x: hidden;
    height: 85%;
}

.link-table{
    table-layout: fixed;
}

.link-table tr:not(.header){
    cursor: pointer;
}

.link-table tr{
    border: 1px solid #000;
    box-shadow: 1px 1px 3px #777;
}

.link-table tr .names-list{
    max-height: 65px;
    overflow-y: auto;
    overflow-x: hidden;
}

#linking-modal .table-container tr th:first-child,
#linking-modal .table-container tr td:first-child{
    width: 50px;
}

#linking-modal .table-container td,
#linking-modal .table-container th{
    padding: 15px;
    text-align: center;
}

#linking-modal .modal-footer{
    text-align: center;
    height: auto;
}

#linking-modal .modal-footer .delete-link{
    background-color: #F44336;
}

@media only screen and (min-width: 450px) {

    .painel-tabelas{
        width: 55%;
        margin: 0 auto;
        padding: 50px;
    }

}

@media only screen and (max-width: 450px) {
    .painel-tabelas {
        height: 100%;
        width: 90%;
        margin: auto;
        margin-right: auto;
    }

    #linking-modal .table-container td, #linking-modal .table-container th {
        padding: 5px;
        text-align: center;
        border-left: 1px solid;
    }

    .painel-tabelas-table td {
        padding: 12px 2px;
        text-align: center;
    }

    #linking-modal .modal-footer .delete-link {
        background-color: #F44336;
        padding: 7px;
    }

    .link-table .header, .btn.modal-close, .btn.create-links {
        background-color: #809CAB;
        color: #fff;
        padding: 7px;
    }

    #linking-modal .table-container tr th:first-child, #linking-modal .table-container tr td:first-child {
        width: 37px;
    }

}
