/*-
 * ###license-information-start###
 * gICS - a Generic Informed Consent Service
 * __
 * Copyright (C) 2014 - 2026 Trusted Third Party of the University Medicine Greifswald -
 * 							kontakt-ths@uni-greifswald.de
 * 
 * 							concept and implementation
 * 							l.geidel, c.hampf
 * 							web client
 * 							a.blumentritt, m.bialke, f.m.moser
 * 							fhir-api
 * 							m.bialke
 * 							docker
 * 							r. schuldt
 * 
 * 							The gICS was developed by the University Medicine Greifswald and published
 * 							in 2014 as part of the research project "MOSAIC" (funded by the DFG HO 1937/2-1).
 * 
 * 							Selected functionalities of gICS were developed as
 * 							part of the following research projects:
 * 							- MAGIC (funded by the DFG HO 1937/5-1)
 * 							- MIRACUM (funded by the German Federal Ministry of Education and Research 01ZZ1801M)
 * 							- NUM-CODEX (funded by the German Federal Ministry of Education and Research 01KX2021)
 * 
 * 							please cite our publications
 * 							https://doi.org/10.1186/s12911-022-02081-4
 * 							https://doi.org/10.1186/s12967-020-02457-y
 * 							http://dx.doi.org/10.3414/ME14-01-0133
 * 							http://dx.doi.org/10.1186/s12967-015-0545-6
 * 							http://dx.doi.org/10.3205/17gmds146
 * __
 * This program is free software: you can redistribute it and/or modify
 * it under the terms of the GNU Affero General Public License as published by
 * the Free Software Foundation, either version 3 of the License, or
 * (at your option) any later version.
 * 
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 * 
 * You should have received a copy of the GNU Affero General Public License
 * along with this program.  If not, see <http://www.gnu.org/licenses/>.
 * ###license-information-end###
 */

/* author: Arne Blumentritt  */

:root {
	--border-section-color: #c1d5df;
}

/* Dialogbox */
.details-dialog > .ui-grid > .ui-grid-row > .ui-panelgrid-cell:first-child {
	margin: 0;
}

.details-dialog > .ui-dialog-titlebar {
	border-bottom: 1px solid var(--border-section-color);
	height: 30px;
}

.details-dialog > .ui-dialog-content {
	height: calc(100% - 70px) !important;
	overflow: hidden;
	padding: 0;
	width: 100% !important;
}

.details-dialog > .ui-dialog-titlebar > .ui-dialog-titlebar-icon {
	top: -35px !important;
}

.details-dialog > .ui-dialog-footer {
	border-top: 1px solid var(--border-section-color);
	height: 60px;
	padding: 4px 15px;
	box-sizing: border-box;
	display: none;
	position: absolute;
	bottom: 0;
	width: inherit;
}

.details-dialog > .ui-dialog-footer > div {
	height: 100%;
}

.details-dialog > .ui-dialog-footer .ui-card {
	border-style: solid;
	border-width: 2px;
	border-radius: 3px;
	box-shadow: none;
	box-sizing: border-box;
	color: var(--text-color) !important;
}

.details-dialog > .ui-dialog-footer .ui-card-body {
	padding: 3px 8px;
}

.details-dialog > .ui-dialog-footer .ui-card-title {
	font-size: 1em;
	margin: 0;
}

.details-dialog > .ui-dialog-footer .ui-card-content {
	padding: 0;
}

.details-dialog.footer-show > .ui-dialog-content {
	height: calc(100% - 120px) !important;
}

.details-dialog.footer-show > .ui-dialog-footer {
	display: block;
}

.pdf-tabs {
	height: calc(100% - 28px);
	top: -56px;
}

.pdf-tabs .ui-tabs-nav {
	margin-right: -8px;
	float: right;
}

.pdf-tabs .ui-tabs-panels, .pdf-tabs .ui-tabs-panel {
	height: 100%;
}

.pdf-tabs.ui-tabs > .ui-tabs-nav .ui-tabs-header.ui-state-active {
	border-bottom-width: 2px !important;
	margin-bottom: -2px !important;
}

.pdf-preview {
	width: 100%;
	height: 100%;
	min-height: 400px;
	margin-top: 14px;
}

img.fit {
	max-width: 100%;
	max-height: 100%;
	height: auto;
}

.modules-table > div > table > tbody > tr > td {
	padding: 8px 10px;
}

.module-key {
	color: #888;
	font-size: 0.8em;
	margin-top: 1px;
	display: block;
	font-style: normal;
}

.consentLogo {
	max-width: 70%;
}

.print .ui-state-disabled {
	opacity: 1 !important;
}

.signaturePrint {
	max-height: 99%;
	max-width: 99%;
}

.module {
	padding: 10px 12px;
	margin-top: 20px;
	border-width: 2px;
	border-radius: 2px;
	border-color: var(--text-color);
	box-shadow: 0 0 2px 1px rgba(95, 95, 95, 0.3);
}

.module-mandatory {
	border-style: solid;
}

.module-optional {
	border-style: dashed;
}

.ui-datatable.filter-relative .ui-column-customfilter {
	position: relative;
}

.ui-datepicker.filter-hint .ui-datepicker-buttonbar::before {
	opacity: 0.65;
	font-size: 0.9em;
	margin: 0 19px;
	top: -5px;
	position: relative;
}

.ui-datepicker.filter-hint.de .ui-datepicker-buttonbar::before {
	content: "Start- und Zieldatum für Filter wählen.";
}

.ui-datepicker.filter-hint.en .ui-datepicker-buttonbar::before {
	content: "Select start and end date for filter.";
}

@media print {
	.templateSelector, .formNavigation, .scan {
		display: none;
	}

	.consentQRCode {
		display: block !important;
		height: 120px;
	}

	.consentQRCode {
		float: right;
	}

	.moduleQRCode {
		float: right;
		height: 55px;
		display: block !important;
		margin: 15px 0;
	}
	
	.module {
		border-width: 0;
		box-shadow: none;
	}
}
