body{
    background:#eee;
}
/*STYLE ALWAYS */

#formpage_wrapper{

    display:block;
    border: 1px solid #d1d1d1;
    box-shadow: 0 0 0 0.75pt #d1d1d1,0 0 3pt 0.75pt #ccc;
    margin:125px auto 20px auto;
    max-width: 210mm;
    min-height: 305mm;
    background-color:#fff;
    position:relative;
    padding: 1.8mm 3.4mm 11.7mm 3.4mm;
}

#formpage .formrow{
    min-height:30px;
}

.autosuggest {
    z-index: 9000 !important;
}

@media (max-width: 210mm){
    #formpage .formrow{
        margin-bottom: 15px;
    }
}


#formpage .compcontainer{
    min-height:30px;
}
#formpage .component{
    min-height:30px;
}
#formpage .header{
    width:100%;
}

#formpage textarea{
    resize: none;
}

#formpage .footer{
    width:100%;
    position:absolute;
    bottom:0px;
    width:100%;
}

footer {
    bottom: 0px;
    text-align: center;
    width: 100%;
    font-size: 10px;
    padding-top: 50px;
    color: #888;
}

footer a{
    color: #666;
}

footer a:hover{
    color: #222;
}


::-webkit-input-placeholder { /* WebKit browsers */
    font-style: oblique;
    font-size: 0.8em;
}
:-moz-placeholder { /* Mozilla Firefox 4 to 18 */
    font-style: oblique;
    font-size: 0.8em;
}
::-moz-placeholder { /* Mozilla Firefox 19+ */
    font-style: oblique;
    font-size: 0.8em;
}
:-ms-input-placeholder { /* Internet Explorer 10+ */
    font-style: oblique;
    font-size: 0.8em;
}


/*STYLE LIVE */

.dinA4_live{

}

.dinA4_live .hiddenRow{
    display: none !important;
}


.inputNotvalid {
    background: lightcoral;
}

/*STYLE STRUCTURE*/

.dinA4_structure .component{
    /*visibility: hidden;*/
    opacity: 0.4;
}
.dinA4_structure .formrow{
    /*border: 1px dashed rgba(255,0,0,0.5);*/
    background-color: #FFF5F5;
}

.formRowIcon {
    position: absolute;
    left: -32px;
    display: none;
    font: normal normal normal 16px/1.2 FontAwesome;
    text-rendering: auto;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    z-index: 1004;
}

.dinA4_structure .formRowIcon {
    display: inline-block;
}

/*.dinA4_structure .compcontainer:before {
    content: "Spalte: " attr(id);
 }
*/
.dinA4_structure .compcontainer{
    /*border: 1px dashed rgba(0,255,0,0.5);*/
    border: 1px solid rgba(0,0,0,0.5);
    background-color: #F5FFF5;
}
/*STYLE EDIT */


.dinA4_edit{
}
.dinA4_edit .row.options{
    border: 0px dashed rgba(0,0,0,0.1);
    box-shadow: 1px 0 10px 1px rgba(0,0,0,0.3);
    background-color:#eee;
    padding: 15px;
    position: relative;
}
.dinA4_edit .row.options:hover{
    border: 0px dashed rgba(0,0,0,0.2);
}
.dinA4_edit .compcontainer.drophover{
    background:#edd;
    position: relative;
}
.dinA4_edit .component.drophover{
    background:#ddd !important;
    position: relative;
}
.dinA4_edit .component.isDragging{
    opacity: 0.25;
    position: relative;
}
.dinA4_edit .compcontainer.isDragging{
    opacity: 0.25;
    position: relative;
}
.dinA4_edit .component *{
    pointer-events: none;
}
.dinA4_structure .component *{
    pointer-events: none;
}
.dinA4_edit .compcontainer.drophover:after, .dinA4_edit .compcontainer.drophover:before {
    top:0%;
    left: 50%;
    border: solid transparent;
    content: " ";
    height: 0;
    width: 0;
    position: absolute;
    pointer-events: none;
}

.dinA4_edit .compcontainer.drophover:before {
    border-top-color: #888;
    border-width: 8px;
    margin-left: -8px;
}
.dinA4_edit .component.drophover:after, .component.drophover:before {
    bottom: 0%;
    left: 50%;
    border: solid transparent;
    content: " ";
    height: 0;
    width: 0;
    position: absolute;
    pointer-events: none;
}

