
/******************************************************

                      FORM

*******************************************************/

.appform_form {
    width: 100%;
    max-width: 100%;
    margin-bottom: 100px;
}
.appform_form.row {
    margin: 0;
}
.appform_form label span.required {
    color: #ed0505;
    margin-left: 7px;
}
.appform_form input {
    height: 2.5rem;
    font-size: .9rem;
    font-weight: 500;
    border: 1px solid #aaa;
}
.toggle {
    margin-left: 10px !important;
    padding-left: 0px !important;
}
.appform_form input,
.appform_form select,
.appform_form textarea,
.appform_form .select2-container {
    width: 100% !important;
}
.appform_form input {
    padding: 0 0 0 8px;
}
.appform_form textarea {
    padding: 3px 8px;
}
.appform_form input[type='checkbox'] {
    width: auto;
    vertical-align: middle;
}
.btn-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
}
.appform_form .btn-container {
    width: 100%;
    margin-top: 25px;
}
.appform_form .btn-container .btn {
    margin: 10px;
}
.form-messages,
.appform_form .error,
.appform_form .field-error {
    color: #ed0505;
    display: block;
    font-size: 1rem;
    font-weight: 500;
}
.form-messages {
    width: 100%;
    padding-right: 15px;
    padding-left: 15px;
}
.appform_form label {
    margin: 0;
    font-size: 1rem;
}
.appform_form input.datepicker {
    border-radius: 0;
    height: 2.5rem;
}
.appform_form input.fileupload {
    padding: 0.15rem;
}

textarea:focus,
input:focus,
a:focus,
.select2-container--focus .select2-selection {
    outline: none;
}


/******************************************************

                  RELATION TABLE FORM

*******************************************************/


table.appform_relation_table_form  {
    table-layout: fixed;
}
table.appform_relation_table_form .form-container {
    display: flex;
    justify-content: space-evenly;
    max-width: 200px;
}
table.appform_relation_table_form thead th {
    border: none;
}
table.appform_relation_table_form td {
    padding: 0.2rem;
}
table.appform_relation_table_form tr:hover td {
    background: none;
}
table.appform_relation_table_form tbody td {
    line-height: 2.5rem;
}
table.appform_relation_table_form input[type="checkbox"] {
    margin-top: 0.4rem;
}

table.appform_relation_table_form td > .form-group {
    margin-bottom: 0;
    padding: 0;
    width: 100%;
    max-width: 100%;
}


/******************************************************

                      SELECT 2

*******************************************************/

.select2-container--default .select2-selection--single {
    border-radius: 0;
}
.select2-container-active .select2-choice,
.select2-container-multi.select2-container-active .select2-choices,
.select2-container--default.select2-container--focus .select2-selection--multiple,
.select2-drop-active {
    border-color: #aaa !important
}
.select2-container .select2-selection--single,
.select2-container .select2-selection--multiple {
    border-radius: 0;
}
.select2-container .select2-selection--single {
    height: 2.5rem;
}
.select2-container .select2-selection--multiple {
    line-height: 2.5rem;
}
.select2-container--default .select2-selection--single .select2-selection__rendered,
.select2-container--default .select2-selection--multiple .select2-selection__rendered {
    line-height: 2.5rem;
    color: #000;
}
.select2-container--default .select2-selection--single .select2-selection__arrow,
.select2-container--default .select2-selection--multiple .select2-selection__arrow {
    height: 2.5rem;
}
.select2-container--default .select2-selection--multiple .select2-selection__choice,
.select2-container--default .select2-selection--multiple .select2-selection__clear {
    line-height: 1.5rem;
}
.select2-container--default .select2-selection--multiple .select2-search__field {
    margin-top: 0;
}


/********************************************************

                        AUTOCOMPLETE

/*********************************************************/

.ui-autocomplete {
    z-index: 1000;
}
.ui-autocomplete.ui-widget-content,
.ui-autocomplete.ui-widget-content .ui-state-active {
    border: 1px solid #aaa;
}


/********************************************************

                        COLOR PICKER

/*********************************************************/

.appform_form input.colorpicker {
    border-radius: 0;
}
.colorpicker.colorpicker-visible {
    min-width: 200px;
}
.colorpicker.colorpicker-visible .colorpicker-saturation {
    width: 160px;
    height: 160px;
}
.colorpicker.colorpicker-visible .colorpicker-color,
.colorpicker.colorpicker-visible .colorpicker-color > div {
    height: 20px;
}
.colorpicker-hue, .colorpicker-alpha {
    width: 26px;
    height: 160px;
}
