::selection {
  background: #000; /* WebKit/Blink Browsers */
  color: #f1f1f1;
}

::-moz-selection {
  background: #000; /* Gecko Browsers */
  color: #f1f1f1;
}

::-webkit-input-placeholder { /* Chrome/Opera/Safari */
  font-family: 'Open Sans', sans-serif;
}

::-moz-placeholder { /* Firefox 19+ */
  font-family: 'Open Sans', sans-serif;
}

:-ms-input-placeholder { /* IE 10+ */
  font-family: 'Open Sans', sans-serif;
}

:-moz-placeholder { /* Firefox 18- */
  font-family: 'Open Sans', sans-serif;
}

* {
	box-sizing: border-box;
}

h1,
h2,
h3,
h4,
h5,
h6 {
	margin-top: 0;
	margin-bottom: 5px;
	line-height: 1.3;
}

body, html {
	height: 100%;
	margin: 0;
	padding: 0;
	font: 400 1rem/1.8 'Open Sans', sans-serif;
	color: #1a1a1a;
}

header {
	padding: 10px 20px;
    border-bottom: 5px solid #000;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: baseline;
}

footer {
	background-color: #000;
	color: #f1f1f1;
	text-align: center;
	font-size: 0.75rem;
	padding: 5px 20px;
}

main {
	min-height: calc(100vh - 65px);
	padding: 30px 5%;
}

label {
	display: block;
}

input[type="text"],
input[type="password"],
select,
textarea  {
	padding: 10px;
    border: 0 none;
    background-color: #eee;
    width: 100%;
    display: block;
}

textarea  {
	resize: vertical;
	min-height: 150px;
}

.message {
	padding: 10px 15px;
	margin: 10px 0 20px;
	display: flex;
	justify-content: flex-start;
	align-items: center;
}

.error {
	background-color: rgba(255, 0, 0, 0.2);
	color: #880e0e;
}

.message-icon {
	font-size: 1.7rem !important;
    margin-right: 10px;
}

.message-text {
	margin: 0;
}

.doctor {
	margin: 0;
	font-weight: 600;
}

.button {
	padding: 10px;
	text-transform: uppercase;
	font-size: 0.875rem;
	font-weight: 600;
	cursor: pointer;
	text-align: center;
	border: 0 none;
	-webkit-transition: opacity .3s ease-out;
	transition: opacity .3s ease-out;
}

.button:hover {
	opacity: 0.8;
}

.button:focus {
	outline: none;
}

.full-width {
	display: inline-block;
	width: 100%;
}

.primary {
	background-color: #000;
	color: #f1f1f1;
}

.secondary {
	background-color: #5d5b5b;
	color: #f1f1f1;
	padding: 7px;
	font-size: 0.75rem;
	font-weight: 400;
}

.right-button {
	float: right;
	margin-bottom: 10px;
}

a {
	color: #1a1a1a;
	border-bottom: 1px dotted #1a1a1a;
	text-decoration: none;
	-webkit-transition: border .3s ease-out;
	transition: border .3s ease-out;
}

a:hover {
	border-bottom-color: transparent;
}

a.button {
	border-bottom: 0 none;
}

a.icon-link {
	border-bottom: 0 none;
	font-size: 1.5rem;
}

a.icon-link:hover {
	opacity: 0.8;
}

a.icon-link.header-logo {
	font-size: 1rem;
}

a.logout-link {
	margin-left: 10px;
}

a.disabled-link {
	pointer-events: none;
	cursor: not-allowed;
	opacity: 0.7;
	border-bottom-color: transparent;
}

.search-wrapper {
	margin-bottom: 30px;
}

.search-wrapper form {
	display: flex;
}

input[type="text"].search-criterion {
	flex: 1 0 auto;
	padding: 5px 10px;
	width: auto;
}

input[type="text"].search-criterion:focus {
	outline: none;
}

table.styled {
	width: 100%;
	border-collapse: collapse;
}

table.styled thead th {
	background-color: #eee;
	color: #000;
	padding: 7px 5px;
	font-weight: 600;
	text-align: left;
}

table.styled td {
	padding: 0 5px;
}

table.styled td + td {
	border-left: 1px solid rgba(0, 0, 0, 0.25);
}

table.styled.striped tbody tr:nth-child(2n) td {
	background-color: #eee;
}

table.styled tr:last-of-type td {
	border-bottom: 1px solid rgba(0, 0, 0, 0.25);
}

.pagination {
	display: flex;
	justify-content: space-between;
	align-items: center;
}

.doctor {
	display: flex;
	align-items: center;
}

.add-patient-wrapper {
	display: flex;
	justify-content: space-start;
	align-items: center;
	margin-bottom: 20px;
}

a.add-patient-link {
	font-size: 1.7rem;
	margin-left: 15px;
}

.patient-form {
	max-width: 500px;
	width: 90%;
	margin: 0 auto;
	border: 1px dotted #999;
	border-radius: 10px;
	padding: 20px;
}

.all-visits {
	margin: 15px 0;
}

.form-field {
	margin-bottom: 10px;
}

.accordion-header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	/* background-color: #000; Original*/
    background: #0e0e0e;
    background: -moz-linear-gradient(left,  #0e0e0e 0%, #7d7e7d 100%);
    background: -webkit-linear-gradient(left,  #0e0e0e 0%,#7d7e7d 100%);
    background: linear-gradient(to right,  #0e0e0e 0%,#7d7e7d 100%);
    filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#0e0e0e', endColorstr='#7d7e7d',GradientType=1 );
    /* end edit panayiotis */
	color: #f1f1f1;
	padding: 5px 10px;
	border-bottom: 1px solid rgba(255,255,255,0.3);
	cursor: pointer;
	clear: both;
}

.accordion-content {
	display: none;
	padding: 0 15px 20px;
	border-left: 1px solid #efefef;
	border-right: 1px solid #efefef;
}

.accordion-content.last {
	border-bottom: 1px solid #efefef;
}

.accordion-content.expanded {
	display: block;
}

.accordion-content h3 {
	padding-top: 10px;
}

.accordion-header p,
.accordion-content p {
	margin: 0;
}

.accordion-header .fa {
	display: none;
}

.accordion-header .fa.shown {
	display: inline-block;
}

.history-photo {
    max-width: 100%;
    height: auto;
    display: block;
    margin-bottom: 10px;
}

/*datepicker styles*/
select.ui-datepicker-month,
select.ui-datepicker-year {
	padding: 0;
    border: 1px solid #ccc;
    background-color: #fff;
    display: inline-block;
}

a.ui-datepicker-prev, 
a.ui-datepicker-next, 
a.ui-state-default {
	border-bottom: 0 none;
	text-decoration: none;
	cursor: pointer;
	-webkit-transition: none;
	transition: none;
}

a.ui-datepicker-prev:hover, 
a.ui-datepicker-next:hover, 
a.ui-state-default:hover {
	border-bottom: 1px solid #cccccc;
}

@media(max-width: 767px) {
	.tertiary-column {
		display: none;
	}
}

@media(max-width: 530px) {
	header {
		display: block;
		text-align: center;
	}
	.doctor {
		justify-content: center;
	}
	.pagination {
		display: block;
		text-align: center;
		margin-top: 15px;
	}
	.pagination p {
		margin-top: 5px;
		margin-bottom: 5px;
	}
	.secondary-column {
		display: none;
	}
	.patient-form {
		width: 100%;
	}
}