html{
    font-size: 14px;
}
body {
    font-family: "Arial", "Microsoft YaHei", "幼圆", "宋体", sans-serif;
    font-size: 14px;
    color: #1e1d20;
}
@media (max-width: 1280px) {
    html{
        font-size: 12.5px;
    }
    body {
        font-size: 12.5px;
    }
}

@media (min-width: 1200px) {
    .modal-xlg {
        max-width: 1200px;
    }
    .modal-dialog.modal-lg {
        max-width: 800px;
    }
}

.unit{
    color: var(--gray);
    margin-left: 0.25rem;
    font-size: 75%;
}
hr.dashed{
    border-top-style: dashed;
}
.border-bottom-dashed{
    border-bottom: 1px dashed #dee2e6!important;
}

.tombstones {
    border-radius: 1rem;
    background: #E0E0E0;
    height: 1rem;
    margin-top: .75rem;
    width: 100%;
    display: block;
}
hr.hr-text {
    font-size: 12.5px;
    position: relative;
    outline: 0;
    border: 0;
    text-align: center;
    height: 1.5em;
    background: #fff;
    line-height: 1.5;
}
hr.hr-text:before {
    content : '';
    background: #dee2e6;
    position: absolute;
    left: 0;
    top: 50%;
    width: 100%;
    height: 1px;
}
hr.hr-text:after{
    content: attr(data-content);
    position: relative;
    display: inline-block;
    padding: 0 1.5rem;
    margin: 0 -.5rem;
    background-color: inherit;
}

nav.navbar .font-logo{
    font-size: 37px;
    line-height: 39px;
    color: var(--secondary);
}
.navbar-dark .navbar-brand{
    color: var(--secondary);
    font-size: 2.5rem;
    padding: 0 0.5rem;
}
nav.navbar .navbar-date [class^="fa fa-digit"]{
    margin:0 -3px;
}
.navbar.navbar-dark,
.navbar.navbar-dark .nav-item .dropdown-menu{
    background: #120719;
}
.navbar.navbar-dark .nav-item .nav-link,
.navbar.navbar-dark .nav-item .dropdown-item {
    color: rgba(255, 255, 255, .7);
}
.navbar.navbar-dark .nav-item .nav-link:hover,
.navbar.navbar-dark .nav-item.show,
.navbar.navbar-dark .nav-item.active .nav-link,
.navbar.navbar-dark .nav-item.active .nav-link:focus,
.navbar.navbar-dark .nav-item .dropdown-item:hover{
    background-color: #3e006b87;
    color: #EEEEEE;
}


.navbar-info{
    position: relative;
    min-width: 18rem;
}
.navbar-info .project-date{
    font-size: 19px;
    padding: 6px 0;
    margin-right: 10px;
    color: #ddccf8;
}
.navbar-info .project-date i.fa{
    margin : 0 -3px;
}
.navbar-info  hr{
    margin: 0;
    border-color: #66598a;
}
.navbar-info .project-name{
    color: rgba(255, 255, 255, .7);
    text-overflow: ellipsis;
    overflow: hidden;
    white-space: nowrap;
    margin-bottom: 0;
    margin-top: 5px;;
}

.navbar-info .suspend-toggle{
    -webkit-transition:max-height 0.75s;
    -moz-transition:max-height 0.75s;
    -o-transition:max-height 0.75s;
    transition:max-height 0.75s;
    max-height: 0;
    overflow: hidden;
    position: absolute;
    top: 95px;
    min-width : 20rem;
    left: 0;
}
.navbar-info .suspend-toggle > .list-group{
    border: 0;
}
.navbar-info .suspend-toggle > .list-group .list-group-item{
    background-color: #120719;
    border-color: #555;
    color: #6fa1bb;
}
.nav-business-role .nav-link:hover,
.nav-business-role .nav-link{
    padding: 11px 20px;
    border: none;
}

.navbar.navbar-dark .nav-business-role .nav-link.active{
    background-color: #3e006b87;
    color: #FFFFFF;
}
.navbar-info .daily-info{
    background-color: #3e006b87;
    border-top: 1px solid #555555;
}
.navbar-info .race-name{
    font-size: 0.8rem;
    line-height: 1.5rem;
    padding: 2px 0;
}
.navbar-info .account-cash-amount{
    font-weight: 600;
    font-size: 24px;
    margin-bottom: 3px;
    color: #ddccf8;
}
.navbar-info .account-cash-amount .unit{
    font-weight: 400;
    font-size: 0.5em;
}

.navbar-info .race-name:hover ~ .suspend-toggle{
    /*     border-top: 1px solid #555; */
    max-height: 500px;
}

.navbar.fixed-top.navbar-dark.bg-dark{
    background-color: #120719 !important;
}
.navbar.fixed-top.navbar-dark.bg-dark .navbar-collapse{
    background-color: #120719 !important;
    -ms-flex-item-align: center!important;
    align-self: stretch;
}

.navbar.fixed-top.navbar-dark.bg-dark .navbar-collapse > .navbar-nav{
    -ms-flex-item-align: center!important;
    align-self: stretch;
}


