/*!
 * Licensed to the Apache Software Foundation (ASF) under one or more
 * contributor license agreements.  See the NOTICE file distributed with
 * this work for additional information regarding copyright ownership.
 * The ASF licenses this file to You under the Apache License, Version 2.0
 * (the "License"); you may not use this file except in compliance with
 * the License.  You may obtain a copy of the License at
 *
 *    http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 *
 */

mat-form-field.mat-mdc-form-field.form-field-size {
    font-size: 12px;
}

mat-form-field.mat-mdc-form-field.form-field-size-smaller {
    font-size: 8pt;
}

.form-field-margin .mat-mdc-form-field-wrapper {
    margin-bottom: -1.25em;
    padding-bottom: 1.25em;
}

.smaller-button-font-size.mat-mdc-raised-button {
    font-size: 0.8em;
    letter-spacing: 0.05em;
}

.icon-button-font-size.mat-mdc-button {
    font-size: 0.8em;
    letter-spacing: 0.05em;
}

.button-icon.mat-mdc-button {
    min-width: 0;
    border-radius: 0;
    padding: 0 4px;
}

.no-subscrip-wrapper {
    .mat-mdc-form-field-subscript-wrapper {
        height: 0;
    }
}

.form-field-small {
    .mat-mdc-input-element {
        font-size: 11pt;
    }

    .mat-mdc-form-field-flex {
        max-height: 30px;
    }

    .mat-mdc-text-field-wrapper.mdc-text-field--outlined
        .mat-mdc-form-field-infix {
        padding-top: 0;
        padding-bottom: 0;
        line-height: 30px;
        font-size: 11pt;
        min-height: 30px;
    }

    .mdc-text-field__input.smaller-font-size {
        font-size: 10pt;
    }

    .mat-mdc-text-field-wrapper {
        max-height: 30px;
        background: var(--color-bg-0);
    }

    .mat-mdc-form-field {
        max-height: 30px;
        min-height: 0;
    }

    .mat-mdc-select-value-text {
        font-size: 11pt;
    }

    .mat-mdc-text-field-wrapper
        .mat-mdc-form-field-flex
        .mat-mdc-floating-label {
        top: 14px;
    }

    .mat-mdc-text-field-wrapper
        .mat-mdc-form-field-flex
        .mdc-notched-outline--upgraded
        .mdc-floating-label--float-above {
        --mat-mdc-form-field-label-transform: translateY(-21.75px)
            scale(var(--mat-mdc-form-field-floating-label-scale, 0.75));
        transform: var(--mat-mdc-form-field-label-transform);
    }
}

.form-field-smaller {
    .mat-mdc-form-field-input-control.mat-mdc-form-field-input-control {
        letter-spacing: 0;
        font-size: 8pt;
        font-family: Arial, serif;
    }

    .mat-mdc-input-element {
        font-size: 8pt;
    }

    .mat-mdc-form-field-flex {
        max-height: 25px;
    }

    .mat-mdc-text-field-wrapper.mdc-text-field--outlined
        .mat-mdc-form-field-infix {
        padding-top: 0;
        padding-bottom: 0;
        line-height: 25px;
        font-size: 11pt;
    }

    .mdc-text-field__input.smaller-font-size {
        font-size: 8pt;
    }

    .mat-mdc-text-field-wrapper {
        max-height: 25px;
        background: var(--color-bg-0);
    }

    .mat-mdc-form-field {
        max-height: 25px;
    }

    .mat-mdc-select-value-text {
        font-size: 8pt;
    }

    .mat-mdc-text-field-wrapper
        .mat-mdc-form-field-flex
        .mat-mdc-floating-label {
        top: 14px;
    }

    .mat-mdc-text-field-wrapper
        .mat-mdc-form-field-flex
        .mdc-notched-outline--upgraded
        .mdc-floating-label--float-above {
        --mat-mdc-form-field-label-transform: translateY(-21.75px)
            scale(var(--mat-mdc-form-field-floating-label-scale, 0.75));
        transform: var(--mat-mdc-form-field-label-transform);
    }
}

.form-field-medium {
    .mat-mdc-input-element {
        font-size: 11pt;
    }

    .mat-mdc-form-field-flex {
        max-height: 40px;
    }

    .mat-mdc-text-field-wrapper.mdc-text-field--outlined
        .mat-mdc-form-field-infix {
        padding-top: 0;
        padding-bottom: 0;
        line-height: 40px;
        font-size: 11pt;
    }

    .mat-mdc-text-field-wrapper {
        max-height: 40px;
        background: var(--color-bg-0);
    }

    .mat-mdc-form-field {
        max-height: 40px;
    }

    .mat-mdc-select-value-text {
        font-size: 11pt;
    }

    .mat-mdc-text-field-wrapper
        .mat-mdc-form-field-flex
        .mat-mdc-floating-label {
        top: 20px;
        font-size: 11pt;
    }
}

.fix-input-label {
    margin-bottom: 20px;
}
