/* templateeditor */

.wwtemplateeditor{
    width: 100%;
    box-sizing: border-box;
    float:left;
    display:flex;
    justify-content: space-between;
    position: relative;
}

.wwtemplateeditor .removetypelink{
    display: block;
}

.wwtemplateeditor_view_overlay{
    width: 100%;
    height: 100%;
    position:absolute;
    top:0px;
    left:0px;
    z-index: 5;
}

.wwtemplateeditor .page{
    background-color: white;
    box-shadow: 0px 0px 10px #b3b3b3;
    float: left;
    cursor: default !important;
    overflow-x: hidden;
    background-image: url('index.php?script=Download&stream=true&fid=203&u=100&elementid=n2n');
    background-size: 100%;
    background-repeat: no-repeat;
    box-sizing: border-box;
}

.wwtemplateeditor .eye{
    float: right;
    top: 0pt;
    top: 0px;
    right: 0px;
    color: #de8cde ;
}

.wwtemplateeditor.view .eye{
    display: none;
}




.wwtemplateeditor .selectionoverlay{
    position: absolute;
    background-color: rgba(224, 224, 224, 0.51);
}

.wwtemplateeditor .page p{
    margin: 0px;
}

.wwtemplateeditor .pagescontainer{
    align-self: initial;
}

.wwtemplateeditor .pagescontainer .page1 {
    overflow:visible
}

.wwtemplateeditor .pagescontainer.pagesettingsmode .page1 {
    overflow: hidden;
    position:relative;
}

.wwtemplateeditor .pagescontainer.pagesettingsmode .page2 {
    overflow: hidden;
    position:relative;
}

.wwtemplateeditor .pagescontainer.pagesettingsmode .body{
    height: 100%;
    box-sizing: border-box;
}

.wwtemplateeditor .page2{
    clear:left;
    margin-top: 20px !important;
}

.wwtemplateeditor .pagedummycontent{
    height: 100%;
    box-sizing: border-box;
}

.wwtemplateeditor .page1{
    position: relative;
}

.wwtemplateeditor .marginlinehorizontal{
    position: absolute;
    left:0px;
    top:0px;
    width: 100%;
    height: 3px;
    border-top: 1px dashed var(--primary);
    margin-bottom: 3px;
    cursor: row-resize;
}

.wwtemplateeditor .marginlinevertical{
    position: absolute;
    left:0px;
    top:0px;
    height: 100%;
    width: 3px;
    border-left: 1px dashed var(--primary);
    margin-right: 3px;
    cursor: col-resize;
}

.wwtemplateeditor .floatingboxresizegrip{
    width: 10px;
    height: 10px;
    border: 1px solid black;
    position: absolute;
    right:0px;
    bottom: 0px;
    cursor: nwse-resize;
    z-index:5;
    margin-right:-5px;
    margin-bottom: -5px;
}

.wwtemplateeditor .imageresizegrip{
    width: 10px;
    height: 10px;
    border: 1px solid black;
    position: absolute;
    right:0px;
    bottom: 0px;
    cursor: nwse-resize;
    z-index:5;
    margin-right:-5px;
    margin-bottom: -5px;
}

.wwtemplateeditor .tdresizegrip{
    width: 4px;
    height: 100%;
    position: absolute;
    right:0px;
    cursor: col-resize;
    z-index:5;
}

.wwtemplateeditor .trresizegrip{
    width: 100%;
    height: 4px;
    position: absolute;
    bottom:0px;
    cursor: row-resize;
    z-index:5;
}

.wwtemplateeditor .backtocontentlink{
    padding: 5px;
    box-sizing:border-box;
    text-align:center;
    margin-bottom: 10px;
    border-radius:5px;
    border: 2px solid #FFF391 !important;
    background-color: #FDFFCF;
    float: left;
    width: 21cm;
    clear: left;
}

.wwtemplateeditor .gotopagesettingstlink{
    padding: 5px;
    box-sizing:border-box;
    text-align:center;
    margin-bottom: 10px;
    border-radius:5px;
    border: 2px solid #DEE7F8 !important;
    background-color: #DEE7F8;
    float: left;
    width: 21cm;
    clear: left;
}

.wwtemplateeditor .differentheaderfirstpagelink{
    padding: 5px;
    box-sizing:border-box;
    text-align:center;
    margin-bottom: 10px;
    border-radius:5px;
    border: 2px solid #DEE7F8 !important;
    background-color: #DEE7F8;
    float: left;
    width: 21cm;
    clear: left;
    margin-top: 30px;
}


.wwtemplateeditor .forceshow{
    display: block !important;
}

.wwtemplateeditor .replacement{
    padding: 2px;
    border-radius: 3px;
    margin-right: 5px;
    margin-top:5px;
    background-color: #eaeaea;
    display: inline-block;
    color:black;
    font-size:11px;
    cursor: pointer;
}