.navbar.fixed-top *:focus{
    outline: 0;
}

.navbar.fixed-top .navbar-nav > .nav-item.disabled{
    pointer-events: none;
}
.navbar.fixed-top .navbar-nav > .nav-item.disabled > .nav-link{
    color: rgba(255,255,255,.2);

}
.navbar.fixed-top .navbar-nav > .nav-item > .nav-link:hover,
.navbar.fixed-top .navbar-nav > .nav-item > .nav-link:focus{
    background-color: #3e006b87;
    color: white;
}
.navbar.fixed-top.navbar-dark .navbar-nav .active > .nav-link{
    background-color: #3e006b87;
}



.navbar.fixed-top  .dropdown-menu {
    background-color: #120719;
    -webkit-box-shadow: 0 6px 12px rgba(0, 0, 0, 0.175);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.175);
    max-width: 320px;
    padding: 0;
}
.navbar.fixed-top  .dropdown-menu .dropdown-item {
    color: rgba(255, 255, 255, .8);
    padding: 16px 55px 16px 35px;
}
.navbar.fixed-top  .dropdown-menu .dropdown-item.disabled {
    cursor: not-allowed;
    color: rgba(255, 255, 255, .5);
}
.navbar.fixed-top  .dropdown-menu .dropdown-divider {
    margin: 0;
}
.navbar.fixed-top  .dropdown-menu .dropdown-item:not(.disabled):hover,
.navbar.fixed-top  .dropdown-menu .dropdown-item:not(.disabled):focus{
    background: rgb(60, 91, 121) !important;
    color: #FFF;
}

.navbar.fixed-top,
.navbar.fixed-top + .navbar-fixed-top-secondary{
    min-height: 50px;
}
.navbar.fixed-top + .navbar-fixed-top-secondary{
    /*margin-bottom: 1.5rem;*/
}
@media (min-width: 576px) {
    .navbar.fixed-top{
        height: 70px;
        padding-top: 0;
        padding-bottom: 0;
    }
    .navbar.fixed-top + .navbar-fixed-top-secondary{
        height: 70px;
    }

    .navbar.fixed-top.execute-top{
        height: 95px;
    }
    .navbar.fixed-top.execute-top + .navbar-fixed-top-secondary{
        height: 95px;
    }
}


.navbar.fixed-top.execute-top .navbar-nav > .nav-item > .nav-link:hover,
.navbar.fixed-top.execute-top .navbar-nav > .nav-item > .nav-link:focus{
    background-color: #3e006b87;
    color: white;
}
.navbar.fixed-top.execute-top .navbar-nav > .nav-item.flex-column > .nav-link{
    padding: 0;
    height: 100%;
    display: -ms-flexbox!important;
    display: flex!important;

    -ms-flex-align: center!important;
    align-items: center!important;

    -ms-flex-pack: center!important;
    justify-content: center!important;
}



.navbar.fixed-top.execute-top .navbar-nav > .nav-item > .nav-link .icon{
    float: left;
    font-size: 36px;
    line-height: 50px;
    color: #555;
}
.navbar.fixed-top.execute-top .navbar-nav > .nav-item > .nav-link .icon:after{
    content: '';
    clear: both;
}
.navbar.fixed-top.execute-top .navbar-nav > .nav-item.active > .nav-link .icon{
    color: #fff;
}

.navbar.fixed-top.execute-top .navbar-nav > .nav-item > .nav-link .statistics-block{
    text-align: center;
    margin:0 0 0 40px;
}
.navbar.fixed-top.execute-top .navbar-nav > .nav-item > .nav-link .statistics-block:after{
    content: '';
    display: block;
    clear: both;
}
.navbar.fixed-top.execute-top .navbar-nav > .nav-item > .nav-link .statistics-block .top{
    display: block;
    font-size: 14px;
    border-bottom: 1px solid #555;
    padding-bottom: 3px;
    margin:0;
}
.navbar.fixed-top.execute-top .navbar-nav > .nav-item > .nav-link .statistics-block .bottom{
    display: block;
    font-size: 16px;
    padding-top: 3px;
    margin:0;
    font-weight: 600;
}

.navbar.fixed-top.execute-top .navbar-nav > .nav-item > .nav-link .statistics-block small{
    margin-left:2px;
    font-style:italic;
    color: #999;
}
.navbar.fixed-top.execute-top .navbar-nav > .nav-item > .nav-link .statistics-block .badge small{
    color: #f8f9fa !important;
}

.navbar.fixed-top.execute-top .text-success{
    color: #2dcb73 !important
}
.navbar.fixed-top.execute-top .text-light{
    color: #f8f9fa !important
}


.navbar.fixed-top.execute-top .navbar-nav > .nav-item > .nav-link .progress{
    margin: 5px 0;
    height: 1px;
}


.dropdown-status{
    font-family: 'font-easymoo';
}
.dropdown-status .btn.dropdown-toggle{
    background: transparent;
    border: 0;
    outline: 0;
    box-shadow: none !important;
}
.dropdown-status-pause > .dropdown-toggle:before{
    content: "\ea33  暂停";
    color: #00c0ef;
    margin-right: 5px;
}
.dropdown-status-pause .dropdown-item:nth-child(1):before{
    content: "\ea44  运行";
}
.dropdown-status-pause .dropdown-item:nth-child(2):before{
    content: "\ea6c  结束";
}

