:root {
	--primaryColor: #FF662E;
	--secondaryColor: #212121;
	--defaultFontSize: 14px;
	--borderColor: #e0e0e0;
	--boxShadow: 0 0px 3px 0 rgba(0, 0, 0, 0.12), 0 0px 2px 0 rgba(0, 0, 0, 0.24);
	--clinicColor: #019a64;
}

h1:first-child { margin-top: 0; }
a { color: var(--primaryColor); text-decoration: none; }
a:hover { text-decoration: underline; }

.js-no-push .js-enable-notification { display: none; }

html, body { padding: 0; margin: 0; font-family: 'Open Sans', sans-serif; }
body { background: #f5f5f5; font-size: var(--defaultFontSize); position: relative; }
header { background: var(--secondaryColor); text-align: center; position: relative; }
header h1 { margin: 0; line-height: 80px; }
header h1 a { color: #fff; text-decoration: none; }
header h1 a img { vertical-align: top; }
header .user { color: #fff; position: absolute; top: 22px; right: 20px; text-align: right; }
header .user p { display: block; margin: 0; }
@media (max-width: 1023px) {
	header h1 { font-size: 140%; line-height: 40px; padding: 10px 0; }
	header img { max-height: 40px; }

	header .user { display: none; }
}

nav { background: #fff; }
nav .menuTrigger { display: none; }
nav #menuToggle { display: none; }
nav h3 { display: none; }
nav ul { list-style: none; padding: 0; margin: 0; display: flex; justify-content: center; }
nav ul li { font-size: 120%; padding: 10px; line-height: 30px; }
nav ul li a { text-decoration: none; color: var(--secondaryColor); }
nav ul li.current a { color: var(--primaryColor); }
nav ul li a:hover { color: var(--primaryColor); }
.touch nav ul li a:hover { color: #000; text-decoration: none; }
nav .user { display: none; }

@media (max-width: 1023px) {
	nav .menuTrigger { display: block; text-align: right; padding: 10px; }
	nav .navigation { display: none; background: #fff; position: absolute; top: 60px; bottom: 0; left: 0; right: 0; z-index: 10; }
	nav #menuToggle:checked + .navigation { display: block; }
	nav ul { flex-flow: column; justify-content: flex-start; }
	nav ul li { border-bottom: 1px solid var(--borderColor); }
	nav ul li:last-child { border-bottom: 0; }
	nav .user { display: block; padding: 10px; margin-top: 20px; }
	nav .user a { font-size: 120%; line-height: 30px; }
}

#system-message > dd > ul { color: #000; text-indent: 0; }
#system-message > .message > ul { background: #ffb296; border-color: var(--primaryColor); }
#system-message > .error > ul, #system-message > .warning > ul, #system-message > .notice > ul { color: #000; }

.mainContainer { min-height: calc(100vh - 206px); /* 80px header, 50px nav, 56px footer */ }
@media (max-width: 1023px) {
	.mainContainer { min-height: calc(100vh - 180px); }
}
main { position: relative; padding: 20px; max-width: 1200px; margin: 20px auto; background: #fff; border: 1px solid rgba(0,0,0,0.15); box-sizing: border-box; }
@media (max-width: 1199px) {
	main { border-left: 0; border-right: 0; }
}
main h1 { margin: 0; }
main h2 { margin-bottom: 0; }

#patient { position: absolute; top: 0; right: 0; padding: 20px; background: #ccc; }

table.list td.statusColumn { vertical-align: middle; }
.status { font-size: 0; display: block; width: 8px; height: 8px; border-radius: 10px; background: transparent; }
.status.active { background: var(--clinicColor); }

.content-2-1 { display: flex; }
.content-2-1 > div:first-child { flex: 1 0 66%; }
.content-2-1 > div:last-child { flex: 0 1 33%; max-width: 250px; box-sizing: border-box; border-left: 1px solid var(--borderColor); padding-left: 20px; }
@media (max-width: 768px) {
	.content-2-1 { flex-wrap: wrap; }
	.content-2-1 > div:first-child, .content-2-1 > div:last-child { flex-basis: 100%; max-width: 100%; border-left: 0; padding-left: 0; }
}

footer { background: #303030; padding: 10px 0; color: #fff; }
footer .moduletable h3 { display: none; }
footer .moduletable p { margin: 0; }

.item-page .icons { display: none; }
.popover { display: none !important; }


label .description { display: none; }
.control-group { display: flex; padding: 5px 0; flex-wrap: wrap; }
.control-group .control-label { width: 200px; }
.control-group .controls { flex-grow: 1; }
input[type=text], input[type=tel], input[type=email], input[type=password] { width: 200px; padding: 5px; }
select { width: 200px; padding: 5px; }
textarea { width: 90%; min-height: 200px; }
.calendar-container table { max-width: 100%; } /* Joomla iOS Fix */

fieldset { border: 0; padding: 0; }

form.dataForm { display: flex; flex-wrap: wrap; }
form.dataForm fieldset { margin: 20px 0; flex-basis: 50%; }
@media (max-width: 800px) {
	form.dataForm fieldset { flex-basis: 100%; }
}
form.dataForm fieldset legend { padding: 0; color: var(--primaryColor); font-size: 120%; }
form.dataForm fieldset.full { flex-basis: 100%; font-size: 0; }
form.dataForm fieldset.full legend { font-size: calc(var(--defaultFontSize) * 1.2); }
form.dataForm fieldset.full .control-group { display: inline-flex; font-size: var(--defaultFontSize); }
@media (min-width: 1000px) {
	form.dataForm fieldset.full .control-group { width: 49%; }
	form.dataForm fieldset.full .control-group:nth-child(2n) { padding-right: 2%; }
}

form.patientForm .control-group { padding: 10px 0; border-bottom: 1px solid var(--borderColor); display: flex; justify-content: space-between; flex-wrap: wrap; }
form.patientForm .control-group:nth-of-type(1) { border-top: 1px solid var(--borderColor); }
form.patientForm .control-label { width: auto; flex: 1 0 400px; font-weight: bold; margin-bottom: 5px; }
form.patientForm .control-label label .description { display: block; font-weight: normal; margin-top: 0; }
form.patientForm .spacer, .list .spacer { display: inline-block; margin-top: 40px; font-weight: bold; }
form.patientForm .controls { flex: 0 1 auto; }
form.patientForm .controls textarea { min-width: 400px; }
form.patientForm .controls .radio { display: flex; flex-flow: row; }

form.patientFormFullText .control-group, fieldset.patientFormFullText .control-group { display: block; }
form.patientFormFullText .controls .radio, fieldset.patientFormFullText .controls .radio { flex-flow: column; }

.formRow { display: flex; justify-content: space-between; align-items: center; }
form.patientForm .formRow .control-group { border-bottom: 0; }

form .imageText, form .imageText img { vertical-align: top; }
form .imageText img { max-height: 200px; }

.demtect .patientFormFullText .control-group, form.patientForm.demtect .control-group:nth-of-type(1) { border-top: 0; border-bottom: 0; }
.demtect fieldset { margin: 20px 0; }
.demtect legend { font-weight: bold; font-size: 140%; }
.moca .fieldset { display: flex; flex-wrap: wrap; }
.moca .fieldset .control-group { flex-basis: 30%; padding-right: 20px; box-sizing: border-box; border: 0 !important; }
.moca .evaluation .control-group { border: 0 !important; margin-right: 20px; }
.moca .evaluation img { display: block; }


.login fieldset { margin: 20px 0; border: 0; padding: 0; }

.btn-toolbar { width: 100%; display: flex; }
.btn-group { margin-right: 20px; }
.btn { display: inline-block; font-size: var(--defaultFontSize); background: #fff; border: 1px solid #e6e6e6; padding: 8px; font-weight: bold; margin: 10px 0; }
a.btn { text-decoration: none; }
.btn.btn-secondary { color: #000; }
.btn.btn-secondary:hover { color: var(--primaryColor); }
.btn:hover { box-shadow: var(--boxShadow); }
.btn .material-icons { vertical-align: middle; }
input[type="submit"], .btn-primary { background: var(--primaryColor); color: #fff; border: 0; padding: 8px; font-weight: bold; }
.field-calendar .btn-secondary { border: 0; font-size:  20px; padding: 0; margin: 0; color: #000; }
.field-calendar .btn-secondary::before { font-family: "Material Icons"; content: "insert_invitation"; position: relative; top: 4px; }
.js-calendar .btn { margin-right: 10px; }

table { border-spacing: 0; }
table.list { width: 100%; max-width: 100%; background-color: #fff; box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.12), 0 1px 2px 0 rgba(0, 0, 0, 0.24); }
table.list tr td, table tr th { vertical-align: top; border-bottom: 1px solid var(--borderColor); text-align: left; padding: 16px; transition: all 0.3s ease; }
table.list tr th { color: var(--secondaryColor); }
table.list tr:last-child td { border-bottom: 0; }
table.list tr:hover td { background-color: #e0e0e0; }
table.list td.actions { width: 150px; text-align: right; }
table.list td .btn { margin: 0; }
table.list tr.headline td { border-bottom: 0; padding-top: 40px; }
table.list tr.hasAdditionalRow td { border-bottom: 0; }
table.list tr td.subform { padding-left: 30px; }

table.list tr.details {}
table.list tr.details.hidden { display: none; }
table.list tr.detailsVisible td { border-bottom: 0; }
table.list tr a.showDetails { vertical-align: top; }
table.list tr .showDetails span.visibility_off { display: none; }
table.list tr.detailsVisible .showDetails span { display: none; }
table.list tr.detailsVisible .showDetails span.visibility_off { display: block; }

table.list.medication td { border-right: 1px solid var(--borderColor); }
table.list.medication td:last-child { border-right: 0; }
table.list tr.medicationPlanDescriptionRow td:first-child { border-bottom: 0; }
table.list tr.medicationPlanDescriptionRow + tr td { padding-bottom: 25px; }

@media screen and (max-width: 800px) {
	table.responsiveTable { box-shadow: none; }
	table.responsiveTable > thead { display: none; }
	table.responsiveTable > tbody > tr { padding-bottom: 20px; display: block; border-top: 1px solid var(--borderColor); }
	table.responsiveTable > tbody > tr > td { display: block; border: 1px solid var(--borderColor); border-top: 0; }
	table.responsiveTable > tbody > tr:last-child > td { border-bottom: 1px solid var(--borderColor); }
	table.responsiveTable > tbody > tr > td.actions { width: auto; }
	table.responsiveTable > tbody > tr > td:before { content: attr(data-label); padding-right: 5px; font-weight: bold; }
	table.responsiveTable > tbody > tr > td.actions:before { content: ''; }
}


.inlineTables table.keyList { max-width: 600px; display: inline-block; }
@media (min-width: 1000px) {
	.inlineTables table.keyList { width: 400px; margin-right: 40px; }
}
table.keyList { vertical-align: top; }
table.keyList tr td:first-child { width: 200px; padding: 8px 10px; border-bottom: 1px solid var(--borderColor); }
table.keyList tr td:nth-child(2) { padding: 8px 10px; border-bottom: 1px solid var(--borderColor); }
table.keyList tr.spacer td { border-bottom: 0; }
table.keyList.inlineTable tr td { border-bottom: 0; }

.searchListResult { display: none; position: absolute; background: #fff; border: 1px solid var(--borderColor); min-width: 200px; box-sizing: border-box; }
.searchListResult .searchListResultItem { margin-bottom: 5px; cursor: pointer; padding: 5px; }
.searchListResult .searchListResultItem:last-child { margin-bottom: 0; }
.searchListResult .searchListResultItem:hover { background: #ccc; }
.searchListResult p { margin: 0; }
.searchListResult .subline { font-size: 80%; }
.searchListResult .searchListNoResult { padding: 5px; }

.clinicTitle { max-height: 40px; }
.clinicTitle13 { position: relative; top: 4px; left: 5px; }

.icon-patient::before, .icon-medical-data::before, .icon-contacts::before, .icon-diagnosis::before, .icon-medicationplan::before, .icon-notes::before, .icon-documents::before, .icon-meetings::before, .icon-medicine::before, .icon-clinic::before, .icon-forms::before
{ content: ''; background-repeat: no-repeat; background-size: 60px auto; display: inline-block; width: 60px; height: 60px; vertical-align: middle; }
.icon-clinic::before { background-image: url(../images/icons/logo.png); }
.client12 .icon-clinic::before { background-image: url(../images/clients/logo12.png); }
.client13 .icon-clinic::before { background-image: url(../images/clients/logo13.png); width: 80px; }
.client15 .icon-clinic::before { background-image: url(../images/clients/logo15.png); background-size: contain; width: 130px; }
.icon-patient::before { background-image: url(../images/icons/patient.png); }
.icon-medical-data::before { background-image: url(../images/icons/medizinische_basisdaten.png); }
.icon-contacts::before { background-image: url(../images/icons/kontakte.png); }
.icon-diagnosis::before { background-image: url(../images/icons/mikroskop.png); }
.icon-medicationplan::before { background-image: url(../images/icons/medikationsplan.png); }
.icon-notes::before { background-image: url(../images/icons/notizen.png); }
.icon-documents::before { background-image: url(../images/icons/notizblock.png); }
.icon-meetings::before  { background-image: url(../images/icons/videomeeting.png); }
.icon-medicine::before { background-image: url(../images/icons/medikamente.png); }
.icon-forms::before { background-image: url(../images/icons/formulare.png); }

.subform-repeatable > .btn-toolbar {  }
.subform-repeatable-group { left: 0 !important; }
.btn.group-add::before { font-family: 'Material Icons'; content: 'add'; }
.btn.group-remove::before { font-family: 'Material Icons'; content: 'remove'; }
.btn.group-move::before { font-family: 'Material Icons'; content: 'import_export'; }
.subform-repeatable-group .btn.group-add { display: none; }

.combobox { position: relative; }
.combobox .dropdown-menu { display: none; position: absolute; z-index: 10; }
.combobox .open .dropdown-menu { display: block; margin: 0; padding: 0; left: 0 !important; top: 30px !important; list-style: none; background: #fff; border: 1px solid var(--borderColor); min-width: 200px; box-sizing: border-box; overflow-y: auto !important; }
.combobox ul li { margin-bottom: 5px; cursor: pointer; padding: 5px; }
.combobox .btn.dropdown-toggle { cursor: pointer; position: absolute; left: 175px; top: 8px; margin: 0; border: none;    background: transparent; padding: 0; }
.combobox .btn.dropdown-toggle::before { font-family: 'Material Icons'; content: 'keyboard_arrow_down'; }
.combobox .open .btn.dropdown-toggle::before { content: 'keyboard_arrow_up'; }

.calendar { display: flex; flex-wrap: wrap; }
.calendar .day, .calendar .hour { flex-basis: 33%; box-sizing: border-box; padding: 10px; border-right: 1px solid var(--borderColor); }
.calendar .day:nth-of-type(3n), .calendar .hour:nth-of-type(3n) { border-right: 0; }
.calendar .day { margin: 0; }
.calendar .hour { border-bottom: 1px solid var(--borderColor); }
.calendar .hour .hourLabel { margin: 0; }

.calendar .meeting, .followUpCalendar .meeting { position: relative; border: 1px solid var(--borderColor); border-radius: 5px; padding: 5px; margin: 5px 0; background: rgba(255, 102, 46, 0.1); }
.calendar .meeting .edit, .followUpCalendar .edit { position: absolute; top: 5px; right: 5px; }
.calendar .meeting h4, .followUpCalendar .meeting h4 { margin: 0; }
.calendar .meeting .meta, .followUpCalendar .meeting .meta { margin: 0; }
.calendar .meeting p, .followUpCalendar .meeting p { margin: 5px 0; }

.followUpCalendar { display: flex; flex-wrap: wrap; }
.followUpCalendar h2 { flex-basis: 100%; }
.followUpCalendar .meeting { flex-basis: 360px; max-width: 100%; margin: 10px 20px 10px 0; }
.followUpCalendar .meeting:nth-of-type(3n) { margin-right: 0; }

@media (max-width: 1023px) {
	.calendar .day, .calendar .hour { flex-basis: 100%; border-right: 0; }
	.calendar .day1, .calendar .day2 { display: none; }
}

.patientNavigation { box-shadow: var(--boxShadow); overflow: hidden; }
.patientNavigation ul { margin: 0; padding: 0; max-width: 1200px; margin: auto; }
.patientNavigation ul { flex-flow: row; justify-content: space-between; }
.patientNavigation ul li { border-bottom: 0; white-space: nowrap; }
.patientNavigation.fixed { position: fixed; top: 0; left: 0; right: 0; box-shadow: 0 3px 1px -2px rgba(0,0,0,.2), 0 2px 2px 0 rgba(0,0,0,.14), 0 1px 5px 0 rgba(0,0,0,.12); }
nav.patientNavigation ul li a.active { color: var(--primaryColor); }

nav #patientMenuToggle { display: none; }
@media (max-width: 1023px) {
	nav #patientMenuToggle:checked + .navigation { display: block; }
	.patientNavigation ul { flex-flow: column; }
	.patientNavigation .navigation { position: static; }
}

.scheduleEntry { margin-bottom: 5px; }
.scheduleEntry input, .scheduleEntry select { margin: 0; vertical-align: top; }
.scheduleHeading span { display: inline-block; padding-bottom: 10px; }
.scheduleEntry .scheduleTime, .scheduleHeading .scheduleTime { width: 100px; }
.scheduleEntry .scheduleAmount, .scheduleHeading .scheduleAmount { width: 100px; }
.scheduleEntry .scheduleUnit, .scheduleHeading .scheduleUnit { width: 100px; }
.scheduleEntry .scheduleRemove { position: relative; top: -5px; margin: 0; }



.lightbox { display: none; }
.lightbox.open { display: block; }
.lightbox .shim { content: ''; position: absolute; top: 0; bottom: 0; left: 0; right: 0; background: rgba(0,0,0,0.3); }
.lightbox .content { position: fixed; top: 50%; left: 50%; transform: translate(-50%, -50%); background: #fff; padding: 20px; }

.tabs {}
.tabs ul.tabNavigation { display: flex; list-style: none; padding: 0; margin: 0; }
.tabs ul.tabNavigation li { padding: 10px; border-right: 1px solid var(--borderColor); border-bottom: 1px solid var(--borderColor); }
.tabs ul.tabNavigation li:last-child { border-right: none; }
.tabs ul.tabNavigation li.active { border-bottom: none; font-weight: bold; }
.tabs ul.tabNavigation li.active a, .tabs ul li.active a:hover { color: #000; text-decoration: none; }
.tabs .tab { display: none; padding: 10px 0; }
.tabs .tab.active { display: block; }

.editUsers input { margin-bottom: 10px; }
.editUserlist, .formUserlist, .editUsers .results { margin: 0; padding-left: 20px; }
.editUserlist li a, .formUserlist li a, .editUsers .results li a { display: inline-block; margin-left: 5px; }

