// 全局样式(在入口模块被加载时生效)
@import 'theme.css';
@import 'variables.less';
@import '~ant-design-vue/dist/antd.css';
// @import './fonts/iconfont.css';

// globals
html {
    font-family: @font-family;
    -webkit-text-size-adjust: 100%;
    -webkit-tap-highlight-color: @m-black;
    // better Font Rendering
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    margin: 0;
    overflow: hidden;
    background-color: @body-bg;
}

// change font path, required

// 布局组件样式初始化
.ant-layout {
    background: @m-white0;
    aside {
        background: @m-white0;
        .ant-layout-sider-children {
            section {
            }
        }
    }
    > section {
        header {
            background: @m-white0;
            padding: 0;
        }
        main {
            background: @m-white0;
            header {
            }
            main {
            }
        }
    }
}

.ant-card .ant-card-head {
    border: none;
    .ant-card-head-wrapper {
        border-bottom: 1px solid @m-white2;
        .ant-card-head-title {
            text-align: left;
            font-size: 16px;
            font-family: Source Han Sans CN;
            font-weight: 500;
            color: @m-grey24;
        }
    }
}

.ant-steps .ant-steps-item:not(.ant-steps-item-active) > .ant-steps-item-container[role='button']:hover .ant-steps-item-title,
.ant-steps .ant-steps-item:not(.ant-steps-item-active) > .ant-steps-item-container[role='button']:hover .ant-steps-item-subtitle,
.ant-steps .ant-steps-item:not(.ant-steps-item-active) > .ant-steps-item-container[role='button']:hover .ant-steps-item-description {
    color: @m-green2;
}
.ant-steps .ant-steps-item:not(.ant-steps-item-active):not(.ant-steps-item-process) > .ant-steps-item-container[role='button']:hover .ant-steps-item-icon {
    border-color: @m-green2;
}
.ant-modal-title {
    font-size: 18px;
    font-family: Source Han Sans CN;
    font-weight: 500;
    color: @m-green3;
}
.submit {
    background: @m-green3;
    border-radius: 3px;
    color: @m-white0;
}
.ant-btn-primary {
    background-color: @m-green3;
}


.ant-btn:hover,
.ant-btn:focus,
.ant-menu-item:hover,
.ant-menu-item-active,
.ant-menu:not(.ant-menu-inline) .ant-menu-submenu-open,
.ant-menu-submenu-active,
.ant-menu-submenu-title:hover,
.ant-menu-submenu-selected,
.ant-menu-item-selected,
.ant-menu-item-selected > a,
.ant-menu-item-selected > a:hover {
    color: @m-green3;
}

.ant-menu-vertical .ant-menu-item::after,
.ant-menu-vertical-left .ant-menu-item::after,
.ant-menu-vertical-right .ant-menu-item::after,
.ant-menu-inline .ant-menu-item::after {
    border-right: 3px solid @m-green3;
}

.ant-checkbox-checked::after,
.ant-checkbox-wrapper:hover .ant-checkbox-inner,
.ant-checkbox:hover .ant-checkbox-inner,
.ant-checkbox-input:focus + .ant-checkbox-inner,
.ant-input-affix-wrapper:hover,
.ant-input-affix-wrapper:focus,
.ant-select:not(.ant-select-disabled):hover .ant-select-selector,
.ant-btn-primary,
.ant-btn:hover,
.ant-input:focus,
.ant-input:hover,
.ant-btn:focus,
.ant-btn-primary,
.ant-btn:hover,
.ant-input:focus,
.ant-input:hover,
.ant-btn:focus {
    border-color: @m-green3;
}

.ant-input-affix-wrapper:focus,
.ant-btn:focus {
    box-shadow: @m-black19 0px 0px 0px 2px;
}

::selection {
    color: @m-white0;
    background: @m-white2;
}

.ant-modal-wrap {
    overflow-y: scroll;
}

.theme {
    color: @theme;
}

.icon {
    width: 1em;
    height: 1em;
    vertical-align: -0.15em;
    fill: currentColor;
    overflow: hidden;
}

.ant-spin-nested-loading > div > .ant-spin {
    // height: 90%;
    max-height: 100%;
}
.ant-spin-nested-loading {
    width: 100%;
    height: 100%;
    .ant-spin-container {
        width: 100%;
        height: 100%;
        display: flex;
    }
}
.ant-switch-checked {
    background-color: @theme;
}

.icon {
    cursor: pointer;
}

.ant-empty {
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.mt15 {
    margin-top: 15px;
}

.mt25 {
    margin-top: 25px;
}

.ellipsis {
    font-size: 12px;
    display: block/inline-block;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    width: 120px;
    display: inline-block;
}
.ellipsis_temp {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    width: 250px;
    display: inline-block;
}


.ant-menu-dark,
.ant-menu-dark {
    background-color: @m-grey18;
    .ant-menu-submenu-title {
        font-size: 16px;
        text-align: left;
    }
    .ant-menu-sub {
        background-color: @m-black4;
        .ant-menu-item {
            font-size: 14px;
            font-family: @menu-item-family;
            color: @menu-item-color;
            text-align: left;
        }
        .ant-menu-item-selected {
            color: @m-white0;
        }
    }
}

.ant-menu-horizontal > .ant-menu-item-active,
.ant-menu-horizontal > .ant-menu-item-open,
.ant-menu-horizontal > .ant-menu-item-selected,
.ant-menu-horizontal > .ant-menu-item:hover,
.ant-menu-horizontal > .ant-menu-submenu-active,
.ant-menu-horizontal > .ant-menu-submenu-open,
.ant-menu-horizontal > .ant-menu-submenu-selected,
.ant-menu-horizontal > .ant-menu-submenu:hover {
    color: @theme;
}

.mine_layout .ant-menu .ant-menu-item-selected,
.mine_layout .ant-menu .ant-menu-item:hover {
    color: @theme;
    border-bottom: 2px solid @theme;
}

.pointer {
    cursor: pointer;
}

.ant-table-wrapper {
    .ant-table-thead {
        tr th {
            background: @m-black8;
            color: @m-grey17;
            font-size: 14px;
            font-family: Adobe Heiti Std;
        }


        > tr:first-child {
            > th:last-child, > th:first-child {
                border-radius: 0px;

            }
        }
    }

    .ant-table-tbody > tr:hover:not(.ant-table-expanded-row):not(.ant-table-row-selected) > td {
        background: @m-blue3;
    }
    .ant-table-body tr td {
        background-color: @m-black2;
        color: white;
        cursor: pointer;
    }
    .ant-table-bordered .ant-table-thead > tr > th, .ant-table-bordered .ant-table-tbody > tr > td {
        padding: 0;
        height: 34px;
        line-height: 34px;
        border-color: @m-black9;
        font-family: Adobe Heiti Std;
        font-size: 16px;
    }
    .ant-table-fixed {
        width: max-content !important;
        color: @m-white1;
        background: @m-black2;
        border-top-color: @m-black2 !important;
        border-left-color: @m-black9 !important;
    }
}

.table-height {
    height: calc(100% - 40px);
}

.table-detail-container {
    position: relative;
    overflow: hidden;
}

.iframe-container {
    height: calc(100% - 40px);
    > iframe {
        border: 0;
        width: 100%;
        height: 100%;
    }
}

// 行情涨跌颜色
.up-quote-color {
    color: @m-red1;
}
.down-quote-color {
    color: @m-green4;
}