.dropdown-status-resume > .dropdown-toggle:before{
    content: "\ea44  运行中";
    color: #2dcb73;
    margin-right: 5px;
}
.dropdown-status-resume .dropdown-item:nth-child(1):before{
    content: "\ea33  暂停";
}
.dropdown-status-resume .dropdown-item:nth-child(2):before{
    content: "\ea6c  结束";
}

.dropdown-status-stop{
    pointer-events: none;
}
.dropdown-status-stop > .dropdown-toggle:before{
    color: #6c757d;
    content: "\e9b5  已完成";
}
.dropdown-status-stop > .dropdown-toggle:after{
    border: none;
}


.label-status{
    font-family: 'font-easymoo';
    /*font-size: 1.25rem;*/
    line-height: 1.25rem;
    padding-bottom: 3px;
}
.label-status-suspend{
    color: #00c0ef !important;
}
.label-status-suspend:before{
    content: "\ea33 暂停";
}
.label-status-complete{
    color: #6c757d!important;
}
.label-status-complete:before{
    content: "\e9b5 已完成";
}
.label-status-processing{
    color: #2dcb73 !important;
}
.label-status-processing:before{
    content: "\ea44 运行中"
}
.label-status-bankruptcy{
    color: #ff604f !important;
}
.label-status-bankruptcy:before{
    content: "\ea92 破产";
}


/* for select 2 bootstrp theme */
.select2-container--bootstrap.select2-container--focus .select2-selection,
.select2-container--bootstrap.select2-container--open .select2-selection{
    box-shadow: none;
}
.select2-container--bootstrap .select2-selection{
    border-radius: 0;
}
.select2-container--bootstrap .select2-results__group{
    font-size: inherit;
    background: #FAFAFA;
}
.select2-container--bootstrap .select2-results>.select2-results__options {
    /*     max-height: 350px; */
}
.select2-container--bootstrap .select2-results__option .select2-results__option{
    padding-left : 3rem;
}
.select2-container--bootstrap .select2-selection--single{
    padding: .375rem .75rem;
    height: calc(2.25rem + 2px);
}
.select2-container--bootstrap .select2-results__option--highlighted[aria-selected]{
    background-color: var(--primary);
}


.nav-tabs.nav-tabs-secondary .nav-item.show .nav-link,
.nav-tabs.nav-tabs-secondary .nav-link.active{
    border-color: #6c757d #6c757d #fff;
}
.nav-tabs.nav-tabs-secondary{
    border-bottom: 1px solid #6c757d;
}
input.form-control.form-control-line{
    border: 0;
    border-bottom: 1px solid #ced4da;
    padding: .2rem;
    height: auto;
    box-shadow: none !important;
}

.btn.btn-reload{
    outline: none;
    border: 0;
    box-shadow: none !important;
    padding: 0;
    line-height: 1;
    background: transparent;

    width: 1.5rem;
    height: 1.5rem;
    line-height: 1.5;
}

.btn.btn-reload:hover,
.btn.btn-reload:hover{
    background:none !important;
    -webkit-transform: rotate(-360deg);
    -moz-transform: rotate(-360deg);
    -o-transform: rotate(-360deg);
    -ms-transform: rotate(-360deg);
    transform: rotate(-360deg);

    -webkit-transition: -webkit-transform 0.8s ease-in-out;
}


/* begin webkit scroll bar */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}
::-webkit-scrollbar-track-piece {
    background-color: rgba(0, 0, 0, 0.1);
}
::-webkit-scrollbar-thumb {
    background: rgba(0, 0, 0, 0.2);
}
::-webkit-scrollbar-thumb:vertical:hover {
    background: rgba(0, 0, 0, 0.6)
}

::-webkit-scrollbar-thumb:horizontal:hover {
    background: rgba(0, 0, 0, 0.6)
}
.form-control::-webkit-input-placeholder{
    color: #bdbdbd;
    font-size: 1rem;
}
input[type=number]::-webkit-outer-spin-button,
input[type=number]::-webkit-inner-spin-button {
    -webkit-appearance: none;
}
.unit{
    color: var(--gray);
    margin-left: 0.25rem;
    font-size: 75%;
}
/* end webkit scroll bar */


