::ng-deep {
    body[cds-theme="dark"] {
        .clause-logic {
            background: #192a30;
        }

        .clause-query {
            background: #263e48;
        }
    }

    body[cds-theme="light"] {
        .clause-logic {
            background: #e9e9e9;
        }

        .clause-query {
            background: #fbf8f8;
        }
    }
}

.content {
    display: flex;

    .clauses-container {
        display: flex;
        flex-direction: column;

        .clause-logic {
            display: flex;
            justify-content: center;
            flex-direction: column;

            padding: 15px;
        }

        .clause-query {
            padding: 30px 0px 20px 20px;
            display: flex;
            justify-content: center;
            flex-direction: column;
            position: relative;

            & > .clr-row {
                justify-content: space-between;

                &:not(:last-child) {
                    padding-bottom: 15px;
                    margin-bottom: 15px;
                    border-bottom: 1px solid rgba(0, 0, 0, 0.16)
                }
            }

            .remove-group-clause-button {
                position: absolute;
                top: 0px;
                right: 10px;
                color: gray;
            }

            .variable-col {
                display: flex;
                align-items: flex-start;
                padding-bottom: 1px;

                .datalist-wrapper {
                    width: 100%;

                    input {
                        width: 100%;
                    }
                }
            }

            .operator-col {
                display: flex;
                align-items: flex-start;

                clr-select-container {
                    height: 45px;
                    margin-top: 0;
                    width: 100%;
                }
            }

            .value-col {
                display: flex;
                align-items: flex-start;
                padding-bottom: 1px;

                .checkbox-vals {
                    width: 100%;
                    padding: 0px 5px;
                    border-bottom: 1px solid rgba(0, 0, 0, 0.3);

                    clr-checkbox-container {
                        margin-top: 0;
                    }

                    section {
                        max-height: 120px;
                        overflow-y: scroll;
                    }
                }

                .single-field-vals {
                    width: 100%;

                    ::ng-deep {
                        .clr-control-container {
                            width: 100%;

                            .clr-input-wrapper {
                                max-width: none;

                                .clr-input-group {
                                    width: 100%;
                                }
                            }
                        }
                    }

                    & > input {
                        width: 100%;
                    }

                    input[type=time] {
                        width: 100%;
                        padding-right: 17px;
                    }
                }

                .range-vals {
                    width: 100%;

                    ::ng-deep {
                        .clr-control-container {
                            width: 100%;

                            .clr-input-wrapper {
                                max-width: none;

                                .clr-input-group {
                                    width: 100%;
                                }
                            }
                        }
                    }

                    .from {
                        margin-bottom: 10px;

                        & > input {
                            width: 100%;
                        }

                        input[type=time] {
                            width: 100%;
                            padding-right: 17px;
                        }
                    }

                    .from, .to {
                        min-width: 100px;

                        & > input {
                            width: 100%;
                        }

                        input[type=time] {
                            width: 100%;
                            padding-right: 17px;
                        }
                    }
                }

                .contains-vals {
                    width: 100%;

                    ::ng-deep {
                        .clr-control-container {
                            width: 100%;

                            .clr-input-wrapper {
                                max-width: none;

                                .clr-input-group {
                                    width: 100%;
                                }
                            }
                        }
                    }

                    & > input {
                        width: 100%;
                    }

                    input[type=time] {
                        width: 100%;
                        padding-right: 17px;
                    }
                }
            }

            .clause-buttons {
                display: flex;
                justify-content: space-around;
                align-items: center;
                flex-direction: row;
                align-items: center;

                button {
                    min-width: auto;
                }
            }
        }
    }
}

.invalid-clause {
    border-left: 2px solid #d94b31;
}

.clause-row {
    clr-icon {
        margin: 0;
    }
}

.clause-row:after {
    position: relative;
    content: "";
    height: .41667rem;
    width: .41667rem;
    top: .29167rem;
    right: .25rem;
    background-image: url(data:image/svg+xml;charset=utf8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org…%2C9.84%2C3.24a0.68%2C0.68%2C0%2C1%2C1%2C1%2C1Z%22%2F%3E%0A%3C%2Fsvg%3E%0A);
    background-repeat: no-repeat;
    background-size: contain;
    vertical-align: middle;
    margin: 0;
}

::ng-deep body[cds-theme="dark"] {
    .line-numbers {
        border-color: #989797 !important;
    }
}

pre[class*="language-"] {
    padding: 8px;
    margin: 0;
    border-radius: 1px;

    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 66px;

    position: relative;

    span.spinner {
        position: absolute;
        left: 10px;
        top: 10px;
    }

    code {
        white-space: pre-wrap;
        word-break: break-word;
    }
}

.input-val {
    border: 0px;
    background: #fbf8f8;
    border-bottom: 1px solid #999999;
}

clr-date-container {
    margin-top: 2px !important;
}

input[type="time"] {
    border: 0;
    background: transparent;
    border-bottom: 1px solid #b3b3b3;

    &:focus {
        outline: none;
    }
}

.in-values-modal {
    .modal-footer {
        border-top: 1px solid #d8d8d8;
        margin-top: 10px;
    }
}

.progress, .progress-static {
    background-color: transparent;
    width: 100%;
    height: 4px;
    top: 3px;
}