/* BS */
.adminTopMargin {
	margin-top: 15px;
}
.adminNoMargin {
	margin: 0;
}

.alert-sm {
	padding: 7px 7px;
}

.form-group.form-group-condensed,
.form-group.form-group-condensed .form-group {
	margin-bottom: 1px;
}

.inputAdmin {
	max-width: 600px;
}
.inputAdminShort {
	max-width: 350px;
}

.btnAdmin {		
	min-width: 130px;	
	margin-top: 10px;
}
.btnGroupAdmin {
	margin-top: 10px;
}
.btnGroupAdmin .btnAdmin {
	margin-top: 0;
}
@media (max-width: 767px) {
	.btnAdmin {		
		width: 100%;
	}	
	.btnGroupAdmin {
		width: 100%;	
	}
	.btnGroupAdmin2 > .btn {	
		width: 80%;
	}
	.btnGroupAdmin2 > .btn + .btn {
		width: 20%;
	}
	.admin-xs-space {
		margin-top: 10px;
	}
}

/* HLAVICKA */
#adminHeader {	
	padding: 20px 15px;
	color: #F0F0F0;
	background-color: #807E7E;	
	background-repeat: repeat-x;
}
#adminHeader H1 {	
	margin: 0;
	font-size: 30px;
}
#adminHeader H1 A {	
	color: inherit;
	text-decoration: none;
}

#adminLoginBox {
	border-left: 1px solid #FFFFFF;
}
#adminLoginBox .btn-link,
#adminLangBox .btn-link {
	color: #F0F0F0;
}
#adminLoginBoxName {
	margin-top: 7px;
	margin-right: 15px;
}
#adminLangBox {
	text-align: right;
}
#adminLangBox UL.langs {
	list-style: none;
	margin: 0;
	padding: 0;
	text-transform: uppercase;
}
#adminLangBox UL.langs LI {
	display: inline-block;
	padding: 0 0 0 2px;
}
#adminLangBox UL.langs LI.active A {
	font-weight: bold;
}

@media (max-width: 991px) {
	#adminHeader {
		padding-left: 0px;
	}
	#adminLoginBox {
		border-left: 0;
	}
}
@media (max-width: 767px) {	
	#adminHeader H1 {		
		font-size: 22px;
	}
	#adminLoginBox .btn-link {
		padding-bottom: 2px;
	}
	#adminLangBox {
		text-align: left;
	}
}

/* KONTEJNER */
#adminMain {
	margin-bottom: 100px;	
}

/* MENU */
#adminMenu {
	background-color: #F0F0F0;
}
#adminMenu .nav {
	margin: 0 !important;
	padding: 0 !important;	
}
#adminMenu .nav LI {
	border-top: 1px solid #807E7E;
	margin: 0 !important;
	padding: 0 !important;
}
#adminMenu .nav LI:first-child {
	border-top: 0;
}
#adminMenu .nav LI A {
	-webkit-border-radius: 0 !important;
	-moz-border-radius: 0 !important;
	border-radius: 0 !important;
}
#adminMenu .nav LI A:focus,
#adminMenu .nav LI A:hover {
	/*background-color: #E1E1E1;*/
}
@media (max-width: 991px) {
	#adminMenu {		
		margin-right: 0;
	}
	#adminMenu .nav LI {
		text-align: center;
	}
	#adminMenuList.collapse {
		display: none !important;
	}
	#adminMenuList.collapse.in {
		display: block !important;
	}
}

/* OBSAH */
#adminContent {
}
#adminContent .adminTitle {
	padding: 0 0 20px 0;
	margin: 25px 0 25px 0;
	border-bottom: 1px solid #E1E1E1;
}
@media (min-width: 992px) {
	#adminContent {
		padding-left: 25px;
	}
}

#adminContent DIV.editing LABEL.required:after,
#adminContent DIV.editingData LABEL.required:after {
	content: " *";
	vertical-align: super;
    font-size: smaller;
}
#adminContent DIV.notediting LABEL.required:after {
	content: "";
}

