html, body {
	padding: 0px;
	margin: 0px;
	font-size: 15pt;
	font-family: "Open Sans";
}

div,
span,
p,
input,
select,
textarea,
button{
	font-size: 12pt;
	font-family: "Open Sans";
	line-height: 25px;
}

.wrapper{
	width: 1000px;
	box-sizing: border-box;
	margin: auto;
	padding: 20px 40px;
}

.wrapperInner{
	max-width: 1000px;
	box-sizing: border-box;
	margin: auto;
	padding: 20px 40px;
}

.midrow,
.thirdrow,
.fourthrow,
.fullrow{
	margin-bottom: 0px;
	font-size: 11pt;
	text-transform: uppercase;
	color: #4A4A4A;
    min-height: 84px;
}

.midrow{
	float: left;
	width: 50%;
	box-sizing: border-box;
	padding: 0px 10px;
}

.thirdrow{
	float: left;
	width: 33.3%;
	box-sizing: border-box;
	padding: 0px 10px;
}

.fourthrow{
	float: left;
	width: 25%;
	box-sizing: border-box;
	padding: 0px 10px;
}

.fullrow{
	float: left;
	width: 100%;
	box-sizing: border-box;
	padding: 0px 10px;
}

.fourthrow input,
.fourthrow select,
.fourthrow button,
.midrow input,
.midrow select,
.midrow button,
.thirdrow input,
.thirdrow select,
.thirdrow textarea,
.thirdrow button,
.fullrow input,
.fullrow select,
.fullrow textarea,
.fullrow button{
	width: 100%;
	min-height: 30px;
}

.thirdrow textarea,
.fullrow textarea{
	min-height: 115px;
}

h3 {
	border-bottom: 1px solid #8E8E8E;
	font-size: 20px
}

.fecha_historia {
	background-color: #fbd0be;
	text-align: right;
	box-sizing: border-box;
	padding: 5px;
	border-bottom: 2px solid #925A43;
	margin-bottom: 0px;
	font-size: 13pt;
}

.texto_historia {
	background-color: #E0E0E0;
	box-sizing: border-box;
	padding: 15px;
	margin-top: 0px;
	font-size: 13pt;
	margin-bottom: 0px;
}

.historia_dia {
	border: 2px solid #929292;
	border-radius: 10px;
	overflow: hidden;
    margin-bottom: 15px;
}


.nueva_historia {
	width: 100%;
	height: 150px;
}

#menu {
	padding: 15px;
	border: 1px solid red;
	box-sizing: border-box;
}

#menu ul {
	margin: 0px;
}

#menu li {
	float: right;
}

#menu ul li a {
    text-decoration: none;
    text-transform: uppercase;
    font-size: 12pt;
    border: 1px solid blue;
    width: 100%;
    padding: 5px 15px;
    margin-left: 20px;
}

label.error {
    font-size: 9pt;
    color: red;
	margin-bottom: 2px;
}

.campo{
	border: 1px solid #A9A9A9;
    min-height: 25px;
    background-color: #E6E6E6;
	 padding: 0px 10px;
}

a#fancybox_ajax {
    text-transform: none;
    text-decoration: none;
    text-align: center;
	    width: 100%;
}

a#fancybox_ajax:hover {
	border: 1px solid #7B7B7B;
}

.main {
    padding-bottom: 4em;
	min-height: 750px;
}

.mainnav li a span{
	font-size: 12pt;
	margin: 0px;
    padding: 0px;
    line-height: 9pt;
}

.nav>li>a:focus, .nav>li>a:hover {
    background-color: transparent;
}

.nav .open>a, .nav .open>a:focus, .nav .open>a:hover {
    background-color: transparent;
    border-color: none;
}

.navbar.navbar-fixed-top{
	height: 54px;
    margin-bottom: 0px;
}

.navbar-inner {
    padding: 0px;
    background: #925a43 !important;
}

.nav>li {
	float: right;
	height: 54px;
}

