﻿.d-simple-form {
    display: table;
    border-collapse: collapse;
    width: 100%;
}

.d-form-column {
    display: table;
    float: left;
    width: 50%;
}

.d-form-entry {
    position: relative;
    display: table-row;
    margin-bottom: 20px;
}

    .d-form-entry > * {
        margin-bottom: 20px;
        display: table-cell;
    }

    .d-form-entry > label {
        padding-right: 10px;
    }

    .d-form-entry > .d-form-entry-action {
        position: absolute;
        right: 0;
        top: 0;
        cursor: pointer;
    }

    .d-form-entry > div > input, .d-form-entry > div > select {
        min-width: 250px;
    }

    .d-form-entry > div > select {
        width: 100%;
        height: 44px;
        padding: 5px;
        margin-bottom: 10px;
    }

.d-form-column:first-child {
    margin-left: 0px;
}

.d-form-panel {
    clear: both;
    display: block;
    text-align: center;
    margin-top: 20px;
}

.d-field-validation-valid {
    height: 20px;
    display: block;
}

.field-validation-error {
    position: absolute;
    color: red;
    font-size: 12px;
}



.d-simple-form .d-form-entry textarea {
    min-height: 100px;
    width: 100%;
    padding: 10px;
    overflow-y: auto !important;
    word-break: break-all;
}

.d-simple-form #inline {
    display: block;
    margin: 0;
}

    .d-simple-form #inline .d-form-entry {
        float: left;
        display: table;
        margin-right: 20px;
        margin-bottom: 10px;
    }

        .d-simple-form #inline.d-form-entry:last-child {
            margin-right: 0px;
        }

        .d-simple-form #inline .d-form-entry > label {
            margin-bottom: 5px;
        }

        .d-simple-form #inline .d-form-entry > * {
            float: left;
            clear: both;
            margin: 0;
        }

        .d-simple-form #inline .d-form-entry .d-field-validation-valid {
            margin-top: 5px;
        }

[class$="one-col"] .d-form-entry > label {
    clear: left;
    margin-bottom: 5px;
}

[class$="one-col"] .d-form-entry > * {
    float: left;
    clear: both;
    margin: 0;
}

[class$="one-col"] .d-form-entry .d-field-validation-valid {
    margin-top: 5px;
}

[class$="two-col"] .d-form-entry .d-field-validation-valid {
    margin-top: 5px;
}

[class$="one-col"] .d-form-entry > div {
    display: table;
    width: 100%;
    margin: 0;
}

    [class$="one-col"] .d-form-entry > div > input[type='text'] {
        display: table;
        width: 100%;
        margin: 0;
    }

[class$="one-col"] .d-form-entry {
    display: table;
    width: 100%;
}

    /*ANTD/SEMANTIC-UI DATEPICKER/TIMEPICKER FIX! :( */

    [class$="one-col"] .d-form-entry .ant-calendar-picker,
    [class$="one-col"] .d-form-entry > div > .ant-calendar-picker > div,
    [class$="one-col"] .d-form-entry .ant-time-picker,
    [class$="one-col"] .d-form-entry > div > .ant-time-picker > div {
        display: table !important;
        width: 100% !important;
    }

    [class$="one-col"] .d-form-entry div.dropdown {
        border-radius: 4px;
        width: 100% !important;
        min-height: 36px;
        padding-top: 10px;
        padding-left: 10px;
    }

    [class$="one-col"] .d-form-entry div.multiple {
        padding-left: 4px;
        padding-top: 5px;
        height: auto;
    }

/*#####################################*/

/*############# FORM COLUMNS ############*/

[class$="two-col"] .d-form-entry > div {
    display: table;
    width: 100%;
    margin: 0;
}

[class$="two-col"] .d-form-col {
    width: 50% !important;
    display: table;
    vertical-align: top;
    text-align: left;
    float: left;
    padding-left: 10px;
    box-sizing: border-box;
}

    [class$="two-col"] .d-form-col:nth-child(2n) > * {
        margin-left: 10px !important;
    }

[class$="two-col"] .d-form-entry {
    display: table;
    width: 100%;
}

.d-simple-form .d-form-entry > label {
    display: table;
    margin: 0;
    margin-bottom: 5px;
}



/*ANTD/SEMANTIC-UI DATEPICKER/TIMEPICKER FIX! :( */


/*#####################################*/

[class$="two-col"] .d-form-entry > div input[type='text'], [class$="two-col"] .d-form-entry > div input[type='password'] {
    display: table !important;
    width: 100% !important;
}

/*#######################################*/

@media(max-width: 1280px) {
    .d-form-entry > div > input, .d-form-entry > div > select {
        min-width: 200px;
    }

    [class$="two-col"] .d-form-col.d-form-col-custom {
        width: 100% !important;
    }
}

@media(max-width: 1600px) {
    [class$="two-col"] .d-form-col.d-form-col-custom {
        width: 100% !important;
        margin-left: -10px;
    }
}