/*stack-menu*/
.stack-menu{
    list-style: none outside none;
    margin: 0;
    padding: 0;

    display: block !important;
    background-color: #f9f7f6;

    box-shadow: 0 0 10px rgba(0,0,0,.5);
}
.navbar.fixed-top.execute-top ~ .container-fluid .stack-menu{
    min-height: calc(100vh - 95px - 1px);
}
.stack-menu p{
    margin-bottom: 0;
}
.stack-menu .item-icon{
    margin-right: .5rem;
    text-align: center;
    color: #a7a7a7;
}
.stack-menu .item-content{
    -ms-flex-positive: 1!important;
    flex-grow: 1!important;
    padding: 5px;
}
.stack-menu .item-content .item-title{
    font-size: 1.25rem;
    font-weight: 600;
}
.stack-menu .item-content .item-subtitle{
    font-size: .85rem;
    color: #aaaaaa;
    margin-top: 5px;
}
.stack-menu .menu-group{
    display: -ms-flexbox!important;
    display: flex!important;

    -ms-flex-align: center!important;
    align-items: center!important;

    background: #f1f1f1;
    border-bottom: 1px solid #eaeaea;
    padding: 10px 20px;
    color: #616161;
}
.stack-menu .menu-group .item-content .item-title{
    font-size: 1.3rem;
}
.stack-menu .menu-item {
    display: -ms-flexbox!important;
    display: flex!important;

    -ms-flex-align: center!important;
    align-items: center!important;

    min-height: 66px;

    border-bottom: 1px solid #DDDDDD;
    color: #555555;
    position: relative;
    padding: 10px 20px;
    cursor: pointer;
    -webkit-transition: background .5s linear;
    -o-transition: background .5s linear;
    transition: background .5s linear;

    min-height: 5.8rem;
}
.stack-menu .menu-item:hover {
    -webkit-animation: menu-item-hover .8s;
    -moz-animation: menu-item-hover .8s;
    -o-animation: menu-item-hover .8s;
    animation: menu-item-hover .8s;
}
.stack-menu .menu-item .item-icon{
    width: 30px;
    font-size: 24px;
}
/* 用来占flex, 希望 item-content为固定宽度 */
.stack-menu .menu-item:after{
    content: '\20';
    margin-left: auto;
    display: block;
    font-size: 36px;
    min-width: 10px;
    text-align: right;
}
.stack-menu .menu-item.active:after{
    content: '\f078';
    font-family: 'font-easymoo';
    color: var(--primary);
    margin-left: auto;
    text-align: right;
    width: 1px;
}
@keyframes menu-item-hover{
    0%   {transform: translateX(0px)}
    70%  {transform: translateX(-4px)}
    100% {transform: translateX(0px)}
}
@-moz-keyframes menu-item-hover{ /* Firefox */
    0%   {transform: translateX(0px)}
    70%  {transform: translateX(-4px)}
    100% {transform: translateX(0px)}
}
@-webkit-keyframes menu-item-hover{ /* Safari 和 Chrome */
    0%   {transform: translateX(0px)}
    70%  {transform: translateX(-4px)}
    100% {transform: translateX(0px)}
}
@-o-keyframes menu-item-hover{ /* Opera */
    0%   {transform: translateX(0px)}
    70%  {transform: translateX(-4px)}
    100% {transform: translateX(0px)}
}
/*end stack menu*/


ul.messenger.messenger-fixed.messenger-on-top.messenger-on-right{
    width: auto;
    max-width: 25%;
    top: 148px;
    right: 0;
    opacity: .75;
}
ul.messenger.messenger-fixed.messenger-on-top.messenger-on-right:hover{
    opacity: 1;
}
ul.messenger-theme-air .messenger-message .messenger-close{
    color: #fff;
}
/* support of stretched-link in message */
.messenger-close{
    z-index: 2;
}

ul.messenger-theme-air .messenger-message.message-chat{
    padding: 0;
}
ul.messenger-theme-air .messenger-message.message-chat .messenger-close{
    z-index: 2;
    padding: 5px;
}
ul.messenger-theme-air .messenger-message.message-chat .messenger-message-inner .card{
    border: 0;
}
ul.messenger-theme-air .messenger-message.message-chat .messenger-message-inner:before{
    content: none;
}
ul.messenger-theme-air .messenger-message.message-chat .messenger-message-inner .card-header{
    padding: .5rem 2rem .5rem .75rem;
}
ul.messenger-theme-air .messenger-message.message-chat .messenger-message-inner .card-body{
    padding: .75rem;
}
/* 只兼容webkit内核 超过两行显示省略号*/
ul.messenger-theme-air .messenger-message.message-chat .messenger-message-inner .card-text{
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
}

@keyframes decrease-100{
    to {width : 0%;}
}

/* input-with-unit-xlg */
.input-group.input-with-unit-xlg input{
    font-size: 36px;
    font-weight: bold;
    height: auto;
    border-right: none;
    outline: none;
    line-height: 1em;
}
.input-group.input-with-unit-xlg input:focus{
    box-shadow: none;
}
.input-group.input-with-unit-xlg input::-webkit-input-placeholder {
    font-size: 32px;
    font-weight: normal;
    color: #9e9e9e;
}
.input-group.input-with-unit-xlg input + .input-group-append .input-group-text{
    font-size: 18px;
    background-color: transparent;

    -ms-flex-align: end!important;
    align-items: flex-end!important;
}

.jumbotron.jumbotron-nodata{
    padding: 4rem;
    font-size: 1.75rem;
    margin-bottom: 0;
    font-style: italic;
}

/* customsize */
.jumbotron-tip{
    display: -ms-flexbox;
    display: flex;

    -ms-flex-align: center;
    align-items: center;

    -ms-flex-pack: center;
    justify-content: center;

    background-color: #e9ecef;
    min-height: 20rem;
}
.jumbotron-tip:after{
    content:'';
    min-height:inherit;
    font-size:0;
}/* IE flex min-height support */

