/* basic reset */
body,* { margin: 0; padding: 0; font-size-adjust: none; }
button::-moz-focus-inner { border: 0; padding: 0; }
input.no-appearance { -webkit-appearance: textfield; -moz-appearance: textfield; appearance: field; }
input.no-appearance::-webkit-calendar-picker-indicator { display: none; }
input.no-appearance::-webkit-inner-spin-button { -webkit-appearance: none; }
input.no-appearance::-webkit-outer-spin-button { -webkit-appearance: none; }
p, h1, h2, h3, h4, h5, h6, ul, ol { margin: 10px auto 10px auto; }
ul,ol { padding: 0 0 0 25px; }
a img { border: none; }

.text-left { text-align: left; }
.text-right { text-align: right; }
.center,
.text-center { text-align: center; }
.clear { clear: both; }
.hidden { display: none; }
.nowrap { white-space: nowrap; }

html {
	min-height: 100%;
}
body {
	min-height: 100%;
	background: #eee;
	font-family: Arial, sans-serif;
	font-size: 13px;
}
button, .btn {
	font-family: inherit;
	font-size: 13px;
}
input, textarea, select, .input {
	box-sizing: border-box;
	font-family: inherit;
	font-size: 13px;
	line-height: 20px;
	height: 32px;
	background: #fcfcfc;
	color: #000;
	border: 1px solid #aaa;
	border-radius: 2px;
	padding: 5px 8px;
	vertical-align: middle;
}
select {
	padding: 5px 4px;
}
option {
	font-size: 13px;
	padding: 2px 0 2px 6px;
}
textarea {
	vertical-align: top;
	height: auto;
}

input:focus,
textarea:focus,
select:focus {
	border-color: #999;
}
input:disabled,
textarea:disabled,
select:disabled,
input[readonly],
textarea[readonly],
select[readonly] {
	background: #e0e0e0;
	color: #666;
}
input:invalid:focus,
textarea:invalid:focus,
select:invalid:focus {
	box-shadow: #f00000 0 0 2px 1px;
}

.contain {
	background: #fff;
	box-shadow: rgba(0,0,0,0.15) 0 0 3px;
	margin-bottom: 10px;
}
.contain-padding {
	padding: 15px;
}
.max-width {
	display: block;
	max-width: 100%;
	height: auto;
	margin: auto;
}
.full-width {
	display: block;
	width: 100%;
	height: auto;
}
.drop-box {
	background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 35 56 '%3e%3cpath fill='solid' style='fill:%23cccccc' d='M 10 0 L 0 10 0 40 15 40 15 49 11 49 17.5 56 24 49 20 49 20 40 35 40 35 0 10 0 z M 11 2 L 33 2 33 38 20 38 20 25 17.5 28 15 25 15 38 2 38 2 11 L 11 2 z'/%3e%3c/svg%3e");
	background-position: center center;
	background-repeat: no-repeat;
	background-size: 105px 168px;
}
.content-scale {
	width: 100%;
	min-height: calc(100vh - 134px);
	overflow: auto;
	resize: none;
}
.content-scale-w-tabs {
	width: 100%;
	min-height: calc(100vh - 230px);
	overflow: auto;
	resize: none;
}

/*** system table ***/
.table-system {
	width: 100%;
	margin: 0 0 15px 0;
}
.table-system:last-of-type {
	margin-bottom: 0;
}
.table-system td:first-child {
	width: 35%;
}
.table-system.table-reverse td:first-child {
	width: 80%;
}

/*** Login form ***/
#page-login-background {
	background: #282828;
	color: #aaa;
}
#page-login {
	position: relative;
	width: 380px;
	padding: 20vh 0 0 0;
	margin: 0 auto 0 auto;
	text-align: center;
}
#page-login img {
	width: 280px;
	margin: 30px auto;
}
#page-login fieldset {
	background: rgba(180,180,180,0.6);
	border: none;
	padding: 20px 30px;
	box-shadow: #333 0 2px 20px 0;
}
#page-login h1 {
	font-size: 20px;
	line-height: 20px;
	text-transform: uppercase;
	font-weight: normal;
	margin: 0;
}
#page-login p {
	margin: 10px 0 10px 0;
}
#page-login .fa {
	color: #aaa;
	background: #fff;
	height: 26px;
	width: 34px;
	font-size: 26px;
	line-height: 26px;
	padding: 6px 5px;
}
#page-login input {
	display: inline-block;
	vertical-align: top;
	width: 273px;
	height: 38px;
	padding: 6px 40px 6px 0px;
	border: none;
	border-radius: 0;
	font-size: 20px;
	line-height: 26px;
	text-align: center;
	margin-left: 3px;
}
#page-login button {
	display: inline-block;
	vertical-align: top;
	box-sizing: content-box;
	width: 268px;
	height: 36px;
	padding: 0 0 0 50px;
	margin: 0;
	font-size: 18px;
	line-height: 36px;
	text-align: center;
	border: 2px solid #fff;
	border-radius: 0;
	color: #fff;
	background: none;
	cursor: pointer;
}
#page-login button .fa {
	float: right;
	background: transparent;
	color: #fff;
	border-left: 2px solid #fff;
	padding: 5px 4px;
}
#page-login button:hover .fa,
#page-login button:hover,
#page-login button:focus .fa,
#page-login button:focus {
	color: #eee;
	border-color: #eee;
}
#page-login .btn:hover,
#page-login .btn:focus,
#page-login button:hover,
#page-login button:focus {
	background: rgba(0,0,0,0.2);
}
#page-login .alert {
	text-align: left;
}
#page-login .btn {
	color: #fff;
	background: rgba(0,0,0,0.1);
	padding: 6px 18px;
}

