/* Joomla 4.x */

.icon-vikappointments:before {
	/* fa-utensils icon */
	font-family: "Font Awesome 5 Free", FontAwesome !important;
	font-weight: 900;
	content: "\f274";
	background: none !important;
}

#vap-main-menu .version-box i.upd-avail {
	margin-left: 4px;
}

/* miscellaneous */
.popover, .tooltip, .joomla-modal {
	z-index: 9999;
}
.options-form legend .vap-quest-popover {
	vertical-align: middle;
	transform: none;
	line-height: 25px;
	margin-left: 6px;
}

.pull-left {
	float: left;
}
.pull-right {
	float: right;
}

img {
	max-width: 100%;
}

a[target=_blank]:before {
	/* remove that orrible icon for external links */
	content: none;
}
a {
	text-decoration: none;
}
a:focus {
	outline: none;
}

input:read-only {
	background: #e8e8e8 !important;
	border: 1px solid #e8e8e8 !important;
	opacity: 1 !important;
}
input[type="file"] {
	line-height: 18px;
}
body.com_vikappointments textarea {
	width: 100% !important;
}
.control-group.ip-address {
	align-items: center;
}
.ip-address input,
.form-with-select input,
.form-with-select select,
.form-with-select > div {
	width: auto !important;
	display: inline-block;
	vertical-align: top;
}
#vap-smsapi-params-table td > input,
#vap-smsapi-params-table td > .select2-container {
	width: 100% !important;
}

.alert p:last-of-type {
	margin-bottom: 0;
}

.vik-confirm-buttons > a {
	font-size: 16px !important;
}
.vap-archive-main .vap-archive-filestree .root .monthslist {
	font-size: 14px;
}

pre {
	word-break: break-all;
	word-wrap: break-word;
	white-space: pre-wrap;
}

.contentpane.component.com_vikappointments joomla-tab-element {
	padding: 20px 10px !important;
}
joomla-tab > div[role=tablist] button[role=tab], joomla-tab-element:focus {
	outline: none;
}

#invoice-number-field {
	align-items: center;
}
#invoice-number-field > * {
	margin: 0;
}

/* badge */
body.com_vikappointments .badge-success {
	background-color: #457d54 !important;
}

body.com_vikappointments .badge-info {
	background-color: #2a69b8 !important;
}

body.com_vikappointments .badge-warning {
	background-color: #ffb514 !important;
	color: #000 !important;
}

body.com_vikappointments .badge-danger {
	background-color: #c62928 !important;
}

body.com_vikappointments .badge-important {
	background-color: #c52827 !important;
}

/* modal */
body.com_vikappointments #content .modal-dialog {
	width: 80vw;
	max-width: none;
}
body.com_vikappointments #content .modal-body {
	height: calc(100vh - 200px);
	overflow-y: scroll;
}
body.com_vikappointments .modal .btn {
	padding: .6rem 1rem;
	margin-right: initial;
	line-height: inherit;
}
body.com_vikappointments.contentpane #adminForm {
	/*overflow-x: hidden;*/
}

#jmodal-mediamanager .modal-body,
#jmodal-respinfo .modal-body {
	padding: 0;
}

.order-container {
	padding: 0 !important;
	margin-left: -10px !important;
	margin-right: -10px !important;
}
.order-container h3 {
	margin-top: 5px;
}

.vap-media-inspector .media-info-box .media-details {
	width: calc(60% - 4px);
	padding: 0 6px;
}
.vap-media-inspector .media-info-box .media-details > * {
	font-size: smaller;
}

/* buttons */
body.com_vikappointments span.btn-primary,
body.com_vikappointments span.btn-primary:hover {
	color: var(--template-text-light);
	background-color: var(--template-bg-dark-60);
	border-color: var(--template-bg-dark-60);
	cursor: default;
}
body.com_vikappointments .modal .btn-primary:not(:disabled):not(.disabled).active {
	color: var(--template-text-light);
}