.wwtemplateeditor .dropindicator{
    width: 100%;
    padding: 5px;
    box-sizing:border-box;
    text-align:center;
    border: 3px solid orange;
    margin-top: 10px;
    margin-bottom: 10px;
    border-radius:5px;
    background-color: rgba(255, 165, 0, 0.1);
}
.wwtemplateeditor .dropindicator:after{
    content: 'Drop here';
    color: grey;
}

.wwtemplateeditor .validreplacement{
    background-color: #eaeaea;
    border-radius: .2em;
}

.wwtemplateeditor .invalidreplacement{
    background-color: #ffc2c2;
    border-radius: .2em;
}

.wwtemplateeditor span.validreplacement span.validreplacement { /*mag niet voorkomen, gaat nog iets mis blijkbaar*/
    background-color: red;
}

.wwtemplateeditor .dragmovetargetelparent {
    background-color: rgba(50,145,240,.1);
}
.wwtemplateeditor .dragmovetargetel{
    content:'↕';
    cursor: move;
    position: absolute;
    top: 0px;
    font-size: 25px;
    text-align:center;
    padding: 2px;
    background-color: rgba(50,145,240,.1);
    color: #8c8c8c;
    right: -24px;
    width: 20px;
    height: 30px;
    border-top-right-radius:4px;
    border-bottom-right-radius:4px;
}



/* properties & propertiespanel */

.wwpropertiespanelcontainer{
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.55);

    box-sizing:border-box;
    padding-top:70px;
    position: fixed;
    top: 0px;
    left: 0px;
    z-index:10;
}

.wwpropertiespanel{
    width: 800px;
    margin-top: 100px;
    margin: 0px auto;
    background-color: white;
    border-radius: 4px;
    box-shadow: 0px 0px 10px #b3b3b3;
}

.wwpropertiespanel .crumble{
    font-size : smaller;
    width: 100%;
    background-color: #e0e0e0;
    padding: 10px;
    box-sizing: border-box;
    border-top-left-radius: 4px;
    border-top-right-radius: 4px;
}



.varnamelabel{
    position: absolute;
    top: 1px;
    font-size: 10px;
    padding: 2px;
    background-color: var(--bg_orange);
    border-radius: 4px;
    border-top-right-radius: 4px;
    color: white;
    left: -48px;
}

.wwtemplateeditor.view .varnamelabel{
    display:none;
}

.oldlabelindicator{
    position: absolute;
    top: 1px;
    font-size: 10px;
    padding: 2px;
    background-color: rgba(255, 0, 141, 0.38);
    border-radius: 4px;
    border-top-right-radius: 4px;
    color: white;
}

.wwtemplateeditor.view .oldlabelindicator{
    display:none;
}

.wwpropertiespanel .form td{
    vertical-align: top;
    line-height: 1.7;
}

.wwpropertiespanel .form{
    padding: 20px;
    box-sizing: border-box;
    width: 100%;
}

.wwpropertiespanel .property.advanced{
    /*background-color: grey;*/
}

.wwpropertiespanel .property.colspan {
    width: 70px;
}

.wwpropertiespanel .property.backgroundcolor {
    width: 80px;
}

.wwpropertiespanel .property.rendercondition {
    width: 400px;
}

.wwpropertiespanel .property.defaultfont table{
    width: 100%;
}

.wwpropertiespanel .property.defaultfont div{
    float: left;
    margin-left: 5px;
}

.wwpropertiespanel input[type=range]{
    width: 200px;
}

.wwpropertiespanel .columnwidths input[type=range]{
    width: 300px;
    float: left;
}

.wwpropertiespanel .sizeindicator{
    float: right;
    margin-left: 3px;
    font-size: 12px;
    color: grey;
    margin-top: 7px;
}

.wwpropertiespanel table{
    width: 100%;
}

.wwpropertiespanel .linkdiv{
    display:inline-block;
}

.wwpropertiespanel .linkdiv .childlinks{
    position: absolute;
    width: 150px;
    height: auto;
    padding:5px;
}

.wwpropertiespanel .linkdiv .childlinks .childlinkssubdiv{
    background-color: white;
    padding:5px;
    border-radius: 4px;
    box-shadow: 0px 0px 10px #b3b3b3;
    line-height: 25px;
}

.wwpropertiespanel .linkdiv .childlinks a.childlink{
    display:block;
}

.wwpropertiespanel .linkdiv:hover .childlinks{
    display:block;

}

.wwpropertiespanel .linkdiv .childlinks{
    display:none;
}

.wwpropertiespanel .notincurrenttrail{
    color: grey;
}

/* canvaselements */

.wwtemplateeditor .canvaselement.linktoviewerbutton{
    display:inline-block;
}

.wwtemplateeditor .canvaselement.pagebreak{
    box-shadow: inset 0px 0px 10px 0px #b3b3b3;
    height: 20px;
    background-color: white;
}

.wwtemplateeditor .canvaselement.pagebreak .cover{
    width: 40px;
    height: 20px;
    position: absolute;
    background-color: white;
    top: 0px;
}

