@charset "utf-8";

/* CSS Document */
html, body {
    margin: 0;
    padding: 0;
    min-height: 100%;
    width: 100%;
    box-sizing: border-box;
  }

body{
font-family: 'Roboto', sans-serif;
font-size: 14px;
}

.linha{
position:relative;
float:left;
width:100%;	
}

.div98{
position:relative;
float:left;
width:98%;
margin: 0px 1%;	
}

.div96{
position:relative;
float:left;
width:96%;
margin: 0px 2%;	
}

.div75{
position:relative;
float:left;
width:73%;
margin: 0px 1%;	
}

.div50{
position:relative;
float:left;
width:48%;
margin: 0px 1%;	
}

.div40{
position:relative;
float:left;
width:38%;
margin: 0px 1%;	
}

.div30{
    position:relative;
    float:left;    
    width:28%;
    margin: 0px 1%;	    
}

.div25{

position:relative;

float:left;

width:23%;

margin: 0px 1%;	

}

.div20{

position:relative;

float:left;

width:18%;

margin: 0px 1%;	

}

.div15{

position:relative;

float:left;

width:13%;

margin: 0px 1%;		

}

.div10{

position:relative;

float:left;

width:8%;

margin: 0px 1%;		

}

.top10{

margin-top:10px;	

}

.top20{

margin-top:20px;	

}

.top30{

margin-top:30px;	

}

.top40{

margin-top:40px;	

}

.top50{

margin-top:50px;	

}

.top100{

margin-top:100px;	

}

.centro{

text-align:center;	

}

.direita{

text-align:right;	

}

.mascara,.mascara2,.mascara3, .mascaraevolucao{

background-color:#ffffff;

position:fixed;

width:100%;

height:100%;

z-index:40;

display:none;

text-align:center;	

opacity:0.8;

}

.mascara2{

z-index:120;	

}

.ui-datepicker{
    z-index:999;
}

.mascaraevolucao{
    z-index: 80;
}

.mascara img, .mascara2 img{
	width: 300px;
	max-width: 90%;
	margin-top: 200px;
}

.txtcabev{
    position:relative;
    float:left;
}

.precons{
	padding: 5px 10px;
    background-color: #dbdbdb;
    border-radius: 5px;
    font-weight: 600;
}

.linhaevolucao{
    background-color: #EEE;
    width: 80%;
    margin: 20px 9%;
    padding: 10px 1%;
    border-radius: 8px;
    margin-top: 7px;
}
.chkevolucao{
    position:absolute;
    right: 10px;
    top:10px;
    width: 20px;
    height:20px;
    z-index: 20;
}
.printevo{
    position: fixed;
    right: 5px;
    padding: 10px;
    background-color: rgb(0, 0, 173);
    border-radius:50%;
    top: 10px;
    cursor:pointer;
    display: none;
}
.printevo img{
    width: 30px;
}



.tudo{

	

}

.submenu{

position: relative;

    float: left;

    margin-left: 5%;

    margin-top: 10px;

}

.subitem{

	    position: relative;

    float: left;

    padding: 5px 15px;

    background-color: #16b293;

    color: #FFF;

    border-radius: 3px;

    margin-right: 10px;	

	cursor:pointer;

}

.exibepaciente{

    position: relative;

    float: left;

    width: 50%;

    margin-left: 24%;

    padding: 6px 1%;

    font-size: 1.2em;

    border-bottom: 2px dotted #16b293;

    color: #888;

	cursor:pointer;	

}

.exibepaciente:hover{

	background-color: #16b293;

    color: #FFF;	

}

.titulopagina{

	font-size: 1.6em;

    color: #86458a;	

	margin-top: 90px;

}

.topoagenda{

position: fixed;

background-color:#FFF;

    top: 60px;

    width: 100%;

	z-index: 70;

	height:75px;

	padding-bottom: 10px;	

}

.corpoagenda{

position: absolute;

    width: 100%;

	top:180px;

	margin-bottom:60px;	

}

.numhoras{

position: absolute;

    z-index: 10;	

}

.hora{

     position: absolute;

    padding: 40px 0px 0px 0px;

    height: 60px;

    width: 79px;

    text-align: center;

    background-color: #e4e4e4;

    color: #808080;

    font-size: 1.2em;

    font-weight: 500;

    /* text-shadow: 0px 0px 4px #000; */

    cursor: pointer;

}

.linhahora{

	    position: relative;

    float: left;

    width: 98%;

   /* height: 45px; */

   height: 100px;

    background-color: #f1f2f3;

    border-bottom: 1px solid #d1d5d8;

    border-top: 1px solid #f5f5f5;	

}

.linhahatual{

	position: absolute;

    width: 100%;

    height: 4px;

    background-color: #ff99005e;

    z-index: 10;	

}

.consultas{

	position: absolute;

    height: 100%;	

	left:80px;

}

.consulta, .consultapesq{
	position: absolute;
    width: 303px;
    margin-left: 36px;
    padding: 0px 8px 0px 3px;
    font-size: 0.8em;
    background-color: #ffffffe3;
    border-bottom: 1px solid #e6e6e6;
    z-index: 20;
    cursor: pointer;
}

.txtconsulta{

		

}

.escolhetipo{

	position: relative;

    float: right;

    width: 240px;

    margin-top: 8px;

	margin-right: 30px;	

}

.escolhemedico, .escolhesede{

	    position: relative;

    float: right;

    width: 240px;

    margin-top: 8px;

	margin-right: 0px;	

}

.agmedico{

	position:absolute;

	width: 350px;

	height: 100%;

	border-right: 1px solid #d0d0d0;

	border-left: 1px solid #FFF;

	z-index: 10;

	cursor:pointer;	

}

.modal{

	position:absolute;

	width: 80%;

	left:8%;

	top: 170px;

	margin-bottom: 100px;

	padding: 20px 2%;

	background-color: #FFF;

	box-shadow: 0px 0px 20px #000;

	border-radius: 20px;

	z-index: 50;

	display:none;

}

.modalcliente{

	z-index:60;	

}

.titulomodal{

	width: 95%;

	font-size: 2em;

	color:#538d04;	

	border-bottom: 2px solid #F5F5F5;

	padding-bottom: 8px;

}

.label{

	color:#3b6600;	

}
.linhafamiliar, .linhaalergias{
    display: none;
}

input[type=text],input[type=time],input[type=email],input[type=tel],input[type=password],input[type=datetime-local],input[type=date],input[type=month],select,textarea{

	width: 90%;

    margin: 8px 0;

    display: inline-block;

    border: 1px solid #ccc;

    box-shadow: inset 0 1px 3px #ddd;

    border-radius: 4px;

    -webkit-box-sizing: border-box;

    -moz-box-sizing: border-box;

    box-sizing: border-box;

    padding-left: 20px;

    padding-right: 20px;

    padding-top: 12px;

    padding-bottom: 12px;

	font-family: "Roboto", serif;
  font-optical-sizing: auto;
  font-weight: 500;
  font-style: normal;
  color: #000;

}

input[type=text]:focus,input[type=time]:focus,input[type=email]:focus,input[type=tel]:focus,select:focus,textarea:focus{

  box-shadow: inset 0 1px 1px rgba(0, 0, 0, .075), 0 0 8px rgba(102, 175, 233, .6);

}