/* PANELY */
/* detail form */
#adminContent .panelDetail {
	background-color: #F9F9F9;
}
#adminContent .panelDetail .form-horizontal { /* ! */
	margin-top: 10px;	
}
#adminContent .panelDetail .form-horizontal .form-group { /* ! */
	margin-bottom: 13px;
}
#adminContent .panelDetail .form-horizontal > .formGroupCondensed,
#adminContent .panelDetail .form-horizontal.readonly > .form-group {
	margin-bottom: 0px;
}
#adminContent .panelDetail {
	margin-bottom: 10px;
}

/* filter */
#adminContent .panelFilter {
	background-color: #F9F9F9;	
}
#adminContent .adminTitle + .panelFilter {
	margin-top: -25px;
	border-top: 0;
	-webkit-border-top-left-radius: 0 !important;
	-moz-border-top-left-radius: 0 !important;
	border-top-left-radius: 0 !important;
	-webkit-border-top-rigt-radius: 0 !important;
	-moz-border-top-right-radius: 0 !important;
	border-top-right-radius: 0 !important;
}
#adminContent .panelFilter .panel-body .form-horizontal {
	margin-top: 10px;
}

/* node preview */
#adminContent .panelPreview > FIELDSET {
	padding: 0 5px 10px 5px;
	border-radius: 5px;
	background-color: #F8F8F9;
}
#adminContent .panelPreview > FIELDSET + FIELDSET {
	margin-top: 15px;
}
#adminContent .panelPreview > FIELDSET > LEGEND {
	width: auto;
	margin: 0 5px 10px 5px;
	padding: 2px 5px;
	border: 1px solid #E5E5E5;
	border-radius: 5px;
	background-color: #FFFFFF;
}

/* TABULKY */
#adminContent .tableAdminList .controls {
	width: 80px !important;
	white-space: nowrap;
}
#adminContent .tableAdminList .controls-lg {
	width: 100px !important;
	white-space: nowrap;
}
#adminContent .tableAdminList .controls-sm {
	width: 40px !important;
	white-space: nowrap;
}
#adminContent .tableAdminList {
	border-bottom: 1px solid #DDDDDD;
	background-color: #FFFFFF;
}

#adminContent .tableAdminListM {
	max-width: 720px;
}
#adminContent .tableAdminListM TH,
#adminContent .tableAdminListM TD {
	vertical-align: middle;
}

/* TABS */
#adminContent .tab-pane.border {
	border: 1px solid #DDDDDD;
}
#adminContent .navTabsAdmin + .tab-content > .tab-pane,
#adminContent .nav-tabs + .tab-content > .tab-pane.border {	
	border: 1px solid #DDDDDD;
	border-top: 0;	
}
#adminContent .navTabsAdmin + .panel {	
	border-top: 0;
	-webkit-border-top-left-radius: 0 !important;
	-moz-border-top-left-radius: 0 !important;
	border-top-left-radius: 0 !important;
	-webkit-border-top-rigt-radius: 0 !important;
	-moz-border-top-right-radius: 0 !important;
	border-top-right-radius: 0 !important;
}
#adminContent .navTabsAdmin > li.active > a, 
#adminContent .navTabsAdmin > li.active > a:focus, 
#adminContent .navTabsAdmin > li.active > a:hover {
	background-color: #F9F9F9;
}
#adminContent .panel .navTabsAdmin > li.active > a, 
#adminContent .panel .navTabsAdmin > li.active > a:focus, 
#adminContent .panel .navTabsAdmin > li.active > a:hover {
	background-color: #FFFFFF;
}

#adminContent .navTabsAdmin + .tab-content .tab-pane,
#adminContent .tab-pane.border {
	padding: 20px 20px;	
}
#adminContent .tab-pane.border.border-sm {
	padding: 10px 10px;
}
#adminContent .panel .tab-pane { /* ! */
	background-color: #FFFFFF;
}