.jumbotron-tip > h1{
    font-size: 3.5rem;
    font-weight: 300;
    line-height: 1.2;
    margin-bottom: 0;
    letter-spacing: .1ch;
}
.jumbotron{
    color: #9E9E9E;
}
/* 视觉增强 */
form.label-right label.col-form-label{
    text-align: right;
    padding-right: 0;
}

.text-indent-2{
    text-indent: 2em;
}

a.plain-link,
a.plain-link:hover{
    text-decoration: none;
    color: inherit;
}

.table-bordered thead td, .table-bordered thead th{
    border-bottom-width: 1px;
}
.table thead th,
.table thead td,
.table tbody th,
.table tbody td{
    vertical-align: middle;
}

caption{
    caption-side: top;
}
.width-2{
    width: 2em;
}
.width-3{
    width: 3em;
}
.width-4{
    width: 5em;
}
.width-5{
    width: 5em;
}
.width-6{
    width: 6em;
}
.width-7{
    width: 7em;
}
.width-8{
    width: 8em;
}
.width-9{
    width: 9em;
}
.width-10{
    width: 10em;
}

.font-size-12{
    font-size: 12px !important;
}
.font-size-14{
    font-size: 14px !important;
}
.font-size-16{
    font-size: 16px !important;
}

.line-height-1{
    line-height: 1 !important;
}
/* customsize */



/* custom plugin support */
button[form-query-button]:before{
    content: "\e867";
    font-family: 'font-easymoo' !important;
    margin-right : 5px;
}
.custom-control.custom-control-label-empty{
    padding-left: 2.5rem;
}

.is-valid~i.invalid-feedback{
    color: #28a745;
}

.suggest-dropdown{
    background: #ffffff;
    border-radius: 0;
    border: 1px solid rgba(0,0,0,.15);
    box-shadow: 0 0 2px rgba(80, 168, 208, 0.7);
}
.suggest-pagination{
    background: #f7f7f9;
    color : #9E9E9E;
    display: flex;
    align-content: flex-end;
    justify-content: space-between;
    padding: 0.5rem 1rem;
}
.suggest-dropdown .suggest-pagination> p{
    margin: 0;
}
/* custom plugin support end */

@media (min-width: 1200px) {
    .modal-1280 {
        max-width: 1280px;
    }
    .modal-fullwidth{
        max-width: 98%;
    }
}


#form-contract section{
    margin-bottom: 1rem;
}
#form-contract h5{
    margin-top: 1.75rem;
    margin-bottom: .5rem;
    color: #343a40;
}
#form-contract ul.contract-list{
    padding-left: 0;
    list-style: none;
}
#form-contract ul.contract-list li > ul.contract-list{
    margin-top: .5rem;
}
#form-contract ul.contract-list li{
    position: relative;
    padding: 0 0 .5rem 2.5rem;
}
#form-contract ul.contract-list li:before{
    content: attr(data-order);
    position: absolute;
    top: 0;
    left: 0;
    display: block;
    width: 2rem;
}


.unread-msg-count{
    background: #dc3545;
    padding: .15rem .5rem;
    margin-left: .5rem;
    font-size: 12px;
}
.unread-msg-count:before{
    content: attr(data-count);
}
.unread-msg-count[data-count="0"]{
    display: none;
}


/* revision */
.content-select {
    border: none;
    border: 1px dashed;
    padding: 0 .5rem;
    outline: none;
    height: auto;
    max-width: 6rem;
    text-align: right;
    display: inline-block;
}
.content-select.form-control.is-invalid ~.invalid-feedback {
    display: inline-block;
}
.validator-wrapper {
    -ms-flex-align: center;
    align-items: center;
}
.validator-wrapper .form-control.is-invalid,
.validator-wrapper .form-control.is-valid{
    padding-right: 0.5rem;
    background-image: none;
}
.revision-item {
    background: yellow;
}
.revision-mode-control,
.revision-mode .revision-mode-control-reverse {
    display: none;
}
.revision-mode .revision-mode-control {
    display: inherit;
}
.revision-tip {
    display: inline-block;
    cursor: help;
}
.revision-button {
    display: inline-block;
    min-width: 4rem;
    position: relative;
}
.revision-button>a {
    font-size: 80%;
    display: block;
    padding: 1px;
    z-index: 2;
    pointer-events: auto !important;
}
.revision-button span {
    opacity: 0;
    width: 100%;
    font-size: 80%;
    display: block;
    text-align: center;
    padding: 5px;
    -webkit-transition: all 350ms;
    -moz-transition: all 350ms;
    -o-transition: all 350ms;
    transition: all 350ms;
}
.revision-button span a {
    color: inherit;
    text-decoration: none;
}
.revision-button .up {
    color: #155724;
    background-color: #d4edda;
    border-color: #c3e6cb;
    border-radius: 5px 5px 0 0;
    position: absolute;
    left: 0;
    top: 0;
    z-index: 1;
}
.revision-button .down {
    color: #721c24;
    background-color: #f8d7da;
    border-color: #f5c6cb;
    border-radius: 0 0 5px 5px;
    position: absolute;
    left: 0;
    bottom: 0;
    z-index: 1;
}
.revision-button:hover .up {
    opacity: 1;
    transform: translateY(-100%);
}
.revision-button:hover .down {
    opacity: 1;
    transform: translateY(100%);
}