.btnsalva{

	    width: 400px;

    position: relative;

    margin-left: -250px;

    padding: 10px 0px;

    left: 50%;

    border-radius: 6px;

    background-color: #5a9904;

    background-image: linear-gradient(#00000014, #ffffff2b);

    border: none;

    color: #FFF;

    font-size: 1.2em;

    font-weight: 600;

    box-shadow: 0px 1px 3px #8e8e8e;

    cursor: pointer;

}

.btaddpaciente{

	position: relative;

    float: right;

    margin: 8px 0;

    display: inline-block;

    border: 1px solid #ccc;

    box-shadow: inset 0 1px 3px #ddd;

    border-radius: 4px;

    -webkit-box-sizing: border-box;

    -moz-box-sizing: border-box;

    box-sizing: border-box;

    padding-left: 16px;

    padding-right: 16px;

    padding-top: 7px;

    font-size: 1.3em;

    padding-bottom: 8px;

    font-family: inherit;

    background: linear-gradient(#00000014, #ffffff2b);

    background-color: #f7f7f7;

	cursor:pointer;	

}



.maisreceituario{

	position: relative;

    float: left;

    margin: 8px 0;

    display: inline-block;

    border: 1px solid #ccc;

    box-shadow: inset 0 1px 3px #ddd;

    border-radius: 4px;

    -webkit-box-sizing: border-box;

    -moz-box-sizing: border-box;

    box-sizing: border-box;

    padding-left: 16px;

    padding-right: 16px;

    padding-top: 7px;

    font-size: 1.3em;

    padding-bottom: 8px;

    font-family: inherit;

    background: linear-gradient(#00000014, #ffffff2b);

    background-color: #f7f7f7;

	cursor:pointer;	

}



.sugestoes,.sugestoespac,.sugestoesdoenca, .sugestoesdoencaatestado{

position: absolute;

    width: 88%;

    padding: 8px 1%;

    background-color: #FFF;

    z-index: 30;

    border: 1px solid #CCC;

    box-shadow: inset 0 1px 3px #ddd;

    border-radius: 4px;	

	display:none;

}

.nomebuscacliente,.nomedoenca{

	padding: 4px 0px;

    color: #777;

	cursor:pointer;	

}

.nomebuscacliente:hover,.nomedoenca:hover{

	color:#000;

	background-color:#FFFFDF;	

}

#diaagenda{
    position: fixed;
    top: 100px;
    left: 40px;
    background: none;
    border: none;
    font-size: 1.4em;
    color: #5a930c;
    cursor: pointer;
    z-index: 80;
}

.consultasde{

	position: absolute;

    top: 20px;

    left: 45px;

    font-size: 0.9em;

    color: #999;	

}	

.setadia{

	    position: absolute;

    top: 34px;

    background: none;

    border: none;

    font-size: 1.6em;

    /* background-color: #5bc0de; */

    background-image: linear-gradient(to right, #5a9904,#98bf62);

    color: #ffffff;

    padding: 3px 8px 6px;

    text-shadow: 0px 1px 2px #333;

    cursor: pointer;

    border-radius: 5px;

}

.maisdia{

	left: 153px;	

}

.menosdia{

	left:10px;	

}

.nomemedico{

	    margin-top: -33px;

    margin-left: 1px;

    font-size: 1.2em;

    width: 338px;

    background-color: #909090;

    color: #FFF;

    padding: 5px;

    border-top-left-radius: 10px;

    border-top-right-radius: 10px;

    text-align: center;

}

.loader{

	position: absolute;

	width: 100%;

	text-align:center;	

	z-index: 40;

	top: 100px;

}	

.icomenu{

	position: relative;

    float: right;

    width: 33px;

    padding: 5px;

    border: 3px solid #e0e0e0;

    margin-top: 16px;

    margin-right: 16px;

    border-radius: 5px;

	cursor:pointer;

}

.icomenu img{

	width:100%;	

	opacity:0.8;

}

.qmenu{

	position: absolute;

    width: 240px;

    padding: 5px 15px;

    background-color: #f3f3f3;

    box-shadow: 0px 0px 20px #444;

    top: 70px;

    right: 16px;

    border: 3px solid #c7c7c7;

    border-radius: 5px;

    z-index: 25;

	display:none;

}

.itemmenu{

	position: relative;

    float: left;

    width: 14.28%;

    padding: 5px 0px;

    text-align: center;

    font-size: 0.8em;

    cursor: pointer;

    font-weight: 600;

    height: 50px;

    color: #FFF;

    box-shadow: -1px 0px 0px #ffffff61;

}

.itemmenu img{

	height:32px;

	margin-bottom:4px;	

}

.itemmenu:hover{

	    background-image: linear-gradient(#58585845,#ffffff61);	

}

.mn1{

	background-color:#5bc0de;	

}

.mn2{

	background-color:#d9534f;	

}

.mn4{

	background-color:#f0ad4e;	

}

.mn5{

	background-color:#538d04;	

}

.mn6{

	background-color:#5cb85c;	

}

#inputdocumento,#inputfoto,#inputassinatura{

	display:none;	

}

.btenviar, #btaddprocedimento{

    position: relative;

    float: left;

    padding: 8px 14px;

    background-color: #5e9611;

    color: #FFF;

    border-radius: 6px;

	cursor:pointer;	

	border: none;

}

#btaddprocedimento{

	margin-top:25px;

}

.linhavaloresprocedimentos{

	display:none;	

}

.linkdoc{

	position: relative;

    float: left;

    padding: 8px 14px;

    background-color: #818182;

    color: #FFF;

    border-radius: 6px;

    font-size: 0.8em;

    margin: 5px;	

}

.linkdoc a{

	text-decoration: none;

	color:#FFF;

}	

.linkdoc:hover{

	background-color:#06F;	

}

.imgpaciente{

    position: relative;

    float: left;

    margin-right: 5%;

    left: 50%;

    margin-left: -75px;

    height: 180px;

    border-radius: 20px;

    display: none;	

}

.tblusu{

	font-family:inherit;

	font-size: 0.8em;

	padding: 8px 14px;

	background-color:#EBEBF1;

	border: 1px solid #FFF;	

	width: 120px;

}

.cabectabela{

	font-family:inherit;

	font-size: 0.8em;

	padding: 8px 14px;

	font-weight:600;

	background-color:#D2D2D2;

	border: 1px solid #FFF;

	width: 120px;	

}

.deletausu,.alterausu,.deletaplano,.alteraplano,.alterasala,.alteraitemest,.deletaitemest,.alteramascaraeco,.deletamascaraeco,.alteratema, .alteraexame, .alteratipocons{

	width: 20px;

    background-color: red;

    text-align: center;

    color: #FFF;

    padding: 0px 4px;

	cursor:pointer;	

}

.alterausu,.alteraplano,.alterasala,.alteraitemest,.alteramascaraeco{

background-color:#bd9700;	

}

.btaddstq{

position: absolute;

    float: left;

    width: 30px;

    padding: 2px 0px;

    background-color: #5bc0de;

    text-align: center;

    margin-top: 8px;

    border-radius: 4px;

    font-weight: 600;

    color: #FFF;

    text-shadow: 1px 1px 2px #797878;

    background-image: linear-gradient(#00000014, #ffffff2b);

	cursor:pointer;

}

.menosstq{

top: 21px;	

background-color: #e86e6e;

}

.nomeitemest{

	    font-size: 1.2em;

    padding-top: 18px;

    color: #538d04;

}

.alteraqtditem{

padding: 8px;

    margin-top: 10px;

	border-radius: 4px;

	border: 1px solid #CCC;	

}

.salvaritemest{

    font-size: 1.2em;

    padding: 8px;

    margin-top: 8px;

    border-radius: 4px;

    border: 1px solid #c1c1c1;	

}



.qlogin{
	position:relative;
	float:left;
	width: 40%;
	left:28%;
	margin-top: 40px;
	padding: 20px 2%;
	background-color: #FFF;
	box-shadow: 0px 0px 5px #999;
	border-radius: 20px;
	z-index: 50;
}

.cabecalho{
	height: 60px;	
	position:fixed;
	background-color: #FFF;
	z-index: 80;
}

.logo{
	position:relative;
	float:left;
	text-align:center;
	width: 20%;
	cursor: pointer;	
}


.video1,.video2{

position:relative;

float:left;

margin-left:240px;

margin-top:20px;

display:none;	

}


.botoesfoto{

position: absolute;

    top: 80px;	

	display:none;	

}

#snap{

background-color: #09c;

    width: 66px;

    height: 50px;

    border-radius: 50%;

    text-align: center;

    padding-top: 16px;

    border: 2px solid #006f94;	

	margin: 50px;

	cursor:pointer;

}

#snap img{

	width:40px;	

}

#snap:hover{

	background-color:#006f94;

}

.btprontuario, .btentrevista, .btreceituario, .btvercliente, .btlimpapront, .btcarregafotospt,.btwhats,.btnovousu, .btnovoitem,.btnovasala,
.btnovoplano,.btdelconsulta,.btnovamascaraeco,.btlaudoeco, .btguia, .btnovotema, .btatestado, .btorcamento, .btenviapreparo, .btdesccir, .btimprimirpreparo{
        position: relative;
    float: right;
    padding: 4px 7px;
    background-color: #62a901;
    color: #FFF;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.5em;
    margin-left: 10px;	
}

.btnovousu, .btnovoitem,.btnovoplano,.btnovasala,.btnovamascaraeco,.btnovotema{

float:left;

font-size:0.9em;	

}

.btwhats{

background-color:#093;

display:none;	

}

.btenviapreparo{
    background-color:#093; 
    display:none;	
}

.btdelconsulta{

background-color:red;	

}

.btsalvapadrao, .enviarpdf{

padding: 10px;

font-size: 1.2em;

    border: none;

    background-color: #0099cc;

    color: #FFF;

    border-radius: 6px;

    cursor: pointer;

    margin-left: 10px;	

}

.modalprontuario, .modalreceituario{

	z-index: 80;

}

.fecharmodal{

	position: absolute;

    right: 10px;

    top: 10px;

    width: 36px;

    height: 27px;

    padding-top: 9px;

    text-align: center;

    background-color: #0099cc;

    font-weight: 600;

    border-radius: 50%;

    color: #FFF;

    border: 2px solid #0782ab;

	cursor:pointer;

}

