.form_error {background: #FFDDDD;}

.form_errortxt { color: red;}

.form_sectionlabel { font-size: 1.1em; font-weight: bold; color:  RGB(130, 2, 99);}
.form_sectionborder {border: 1px solid #666666; margin: 3px; padding: 3px 3px 10px 3px;float:left; background: #E6E6E6; width: calc(100% - 10px)}
.form_sectionborderdashed {border: 1px dashed #666666; margin: 3px; padding: 3px 3px 10px 3px;float:left; background: #E6E6E6;}
.form_section {margin: 3px; padding: 3px;float:left;}

.form_checkboxicon { cursor: pointer; }

.form_icon img { padding: 2px; float: left; }
.form_icon img.form_icon_selected { padding: 0; border: 2px solid #888; } 

.form_tagsselector .form_tags_selection {
   margin: 5px 0 3px 0;
   line-height: 2em;
}

.form_tagsselector .form_tags_selection span.form_tag_selected2 {
   background-color: #cccccc;
   border-radius: 5px;
   padding: 4px;
   margin: 4px;
   cursor: pointer;
} 

.form_signature { border: 1px solid gray; background-color: white; }

.form_field_readonly { background-color: #e6e6e6; color: #555; }

.form_lay_togglecell { cursor: pointer; }

.form_currencyeditor {
    white-space: nowrap;
    display: none;
    border: 1px solid gray;
    border-radius: 3px;
    width: 500px;
    padding: 5px;
    position: absolute;
    background-color: #fff;
}
.form_currencyeditor > * {
   margin-right: 5px;
}
.form_currencyeditor input[type=text] {
   width: 125px;
}


.mc_check {
    float: left;
    width: 20px;
    height: 10px;
}

.mc_select {
    display: inline-block;
    width: 95px;
    height: 35px;
}

.mc_text {
    padding-top: 1px;
    margin-left: 25px;
    margin-bottom: 3px;
}

.mc_group {
}

.mc_grouphead {
}

.mc_groupicon {
    padding-right: 10px;
    cursor: pointer;
}

.mc_grouplist {
    margin-left: 15px;
}

.mc_line {
}


input::-webkit-outer-spin-button,
input::-webkit-inner-spin-button {
    /* display: none; <- Crashes Chrome on hover */
    -webkit-appearance: none;
    margin: 0; /* <-- Apparently some margin are still there even though it's hidden */
}

.findcustomer {
    cursor: pointer
}

.findperson {
    cursor: pointer
}

.findtodo {
    cursor: pointer
}

.finduser {
    cursor: pointer
}

ul.formrepeatersection {
    list-style-type: none;
    margin: 0px;
    padding: 0px;
}

ul.formrepeatersection.sortable li {
    cursor: move;
}

div.weekselrow {
   width: 120px;
}

div.weekselweek {
   float: left;
   width: 22px;
   height: 17px;
   text-align: center;
   margin: 1px;
   border: 1px solid gray;
   cursor: pointer;
}

div.weekselweek.selected {
   background-color: gray;
   color: white;
}


div.groupedcheckboxlist {
    margin-top: 5px;
}

div.groupedcheckboxlist .items {
    overflow-y: hidden;
	max-height: 0; /* approximate max height */
	transition: all 200ms ease-out;
}

div.groupedcheckboxlist .items.open {
    max-height: 900px;
    transition: all 200ms ease-in;
}

div.groupedcheckboxlist span {
    display: inline-block;
    font-weight: bold;
    cursor: pointer;
    -webkit-touch-callout: none; /* iOS Safari */
    -webkit-user-select: none; /* Safari */
     -khtml-user-select: none; /* Konqueror HTML */
       -moz-user-select: none; /* Firefox */
        -ms-user-select: none; /* Internet Explorer/Edge */
            user-select: none; /* Non-prefixed version, currently
                                  supported by Chrome and Opera */
    transition: all 50ms ease;
}

div.groupedcheckboxlist span:hover {

}

div.groupedcheckboxlist span img {
    transition: all 200ms ease;
}

div.groupedcheckboxlist span.open img {
    transform: rotate(180deg);
}

div.groupedcheckboxlist span img {
    vertical-align: top;
}

div.groupedcheckboxlist label {
    display: block;
    margin-bottom: 2px;
    -webkit-touch-callout: none; /* iOS Safari */
    -webkit-user-select: none; /* Safari */
     -khtml-user-select: none; /* Konqueror HTML */
       -moz-user-select: none; /* Firefox */
        -ms-user-select: none; /* Internet Explorer/Edge */
            user-select: none; /* Non-prefixed version, currently
                                  supported by Chrome and Opera */
}

.f_component_dropdown{
    display: inline-flex;
    height:25.5px;
    box-sizing: border-box;
}
.f_component_dropdown:focus{
    outline: none;
}
.f_component_dropdown:focus .dropdown-button{
    border-color: rgb(176, 20, 127);
}
.f_component_dropdown:focus .arrow{
    border-color: rgb(176, 20, 127);
}
.f_component_dropdown * {
    box-sizing: border-box;
}
.f_component_dropdown .dropdown-button{
    border: 1px solid #666666;
    border-radius: 5px 0 0 5px;
    border-right: none;
    background: #ffffff;
    padding: 4px 7px;
    height:25.5px;
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    -khtml-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    cursor: pointer;
    box-sizing: border-box;
    overflow: hidden;
}
.f_component_dropdown .f_component_title{
    white-space: nowrap;
}
.f_component_dropdown.expanded .dropdown-button{
    border-radius: 5px 0 0 0;
    border-color: rgb(176, 20, 127);
    border-bottom: none;
}
.f_component_dropdown .arrow{
    border: 1px solid #666666;
    border-left: none;
    border-radius: 0 5px 5px 0;
    height: 25.5px;
    width: 17px;
    background: #ffffff;
    cursor: pointer;
    box-sizing: border-box;

}
.f_component_dropdown.expanded .arrow{
    border-radius: 0 5px 0 0;
    border-color: rgb(176, 20, 127);
    border-bottom: none;
}
.f_component_dropdown .arrow .logo{
    height:6px;
    width:6px;
    border: 1px solid black;
    border-left: none;
    border-top: none;
    margin: 7px auto;
    transform: rotate(45deg);
}
.f_component_dropdown.replicated{
    margin-bottom: 5px
}
.f_component_dropdown .options{
    position: fixed;
    margin-top: 25.5px;
    background: white;
    border: 1px solid black;
    border-radius: 0 0 5px 5px;
    z-index: 50000;
    box-sizing: border-box;
    max-height: 409px;
    overflow-y:auto;
}
.f_component_dropdown.ontop .options{
    margin-top: 0;
    border: 1px solid black;
    border-radius: 5px 5px 0 0;
}
.f_component_dropdown.ontop.expanded .arrow{
    border: 1px solid #666666;
    border-left: none;
    border-top:none;
    border-radius: 0 0 5px 0;
    border-color: rgb(176, 20, 127);
}
.f_component_dropdown.ontop.expanded .dropdown-button{
    border: 1px solid #666666;
    border-right: none;
    border-top:none;
    border-radius: 0 0 0 5px;
    border-color: rgb(176, 20, 127);
}
.f_component_dropdown.expanded .options{
    border-color: rgb(176, 20, 127);
}
.f_component_dropdown.expanded.toright .options{
    border-top-left-radius: 5px;
}
.f_component_dropdown.expanded.toright.ontop .options{
    border-top-left-radius: 0px;
    border-bottom-left-radius: 0px;
}
.f_component_dropdown.expanded.toleft .options{
    border-top-right-radius: 5px;
}
.f_component_dropdown.expanded.toleft.ontop .options{
    border-top-right-radius: 0px;
    border-bottom-right-radius: 0px;
}
.f_component_dropdown .dropdown-search{
    padding: 3px;
    margin: 5%;
    height: 25.5px;
    border-radius: 5px;

    width: 90%;
}
.f_component_dropdown input.dropdown-search:focus{
    border-color: RGB(176, 20, 127);
}
.f_component_dropdown .options .option div{
    padding: 4px 7px;
    text-align: left;
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    -khtml-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    cursor: pointer;
    white-space: nowrap;
    overflow: hidden;
}
.f_component_dropdown .options .option.firstchild div{
    border-top: none;
}
.f_component_dropdown .options .option div:hover, .f_component_dropdown .options .option:focus div{
    background: #0075ff;
    color:white;
}
.f_component_dropdown .options .option.selected:focus div{
    background: #004eaa;
    color:white;
}
.f_component_dropdown .options .option.dropdown-as-checkbox{
    width: 200px;
    display: inline-block;
}
.f_component_dropdown .optiongroup {
    font-weight: bold;
    padding-left: 13px;
    background-color: lightgray;
}
.f_component_dropdown.dropdown-as-checkbox .options{
    box-sizing: content-box;
    width: 625px;
    padding-bottom: 10px;
    padding-left: 10px;
    padding-right: 10px;
}
.f_component_dropdown.dropdown-as-checkbox .options .option div, .f_component_dropdown.dropdown-as-checkbox .options .option input{
    display: inline-flex;
    max-width: 80%;
}

/* Responsiveness */
@media (max-width: 550px) {
    .mbformcontainer > div:nth-child(2) {
        margin-left: 5px ! important;
        clear: left !important;
    }
    .mbformcontainer {
        width: auto !important;
    }
}