.dinA4_edit .component.drophover:after {
    border-top-color: #888;
    border-width: 8px;
    margin-left: -8px;
}


.dinA4_edit .editnow{
    border: 3px solid rgba(0,0,0,0.5) !important;
}
.dinA4_edit .formrow{
    /*border: 1px dashed rgba(0,0,0,0.1);*/
}
.dinA4_edit .formrow:hover{
    /*border: 1px dashed rgba(255,0,0,0.5);*/
    background-color: #FFF5F5;
}
.dinA4_edit .compcontainer{
    border: 1px dashed rgba(0,0,0,0.1);
    /*border: 1px dashed rgba(0,255,0,0.1);*/
}
.dinA4_edit .compcontainer:hover{
    /*border: 1px dashed rgba(0,255,0,0.5);*/
    border: 1px dashed rgba(255,0,0,0.5);
    background-color: #F5FFF5;
}

.dinA4_edit .component{
    border: 1px dashed rgba(0,0,0,0.0);
}
.dinA4_edit .component:hover{
    border: 1px dashed rgba(0,0,0,0.5);
    background-color: #F5F5FF;
    cursor: move;
}
.dinA4_edit .component input, .dinA4_structure .component input{
    cursor: move;
}


.dinA4_edit .header{
    border-bottom: 1px dotted #d1d1d1;
}
.dinA4_edit .footer{

    border-top: 1px dotted #d1d1d1;
}
.toolbar{
    min-height:40px;
}
.toolbar button{
    cursor: move;
}
a:not([href]) {
    cursor: pointer;
}
/* FIXES */
[draggable] {
    -moz-user-select: none;
    -khtml-user-select: none;
    -webkit-user-select: none;
    user-select: none;
    /* Required to make elements draggable in old WebKit */
    -khtml-user-drag: element;
    -webkit-user-drag: element;
    cursor:move !important;
}
.dinA4_live [draggable]{
    cursor:default;

}

/*wysiwyg_editor*/
.wysiwyg_editor {
    max-height: 250px;
    height: 250px;
    background-color: white;
    border-collapse: separate;
    border: 1px solid rgb(204, 204, 204);
    padding: 4px;
    box-sizing: content-box;
    -webkit-box-shadow: rgba(0, 0, 0, 0.0745098) 0 1px 1px 0 inset;
    box-shadow: rgba(0, 0, 0, 0.0745098) 0 1px 1px 0 inset;
    border-top-right-radius: 3px; border-bottom-right-radius: 3px;
    border-bottom-left-radius: 3px; border-top-left-radius: 3px;
    overflow: scroll;
    outline: none;
}
.wysiwyg_editor:focus{
    border-color:rgba(82, 168, 236, 0.8);
    outline:0;
    outline:thin dotted \9;
    -webkit-box-shadow:inset 0 1px 1px rgba(0,0,0,.075), 0 0 8px rgba(82,168,236,.6);
    -moz-box-shadow:inset 0 1px 1px rgba(0,0,0,.075), 0 0 8px rgba(82,168,236,.6);
    box-shadow:inset 0 1px 1px rgba(0,0,0,.075), 0 0 8px rgba(82,168,236,.6);
}

div[data-role="editor-toolbar"] {
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

.dropdown-menu a {
    cursor: pointer;
}
.btn-toolbar {
    padding: 10px 0px 10px 0px;
}

[contentEditable=true]:empty:not(:focus):before {
    content:attr(data-placeholder)
}

.imgUpload
{
    width: 0;
    height: 0;
    position:absolute
}

/*
        Font Sizes
        fs represents the font-size attribute; therefore,
        fs-five would be the equivalent to font-size: 5;
*/

.fs-Four {
    font-size: large;
}

.fs-Two {
    font-size: small;
}

.fs-One {
    font-size: x-small;
}

.fs-Three {
    font-size: medium;
}

.fs-Five {
    font-size: x-large;
}

.wysiwyg_editor{overflow:scroll; min-height:150px; max-height:450px}

#formpage_wrapper img{
    max-width:100%;
}
.formpage_notification p{
    display: block;
    unicode-bidi: embed;
    white-space: pre-line;
}

