/* ==========================================================================
   MATRIX MAIN
   ========================================================================== */

/*LOGIN*/
#login-wrapper{
  height: 100%;
  background: #fff;
  border-radius:10px;
  box-shadow: 0px 0px 52px -11px rgba(0,0,0,0.35);
}

@media screen and (min-width: 640px) {
    #login-wrapper {
        height: 640px;
    }
}

#login-form{
  margin:0 15px;
  text-align: center;
}

#login-logo{
  max-width: 240px;
  margin-bottom: 30px;
}

#login #copyright{
  width:240px;
  height: 80px;
  background: url(../images/copyright-matrix.png) no-repeat;
  text-indent: -9999px;
  border-bottom-right-radius: 10px;
  margin-right:-15px;/*sobresceve padding da coluna*/
}

/*APP*/
body#app{
  background-color:#F2F2F2;
}

#screen-header h1{
  font-size: 32px;
  font-weight: bold;
}

#screen-actions{
  background: #F9F9F9;
  border-bottom:1px solid #E8E8E8;
}

#screen-actions .dropdown-menu{
  min-width: 0;
  position: relative;
}

#buscas-favoritas {
  position: relative;
  margin-bottom: 10px;
}

.controle-busca .btn-group {
  width:100%;
}

.controle-busca .dropdown-toggle{
  width:100%;
  text-align: left;
}

.controle-busca .dropdown-toggle::after {
    position: absolute;
    right:15px;
    top:18px;
}

.scrollable-menu {
    height: auto;
    max-height: 200px;
    overflow: auto;
    width: 100% !important;
}

.controle-busca .dropdown-menu{
  width:70%;
}

.controle-busca .dropdown-item {
  position: relative;
}

.dropdown-busca {
    overflow: hidden;
    text-overflow: ellipsis;
    padding-right: 30px;
}

.controle-busca .dropdown-item .btn{
  position: absolute;
  top: -4px;
  right: 5px;
  z-index: 1090;
  cursor:  auto;
  color: #920806;
}

/*BUSCA COMPLETA*/
.dropdown-search{
  box-shadow: 0px 0px 0px 5px rgba(0,0,0,0.15);
  padding: 0;
}

.dropdown-search .row {
    margin-right: -5px;
    margin-left: -5px;
}

.dropdown-search .col-lg-3,
.dropdown-search .col-lg-4,
.dropdown-search .col-lg-6{
  padding-left: 5px!important;
  padding-right: 5px!important;
}

.dropdown-search .search-title{
  background:#F9F9F9;
}

.dropdown-search .search-title h3{
  display: inline-block;
  font-size: 20px;
  color: #000;
  font-weight: bold;
}

.dropdown-search h4{
  font-size: 18px;
  font-weight: bold;
  color: #005EA1;
  margin-top: 5px;
  position: relative;
  z-index: 1;
}

.dropdown-search h4:before{
  border-top: 2px solid #dfdfdf;
  content:"";
  margin: 0 auto;
  position: absolute;
  top: 50%; left: 0; right: 0; bottom: 0;
  width: 100%;
  z-index: -1;
}

.dropdown-search h4 span {
    background: #fff;
    padding: 0 15px 0 0;
}

.dropdown-search label{
  margin-bottom: 3px;
}

.dropdown-search .close{
  outline: none;
}

.dropdown-search .search-fields{
  padding: 0 10px 0px 10px !important;
}

@media screen and (max-width: 699px) {
    .dropdown-search {
        width: 100%;
    }
}

.dropdown-search .form-group {
    margin-bottom: 0.5rem;
}

.dropdown-search .search-actions{
  width: 600px;
}

/*BOTÕES*/
.btn-primary{
  background: #267BD9;
}

.btn-success{
  background: #38A745;
}

/* Compatibilidade com o IE11 */
@media screen and (min-width: 992px) {
    .btn-pesquisa {
        width: auto;
    }
}

/* Compatibilidade com o IE11 */
.input-pesquisa {
    display: block;
    text-align: left;
}

.btn-success:hover,
.btn-success.active,
.btn-success:active,
.show > .btn-success.dropdown-toggle{
  background: #38A745;
}

.btn-primary.disabled{
  color:#68C6F3;
  background: #ECF8FD;
  border:1px solid #92D6F6;
}

