.array-item {
    border-radius: 12px !important;
    border: 0.5px solid #ccc;
    box-shadow: none !important;
    padding: 18px !important;
    position: relative !important;
}
.legend {
    border-bottom: none;
}
root-widget div:nth-last-child(1):not(:first-child)  select-framework-widget select-widget-widget flex-layout-section-widget fieldset flex-layout-root-widget div {
    flex: 1 1 33.33% !important;
    padding: 2px;
}
root-widget div:nth-child(1) flex-layout-root-widget div {
    flex: 1 1 100% !important;
}

.mat-form-field-appearance-fill .mat-form-field-label {
    color: #000000e8;
}
lib-json-schema-form ~ .mat-focus-indicator {
    top: 28px !important;
} 
.mat-form-field {
    font-weight: 200;
    font-size: 16px;
    padding-bottom: 0;
}
 formly-field formly-object-type .object:not(formly-field formly-object-type .array-type .object):not(formly-form formly-field formly-object-type .object) {
    width: 33%;
}
formly-field formly-object-type .object formly-field .array-type .object formly-field mat-form-field{
    width: 100% !important;
}
 formly-field formly-object-type .object formly-field .object, formly-array-type > div{
    border: 1px solid rgb(174, 174, 174);
    padding: 20px 20px 20px 20px;
    border-radius: 12px;

}

.mat-form-field-custom > .mat-form-field-custom {
    margin-left: 12px;
}
.mat-form-field-custom > .mat-icon-button {
    color: green;
}
.mat-form-field-custom > .mat-icon-button::after {
    content: " Add";

}
.mat-form-field-appearance-fill .example-handle{
    top: 28px !important;
}
.close-button {
    position: absolute;
    right: 0px;
    top: 14px;
    visibility: hidden;
}
.array-type {
    position: relative;
}
.array-type:hover .close-button {
    visibility: visible !important;
}
object:hover .close-button {
    visibility: visible !important;
}

.mat-form-field.mat-form-field-appearance-fill {

    /* Disabled */
    &.mat-form-field-disabled {
        opacity: 0.7 !important;
    }

    /* Disable floating mat-label */
    &.mat-form-field-has-label.mat-form-field-can-float.mat-form-field-should-float {

        .mat-form-field-label-wrapper {

            .mat-form-field-label {
                width: 100% !important;
                transform: none !important;
            }
        }
    }
    /* Adjustments for mat-label */
    &.mat-form-field-has-label {

        .mat-form-field-wrapper {
            margin-top: 24px;
        }
    }

    /* Default style tweaks and enhancements */
    .mat-form-field-wrapper {
        // margin-bottom: 16px;
        padding-bottom: 0;

        .mat-form-field-flex {
            position: relative;
            display: flex;
            align-items: center;
            min-height: 48px;
            border-radius: 6px;
            padding: 0 16px;
            border-width: 1px;

            .mat-form-field-prefix {

                > .mat-icon {
                    margin-right: 12px;
                }

                > .mat-icon-button {
                    margin: 0 4px 0 -10px;
                }

                > .mat-select {
                    margin-right: 10px;
                }

                > .mat-datepicker-toggle {
                    margin-left: -8px;
                }

                > *:not(.mat-icon):not(.mat-icon-button):not(.mat-select):not(.mat-datepicker-toggle) {
                    margin-right: 12px;
                }
            }

            .mat-form-field-suffix {

                > .mat-icon {
                    margin-left: 12px;
                }

                > .mat-icon-button {
                    margin: 0 -10px 0 4px;
                }

                > .mat-select {
                    margin-left: 10px;
                }

                > .mat-datepicker-toggle {
                    margin-right: -8px;
                }
            }

            .mat-form-field-prefix,
            .mat-form-field-suffix {
                display: inline-flex;
                align-items: center;
                justify-content: center;

                .mat-icon-button {
                    width: 40px;
                    min-width: 40px;
                    height: 40px;
                    min-height: 40px;
                }

                /* Remove the margins from the mat-icon if it's inside a button */
                /* Force the icon size to 24 */
                .mat-button,
                .mat-raised-button,
                .mat-icon-button,
                .mat-stroked-button,
                .mat-flat-button,
                .mat-fab,
                .mat-mini-fab {

                    .mat-icon {
                        margin: 0 !important;
                       
                    }
                }

                /* Make mat-select usable as prefix and suffix */
                .mat-select {
                    display: flex;
                    align-items: center;

                    &:focus {

                        .mat-select-trigger {

                       
                            .mat-select-arrow-wrapper {

                                .mat-select-arrow {
                                    border-top-color: var(--fuse-primary) !important;
                                }
                            }
                        }
                    }

                    .mat-select-trigger {
                        display: flex;
                        align-items: center;

                        .mat-select-value {
                            display: flex;
                            max-width: none;

                            mat-select-trigger {

                                .mat-icon {
                                    margin: 0 !important;
                                }
                            }
                        }

                        .mat-select-arrow-wrapper {
                            display: flex;
                            align-items: center;
                            transform: none;
                            margin-left: 4px;

                            .mat-select-arrow {
                                min-height: 0;
                            }
                        }
                    }
                }
            }

            .mat-form-field-infix {
                position: static;
                // display: flex;
                align-items: center;
                width: 88px;
                padding: 0;
                border-top: 0 !important;
                .mat-input-element {
                    padding: 14px 0;
                    margin-top: 0;
                }

                /* Textarea */
                textarea.mat-input-element {
                    display: flex;
                    align-self: stretch;
                    min-height: 90px;
                    height: auto;
                    margin: 10px 0;
                    padding: 4px 6px 4px 0 !important;
                    transform: none;
                    border: none !important;
                }

                /* Select */
                .mat-select {
                    display: inline-flex;

                    .mat-select-trigger {
                        display: inline-flex;
                        align-items: center;
                        width: 100%;

                        .mat-select-value {
                            display: flex;
                            position: relative;
                            max-width: none;

                            .mat-select-value-text {
                                display: inline-flex;

                                > * {
                                    overflow: hidden;
                                    white-space: nowrap;
                                    text-overflow: ellipsis;
                                }
                            }
                        }
                    }

                    .mat-select-arrow-wrapper {
                        transform: translateY(0);

                        .mat-select-arrow {
                            margin: 0 0 0 8px;
                        }
                    }
                }

                /* Chips */
                .mat-chip-list {
                    width: 100%;
                    margin: 0 -8px;

                    .mat-chip-input {
                        margin: 0 0 0 8px;
                    }
                }

                .mat-form-field-label-wrapper {
                    top: -25px;
                    height: auto;
                    padding-top: 0;
                    overflow: visible;
                    pointer-events: auto;

                    .mat-form-field-label {
                        position: relative;
                        top: 0;
                        margin-top: 0;
                        backface-visibility: hidden;
                        transition: none;
                        font-weight: 500;
                    }
                }
            }
        }

        /* Remove the underline */
        .mat-form-field-underline {
            display: none;
        }

        /* Subscript tweaks */
        .mat-form-field-subscript-wrapper {
            position: relative;
            top: auto;
            padding: 0;
            margin-top: 0;
            font-size: 12px;
            font-weight: 200;
            line-height: 1;

            > div {
                display: contents; /* Remove the div from flow to stop the subscript animation */
            }

            .mat-error,
            .mat-hint {
                display: block;
                margin-top: 4px;
                color: rgba(0,0,0,1);
            }

        }
    }

}
.mat-form-field {
    width:100%;
    margin-bottom: 20px;
}
.mat-tab-label-active {
    color: #0099FF;
}