/* filters */
body.com_vikappointments #content .btn-toolbar,
body.com_vikappointments.contentpane .btn-toolbar {
	width: 100%;
	margin-bottom: 10px;
	height: auto !important;
	display: inline-block;
}
body.com_vikappointments #content .btn-toolbar > *,
body.com_vikappointments.contentpane .btn-toolbar > * {
	margin: 5px 0;
}
body.com_vikappointments #content .btn-toolbar > * + *,
body.com_vikappointments.contentpane .btn-toolbar > * + * {
	-webkit-margin-start: 8px;
	margin-inline-start: 8px;
}

body.com_vikappointments #content .js-stools-container-filters-visible,
body.com_vikappointments.contentpane .js-stools-container-filters-visible {
	display: grid;
	grid-gap: 8px;
	grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
}
body.com_vikappointments #content .js-stools-container-filters-visible {
	padding: 10px;
	background-color: #fff;
}
body.com_vikappointments #content .js-stools-container-filters-visible .btn-group,
body.com_vikappointments.contentpane .js-stools-container-filters-visible .btn-group {
	margin: 0;
}

body.com_vikappointments #content button[onclick^="vapToggleSearchToolsButton"]:not(.btn-primary),
body.com_vikappointments.contentpane button[onclick^="vapToggleSearchToolsButton"]:not(.btn-primary) {
	/*color: var(--atum-text-light);*/
	color: var(--template-text-light);
	background-color: var(--template-bg-dark-60);
	border-color: var(--template-bg-dark-60);
	z-index: inherit;
}
body.com_vikappointments #content button[onclick^="vapToggleSearchToolsButton"]:not(.btn-primary):hover,
body.com_vikappointments.contentpane button[onclick^="vapToggleSearchToolsButton"]:not(.btn-primary):hover {
	/*background-color: var(--atum-bg-dark-70);*/
	background-color: var(--template-bg-dark-70);
	/*border-color: var(--atum-bg-dark-90);*/
	border-color: var(--template-bg-dark-90);
}
body.com_vikappointments #content button[onclick^="clearFilter"],
body.com_vikappointments.contentpane button[onclick^="clearFilter"] {
	/*background-color: var(--atum-bg-dark);*/
	background-color: var(--template-bg-dark);
	border: 0;
}

body.com_vikappointments #content .btn-toolbar .field-calendar .input-group input,
body.com_vikappointments.contentpane .btn-toolbar .field-calendar .input-group input {
	width: 150px;
}

body.com_vikappointments #content .btn-group .btn {
	align-self: auto;
}

/* tables */
body.com_vikappointments #content table tbody a {
	text-decoration: none !important;
}
body.com_vikappointments #content table td.center,
body.com_vikappointments #content table th.center {
	text-align: center;
}
body.com_vikappointments #content table td.left,
body.com_vikappointments #content table th.left {
	text-align: left;
}
body.com_vikappointments #content table td.right,
body.com_vikappointments #content table th.right {
	text-align: right;
}

/* form fieldset */
body.com_vikappointments .card + .card {
	margin-top: 15px;
}
body.com_vikappointments fieldset.options-form:last-of-type {
	/*margin-bottom: 0;*/
}

/* form controls */
body.com_vikappointments #content .options-form > legend {
	background: transparent;
}
/*body.com_vikappointments #content .options-form .control-group {
	max-width: 1000px;
}*/
@media screen and (min-width: 1381px) {
	body.com_vikappointments .options-form .control-group .control-label {
		max-width: 240px;
	}
	body.com_vikappointments .options-form .control-group .control-label + .controls {
		max-width: calc(100% - 240px);
	}
}