.btn-custom {
  color: #333;
  text-shadow: 0 1px 0 #fff;
  background-image: linear-gradient(to bottom, #fff 0, #e0e0e0 100%);
  background-repeat: repeat-x;
  border-color: #dbdbdb;
  border-color: #ccc;
}

.btn-custom:hover, .btn-custom:focus {
  color:#333;
	background-color: #e0e0e0;
  border-color: #A6A6A6;
}

.btn-custom:active, .btn-custom.active {
	background-color: #e0e0e0;
	border-color: #A6A6A6;
}

.btn-custom:disabled, .btn-custom[disabled] {
	background-color: #e0e0e0;
	background-image: none;
}

/*BADGE NO BOTÃO*/
.btn-custom .badge{
  background: #005EA1;
  color:#fff;
  font-weight: normal;
  padding: 4px 6px;
  margin-left: 5px;
}

/*DROP CUSTOM*/
.btn-drop-custom {
    color:#333;
    text-shadow: 0 1px 0 #fff;
    background: #FFF;
    border-color: #dbdbdb;
    border-color: #ccc;
}

.btn-paciente {
    padding: 10px;
    display: inline;
}

.btn-paciente .btn{
    white-space: normal;
    border-style : none;
    font-weight : bold;
}

#screen-loading {
    display: none;
    bottom: 0px;
    position: fixed;
    z-index: 99;
}

#screen-loading.show {
    display: block;
}

.btn-carregando {
    border-radius: inherit;
}

/*CARD EXAME RESULTADOS*/
.card-exame{
  margin-bottom: 20px;
}

.card-exame header{
  border-radius: 4px 4px 0 0;
  background:#F9F9F9;
}

.card-exame .info-paciente{
  border-top-left-radius: 5px;
  border-right: 1px solid #dbdbdb;
  background: #FFF;
}

@media screen and (max-width: 578px) {
    .card-exame .info-paciente {
        width: 100%;
    }
}

.card-exame .info-paciente h2{
  font-size: 1rem;
  font-weight: bold;
  margin: 15px;
}

.card-exame .info-paciente .attr{
  font-weight: bold;
  padding: 15px;
  border-left: 1px solid #dbdbdb;
}

.card-exame .info-paciente .attr .fa, .card-exame .info-paciente .attr .fas, .card-exame .info-paciente .attr .far {
    margin-right: 10px;
    color: #808080;
}

.mensagem-procedimento-bloqueado {
    font-size:.8em;
    color:grey;
}
.card-exame .info-exame{
  background: #F2F2F2;
  border-top: 2px solid #dbdbdb;
  padding: 10px;
}

.card-exame .info-exame .attr {
  margin-right: 30px;
}

    .card-exame .info-exame .attr .fa, .card-exame .info-exame .attr .fas, .card-exame .info-exame .attr .far {
        margin-right: 10px;
        color: #808080;
    }

.card-exame .table{
  margin-bottom: 0;
}

.card-exame .table td{
  vertical-align: middle;
  position: relative;
}

.table.exame{
  border-top:2px solid #92D6F6;
}

.table.exame h3{
  font-size: 1rem;
  background: #ECF8FD;
  border:1px solid #92D6F6;
  padding: 5px 12px;
  display: inline-block;
  border-radius: 999px;
  margin: 0;
}