.fecharmodal:hover{

	background-color: #0782ab;

}

textarea{

	height: 120px;	

}

.exibenomepaciente{

	font-size: 1.6em;

    color: #666;	

}

.listahistorico{

    position: relative;

    float: left;

    width: 100%;

    padding: 5px 0px;

    border-bottom: 2px dotted #169cc9;

	cursor:pointer;

	

}

.listahistorico:hover{

background-color:#C9F49D;	

}

.itemhist{

padding: 4px;

    background-color: #5a9904;

    color: #FFF;	

}

.datahist{

	padding: 4px 8px;

    background-color: #063433;

    color: #FFF;	

}

.tipohist{

    font-size: 1.6em;

    color: #028ebd;	

}

.foraprontuario{

	position: relative;

    float: left;

    margin: 20px 5%;

    width: 90%;

    border: 1px solid #000;

	border-radius: 20px;

	padding: 30px 0px;

}

.intprontuario{

	position:relative;

	float:left;

	width:96%;

	margin:10px 2%;	

	cursor:pointer;

}

.nomeprontuario{

    font-size: 1.2em;

    color: #000000;	

}

.tipoqprontuario{

	padding: 10px 0px;

    font-size: 1.2em;

    color: #2e89f9;	

}

/* Container Principal do Submenu (Dropdown flutuante) */
.subitemadm:hover {
    background-color: #f0f7e6 !important; /* Verde ultra claro, não escurece */
    color: #538d04 !important;
    padding-left: 25px;
}

/* Garante que nenhum filtro de brilho do cabeçalho afete o texto do submenu */
.subitemadm {
    filter: none !important;
    brightness: 100% !important;
}

/* Garante que o botão seja a referência para o menu */
.itemmenu[nitem="5"] {
    position: relative;
}

.subadm {
    position: absolute;
    top: 100%; /* Cola exatamente na base do botão */
    left: 50%;
    transform: translateX(-50%); /* Centraliza perfeitamente */
    
    width: 280px;
    background-color: #ffffff !important;
    z-index: 2000;
    /* O display:none deve ser controlado pelo seu JS original de clique */
    
    border-radius: 8px;
    border: 1px solid #e0e6ed;
    border-top: 5px solid #538d04;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
    padding: 10px 0;
    max-height: 70vh;
    overflow-y: auto;
    display: none;
}

/* Limpando o erro de sintaxe que apareceu na sua imagem */
.subitemadm {
    filter: none !important; /* Remova a linha 'brightness' solta */
    padding: 12px 20px;
    width: 100%;
    display: block;
    color: #444 !important;
    text-align: left;
    border-bottom: 1px solid #f0f2f5;
    transition: all 0.2s;
}

.subitemadm:hover {
    background-color: #f0f7e6 !important;
    color: #538d04 !important;
}

/* Estilização da Barra de Rolagem (Scrollbar) para não ficar feio */
.subadm::-webkit-scrollbar { width: 6px; }
.subadm::-webkit-scrollbar-track { background: #f1f1f1; }
.subadm::-webkit-scrollbar-thumb { background: #ccc; border-radius: 10px; }

/* Itens do Menu */
.subitemadm {
    position: relative;
    float: left;
    padding: 12px 20px; /* Mais respiro interno */
    width: 100%;
    box-sizing: border-box;
    border-bottom: 1px solid #f0f2f5; /* Divisória muito suave */
    cursor: pointer;
    transition: all 0.2s ease;
    font-weight: 500;
}

/* Último item sem borda */
.subitemadm:last-child {
    border-bottom: none;
}

/* Hover nos Itens do Submenu */
.subitemadm:hover {
    background-color: rgba(83, 141, 4, 0.08); /* Fundo verde clarinho no hover */
    color: #538d04; /* Texto assume a cor verde admin */
    padding-left: 25px; /* Pequeno efeito de deslocamento lateral */
}

/* Estilo para quando o mouse passa no item e muda o ícone ou bullet (opcional) */
.subitemadm:hover::before {
    content: '•';
    position: absolute;
    left: 8px;
    color: #538d04;
}

.itemplano{

	position:relative;

	float:left;

	width:24%;

	margin-left:1%;

	margin-top:20px;

	font-size:0.8em;

	color: #008dbc;

	font-weight: 600;

}

.linhaplanos{

/*display:none;	*/

}

input[type=checkbox]{

width: 16px;

    height: 16px;	

}

.bemvindo{

    font-size: 1.6em;

    color: #538d04;	

	margin-top:100px;

}

.info{

color: #666;	

}

.right{

text-align: right;	

}

.enderecoclinica{

    margin-top: 490px;

    line-height: 1.6em;

    font-size: 0.8em;

    position: absolute;	

}



.linhasepara{

    position: relative;

    float: left;

    width: 90%;

    margin: 30px 5% 10px;

    border-top: 2px dashed #cacaca;	

}

.balaoconsulta{

	position: fixed;

	z-index: 300;

    top: -30px;

	width: 320px;

	height: 120px;

    padding: 8px;

    background-color: #FFF;

    border-radius: 5px;

    box-shadow: 0px 0px 6px #5f5f5f;

	display:none;	

}

.horasfixas{

    position: absolute;

    left: 0px;

    top: 180px;

    width: 30px;

    font-size: 1em;

    box-shadow: 13px 0px 5px #666;

    z-index: 30;	

	display:none;

}

.horafixa{

position: relative;

    float: left;

    width: 40px;

    text-align: center;

    height: 64px;

    padding-top: 36px;

    border-bottom: 1px solid #FFF;

    border-top: 1px solid #FFF;

    background-color: #CCC;

    z-index: 20;

    color: #444;

}

.corpoprontuario{

width:90%;

margin: 30px 5%;	

}

.rdp_chat{

position:fixed;

width: 100%;

height: 60px;

background-color:#FFF;

bottom:0px;

z-index:130;

box-shadow: 0px 0px 10px #555;	

}

.titchat{

    position: relative;

    float: left;

    margin-left: 0;

    margin-top: 15px;

    height: 44px;

    width: 100px;

    margin-top: 0px;

    text-align: center;

    padding-top: 16px;

    font-size: 1.7em;

    color: #ffffff;

    background-color: #5bc0de;

}

#medicos_chat{

    margin-left: 30px;	

}

.caixachat{

	position:fixed;

	width: 400px;

	height: 480px;

	right: 30px;

	bottom: -500px;

	border-radius: 8px;

	z-index: 120;

	background-color: #EFEFEF;

	box-shadow: 0px 0px 6px #444;	

}

.nomemedchat{

	background-color: #5bc0de;

    padding: 10px 0px;

    text-align: center;

    font-weight: 600;

    color: #FFF;

    font-size: 1.2em;

	border-top-left-radius: 8px;

    border-top-right-radius: 8px;	

	border-bottom: 2px solid #5bc0de;

}

.contchat{

	

}

#medicos_chat{

position: relative;

    float: left;	

}

.msgchat{

position:relative;

width: 86%;

padding: 5px 2%;

border-radius: 5px;

font-size: 0.9em;

margin-top: 8px;

box-shadow: 0px 0px 3px #444;

}

.msgc1{

float:left;

margin-left: 2%;

background-color:#D0F9F8;	

}

.msgc2{

float:right;

margin-right: 2%;

background-color:#FFC;	

}

.contchat{
    overflow-y: scroll;
	position: absolute;
    height: 290px;
    top: 45px;
	border-bottom: 1px solid #cecece;
	padding-bottom: 20px;		
}

.inputmsg{

position: absolute;

    bottom: 40px;

	width: 90%;

	left:5%;

	height: 80px;	

}

.medchat{

position: relative;

    float: left;

    padding: 8px;

    margin-top: 16px;

    margin-left: 20px;

    border-radius: 6px;

    background-color: #CCC;

}

.medicoschat{

	position:relativde;

	float:left;	

}

.linhadatachat{

    text-align: center;

    font-weight: 600;

    margin: 15px 0px 5px;

    color: #7b7b7b;	

}
.deletachat{
position: absolute;
right: 30px;
top: 56px;
padding: 4px 8px;
background-color: #CCC;
border-radius: 5px;
font-size: 0.8em;
cursor: pointer;
z-index: 10;
}

.horariomsg{
        position: relative;
    float: left;
    padding: 5px 5px;
    background-color: #00000014;
    border-radius: 5px;
    margin: -5px 5px 5px -7px;	
}

#medicos_chat > option{
font-size: inherit;
padding: 6px 0px;	
}

