/* Formularelemente */
textarea {
    font-family: var(--fontFamily);
    font-weight: var(--fontWeight);
    letter-spacing: var(--letterSpacing);
    color: rgb(var(--colUIText03));
    background-color: rgb(var(--colBG));
    border: none;
    padding: 0.3em;
    width: 100%;
    min-height: 2em;
    text-size-adjust: none;
    -webkit-text-size-adjust: none;
    -moz-text-size-adjust: none;
    -ms-text-size-adjust: none;
}

textarea:read-only {
    background-color: rgba(0, 0, 0, 0);
    resize: none;
}

textarea.inputReadonly::placeholder {
    color: rgba(0, 0, 0, 0);
}

fieldset {
    display: block;
    margin-inline-start: 0px;
    margin-inline-end: 0px;
    padding-block-start: 0px;
    padding-inline-start: 0px;
    padding-inline-end: 0px;
    padding-block-end: 0px;
    min-inline-size: unset;
    border-width: 0px;
    border-style: none;
    border-color: none;
    border-image: none;
}

input,
textarea,
.entryInput {
    width: 100%;
    color: rgb(var(--colUIText03));
    background-color: rgb(var(--colBG));
    line-height: normal;
    padding: 0.4em;
    border: 0px;
    font-size: 1em;
    font-family: var(--fontFamily);
    font-weight: var(--fontWeight);
    letter-spacing: var(--letterSpacing);
    border-radius: 0.25em;
}

/* Chrome, Safari, Edge, Opera */
input::-webkit-outer-spin-button,
input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

/* Firefox */
input[type=number] {
    -moz-appearance: textfield;
}

::placeholder {
    font-style: oblique;
    letter-spacing: var(--letterSpacing);
    font-weight: var(--fontWeight);
    color: rgba(var(--colUIText03), 0.5);
}

::-webkit-input-placeholder {
    /* Edge */
    font-style: oblique;
    font-weight: var(--fontWeight);
    color: rgba(var(--colUIText03), 0.5);
}

:-ms-input-placeholder {
    /* Internet Explorer 10-11 */
    font-style: oblique;
    font-weight: var(--fontWeight);
    color: rgba(var(--colUIText03), 0.5);
}

/* Select dropdown */