/*** page ***/
#page-full {
	margin: 0;
	padding: 0;
	min-height: 100%;
}
#page-full #page-content {
	padding: 0;
	height: calc(100% - 60px);
}

#header {
	position: relative;
	z-index: 10;
	background-color: #333;
	font-size: 0;
	min-height: 60px;
	min-width: 570px;
}
#header.menu-show {
	padding-left: 180px;
}
#header a {
	color: #fff;
	text-decoration: none;
	transition: all 0.3s;
}
#header a:hover {
	color: #ccc;
	background-color: #666;
}

#header-right {
	float: right;
}
#header-right a {
	padding: 0 18px;
}
#header-right > * {
	border-left: 2px solid #ddd;
}

a#header-menu-icon {
	display: inline-block;
	vertical-align: top;
	font-size: 40px;
	line-height: 60px;
	padding: 0 18px;
	border-left: 2px solid #ddd;
	border-right: 2px solid #ddd;
}

#logo {
	display: block;
	background: #333;
	color: #fff;
	height: 60px;
	overflow: hidden;
}
#logo img {
	height: 50px;
	margin: 4px 0 0 10px;
}

#page-content {
	position: relative;
	padding: 15px;
	min-width: 550px;
}
#page-content.menu-show {
	margin-left: 180px;
}
#footer {
	clear: both;
}

#box-comment {
	border-top: 1px solid #666;
	padding: 5px 0 10px 0;
	margin-top: 5px;
}

#table-modul {
	width: 100%;
}
#table-multiple-check {
	text-align: left;
	width: 16px;
}
#table-modul .col-action {
	width: 1%;
}

#main-table-overflow {
	overflow: auto;
}

/*** menu ***/
#panel-side {
	position: fixed;
	top: 0;
	left: 0;
	font-size: 13px;
	width: 0;
	height: 100%;
	transition: width 0.5s;
}
#panel-side:target,
.menu-show #panel-side { width: 180px; }

#menu {
	background-color: #999;
	height: calc(100% - 60px);
	overflow: auto;
}
#menu ul {
	padding: 0;
	margin: 0;
	list-style:none;
	white-space: nowrap;
	overflow: hidden;
}
#menu ul li {
	position: relative;
	text-align: left;
}
#menu ul li a {
	display: block;
	text-decoration: none;
	font-weight: bold;
	padding: 8px 15px;
	color: #fff;
}
#menu ul li a:hover {
	background: rgba(0,0,0,0.35);
	color: #e0e0e0;
}
#menu ul li.active > a {
	background-color: #333;
}
#menu ul ul {
	background: rgba(0,0,0,0.2);
}

/*** Language menu ***/
#header-lang {
	display: inline-block;
	vertical-align: top;
	min-width: 100px;
}
#header-lang .fa {
	margin-left: 10px;
}
#header-lang ul {
	list-style: none;
	padding: 0;
	margin: 0;
}
#header-lang li a {
	display: block;
}
#header-lang li {
	position: relative;
	font-size: 18px;
	line-height: 60px;
	white-space: nowrap;
}
#header-lang ul ul {
	display: none;
	background: rgba(0,0,0,0.7);
	position: absolute;
	overflow: hidden;
	min-width: 100%;
}
#header-lang li li {
	line-height: 40px;
}
#header-lang li:hover ul {
	display: block;
}

/*** Header login form ***/
#header-profile {
	display: inline-flex;
	align-items: center;
	font-size: 13px;
	line-height: 18px;
	white-space: nowrap;
	height: 60px;
}
#header-profile-circle {
	display: block;
	width: 40px;
	height: 40px;
	margin: auto;
	background: #fff;
	border-radius: 60px;
}
#header-profile-circle .fa-user {
	color: #333;
	font-size: 36px;
	text-align: center;
	border-radius: 60px;
	width: 40px;
	height: 34px;
	padding-top: 7px;
	overflow: hidden;
}
/*
	position: relative;
	text-align: center;
	color: #333;
	font-size: 40px;
	background: #fff;
	border-radius: 60px;
	width: 40px;
	height: 36px;
	padding-top: 4px;
	margin: auto;
}
#header-profile .fa-user span {
	position: absolute;
	top: -2px;
	left: -2px;
	display: block;
	width: 36px;
	height: 36px;
	border: 4px solid #333;
	border-radius: 60px;	overflow: hidden;
}
*/
#header-profile p {
	margin: auto auto auto 10px;
}
#header-profile strong {
	font-size: 15px;
	line-height: 22px;
	font-weight: normal;
}
#header-profile span {
	color: #bbb;
}

a#header-logout {
	display: inline-block;
	vertical-align: top;
	font-size: 30px;
	line-height: 60px;
	margin: 0;
	padding-right: 15px;
}

/*** modul title ***/
#page-title {
	display: flex;
	flex-direction: row;
	justify-content: space-between;
	font-size: 20px;
	height: 55px;
	color: #000;
}
#page-title h1 {
	font-size: inherit;
	line-height: 28px;
	padding: 0;
	margin: 0 0 0 15px;
	padding: 5px 0 0 0;
}
#page-title small {
	display: block;
	font-size: 12px;
	font-weight: normal;
	line-height: normal;
	color: #999;
}
#page-title > a {
	display: block;
	text-align: center;
	line-height: 53px;
	height: 55px;
	font-weight: bold;
	font-size: inherit;
	padding: 0 15px;
	text-decoration: none;
	vertical-align: middle;
	border-radius: 0;
}
#page-title .fa {
	vertical-align: middle;
	margin-left: 5px;
}