.fechachat{
    position: absolute;
    right: 11px;
    font-weight: 600;
    top: 5px;
    font-size: 1.6em;
    color: #FFF;
    text-shadow: 0px 0px 2px #000;
    z-index: 5;
	cursor:pointer;
}

.docs{
position: relative;
float: left;
width: 90%;
margin: 30px 5%;
    
}

.imprimedoc{
    position: relative;
    float: left;
    padding: 4px;
    background-color: #5abedb;
    text-align: center;
    border-radius: 5px;
    border: 1px solid #599db1;
    color: #FFF;
    text-shadow: 0px 0px 2px #666;
    margin-top: 8px;
    cursor: pointer;
    margin-left: 8px;
}
.gerardocs, .abredocs{
   position: absolute;
    top: 69px;
    width: 150px;
    padding: 5px;
    right: 30px;
    background-color: #5abedb;
    text-align: center;
    border-radius: 5px;
    border: 1px solid #599db1;
    color: #FFF;
    text-shadow: 0px 0px 2px #666;
    margin-top: 8px;
    cursor: pointer;
    margin-left: 8px;
    z-index: 50;
}
.finalizaatendimento{
   position: absolute;
    top: 110px;
    width: 150px;
    padding: 5px;
    right: 30px;
    background-color: #40b149;
    text-align: center;
    border-radius: 5px;
    border: 1px solid #308237;
    color: #FFF;
    text-shadow: 0px 0px 2px #666;
    margin-top: 8px;
    cursor: pointer;
    margin-left: 8px;
    z-index: 50;
}
.optbloqueado{
    color: #888;
    pointer-events: none; /* impede clique */
    background-color: #f0f0f0;
}
.boxdocumentos{
        position: fixed;
    z-index: 100;
    width: 15vw;
    height: 100%;
    top: 0;
    right: -50vw;
    background: #ececec;
    box-shadow: 0px 0px 30px #666;
    border-left: 1px solid #FFF;
}
.loaderdocs{
        position: absolute;
    z-index: 50;
    right: 200px;
    top: 75px;
    overflow: hidden;
    height: 30px;
    display: none;
}
.loaderdocs img{
    width: 35px;
    margin-top: 0px;
}

.titimprimir{
        text-align: center;
    font-size: 1.2em;
    padding: 4px 8px;
    /* background-color: #ffffff; */
    color: #0099cc;
    font-weight: bold;
}

.atender{
        position: absolute;
    left: 5%;
    margin-left: -3px;
    top: 147px;
    background-color: #5bc0de;
    text-shadow: 0px 0px 3px #828282;
    padding: 8px;
    color: #FFF;
    border-radius: 5px;
    cursor: pointer;
    z-index: 30;	
}

.ltempoconsulta{
    display:none;
}

.bteditamedicamento,.btsalvamedicamento{
	background-color: #5bc0de;
    text-shadow: 0px 0px 3px #828282;
    padding: 8px;
    color: #FFF;
	border:none;
    border-radius: 5px;
    cursor: pointer;
}

.btsalvamedicamento{
	background-color:#090;	
}

#medicacoes_txt{
height: 300px;	
}

.exibemedicamentos{
	line-height: 1.6em;
    background: #efefef;
    padding: 5px;
    max-height: 151px;
    overflow-y: auto;
}

.balaochat{
    position: fixed;
    bottom: 65px;
    left: 200px;
    z-index: 150;
    padding: 10px 20px;
    background-color: #FFF;
    border-radius: 8px;
    border: 3px solid #5bc0de;
    box-shadow: 0px 0px 5px #a7a7a7;
	text-align:center;
	display:none;
}

.setachat{
    position: absolute;
    bottom: -15px;	
}

.nomenovamsg{
    color: #11c31b;
    font-size: 1.2em;
	font-weight:600;	
}

.fotopt{
	    position: relative;
    float: left;
    margin: 10px;
}

.fotopt img{
max-height: 240px;	
}

.linhabtsalvar{
position: fixed;
    left: 0px;
    bottom: 60px;
    padding: 15px 0px;
    background-color: #F4F4F4;
    box-shadow: -2px 0px 4px #b3b1b1;
	z-index: 80;	
}

.agdir{
position:fixed;
right:20px;
bottom:50%;
width: 50px;
height:50px;
border-radius: 50%;
box-shadow: 0px 4px 10px #545454;
background-color:#5bc0de;	
z-index: 60;
cursor:pointer;
opacity: 0.4;
}

.agesq{
position:fixed;
left:90px;
bottom:50%;
width: 50px;
height:50px;
border-radius: 50%;
box-shadow: 0px 4px 10px #545454;
background-color:#5bc0de;	
z-index: 60;
cursor:pointer;
opacity: 0.4;
display:none;
}



.agcima{
position:fixed;
top:160px;
left:50%;
width: 50px;
height:50px;
border-radius: 50%;
box-shadow: 0px 4px 10px #545454;
background-color:#5bc0de;	
z-index: 60;
cursor:pointer;
opacity: 0.4;
display:none;
}

.agbaixo{
position:fixed;
bottom:90px;
left:50%;
width: 50px;
height:50px;
border-radius: 50%;
box-shadow: 0px 4px 10px #545454;
background-color:#5bc0de;	
z-index: 60;
cursor:pointer;
opacity: 0.4;
}



.agdir:hover,.agesq:hover,.agecima:hover,.agbaixo:hover{
	background-color:#14ca1e;	
}

.agdir img, .agesq img, .agcima img, .agbaixo img{
width: 18px;
    margin-left: 18px;
    margin-top: 13px;	
}

.hconsulta{
padding: 4px 6px;
background-color: #6CF;	
}

.nomeconsulta{
padding: 4px 6px;
background-color:#FC0;	
}

.motivoconsulta{
padding: 4px 6px;
background-color:#6C9;
color:#FFF;	
}

.intconsulta{
	position:relative;
	float:left;
padding: 4px 6px;
margin-left: 0px;
border-left: 1px solid #CCC;
}

.qrelatorio{
	position: relative;
    float: left;
    width: 30%;
    margin: 20px 1.5%;
    border: 2px solid #3CF;
    text-align: center;
    border-radius: 8px;
    box-shadow: 0px 0px 10px #b1b1b1;	
}

.titrelatorio{
	    text-align: center;
    padding: 10px 0px;
    font-size: 1.4em;
    background-color: #3CF;
    color: #FFF;
    text-shadow: 1px 1px 2px #828282;
}

.numrelatorio{
	font-size: 2.5em;
	color:#3CF;
	padding-bottom: 20px;
	text-shadow: 1px 1px 2px #828282;
}

.cabectbl{
	padding: 10px;
	background-color:#5cb85c;
	color:#FFF;
	text-shadow: 1px 1px 3px #999;	
}

.celtbl{
	padding: 10px;
	background-color:#F0F0F0;
	color:#000;	
}

.deletaproc{
	background-color: red;
    text-align: center;
    color: #FFF;
    cursor: pointer;	
}
.qjustconsulta,.qjustproc{
	display:none;	
}

.cadproc{
padding: 5px 1%;
    background-color: #a6ffb1;
    position: relative;
    float: left;
    width: 90%;
    margin: 5px 1%;	
}

.deletaprocreg{

position: relative;
    float: left;
    margin: 5px;
    padding: 5px 5px;
    background-color: red;
    color: #FFF;
	cursor:pointer;	
}

.minutosconsulta{
position: relative;
    float: left;
    width: 100%;
    height: 25%;
    border-bottom: 1px dashed #d2d2d2;	
}

.minutosconsulta:hover{

	background-color:#E6E6E6;

}

.exibehm{
position:relative;
float:right;
color:#666;
font-size:0.8em;
margin:2px;
display:none;	
}

.linhavaloresprocedimentos{

position:relative;

float:left;

margin-top:20px;

width:100%;	

}

.qprocedimentos{

    position: relative;

    float: left;

    width: 98%;

    padding: 0px 1% 5px;

    background-color: #f1f1f1;

    border-radius: 8px;

}

.intnome{

width: 195px;

    height: 12px;

    overflow: hidden;	

}

.ocultacancel{

    position: relative;

    float: right;

    margin-top: 25px;

    margin-right: 25px;	

}

.fotobalao, .fotonotif{

position:absolute;

left:10px;

top:10px;

width: 40px;

height: 40px;

border-radius: 50%;

border: 1px solid #40f74d;

overflow:hidden;

}

.fotonotif{

	position:relative;

	top:5px;

}

.fotobalao img, .fotonotif img{

    width: 60px;

    margin-left: -10px;

    height: 70px;	

}

.nomebalao{

position: absolute;

    left: 70px;

    top: 20px;

    width: 240px;

    color: #5bc0de;

    font-size: 1.4em;	

}

.setabalao{

position: absolute;

    bottom: -26px;

    left: 10px;	

}