@media (max-width: 767px) { /* ! */
	.nav-tabs {
		border-bottom: 2px solid #dddddd !important;
	}
	.nav-tabs > li {
        float: none;
        border: 1px solid #dddddd;
    }
    .nav-tabs > li.active > a {
        border:none;
    }
    .nav > li > a:hover, .nav > li > a:focus,
    .nav > li > a:hover, .nav > li > a:focus,
    .nav-tabs > li.active > a, .nav-tabs > li.active > a:hover, .nav-tabs > li.active > a:focus
     {
        background: none;
        border-color: transparent;
    }
	.nav-tabs > li.active > a:hover {
		border: 0;
	}
	.nav-tabs > li.active,
	.nav-tabs > li.active > a, .nav-tabs > li.active > a:hover, .nav-tabs > li.active > a:focus {
		background-color: #337AB7 !important;
		color: #FFFFFF !important;
	}
}

/* PAGING */
#adminContent .adminPaging .pagination-onepage {
	display: none;
}

/* WELL */
#adminContent .wellDetailBottom {
	margin-bottom: 0;
}
#adminContent .tab-content + .wellDetailBottom {
	margin-top: 15px;
}

/* MODUL */
.main .listButtons {
	margin: 15px 0 15px 0;
}
.main .listButtons + .listButtons {
	display: none;
}
.main .detailButtons {
	margin-top: 15px;
}
.main .editingData + .detailButtons {
	margin-top: 0px;
}

/* module item detail form */
#adminContent .itemForm .panel-body {
	padding-top: 0px;
	padding-bottom: 0px;
}
#adminContent .itemForm .form-group.itemFormRow {
	border-top: 1px solid #EEEEEE;
	padding-top: 15px;
	margin-bottom: 15px;
}
#adminContent .itemForm .form-group.itemFormRow:first-child {
	border-top: 0;
}
#adminContent .itemForm .form-group.itemFormRow .form-group:last-child {
	margin-bottom: 0;
}
#adminContent .itemForm .itemFormHelp {
	margin-bottom: 0;
}

/* PRAVA V SELECT boxu */
OPTION.admin {
	color: red;	
}
OPTION.dataAdmin {	
	color: blue;
}
OPTION.reader {	
	color: #A0A0A0;	
}

/* RUZNE */
FIELDSET + FIELDSET {
	margin-top: 25px;
}

.nodeNavigation {
	font-size: 9pt;
}
.nodeNavigation A {
	font-weight: bold;
	text-decoration: none;
}

UL.formulaKeys {
	margin: 0;
	padding: 0;
}
UL.formulaKeys LI {
	float: left;	
	list-style: none;
	cursor: pointer;
}
UL.formulaKeys LI > SPAN {
	display: block;
	color: white;
	font-size: 7pt;
	font-weight: bold;
	background-color: #555555;
	margin: 2px 5px 2px 0;
	padding: 2px 10px 2px 10px;
}
UL.formulaKeys LI .help {
	font-size: 16px;
}

.codeedit {
	font-family: monospace;	
}
.codeedit SPAN {
	font-family: monospace;
}
P.codeedit,
DIV.codeedit {
	height: auto !important;
}

.itemLastAkt {
	text-align: right;
	font-size: 11px;
	white-space: normal;
}

UL.errors LI {
	margin: 0 0 0 10px;
	color: red;
}

.textarea-charcounter {
	border: 1px solid #898C95;
	background-color: #FFFFE1;
	color: black;
	padding: 2px 2px;
	font-size: 9px;
}

.sizeCol {
	text-align: right;
}

WIDGET {
	display: inline-block;
	position: relative;
	border: 1px dashed #000000;
	border-radius: 3px;
	padding: 3px 4px;
}
WIDGET:before {
	content: "Widget: " attr(data-module);
	display: block;
	padding: 1px;
	border-radius: 2px;
	font-size: 10px;
	line-height: 13px;
	text-align: left;
	color: #A94442;
	background-color: #F2DEDE;
}