/*** Filter settings ***/
#filter-settings .filter-form {
	display: none;
}
#filter-settings .filter-form.active {
	display: block;
}
#filter-settings .form.border {
	border-top: 1px solid #aaa;
}
#filter-settings .form.filter:empty + .form.border {
	border-top-color: transparent;
}
#filter-settings .column-group {
	font-weight: bold;
	color: #999;
	border-bottom: 1px solid #aaa;
	margin: 3px 0;
}
#filter-settings .form-check-inline {
	display: inline-block;
	margin-top: 2px;
	margin-bottom: 2px;
}

/*** forms ***/
form .fborder {
	border-color: #ddd;
}
form fieldset .fborder:hover {
	border-color: #999;
}

form legend {
	background: #ddd;
	font-size: 14px;
	height: 24px;
	line-height: 24px;
	padding: 0;
	margin: 0;
}
form fieldset:hover > legend {
	background: #999;
	color: #fff;
}

form fieldset {
	border: none;
	padding: 0 10px 0 10px;
	margin: 0;
}
form fieldset .nav-tabs {
	margin: 0 -10px 0 -10px;
}
form fieldset .table {
	margin: 5px 0 0 0;
}
form fieldset fieldset {
	border-width: 1px;
	border-style: solid;
	border-top-width: 24px;
	margin: 10px 0 10px 0;
}

form .ui-sortable > div.multi-record.ui-sortable-helper {
	background-color: #fff;
	-webkit-transform: scale(0.6);
	transform: scale(0.6);
}
form .ui-state-highlight {
	height: 200px;
}
form fieldset.form-group.single {
	border-left: none;
	border-right: none;
	border-bottom: none;
}
form .form-escape,
form .form-group {
	margin: 0 -10px 0 -10px;
}
form div.form-group {
	padding: 0 10px 0 10px;
}

form div.subform-action {
	min-height: 20px;
	background-color: #eee;
	margin: 0 -10px 0 -10px;
	padding: 5px 10px 5px 10px;
}
form .subform-action label {
	float: none;
	display: inline;
	vertical-align: 10%;
}
form .multi-record-buttons > .btn {
	margin-top: 5px;
	margin-bottom: 5px;
}
form .fborder.multi-record-buttons {
	border-top-width: 1px;
	border-top-style: solid;
	margin-left: -10px;
	margin-right: -10px;
	padding-left: 10px;
	padding-right: 10px;
}
.form-submit.form-main,
form .form-submit {
	display: flex;
	flex-direction: row;
	background: #333;
	color: #fff;
}
.form-submit.form-main > .btn,
form .form-submit > .btn {
	margin-right: .5rem;
}

.form-submit .middle {
	display: flex;
	flex-direction: row;
	margin: 0 auto 0 auto;
	order: 1;
}
.form-submit .right {
	display: flex;
	flex-direction: row;
	margin: 0 0 0 auto;
	order: 2;
}
.form-submit .right > .btn {
	margin-left: .5rem;
}

form p.form-comment {
	margin: 6px 0 4px 0;
}

form .form-file-button input {
	display: none;
}

form .form-preview {
	display: block;
	margin-top: 5px;
}
form .form-preview button {
	margin-left: 5px;
}
form .form-preview video,
form .form-preview img {
	max-height: 150px;
	max-width: 400px;
	vertical-align: top;
}
form .form-preview video {
	max-height: 200px;
}
form .form-preview a {
	font-weight: bold;
	margin-right: 10px;
}
form .unsaved {
	border: 2px dashed red;
}

form .form-record-drag-icon {
	position: absolute;
	z-index: 99;
	top: 0;
	right: 0;
	cursor: pointer;
	padding: 2px;
}
form .form-record-drag-icon .fa {
	display: block;
}
form .form-record-drag-icon:hover {
	color: #333;
	-webkit-transform: scale(1.1);
	transform: scale(1.1);
}

.form-record-block {
	position: relative;
	border: 2px solid #333;
	background: #fff;
	border-radius: 5px;
	box-shadow: 0 0 4px #333;
}
.form-record-block:hover {
	box-shadow: 0 0 8px #06a;
}
.form-record-block img {
	display: block;
	height: 100%;
	width: 100%;
	object-fit: cover;
}

.form-record-block-inner {
	display: flex;
	flex-direction: column;
	justify-content: stretch;
	position: absolute;
	top: 0;
	bottom: 0;
	left: 0;
	right: 0;
	height: 100%;
	width: 100%;
}
.form-record-block-inner .subform-action {
	display: flex;
	flex-direction: row;
	justify-content: space-between;
	margin: 0;
	padding: 5px;
}
.form-record-drag-helper {
	position: relative;
}
.form-record-draggable {
	flex-grow: 1;
	width: 100%;
	height: auto;
	margin: 0;
	cursor: move;
}
.form-record-draggable .fa-arrows {
	position: absolute;
	bottom: 5px;
	right: 5px;
	text-shadow: 0 0 6px #aaa;
	color: #333;
	cursor: move;
	transition: 0.3s transform ease-in-out, 0.3s color ease-in-out;
}
.form-record-draggable:hover .fa-arrows {
	transform: scale(1.4) translate(-5px, -5px);
	color: #fff;
}

form .form-preview.form-load {
	-webkit-animation: counting 2s infinite;
	animation: counting 2s infinite;
}
@keyframes counting {
	0% {
		opacity: 0.2;
	}
	50% {
		opacity: 0.7;
	}
	100% {
		opacity: 0.2;
	}
}

.multi-dialog-detail.modal-dialog {
	width: auto;
	min-width: 520px;
	max-width: 960px;
}
.multi-dialog-detail .multi-dialog-content {
	display: block;
	position: relative;
	padding: 10px 15px;
	overflow: auto;
}

form .tinymce-switch .btn {
	color: #000;
	background: #f4f4f4;
	border: 1px solid #bbb;
	border-radius: 0 0 3px 3px;
	border-top: none;
}