select,
.select {
    position: relative;
    -moz-appearance: base-select;
    -webkit-appearance: base-select;
    appearance: base-select;
    border: none;
    background-color: rgb(var(--colBG));
    color: rgb(var(--colUIText03));
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    text-align-last: center;
    min-width: 2.5em;
    justify-content: center;
    border-radius: 0.25em;
    padding: var(--ButtonPadding);
    height: fit-content;
    width: fit-content;
    font-family: var(--fontFamily);
    font-size: 1em;
    font-weight: 100;
    cursor: pointer;
    flex-grow: 1;
    /* direction: rtl; */
    z-index: 1;
}


  .noTouch .select_option:not(.select--disabled):hover,
  .noTouch .select:not(.select--disabled):hover{
     background-color: rgba(var(--colUIBack02),0.5);
  }


    .select::-ms-expand {
        display: none;
        }
    .select:focus::-ms-value {
        background-color: transparent;
      }

    .select--normal{
        width: 100%;
        justify-content: flex-start;
    }

    .select--small{
        font-weight: 300;
        max-height: 2em;
        padding: 0.25em 0px;
        -webkit-appearance: unset;
        appearance: unset;
        direction: ltr;
    }

    .select--simple{
        flex-grow: 0;
        padding: 0.5em;
    }

    .select--narrow{
        font-size: 0.9rem;
    }

    .select--simple.select--narrow{
        width: 2.2rem;
        height: 2.2rem;
    }

    .select--disabled{
        background-color: transparent;
        cursor: default;
    }

    .select--buttonLike{
        border-radius: 2em;
    }


    ::picker(select) {
        appearance: base-select;
        border-radius: 0.25em;
        border: none;
        max-width: 100%;
        margin: 0.5em 0;
        background-color: rgb(var(--colBG));
        color: rgb(var(--colUIText03));
    }

    .select--simple::picker(select) {
        width: 2.5em;
        }
    .select--narrow.select--simple::picker(select) {
        width: 2.2em;
        }

    .select--buttonLike::picker(select){
        border-radius: 2em;
    }


    ::picker-icon,
    ::checkmark {
        display: none;
    }

    .select__label{
        white-space: nowrap;
    }

    .select__list{
        width: 100%;
        list-style: none;
        /* position: absolute;
        top: 1.5em;
        left: 0px; */
        border-radius: 2em;
        padding: 0.25em;
        background-color: rgb(var(--colBG));
        color: rgb(var(--colUIText03));
        -webkit-box-shadow: 3px 1px 3px rgba(var(--boxShadow));
        -moz-box-shadow: 3px 1px 3px rgba(var(--boxShadow));
        box-shadow: 3px 1px 3px rgba(var(--boxShadow));
        -webkit-box-shadow: 3px 1px 3px rgb(0 0 0 / 40%);
        -moz-box-shadow: 3px 1px 3px rgba(0,0,0,0.4);
        box-shadow: 3px 1px 3px rgb(0 0 0 / 40%);
        opacity: 1;
        transition: opacity 0.2s ease;
    }

    .select__input{
        width: 100%;
        display: flex;
        justify-content: flex-start;
        align-items: center;
    }

    .select__input--arrowed:after{
        --arrowSize: 0.5em;
        position: absolute;
        right: 0.75em;
        content: "";
        width: 0px;
        height: 0px;
        border: 0px solid transparent;
        border-top: var(--arrowSize) solid rgb(var(--colUIText04));
        border-left: var(--arrowSize) solid transparent;
        border-right: var(--arrowSize) solid transparent;
    }

    .select--disabled>.select__input--arrowed:after{
        display: none;
    }

    .select__item{
            padding: 8px 16px;
            border: 1px solid transparent;
            border-color: transparent transparent rgba(0, 0, 0, 0.1) transparent;
            cursor: pointer;
            -webkit-user-select: none;
            user-select: none;
            background-color: rgb(var(--colBG));
        }

    option,
    .select__option{
            padding: 0.5em 1em;
        white-space: nowrap;
        overflow: hidden;
        display: block;
        width: 100%;
        text-align: center;
        text-overflow: ellipsis;
        font-weight: var(--fontWeight);
    }


    .select--buttonLike>option:last-of-type {
    border-radius: 0 0 2em 2em;
    padding-bottom: 0.5em;
    }

    .select--buttonLike>option:first-of-type {
    border-radius: 2em 2em 0 0 ;
    padding-top: 0.5em;
    }

    option:not(option:last-of-type) {
    border-bottom: none;
    }

.select__list--closed {
    opacity: 0;
    pointer-events: none;
}


    .select__option--selected{
        background-color: rgba(var(--colUIText03),0.5);
    }



/* Checkbox switcher */
/* .customCheckbox {
    display: flex;
    flex-direction: row;
    height: 2em;
    max-width: 100%;
    position: relative;
    display: inline-flex;
    align-items: center;
    cursor: pointer;
}

.customCheckbox__line {
    min-width: 1.2em;
    margin: 0px 0.8em;
    height: 0px;
    border-bottom: var(--strokeWidth) solid rgb(var(--colUIText03));
    content: "";
}

.noTouch .customCheckbox:hover>.customCheckbox__line {
    border-bottom: var(--strokeWidth) solid rgb(var(--colUIBack01));
}

.customCheckbox__dot {
    width: 0.8em;
    height: 0.8em;
    border-radius: 50%;
    border: var(--strokeWidth) solid rgb(var(--colUIText03));
    background-color: rgb(var(--colUIBack03));
    content: "";
    transition: margin 0.05s linear, background-color 0.1s linear;
    position: absolute;
    left: 0.6em;
}

.noTouch .customCheckbox:hover>.customCheckbox__dot {
    background-color: rgb(var(--colUIText04));
    border-color: rgb(var(--colUIBack01));
}

.customCheckbox__dot.customCheckbox__dot--active {
    left: 1.4em;
    background-color: rgb(var(--colUIText03));
} */

/* Slider */
input[type=range] {
    -webkit-appearance: none;
    appearance: none;
    height: 0.8em;
    padding: 0px;
    margin: 0px;
    border-radius: 0.4em;
    background: rgba(var(--colUIText03), 0.05);
    -webkit-transition: background-color 0.2s;
    transition: background-color 0.2s;
    display: flex;
    justify-content: space-between;
    cursor: pointer;

}