/** override bs4 **/
.form-control.is-valid, .was-validated .form-control:valid,
.form-control.is-invalid, .was-validated .form-control:invalid{
    background-image: none;
    padding-right: 0.75rem;
}
.form-control.is-valid.form-control-lg,
.was-validated .form-control.form-control-lg:valid,
.form-control.is-valid.form-control-lg,
.was-validated .form-control.form-control-lg:invalid{
    padding-right: 1rem;
}

.form-control.form-control-line.is-invalid,
.was-validated .form-control.form-control-line:invalid{
    border-color: #dc3545;
}
.form-control.form-control-line.is-valid,
.was-validated .form-control.form-control-line:valid{
    border-color: #28a745;
}


.datetimepicker table tr td.active:active,
.datetimepicker table tr td.active:hover:active,
.datetimepicker table tr td.active.disabled:active,
.datetimepicker table tr td.active.disabled:hover:active,
.datetimepicker table tr td.active.active,
.datetimepicker table tr td.active:hover.active,
.datetimepicker table tr td.active.disabled.active,
.datetimepicker table tr td.active.disabled:hover.active,
.datetimepicker table tr td span.active:active,
.datetimepicker table tr td span.active:hover:active,
.datetimepicker table tr td span.active.disabled:active,
.datetimepicker table tr td span.active.disabled:hover:active,
.datetimepicker table tr td span.active.active,
.datetimepicker table tr td span.active:hover.active,
.datetimepicker table tr td span.active.disabled.active,
.datetimepicker table tr td span.active.disabled:hover.active{
    background-color: var(--primary);
    background-image: none;
}
.datetimepicker table tr td span{
    border-radius: 0;
}

.datetimepicker td, .datetimepicker th {
    width: 35px;
    height: 35px;
    -webkit-border-radius: 0;
    -moz-border-radius: 0;
    border-radius: 0;
}
.custom-control-label::after{
    border: 1px solid transparent;
}
.text-tip{
    text-decoration: underline dotted 1px;
    font-style: italic;
}

.popover-tip .popover-body{
    color: #856404;
    background-color: #fff3cd;
    border-color: #ffeeba;
}


.popover-tip.bs-popover-top > .arrow::after, .popover-tip.bs-popover-auto[x-placement^="top"] > .arrow::after{
    border-top-color: #fff3cd;
}
.popover-tip.bs-popover-right > .arrow::after, .popover-tip.bs-popover-auto[x-placement^="right"] > .arrow::after{
    border-right-color: #fff3cd;
}
.popover-tip.bs-popover-bottom > .arrow::after, .popover-tip.bs-popover-auto[x-placement^="bottom"] > .arrow::after {
    border-bottom-color: #fff3cd;
}

.popover-tip.bs-popover-left > .arrow::after, .popover-tip.bs-popover-auto[x-placement^="left"] > .arrow::after {
    border-left-color: #fff3cd;
}


.page-header-msg-content{
    white-space: nowrap;       /* 强制不换行 */
    overflow: hidden;          /* 隐藏超出部分 */
    text-overflow: ellipsis;   /* 省略号显示超出部分 */
    width: 40rem;
}

/*定义主要页面的基本布局*/

.inner-wrapper{
    min-height: calc(100vh - 95px);
    display: block;
    overflow: hidden;
    width: 100%;
    table-layout: fixed;
}
.sidebar-left{
    width: 350px;
    position: fixed;
    list-style: none outside none;
    margin: 0;
    padding: 0;
    display: block !important;
    background-color: var(--light);
    height: calc(100% - 95px);
    z-index: 98;
}
.sidebar-left-dashboard{
    height: calc(100% - 70px);
}
.sidebar-left .sidebar-header {
    position: relative;
    color: #8a8a8a;
    height: 50px;
    background: #9a94a7;
}
.sidebar-left .sidebar-header.dark {
    background: #a7b2c2;
}
.sidebar-left .sidebar-header .sidebar-toggle {
    position: absolute;
    top: 0;
    right: 0;
    width: 73px;
    height: 50px;
    background-color: #00000014;
    /* border-radius: 0 0 0 5px; */
    text-align: center;
    cursor: pointer;
}
.sidebar-left .sidebar-header .sidebar-toggle:before {
    position: absolute;
    content: "\e86d";
    font-family: 'font-easymoo';
    color: var(--primary);
    font-size: 1.5rem;
    right: 2rem;
    top: .5rem;
}
.sidebar-left-collapsed .sidebar-left .sidebar-header .sidebar-toggle:before {
    content: "\e86c";
}

