// 样式变量
@warning-color: #ff6262;
@primary-color: #4385ff;
@btn-height-base: 24px;
@text-color: #262626;
@font-size-lg: 14px;
@select-image-inner-h: 445px;
@app-amber: #5092e1;
@select-image-inner-h: 445px;
// img路径
@cdn_url: '';
@text-color-secondary: '#595959';

//change md-icon size
.mat-icon-size(@size: 20px) {
    height: @size;
    width: @size;
    line-height: @size;
}

//change md-button size
.mat-button-size(@size: 24px) {
    line-height: @size;
    height: @size;
    width: @size;
}

// 自定义级联字段错误样式
.error-cascader {
    .ant-cascader-input.ant-input {
        border-color: @warning-color !important;
    }
}

.w-100-percent {
    width: 100%;
}

// 错误提示边框
.error-border {
    border-color: @warning-color !important;
}

// 报错提示
.error-explain {
    clear: both;
    min-height: 24px;
    padding-top: 0px;
    color: @warning-color;
    line-height: 1.5715;
    transition: color 0.3s cubic-bezier(0.215, 0.61, 0.355, 1);
}

// 搜索查询组件
.new-search-container {
    .new-search-input {
        width: 100%;
    }

    .new-search-selected-container {
        margin-top: 16px;

        .selected-item {
            display: flex;
            padding: 6px 18px 6px 16px;
            margin: 0 -16px;

            .selected-item-name {
                width: calc(~'100% - 22px');
                margin-right: 8px;
            }

            .delete-icon {
                color: #000000;
            }
        }

        .selected-item:hover {
            background: rgba(0, 0, 0, 0.06);
        }
    }
}

.cursor-pointer {
    cursor: pointer;
}

.c-tip-icon {
    color: #979797;
}

.d-inline-block {
    display: inline-block !important;
}

.more {
    overflow: hidden; //超出的文本隐藏
    text-overflow: ellipsis; //溢出用省略号显示
    white-space: nowrap; //溢出不换行
    vertical-align: middle;
}

.list-style li {
    list-style: none;
    padding-bottom: 16px;
}

.segment-line {
    border-top: 1px solid #f0f0f0;
    height: 0;
    margin-top: 1rem;
    margin-bottom: 1rem;
}

.redefine-dialog {
    mat-checkbox {
        label {
            color: #333;
            vertical-align: middle;
            font-size: 12px;
            margin-top: 8px;
        }
    }

    div.inner-container {
        padding: 0 24px;
    }

    .dialog-head {
        color: #000;
        font-weight: bold;
        font-size: 17px;
    }

    .dialog-right-btn {
        float: right;

        label {
            margin-top: 0;
        }

        .mat-icon-button {
            width: 28px;
            height: 28px;
            line-height: 24px;
        }
    }

    .dialog-subtitle {
        display: block;
        font-size: 15px;
        color: #333;
    }

    .dialog-bottom {
        margin-top: 24px;
        text-align: right;
    }

    [class^='col-'] mat-form-field {
        width: 100%;
    }
}

// select-column.dialog 全选按钮
.p-relative {
    position: relative;
    .check-all {
        position: absolute;
        top: 3px;
        left: 8px;
    }
}

.font-12 {
    font-size: 12px;
}

// 录音播放器样式
vg-player {
    background-color: transparent !important;

    vg-controls {
        background: transparent;

        vg-time-display {
            color: #787878;
            width: 55px;
            font-size: 13px;
        }

        vg-scrub-bar {
            margin-left: 20px;
            margin-right: 0;

            vg-scrub-bar-current-time {
                background: #d7d7d7;
                height: 4px !important;

                .background {
                    border: 1px solid @primary-color !important;
                    background-color: @primary-color !important;
                }

                .slider {
                    background: @primary-color !important;
                    box-shadow: 0 0 10px @primary-color;
                    height: 11px;
                    width: 11px;
                    margin-top: -4px;
                }
            }
        }

        vg-play-pause {
            .icon {
                color: @primary-color;
                border: 1px solid @primary-color;
                border-radius: 50%;
                width: 22px;
                height: 22px;
                font-size: @font-size-lg;
                margin-top: 12px;
            }
        }

        vg-playback-button {
            .button {
                margin-left: -20px;
                margin-top: -5px;
                color: #787878;
            }
        }
    }
}

.tree-multi-select {
    nz-tree .ant-tree-switcher {
        color: #a3a3a3;
    }
    .ant-tree .ant-tree-node-content-wrapper {
        color: #000000d9;
    }
    .ant-tree .ant-tree-node-content-wrapper[ng-reflect-is-leaf='true'] {
        color: #000000a6;
    }
}

//reusetab 自定义样式
.tinet-tab-group {
    .ant-tabs-tab {
        padding: 0;
        border: none;
        margin: 0;
        background-color: #fff;

        .reuse-tab__name {
            color: #595959;
            flex: 1;
            font-weight: 400;
        }

        &.ant-tabs-tab-active {
            border-radius: 6px 6px 0px 0px;
            background-color: #f3f5f8;

            .reuse-tab__name {
                color: @primary-color;
            }
        }

        .set-fixed {
            display: none;
            cursor: pointer;
            position: absolute;
            left: 8px;
            font-size: 14px;
            color: #bfbfbf;
            width: 16px;
            top: 5px;
        }

        &:hover {
            .set-fixed {
                display: inline-block;
                color: #2397ff;
            }
        }

        .is-fixed {
            color: #666;
            display: inline-block;
        }

        .tab_close {
            cursor: pointer;
            position: absolute;
            right: 8px;
            font-size: 14px;
            color: #bfbfbf;
            width: 16px;
            top: 5px;
            &:hover {
                color: @primary-color;
            }
        }
    }
    .ant-tabs-ink-bar {
        height: 0 !important;
    }
}
