/*
 * This file is part of the AP project.
 */

/**
 * -----------------------------------------------------------------------------
 * --- Root --------------------------------------------------------------------
 * -----------------------------------------------------------------------------
 */
:root {
}

/**
 * -----------------------------------------------------------------------------
 * --- Form canceled -----------------------------------------------------------
 * -----------------------------------------------------------------------------
 */
.form-canceled {
}

.form-canceled h2 {
    margin-bottom: 1.0em;
}

.form-canceled__text {
    margin-bottom: 1.0em;
}

.form-canceled__error {
    display: none;
    margin-bottom: 1.0em;
}

/**
 * -----------------------------------------------------------------------------
 * --- Form elements -----------------------------------------------------------
 * -----------------------------------------------------------------------------
 */
.form__wrap {
    display: flex;
    flex-wrap: wrap;
    width: 100%;
    min-height: 30px;
    margin: 0 0 1.0em 0;
}

.form__fieldset .form__wrap:last-child {
    margin-bottom: 0;
}

.form__label {
    position: relative;
    display: block;
    overflow: hidden;
    flex: 0 0 100%;
    width: 100%;
    padding: 0 10px 0.25em 0;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.form__element {
    position: relative;
    width: 100%;
    gap: 5px;
}

.form__element--flex {
    display: flex;
}

.form__container {
    width: 100%;
    padding: 5px 5px 5px 5px;
    border: 1px solid #bbbbbb;
    background-color: #ffffff;
}

.form__container--readonly {
    color: #333333;
    border: 1px solid #cccccc;
    background-color: #eeeeee;
}

.form__input {
    display: block;
    width: 100%;
    height: 30px;
    padding: 5px 5px 5px 5px;
}

.form__input--password {
    padding-right: 30px;
}

.form__select {
    display: block;
    width: 100%;
    height: 30px;
    padding: 5px 2px 5px 2px;
}

.form__textarea {
    display: block;
    overflow: hidden;
    width: 100%;
    height: 66px;
    min-height: 66px;
    padding: 7px 5px 7px 5px;
    resize: none;
}

.form__button {
    overflow: hidden;
    height: 36px;
    padding: 0 20px;
    cursor: pointer;
    -moz-user-select: none;
    -ms-user-select: none;
    -webkit-user-select: none;
    user-select: none;
    -moz-transition-duration: 0.2s;
    -webkit-transition-duration: 0.2s;
    transition-duration: 0.2s;
    white-space: nowrap;
    text-overflow: ellipsis;
    color: #dddddd;
    border: none;
}

.form__button[disabled] {
    cursor: default;
    -moz-user-select: none;
    -ms-user-select: none;
    -webkit-user-select: none;
    user-select: none;
    -moz-transition-duration: 0.2s;
    -webkit-transition-duration: 0.2s;
    transition-duration: 0.2s;
    color: #666666;
    background-color: #cccccc;
}

.form__button[disabled]:hover {
    color: #666666;
    background-color: #cccccc;
}

.form__button--blue {
    background-color: #2d4f79;
}

.form__button--blue:hover {
    color: #ffffff;
    background-color: #345e8f;
}

.form__button > span {
    position: relative;
    top: 0;
    left: 0;
}

.form__group {
    display: flex;
    flex: 0 0 auto;
    margin: 0 0 0.5em 0;
}

.form__group:last-child {
    margin: 0 0 0 0;
}

.form__checkbox,
.form__radio {
    display: block;
    width: 19px;
    min-width: 19px;
    height: 19px;
    min-height: 19px;
}

.form__group label {
    display: block;
    overflow: hidden;
    padding: 0 0 0 7px;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.form__group .inactive {
    color: #999999 !important;
}

.form__dash {
    line-height: 30px;
    min-height: 30px;
    margin: 0;
}

.form__link {
    margin-right: 10px;
}

.form__text {
    margin: 0;
}

.form__code {
    font-family: 'Courier New', monospace;
    font-size: 1.05em;
}

.form__required {
    font-size: 1.0em;
}

.form__help {
    border-bottom: 1px dashed #444444;
    cursor: help;
}

.form__eye {
    position: absolute;
    top: 5px;
    right: 7px;
    display: block;
    width: 20px;
    height: 20px;
    cursor: pointer;
    background-repeat: no-repeat;
    background-position: 0 50%;
    background-size: contain;
}

.form__eye--show {
    background-image: url("../images/form-eye-show.svg");
}

.form__eye--hide {
    background-image: url("../images/form-eye-hide.svg");
}

/** Spam protection */
.form__e-mail {
    position: absolute;
    top: -9999px;
    left: -9999px;
    visibility: hidden;
}

input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus,
textarea:-webkit-autofill,
textarea:-webkit-autofill:hover,
textarea:-webkit-autofill:focus,
select:-webkit-autofill,
select:-webkit-autofill:hover,
select:-webkit-autofill:focus {
    -webkit-box-shadow: 0 0 0 1000px #ffffff inset;
}

/**
 * -----------------------------------------------------------------------------
 * --- Form dialog -------------------------------------------------------------
 * -----------------------------------------------------------------------------
 */
.form-dialog .form__element {
    width: 100%;
}

/**
 * -----------------------------------------------------------------------------
 * --- Form element - normal state ---------------------------------------------
 * -----------------------------------------------------------------------------
 */
.form__input,
.form__select,
.form__textarea,
.form__checkbox,
.form__radio {
    border: 1px solid #bbbbbb;
    background-color: #ffffff;
}

.form__input:active,
.form__select:active,
.form__textarea:active,
.form__checkbox:active,
.form__radio:active {
    border: 1px solid #4195fc;
}

.form__input:focus,
.form__select:focus,
.form__textarea:focus,
.form__checkbox:focus,
.form__radio:focus {
    border: 1px solid #4195fc;
}

.form__input:hover,
.form__select:hover,
.form__textarea:hover,
.form__checkbox:hover,
.form__radio:hover {
    border: 1px solid #4195fc;
}

/**
 * -----------------------------------------------------------------------------
 * --- Form element - disable state --------------------------------------------
 * -----------------------------------------------------------------------------
 */
.form__group input[disabled] + label {
    color: #999999;
}

.form__input[disabled],
.form__select[disabled],
.form__textarea[disabled],
.form__checkbox[disabled],
.form__radio[disabled] {
    opacity: 100;
    color: #000000;
    border: 1px solid #cccccc;
    background-color: #eeeeee;
}

.form__input[disabled]:active,
.form__select[disabled]:active,
.form__textarea[disabled]:active,
.form__checkbox[disabled]:active,
.form__radio[disabled]:active {
    border: 1px solid #cccccc;
}

.form__input[disabled]:focus,
.form__select[disabled]:focus,
.form__textarea[disabled]:focus,
.form__checkbox[disabled]:focus,
.form__radio[disabled]:focus {
    border: 1px solid #cccccc;
}

.form__input[disabled]:hover,
.form__select[disabled]:hover,
.form__textarea[disabled]:hover,
.form__checkbox[disabled]:hover,
.form__radio[disabled]:hover {
    border: 1px solid #cccccc;
}

/**
 * -----------------------------------------------------------------------------
 * --- Form element - readonly state -------------------------------------------
 * -----------------------------------------------------------------------------
 */
.form__input[readonly],
.form__select[readonly],
.form__textarea[readonly],
.form__checkbox[readonly],
.form__radio[readonly] {
    opacity: 100;
    color: #000000;
    border: 1px solid #cccccc;
    background-color: #eeeeee;
}

.form__input[readonly]:active,
.form__select[readonly]:active,
.form__textarea[readonly]:active,
.form__checkbox[readonly]:active,
.form__radio[readonly]:active {
    border: 1px solid #cccccc;
}

.form__input[readonly]:focus,
.form__select[readonly]:focus,
.form__textarea[readonly]:focus,
.form__checkbox[readonly]:focus,
.form__radio[readonly]:focus {
    border: 1px solid #cccccc;
}

.form__input[readonly]:hover,
.form__select[readonly]:hover,
.form__textarea[readonly]:hover,
.form__checkbox[readonly]:hover,
.form__radio[readonly]:hover {
    border: 1px solid #cccccc;
}

/**
 * -----------------------------------------------------------------------------
 * --- Form element - error state ----------------------------------------------
 * -----------------------------------------------------------------------------
 */
.form__error {
    border: 1px solid #cc0000;
    background-color: #ffccba;
}

.form__error:active,
.form__error:focus,
.form__error:hover {
    border: 1px solid #cc0000;
}

.form__error--html {
    border: 1px solid #cc0000;
    background-color: #ffccba;
}

.form__error--html:active,
.form__error--html:focus,
.form__error--html:hover {
    border: 1px solid #cc0000;
}