.sidebar-left .sidebar-header .sidebar-toggle:hover{
    -webkit-transform: scaleX(1.2);
    -moz-transform: scaleX(1.2);
    -o-transform: scaleX(1.2);
    -ms-transform: scaleX(1.2);
    transform: scaleX(1.2);

    -webkit-transition: -webkit-transform 0.3s ease-in-out;
}
.sidebar-body{
    position: relative;
    overflow-y: auto;
    width: 100%;
    height: calc(100% - 50px);
    background-color: #d3cfda;
    display: block;
    overflow-x: hidden;
}
.sidebar-left.sidebar-left-collapsed .sidebar-body{
    width: 350px;
}

.content-body{
    margin-left: 350px;
    padding-top: 50px;
    position: relative;
}
.page-header {
    margin: 0;
    position: fixed;
    /* right: 0; */
    top: 95px;
    background: #a49eb2;
    border-bottom: none;
    display: flex;
    align-items: center;
    height: 50px;
    padding: 0 1rem 0 0;
    width: calc(100% - 350px);
    z-index: 99;
    white-space: nowrap;
    text-overflow: ellipsis;
}
.page-header .msg-recent-dropdown {
    white-space: normal;
    /*text-overflow: ellipsis;*/
}
.page-header-dashboard{
    top: 70px;
}
.inner-wrapper.without-side-bar .page-header{
    width: 100%;
}

.inner-wrapper.without-side-bar .content-body{
    margin-left: 0;
}

.page-header .breadcrumb{
    margin-bottom: 0;
    background: transparent;
    flex-wrap:nowrap;
}
@media (max-width: 1900px) {
    .page-header .breadcrumb{
        display: none;
    }
}
.page-header .breadcrumb .breadcrumb-item a{
    color: #49434f;
}
.page-header .breadcrumb .breadcrumb-item a:hover {
    text-decoration: none;
}
.breadcrumb-item+.breadcrumb-item::before {
    color: #41447b;
}
.page-header .breadcrumb .breadcrumb-item.active {
    color: var(--primary);
}
.page-header .btn {
    outline: none;
    border: 0;
    box-shadow: none !important;
    padding: 0;
    line-height: 1;
    background: transparent;
    height: 100%;
    width: 60px;
    color: var(--primary);
    border-right: 1px solid #bbc1ca;
}
.page-header .btn:first-of-type {
    margin-left: auto;
}

.page-header .btn:hover{
    color: #325d99;
}
.page-header .msg-recent-single{
    flex-grow: 1;
    padding-left:3rem;
    display: flex;
    justify-content: space-between;
}
.page-header .msg-recent-dropdown{
    position: absolute;
    background: var(--light);
    top: 70px;
    right: 1rem;
    padding: 1rem 2rem;
    color: #505050;
    box-shadow: -2px 3px 4px 0 #bbb8b8;
    width: 720px;
    display: none;
}
.page-header .msg-recent-dropdown:before {
    content: '';
    height: 30px;
    width: 30px;
    background: var(--light);
    transform: rotate(45deg);
    position: absolute;
    top: -12px;
    right: calc(1rem + 60px);
}
.page-header .msg-recent-dropdown-header{
    display: flex;
    justify-content: space-between;
    align-items: baseline;
}

.sidebar-left .sidebar-body p{
    margin-bottom: 0;
}
.sidebar-left .sidebar-body .item-icon{
    margin-right: .5rem;
    text-align: center;
    color: #a7a7a7;
}
.sidebar-left .sidebar-body .menu-item.active .item-icon{
    color: var(--primary);
}
.sidebar-left .sidebar-body .item-content{
    -ms-flex-positive: 1!important;
    flex-grow: 1!important;
    padding: 5px;
}
.sidebar-left .sidebar-body .item-content .item-title{
    font-size: 1.25rem;
}
.sidebar-left .sidebar-body .item-content .item-subtitle{
    font-size: .85rem;
    color: #7a787f;
    margin-top: 5px;
}

.sidebar-left .sidebar-body .menu-separator{
    background: #83859c63;
    height: 4px;
}
.sidebar-left .sidebar-body .menu-group .item-content .item-title{
    font-size: 1.3rem;
}

.sidebar-left .sidebar-body .menu-desc,
.sidebar-left .sidebar-body .menu-item {
    display: -ms-flexbox!important;
    display: flex!important;

    -ms-flex-align: center!important;
    align-items: center!important;
    border-bottom: 1px solid #c2bed8;
    color: #000003;
    position: relative;
    padding: 10px 20px;
    cursor: pointer;
    -webkit-transition: background .5s linear;
    -o-transition: background .5s linear;
    transition: background .5s linear;
    height: 74px;
}

.sidebar-left .sidebar-body .menu-item:hover {
    -webkit-animation: menu-item-hover .8s;
    -moz-animation: menu-item-hover .8s;
    -o-animation: menu-item-hover .8s;
    animation: menu-item-hover .8s;
}
.sidebar-left .sidebar-body .menu-desc .item-icon,
.sidebar-left .sidebar-body .menu-item .item-icon{
    width: 30px;
    font-size: 24px;
}

.sidebar-left .sidebar-body .menu-desc {
    color: #838486;
    background-color: #6a6a6a17;
}

