* {
	-webkit-box-sizing: border-box;
	-moz-box-sizing: border-box;
	box-sizing: border-box;
}

.clearfix {
	content: "";
	clear: both;
	display: table;
}

html {
	font-size: 16px;
}

body {
	font-size: 1rem;
	overflow-y: auto;
	overflow-x: hidden;
	background-color: #f5f5f5;
}

pre {
	display: block;
	color: #212529;
	border: 1px solid #b3b3b3;
	font-size: 0.7rem;
	padding: 5px 7px;
	border-radius: 4px;
	background-color: #e4e4e4;
	line-height: 0.85rem;
}

[v-cloak] {
	display: none;
}

.table-cell-control {
	border: 1px solid transparent;
	outline: 0;
	background-color: transparent;
	border-radius: .375rem;
	padding: 5px;
	width: 100%;
}

.table-cell-control:hover, .table-cell-control:focus {
	border: 1px solid #ccc;
	background-color: #fff;
}

td.changed,
.table-cell-control.changed {
	background-color: #99ff99;
}
.table-form-submit {
	position: fixed;
	bottom: 0;
	left: 50%;
	transform: translateX(-50%);
}
.readonly-cell {
	background-color: #e8e8e8 !important;
}

.table > thead {
	--bs-table-bg: #d5d5d5;
	--bs-border-width: 1px;
}
.table > tfoot {
	--bs-table-bg: #d5d5d5;
	--bs-border-width: 1px;
	border-top: 2px solid #909090;
}

.messages {
	padding: 10px;
	border-radius: 3px;
}
.messages.error {
	color: #D8000C;
	background-color: #FFBABA;
}
.messages.success {
	color: #270;
	background-color: #DFF2BF;
}

.breadcrumbs {
	display: inline-block;
	list-style: none;
	padding: 0;
	margin-left: 0.25rem!important;
	padding-left: 32px;
}
.breadcrumbs li {
	display: inline-block;
}
.breadcrumbs li:not(:first-child):before {
	content: ">";
	margin: 0 5px;
}
.breadcrumbs .active {
	font-weight: bold;
}

.welcome-text .user-name {
	font-weight: bold;
}

.user-details {
	display: inline-block;
}
.user-details > * {
	display: inline-block;
	vertical-align: middle;
	margin-left: 10px;
}

.site-name {
	font-weight: bold;
	font-size: 1.5rem;
}
#content {
	padding: 54px 10px 10px 10px;
	z-index: 0;
}
.global-messages {
	overflow: hidden;
	height: 44px;
	text-align: center;
	z-index: 2000;
}
.brs-0 {
	border-top-left-radius: 0;
	border-bottom-left-radius: 0;
}
.bre-0 {
	border-top-right-radius: 0;
	border-bottom-right-radius: 0;
}
.brs-c-0 * {
	border-top-left-radius: 0;
	border-bottom-left-radius: 0;
}
.bre-c-0 * {
	border-top-right-radius: 0;
	border-bottom-right-radius: 0;
}
.top-head {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	z-index: 100;
}
.top-head > .navbar {
	background-color: #f5f5f5;
	border-bottom: 1px solid #c7c7c7;
	padding: 5px 8px;
}
.top-head > .row {
	align-items: center;
}

.row > * {
	position: relative;
}

.home-links {
	list-style: none;
	padding: 0;
	display: flex;
	justify-content: center;
}
.home-links > li {
	margin-bottom: 15px;
	margin-right: 15px;	
}
.home-links .home-link {
	width: 150px;
	height: 100px;
	display: flex;
	justify-content: center;
	align-items: center;
}
.home-links .icon {
	font-size: 1.5rem;
}
.home-links .title:before {
	content: "";
	display: block;
}

.btn:not(.btn-sm):not(.btn-lg) {
	padding-top: 7px;
	padding-bottom: 7px;
}

.nav-btn, .refresh-btn {
	margin-right: 5px;
}

.error-page {
	text-align: center;
}
.error-page .error-message {
	font-weight: bold;
}