/* STROM STRUKTURY */
.structureTree {    
    margin-bottom: 25px;
}

.structureTreeList,
.structureTreeList UL.structureTreeSubList {
	margin: 0;
	padding: 0;
	list-style: none;
}
.structureTreeList UL.structureTreeSubList {
	margin-left: 10px; /* indentation */	
	position: relative;
}
.structureTreeList UL.structureTreeSubList UL.structureTreeSubList {
	margin-left: 10px; /* (indentation/2) */
}
.structureTreeList UL.structureTreeSubList:before {
	content: "";
	display: block;
	width: 0;
	position: absolute;
	top: 0;
	bottom: 0;
	left: 0;
	border-left: 1px dotted;
}
.structureTreeList > LI,
.structureTreeList UL.structureTreeSubList > LI {
	margin: 0;
	padding: 0 0 0 40px; /* indentation + .5em */
	line-height: 30px; /* default list item's `line-height` */
	color: #337AB7;
	position: relative;
}
.structureTreeList > LI {
	padding-left: 0px;
}
.structureTreeList UL.structureTreeSubList > LI:before {
	content: "";
	display: block;
	width: 35px; /* same with indentation */
	height: 0;
	border-top: 1px dotted;
	margin-top: -1px; /* border top width */
	position: absolute;
	top: 16px; /* (line-height/2) */
	left: 0;
}
.structureTreeList UL.structureTreeSubList > LI:last-child:before {
	background: white; /* same with body background */
	height: auto;
	top: 16px; /* (line-height/2) */
	bottom: 0;
}
.structureTreeList UL.structureTreeSubList > LI:last-child {
	margin-bottom: 15px;
}

.structureTreeList UL.structureTreeSubList > LI:first-child:before {
	top: 31px;
}
.structureTreeList UL.structureTreeSubList > LI:first-child {
	padding-top: 15px;
}

.structureTreeList .structureNodeOpenClose {
	position: absolute;
	left: -9px;	
	top: 7px;
	font-size: 9px;	
	text-align: center;
}
.structureTreeList UL.structureTreeSubList > LI:first-child > DIV > .structureNodeOpenClose {
	top: 22px;
}

.structureTreeList LI > DIV {	
	display: inline-block;
}
.structureTreeList LI > DIV > .btn,
.structureTreeList LI > DIV > .btn-group {
	margin-right: 2px;
}
.structureTreeList LI > DIV > .label {
	display: inline-block;
	margin-right: 2px;
	padding: 5px 8px !important;
	font-size: 13px;
	font-weight: normal;
	color: #FFFFFF;
	background-color: #807E7E;	
	overflow: hidden;
	vertical-align: middle;	
}
.structureTreeList .structureNodeName {
	max-width: 250px;	
	text-overflow: ellipsis;	
	font-weight: bold !important;
}
.structureTreeList .structureNodeName A {
	color: #FFFFFF;
	text-decoration: none;
}
.structureTreeList .structureNodePos {
	background-color: #BBBBBB !important;
}
.structureTreeList .structureNodePos A {
	color: #FFFFFF;
	border-bottom: 1px dotted;
	text-decoration: none;
	outline: 0;
}
.structureTreeList .structureNodeLang {
	background-color: #BBBBBB !important;
	text-transform: uppercase;
}
.structureTreeList .structureNodeAttrs {
	font-size: 11px !important;
	cursor: default;
}

/* RYCHLA KNIHOVNA */
#adminLibraryBrowser #adminHeader,
#adminLibraryBrowser #adminMenu
{
	display: none;
}
#adminLibraryBrowser #adminContent {
	width: 100% !important;
}