#formpage_comments{
    float:right;
    position: fixed;
    margin:0px 10px;
    right:0px;
    top:150px;
    max-width: 450px;
    /*
    border: 1px solid #d1d1d1;
    box-shadow: 0 0 4px rgba(0,0,0,0.1);
    background-color: #fff;
    */
    z-index: 5052;

    padding: 20px 10px;
}
#formpage_comments .alert{
    border:1px solid;
    padding:10px;
    min-width: 300px;
}
#formpage_comments:empty{
    display:none;
}

.btn-group.windowoptions{
    margin-top:-15px;
    margin-right:-15px;
}
.options {
    background: rgba(66, 107, 142, 0.92);
    border-radius: 10px;
    color: white;
    z-index:1010;
    position:absolute;
    margin:auto;
    padding:15px;
}

.options .row {
    display: inline;
    margin-left: 0px;
    margin-right: 12px;
    width: 100px;
}

.options .condition {
    width: 120px;
}

.options .data {
    width: 190px;
}

.options .operator {
    width: 50px;
}

.options h3 {
    margin-top: 10px;
    margin-bottom: 30px;
}

.options label {
    font-weight: normal;
}

.options a {
    color: #c1c3c0;
}

.form_name{
    display: inline-block;
    font-size: 24px;
    margin: 0px;
    float: left;
    color: #333;
    padding: 5px 5px 0px 8px;
    margin-top: 13px;
}
.form_name:empty{
    border:1px dashed #F00;
}

.nav>li>a{
    padding-top: 5px;
    padding-bottom: 5px;
}
.nav>li>a:first-child{
    padding-left: 8px;
}
.navbar-default{
    background-color: #fff;
}

.firstcontainer{
    padding-top:132px;
    min-height: 700px;
}

.navtoolbar{
    width:100%;
    background-color: #eee;
    padding:0px 0px 0px 15px;
    border-top:1px solid #ccc;
    border-bottom:1px solid #ccc;
    box-shadow: inset 0 1px 0 0 #fff;
}
.navtoolbar .toolbar_separator{
    border-left: 1px solid #d5d5d5;
    height: 33px;
    margin: 0 5px 0 4px;
    vertical-align: top;
    width:1px;
    display:inline-block;
}
.navtoolbar .btn-default {
    color: #333;
    font-size: 19px;
    background-color: transparent;
    border:1px solid #eee;
    margin: 1px 0px 0px 0px;
    padding: 0px 5px 0px 5px;
}
.navtoolbar .btn-default:hover {
    background-color: #eDeDeD;
    border-color:#ccc;
    color:#000;
}
.navbar-brand {
    height: 40px;
}
.navbar-brand img, .navbar-brand svg{
    width:150px;
}
@media (max-width: 767px){
    .navbar-brand img, .navbar-brand svg{
        width:100px;
        margin-top: -7px;
    }
}
.navbar-form {
    margin-top: 3px;
    margin-bottom: 0px;
}
.navbar .collapse{
    margin-left: 165px;
}
.navbar .collapse.in{
    margin-left: 0px;
}
.navbar .collapse .nav_account{
    float:right;
}
@media (max-width: 767px){
    .navbar .collapse.in .nav_account{
        float:left;
    }
}
@media (max-width: 767px){
    .row{
        margin-right: 0px;
    }
}

.navbar .nav_account{
    font-size: 10px;
    padding: 14px 0px 0px 0px;
}