.field-text .form-control {
	background-color: transparent;
}

.form-check {
	padding-left: 0;
}
.form-check .form-check-input {
	float: none;
	margin-left: 0;
}
.form-check .form-check-input:not(:first-child) {
	margin-left: 5px;
}
.form-check .form-check-input:not(:last-child) {
	margin-right: 5px;
}

.pagination {
	flex-wrap: wrap;
}

/* Config */
.config-container {
/* 	border: 1px solid #e5e5e5; */
	padding: 15px 15px 40px 15px;
}
.config-group:not(:last-child) {
/* 	border-bottom: 1px solid #e5e5e5; */
	margin-bottom: 30px;
	padding-bottom: 30px;
}
.config-group:last-child {
/* 	border-bottom: 1px solid #e5e5e5; */
}

.modal {
	z-index: 1990;
	--bs-modal-margin: 6.75rem 0 1.75rem 0;
	overflow-y: auto;
	width: 100%;
	/* margin-left: calc(100vw - 100%); */
}
.modal.draggable {
	max-width: var(--bs-modal-width);
}
.modal:focus,
.modal:focus-within {
	z-index: 1991;
}
.modal .modal-content {
	overflow-x: visible;
	overflow-y: visible;
}
.modal .modal-body {
	overflow: visible;
	text-align: left;
}
.modal .modal-dialog {
	width: 100%;
}

/* Dark theme */
body.theme-dark .modal {
	--bs-modal-bg: #242424;
}
body.theme-dark .popover {
	--bs-popover-header-bg: #343434;
	--bs-popover-bg: #242424;
	--bs-popover-body-color: #fff;
}
body.theme-dark,
body.theme-dark .top-head .navbar {
	background-color: #242424;
	color: #fff;
}
body.theme-dark input,
body.theme-dark textarea,
body.theme-dark select,
body.theme-dark .form-control {
	background-color: #343434;
	color: #fff;
}
body.theme-dark .form-select {
	--bs-form-select-bg-img: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23fff' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m2 5 6 6 6-6'/%3e%3c/svg%3e");
}
body.theme-dark input:-webkit-autofill,
body.theme-dark input:-internal-autofill-selected {
	background-color: #242424 !important;
	color: #fff;
}
body.theme-dark input:hover,
body.theme-dark input:focus,
body.theme-dark textarea:hover,
body.theme-dark textarea:focus,
body.theme-dark select:hover,
body.theme-dark select:focus {
	background-color: #343434;
	color: #fff;
}
body.theme-dark .readonly-cell {
	background-color: #282828 !important;
	color: #a1a1a1;
}
body.theme-dark table,
body.theme-dark th,
body.theme-dark label {
	color: #fff;
}
body.theme-dark .input-group-text {
	background-color: #282828;
	color: #fff;
}
body.theme-dark .pagination .page-item .page-link {
	background-color: #282828;
	color: #fff;
}
body.theme-dark .pagination .page-item .page-link:hover {
	background-color: #555;
}
body.theme-dark .pagination .page-item.active .page-link {
	background-color: #0d6efd;
	border-color: #fff;
}
body.theme-dark .multiselect__tags,
body.theme-dark .multiselect__input,
body.theme-dark .multiselect__single {
	background-color: #242424;
	color: #fff;
}
body.theme-dark ::placeholder {
	color: #7c7c7c;
}

/* Vue Multiselect */
.multiselect__placeholder {
	margin: 0 !important;
	padding: 0 !important;
	max-width: 100%;
	overflow: hidden;
	white-space: nowrap;
	text-overflow: ellipsis;
}
.multiselect__tags {
	padding: 8px 60px 0 8px !important;
}
.multiselect__clear {
    position: absolute;
    right: 41px;
    height: 40px;
    width: 12px;
    display: block;
    cursor: pointer;
    z-index: 2
}

.multiselect__clear:after,.multiselect__clear:before {
    content: "";
    display: block;
    position: absolute;
    width: 3px;
    height: 16px;
    background: #aaa;
    top: 12px;
    right: 4px
}