/*** picker form ***/
.picker-title {
	font-size: 1.5em;
	font-weight: bold;
	line-height: 22px;
	background: #333333;
	color: #fff;
	padding: 14px 10px;
	margin: 10px -10px 0 -10px;
}
.picker-form .form-record-drag-icon {
	top: 9px;
}

/*** gallery form ***/
.gallery-drop-box {
	min-height: 200px;
	padding: 5px 0;
	margin-left: -5px;
	margin-right: -5px;
}
.gallery-drop-box .ui-sortable-helper {
	pointer-events: none;
}
.gallery-drop-box .ui-state-highlight,
.multi-gallery-image {
	display: inline-block;
	width: 200px;
	height: 200px;
	margin: 5px;
}
.gallery-drop-box .ui-state-highlight {
	margin: 4px;
}
.multi-gallery-image > .form-record-block {
	position: relative;
	width: 100%;
	height: 100%;
}

/*** form Language ***/
.form-lang-choose {
	background-color: #999;
	color: #fff;
	padding: 8px 10px 8px 10px;
	margin: 0;
	font-size: 16px;
	line-height: 20px;
}
.form-lang-choose a {
	color: #fff;
	padding: 4px 8px;
	margin: 0 2px 0 2px;
	cursor: pointer;
	background-color: rgba(0,0,0,0.5);
}
.form-lang-choose a:hover {
	background-color: rgba(0,0,0,0.2);
}
.form-lang-choose a.active {
	color: #333;
	background-color:rgba(255,255,255,0.85);
}
.form-lang-i18n {
	border-top-width: 1px;
	border-left: 0;
	border-right: 0;
	margin: auto -10px;
}
.form-lang-i18n .subform-action {
	min-height: 1px;
}

/*** Table record list ***/
.blocker {
	position: absolute;
	top: 0;
	left: 0;
	z-index: 1000;
	height: 100%;
	width: 100%;
	text-align: center;
	font-size: 3em;
	color: #fff;
}

/*** tabulka strankovani ***/
.nav-pagination {
	background-color: rgba(255,255,255,0.4);
	border: 1px solid #999;
	text-align: center;
	color: #666;
	margin: 5px 0 5px 0;
	padding: 3px;
	font-size: 0.9em;
}
.nav-pagination .left {
	float: left;
	text-transform: uppercase;
}
.nav-pagination form {
	float: right;
}
.nav-pagination form button,
.nav-pagination form input {
	background: #eee;
	border: 1px solid #666;
	border-radius: 0;
	color: #000;
	font-size: smaller;
	text-align: center;
	padding: 1px 2px 1px 2px;
	line-height: normal;
	height: auto;
}
.nav-pagination form input {
	width: 40px;
	text-align: right;
}

/*** file editor ***/
.file-editor-bar {
	padding: 5px 15px;
	background-color: #f4f4f4;
	border-bottom: 1px solid #ccc;
}
.file-editor-bar h1 {
	display: inline-block;
	vertical-align: middle;
	font-weight: normal;
	font-size: 1.5em;
	line-height: 32px;
	margin: 0;
}
.file-editor-bar .btn {
	float: right;
}

/*** css spinner ***/
/* :not(:required) hides this rule from IE9 and below */
.spinner:not(:required) {
	display: inline-block;
	width: 1em;
	height: 1em;
	margin: 1.5em;
	overflow: hidden;
	-webkit-animation: css-spinner 2000ms infinite linear;
	-ms-animation: css-spinner 2000ms infinite linear;
	animation: css-spinner 2000ms infinite linear;
	-webkit-border-radius: 0.5em;
	-ms-border-radius: 0.5em;
	border-radius: 0.5em;
	-webkit-box-shadow: rgba(0,0,51,0.3) 1.5em 0 0 0, rgba(0,0,51,0.3) 1.1em 1.1em 0 0, rgba(0,0,51,0.3) 0 1.5em 0 0, rgba(0,0,51,0.3) -1.1em 1.1em 0 0, rgba(0,0,51,0.3) -1.5em 0 0 0, rgba(0,0,51,0.3) -1.1em -1.1em 0 0, rgba(0,0,51,0.3) 0 -1.5em 0 0, rgba(0,0,51,0.3) 1.1em -1.1em 0 0;
	box-shadow: rgba(0,0,51,0.3) 1.5em 0 0 0, rgba(0,0,51,0.3) 1.1em 1.1em 0 0, rgba(0,0,51,0.3) 0 1.5em 0 0, rgba(0,0,51,0.3) -1.1em 1.1em 0 0, rgba(0,0,51,0.3) -1.5em 0 0 0, rgba(0,0,51,0.3) -1.1em -1.1em 0 0, rgba(0,0,51,0.3) 0 -1.5em 0 0, rgba(0,0,51,0.3) 1.1em -1.1em 0 0;
	font-size: 10px;
	text-indent: 100%;
}
@keyframes css-spinner {
	0% {
		-webkit-transform: rotate(0deg);
		-moz-transform: rotate(0deg);
		-ms-transform: rotate(0deg);
		transform: rotate(0deg);
	}
	100% {
		-webkit-transform: rotate(360deg);
		-moz-transform: rotate(360deg);
		-ms-transform: rotate(360deg);
		transform: rotate(360deg);
	}
}

/*** mobile view ***/
@media screen and (max-width: 920px) {
	#page-content.menu-show { margin-left: 0; }
	#header.menu-show { padding-left: 0; }
	#header.menu-show-js { padding-left: 180px; }
	.menu-show #panel-side { width: 0; }
	.menu-show-js #panel-side,
	.menu-show #panel-side:target { width: 180px; }
	#page-content { padding: 10px; }
	.mce-tinymce {width: 99% !important; }
}