//  .card .card-body formly-field:last-child .mat-form-field, .card .card-body formly-field:last-child formly-object-type div{
//    margin-bottom: 0px !important;
//  }

.textOutputBox{
    margin-top:10px;
    padding: 4% 2%;
    background: #fafafa;
    color: #7b7979;
    border-radius:5px;
    float:none;
}

.td-genTextClassification{
    width:50%; 
    border: 1px solid lightgray; 
    text-align: center;
    padding:5px
}
.mat-form-field-appearance-fill.mat-form-field-disabled .mat-form-field-label, .mat-input-element:disabled, .mat-form-field-type-mat-native-select.mat-form-field-disabled .mat-form-field-infix::after {
    color: #000000e8 !important;
}
.ng-select.ng-select-single .ng-select-container .ng-value-container .ng-input {
    padding: 0 16px
}
.ng-select.ng-select-single .ng-select-container .ng-arrow-wrapper {
    bottom: 16px;
}
.ng-select.ng-select-single .ng-select-container .ng-clear-wrapper {
    bottom: 14px;
}
  .ng-select .ng-select-container .ng-value-container {
    border-top :0
}
.ng-select.ng-select-single .ng-select-container .ng-value-container .ng-input {
    top: 14px
}
@import "~@ng-select/ng-select/themes/material.theme.css";
.ng-select .ng-select-container {
    position: relative;
    display: flex;
    align-items: center;
    min-height: 48px;
    border-radius: 6px;
    padding: 0 16px;
    border-width: 1px;
    background-color: white;

}
.ng-select.ng-touched.ng-invalid .ng-select-container:after{border-color:#f44336;border-width:2px}
.btn-warning {
    color: #fff;
    background-color: #f0ad4e;
    border-color: #eea236;
}
.btn-primary {
    color: #fff;
    background-color: #3f51b5;
}
.btn {
    display: inline-block;
    padding: 6px 12px;
    margin-bottom: 0;
    font-size: 14px;
    font-weight: 400;
    line-height: 1.42857143;
    text-align: center;
    white-space: nowrap;
    vertical-align: middle;
    -ms-touch-action: manipulation;
    touch-action: manipulation;
    cursor: pointer;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    background-image: none;
    border: 1px solid transparent;
    border-radius: 4px;
}

.ngx-td-tooltip {
    position: relative;
    display: inline-block;
    font-weight: 1000;
    cursor: pointer;
    left:5px;
  }
  
  .ngx-td-tooltip .tooltiptext {
    visibility: hidden;
    background-color: #EF0A77;
    display: inline-block !important;
    color: #fff;
    border-radius: 6px;
    padding: 5px;
    position: absolute;
    z-index: 1;
    left: 20px;
    width: 300px;
    font-weight: 400;
  }
  
  .ngx-td-tooltip:hover .tooltiptext {
    visibility: visible;
    padding: 10px;
  }