/*
div.WebCMSToolsWrapper {
	position: fixed; top: 100px; left: 0; z-index: 9999;
	background-color: rgba(0,0,0,0.6); color: #f3f3f3;
	border: 1px solid #ddd; border-style: solid solid solid none;
}
	div.WebCMSToolsWrapper a { color: #ddd; text-decoration: none; }
	div.WebCMSToolsWrapper a:hover {}
	div.WebCMSToolsWrapper a img { transition: transform .5s; }
	div.WebCMSToolsWrapper a:hover img { transform: rotate(180deg); }

	a.WebCMSToolsTrigger {
		display: block;
		position: absolute; top: -1px; right: -36px;
		width: auto; height: auto;
		padding: 5px;
		border: 1px solid #ddd; border-style: solid solid solid none;
		border-radius: 0 3px 3px 0;
		background-color: rgba(0,0,0,0.2);
		font: normal 9pt Arial;
		line-height: 1em;
	}
	div.WebCMSTools { display: block; }
	div.WebCMSTools ul { margin: 0; padding: 0; list-style-type: none;  }
	div.WebCMSTools ul li,
	div.WebCMSTools ul li a { display: block; }
	div.WebCMSTools ul li a { padding: 5px 10px; transition: background-color .5s; }
	div.WebCMSTools ul li a:hover { background-color: rgba(255,255,255,1); color: #444; }
*/

.WebCMSToolsWrapper {
    position: fixed;
    z-index: 9999;
    width: 400px;
    left: -400px;
    background-color: rgba(0, 0, 0, 0.8);
    color: #eee;
    border-top: 1px solid #fff;
    border-right: 1px solid #fff;
    border-bottom: 1px solid #fff;
    border-bottom-right-radius: 10px;
    max-height: 100%;
}
.WebCMSToolsWrapper {
    text-align: left;
    font-family: Arial, sans-serif;
    text-shadow: none;
    padding: 0;
}
.WebCMSToolsWrapper hr {
    border: 1px solid white;
    border-style: solid none none;
    background-color: white;
    width: 100%;
    max-width: 100%;
}
.WebCMSToolsWrapper .btn {
    font-family: Arial, sans-serif;
    border-radius: 0.25rem;
    font-weight: 400;
    text-transform: none;
}
/*.WebCMSToolsWrapper a,*/
.WebCMSToolsWrapper a.nav-link {
    color: #eee;
    transition: all 0.3s;
    border-radius: 0;
}
.WebCMSToolsWrapper a.nav-link:hover {
    text-decoration: none;
    background-color: #fff;
    color: #333;
}

a.WebCMSToolsTrigger {
    display: block;
    position: absolute;
    top: 70px;
    right: -32px;
    width: auto;
    height: auto;

    border: 1px solid #fff;
    border-style: solid solid solid none;
    border-radius: 0 3px 3px 0;
    background-color: #333;

    font: normal 9pt Arial;
    line-height: 1em;
}
.WebCMSToolsWrapper a.WebCMSToolsTrigger {
    padding: 8px;
    background-color: #333;
    color: #eee;
}
.WebCMSToolsWrapper a.WebCMSToolsTrigger {
    transition: color 0.3s;
}
.WebCMSToolsWrapper a.WebCMSToolsTrigger:hover {
    color: #fff;
}

/*---- Tools Wrapper -----
/*------------------------*/
div.WebCMSTools {
    position: relative;
    z-index: 1;
    max-height: 100%;
    overflow-y: auto;
}

div.WebCMSToolsForm {
    position: absolute;
    z-index: 2;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #333;
    color: #eee;
    border-bottom-right-radius: 10px;
    display: none;
}
div.WebCMSToolsContent,
div.WebCMSToolsForm form {
    height: calc(100% - 100px);
    overflow: auto;
}

div.WebCMSTools .nav-item:first-child,
div.WebCMSTools .nav-item {
    display: block !important;
} /* fix bug .nav-item:first-child { display: none; } */

div.WebCMSToolsForm .page-header {
    padding: 10px;
}
div.WebCMSToolsForm .page-header button {
    position: absolute;
    top: 10px;
    right: 10px;
}

/*---- Code editor -----
/*----------------------*/
.codeEditorWrapper {
    border: 1px solid;
    min-height: 200px;
    width: 100%;
}

/*---- Widget -----
/*-----------------*/
.webcms-widget a {
    color: black;
    border: 1px solid black;
    padding: 4px;
    margin: 0.5em 0;
}
.webcms-widget a:hover {
    cursor: pointer;
}

.widget-item {
    border: 1px solid #ddd;
    border-radius: 4px;
    margin: 0.5em 0.5%;
    padding: 4px 8px;
    width: 49%;
    float: left;
    height: 50px;
    overflow: hidden;
}
.widget-item p {
    margin: 0;
    padding: 0;
    font-size: 0.9em;
}

/*------------------*/
/* editable content */
/*------------------*/
.ec,
.isModule,
.isBlock {
    position: relative;
    min-height: 100px;
}
.wtools {
    position: absolute;
    z-index: 9999;
    top: 0;
    left: 0;
    display: none;
    color: #444 !important;
    background-color: rgba(255, 255, 255, 1) !important;
    border: 1px solid #444;
    box-sizing: border-box;
}
.wtools a {
    color: #444 !important;
    display: inline-block;
    margin: 0;
    margin-right: -4px; /* trick space between inline-block */
    padding: 4px 6px;
    border-left: 1px solid #444;
    /*background-color: rgba(255,255,255,1);
  border: 1px solid #444;*/
    vertical-align: baseline;
    text-decoration: none;
    min-width: 35px;
    text-align: center;
}
.wtools a:first-child {
    border-left: 0;
}
.wtools a:hover {
    background-color: #444 !important;
    color: white !important;
}
.wtools a span {
}