.nav>li>a {
	padding: 0px;
	padding-left: 10px;
	padding-right: 10px;
    line-height: 54px;
}

.navbar .nav>li>span {
	color: #fff !important;
	font-size: 15px;
	position: relative;
    display: block;
    padding-left: 10px;
	padding-right: 10px;
	line-height: 54px;
}

.brand {
	color: #FFF;
	line-height: 54px;
}

.navbar .brand {
    float: left;
    display: block;
    margin-left: -20px;
    font-size: 20px;
    font-weight: 200;
    color: #ffffff;
	top: 0px;
}

.dropdown-menu li>a:hover, .dropdown-menu .active>a, .dropdown-menu .active>a:hover {
    background: #0068A1;
	color: #FFF;
}

.subnavbar .container > ul > li > a > i {
    display: inline-block;
    width: 35px;
    height: 30px;
    margin-top: 5px;
    margin-bottom: -3px;
    font-size: 28px;
}

.table a {
    display: table-cell;
    font-size: 9pt;
    margin-bottom: 10px;
    text-align: center;
    width: 65px;
    padding: 0px 10px;
}

.table a:hover {
    text-decoration: none;
}

table.table a i {
	font-size: 30px;
	clear: both;
	display: table;
	text-align: center;
	    margin: auto;
}

td.center {
    text-align: center;
}

#ambiance-notification {
	top: 120px !important;
}

#loader {
	display: none;
	position: fixed;
	top: 0;
	width: 100%;
	height: 100%;
	background: #222222;
	z-index: 1000;
	opacity: 0.8;
}

#loader img {
	z-index: 1001;
	position: relative;
	top: calc(50% - 50px);
	left: calc(50% - 50px);
}

input:disabled,
select:disabled {
    background-color: #E6E6E6;
}

.brand img {
    height: 40px;
}


.cuadricula {
	border: 1px solid #8e8e8e;
    border-radius: 10px;
    padding-top: 20px;
    margin-bottom: 20px;
}

.cuadricula h4 {
    border-bottom: 1px solid #8e8e8e;
    margin-bottom: 20px;
    margin-top: 0px;
}

.albaran_icon {
    background-image: url(../img/pdf_void.png);
    background-size: cover;
    display: inline-block !important;
    background-repeat: no-repeat;
    font-size: 1.7em !important;
    line-height: 30px !important;
    font-weight: bold;
    font-style: normal;
    width: 29px;
    height: 33px;
    margin-top: 5px !important;
}

.mainnav li a i span {
    margin-left: -17px;
}

/* tabs */
ul.tabs {
	margin: 0;
	padding: 0;
	float: left;
	list-style: none;
	height: 32px; /*--Set height of tabs--*/
	border-bottom: 1px solid #999;
	border-left: 1px solid #999;
	width: 100%;
}
ul.tabs li {
	float: left;
	margin: 0;
	padding: 0;
	height: 31px; /*--Subtract 1px from the height of the unordered list--*/
	line-height: 31px; /*--Vertically aligns the text within the tab--*/
	border: 1px solid #999;
	border-left: none;
	margin-bottom: -1px; /*--Pull the list item down 1px--*/
	overflow: hidden;
	position: relative;
	background: #e0e0e0;
}
ul.tabs li a {
	text-decoration: none;
	color: #3e3e3e;
	display: block;
	font-size: 0.75em;
padding: 0 10px;
	border: 1px solid #fff; /*--Gives the bevel look with a 1px white border inside the list item--*/
	outline: none;
}
ul.tabs li a:hover {
	background: #ccc;
}

html ul.tabs li.active, html ul.tabs li.active a:hover  { /*--Makes sure that the active tab does not listen to the hover properties--*/
	background: #337ab7;
	border: 1px solid #337ab7;
	border-bottom: 2px solid #1d476b;/*--Makes the active tab look like it's connected with its content--*/
}

ul.tabs li.active a {
    color: white;
    border: 1px solid #337ab7;
}