/* BASE FLASHMESSAGE */
#base-flashmessages {
	position: fixed;
	z-index: 200;
	top: 25px;
	right: 25px;
	margin-left: 25px;
}
#base-flashmessages .base-flashmessage {
	float: right;
	clear: right;
	padding: 15px 25px;
	border: 2px solid #bce8f1;
	border-radius: 3px;
	background-color: #d9edf7;
	color: #31708f;
	box-shadow: 0px 1px 12px 3px rgba(128,126,126,0.75);
}
#base-flashmessages .base-flashmessage + .base-flashmessage {
	margin-top: 10px;
}
#base-flashmessages .base-flashmessage-success {
	border-color: #d6e9c6;
	background-color: #dff0d8;
	color: #3c763d;
}
#base-flashmessages .base-flashmessage-error,
#base-flashmessages .base-flashmessage-danger,
#base-flashmessages .base-flashmessage-fatal {
	border-color: #ebccd1;
	background-color: #f2dede;
	color: #a94442;
}
#base-flashmessages .base-flashmessage-warn,
#base-flashmessages .base-flashmessage-warning {
	border-color: #faebcc;
	background-color: #FCF8E3;
	color: #8a6d3b;
}

/* LIBRARY ITEMS PREVIEW */
.cms-items-previewlist {
	margin-bottom: 20px;
}
.cms-items-previewlist::after,
.cms-items-previewlist::before {
	content: " ";
	display: table;
}
.cms-items-previewlist::after {
	clear: both;
}
.cms-items-previewlist-item {
	float: left;
	margin: 4px 2px 0 2px;
}
.cms-items-previewlist-preview {
	background-color: #F9F9F9;
	height: 200px;
	width: 200px;
	text-align: center;
}
.cms-items-previewlist-item:hover .cms-items-previewlist-preview,
.cms-items-previewlist-item:hover .cms-items-previewlist-info {
	background-color: #F5F5F5;
}
.cms-items-previewlist-preview A {
	display: flex;
	align-items: center;
	justify-content: center;
	height: 200px;
	width: 200px;
	text-align: center;
}
.cms-items-previewlist-preview A,
.cms-items-previewlist-preview IMG {
	vertical-align: middle;
	margin-bottom: 0 !important;
}
.cms-items-previewlist-preview IMG {
	max-width: 100%;
	height: auto;
	max-height: 190px;
}
.cms-items-previewlist-info {
	background-color: #F9F9F9;
	text-align: center;
	margin-top: 1px;
	width: 200px;
	padding: 8px 4px;
}
.cms-items-previewlist-info B {
	display: block;
	width: 198px;
	margin-bottom: 2px;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
	font-size: 12px;
}
.cms-items-previewlist-info B + B {
	font-size: 10px;
}

.cms-items-previewlist-addon-before,
.cms-items-previewlist-addon-after {
	width: 100%;
	padding: 4px 8px;
	background-color: #F9F9F9;
}
.cms-items-previewlist-addon-after {
	margin-top: -16px;
	margin-bottom: 20px;
}

/* RUZNE */
.cke_editor TD {
	padding: 2px 2px !important;
}

.dropdown-item-checked A::before {
	position: absolute;
	left: .5rem;
	content: '✓';
	font-weight: 600;
}

/* CODEMIRROR */
.CodeMirror {
	border: 1px solid #DDDDDD;
}
.CodeMirrorWrapper {
	border: 1px solid #DDDDDD;
}
.CodeMirrorWrapper .CodeMirror {
	border-left: 0;
	border-right: 0;	
}
.CodeMirrorWrapper .CodeMirror-panel {
	padding: 10px 10px;
	background-color: #F9F9F9;
	background-image: linear-gradient(to bottom,#FAFAFA,#F5F5F5);
	box-shadow: 0 1px 0 #fff inset;
}

.CodeMirror-fullscreen,
.CodeMirrorWrapper-fullscreen {
	position: fixed !important;
	top: 0 !important; 
	left: 0 !important; 
	right: 0 !important; 
	bottom: 0 !important;
	height: auto !important;  
	z-index: 9 !important;
}

.CodeMirror .cm-cmsmodule-tag { 
	color: #4798B8; 
} 
.CodeMirror .cm-cmsmodule-blocktag { 
	color: #FF9900; 
}