/* show tools */
.isModule:hover .wtools,
.isBlock:hover .wtools {
    display: block;
}
/* hide tools on editing content */
.isModule:hover .wtools.editorActive,
.isBlock:hover .wtools.editorActive {
    display: none;
}

/*
div.ec div.wtools a.edit { display:none; width:21px; height:20px; background:transparent url(img/buttons.png) no-repeat 0 0; }
div.ec div.wtools a.delete,
div.ec div.wtools a.deleteBlogPost,
div.ec div.wtools a.deletePortfolio { display:block; width:21px; height:20px; background:transparent url(img/buttons.png) no-repeat 0 -22px; }
div.ec div.wtools a.move,
div.ec div.wtools a.movePortfolio { display:block; width:21px; height:21px; background:transparent url(img/buttons.png) no-repeat 0 -67px; }
div.ec div.wtools a.viewArchives { display:block; width:21px; height:20px; background:transparent url(img/buttons.png) no-repeat 0 -90px; }
*/
div.ec div.column_infos div.wtools a.webcms_moveWebContent {
    display: none;
    border: 1px solid red;
}
/*div.ec div.wtools a.addPicture { display:block; width:21px; height:21px; background:transparent url(img/buttons.png) no-repeat -27px -89px; }*/

/* webcmsBasicTools */
.webcmsBasicTools {
    position: absolute;
    top: 30px;
    right: 30px;
    z-index: 999;
    display: block;
    padding: 4px 6px;
}
.webcmsMainWrapper .webcms_tplLevel1:first-child .webcmsBasicTools {
    top: 60px;
}
.webcmsBasicTools a {
    color: #444;
}
.webcmsBasicTools a span {
    background-color: #fff;
}
.modal-title span {
    display: inline-block;
    font-size: 0.75rem;
    margin-left: 1em;
    color: rgba(0, 0, 0, 0.4);
}

/*------------------*/
/* Switch		        */
/*------------------*/
.switch {
    font-size: 1rem;
    position: relative;
}
.switch input {
    position: absolute;
    height: 1px;
    width: 1px;
    background: none;
    border: 0;
    clip: rect(0 0 0 0);
    clip-path: inset(50%);
    overflow: hidden;
    padding: 0;
}
.switch input + label {
    position: relative;
    min-width: calc(calc(2.375rem * 0.8) * 2);
    border-radius: calc(2.375rem * 0.8);
    height: calc(2.375rem * 0.8);
    line-height: calc(2.375rem * 0.8);
    display: inline-block;
    cursor: pointer;
    outline: none;
    user-select: none;
    vertical-align: middle;
    text-indent: calc(calc(calc(2.375rem * 0.8) * 2) + 0.5rem);
}
.switch input + label::before,
.switch input + label::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: calc(calc(2.375rem * 0.8) * 2);
    bottom: 0;
    display: block;
}
.switch input + label::before {
    right: 0;
    background-color: #dee2e6;
    border-radius: calc(2.375rem * 0.8);
    transition: 0.2s all;
}
.switch input + label::after {
    top: 2px;
    left: 2px;
    width: calc(calc(2.375rem * 0.8) - calc(2px * 2));
    height: calc(calc(2.375rem * 0.8) - calc(2px * 2));
    border-radius: 50%;
    background-color: white;
    transition: 0.2s all;
}
.switch input:checked + label::before {
    background-color: #08d;
}
.switch input:checked + label::after {
    margin-left: calc(2.375rem * 0.8);
}
.switch input:focus + label::before {
    outline: none;
    box-shadow: 0 0 0 0.2rem rgba(0, 136, 221, 0.25);
}
.switch input:disabled + label {
    color: #868e96;
    cursor: not-allowed;
}
.switch input:disabled + label::before {
    background-color: #e9ecef;
}
.switch.switch-sm {
    font-size: 0.875rem;
}
.switch.switch-sm input + label {
    min-width: calc(calc(1.9375rem * 0.8) * 2);
    height: calc(1.9375rem * 0.8);
    line-height: calc(1.9375rem * 0.8);
    text-indent: calc(calc(calc(1.9375rem * 0.8) * 2) + 0.5rem);
}
.switch.switch-sm input + label::before {
    width: calc(calc(1.9375rem * 0.8) * 2);
}
.switch.switch-sm input + label::after {
    width: calc(calc(1.9375rem * 0.8) - calc(2px * 2));
    height: calc(calc(1.9375rem * 0.8) - calc(2px * 2));
}
.switch.switch-sm input:checked + label::after {
    margin-left: calc(1.9375rem * 0.8);
}
.switch.switch-lg {
    font-size: 1.25rem;
}
.switch.switch-lg input + label {
    min-width: calc(calc(3rem * 0.8) * 2);
    height: calc(3rem * 0.8);
    line-height: calc(3rem * 0.8);
    text-indent: calc(calc(calc(3rem * 0.8) * 2) + 0.5rem);
}
.switch.switch-lg input + label::before {
    width: calc(calc(3rem * 0.8) * 2);
}
.switch.switch-lg input + label::after {
    width: calc(calc(3rem * 0.8) - calc(2px * 2));
    height: calc(calc(3rem * 0.8) - calc(2px * 2));
}
.switch.switch-lg input:checked + label::after {
    margin-left: calc(3rem * 0.8);
}
.switch + .switch {
    margin-left: 1rem;
}

/*----------------------*/
/* WebcmsFormWrapper    */
/*----------------------*/
.webcmsFormWrapper {
    text-align: left;
    text-shadow: none;
    color: #444;
}
.webcmsFormWrapper a:not(.btn) {
    color: #444;
}
.webcmsFormWrapper a:not(.btn):hover {
    color: #000;
}
