/* Joomla 3.x */

input, select {
	width: auto !important;
}
.controls input,
.controls select:not(.time), /* exclude time select within calendar */
.controls textarea {
	max-width: calc(100% - 14px) !important;
}
.full-width .controls input,
.controls .select2-container {
	max-width: 100%;
}
input.invalid {
	/* to avoid different sizes between the input */
	font-weight: normal;
}
#adminForm input[type="checkbox"] {
	margin-top: 0;
	margin-bottom: 0;
}

table.adminform label {
	display: inline;
	margin:0 0 0 5px;
}
table.adminform td {
	padding: 6px 0;
}
table.adminform div.input-append {
	display: inline;
}

table.table-striped i.empty,
table.striped i.empty {
	margin-right: 16px;
}

.btn-toolbar .field-calendar {
	font-size: initial;
}
.btn-toolbar .input-append .field-calendar,
.btn-toolbar .input-prepend .field-calendar {
	display: inline-block;
}

.btn-toolbar .vap-setfont {
	font-size: 13px;
}

.btn.active {
	background-color: #e6e6e6;
	text-decoration: none;
	text-shadow: none;
}
span.btn:hover {
	cursor: default;
	background-color: #f3f3f3;
}

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

.control-group .controls .switch-ios {
	margin-bottom: -5px;
}

.form-vertical .control-group.separator.custom-field {
	margin: 20px 0;
}

/* bootstrap modal */
.modal-header .close {
	/* fix vertical separator */
	line-height: 46px !important;
}
.modal-body {
	overflow-y: auto !important;
}
.has-iframe .modal-body {
	/*
		Turn off scroll when the modal body contains an iframe.
		The has-iframe class is appended by VikAppointments while
		trying to open a modal with a given URL.
	*/
	overflow-y: hidden !important;
}

.modal-body.jviewport-height40 {
	height: 40vh !important;
}
.modal-body.jviewport-height60 {
	height: 60vh !important;
}
.modal-body.jviewport-height80 {
	height: 80vh !important;
}

/* chosen */

.chzn-container.active .chzn-single {
	border: 2px solid #2384D3;
}

/* popover */

.form-horizontal legend .vap-quest-popover {
	vertical-align: middle;
	transform: none;
	line-height: 25px;
}

/* menu */

#vap-menu-toggle-phone {
	margin-top: -10px;
	margin-bottom: 10px;
	display: block;
}

@media screen and (max-width: 779px) {
	#system-message-container {
		padding: 0 !important;
	}
}

/* working days */
#jmodal-wdimport .import-modal-inner {
	padding: 10px;
}
#wd-import-tip {
	margin-top: 10px;
}
.worktime-import-preview .wd-date input[type="checkbox"] {
	margin-top:  -1px;
	vertical-align: middle;
}

/* backup management */
#backup-config-panel .alert {
	margin: 15px 0 0 0;
}

/* configuration customizer */
#customizer-toolbar .btn-toolbar {
	display: inline-block;
	width: 100%;
	margin: 0 0 10px 0;
}
.config-panel-tabview-inner .config-fieldset.full-width .input-prepend,
.config-panel-tabview-inner .config-fieldset.full-width .input-append {
	display: flex;
}
.config-panel-tabview-inner .config-fieldset.full-width .input-prepend input,
.config-panel-tabview-inner .config-fieldset.full-width .input-append input {
	flex: 1;
	width: 0 !important;
	min-width: 0;
}
@media screen and (max-width: 1440px) {
	.config-panel-tabview-inner .config-fieldset.full-width .control-group .control-label,
	.config-panel-tabview-inner .config-fieldset.full-width .control-group .controls {
		display: block;
		width: 100%;
		max-width: 100%;
	}
}