/*
 * Copyright (c) 2015 AQUILAB
 * Update on 2015/2/27 by thomasg
 */

:root {
    --error-color: var(--bs-red) /*#e00*/;
    --warning-color: var(--bs-orange) /*#e70*/;
}

INPUT, TEXTAREA {
    border: 1px solid #b9b9b9;
    padding: 5px;
    background-color: white;
    font-size: 11px;
}

INPUT[type="file"] {
    font-size: 11px;
}

SELECT {
    padding: 3px;
    width: 80%;
}

INPUT:HOVER, TEXTAREA:HOVER {
    border-color: #9f9f9f;
}

INPUT[type="checkbox"], INPUT[type="radio"] {
    background: none;
    border: none;
}

INPUT:FOCUS, INPUT:FOCUS:HOVER, TEXTAREA:FOCUS, TEXTAREA:FOCUS:HOVER {

}

INPUT[type="submit"]:HOVER {
    cursor: pointer;
    color: #003c83;
}

INPUT[type="submit"] {
    font-weight: bold;
    width: 80px !important;
}

.divLabel {
    text-align: right;
    width: 20%;
    font-size: 0.9em;
    display: inline-block;
    vertical-align: top;
    padding: 5px 0;
}

.control-group .value .readonly, FORM .value.readonly {
    padding: 5px 0;
}

LABEL.nocss {
    font-weight: normal;
    float: none;
    text-align: inherit;
    margin-right: 0;
    position: inherit;
    top: 0;
    width: auto;
}

TEXTAREA {
    width: 85%;
    height: 125px;
    resize: vertical;
}

.full-width TEXTAREA {
    width: 100%;
}

.info INPUT, .info TEXTAREA, .info SELECT {
    width: 60%;
}

.info TEXTAREA {
    height: 125px;
}

.input_invalid {
    border: 1px solid var(--error-color) !important;
}

.aroundinput {
    display: inline-block;
    text-align: center;
    border: 1px solid transparent;
    margin-left: 15px;
    padding: 2px;
    padding-bottom: 0;
}

.aroundinput input[type="radio"] {
    width: auto !important;
}

.aroundinput input[type="checkbox"] {
    width: auto !important;
}

.aroundinput input[type="checkbox"].input_invalid {
    border: 0 !important;
}

.aroundinput:first-child {
    margin-left: 0;
}

.background_input_valid {
    background-color: #deffa9;
}

.background_input_valid:hover, .background_input_valid:focus, .background_input_valid:focus:hover {
    background-color: #deffa9;
}

.background_input_notvalid {
    background-color: #ffd4d4;
}

.background_input_notvalid:hover {
    background-color: #ffd4d4;
}

.control-group.error .control-label {
    display: none !important;
}

INPUT[type='checkbox'] {
    width: auto !important;
    vertical-align: middle;
}

.input INPUT[type='radio'] {
    width: auto !important;
    vertical-align: middle;
}

.singlecheckbox INPUT[type='checkbox'] {
    width: auto !important;
    vertical-align: middle;
}

.input.checkbox {
    display: inline-block;
    width: auto;
}

/**
End of tmp css
**/

.control-group {
    margin-top: 15px;
    position: relative;
}

.control-label {
    border: 1px solid var(--error-color);
    background: rgba(var(--error-color), 0.1);
    padding: 3px 5px;
    border-radius: 2px;
    color: var(--error-color);
    width: 23%;
}

.input {
    width: 98%;
}

.input.radio .around {
    vertical-align: top;
}

.input.radio .around input {
    vertical-align: baseline;
}

.input INPUT {
    width: 80%;
}

FORM label {
    text-align: right;
    font-size: 0.9em;
    width: 90%;
    top: 4px;
}

FORM ul.dropdown-menu label {
    text-align: left;
}

button[type="reset"] {
    display: none;
}

FORM .form-help {
    color: #999999;
    font-size: 0.9em;
    margin-top: 5px;
}

.form-warning {
    color: darkorange;
    font-size: 0.8em;
    padding: 5px 0;
}

.formulaire_upload INPUT[type="file"] {
    width: 300px !important;
}

#contourForm INPUT[type="file"] {
    width: 60% !important;
}

.input.richtextarea {
    padding: 5px 0;
    width: 100%;
}

table td.label {
    display: table-cell;
}

input.error, select.error, textarea.error {
    border-color: var(--error-color);
}

.form-error, .form-warning {
    font-size: 0.9em;
    padding: 5px 0;
}

.form-error {
    color: var(--error-color);
}

.form-warning {
    color: var(--warning-color);
}

.around {
    display: inline-block;
    text-align: center;
    border: 1px solid transparent;
}

.around.error {
    border-color: var(--error-color);
    padding: 0 0 1px 1px;
}

.richtextarea.error .tinyeditor {
    border-color: var(--error-color);
}

.richtextarea ul {
    padding: 10px 20px;
}

.richtextarea ul, .richtextarea li {
    list-style: circle;
}

.richtextarea li {
    margin-left: 10px;
    padding: 3px;
}

.select2-container {
    text-align: left;
}

input[type="color"] {
    width: 20px;
    height: 20px;
    padding: 1px;
}

.loadingContainer {
    margin: 20px auto 20px auto; /* haut | droit | bas | gauche */;
    cursor: wait;
}

.inputPossibleData label {
    text-align: left;
    color: #6f6f6f;
}

.oncoAdmin {
    padding-left: 20px;
}

h2 label {
    text-align: left;
}

.textarea {
    margin-bottom: 20px;
}

.input input[type="text"][disabled], button[type="submit"][disabled], .input input[type="number"][disabled], .input textarea[disabled] {
    background: lightgrey;
}

button[type="submit"][disabled] {
    color: grey;
    border-color: grey;
}

.noDataLabel {
    text-align: center;
}