body.com_vikappointments .options-form .inline-fields {
	display: flex;
	justify-content: space-between;
	align-items: center;
	max-width: 100%;
}
body.com_vikappointments .options-form .inline-fields > *,
body.com_vikappointments .config-fieldset-body .inline-fields > * {
	flex: 1;
}
body.com_vikappointments .options-form .inline-fields > *:not(:first-child),
body.com_vikappointments .config-fieldset-body .inline-fields > *:not(:first-child) {
	margin-left: 10px;
}
body.com_vikappointments .options-form .inline-fields > .short-select,
body.com_vikappointments .config-fieldset-body .inline-fields > .short-select {
	flex: 0;
	flex-basis: 80px !important;
}
body.com_vikappointments .options-form .select2-container-multi input.select2-input.select2-default {
	width: 100% !important;
	max-width: 100% !important;
}

body.com_vikappointments .config-fieldset-body .inline-fields {
	display: flex;
	justify-content: space-between;
	align-items: center;
}
body.com_vikappointments .config-fieldset-body textarea {
	width: 100% !important;
}
body.com_vikappointments .config-panel-tabview .config-fieldset .control-group .control-label {
	margin-top: 0;
	max-width: 200px;
	width: 200px;
}
body.com_vikappointments .config-panel-tabview .config-fieldset .control-group .controls {
	width: calc(100% - 204px);
}

/**
 * do not display inline in case the fields are placed in a vertical column
 */
body.com_vikappointments .col-lg-5 .options-form .control-group .inline-fields,
body.com_vikappointments .col-lg-4 .options-form .control-group .inline-fields {
	display: block;
}
body.com_vikappointments .col-lg-5 .options-form .inline-fields > *:not(:first-child),
body.com_vikappointments .col-lg-4 .options-form .inline-fields > *:not(:first-child) {
	margin: 10px 0 0 0;
}

/* badges */
.badge-important {
	/* replicate danger style */
	background-color: #900;
	color: #fff;
	border: 1px solid #fff;
}

/* select2 - standard */
body.com_vikappointments .controls .select2-container:not(.short-select) {
	/* may be obtrusive in case of lines with multi-fields */
	width: 100% !important;
}
body.com_vikappointments .controls .select2-container.vap-mc-users-select {
	width: calc(100% - 64px) !important;
}
body.com_vikappointments .select2-container .select2-choice {
	height: 42px;
	line-height: 42px;
	text-decoration: none !important;
}
body.com_vikappointments .select2-container .select2-choice abbr {
	top: 16px;
}
body.com_vikappointments .select2-container .select2-choice .select2-arrow > * {
	margin-top: 8px;
}
/* select2 - multiple */
body.com_vikappointments #content .select2-container-multi .select2-choices {
	min-height: 45px !important;
	padding: 4px 0 0 0;
}
body.com_vikappointments #content .select2-container-multi .select2-choices .select2-search-choice {
	padding: 6px 18px 6px 5px;
	/*background-color: var(--atum-link-color);*/
	background-color: var(--template-link-color);
	/*color: var(--atum-text-light);*/
	color: var(--template-text-light);
	/*border-color: var(--atum-link-color);*/
	border-color: var(--template-link-color);
	box-shadow: none;
	background-image: none;
}
body.com_vikappointments #content .select2-container-multi .select2-choices .select2-search-choice .select2-search-choice-close {
	top: 7px;
	left: initial;
	right: 1px;
	/*color: var(--atum-text-light);*/
	color: var(--template-text-light);
	background-image: none;
	text-decoration: none;
}
body.com_vikappointments #content .select2-container-multi .select2-choices .select2-search-choice .select2-search-choice-close:hover {
	/*color: var(--atum-bg-dark-90);*/
	color: var(--template-bg-dark-90);
}
body.com_vikappointments #content .select2-container-multi .select2-choices .select2-search-choice .select2-search-choice-close:before {
	content: "×";
	display: block;
	font-size: 15px;
}
@media only screen and (-webkit-min-device-pixel-ratio: 1.5), only screen and (min-resolution: 2dppx)  {
    body.com_vikappointments #content .select2-container .select2-search input,
    /*body.com_vikappointments #content .select2-container .select2-search-choice-close,*/
    body.com_vikappointments #content .select2-container .select2-container .select2-choice abbr,
    body.com_vikappointments #content .select2-container .select2-container .select2-choice .select2-arrow b {
        background-image: none !important;
    }
    body.com_vikappointments #content .select2-search:after {
        background: url('../js/select2/select2x2.png') no-repeat 100% -21px !important;
        background-size: 60px 40px !important;
    }
}