/*** bootstrap 5like ***/
.form-control, .form-select {
	display: block;
	box-sizing: border-box;
	font-family: inherit;
	font-size: 13px;
	line-height: 20px;
	height: 32px;
	width: 100%;
	padding: 5px 8px;
	border-radius: 2px;
	vertical-align: middle;
	-webkit-appearance: none;
	-moz-appearance: none;
	appearance: none;
}
.form-select {
	background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23343a40' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M2 5l6 6 6-6'/%3e%3c/svg%3e");
	background-position: center right 5px;
	background-repeat: no-repeat;
	padding-right: 20px;
	background-size: 16px 12px;
}
.form-select option {
	font-family: inherit;
	font-size: 13px;
	padding: 2px 0 2px 5px;
	background: inherit;
	color: inherit;
}
textarea.form-control {
	vertical-align: top;
	height: auto;
}

/* break webkit if combined */
.form-control::file-selector-button {
	font: inherit;
	-webkit-appearance: button;
	color: inherit;
	background: #eee;
	border: none;
	border-right: 1px solid #999;
	font-size: 13px;
	line-height: 20px;
	height: 32px;
	margin: -5px 8px -5px -8px;
	padding: 5px 8px;
}
.form-control::-webkit-file-upload-button {
	font: inherit;
	-webkit-appearance: button;
	color: inherit;
	background: #eee;
	border: none;
	border-right: 1px solid #999;
	font-size: 13px;
	line-height: 20px;
	height: 32px;
	margin: -5px 8px -5px -8px;
	padding: 5px 8px;
}
.form-control[readonly]::file-selector-button,
.form-control:disabled::file-selector-button {
	background: #e0e0e0;
}
.form-control[readonly]::-webkit-file-upload-button,
.form-control:disabled::-webkit-file-upload-button {
	background: #e0e0e0;
}

.form-check-inline {
	line-height: 22px;
	margin-right: 10px;
	white-space: nowrap;
}
.form-check-inline .form-check-input {
	margin-right: 5px;
}
.form-check-input {
	width: 1.1em;
	height: 1.1em;
	margin: auto;
	padding: 0;
	vertical-align: middle;
	background-color: #fafafa;
	background-repeat: no-repeat;
	background-position: center;
	background-size: contain;
	border: 1px solid #aaa;
	border-radius: 2px;
	-webkit-appearance: none;
	-moz-appearance: none;
	appearance: none;
}
.form-check-input[type=radio] {
	border-radius: 50%;
}
.form-check-input:checked {
	background-color: #006dcc;
	border: 1px solid rgba(0, 0, 0, 0.2);
}
.form-check-input:checked[type=checkbox] {
	background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3e%3cpath fill='none' stroke='%23fff' stroke-linecap='round' stroke-linejoin='round' stroke-width='3' d='M6 10l3 3l6-6'/%3e%3c/svg%3e");
}
.form-check-input:checked[type=radio] {
	background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='-4 -4 8 8'%3e%3ccircle r='2' fill='%23fff'/%3e%3c/svg%3e");
}
.form-check-input[type=checkbox]:indeterminate {
	background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3e%3cpath fill='none' stroke='%23fff' stroke-linecap='round' stroke-linejoin='round' stroke-width='3' d='M6 10h8'/%3e%3c/svg%3e");
}
.form-check-input:checked:disabled[type=checkbox] {
	opacity: 0.6;
}

.btn-check {
	display: none;
}
.btn-check.btn-check-invert:not(:checked) + .btn,
.btn-check:checked:not(.btn-check-invert) + .btn {
	border: 1px solid #777;
	box-shadow: inset 0 0 30px 0 rgba(255, 255, 255, 0.75);
	z-index: 6;
}

.col-form-label {
	display: inline-block;
	font-size: 13px;
	line-height: 22px;
	padding: 5px 0;
}

.btn {
	font-family: inherit;
	font-size: 13px;
	display: inline-block;
	vertical-align: middle;
	box-sizing: border-box;
	text-decoration: none;
	padding: 5px 8px;
	margin: 0;
	line-height: 20px;
	border: 1px solid rgba(0, 0, 0, 0.2);
	border-radius: 2px;
	cursor: pointer;
}
.btn.btn-lg { line-height: 20px; font-size: 14px; padding: 6px 10px; }
.btn.btn-sm { line-height: normal; font-size: 13px; padding: 4px 6px; }
.btn.btn-xs { line-height: normal; font-size: 12px; padding: 2px 3px; }

.btn.disabled,
.btn[disabled],
fieldset[disabled] {
	opacity: 0.4;
	pointer-events: none;
}