.multiselect__clear:before {
    transform: rotate(45deg)
}

.multiselect__clear:after {
    transform: rotate(-45deg)
}

.multiselect__content-wrapper {
	min-width: 100% !important;
	width: auto !important;
}
.multiselect__option {
	padding-right: 81px !important;
}

.btn-radio {
	background-color: #e5e5e5;
	--bs-btn-bg: #e5e5e5;
	--bs-btn-border-color: #e5e5e5;
	--bs-btn-active-bg: #b8b8b8;
	--bs-btn-active-border-color: #b8b8b8;
	/* --bs-btn-active-color: #fff;
	--bs-btn-active-bg: #0d6efd;
	--bs-btn-active-border-color: #0d6efd; */
}
/* .btn-check + .btn:hover {
	border-color: var(--bs-btn-border-color);
} */
/* .btn-group .btn:not(:first-of-type) {
	border-left: 1px solid #fefefe;
}
.btn-check:checked + .btn {
	border-left: 1px solid var(--bs-btn-active-border-color);
} */

/* FullCalendar */
.fc-event,
.fc-event .fc-event-main {
	overflow: hidden !important;
}
.fc .fc-toolbar {
	flex-wrap: wrap;
}

.clipboardable {
	cursor: pointer;
}
.clipboardable .icon {
	visibility: hidden;
}
.clipboardable:hover .icon {
	visibility: visible;
}

.dragover {
	animation-name: dragleave;
	animation-duration: 1s;
	animation-timing-function: ease-in;
	animation-fill-mode: forwards;
}
.dragover.dragenter {
	animation-name: dragenter;
}
@keyframes dragenter {
    to {
        background-color: #179bcf;
    }
}
@keyframes dragleave {
    from {
        background-color: #179bcf;
    }
}

@keyframes highlight {
	from {
		background-color: yellow;
	}
}

tr.editable {
	--bs-table-bg: #fff;
}
tr.editable.editing {
	--bs-table-bg: #ffd95e !important;
}
tr.editable > td {
	transition: background-color .25s ease;
}
tr.editable:not(.editing) > td {
	transition: background-color 2s ease;
}

.ui-keyboard {
	font-size: 1.6rem;
	width: 100%;
	position: fixed;
	top: auto !important;
	bottom: 0;
}

.elfinder-button-choose .elfinder-button-icon {
	display: none;
}
.elfinder-button-choose .elfinder-button-text {
	display: inline !important;
}


.v-tooltip {
	position: relative;
	display: inline-block;
	border-bottom: 1px dotted rgba(0, 0, 0, 0.8);
}
.v-tooltip .tooltip-text {
	visibility: hidden;
	width: 120px;
	background-color: rgba(0, 0, 0, 0.8);
	color: #fff;
	text-align: center;
	border-radius: 6px;
	padding: 5px 0;
	position: absolute;
	z-index: 1;
	top: 130%;
	left: 50%;
	margin-left: -60px;
}
.v-tooltip .tooltip-text::after {
	content: "";
	position: absolute;
	bottom: 100%;
	left: 50%;
	margin-left: -5px;
	border-width: 5px;
	border-style: solid;
	border-color: transparent transparent rgba(0, 0, 0, 0.8) transparent;
}
.v-tooltip:hover .tooltip-text {
	visibility: visible;
}

th.sticky {
	position: sticky;
	z-index: 1;
}


.overlay {
	display: flex;
	position: fixed;
	left: 0;
	top: 0;
	z-index: 9999;
	width: 100%;
	height: 100%;
	background-color: rgba(0,0,0,0.5);
	color: #fff;
	align-items: center;
	justify-content: center;
	opacity: 1;
	transition: visibility 0s, opacity 2s;
}
.overlay.hidden {
	opacity: 0;
	transition: visibility 1s, opacity 1s;
}
.hidden {
	/* display: none; */
	visibility: hidden;
}