img.vap-opt-flag {
	margin-right: 10px;
	padding: 0;
}

/* 
* Fix problem with Flex rules of Joomla 4. 
*/
#wrapper.wrapper > .container-main {
	flex: 1;
	min-width: 0;
}

/* Revenue widget Table Responsive */
.widget-revenue-table {
	display: block;
    width: 100%;
	max-width: 100%;
    overflow-x: auto;
}
.widget-revenue-table table {
	width: 100%;
}

/* intlTel */
.full-width .controls > .iti {
	width: 100%;
}

.iti input[type="text"],
.iti input[type="tel"] {
	box-sizing: border-box;
	width: inherit !important;
	max-width: inherit;
}

.iti__country-list {
	z-index: 10 !important;
}

/* iOS toggle */
.switch-ios input.ios-toggle-round + label {
	width: 52px;
	height: 32px;
}
.switch-ios input.ios-toggle-round + label:after {
	width: 26px;
	height: 26px;
}

/* inspector */
body.com_vikappointments .record-inspector-overlay {
	z-index: 9999;
}
body.com_vikappointments .record-inspector {
	padding: 0;
}
body.com_vikappointments .record-inspector .inspector-head {
	width: 100%;
}
body.com_vikappointments .record-inspector .inspector-head > h3 {
	line-height: 36px;
}
body.com_vikappointments .record-inspector .inspector-body {
	height: calc(100% - 150px);
}
body.com_vikappointments .record-inspector .inspector-footer {
	bottom: 0;
}

body.com_vikappointments .record-inspector .inspector-body .inspector-form input,
body.com_vikappointments .record-inspector .inspector-body .inspector-form select,
body.com_vikappointments .record-inspector .inspector-body .inspector-form textarea,
body.com_vikappointments .record-inspector .inspector-body .inspector-form .select2-container {
	width: 100% !important;
	margin: 0;
}
body.com_vikappointments .record-inspector .inspector-body .inspector-form .control-group { 
	margin: 0 0 8px 0;
	display: block;
}
body.com_vikappointments .record-inspector .inspector-body .inspector-form .controls {
	min-width: 0;
}
body.com_vikappointments .record-inspector .inspector-body .inspector-form .input-group input {
	/*width: auto !important;*/
	flex: 1;
}
body.com_vikappointments .record-inspector .inspector-body .inspector-form joomla-tab-element {
	padding: 10px 0;
}

body.com_vikappointments .vap-card .vap-card-summary .card-text .card-text-primary {
	margin-bottom: 0;
}
body.com_vikappointments .vap-card .vap-card-summary .card-text .card-text-secondary {
	margin-top: 5;
}
body.com_vikappointments .vap-card .vap-card-summary .card-text .card-text-secondary:empty {
	display: none;
}

.colorpicker {
	z-index: 9999 !important;
}

/* wizard */
.vap-wizard .wizard-step .wizard-form .control-group .control-label {
	width: 150px !important;
}
.vap-wizard .wizard-step .wizard-form .control-group .controls {
	max-width: calc(100% - 150px) !important;
}

.vap-wizard-steps {
	background: #fff;
	border-radius: 4px;
}
.vap-wizard-steps .wizard-step-outer {
	width: calc(100% / 3) !important;
}
.vap-wizard .wizard-step .wizard-step-footer-bar {
	width: 100% !important;
}
@media screen and (max-width: 1280px) {
	/* show only 2 blocks per row */
	.vap-wizard-steps .wizard-step-outer {
		width: calc(100% / 2) !important;
	}
}