.wwtemplateeditor .canvaselement.pagebreak .cover.coverleft{
    right: 0px;
}
.wwtemplateeditor .canvaselement.pagebreak .cover.coverright{
    left: -7px;
    top: 0px;
}

.wwtemplateeditor .canvaselement .td_innerdiv{
    box-sizing:border-box;
    overflow:hidden;
}

.wwtemplateeditor .canvaselement.header{
    box-sizing:border-box;
    overflow:hidden;
}
.wwtemplateeditor .canvaselement.footer{
    box-sizing:border-box;
    overflow:hidden;

    display: flex;
    flex-direction: column-reverse;
}

.wwtemplateeditor .canvaselement.body{
    /*de page margins zijn eigenlijk de body padding*/
    border: 1px solid white;
}

.wwtemplateeditor .canvaselement{
    position: relative;
}

.wwtemplateeditor .canvaselement.image{
    overflow:hidden;
}

.wwtemplateeditor .canvaselement.imagevar{
    overflow:hidden;
    background-color: #eaeaea;
}

.wwtemplateeditor .canvaselement.floatingbox{
    box-shadow: 0px 0px 10px 0px #e8e7e4;
    overflow: hidden;
}

.wwtemplateeditor .canvaselement.body:hover{
    background-color: initial !important;
}


.wwtemplateeditor .canvaselement.layouttable{
    display: table;
    table-layout: fixed;
    border-collapse: collapse;
    width:1px; /*dummy width. This way, the table will render like it will in Word. The cellwidths determine the actual table with (in combination with overflow hidden and table-layout=fixed*/
}

.wwtemplateeditor .canvaselement.layouttablerow{
    display: table-row;
}

.wwtemplateeditor .canvaselement.image img {
    width: 100%;
    height: 100%;
}

.wwtemplateeditor .canvaselement.selected{
    background-color: rgba(50,145,240,.1);
    outline: 2px dotted var(--primary);
}

.wwtemplateeditor .canvaselement.body.selected{
    background: rgba(255,255,255,0);
}


.wwtemplateeditor .canvaselement.layouttablecell{
    display: table-cell;
    outline: 1px dashed #dedede;
    vertical-align: top;
    overflow:hidden;
    padding:0px;
}

.wwtemplateeditor.view .canvaselement.layouttablecell{
    outline: none;
}

.wwtemplateeditor .canvaselement.htmlblock, .wwtemplateeditor .canvaselement.emailcontenthtmlblock{
    white-space:pre-wrap;
    word-wrap:break-word;
}


.wwtemplateeditor .canvaselement.layouttableheaderrow td:first-child{
    overflow: visible;
}


.wwtemplateeditor .canvaselement.emailcontenthtmlblock:before{
    content:'✉';
    position: absolute;
    top: 0px;
    font-size: 10px;
    padding: 2px;
    background-color: yellowgreen !important;
    border-radius: 4px;
    color: white;
    right: 0px;
    width: 10px;
}

.wwtemplateeditor .canvaselement.layouttableheaderrow td:first-child:before{
    content:'★';
    position: absolute;
    top: 0px;
    font-size: 10px;
    padding: 2px;
    background-color: #de8cde !important;
    border-radius: 4px;
    color: white;
    left: -16px;
    width: 10px;
}

.wwtemplateeditor.view .canvaselement.layouttableheaderrow td:first-child:before{
    display :none;
}

.wwtemplateeditor .singleSizeProperty input[type=range]{
    width: 300px;
}



    /* library */

.snippetcontainer .dragpoint:hover{
    background-color: #acacac;
}
.snippetcontainer .dragpoint{
    color: white;
    font-weight: bold;
    cursor: hand;
    border-radius: 5px;
    padding: 3px;
    font-size: 12px;
    text-align: center;
    background-color: #c5c5c5;
    margin: 5px;
    width: 78px;
    height: 30px;
    line-height: 30px;
    float: left;
}



/* contextmenu */


.wwcontextmenudiv{
    position: fixed;
    width: 200px;
    background-color: white;
    box-shadow: 0px 0px 10px #b3b3b3;
    border-radius: 3px;
    z-index:10;
}

.wwcontextmenudiv .contextmenuitem.createNewChildSubmenu:hover .contextsubmenudiv{
    display: block;
}

.wwcontextmenudiv .contextsubmenudiv{
    display: none;
    margin-left:190px;
    position: fixed;
    width: 200px;
    background-color: white;
    box-shadow: 0px 0px 10px #b3b3b3;
    border-radius: 3px;
    z-index:10;
}

.wwcontextmenudiv .contextmenuitem{
    font-size: 12px;
    width: 100%;
    padding: 2px 10px 2px 10px;
    line-height: 24px;
    cursor: pointer;
    box-sizing: border-box;
    color: grey;
}

.wwcontextmenudiv .contextmenuitem:hover{
    background-color: #eee;
}

.wwcontextmenudiv .contextmenuitemspacer{
    width: 100%;
    height: 1px;
    background-color: #c7c7c7;
    margin-top:10px;
    margin-bottom:10px;
}