// DEPRECATED, will be removed summer 2016 (we hope).
.coveo-table-form {
    display: table;
    width: 100%;
    text-align: left;
    table-layout: fixed;
    transition: opacity 0.35s ease;

    .form-group {
        display: table-row;
        height: 36px;
        color: var(--deprecated-dark-grey);

        &.hidden {
            display: none;
        }

        &.disabled .value {
            background-color: transparent;
        }

        & > label:first-child,
        .value {
            display: table-cell;
            vertical-align: middle;
            border-top: 2px solid white;
            border-bottom: $table-border;
        }

        & > label:first-child {
            width: 30%;
            padding: 0 10px;
            color: var(--deprecated-medium-blue);
            font-size: $title-font-size;
            font-family: var(--main-font);
            background-color: var(--white);
        }

        .context-help {
            float: right;
        }

        .checkbox + span,
        .checkbox + button {
            margin-left: 10px;
        }

        .value {
            height: 39px;
            font-size: $title-font-size;
            background-color: var(--white);

            input:disabled:not([type='radio']) {
                font-weight: var(--main-font-bold);
                font-size: $title-font-size;
                font-family: var(--main-font);
                background-color: var(--white);
                opacity: 0.4;
            }

            &.disabled {
                background-color: var(--white);
            }

            input,
            textarea,
            .admin-select {
                box-sizing: border-box;
                padding: 6px 10px;
            }

            input {
                width: 100%;
                height: 39px;
                background-color: transparent;
                border-width: 0;
                box-shadow: none;
                resize: none;
            }

            input[type='file'] {
                padding: 9px 10px;
            }

            &.coveo-slide-toggle-label {
                padding: 0 10px;
            }

            &.admin-editable:hover {
                background-color: var(--deprecated-light-grey);
            }

            &.admin-non-editable {
                padding-left: 9px;
                background-color: var(--white);

                i {
                    margin-right: 5px;
                    vertical-align: text-bottom;
                }
            }

            .admin-multiline {
                margin-bottom: 0;
                border: none;
            }

            .admin-select {
                width: 100%;

                .dropdown-toggle {
                    box-sizing: border-box;
                    width: 100%;
                    padding-right: 30px;
                    padding-left: 0;
                    font-size: $title-font-size;
                    text-align: left;
                    background-color: transparent;
                    border: none;
                    box-shadow: none;
                    cursor: pointer;
                    opacity: 1;

                    &.disabled {
                        cursor: inherit;
                    }

                    .dropdown-toggle-arrow {
                        right: 21px;
                    }
                }

                .dropdown-menu {
                    box-sizing: border-box;
                    width: 100%;
                    max-height: 250px;
                    overflow-y: auto;
                    text-align: left;

                    @include slim-scroll;

                    li {
                        a i {
                            margin-top: 0;
                            margin-bottom: 0;
                            vertical-align: text-top;
                        }

                        > a,
                        > span {
                            padding-left: 9px;
                        }
                    }
                }
            }

            textarea {
                width: 100%;
                margin-bottom: 0;
                background-color: transparent;
                border: none;
                box-shadow: none;
                resize: vertical;

                @include slim-scroll;
            }
        }
    }

    &.disabled {
        opacity: 0.4;

        .form-group label {
            cursor: default;
        }
    }

    & + .coveo-table-form,
    & + .coveo-block-form {
        margin-top: 10px;
    }
}