@media print {
    nav{display:none;}
    #formpage_comments{display:none;}
    #formpage_save{display:none;}
    #formpage_wrapper{
        padding:0px !important;
        margin:0px !important;
        border: 0px solid #d1d1d1;
        box-shadow: none;
    }

    [class*="col-sm-"],[class*="col-md-"] {float: left!important;}
    .col-md-12,.col-sm-12 {width: 100%;}
    .col-md-11,.col-sm-11  {width: 91.66666666666666%;}
    .col-md-10,.col-sm-10  {width: 83.33333333333334%;}
    .col-md-9,.col-sm-9 {width: 75%;}
    .col-md-8,.col-sm-8 {width: 66.66666666666666%;}
    .col-md-7,.col-sm-7 {width: 58.333333333333336%;}
    .col-md-6,.col-sm-6 {width: 50%;}
    .col-md-5,.col-sm-5 {width: 41.66666666666667%;}
    .col-md-4,.col-sm-4 {width: 33.33333333333333%;}
    .col-md-3,.col-sm-3 {width: 25%;}
    .col-md-2,.col-sm-2 {width: 16.666666666666664%;}
    .col-md-1,.col-sm-1 {width: 8.333333333333332%;}

    ::-webkit-input-placeholder { /* WebKit browsers */
        color: white !important;
        font-size: 0%;
    }
    :-moz-placeholder { /* Mozilla Firefox 4 to 18 */
        color: white !important;
        font-size: 0%;
    }
    ::-moz-placeholder { /* Mozilla Firefox 19+ */
        color: white !important;
        font-size: 0%;
    }
    :-ms-input-placeholder { /* Internet Explorer 10+ */
        color: white !important;
        font-size: 0%;
    }


    .form-control {
        font-size: 12px;
        border: 0px;
        background: none;
        line-height: 1.42857143;
        padding: 0px;
        height: 20px;
    }
    .form-group {
        margin-bottom: 0px;
        margin-top: -2px
    }

    .radio {
        margin-bottom: 1px;
    }


    label {
        margin-bottom: 0px;
        font-size: 8px;
        font-weight: bold;
    }

    #formpage .component {
        min-height: 5px;

    }

    #formpage .compcontainer {
        min-height: 10px;
    }

    #formpage .formrow {
        min-height: 10px;
    }

    b {
        font-weight: bold;
        font-size: 12px !important;
    }

    hr, .component_horizontalrule {
        margin-top: 5px;
        margin-bottom: 0px;
    }

    .dontPrint {
        display: none;
    }

    .radio {
        display: inline;
        margin-left: 5px;
    }

    .radio label span {
        margin-left: 5px;
        position: relative;
    }

    .radio label input {
        position: relative !important;
    }

    select {
        -webkit-appearance: none;
        -moz-appearance: none;
        appearance: none;
        border: none; /* If you want to remove the border as well */
        background: none;
    }

    #formpage_wrapper {
        margin-left: 70px !important;
    }

    .printOrMobile {
        display: block !important;
    }

    input[type='number'] {
        -moz-appearance:textfield;
    }

    input::-webkit-outer-spin-button,
    input::-webkit-inner-spin-button {
        -webkit-appearance: none;
    }
    .add-on {
        display: none;
    }
}