/* invoices */
.vap-archive-fileblock {
	width: calc(100% / 4 - 24px);
}
@media screen and (max-width: 1280px) {
	.vap-archive-fileblock {
		width: calc(100% / 4 - 24px);
	}
}
@media screen and (max-width: 970px) {
	.vap-archive-fileblock {
		width: calc(100% / 3 - 24px);
	}
}
@media screen and (max-width: 860px) {
	.vap-archive-fileblock {
		width: calc(100% / 2 - 24px);
	}
}
@media screen and (max-width: 520px) {
	.vap-archive-fileblock {
		width: 100%;
	}
}

/* statistics */
.row#statistics-wrapper,
.row.dashboard-wrapper {
	display: block;
}
.dashboard-widgets-container.floating .dashboard-widget .widget-body .widget-floating-box {
	bottom: 20px;
}
.dashboard-widgets-container .dashboard-widget {
	max-width: 100%;
	background: #fff;
	min-width: 0;
}

/* weekly calendar */
#vapcaldays-bar .field-calendar .input-group button {
	border-radius: 0;
}

.cal-events-list {
	margin-top: 0;
}
.cal-events-list .event-row:first-child,
.cal-events-list .no-event {
	border-top: 0;
}
.cal-events-list .no-event {
	padding: 0;
	margin: 0;
}

.vapallcalhead {
	margin-top: 0;
	background: #fff;
}

/* old bootstrap responsiveness */
.hidden {
	display: none;
	visibility: hidden;
}
.visible-phone {
	display: none !important;
}
.visible-tablet {
	display: none !important;
}
.hidden-desktop {
	display: none !important;
}
.visible-desktop {
	display: inherit !important;
}

@media (min-width: 768px) and (max-width: 979px) {
	.hidden-desktop {
		display: inherit !important;
	}
	.visible-desktop {
		display: none !important ;
 	}
	.visible-tablet {
		display: inherit !important;
	}
	.hidden-tablet {
		display: none !important;
	}
}

@media (max-width: 767px) {
	.hidden-desktop {
		display: inherit !important;
	}
	.visible-desktop {
		display: none !important;
	}
	.visible-phone {
		display: inherit !important;
	}
	.hidden-phone {
		display: none !important;
	}
}

/* payment parameters */
.vikpayparamdiv > .alert {
	margin-top: 15px !important;
	margin-bottom: 15px !important;
}

.ccdata.cardnumber .controls {
	position: relative;
}
.ccdata.cardnumber img {
	position: absolute;
	top: 10px;
	right: 8px;
}

/* appointment options tables */
.order-items-table tr.app-option-child#order-app-opt-fieldset-0 td {
	border-bottom: 0;
}
.order-items-table tr.app-option-child:last-of-type td {
	border-bottom: 1px solid #dee2e6;
}

/* admin custom fields */

body.com_vikappointments .separator.custom-field {
	display: block;
	margin: 24px 0;
}
body.com_vikappointments .separator.custom-field strong {
	z-index: 99;
}
body.com_vikappointments .separator.custom-field hr {
	margin: 0;
}

/* form vertical layout */

body.com_vikappointments .form-vertical .control-group .control-label,
body.com_vikappointments .form-vertical .control-group .controls {
	max-width: 100% !important;
}

/* user notes grid */

body.com_vikappointments .user-notes-container .user-note-box {
	width: calc(50% - 15px);
}

/* custom mail modal */

#jmodal-custmail .modal-footer {
	justify-content: space-between !important;
	flex-direction: row-reverse !important;
}
#jmodal-custmail .modal-footer #custmail-cancel {
	margin-right: 8px;
}
button#custmail-handle {
	padding: 3px .5rem;
}