table.exame .fa-eye{color:#006FBF;}
table.exame .fa-check{color:#48B43E;}
table.exame .fa-flask{color:#F2AF0D;}
table.exame .fa-clock{color:#F25E0D;}
table.exame .fa-vials{color: #F2AF0D;}
table.exame .fa-lock {color:#ed2121; }
table.exame .fa-unlock {color:#48B43E;}

.card-exame .info-exame .fas.fa-eye {
    color: #006FBF;
}

.card-exame .info-exame .fas.fa-check {
    color: #48B43E;
}

.card-exame .info-exame .fas.fa-flask {
    color: #F2AF0D;
}

.card-exame .info-exame .fas.fa-clock {
    color: #F25E0D;
}

.card-exame .info-exame .fas.fa-vials {
    color: #F2AF0D;
}

.card-exame .info-exame .fas.fa-lock {
    color: #ed2121;
}

.card-exame .info-exame .fas.fa-unlock {
    color: #48B43E;
}


tr.resultados-wrapper > td{
  border: none !important;
}

tr.resultados-wrapper > td{
  padding: 0;
}

table.exame table.exame-resultados{
  display:none;
  border:none !important;
}

.card-exame.resumo tr.exame-dados{
  background: #ECF8FD;
}

.card-exame.resumo h3{
  background: #FFF;
}

.card-exame.resumo table.exame-resultados{
  display:table;
  transition: all 0.3s ease;
}

table.exame-resultados .parametro{
  padding-left: 60px;
  padding-right: 20px;
  border-right: 1px solid #e9ecef;
  background: url(../images/bullet-parametro.png) 20px center no-repeat;
}

table.exame-resultados td.alterado{
  color:#E51A1A;
  font-weight: bold;
}

table.exame a.alterado{
    color: #E51A1A;
}

.card-item .alert{
  margin: 0;
  border-radius: 0 0 4px 4px;
  text-align: center;
  display: none;
}

.card-item.erro{
  box-shadow: 0px 0px 0px 5px rgba(146,8,6,.20);
}

.card-item.erro .alert, .div-erro.alert{
  display: block;
  background:#920806;
  border:none;
  color:#FFF;
}

.card-item.sucesso .alert, .div-sucesso.alert{
  display: block;
  background:#38A745;
  border:none;
  color:#FFF;
}

.card-exame.impressao{
  box-shadow: 0px 0px 0px 5px rgba(146,214,246,.60);
}

.card-exame .badge{
  font-weight: normal;
  margin-left: 10px;
}

.info-busca {
    text-align: center;
    color: #fff;
    background-color: #17a2b8;
    border-color: #17a2b8;
    display: none;
}

.info-busca.show {
        display: block;
}

/*TABLE EVOLUÇÃO*/
table.evolucao{
  margin-bottom: 0;
}

table.evolucao td{
  vertical-align: middle;
  position: relative;
  padding: 6px;
}

table.evolucao h3{
  font-size: 1rem;
  background: #ECF8FD;
  border:1px solid #92D6F6;
  padding: 5px 12px;
  display: inline-block;
  border-radius: 999px;
  margin: 0;
  position: sticky;
  left: 0;
}

@media screen and (max-width: 578px) {
    .btn-group-evolucao {
        width: 100%;
    }

    .dropdown-toggle-evolucao {
        width: 100%;
        text-align: left;
    }

    .dropdown-toggle-evolucao::after {
        position: absolute;
        right: 15px;
        top: 18px;
    }
}

@media screen and (max-width: 991px) {
    #evolucao-logo {
        height: 30px;
    }
}

table.evolucao tr.exame-dados,
table.evolucao tr.exame-dados:hover{
  background: #ECF8FD;
}

table.evolucao tr:hover{
  background:#F6FCFE;
}

table.evolucao .parametro{
  padding-left: 60px;
  background: url(../images/bullet-parametro.png) #fff 20px center no-repeat;
}

.th-solicitacao{
  border-top:2px solid #92D6F6 !important;
  padding: 0 !important;
}

.th-solicitacao .codigo-solicitacao{
  text-align: center;
  border-bottom:1px solid #e9ecef;
  padding: 3px;
}

.th-solicitacao .data-solicitacao{
  font-weight: normal !important;
  text-align: center;
  font-size: 13px;
  width: 100%;
}

#divTableResultado {
    overflow-y: auto;
    max-height: calc(100vh - 200px);
}

/*INICIO - TABLE EVOLUCAO PAC (EVOLUÇÃO PACIENTE)*/
#table-evolucao-pac {
    border-spacing: 0;
    border-collapse: separate !important;
}

#table-evolucao-pac th {
    border-top: 1px solid #dee2e6;
    border-bottom: 1px solid #dee2e6;
    border-right: 0px solid #dee2e6;
}

#table-evolucao-pac td {
    border-bottom: 0px solid #dee2e6;
    border-right: 0px solid #dee2e6;
}

#table-evolucao-pac th:first-child {
    border-top: 1px solid #dee2e6;
}

#table-evolucao-pac th:first-child,
#table-evolucao-pac td:first-child {
    border-left: 0px solid #dee2e6;
}

#table-evolucao-pac tr th:first-child {
    z-index: 12 !important;
}

#table-evolucao-pac thead th {
    position: sticky;
    top: 0;
    z-index: 1;
    background: #ffffff;
}

/* Congelando primeira coluna tabela de evolução de pacientes. */
#table-evolucao-pac tr th:not(.th-solicitacao),
#table-evolucao-pac td:first-child,
#table-evolucao-pac td h3 a {
    position: sticky;
    width: 100px;
    left: 0;
    z-index: 10;
    background: #fff;

}