.btn.btn-primary { background: #006dcc; color: #fff; }
.btn.btn-secondary { background: #eee; color: #000; }
.btn.btn-success { background: #006dcc; color: #fff; }
.btn.btn-danger { background: #da4f49; color: #fff; }
.btn.btn-warning { background: #ffac00; color: #333; }
.btn.btn-info { background: #38c3f0; color: #fff; }

.btn.btn-primary:hover,.btn.btn-primary:focus { background: #05b; }
.btn.btn-secondary:hover,.btn.btn-secondary:focus { background: #ddd; }
.btn.btn-success:hover,.btn-success:focus { background: #05b; }
.btn.btn-danger:hover,.btn-danger:focus { background: #c40; }
.btn.btn-warning:hover,.btn-warning:focus { background: #d90; }
.btn.btn-info:hover,.btn-info:focus { background: #2bf; }

.btn-group {
	display: inline-flex;
	vertical-align: middle;
}
.btn-group .btn {
	display: inline-block;
	position: relative;
	margin: 0;
}
.btn-group .btn:not(:last-of-type) { border-bottom-right-radius: 0; border-top-right-radius: 0; }
.btn-group .btn:not(:first-of-type) { border-bottom-left-radius: 0; border-top-left-radius: 0; margin-left: -1px; }

.input-group {
	display: flex;
	flex-wrap: nowrap;
	align-items: stretch;
	width: 100%;
}
.input-group > .form-control,
.input-group > .form-select {
	flex: 1 1 auto;
	width: auto;
}
table .input-group > * { float: left; }

.input-group .input-group-text {
	font-family: inherit;
	font-size: 13px;
	line-height: 20px;
	text-align: center;
	color: #222;
	background: #ccc;
	border: 1px solid #aaa;
	border-radius: 2px;
	padding: 5px 6px;
	margin: auto 0;
}
.input-group > :not(:first-child) > .input-group-text,
.input-group > :not(:first-child) {
	border-bottom-left-radius: 0;
	border-top-left-radius: 0;
}
.input-group > :not(:last-child) > .input-group-text,
.input-group > :not(:last-child) {
	border-right: none;
	border-bottom-right-radius: 0;
	border-top-right-radius: 0;
}

.nav-tabs {
	padding: 0 0 0 5px;
	margin: 0;
	font-size: 0;
	list-style: none;
	background-color: #999;
}
.nav-tabs .nav-item {
	display: inline-block;
	padding: 0;
	margin: 0 1px;
}
.nav-tabs .nav-item:first-of-type {
	margin-left: 0;
}
.nav-tabs .nav-item a {
	display: block;
	background: #909090;
	color: #fff;
	font-size: 16px;
	line-height: 20px;
	text-decoration: none;
	padding: 8px 10px;
	margin: 0 5px 0 5px;
	outline: none;
}
.nav-tabs .nav-item > a:hover {
	background: #333;
}
.nav-tabs .nav-item > a.active {
	background: #fff;
	color: #333;
}
.nav-tabs .nav-item > a.disabled {
	background: #aaa;
	color: #888;
	pointer-events: none;
}
.tab-content .tab-pane {
	display: none;
}
.tab-content .tab-pane:target,
.tab-content .tab-pane.active {
	display: block;
}

.progress {
	width: 100%;
	height: 20px;
	padding: 0;
	box-shadow: 0 1px 2px rgba(0, 0, 0, 0.2) inset;
	background: rgba(120, 120, 120, 0.05);
	border-radius: 5px;
	overflow: hidden;
}
.progress-bar {
	background-color: #006dcc;
	box-shadow: 0 -1px 0 rgba(0, 0, 0, 0.15) inset;
	float: left;
	height: 100%;
	line-height: 20px;
	transition: width 0.3s linear;
	width: 0%;
}
.progress-bar.progress-bar-striped {
	background-image: linear-gradient(45deg, rgba(255, 255, 255, 0.1) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, 0.1) 50%, rgba(255, 255, 255, 0.1) 75%, transparent 75%, transparent);
	background-size: 40px 40px;
}
.progress-bar.progress-bar-striped.active {
	animation: progress-bar-animate 1s linear infinite;
}
@keyframes progress-bar-animate {
	from { background-position: 0 0; }
	to { background-position: -40px 0; }
}

.row {
	display: -ms-flexbox;
	-ms-flex-wrap: wrap;
	display: flex;
	flex-wrap: wrap;
	margin-right: -10px;
	margin-left: -10px;
}
.row > * {
	flex-shrink: 0;
	width: 100%;
	max-width: 100%;
	padding-right: 10px;
	padding-left: 10px;
	box-sizing: border-box;
}

.col {
	flex: 1 0 0%;
}
.row-cols-auto > * {
	flex: 0 0 auto;
	width: auto;
}

.col-12 {
	flex: 0 0 auto;
	max-width: 100%;
}
.col-10 {
	-ms-flex: 0 0 83.3333%;
	flex: 0 0 83.3333%;
	max-width: 83.3333%;
}
.col-9 {
	-ms-flex: 0 0 75%;
	flex: 0 0 75%;
	max-width: 75%;
}
.col-8 {
	-ms-flex: 0 0 66.6666%;
	flex: 0 0 66.6666%;
	max-width: 66.6666%;
}
.col-7 {
	-ms-flex: 0 0 58.3333%;
	flex: 0 0 58.3333%;
	max-width: 58.3333%;
}
.col-6 {
	-ms-flex: 0 0 50%;
	flex: 0 0 50%;
	max-width: 50%;
}
.col-5 {
	-ms-flex: 0 0 41.6666%;
	flex: 0 0 41.6666%;
	max-width: 41.6666%;
}
.col-4 {
	-ms-flex: 0 0 33.3333%;
	flex: 0 0 33.3333%;
	max-width: 33.3333%;
}
.col-3 {
	-ms-flex: 0 0 25%;
	flex: 0 0 25%;
	max-width: 25%;
}
.col-2 {
	-ms-flex: 0 0 16.6666%;
	flex: 0 0 16.6666%;
	max-width: 16.6666%;
}
.col-1 {
	-ms-flex: 0 0 8.3333%;
	flex: 0 0 8.3333%;
	max-width: 8.3333%;
}

.col-md-12,.col-12,
.col-md-10,.col-10,
.col-md-9,.col-9,
.col-md-8,.col-8,
.col-md-7,.col-7,
.col-md-6,.col-6,
.col-md-5,.col-5,
.col-md-4,.col-4,
.col-md-3,.col-3,
.col-md-2,.col-2,
.col-md-1,.col-1,
.col {
	box-sizing: border-box;
}

/*** bootstrap table like ***/
.table {
	border-collapse: collapse;
}
.table th {
	background-color: #333;
	color: #fff;
	padding: 8px 5px;
	white-space: nowrap;
}
.table-order span {
	display: block;
	float: right;
	position: relative;
	top: -1px;
	width: 3px;
	height: 16px;
	padding: 0 3px 0 3px;
	margin: auto;
}
.table-order span a {
	display: block;
	position: absolute;
	width: 0;
	height: 0;
	border-style: solid;
	border-color: transparent;
	-moz-transform: scale(.9999); /* fix corner alias */
}

.table-order span a.up { border-width: 0 4px 6px 4px; border-bottom-color: #fff; top: 0px; }
.table-order span a.up:hover { border-bottom-color: #bbb; }
.table-order span a.up.active { border-bottom-color: #888; }
.table-order span a.down { border-width: 6px 4px 0 4px; border-top-color: #fff; bottom: -1px; }
.table-order span a.down:hover { border-top-color: #bbb; }
.table-order span a.down.active { border-top-color: #888; }
.table-order span a span { display: none; }

.table > tbody > tr.active {
	background-color: #fcefa1;
}

.table-striped > tbody > tr.active:nth-child(odd) {
	background-color: #dccf81;
}
.table-striped > tbody > tr:nth-child(odd) {
	background-color: rgba(0, 0, 0, 0.08);
}

.table-hover > tbody > tr:hover > td {
	background-color: rgba(0, 0, 0, 0.15);
}
.table-hover > tbody > tr.active:hover {
	background-color: #ccbf71;
}

.table tr.ui-state-highlight {
	height: 40px;
}

.table td {
	padding: 4px 5px 4px 5px;
}
.table td.tab-input-tree span {
	margin: 0 5px 0 5px;
}
.table td.number {
	text-align: right;
}
.table td.image {
	text-align: center;
}
.table td.image img {
	margin: auto;
	max-height: 40px;
	max-width: 80px;
	object-fit: contain;
}
.table td.tab-color span {
	border: 1px solid #999;
	display: block;
	width: inherit;
	height: inherit;
	padding: 5px;
}
.table td.slim {
	padding: 1px 2px 1px 2px;
}
.table span.arrows {
	float: right;
	display: block;
	position: relative;
	width: 7px;
	height: 15px;
	padding: 0 0 0 3px;
	margin: auto;
}
.table span.arrows a {
	position: absolute;
	display: block;
	color: #666;
	height: 7px;
	width: 7px;
	line-height: 7px;
	text-decoration: none;
	font-weight: bold;
}
.table span.icon-move:hover,
.table span.arrows a:hover { color: #000; }
.table span.arrows a.fa-angle-up { top: 0; }
.table span.arrows a.fa-angle-down { bottom: 0; }

.table span.icon-move {
	float: right;
	display: block;
	color: #666;
	font-weight: bold;
	height: 12px;
	width: 6px;
	padding-right: 4px;
	cursor: pointer;
}

td.action {
	text-align: center;
	width: 20px;
}
td.action a {
	color: #111;
	text-decoration: none;
	font-size: 1.5em;
	transition: 0.1s all linear;
}
td.action a:hover {
	transform: scale(1.3);
}
td.action.del a { color: #f1001a; }

.table caption {
	font-size: 18px;
	padding: 5px;
}
.table .table-show-row {
	display: block;
	text-align: center;
	text-decoration: none;
}

/*** Sub-tables ***/
.table table {
	width: 100%;
	font-size: smaller;
	padding: 0;
	margin: 0;
}
.table table.single {
	font-size: 1em;
}
.table table td {
	width: 50%;
	padding: 1px;
	margin: 0;
	overflow: hidden;
}

/*** table bordered ***/
.table-bordered {
	border: 1px solid #999;
}
.table-bordered th {
	border-left: 1px solid #fff;
}
.table-bordered th:first-child {
	border-left: 1px solid #555;
}
.table-bordered > tbody > tr > td {
	border-bottom: 1px solid #999;
}
.table-bordered table:not(.single) {
	border: 1px solid #bdbdbd;
}

/*** pagination ***/
.pagination {
	display: inline-block;
	list-style: none;
	margin: 0;
	padding: 0;
}
.pagination li {
	display: inline-block;
	margin: 0;
	padding: 0;
}
.pagination a {
	color: #666;
	padding: 0 2px 0 2px;
	font-weight: bold;
}
.pagination li.active a {
	text-decoration: none;
}

/*** errors ***/
.table > tbody > tr.table-success { background-color: #dff0d8; }
.table-striped > tbody > tr.table-success:nth-child(odd) { background-color: #cee0c8; }
.table > tbody > tr.table-warning { background-color: #fcf8e3; }
.table-striped > tbody > tr.table-warning:nth-child(odd) { background-color: #ece8d3; }
.table > tbody > tr.table-danger { background-color: #f2dede; }
.table-striped > tbody > tr.table-danger:nth-child(odd) { background-color: #e2cece; }
.table > tbody > tr.table-info { background-color: #d9edf7; }
.table-striped > tbody > tr.table-info:nth-child(odd) { background-color: #c9dde7; }

.alert {
	border: 1px solid transparent;
	border-radius: 4px;
	margin: 10px 0;
	padding: 10px;
}
.alert-success {
	background-color: #dff0d8;
	border-color: #d6e9c6;
	color: #3c763d;
}
.alert-info {
	background-color: #d9edf7;
	border-color: #bce8f1;
	color: #31708f;
}
.alert-warning {
	background-color: #fcf8e3;
	border-color: #faebcc;
	color: #8a6d3b;
}
.alert-danger {
	background-color: #f2dede;
	border-color: #ebccd1;
	color: #a94442;
}

/*** spacing ***/
.container-fluid > .row {
	margin-left: 0;
	margin-right: 0;
}
.g-0 {
	padding: 0;
	margin: 0;
}
.gx-0 {
	padding-left: 0;
	padding-right: 0;
}
.gx-1 {
	padding-left: 3px;
	padding-right: 3px;
}
.p-0 {
	padding: 0;
}
.p-2 {
	padding: 10px;
}
.m-2 {
	margin: 10px;
}
.my-2 {
	margin-top: 10px;
	margin-bottom: 10px;
}

@media (min-width: 768px) {
	.gx-md-0 {
		padding-left: 0;
		padding-right: 0;
	}
	.col-md-12 {
		flex: 0 0 auto;
		max-width: 100%;
	}
	.col-md-10 {
		-ms-flex: 0 0 83.3333%;
		flex: 0 0 83.3333%;
		max-width: 83.3333%;
	}
	.col-md-9 {
		-ms-flex: 0 0 75%;
		flex: 0 0 75%;
		max-width: 75%;
	}
	.col-md-8 {
		-ms-flex: 0 0 66.6666%;
		flex: 0 0 66.6666%;
		max-width: 66.6666%;
	}
	.col-md-7 {
		-ms-flex: 0 0 58.3333%;
		flex: 0 0 58.3333%;
		max-width: 58.3333%;
	}
	.col-md-6 {
		-ms-flex: 0 0 50%;
		flex: 0 0 50%;
		max-width: 50%;
	}
	.col-md-5 {
		-ms-flex: 0 0 41.6666%;
		flex: 0 0 41.6666%;
		max-width: 41.6666%;
	}
	.col-md-4 {
		-ms-flex: 0 0 33.3333%;
		flex: 0 0 33.3333%;
		max-width: 33.3333%;
	}
	.col-md-3 {
		-ms-flex: 0 0 25%;
		flex: 0 0 25%;
		max-width: 25%;
	}
	.col-md-2 {
		-ms-flex: 0 0 16.6666%;
		flex: 0 0 16.6666%;
		max-width: 16.6666%;
	}
	.col-md-1 {
		-ms-flex: 0 0 8.3333%;
		flex: 0 0 8.3333%;
		max-width: 8.3333%;
	}
}


/*** bootstrap extras ***/
.tab-pane:not(:first-of-type) > fieldset.fborder:first-child {
	border: none;
	margin: 0 -10px 0 -10px;
}
.tab-pane fieldset:first-child > legend {
	display: none;
}
td.subform-action {
	width: 1%;
}

@media screen and (min-width: 768px) {
	.form-post-edit {
		padding: 0;
	}
}


/*** dialog + polyfill ***/
dialog {
	display: none;
	position: absolute;
	z-index: 999999;
	left: 0;
	right: 0;
	width: -moz-fit-content;
	width: -webkit-fit-content;
	width: fit-content;
	height: -moz-fit-content;
	height: -webkit-fit-content;
	height: fit-content;
	margin: auto;
	padding: 0;
	background: #fff;
	color: #000;
	border: 1px solid #999;
	transition: all 0.2s linear;
}
dialog[open] {
	display: block;
}
dialog::backdrop,
dialog + .backdrop {
	position: fixed;
	top: 0;
	right: 0;
	bottom: 0;
	left: 0;
	background: rgba(0,0,0,0.2);
}
._dialog_overlay {
	position: fixed;
	top: 0;
	right: 0;
	bottom: 0;
	left: 0;
}
dialog.fixed {
	position: fixed;
	top: 50%;
	transform: translate(0, -50%);
}


.modal-dialog {
	border-radius: 4px;
	transform: translate(0, -50%) scale(0.1);
	opacity: 0.1;
	min-width: 300px;
	max-width: 600px;
}
.modal-full {
	width: 80vw;
	max-width: none;
}
*::-ms-backdrop, .modal-dialog { width: 600px; }	/* IE 11 max- cant center */
@media screen\0 { .modal-dialog { width: 600px; } } /* IE 9,10 */

.modal-dialog.jdialog-show {
	transform: translate(0) scale(1);
	opacity: 1;
}
.modal-dialog.jdialog-show.fixed {
	transform: translate(0, -50%) scale(1);
}
.modal-header .btn-close {
	box-sizing: content-box;
	background: transparent url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23000'%3e%3cpath d='M.293.293a1 1 0 011.414 0L8 6.586 14.293.293a1 1 0 111.414 1.414L9.414 8l6.293 6.293a1 1 0 01-1.414 1.414L8 9.414l-6.293 6.293a1 1 0 01-1.414-1.414L6.586 8 .293 1.707a1 1 0 010-1.414z'/%3e%3c/svg%3e") center/1em auto no-repeat;
	width: 1.2em;
	height: 1.2em;
	color: #000;
	border: none;
	opacity: 0.5;
}
.modal-header .btn-close:hover {
	opacity: 0.9;
	cursor: pointer;
}
.modal-header {
	display: flex;
	justify-content: space-between;
	border-radius: 3px 3px 0 0;
	padding: 15px 15px 10px 15px;
	border-bottom: 1px solid #999;
	background: #f4f4f4;
}
.modal-header ~ iframe {
	border-top: 1px solid #f4f4f4;
	margin-top: -1px;
}
.modal-header h1 {
	font-weight: normal;
	font-size: 1.2em;
	line-height: 1em;
	margin: 0 5px 0 0;
	padding: 0;
}
.modal-body {
	padding: 0 15px;
	margin: 15px 0;
}
.modal-frame {
	border: none;
	padding: 0;
	margin: 0;
	width: 100%;
	height: 80vh;
}
.modal-body input:not([type="checkbox"]):not([type="radio"]) {
	width: 100%;
}
.modal-footer {
	border-radius: 0 0 3px 3px;
	padding: 6px 12px;
	text-align: right;
	border-top: 1px solid #999;
	background: #f4f4f4;
}
.modal-footer > * {
	margin: 3px;
}

@media screen and (max-width: 640px) {
	.modal-full { width: 100%; }
}