/* 用来占flex, 希望 item-content为固定宽度 */
.sidebar-left .sidebar-body .menu-item:after{
    content: '\20';
    margin-left: auto;
    display: block;
    /*     font-size: 36px; */
    font-size: 2rem;
    min-width: 10px;
    text-align: right;
}
.sidebar-left .sidebar-body .menu-item.active:after{
    content: '\f078';
    font-family: 'font-easymoo';
    color: var(--primary);
    margin-left: auto;
    text-align: right;
}

@keyframes menu-item-hover{
    0%   {transform: translate(0px)}
    70%  {transform: translate(-4px)}
    100% {transform: translate(0px)}
}
@-moz-keyframes menu-item-hover{ /* Firefox */
    0%   {transform: translate(0px)}
    70%  {transform: translate(-4px)}
    100% {transform: translate(0px)}
}
@-webkit-keyframes menu-item-hover{ /* Safari 和 Chrome */
    0%   {transform: translate(0px)}
    70%  {transform: translate(-4px)}
    100% {transform: translate(0px)}
}
@-o-keyframes menu-item-hover{ /* Opera */
    0%   {transform: translate(0px)}
    70%  {transform: translate(-4px)}
    100% {transform: translate(0px)}
}
/*end stack menu*/

html.sidebar-left-collapsed .sidebar-left{
    width: 73px;
}
html.sidebar-left-collapsed .sidebar-left .sidebar-body .item-content {
    visibility: hidden;
}
html.sidebar-left-collapsed .sidebar-left .sidebar-body:hover{
    width: 350px;
}
html.sidebar-left-collapsed .sidebar-left .sidebar-body:hover .item-content{
    visibility: visible;
}
html.sidebar-left-collapsed .content-body{
    margin-left: 73px;
}
html.sidebar-left-collapsed .sidebar-left .sidebar-body .menu-item.active:after{
    content: "";
}
html.sidebar-left-collapsed .page-header{
    width: calc(100% - 73px);
}

.card.card-contract{
    display: inline-block;
    font-size: 80%;
    border: 1px solid var(--primary);
    box-shadow: 1px 1px 3px 0 #a49f9aa6;
    padding: 0 1rem;
    cursor: pointer;
    margin-bottom: 1rem;
    overflow: hidden;
    width: 340px;
    text-align: left!important;
}
.card.card-contract .table-contract-content{
    border-collapse: initial;
    width: 100%;
}
.card.card-contract .table-contract-content td{
    padding-top: .5rem;
}
.card.card-contract .table-contract-content tr>td:nth-child(2){
    border-bottom: 1px solid #949494;
}
.card.card-contract.active{
    background-color: #f8f6f3;
}
.card.card-contract:after {
    content: '进行中';
    color: #0b0b0b;
    text-align: center;
    position: absolute;
    left: -50px;
    top: 12px;
    width: 150px;
    padding: 4px 0;
    font-size: 0.8rem;
    font-weight: bold;
    transform: rotate(-45deg);
}
.card.card-contract.status-d:after{
    content: "未生效";
    background-color: rgba(232, 231, 225, 0.6);
}
.card.card-contract.status-a:after{
    content: "进行中";
    background-color: rgba(24, 154, 33, 0.5);
}
.card.card-contract.status-e:after{
    content: "已完成";
    background-color: rgba(24, 143, 154, 0.5);
}
.card.card-contract.status-c:after{
    content: "已失效";
    background-color: rgba(232, 231, 225, 0.6);
}

.card.card-contract .card-contract-action-cover{
    display: none;
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    background-color: rgba(34, 34, 34, 0.3);
    z-index: 99;
}
.card.card-contract .card-contract-action-cover .btn-contract-action{
    padding: 1rem;
    color: #f0f0f0;
    text-align: center;
    font-size: 1rem;
    background-color: #65577f80;
}
.card.card-contract .card-contract-action-cover .btn-contract-action:not(:first-child){
    border-top: 1px solid #e5ddd8;
}
.card.card-contract:hover{
    background-color: rgba(34, 34, 34, 0.3);
}
.card.card-contract:hover .card-contract-action-cover{
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

/* 定义全局的输入控件样式 */
html .bootstrap-select .btn.dropdown-toggle {
    background: var(--white);
    border: 1px solid var(--secondary);
}
html .input-group{
    border:1px solid #b5aed0;
}
html .input-group .input-group-text,
html .input-group .form-control{
    border: none;
}

html .input-group .input-group-text {
    font-size: 80%;
    background-color: var(--white);
}

/* 去掉 input 自带的 focus 边框阴影 */
html .input-group .form-control:focus {
    box-shadow: none;
}

html .input-group:focus-within {
    border-color: var(--primary);
    box-shadow: 0 0 0 .2rem rgba(52,7,115,.25);
}
html .form-control:disabled,
html .form-control[readonly]{
    background: #FFFFFF;
    color: var(--secondary);
}

html td.editor{
    /*background: #fff3cd;*/
    padding-left: 3rem;
}

html td.editor .form-group{
    margin-bottom: 0;
}

html .form-group.row [class^="col-"] .dropdown.bootstrap-select,
html .form-group.row [class*=" col-"] .dropdown.bootstrap-select {
    width: 100%;
}