#table-evolucao-pac tr th {
    position: sticky;
    top: 0;
    z-index: 11;
    background: #fff;
}

/*FIM - TABLE EVOLUCAO PAC (EVOLUÇÃO PACIENTE)*/

.th-valor-referencia-texto {
    z-index: 12 !important;
    width: 250px !important;
}

.cor-valor-fora-referencial {
    color: red;
}


/*MODAL*/
.modal-header h5 {
   text-transform: uppercase;
   font-weight: bold;
}

.modal-lg {
    max-width: 1170px;
}

#modal-exibir-iframe .embed-responsive-16by9 {
    padding-bottom: calc(100vh - 150px);
    max-height: calc(100vh - 150px);
}

@media screen and (max-width: 575px) {
    #modal-exibir-iframe .embed-responsive-16by9 {
        padding-bottom: calc(100vh - 120px);
        max-height: calc(100vh - 120px);
    }
}

@media screen and (max-width: 768px) {
    .img-grafico-evolutivo {
        max-width: 100%;
        height: auto;
    }
}

.evolucao-pac .info-paciente{
  width: 100%;
  background: #F2F2F2;
  border-top: 2px solid #dbdbdb;
  border-bottom: 2px solid #92D6F6;
}

.evolucao-pac .info-paciente h2{
  font-size: 1rem;
  font-weight: bold;
  margin: 18px 15px 13px 15px;
}

.evolucao-pac .info-paciente .attr{
  font-weight: bold;
  padding: 15px;
  border-left: 1px solid #dbdbdb;
}

    .evolucao-pac .info-paciente .attr .fa, .evolucao-pac .info-paciente .attr .fas, .evolucao-pac .info-paciente .attr .far {
        margin-right: 10px;
        color: #808080;
    }

#grafico-evolutivo-logo {
    height: 30px;
}

.width-full {
    width: fit-content;
    width: -moz-fit-content;
    width: -webkit-fit-content;
    width: -o-fit-content;
    min-width: 100%;
}

.width-full-parent {
    width: 100%;
}

.width-full-evolucao-pac {
    max-width: 99%;
}

/*MEDIA QUERIES*/
@media screen and (min-width: 992px) {
  /*APP HEADER */
  #app-header{
    padding-top: 0 !important;
    padding-bottom: 0 !important;
  }

  /*MENU PRINCIPAL*/
  #menu-principal li.nav-item{
    line-height: 4; /*altura do item (padding:0 no #app-header)*/
    border-left:1px solid #E8E8E8;
    border-right:1px solid #E8E8E8;
    margin-left: -1px;
    padding-left: 10px;
    padding-right: 10px;
  }

  #menu-principal li a.dropdown-item{
    line-height: 1.5;
  }

  #menu-principal li.active{
    background: url('../images/arrow-up.png') no-repeat bottom center;
  }

  #buscas-favoritas {
    margin-bottom: 0px;
  }
}

@media screen and (min-width: 1200px) {
  .container{
    max-width:1310px !important;
  }
}

#menu-logo {
    height: 30px;
}


@media screen and (min-width: 1200px) {
    .coluna-exame{
        width:480px;
    }
}

@media screen and (max-width: 1199px) and (min-width: 992px) {
    .coluna-exame{
        width:330px;
    }
}

@media screen and (max-width: 991px) and (min-width: 768px) {
    .coluna-exame{
        width:230px;
    }
}

@media screen and (max-width: 767px) {
    .coluna-exame{
        width:150px;
    }
}

/* modal de pesquisa */
.modal-search {
    max-width: 790px;
}

@media screen and (min-width: 992px) {
    .modal-search {
        max-width: 790px;
    }
}

.modal-fullsize {
    max-width: 99%;
}

@media screen and (min-width: 576px) {
    .modal-dialog {
        margin: 1.75rem auto;
    }
}

/* 
    Modal cria um padding-right: 17px; no elemento em que a classe .modal está. Tentou-se usar o handleUpdate,
    como a documentação do boostrap 3 recomenda, mas não houve sucesso. Logo optamos pela abordagem de remover 
    forçadamente o padding-right de todos os modais.
*/
.modal {
    padding-right: 0px !important;
}

/* Sinal Valor De Referência do pedido divergente do valor de referência atual. */
.sinal-valor-referencia-divergente {
    width: 25px;
    height: 25px;
    padding: 5px;
    background-image: linear-gradient(45deg, rgba(255,255,255,0) 50%, #ff9326 50%);
    float: right;
}
