/**************** GLOBALS ****************/
html {
	position: relative;
	min-height: 100%;
}
body {
	display:flex;
	justify-content: center;
	flex-direction: column;
	font-family: 'Open Sans', sans-serif;
	margin-bottom: 30px;
}

a:focus,
a:active {text-decoration: none;}

table tr {
	border-bottom: 1px solid #cde0ef;

}

table thead tr {
	border-bottom: 1px dotted #cde0ef;
}
table thead tr th {color: #666666;}

table tr:nth-child(even) {
	background:#f4f8fb;
}

table tr {
    height:35px;
}

table tr td {color: #666666;}

table td a {text-decoration: none;}

.section {
	padding:0px 25px;
}

.fa-trash {
    color: darkred;
}

.fa-pencil-square-o {
    color: green;
}

.container,
.header,
.subheader {
    margin-bottom:20px;
}

.btn {
	border-radius:20px;
}

button a,
button a:hover {
    color:white;
}

form .form-group.inline-input label {
    width:48%;
    float:left;
    clear:none;
}

form .form-group.inline-input label:first-child {
    margin-right:4%;

}

.fa-check {
    color:green;
	font-size: 1.143em;
}

.btn-success {
	background: #2c9a7a; /* Old browsers */
	background: -moz-linear-gradient(top,  #2c9a7a 0%, #248568 100%); /* FF3.6-15 */
	background: -webkit-linear-gradient(top,  #2c9a7a 0%,#248568 100%); /* Chrome10-25,Safari5.1-6 */
	background: linear-gradient(to bottom,  #2c9a7a 0%,#248568 100%); /* W3C, IE10+, FF16+, Chrome26+, Opera12+, Safari7+ */
	filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#2c9a7a', endColorstr='#248568',GradientType=0 ); /* IE6-9 */
	border: none;
}
	.btn-success:hover {
		background: #248568; /* Old browsers */
		background: -moz-linear-gradient(top,  #248568 0%, #2c9a7a 100%); /* FF3.6-15 */
		background: -webkit-linear-gradient(top,  #248568 0%,#2c9a7a 100%); /* Chrome10-25,Safari5.1-6 */
		background: linear-gradient(to bottom,  #248568 0%,#2c9a7a 100%); /* W3C, IE10+, FF16+, Chrome26+, Opera12+, Safari7+ */
		filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#248568', endColorstr='#2c9a7a',GradientType=0 ); /* IE6-9 */
	}
		.btn-success:hover a {text-decoration: none;}

.btn-primary {
	/* Permalink - use to edit and share this gradient: http://colorzilla.com/gradient-editor/#267cbc+0,1f6da5+100 */
	background: #267cbc; /* Old browsers */
	background: -moz-linear-gradient(top,  #267cbc 0%, #1f6da5 100%); /* FF3.6-15 */
	background: -webkit-linear-gradient(top,  #267cbc 0%,#1f6da5 100%); /* Chrome10-25,Safari5.1-6 */
	background: linear-gradient(to bottom,  #267cbc 0%,#1f6da5 100%); /* W3C, IE10+, FF16+, Chrome26+, Opera12+, Safari7+ */
	filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#267cbc', endColorstr='#1f6da5',GradientType=0 ); /* IE6-9 */
	border: none;
}
	.btn-primary:hover {
		/* Permalink - use to edit and share this gradient: http://colorzilla.com/gradient-editor/#267cbc+0,1f6da5+100 */
		background: #267cbc; /* Old browsers */
		background: -moz-linear-gradient(top, #1f6da5 0%, #267cbc 100%); /* FF3.6-15 */
		background: -webkit-linear-gradient(top, #1f6da5 0%,#267cbc 100%); /* Chrome10-25,Safari5.1-6 */
		background: linear-gradient(to bottom,  #1f6da5 0%,#267cbc 100%); /* W3C, IE10+, FF16+, Chrome26+, Opera12+, Safari7+ */
		filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#267cbc', endColorstr='#1f6da5',GradientType=0 ); /* IE6-9 */
	}
	.btn-primary:hover a {text-decoration: none;}
	
.btn-danger {
	/* Permalink - use to edit and share this gradient: http://colorzilla.com/gradient-editor/#a10000+0,890000+100 */
	background: #a10000; /* Old browsers */
	background: -moz-linear-gradient(top,  #a10000 0%, #890000 100%); /* FF3.6-15 */
	background: -webkit-linear-gradient(top,  #a10000 0%,#890000 100%); /* Chrome10-25,Safari5.1-6 */
	background: linear-gradient(to bottom,  #a10000 0%,#890000 100%); /* W3C, IE10+, FF16+, Chrome26+, Opera12+, Safari7+ */
	filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#a10000', endColorstr='#890000',GradientType=0 ); /* IE6-9 */
	border: none;
}
	.btn-danger:hover {
		/* Permalink - use to edit and share this gradient: http://colorzilla.com/gradient-editor/#a10000+0,890000+100 */
		background: #a10000; /* Old browsers */
		background: -moz-linear-gradient(top,  #890000 0%, #a10000 100%); /* FF3.6-15 */
		background: -webkit-linear-gradient(top,  #890000 0%,#a10000 100%); /* Chrome10-25,Safari5.1-6 */
		background: linear-gradient(to bottom,  #890000 0%,#a10000 100%); /* W3C, IE10+, FF16+, Chrome26+, Opera12+, Safari7+ */
		filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#a10000', endColorstr='#890000',GradientType=0 ); /* IE6-9 */
	}
	.btn-danger:hover a {text-decoration: none;}

.btn-cancel {
	color: #999999;
	background: none;
	text-decoration: underline;
	padding: 0;
}
	#parametres .btn-cancel {
		margin-top: 26px;
		margin-right: 20px;
		border: none;
	}
	#parametres #delete-modal .btn-cancel {
		margin-top: 1px;
		margin-right: -15px;
		border: none;
	}


.clear {clear: both;}

/**************** HEADER ****************/

.header {
	/* Permalink - use to edit and share this gradient: http://colorzilla.com/gradient-editor/#267cbc+0,206ea6+100 */
	background: #267cbc; /* Old browsers */
	background: -moz-linear-gradient(top,  #267cbc 0%, #206ea6 100%); /* FF3.6-15 */
	background: -webkit-linear-gradient(top,  #267cbc 0%,#206ea6 100%); /* Chrome10-25,Safari5.1-6 */
	background: linear-gradient(to bottom,  #267cbc 0%,#206ea6 100%); /* W3C, IE10+, FF16+, Chrome26+, Opera12+, Safari7+ */
	filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#267cbc', endColorstr='#206ea6',GradientType=0 ); /* IE6-9 */
    color: #fff;
    height:50px;
    padding:10px 0px;
}
#client .header {margin-bottom: 0;}

.header .left {
    float: left;
}

.header .right {
    float:right;
}

.header a,
.header a:hover {
    color:white;
}

.header div,
.header ul {
    float:left;
    margin:0;
    padding:0;
    list-style:none;
}

.header li {
    float:left;
    margin:5px 10px;
}

.header .logo {
    margin-left:20px;
}

/**************** SUB HEADER ****************/

#client .section .subheader,
#visit-edit .section .subheader {
	margin-left: -25px;
	margin-right: -25px;
	background: #f7f7f7;
	padding: 15px 25px;
}



/**************** FOOTER ****************/

footer {
	text-align: center;
	position: absolute;
	width: 100%;
	bottom: 0;
	height: 30px;
}
	footer p {color: #aaaaaa;}

/**************** LOGIN ****************/

#login h1 {
	margin: 30px 0;
}
#login img { 
	display: block;
	width: 193px;
	height: auto;
	margin: 0 auto;
}

#login .login-form {
    border: 1px solid #d5e6f2;
    border-radius: 7px;
    margin: 0 auto 30px auto;
    width: 375px;
    padding: 20px 50px;
	box-shadow: 0px 0px 10px 0px rgba(0, 0, 0, 0.2);
}

#login .login-form div {
	margin: 20px auto;
}

#login .login-form input {
    padding: 5px 0;
    text-align: center;
    border: 1px solid #cccccc;
    border-radius: 7px;
	font-size: 1em;
}

#login .login-form button {
    border-radius: 7px;
    border: none;
    color: #fff;
	background: #2c9a7a; /* Old browsers */
	background: -moz-linear-gradient(top,  #2c9a7a 0%, #248568 100%); /* FF3.6-15 */
	background: -webkit-linear-gradient(top,  #2c9a7a 0%,#248568 100%); /* Chrome10-25,Safari5.1-6 */
	background: linear-gradient(to bottom,  #2c9a7a 0%,#248568 100%); /* W3C, IE10+, FF16+, Chrome26+, Opera12+, Safari7+ */
	filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#2c9a7a', endColorstr='#248568',GradientType=0 ); /* IE6-9 */
	border-radius: 15px;
	cursor: pointer;
}
	#login .login-form button:hover {
		background: #248568; /* Old browsers */
		background: -moz-linear-gradient(top,  #248568 0%, #2c9a7a 100%); /* FF3.6-15 */
		background: -webkit-linear-gradient(top,  #248568 0%,#2c9a7a 100%); /* Chrome10-25,Safari5.1-6 */
		background: linear-gradient(to bottom,  #248568 0%,#2c9a7a 100%); /* W3C, IE10+, FF16+, Chrome26+, Opera12+, Safari7+ */
		filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#248568', endColorstr='#2c9a7a',GradientType=0 ); /* IE6-9 */
	}

/**************** ERRORS ****************/
	.error {
		background: #fadbdb;
		padding: 3px;
		text-align: center;
		border-radius: 8px;
		color: #db0000;
        clear:both;
		margin-top: 10px;
	}


/**************** CLIENTS ****************/

#clients .subheader .btn-success,
#parametres .btn-success {
	float:right;
	background: #2c9a7a; /* Old browsers */
	background: -moz-linear-gradient(top,  #2c9a7a 0%, #248568 100%); /* FF3.6-15 */
	background: -webkit-linear-gradient(top,  #2c9a7a 0%,#248568 100%); /* Chrome10-25,Safari5.1-6 */
	background: linear-gradient(to bottom,  #2c9a7a 0%,#248568 100%); /* W3C, IE10+, FF16+, Chrome26+, Opera12+, Safari7+ */
	filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#2c9a7a', endColorstr='#248568',GradientType=0 ); /* IE6-9 */
	border: none;
}
	#clients .subheader .btn-success:hover,
	#parametres .btn-success:hover {
		background: #248568; /* Old browsers */
		background: -moz-linear-gradient(top,  #248568 0%, #2c9a7a 100%); /* FF3.6-15 */
		background: -webkit-linear-gradient(top,  #248568 0%,#2c9a7a 100%); /* Chrome10-25,Safari5.1-6 */
		background: linear-gradient(to bottom,  #248568 0%,#2c9a7a 100%); /* W3C, IE10+, FF16+, Chrome26+, Opera12+, Safari7+ */
		filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#248568', endColorstr='#2c9a7a',GradientType=0 ); /* IE6-9 */
	}
		#clients .subheader .btn-success a:hover {text-decoration: none;}

#parametres .btn-success {margin-top: 20px;}

#clients #search-bar {
	float:left;
	width:50%;
}

#clients #search-bar input {
	border-radius:20px;
	border:1px solid #999999;
	padding-right:23px;
	padding-left: 10px;
}


#clients #search-bar button.btn {
    padding:0px;
    border:none;
    background:none;
    margin-left:-27px;
    margin-top:-3px;
	color: #969696;

}

#clients table.client-list,
#parametres table.parametres-list {width:100%;}

.pagination-container {
    margin:20px 0px;
    float:left;
    width:100%;
}

.pagination-container .prev-next {
    float:right;
}

.pagination-container .prev-next a {
    text-decoration: none;
}

.pagination-container .prev-next a[href="#"] button {
    color:lightgray;
    cursor:auto;
}

table td.edit {
	text-align: right;
	font-size: 1.143em;
}
table td.edit .edit-btn {margin-right: 25px;}
table td.edit a:hover {text-decoration: none;}

/**************** CLIENT EDIT ****************/

#client-edit form,
#visit-edit form {
    width:60%;
}

form label {
    display:block;
    float:left;
    clear:both;
    width:100%;
}

#client-edit label#last_name {
    width:50%;
    margin-left:5%;
}

.form-group {
    float:left;
    width:100%;
    clear:both;
    margin:5px 0px;

}

.radio-group label {
    padding:5px 0;
    margin-bottom:0px;
}

.radio-group input[type="radio"] {
	width:20px;
	float:left;
	height:20px;
	margin:0 5px 0 0;
	/* -webkit-appearance: checkbox; /* Chrome, Safari, Opera */
	/* -moz-appearance: checkbox;    /* Firefox */
	/* -ms-appearance: checkbox; */
	box-shadow: none;
}

.radio-group input[type="text"]{
    width:calc(100% - 20px);
    float:left;
    margin:5px 0 10px 20px;

}

select {
    width:100%;
    margin:5px 0;
}


#client-edit .form-group.consent {
	border-top: 1px dotted #cde0ef;
	padding-top:25px;
}


#client-edit .form-group.consent label {
    margin:10px 0;
}

#client-edit .form-group.consent span {
    float:right;
    width:calc(100% - 25px);
}

#client-edit .form-group input[type="checkbox"] {
	float:left;
	margin-left:4px;
}

#client-edit .form-group.consent input[type="text"] {
    width:100%;
    margin:10px 0 0;
}

/*                  CLIENT INFO                 */

#client .subheader h1,
#visit-edit .subheader h1 {
    width:50%;
    float:left;
    margin: 0;
	font-size: 1.714em;
	font-weight: bold;
	color: #666666;
}

#client .subheader .edit-delete-container,
#visit-edit .subheader .edit-delete-container {
    float:right;
    margin-top: 4px;
}


#client .subheader .edit-delete-container a,
#visit-edit .subheader .edit-delete-container a  {
	margin-left:20px;
	font-size: 1.143em;
}
#client .subheader .edit-delete-container a:hover,
#visit-edit .subheader .edit-delete-container a:hover {
	text-decoration: none;
}

#client #client-details {
    float:left;
    clear:left;
    width:48%;
}

#client #visits-list {
    float:right;
    clear:right;
    width:48%;
}

#client #visits-list h3 {
    float:left;
    width:80%;
    margin:5px 0px 15px;
}

#client #visits-list .btn-success {
	float:right;
	background: #2c9a7a; /* Old browsers */
	background: -moz-linear-gradient(top,  #2c9a7a 0%, #248568 100%); /* FF3.6-15 */
	background: -webkit-linear-gradient(top,  #2c9a7a 0%,#248568 100%); /* Chrome10-25,Safari5.1-6 */
	background: linear-gradient(to bottom,  #2c9a7a 0%,#248568 100%); /* W3C, IE10+, FF16+, Chrome26+, Opera12+, Safari7+ */
	filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#2c9a7a', endColorstr='#248568',GradientType=0 ); /* IE6-9 */
	border: none;
}
	#client #visits-list .btn-success:hover {
		background: #248568; /* Old browsers */
		background: -moz-linear-gradient(top,  #248568 0%, #2c9a7a 100%); /* FF3.6-15 */
		background: -webkit-linear-gradient(top,  #248568 0%,#2c9a7a 100%); /* Chrome10-25,Safari5.1-6 */
		background: linear-gradient(to bottom,  #248568 0%,#2c9a7a 100%); /* W3C, IE10+, FF16+, Chrome26+, Opera12+, Safari7+ */
		filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#248568', endColorstr='#2c9a7a',GradientType=0 ); /* IE6-9 */
	}
		#client #visits-list .btn-success a:hover {text-decoration: none;}


#client #visits-list table {
    float:none;
    clear:both;
    width:100%;
}

#client-details-table tr {background: none;}
#client-details-table tr {border: none;}
#client-details-table tr td {
	padding-top: 10px;
	padding-bottom: 10px;
}

#client-details-table tr:first-child td {padding-top: 10px;}
#client-details-table tr:last-child td {padding-bottom: 10px;}

#client-details-table tr td:first-child {padding-right: 0;}
#client-details-table tr td:last-child {padding-left: 0;}

#client-details-table tr td:first-child div {padding-left: 15px;}
#client-details-table tr td:last-child div {padding-left: 15px;}

#client-details-table tr td div {padding: 10px 0 10px 0;}
#client-details-table tr td div:first-child {
	padding-top: 0;
	min-height: 31px;
}
#client-details-table tr td div:nth-child(2) {min-height: 41px;}
#client-details-table tr td div:last-child {
	padding-bottom: 0;
	border-bottom: none;
	min-height: 31px;
}
#client-details-table tr td {border-bottom: 1px dotted #cde0ef;}


/*                  VISIT INFO                  */

#visit-edit .header {
    margin-bottom:0px;
}

#visit-edit .subheader span {
    margin-top:0px;
    font-size:17pt;
    font-weight:bold;
}

#visit-edit .btn-primary {
	margin-right: 20px;
}
#visit-edit .btn-success,
#client-edit .btn-success {
	margin-right: 20px;
}
.modal-footer .btn-danger {margin-left: 20px !important;}

.files-container label {float: none;}

/**************** Forms ****************/
.form-group {margin-bottom: 20px;}
form label {
	color: #666666;
	font-weight: 600;
}
.form-control {margin-top: 10px;}
form label span {margin-left: 20px;}
.form-group.textarea-group textarea {
	min-height: 150px;
}
.template-download .button-delete {
	border: none;
	background: none;
}
.manage-sort {width: 60px;}
.form-control select {margin-bottom: 0;}

/**************** Survey ****************/
.survey {max-width: 600px;}
.survey h3 {margin-bottom: 25px;}
.survey p,
.survey label {font-size: 1.143em;}
.survey-header h1 {
	display: block;
	max-width: 240px;
	margin-left: auto;
	margin-right: auto;
	margin-bottom: 25px;
}
.survey form button {
	width: 250px;
	margin: 0 auto;
	border-radius: 7px;
	border: none;
	color: #fff;
	background: #2c9a7a; /* Old browsers */
	background: -moz-linear-gradient(top,  #2c9a7a 0%, #248568 100%); /* FF3.6-15 */
	background: -webkit-linear-gradient(top,  #2c9a7a 0%,#248568 100%); /* Chrome10-25,Safari5.1-6 */
	background: linear-gradient(to bottom,  #2c9a7a 0%,#248568 100%); /* W3C, IE10+, FF16+, Chrome26+, Opera12+, Safari7+ */
	filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#2c9a7a', endColorstr='#248568',GradientType=0 ); /* IE6-9 */
	border-radius: 15px;
	cursor: pointer;
}
	.survey form button:hover {
		color: #fff;
		background: #248568; /* Old browsers */
		background: -moz-linear-gradient(top,  #248568 0%, #2c9a7a 100%); /* FF3.6-15 */
		background: -webkit-linear-gradient(top,  #248568 0%,#2c9a7a 100%); /* Chrome10-25,Safari5.1-6 */
		background: linear-gradient(to bottom,  #248568 0%,#2c9a7a 100%); /* W3C, IE10+, FF16+, Chrome26+, Opera12+, Safari7+ */
		filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#248568', endColorstr='#2c9a7a',GradientType=0 ); /* IE6-9 */
	}
	.survey label {
		display: inline-block;
		float: none;
		clear: both;
		width: auto;
	}
	.thanks {text-align: center;}
		.thanks h2 {
			color: #337ab7;
			font-weight: bold;
			margin-top: 10px;
		}
		.thanks h3 {
			color: #01997a;
			font-weight: bold;
		}

/**************** UPLOAD ****************/
.add {
	float: right;
	background: #fff;
	border: 2px solid #ccc;
	padding: 10px 20px;
	border-radius: 23px;
	color: #888;
	text-transform: uppercase;
	font-size: 0.875em;
}
.add i {
	color: #337ab7;
	margin-right: 5px;
}
	.add:hover, .add:active, .add:focus, .add a:hover {
		color: #337ab7;
		text-decoration: none;
	}
	span.add {
		margin: 0 auto;
		float: none;
		
	}
	
	span.add.disabled {border-color: #eee;}
	span.add.disabled span, span.add.disabled span i {
		color: #ddd;
	}
	#fileupload table {box-shadow: none;}
	#fileupload table .preview img {}

	#upload-box p {font-size: 0.875em;}

	.table>tbody.files>tr>td {
		border-top: none;
		border-bottom: 1px solid #ddd;
		padding: 20px 0;
	}
	.table>tbody.files>tr>td:last-child {text-align: right;}
	
/**************** STATS ****************/
.stat-container {margin-top: 20px;}
.stats-list-container {
	padding-right: 30px;
}
.stats-graph-container {
	border-left: 1px solid #ddd;
	padding-left: 30px;
	margin-bottom: 30px;
}
.stats-list {padding: 0;}
	.stats-list li {
		list-style: none;
		margin-bottom: 15px;
		padding-bottom: 15px;
		border-bottom: 1px dotted #ddd;
	}
.google-visualization-table {display: block !important;}
.google-visualization-table-table {
	width: 100%;
}
.stats-graph-container .graph {
	margin-bottom: 25px;
	margin: 0 auto !important;
}
	.stats-graph-container .graph>div>div {margin: 0 auto;}

.tab-content > .tab-pane,
.pill-content > .pill-pane {
    display: block;     
    height: 0;          
    overflow-y: hidden; 
}

.tab-content > .active,
.pill-content > .active {
    height: auto;       
} 

.tab-pane {overflow-x: hidden;}