.horabalao{

position: absolute;

    left: 70px;

    top: 5px;

    width: 120px;

    color: #00d000;

    font-size: 1em;

    font-weight: 400;

}

.motivobalao{

	    position: absolute;

    width: 85%;

    padding: 10px 2%;

    margin: 0px 3%;

    border-top: 1px solid #CCC;

    top: 70px;

	color: #999;

}

.dadospac{

display:none;	

}

.qnumpaciente{

	position: absolute;

    width: 90px;

    height: 90px;

    text-align: center;

    border-radius: 50%;

    border: 2px solid #ffffff;

    box-shadow: 0px 0px 5px #538d04;	

}

.qtotalconsultas{

	margin-top: 25px;

	margin-left: 5px;

}

.qultconsulta{

	margin-top: 25px;

    margin-left: 120px;

}

.numtotalconsultas{

	font-size: 2.2em;

    color: #538d04;

    margin-top: 15px;	

}

.legendanum{

	font-size: 0.9em; 

	color: #666;	

}

.numtotalconsultas{

	font-size: 2em;

    color: #538d04;	

}

.dataultimacons{

    font-size: 1.3em;

    color: #538d04;

    font-weight: 600;

    margin-top: 28px;

	font-size: 1em;	

}

.anocons{

	font-size: 0.8em;	

}

.legendatirafoto{

    position: absolute;

    left: 50px;

    top: 126px;

    color: #006f94;

    font-weight: 600;

    font-size: 1.2em;	

}

.legendaultimas{

    position: absolute;

    left: 120px;

    color: #538d04;

    font-weight: bold;	

}

.nomepac{

position: relative;

    float: left;	

}

.turno1{

        position: absolute;

    width: 9.7%;

    height: 612px;

    background-color: #fbff0536;

    overflow: hidden;

    writing-mode: vertical-lr;

    text-align: center;

    padding-left: 0.3%;

	    font-size: 1.4em;

    color: #8e8e8e;

    font-weight: 600;

    letter-spacing: 2px;

}

.turno2{

        position: absolute;

    width: 9.7%;

	top:612px;

    height: 612px;

    background-color: #ff9b0536;

    overflow: hidden;

    writing-mode: vertical-lr;

    text-align: center;

    padding-left: 0.3%;

	    font-size: 1.4em;

    color: #8e8e8e;

    font-weight: 600;

    letter-spacing: 2px;

}

.turno3{

        position: absolute;

    width: 9.7%;

	top:1224px;

    height: 612px;

    background-color: #ff110536;

    overflow: hidden;

    writing-mode: vertical-lr;

    text-align: center;

    padding-left: 0.3%;

	    font-size: 1.4em;

    color: #8e8e8e;

    font-weight: 600;

    letter-spacing: 2px;

}

.filtrosagenda{

position:absolute;
top: 0px;
right:0px;	

}

.btenviaassinatura{

margin-top:29px;

display:none;	

}



.tipocons{

 padding: 2px;

    background-color: #0000002e;

    border-radius: 3px;

}



.opcoescep{

    position: absolute;

    width: 400px;

    height: auto;

    padding: 10px;

    border-radius: 8px;

    box-shadow: 0px 0px 5px #929292;

    background-color: #f3f3f3;	

	z-index: 5;

	display:none;

}

.opcaocep{

	position: relative;

    float: left;

    width: 96%;

    margin: 3px 1%;

    padding: 5px 1%;

    /* background-color: #FFF; */

    border-bottom: 1px dashed #CCC;

    color: #444;	

	cursor:pointer;

	

}

.opcaocep:hover{

	background-color:#FFF;

}

#buscatermopront{

font-size: 1.2em;

    padding: 9px;	

}

.linhatbbuscapront td{

	padding: 5px 3px;

	border: 2px solid #FFF;

	background-color: #F4F4F4;	

}

.tdacessar{

	background-color:#6CF;

	padding: 8px;

	text-decoration:none;

	color:inherit;	

}

.avisoconexao{

position: fixed;

    right: -800px;

    /* width: 300px; */

    background-color: red;

    z-index: 1000;

    padding: 10px 20px;

    top: 80px;

    border-radius: 8px;

    font-size: 1.2em;

    color: #FFF;

    font-weight: 600;

    /* box-shadow: 0px 0px 3px #000;*/	

}

.numnotif{

	font-size: 1.2em;

    padding: 3px 7px 4px;

    background-color: #c12f2f;

    border-radius: 50%;

    margin: -10px;

	display:none;		

}

.qnotificacoes{

	position: absolute;

    float: left;

    top: 54px;

    right: 90px;

    padding: 5px;

    border-radius: 6px;

    box-shadow: 0px 0px 10px #444;

    width: 300px;

    background-color: #fff;

	display:none;	

}

.qnotif{

	position: relative;

    float: left;

    width: 96%;

    margin: 5px 1%;

    padding: 5px 1%;

    background-color: #e8e8e8;

    border-bottom: 1px solid #CCC;

    border-radius: 6px;

}

.datahoranotif{

	font-weight: 600;

}

.nomenotif{

	font-size: 1.2em;

    font-weight: 600;

    color: #666;	

}

.mednotif{

	color: #9368ad;

}

.titcancel{

	color: #9368ad;

    font-weight: 600;

    padding: 8px 0px;

}

#addmedicacao{

	padding: 11px 4px;	

}

.deletamedcron{

	padding: 1px 4px;

	font-size:0.9em;

	background-color:red;

	color:#FFF;

	cursor:pointer;	

}

.imgcons{

	position: relative;

    float: left;	

	margin-left: 10px;

	display:none;

}

.imgcons img{

	height:33px;	

}

.linkpag{

	font-size: 1.2em;

	color:#390;	

}

.atonline{

	margin-left: 20px;	

}

.xvisto{

	position:absolute;

	right:0px;

	top:0px;

	padding: 3px 10px;

	background-color:#999;

	border-radius: 5px;	

	cursor:pointer;

}

#deletamodelo{
	background-color: red;
    border: none;
    padding: 3px 7px;
    color: #FFF;
    border-radius: 3px;
	cursor:pointer;
	display:none;	
}

#atualizamodelo{
	background-color: rgb(89, 100, 255);
    border: none;
    padding: 3px 7px;
    color: #FFF;
    border-radius: 3px;
	cursor:pointer;
	display:none;	
}

#medicacoes_txt,.btsalvamedicamento{

	display:none;	

}

.btguiatema{

	position: relative;

    float: left;

    font-size: 1.2em;

    font-weight: 600;

    padding: 8px 12px;

    margin: 0px 1px -5px;

    border-radius: 8px;

    border: 2px solid #EAEAEA;

    background-color: #FFF;

    color: #307b95;

    cursor: pointer;

}

.btguiatema:hover{

	background-color:#F3F3F3;	

}

.linhaselexame{

	padding: 2px 0px;

    font-size: 0.7vw;

    color: #035b78;

    font-weight: 600;

    margin-top: 3px;

    background-color: #EEE;	

	outline: 1px color #FFF;

}

.linhatemasexames{

	border-bottom: 2px solid #EAEAEA;

	overflow:hidden;	

}

.selexibicaotemas{

	position:relative;

	float:right;

	margin-right: 10px;	

	font-size: 0.5em;

	color:#FFF;

	background-color: #09c;

	padding: 4px 8px;

	border-radius: 5px;

	cursor:pointer;

}

.btendoanestes, .btcoloanestes{
	position:relative;
	float:right;
	margin-right: 10px;	
	font-size: 0.5em;
	color:#FFF;
	background-color: rgb(33, 201, 0);
	padding: 4px 8px;
	border-radius: 5px;
	cursor:pointer;
}

.tittema{

	font-weight: 600;

    font-size: 1.1vw;	

}

.qtemaguias{

	position:rekative;

	float:left;

	margin: 0.5%;

		

}

.nomehospitalar, .nomeequipe{

	width: 60%;	

}

.valorhospitalar, .valorequipe{

	width: 30%;	

}

.salvamodelo{

	    padding: 11px;

    margin-left: 5px;	

}

.carregamodeloorccompleto{

	padding: 6px 10px;

	margin-left: 10px;

}

.qqrcode{

    position: absolute;

    top: 870px;

    right: 0px;

    width: 15%;

}

.balaorec{

	position: fixed;

	z-index: 300;

    top: -30px;

	width: 320px;

	height: 120px;

    padding: 8px;

    background-color: #FFF;

    border-radius: 5px;

    box-shadow: 0px 0px 6px #5f5f5f;

	display:none;	

}

#qrfotopaciente{

    position: relative;

    float: left;

    margin: 0px 20px;

}

.carregafotopaciente{

    position: relative;

    float: left;

    width: 300px;

}

.qhide{

    display:none;

}