.noTouch input[type="range"]:hover {
    background-color: rgba(var(--colUIText03), 0.5);
}

input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 0.8em;
    height: 0.8em;
    border-radius: 50%;
    border: 1px solid rgb(var(--colUIText03));
    background-color: rgb(var(--colUIText03));
    transition: background-color 0.2s;
    position: relative;
}

.noTouch input[type="range"]::-webkit-slider-thumb:hover {
    background-color: rgb(var(--colUIBack03));

}

input[type="range"]::-webkit-slider-thumb {
    background-color: rgb(var(--colUIText03));
}

input[type="range"].inputRangeUnset::-webkit-slider-thumb {
    background-color: rgb(var(--colUIBack03));
}


input[name="Practice-Note"] {
    background: linear-gradient(90deg, rgba(var(--colContra01), 0.25), rgba(var(--colAttention01), 0.25), rgba(var(--colPro01), 0.25));
}

.inputSlider {
    width: 100%;
    padding: 0 0.5em;
    margin: 1em 0;
}

.inputSlider--ok {
    margin-right: 3em;
}

.inputSlider__scale {
    content: "";
    margin-top: -0.8em;
    display: flex;
    width: 100%;
    justify-content: space-between;
}

.inputSlider__pip {
    width: 1em;
    display: flex;
    flex-direction: column;
    align-items: center;
    overflow: visible;
    text-align: center;
    cursor: pointer;
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    z-index: -1;
    cursor: pointer;
}

.inputSlider__line {
    background-color: rgb(var(--colUIText03));
    width: 1px;
    min-height: 0.8em;
    content: "";
}

.inputSlider__label {
    font-size: 0.8em;
    color: rgb(var(--colUIText03))
}

.sliderTime {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.timescale {
    flex-direction: row;
    display: flex;
    width: 100%;
    justify-content: space-between;
    font-size: 0.8em;
}

#TASDepth {
    background-image: repeating-linear-gradient(90deg,
            rgb(var(--colUIText03)) 0%,
            rgb(var(--colUIText03)) 0.333%, rgba(0, 0, 0, 0) 0.333%,
            rgba(0, 0, 0, 0) 16.666%);
}

#TASComplex {
    background-image: repeating-linear-gradient(90deg,
            rgb(var(--colUIText03)) 0%,
            rgb(var(--colUIText03)) 0.333%, rgba(0, 0, 0, 0) 0.333%,
            rgba(0, 0, 0, 0) 24.666%);
}

.form{
    display: flex;
    row-gap: 0.5em;
    flex-direction: column;
}

.form__error {
    display: inline-flex;
    justify-content: center;
    align-self: flex-start;
    padding: 0.5em 0.5em 0.5em 0.8em;
    margin-bottom: 0.5em;
    margin-top: -0.2em;
    -webkit-box-shadow: 2px 2px 3px rgba(var(--boxShadow));
    -moz-box-shadow: 2px 2px 3px rgba(var(--boxShadow));
    box-shadow: 2px 2px 3px rgba(var(--boxShadow));
    position: relative;
    font-size: 0.8em;
    color: rgb(var(--colUIText03));
    background-color: rgb(var(--colUIBack04));
    border-radius: 0.5em;
    border: solid transparent;
    border-color: rgb(var(--colUIText04));
    border-width: 1px 0 0 1px;
    column-gap: 0.5em;
}

.form__inputError::before {
    content: " ";
    position: absolute;
    pointer-events: none;
    top: -0.6em;
    left: 1em;
    margin-top: 0px;
    background-color: rgb(var(--colUIBack04));
    border: solid transparent;
    border-left-color: rgba(var(--colUIText04));
    border-top-color: rgb(var(--colUIText04), 0.4);
    border-width: 1px 0 0 1px;
    width: 1em;
    height: 1em;
    -webkit-transform: rotate(45deg);
    -moz-transform: rotate(45deg);
    -ms-transform: rotate(45deg);
    -o-transform: rotate(45deg);
    transform: rotate(45deg);
}

.form__error>svg{
    width: calc(var(--naviSize) / 3.5);
    height: calc(var(--naviSize) / 3.5);
    z-index: 1;
}

.entryInput.inputReadonly {
    background-color: rgba(0, 0, 0, 0);
    resize: none;
}