table.dataTable  .highlight{background-color: #FFFF88;}
btn-drag{
    cursor: move;
}
#editor_toolbar_div{min-height:33px;}
.icon_big:before{
    font-size:128px !important;
    font-weight:100;
}
.icon_big {
    font-size:45px;
    display:block;
    margin:auto
}

@media (min-width: 768px) {
    .icon_big:before{
        font-size:128px !important;
        font-weight:100;
    }
}
@media (max-width: 768px) {
    .icon_big:before{
        font-size:48px !important;
        font-weight:100;
    }
}
.icon_big {
    font-size:45px;
    display:block;
    margin:auto
}

    .dontPrint {
        display: none;
    }

h1 [class^="flaticon-"]:before, h1 [class*=" flaticon-"]:before, h2 [class^="flaticon-"]:before, h2 [class*=" flaticon-"]:before {
    font-size: inherit;
}

.bigicon_row a{
    text-align:center;
    color:#777;
}
.bigicon_row a:hover {
    text-decoration: none;
    color:#444;
}

.navbar-brand #svg_logo_girona{fill:#931633;font-family:sans-serif;font-size:40px;letter-spacing:1.6px;line-height:125;word-spacing:0;letter-spacing:1.3px;transition-duration: 0.5s;}
.navbar-brand #svg_logo_forms{fill:#797e86;font-family:sans-serif;letter-spacing:0;line-height:125;word-spacing:0;font-size:35px;transition-duration: 0.5s;}
.navbar-brand #svg_logo_editor{fill:#1C881C;font-family:sans-serif;letter-spacing:0;line-height:125;word-spacing:0;font-size:35px;transition-duration: 0.5s;}
.navbar-brand #svg_logo_red{fill: #931633;transition-duration: 0.5s;}
.navbar-brand #svg_logo_grey{fill: #797e86;transition-duration: 0.5s;}
.navbar-brand:hover #svg_logo_red{fill: #797e86;}
.navbar-brand:hover #svg_logo_grey{fill: #931633;}
.navbar-brand:hover #svg_logo_girona{    text-shadow: 3px 3px 12px #931633;}
.navbar-brand:hover #svg_logo_forms{    text-shadow: 3px 3px 12px #797e86;}
.navbar-brand:hover #svg_logo_editor{    text-shadow: 0px 0px 12px #1C881C;}

.c_design{color:#1C881C;}
a .c_design:hover{color:#9BCA9B;}
.c_form{color:#3794DD;}
a .c_form:hover{color:#BFCCE4;}
.c_store{color:#7C279B;}
a .c_store:hover{color:#BD93CD;}
.c_rule{color:#9B2727}
a .c_rule:hover{color:#CD9393}


body [class*="flaticon-"]:before{
    margin-left:0px;
}


.thumbnail .caption{
    margin: 5px;
    height: 45px;
    padding: 3px;
    text-align: center;
    overflow: hidden;
}

/*VALIDATION OF FORMS **/
input[type="text"]:invalid {
    /*box-shadow: 0px 0px 3px 0px red;*/
}

.inputvalid input:not([type="radio"]):not([type="checkbox"]), .inputvalid select,  .inputvalid textarea{
    background-color: #DFD;
    box-shadow: 0px 0px 3px 0px green;
}
.inputNotvalid input:not([type="radio"]):not([type="checkbox"]), .inputNotvalid select,  .inputNotvalid textarea{
    background-color: #FDD;
    box-shadow: 0px 0px 3px 0px red;
}

.inputvalid label span{
    color: #5F5;
}
.inputNotvalid label span{
    color: #F55;
}

input[type="checkbox"]:valid + label { color: green; }


/*VALIDATION OF SERVER */

.servervalidation_failed{
    background-color: #FDD;
    box-shadow: 0px 0px 3px 0px red;

}
/*SELECT2 INVALID */
select.servervalidation_failed + span.select2 span.selection span{
    background-color: #FDD;
    box-shadow: 0px 0px 3px 0px red;

}

.component label {
    min-height: 1.1em;
}


#signature-pad {
    width: 100%;
    height: 200px;
}

.signature-pad {
    position: relative;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
    -ms-flex-direction: column;
    flex-direction: column;
    font-size: 10px;
    border: 0px;
    width: 100%;
    height: 100%;
    max-width: 700px;
    max-height: 460px;
    padding: 16px;

    -ms-user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    user-select: none;
}

.signature-pad::before,
.signature-pad::after {
    position: absolute;
    z-index: -1;
    content: "";
    width: 40%;
    height: 10px;
    bottom: 10px;
    background: transparent;
}

.signature-pad::before {
    left: 20px;
    -webkit-transform: skew(-3deg) rotate(-3deg);
    transform: skew(-3deg) rotate(-3deg);
}

.signature-pad::after {
    right: 20px;
    -webkit-transform: skew(3deg) rotate(3deg);
    transform: skew(3deg) rotate(3deg);
}

.signature-pad--body {
    position: relative;
    -webkit-box-flex: 1;
    background-image: url("/static/thora/images/signatureBackground.png");
    background-size: 100% 80%;
    background-position: bottom;
    -ms-flex: 1;
    flex: 1;
}

.signature-pad--body canvas {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    border-radius: 4px;
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.02) inset;
}

.signature-pad--body canvas:hover {
    cursor: url("/static/thora/images/pencil-24.png") 0 24, auto;
    cursor: -webkit-image-set(
            url('/static/thora/images/pencil-24.png') 1x,
            url('/static/thora/images/pencil-48.png') 2x
    ) 0 24, auto;
}

.signature-pad--footer {
    color: #C3C3C3;
    text-align: center;
    font-size: 1.2em;
    margin-top: 8px;
}

.signature-pad--actions {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-pack: justify;
    -ms-flex-pack: justify;
    justify-content: space-between;
    margin-top: 8px;
}