.fotopacientemobi{
    text-align: center;
}

.imgpacientemobi{
    border-radius: 20px;
    width: 130px;
}

.nomepacientemobi{
    text-align: center;
    margin-top: 20px;
    font-size: 1.4em;
    color: #063433;
    font-weight: 600;
}

.fonepacientemobi{
    text-align: center;
    margin-top: 20px;
    font-size: 1.2em;
    position: relative;
    float: left;
    width: 156px;
    padding: 10px 20px;
    background-color: #33cc33;
    border-radius: 10px;
    left: 50%;
    margin-left: -103px;
    color: #FFF;
    font-weight: 600;
}

.fonepacientemobi a{
    text-decoration:none;
    color: #FFF;
}

.fonepacientemobi img{
    width: 22px;
    margin-right: 10px;
}

.qidademobi, .qnumconsultasmobi{
    position: relative;
    float: left;
    padding: 6px 15px;
    margin-left: 21%;
    background-color: #063433;
    border-radius: 7px;
    font-weight: 600;
    color: #FFF;
}

.qnumconsultasmobi{
    margin-left: 5%;
}

#cortipocons{
    height: 42px;
    margin-top: 5px;
}

.circtipo{
    position: absolute;
    top: 6px;
    right: 3px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.bttipouso{
    position: relative;
    float: left;
    margin-left: 10px;
    width: 25px;
    box-shadow: 0px 0px 4px #999;
    padding: 5px;
    border-radius: 4px;
    cursor: pointer;
}

.bttipouso img{

    width: 96%;

    margin: 2%;

}
.conveniobalao{
    position: absolute;
    width: 85%;
    padding: 10px 2%;
    margin: 30px 3%;
    border-top: 1px solid #CCC;
    top: 70px;
    color: #000;
    font-size: 0.8em;
    font-weight: 600;
}
.somobi{
    display: none;
}
.padraoquant{
    position: absolute;
    background: #FFF;
    padding: 13px;
    box-shadow: 0px 0px 8px #999;
    border-radius: 10px;
    display: none;
}
.itempadquant{
    padding: 4px;
    cursor: pointer;
}
.itempadquant:hover{
    background-color:#e1e0e0;
}
.apagalinha{
    text-align: center;
    background: red;
    color: #FFF;
    font-size: 1.6em;
    cursor: pointer;
}
.qrecident{
    padding: 0px 15px 15px;
    border: 1px solid #000;
    position: relative;
    float: left;
    width: 440px;
    border-radius: 20px;
}
.numvias{
    position: relative;
    float: right;
    font-size: 1em;
    font-weight: 600;
    width: 120px;
}
.qbuscacons{
    position: absolute;
    left: 240px;
    width: 280px;
    margin-top: -50px;
}
#buscaconsultas{
        margin-top: 80px !important;
}
.listapacientescons{
    position: absolute;
    left: 220px;
    width: 450px;
    margin-top: 70px;
    background-color: #FFF;
    box-shadow: 0px 0px 20px #999;
    padding: 10px 3px;
    border-radius: 8px;
    min-height: 50px;
    display: none;
}
.padraoquant, .recmed textarea, .recqtd textarea, .recfreq textarea{
    text-transform: uppercase;
}
.delfotopront{
    padding-top: 5px;
    font-weight: 600;
    color: red;
    cursor: pointer;
}
.qevolucao{
    position:relative;
    float: left;
    width: 98%;
    padding: 10px 1%;
    background-color: #dbdbdb;
    border-radius: 5px;
}
.left{
    position:relative;
    float:left;
}
.left20{
    position:relative;
    float:left;
    margin-left:20px;
}
.left30{
    position:relative;
    float:left;
    margin-left:30px;
}
.anestesista{
    position: absolute;
    right: 11px;
    padding: 3px;
    top: 2px;
    margin-right: 6px;
    background: #97be60;
    color: #FFF;
    border-radius: 3px;
    font-weight: 600;
    text-shadow: 0px 0px 3px #000;
}
.balaoconvenio{
    position: absolute;
    width: 90px;
    right: -100px;
    padding: 3px 10px;
    text-align: left;
    background-color: #70bf02;
    box-shadow: 2px 2px 4px #999;
    z-index: 50;
    border-radius: 5px;
    margin-top: 2px;
    display: none;
    text-transform: uppercase;
    color: #FFF;
}

#nativedate{
    display: none;
        margin-top: 39px;
        width: 114px;
        margin-left: 38px;
        padding: 3px;
        background-color: #FFF;
        font-size: 1em;
        border: none;
        box-shadow: none;
}
.expandemobi{
 position : fixed;
 width:80vw !important;
 height:45vh !important;
 top:14vh;
 left:10vw;
 z-index: 20;
}
.inputtable{
    height: 42px;
}
.check{
        z-index: 100;
    background-color: rgb(17, 102, 0);
    color: #FFF;
    padding: 5px;
    border-radius: 5px;
    font-size: 2em;
    position: fixed;
    right: 20px;
    top: 43vh;
    display:none;
}

.minutosconsulta.drop-hover {
    background-color: #c7ffd1 !important;  /* verde claro */
    transition: background-color .1s;
}

.minutosconsulta.drop-invalid {
    background-color: #ffd5d5 !important;  /* vermelho claro */
    transition: background-color .1s;
}

/* Layout Principal */
.cabecalho {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 75px;
    padding: 0 30px;
    background: #fdfdfd; /* Não é branco total, é um "off-white" elegante */
    border-bottom: 2px solid #f0f0f0;
    position: fixed;
    top: 0; left: 0; width: 100%;
    z-index: 1000;
    box-sizing: border-box; /* Impede que o conteúdo corte na direita */
}

/* Menu Centralizado */
.menu-container {
    display: flex;
    gap: 15px;
    flex: 1;
    justify-content: center;
}

/* 1. BASE DO BOTÃO */
.itemmenu {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 10px 15px;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 100px;
    background: #ffffff !important; /* Força fundo branco */
    border-radius: 12px 12px 4px 4px;
    margin: 0 4px;
    border-bottom: 4px solid transparent;
}

/* 2. DEFINIÇÃO DE CORES (TEXTO E BORDA) */
.itemmenu[nitem="1"] { border-bottom-color: #5bc0de; color: #5bc0de; }
.itemmenu[nitem="2"] { border-bottom-color: #d9534f; color: #d9534f; }
.itemmenu[nitem="5"] { border-bottom-color: #538d04; color: #538d04; }
.itemmenu[nitem="6"] { border-bottom-color: #5cb85c; color: #5cb85c; }

/* 3. FILTROS DE COR PARA OS ÍCONES (Mantém a cor mesmo no hover) */
/* Azul */
.itemmenu[nitem="1"] img { filter: invert(72%) sepia(19%) saturate(882%) hue-rotate(151deg) brightness(91%) contrast(90%); }
/* Vermelho */
.itemmenu[nitem="2"] img { filter: invert(34%) sepia(55%) saturate(1947%) hue-rotate(338deg) brightness(91%) contrast(88%); }
/* Verde Escuro */
.itemmenu[nitem="5"] img { filter: invert(28%) sepia(98%) saturate(1435%) hue-rotate(63deg) brightness(92%) contrast(101%); }
/* Verde Sair */
.itemmenu[nitem="6"] img { filter: invert(62%) sepia(43%) saturate(542%) hue-rotate(76deg) brightness(92%) contrast(86%); }

/* 4. HOVER (Efeito sutil de iluminação lateral, sem escurecer o ícone) */
.itemmenu:hover {
    transform: translateY(-3px);
    background-color: #ffffff !important;
    /* Brilho suave na base com a cor do próprio item */
    box-shadow: 0 8px 15px -8px currentColor;
}

.itemmenu:hover img {
    transform: scale(1.1);
    /* Mantemos o filtro de cor original e apenas aumentamos o contraste levemente */
    opacity: 1;
}

.itemmenu span {
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
    margin-top: 6px;
    color: inherit; /* Usa a cor definida no item 2 */
}

/* Seção Direita Organizada */
.header-right {
    display: flex;
    align-items: center;
    gap: 20px;
}

/* O Sino (Corrigido para não achatar) */
.iconotif {
    width: 45px;
    height: 45px;
    background: #f1efff; /* Lilás bem clarinho */
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    flex-shrink: 0;
}
.iconotif img { width: 22px !important; height: auto !important; }

.numnotif {
    position: absolute;
    top: -2px; right: -2px;
    background: #ff4d4f;
    color: white;
    font-size: 10px;
    padding: 2px 6px;
    border-radius: 10px;
    font-weight: bold;
    border: 2px solid #fff;
}

/* Perfil do Usuário (Sem cortar) */
.user-profile {
    display: flex;
    align-items: center;
    gap: 12px;
    padding-left: 20px;
    border-left: 2px solid #f0f0f0;
}

.user-info { text-align: right; }
.user-name { display: block; font-size: 13px; font-weight: 700; color: #333; }
.user-role { font-size: 11px; color: #999; }

.user-avatar {
    width: 38px; height: 38px;
    background: #5bc0de;
    color: white;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-weight: bold;
}


/* =====================================================
   TOOLTIP PRINCIPAL
===================================================== */
#bloq-tooltip {
    position: absolute;
    display: none;
    background: rgba(15, 15, 15, 0.95);
    color: #fff;
    padding: 10px;
    border-radius: 10px;
    font-size: 12.5px;
    line-height: 1.35;
    pointer-events: none;
    z-index: 99999;

    max-width: 320px;
    max-height: 70vh;              /* 🔥 Limite vertical */
    overflow-y: auto;              /* 🔥 Scroll interno */

    box-shadow: 0 8px 24px rgba(0,0,0,0.45);
    backdrop-filter: blur(6px);
    animation: fadeInTooltip .12s ease-out;
}

/* Scroll discreto */
#bloq-tooltip::-webkit-scrollbar {
    width: 6px;
}
#bloq-tooltip::-webkit-scrollbar-thumb {
    background: rgba(255,255,255,0.25);
    border-radius: 4px;
}
#bloq-tooltip::-webkit-scrollbar-track {
    background: transparent;
}

/* =====================================================
   BLOCO DE CADA BLOQUEIO
===================================================== */
#bloq-tooltip .bloqueio-bloco {
    background: rgba(255,255,255,0.05);
    border-radius: 8px;
    padding: 8px 10px;
    margin-bottom: 8px;
    border-left: 4px solid #999;
}

#bloq-tooltip .bloqueio-bloco:last-child {
    margin-bottom: 0;
}