.tab_container {
	border: 1px solid #999;
	border-top: none;
	overflow: hidden;
	clear: both;
	float: left; width: 100%;
	background: #fff;
}
.tab_content {
	padding: 20px;
	font-size: 1.2em;
	height: 450px;
    overflow-y: auto;
}

.badge {
	font-family: "Open Sans";
    font-size: 11px;
    font-weight: bold;
    color: #FFF;
    background: #052963;
    line-height: 17px;
    width: 20px;
    height: 20px;
    border-radius: 2em;
    -webkit-border-radius: 2em;
    -moz-border-radius: 2em;
    -o-border-radius: 2em;
    text-align: center;
    display: inline-block;
    position: absolute;
    top: 11%;
    padding: 2px 0 0;
	left: 20%;
}

.red { 
	background: #f94c4c;
}

.mostaza {
	background-color: #b1b136;
}

.resp {
	display: none;
}

.nav>li.resp {
	display: none;
}

#fecha_cita {
	text-align: center;
}

/*mensajes*/
.msg_user_list{
	width: 33%;
	border: 1px solid #8E8E8E;
	border-radius: 10px;
	float: left;
	overflow: hidden;
}

.msg_list {
	width: 66%;
	border: 1px solid #8E8E8E;
	border-radius: 10px;
	float: right;
	overflow: hidden;
}

.user_list {
	display: block;
	width: 100%;
	margin-bottom: 5px;
	padding-left: 5px;
}

.msg_list h4,
.msg_user_list h4 {
	border-bottom: 2px solid #8e8e8e;
}

.user_sel {
	background-color: #925a43 !important;
	color: #fff !important;
}

#capa_msg,
#capa_user {
	max-height: 320px;
	overflow-y: auto;
	height: 320px;
}

.sender_chat {
	margin: 10px 0px;
	padding-left: 5px;
}

.msg_chat {
	border: 1px solid #737373;
	background-color: rgba(0,0,0,0.1);
	padding: 5px;
	margin: 0px 10px;
	margin-bottom: 25px;
}

div#capa_response {
	margin-top: 20px;
}

textarea#response {
	width: 100%;
}
.msg_user_list_resp {
	display: none;
}


/*citas*/
#ui-datepicker-div[inputId=fil_mes_cita] .ui-datepicker-calendar {
display: none;
}

button.ui-datepicker-trigger {
	width: 30px;
	float: right;
}

.input_date {
	display: inline-block !important;
	width: calc(100% - 35px) !important;
}

div#id_especialista_chosen, div#id_paciente_chosen {
    width: 100% !important;
}

nav ul li a i span {
    margin-left: -12px;
}

.subnavname {
    display: none;
}

ul#esp_msg li {
    list-style: none;
    width: 50%;
    float: left;
}

ul#esp_msg li input[type=checkbox]{
    width: 40px;
    line-height: 40px;
    vertical-align:middle;
}

.cita_conf {
	background-color: #059005;
    color: white;
}

.cita_desconf {
	background-color: #900505d1;
    color: white;
}

.col_fecha {
	width: 104px;
	text-align: center;
}

.col_hora {
	width: 77px;
	text-align: center;
}

.col_hist {
	width: 77px;
}

.col_aten {
	width: 77px;
	text-align: center;
}

.col_conf {
	width: 94px;
	text-align: center;
}

#broadcast,
#broadcast_resp {
	width: 30px;
	line-height: 30px;
	vertical-align: middle;
}

#capa_user input[type='checkbox'] {
	height: 20px;
	width: 20px;
	margin: 0px 10px;
	vertical-align: text-bottom;
}

.chk_all {
	margin-top: 10px;
	width: 33%;
	text-align: center;
}

.msg_broad {
    border: 1px solid #a90909;
    background-color: rgba(191, 18, 18, 0.21);
}

.row {
	margin-left: 0px;
	margin-right: 0px;
}

.user_with_msg {
	background-color: #eaea7c;
	background-image: url(../img/new_msg.png);
    background-size: contain;
    background-repeat: no-repeat;
    background-position: right;
}

