* {
    box-sizing: border-box;
    -webkit-box-sizing:border-box;
    -moz-box-sizing: border-box;
}

body {
    font-size: 1em;
}

section.form {
    /* display: block; */
    width: 100%;
    margin: 1em auto;
}

.table {
    display:table;
    width: 100%;
    margin: 1em 0 1em 0;
    border-top: 1px solid black;
    border-left: 1px solid black;
}

.row {
    display:table-row;
    line-height: 2em;
}

.cell {
    display:table-cell;
    border-bottom: 1px solid black;
    /* border: 1px solid black; */
    border-right: 1px solid black;
    padding: 0 0.5em 0 0.5em;
}

.table .header {
    background-color: #bbb;
    text-transform: uppercase;
    font-weight: bold;
    font-size: 0.7em;
}

.cell input {
    width: 100%;
    padding: 0.5em 0 0.5em 0;
}

.cell select {
    width: 100%;
}

.cell input {
    border: 0;
}    

input:disabled {
    border: 0;
    color: black;
    background: #fff;
}

/* MAIN FORM */

input.mainform, button.mainform, input.modalform, button.modalform {
    /* Remove First */
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    
    border-radius: 4px;
    box-sizing: border-box;
    display: inline-block;
    box-shadow: none;
    background-color: white;
    border: 1px solid #aaa;
    line-height: 28px;
    padding: 0 5px;
    height: 28px;
    /* margin-bottom: 5px; */
    /* float: left; */
}

.select2-container {
    display: inline-block;
    /* margin-bottom: 5px; */
    /* float: left; */
}

label.formlabel {
    display: block;
    margin-top: 5px;
    /* margin-top: 10px; */
    /* float: left; */
    /* line-height: 30px; */
    /* border: 1px solid green; */
}

input[type="submit"].mainform, button.mainform {
    display: inline-block;
}

#submit {
    display: none;
}

br:after {
    content: "";
    display: table;
    clear: both;
}

/* MODAL FORM */

#modal_form {
    display: none;
    position: fixed;
    z-index: 100;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
    text-align: center;
}

#modal_form:before {
    content: '';
    display: inline-block;
    height: 100%;
    vertical-align: middle;
    margin-right: -0.25em; /* Adjusts for spacing */
}

#modal_input {
    padding: 2em;
    text-align: left;
    display: inline-block;
    vertical-align: middle;
    width: 500px;
    background-color: #fff;
    color: #000;
    -webkit-border-radius: 5px;
    -moz-border-radius: 5px;
    border-radius: 5px;
    -webkit-box-shadow: 6px 6px 10px 0px rgba(0,0,0,0.64);
    -moz-box-shadow: 6px 6px 10px 0px rgba(0,0,0,0.64);
    box-shadow: 6px 6px 10px 0px rgba(0,0,0,0.64);
}

#modal_input input[type=button] {
	margin-top: 10px;
}

/*
#modal_input label, #modal_input input, #modal_input select {
    display: block;
    text-align: left;
}

#modal_input label {
    color: #fff;
    margin-top: 1em;
    margin-bottom: 0.5em;
    font-size: 0.8em;
    /*
    float: left;
	text-align: right;
	margin-right: 15px;
	width: 100px;
    */
}
*/

/* FORM ERROR STYLES */

ul.myErrorClass, input.myErrorClass, textarea.myErrorClass, select.myErrorClass {
    border-width: 1px !important;
    border-style: solid !important;
    border-color: #cc0000 !important;
    background-color: #f3d8d8 !important;
    background-image: url(http://goo.gl/GXVcmC) !important;
    background-position: 50% 50% !important;
    background-repeat: repeat !important;
}

ul.myErrorClass input {
    color: #666 !important;
}

label.inputerror {
    color: red;
    font-size: 11px;
    margin-left: 5px;
    /*    font-style: italic;*/
    /* display: block; */
    /* float: right; */
}