/* =====================================================
   CABEÇALHO DO BLOQUEIO
===================================================== */
#bloq-tooltip .bloqueio-header {
    font-weight: 600;
    font-size: 12.5px;
    margin-bottom: 4px;
    display: flex;
    align-items: center;
    gap: 5px;
    color: #f1f1f1;
}

/* Cores por tipo */
.bloq-geral { border-left-color: #e53935; }
.bloq-medico { border-left-color: #1e88e5; }
.bloq-exame { border-left-color: #8e24aa; }
.bloq-sala { border-left-color: #43a047; }
.bloq-anestesista { border-left-color: #fb8c00; }

/* =====================================================
   ITENS INTERNOS
===================================================== */
#bloq-tooltip .bloqueio-item {
    display: flex;
    align-items: center;
    gap: 5px;
    margin: 2px 0;
    opacity: 0.95;
}

#bloq-tooltip .bloqueio-item .icone {
    font-size: 13px;
    opacity: 0.8;
}

/* =====================================================
   MOTIVO (DESTAQUE)
===================================================== */
#bloq-tooltip .bloqueio-motivo {
    margin-top: 6px;
    padding-top: 5px;
    border-top: 1px dashed rgba(255,255,255,0.25);
    font-size: 11.5px;
    opacity: 0.85;
}

#bloq-tooltip .bloqueio-motivo strong {
    display: block;
    margin-bottom: 1px;
    font-size: 10.5px;
    text-transform: uppercase;
    letter-spacing: .04em;
    opacity: 0.65;
}

/* =====================================================
   ANIMAÇÃO
===================================================== */
@keyframes fadeInTooltip {
    from {
        opacity: 0;
        transform: translateY(4px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}


/* =====================================================
   ANIMAÇÃO
===================================================== */
@keyframes fadeInTooltip {
    from {
        opacity: 0;
        transform: translateY(4px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}



/*
ABAIXO CSS DO MODAL DE MSG CHAT
*/

  @keyframes fadeIn {
    from { opacity: 0; transform: scale(0.995); }
    to   { opacity: 1; transform: scale(1); }
  }

  /* Card */
  .modal-card{
    position: fixed;
    left: 50%;
    margin-left: -360px;
    width: min(720px, 94vw);
    background: linear-gradient(180deg, rgba(255,255,255,0.98), #fff);
    color: #071024;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    overflow: hidden;
    border: 1px solid rgba(10,20,40,0.06);
    z-index: 300;
    top: 20vh;
     --bg: #0f1724;
    --card: #ffffff;
    --muted: #6b7280;
    --accent: #0ea5a4;
    --danger: #ef4444;
    --glass: rgba(255,255,255,0.06);
    --shadow: 0 10px 30px rgba(2,6,23,0.6);
    --radius: 12px;
    font-family: Inter, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial;
    display: none;
  }

  @keyframes popIn {
    from { transform: translateY(10px) scale(0.995); opacity: 0; }
    to   { transform: translateY(0) scale(1); opacity: 1; }
  }

  .modal-header{
    display:flex;
    gap:12px;
    align-items:center;
    padding:18px 20px;
    border-bottom: 1px solid rgba(10,20,40,0.04);
    background: linear-gradient(90deg, rgba(14,165,164,0.06), transparent);
  }

  .avatar {
    width:48px; height:48px; border-radius:10px;
    display:flex; align-items:center; justify-content:center;
    background: linear-gradient(135deg, var(--accent), #60a5fa);
    color:white; font-weight:700; font-size:18px;
    flex: 0 0 48px;
  }

  .header-text{
    flex:1;
    min-width: 0;
  }
  .header-text .title{
    font-size:16px; font-weight:700; color:#061124;
    white-space:nowrap;
    overflow:hidden; text-overflow:ellipsis;
  }
  .header-text .subtitle{
    font-size:13px; color:var(--muted); margin-top:2px;
  }

  .modal-body{
    padding:18px 20px;
    display:flex;
    gap:18px;
    align-items:flex-start;
  }

  .message-box{
    background: var(--glass);
    padding:16px;
    border-radius:10px;
    width:100%;
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.02);
    max-height: 48vh;
    overflow:auto;
    line-height:1.5;
    color:#08203a;
    font-size:15px;
    border: 1px solid rgba(6,20,36,0.03);
  }

  .meta{
    display:flex;
    gap:8px;
    align-items:center;
    padding:0 20px 16px;
  }
  .meta small { color: var(--muted); font-size:13px; }

  .modal-footer{
    display:flex;
    gap:10px;
    padding:14px 18px;
    border-top: 1px solid rgba(10,20,40,0.04);
    justify-content: flex-end;
    background: #fbfdff;
  }

  button.btn{
    border: none;
    background: transparent;
    padding:10px 12px;
    border-radius:10px;
    cursor:pointer;
    font-weight:600;
    font-size:14px;
  }

  button.primary{
    background: linear-gradient(90deg,var(--accent),#06b6d4);
    color:white;
    box-shadow: 0 6px 20px rgba(14,165,164,0.16);
  }
  button.ghost{
    background: transparent;
    color: #0b2a3a;
    border: 1px solid rgba(6,20,36,0.06);
  }
  button.danger{
    background: transparent;
    color: var(--danger);
    border: 1px solid rgba(239,68,68,0.08);
  }

  .linhadesbloqueio{
    display: none;
  }


  /* Customização do ícone no topo */
.ico-whatsapp {
    background: #e8fadf !important;
    cursor: pointer;
    transition: transform 0.2s, background 0.2s;
}
.ico-whatsapp:hover {
    background: #d4f5c4 !important;
    transform: scale(1.05);
}

/* Drawer Container & Overlay */
.drawer-overlay {
    position: fixed;
    top: 0; left: 0;
    width: 100vw; height: 100vh;
    background: rgba(0, 0, 0, 0.4);
    z-index: 9998;
    display: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}
.drawer-overlay.active { display: block; opacity: 1; }

.drawer-container {
    position: fixed;
    top: 0; right: -420px;
    width: 400px;
    max-width: 90vw;
    height: 100vh;
    background: #ffffff;
    box-shadow: -4px 0 20px rgba(0,0,0,0.15);
    z-index: 9999;
    display: flex;
    flex-direction: column;
    transition: right 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.drawer-container.open { right: 0; }

/* Drawer Elements */
.drawer-header {
    padding: 18px 20px;
    border-bottom: 1px solid #f0f0f0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.drawer-header h3 { margin: 0; font-size: 18px; color: #333; font-weight: 600; }
.drawer-close {
    background: none; border: none; font-size: 28px;
    color: #888; cursor: pointer; line-height: 1;
}
.drawer-close:hover { color: #333; }

.drawer-body {
    flex: 1;
    overflow-y: auto;
    padding: 15px 20px;
}

.drawer-footer {
    padding: 15px 20px;
    border-top: 1px solid #f0f0f0;
    background: #fafafa;
}

.btn-load-more {
    width: 100%;
    padding: 10px;
    background: #f1efff;
    color: #5b47fb;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
}
.btn-load-more:hover { background: #e2ddff; }

/* Card de item retornado */
.whats-item {
    padding: 12px;
    border-radius: 10px;
    background: #f9fbfd;
    border: 1px solid #edf2f7;
    margin-bottom: 12px;
}
.whats-item-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 6px;
}
.whats-patient {
    font-weight: 600;
    color: #2d3748;
    font-size: 14px;
}
.whats-title {
    font-size: 13px;
    color: #4a5568;
    margin-bottom: 8px;
}
.whats-date {
    font-size: 11px;
    color: #a0aec0;
}

/* Status Badges */
.status-badge {
    padding: 3px 8px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
}
.status-1, .status-enviado { background: #e6fffa; color: #234e52; } /* Enviado/Sucesso */
.status-0, .status-pendente { background: #feefc3; color: #744210; } /* Pendente */
.status-2, .status-erro { background: #fed7d7; color: #9b2c2c; }    /* Erro/Falha */

/* Estilo do botão de recarregar e fechar */
.drawer-action-btn {
    background: #f1efff;
    border: none;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.2s;
}
.drawer-action-btn:hover {
    background: #e2ddff;
}

/* Animação de rotação ao atualizar */
.spin-animation {
    animation: spin 0.8s linear infinite;
}
@keyframes spin {
    100% { transform: rotate(360deg); }
}



  /* Tiny responsive */
  @media (max-width:560px){
    .avatar{ width:44px; height:44px; font-size:16px; }
    .modal-body{ padding:14px; }
    .modal-header{ padding:14px; }
    .modal-footer{ padding:12px; gap:8px; }
  }

  /* utilities */
  .muted { color: var(--muted); font-size:13px; }
  .sr-only { position:absolute; left:-9999px; top:auto; width:1px; height:1px; overflow:hidden; }

/* ABAIXO AJUSTES PARA MOBILE */

/* --- RESPONSIVIDADE (Mobile) --- */

@media (max-width: 800px) {
    /* 1. Ajuste do Cabeçalho */
    .cabecalho {
        height: 65px;
        padding: 0 15px;
    }
    .drawer-overlay {
        display:none;
    }

    .logo img {
        width: 140px !important; /* Logo menor no mobile */
    }

    /* 2. Esconde o Menu Original e o transforma em uma gaveta lateral */
    .menu-container {
        position: fixed;
        top: 65px;
        left: -100%; /* Escondido fora da tela */
        width: 250px;
        height: calc(100vh - 65px);
        background: #ffffff;
        flex-direction: column; /* Itens um abaixo do outro */
        justify-content: flex-start;
        gap: 0;
        transition: 0.3s ease-all;
        box-shadow: 5px 0 15px rgba(0,0,0,0.1);
        z-index: 999;
        padding-top: 20px;
    }

    /* 3. Estilo dos botões no mobile (ocupando a largura toda) */
    .itemmenu {
        width: 100%;
        border-radius: 0;
        border-bottom: 1px solid #f0f0f0;
        border-left: 5px solid transparent;
        flex-direction: row; /* Ícone ao lado do texto */
        justify-content: flex-start;
        padding: 15px 25px;
        min-height: 60px;
    }
    
    .itemmenu[nitem="1"] { border-left-color: #5bc0de; border-bottom: 1px solid #f0f0f0; }
    .itemmenu[nitem="2"] { border-left-color: #d9534f; border-bottom: 1px solid #f0f0f0; }
    .itemmenu[nitem="5"] { border-left-color: #538d04; border-bottom: 1px solid #f0f0f0; }
    .itemmenu[nitem="6"] { border-left-color: #5cb85c; border-bottom: 1px solid #f0f0f0; }

    .itemmenu img { margin: 0 15px 0 0; }
    .itemmenu span { margin-top: 0; font-size: 13px; }

    /* 4. O Ícone Hambúrguer */
    .menu-icon {
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        width: 30px;
        height: 20px;
        cursor: pointer;
        order: -1; /* Coloca o ícone antes da logo */
    }

    .menu-icon span {
        display: block;
        height: 3px;
        width: 100%;
        background-color: #555;
        border-radius: 3px;
        transition: 0.3s;
    }

    /* 5. Lógica para abrir o menu ao clicar no ícone (via checkbox) */
    #menu-toggle:checked ~ .menu-container {
        left: 0;
    }

    /* Animação do ícone para virar um "X" quando aberto */
    #menu-toggle:checked ~ .menu-icon span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
    #menu-toggle:checked ~ .menu-icon span:nth-child(2) { opacity: 0; }
    #menu-toggle:checked ~ .menu-icon span:nth-child(3) { transform: translateY(-9px) rotate(-45deg); }

    /* 6. Ajuste da Direita (Sino e Usuário) */
    .header-right { gap: 10px; }
    .user-info { display: none; } /* Esconde o nome do médico para sobrar espaço */
    .iconotif { width: 38px; height: 38px; }
}

@media (min-width: 801px) {
    .menu-icon { display: none; } /* Esconde o hambúrguer no desktop */
}

@media (max-width: 800px) {
    /* 1. Resetar o item pai para não prender o submenu */
    .itemmenu[nitem="5"] {
        position: static !important; /* Remove o 'relative' que prende o filho */
    }

    .subadm {
        /* 2. Posicionamento fixo absoluto em relação à tela (Viewport) */
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        right: 0 !important;
        bottom: 0 !important;
        width: 100vw !important;
        height: 100vh !important;
        
        /* 3. Visual e Camada */
        background: #ffffff !important;
        z-index: 9999999 !important; /* Deve ser maior que o 999 do container */
        
        /* 4. Limpeza total de heranças do Desktop (Visto nas suas imagens) */
        margin: 0 !important;
        padding: 80px 0 20px 0 !important; /* Espaço para o botão de fechar */
        transform: none !important; /* Mata o translateX(-50%) */
        box-shadow: none !important;
        border: none !important;
        
        /* 5. Comportamento de Scroll */
        overflow-y: auto !important;
        display: none; /* O jQuery vai alternar para block */
    }

    /* 6. Estilo dos itens em tela cheia */
    .subitemadm {
        display: block !important;
        width: 100% !important;
        padding: 18px 25px !important;
        font-size: 16px !important;
        color: #333 !important;
        border-bottom: 1px solid #eee !important;
        background: #fff !important;
        text-align: left !important;
    }
}

/* Esconde o botão no Desktop */
.fechar-submenu-mobile {
    display: none;
}

@media (max-width: 800px) {
    .fechar-submenu-mobile {
        display: flex !important; /* Mostra apenas no mobile */
        align-items: center;
        justify-content: space-between;
        position: sticky; /* Fica fixo no topo durante o scroll do submenu */
        top: 0;
        left: 0;
        width: 100%;
        height: 60px;
        background: #538d04; /* Cor verde do Admin */
        color: white;
        padding: 0 15px;
        font-size: 14px;
        z-index: 10000;
        box-shadow: 0 2px 5px rgba(0,0,0,0.1);
        cursor: pointer;
    }

    .subadm {
        padding-top: 0 !important; /* O botão já ocupa o topo */
        background: #fff !important;
    }
}

@media screen and (max-width: 600px) {
    .nativedate{
        display: block;
        margin-top: 39px;
        width: 114px;
        margin-left: 38px;
        padding: 3px;
        background-color: #FFF;
        font-size: 1em;
        border: none;
        box-shadow: none;
    }
    .modalguia{
        width:2000px;
    }
    .linhaselexame, .tittema {
    font-size: 12px;
    }
    .btguiatema{
        font-size: 0.9em;
        margin: 2px 1px;
    }
	.somobi{
        display: block;
    }
    .div15{
        width: 30%;
    }
    .div10{
        width: 20%;
    }
    #diaagenda{
        display: none;
    }
    .exibepaciente{
        position: relative;
        float: left;
        width: 90%;
        margin-left: 4%;
        padding: 6px 1%;
        font-size: 1em;
        border-bottom: 2px dotted #16b293;
        color: #888;
        cursor: pointer;
    }
    .titulomodal{
        font-size: 1.9em;
    }

    .sodesk{
        display: none;
    }

    .modal{
        width: 94%;
        left: 1%;
        top: 170px;
    }

    .qlogin{
        width: 90%;
        left: 3%;
    }

    .logologin img{
        width: 60%;
    }

    .logo, .rdp_chat, .caixachat, .iconotif{
        display:none;
    }
    .itemmenu{
        width: 25%;
    }
    .filtrosagenda{
        display: none;
    }
    .topomodal{
        margin-top: 50px; 
    }

}

@media screen and (max-width: 1200px) {
    .div15{
        width: 30%;
    }
    .div10{
        width: 20%;
    }

}