button.ui-datepicker-current {
    opacity: 1 !important;
    font-weight: bold !important;
}

table tr td.options {
	padding: 5px 0px;
}






@media (max-width: 979px){
	.main {
		min-height: 450px;
	}

	.navbar .nav.pull-right {
		float: right;
		margin-right: 30px;
		text-align: left;
		 margin-bottom: 0px;
	}
	
	.navbar .nav-collapse {
		clear: none;
	}
	
	.nav-collapse {
		overflow: auto;
		height: inherit;
	}
	
	.navbar .brand {
		margin-left: 40px;
	}
	
	.navbar-fixed-top .navbar-inner {
		padding: 0px;
	}
	
	.navbar .nav>li {
        float: right;
    }

    .navbar .nav>li>a {
        font-weight: normal;
        padding: 0px;
        padding-left: 10px;
        padding-right: 10px;
        margin: 0px;
    }
}

@media screen and (max-width: 767px){
	.no_resp {
		display: none !important;
	}
	
	.resp {
		display: block !important;
	}
	
	.navbar {
		width: 100%;
		margin: 0px;
		margin-bottom: 10px !important;
	}
	
	.navbar.navbar-fixed-top {
		height: inherit;
	}
	
	.navbar .navbar-inner {
		/*height: 54px;*/
	}
	
	.navbar .brand {
		margin-left: 10px;
	}
	
	.navbar .nav.pull-right {
		margin-right: 10px;
	}
	
	ul.nav .resp {
		display: block;
	}
	ul.nav li.resp {
		float: right;
	}
	ul.nav .no_resp {
		display: none;
	}
	.subnavbar {
		display: none;
	}
	
	ul.nav .resp a {
		 padding: 6px;
	}
	
	ul.nav .resp a i {
		font-size: 28pt;
	}
	
	.nav>li>a {
		line-height: inherit;
	}
	
	.row {
		width: 100%;
	}
	
	h3 {
		margin-top: 0px;
	}
	
	.container {
		padding: 0px !important;
		width: 99%;
	}
	
	.footer {
		margin: 0px;
	}
	
	.footer .row div {
		font-size: 10pt !important;
		text-align: center;
	}
	
	.top_disc {
		
	}
	.top_msg {
		
	}
	.top_user {

	}
	
	.ui-datepicker {
		width: 300px !important;
	}

	.ui-datepicker * {
		font-size: 10pt !important;
	}
	
	.midrow,
	.thirdrow,
	.fourthrow {
		width: 100%;
		min-height: 34px;
	}
	
	/*login*/
	.container .btn-navbar {
		display: none;
	}
}

@media (max-width: 480px) {
	.main {
		padding-bottom: 1em;
	}
	
	ul.nav.pull-right {
		margin-bottom: 0px;
	}
	
	.subnavname {
		display: block;
		background-color: #e8ad94;
		text-transform: uppercase;
		font-size: 9pt;
		text-align: center;
		height: 22px;
		line-height: 22px;
		color: #925a43;
	}

	/*login*/
	.account-container h1 {
		font-size: 24pt;
	}

	.account-container {
		margin: 40px auto 0 auto;
		width: 320px;
	}
	
	.login-fields input {
		width: 100% !important;
	}
	
	.login-actions button {
		width: 100%;
	}
	
	.fullrow {
		min-height: 34px;
	}
	
	/*mensajes*/
	.msg_user_list_resp {
		display: block;
	}
	.msg_user_list {
		display: none;
	}
	.msg_list {
		width: 100%;
	}
	
	.thirdrow textarea, .fullrow textarea {
		min-height: 50px;
	}
	
	#capa_msg,
	#capa_user {
		max-height: 280px;
		height: 280px;
	}
	.thirdrow {
		min-height: 34px;
	}
	
	.chk_all {
		width: 100%;
	}
	
	.row_broadcast {
		text-align: center;
		margin-top: 10px;
	}
	
	.wrapperInner {
		padding: 5px;
	}
}