﻿input[class^=FormTextBox] {
    border-width: 1px;
    border-radius: var(--input-border-radius);
}

input[class^=FormTextBox]:focus {
    border-color: var(--primary-color);
}

.FormFieldReadonly {
}

.FormFieldHasLookup {

}

.FormFieldHasLookup + .ImageButtonBox {

}

.FormTextBox,
.FormTextBoxRequired,
.FormTextBoxError,
.FormTextBoxReadonly,
.FormField,
.FormFieldReadonly,
input[type=file],
.LoginTextBox {
    border-color: var(--surface-3);
    background-color: transparent;
}

.FormTextBoxOneAggregatedIcon .FormTextBox.DateField,
input[type=text].DateField, span.DateField {
    width: 100% !important;
}

.FormTextBox.DateField.aspNetDisabled {
    background: var(--surface-2) !important;
    cursor: default;
}

.FormTextBox.DateField + .ImageButtonBox.glyphicon-calendar,
.FormTextBoxRequired.DateField + .ImageButtonBox.glyphicon-calendar,
.FormTextBoxError.DateField + .ImageButtonBox.glyphicon-calendar,
.FormTextBoxReadonly.DateField + .ImageButtonBox.glyphicon-calendar {
    margin: 0;
    margin-left: calc(-1 * var(--font-size-5)) !important;
    background-color: transparent;
    box-sizing: border-box !important;
    height: var(--font-size-4) !important;
    width: var(--font-size-4);
    margin: var(--font-size-00);
    border: 0;
    border-top-left-radius: 0;
    border-top-right-radius: var(--main-border-radius) !important;
    border-bottom-left-radius: 0;
    border-bottom-right-radius: var(--main-border-radius) !important;
}

    .FormTextBox.DateField + .ImageButtonBox.glyphicon-calendar:hover,
    .FormTextBoxRequired.DateField + .ImageButtonBox.glyphicon-calendar:hover,
    .FormTextBoxError.DateField + .ImageButtonBox.glyphicon-calendar:hover {
        box-shadow: 0 0 0 0 rgba(0, 0, 0, 0), 0 0px transparent, 0 0 0 var(--_highlight-size) var(--_highlight);
        background-color: var(--_highlight);
    }

    .FormTextBoxReadonly.DateField + .ImageButtonBox.glyphicon-calendar:hover,
    .FormTextBox.DateField.aspNetDisabled + .ImageButtonBox.glyphicon-calendar:hover {
        box-shadow: none;
        background: none;
    }

    .FormTextBox.DateField + .ImageButtonBox.glyphicon-calendar::before,
    .FormTextBoxRequired.DateField + .ImageButtonBox.glyphicon-calendar::before,
    .FormTextBoxError.DateField + .ImageButtonBox.glyphicon-calendar::before,
    .FormTextBoxReadonly.DateField + .ImageButtonBox.glyphicon-calendar::before {
        content: "\E787";
        -moz-osx-font-smoothing: grayscale;
        -webkit-font-smoothing: antialiased;
        display: inline-block;
        font-family: 'FabricMDL2Icons';
        font-style: normal;
        font-weight: normal;
        speak: none;
        color: var(--text-1);
        position: absolute;
        line-height: var(--font-size-1);
        font-size: var(--font-size-1);
    }

    .FormTextBoxReadonly.DateField + .ImageButtonBox.glyphicon-calendar::before,
    .FormTextBox.DateField.aspNetDisabled + .ImageButtonBox.glyphicon-calendar::before {
        color: var(--gray-5);
    }

    .FormTextBoxReadonly.DateField + .ImageButtonBox.glyphicon-calendar .ui-datepicker-trigger,
    .FormTextBox.DateField.aspNetDisabled + .ImageButtonBox.glyphicon-calendar .ui-datepicker-trigger {
        pointer-events: none;
    }

textarea.FormTextBox,
textarea.FormTextBoxRequired,
textarea.FormTextBoxError,
textarea.FormTextBoxReadonly,
textarea.FormField,
textarea.FormFieldReadonly {
    height: auto;
    line-height: normal;
    white-space: normal;
}
