:root {
    --info-color: #17a2b8;
    --disable-color: #6c757d;
}

.main-sidebar {
    background-color: #3c444d;
}

.xmx-pagination .page-item .page-link {
    color: var(--info-color) !important;
}

.xmx-pagination .page-item.disabled .page-link {
    color: var(--disable-color) !important;
}

.xmx-pagination .page-item.active .page-link {
    background-color: var(--info-color) !important;
    border-color: var(--info-color) !important;
    color: #fff !important;
}

.fixed-sidebar {
    position: fixed !important;
    top: 0;
    left: 0;
    height: 100vh !important;
    z-index: 1030;
    overflow-y: auto;
}

#sidebarResizable {
    position: relative;
    transition: width 0.2s;
    resize: horizontal;
    overflow: auto;
    min-width: 300px;
    max-width: 600px;
}

#sidebarResizable .sidebar-resize-handle {
    position: absolute;
    top: 0;
    right: 0;
    width: 8px;
    height: 100%;
    cursor: ew-resize;
    z-index: 9999;
    background: rgba(0, 0, 0, 0.01);
}

.toast-wrap {
    display: flex;
    justify-content: center;
    align-items: center;
}

.toast-success {
    width: auto;
    max-width: none;
    position: fixed;
    top: 8%;
    transform: translateX(-50%);
    z-index: 1055;
}

.toast-success i {
    border-radius: 3px;
    padding: 2px;
}

.toast-success i.text-bg-warning {
    color: #fff !important;
}

.toast-msg {
    width: auto;
    max-width: none;
    position: fixed;
    z-index: 1055;
}

.toast-msg-top-right {
    top: 0;
    right: 0;
}

.toast-msg-top-middle {
    top: 0;
}

.nav-sidebar .nav-link p {
    display: inline-block;
    min-width: 70%;
    max-width: 70%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.nav-sidebar>.nav-item>.nav-link.active {
    background-color: var(--info-color) !important;
}

.top-breadcrumb {
    font-size: .85rem;
    border-bottom: 1px solid rgb(0, 0, 0, 0.1);
}

.form-add {
    font-size: .9rem;
    border: 1px dashed #ccc;
}

.delete-card-form {
    font-size: .8rem;
}

.charge-ul,
.modal-max-width,
.modal-max-height {
    max-height: 360px;
    overflow-y: auto;
}

.modal-min-width {
    min-width: 90px;
}

/* 快捷锚点样式 */
.quick-nav-wrap {
    padding-top: 68px;
}

.quick-nav {
    list-style: none;
    padding: 0;
    margin: 0;
    position: relative;
}

.quick-nav .nav-item {
    position: relative;
    margin-bottom: 20px;
}

.quick-nav .nav-link {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #6c757d;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s ease;
    padding-right: 20px;
}

.quick-nav .nav-link.active {
    color: var(--info-color);
    font-weight: bold;
}

.quick-nav .nav-link .dot {
    width: 10px;
    height: 10px;
    background-color: #6c757d;
    border-radius: 50%;
    margin-left: 10px;
    position: relative;
    z-index: 1;
}

.quick-nav .nav-link.active .dot {
    background-color: var(--info-color);
}

.quick-nav .nav-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: calc(100% - 26px);
    /* 对齐圆点 */
    width: 2px;
    height: 168%;
    background-color: #e0e0e0;
    z-index: 0;
}

.quick-nav .nav-item:first-child::before {
    top: 50%;
    /* 第一项的竖线从圆点中间开始 */
}

.quick-nav .nav-item:last-child::before {
    height: 50%;
    /* 最后一项的竖线到圆点中间结束 */
}

/* 快捷锚点样式end */

.employee-count .col {
    border-right: 1px solid #dee2e6;
    /* 添加列之间的分隔线 */
}

.employee-count .col:last-child {
    border-right: none;
    /* 去掉最后一列的分隔线 */
}

.employee-count div {
    font-size: 14px;
}

.employee-count .fw-bold {
    font-size: 18px;
    margin-top: 5px;
}

.select2-container .select2-selection--single,
.select2-container--default .select2-selection--single .select2-selection__arrow {
    height: 38px !important;
}

.select2-container--default .select2-results>.select2-results__options {
    max-height: 500px !important;
}

.select2-results__option {
    white-space: nowrap;
}

.input-group .select2-container {
    flex: 1 1 0%;
    min-width: 0;
}

.input-group .select2-selection--single {
    height: 100%;
    padding: 0.45rem 0.75rem;
}

.input-group .select2-container--default .select2-selection--single .select2-selection__arrow {
    right: 8px;
}

#selectedFields .form-check:hover {
    background-color: #f8f9fa;
    cursor: pointer;
}

#qrcode-tooltip-btn {
    width: 31px;
    height: 31px;
}

.loader {
    width: 1.5rem;
    height: 1.5rem;
    border: 2px solid #f3f3f3;
    border-top: 2px solid var(--info-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-left: auto;
    margin-right: auto;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

.borderTop {
    border-top: 1px solid #ccc;
}

.modal-body,
.modal-body h5 {
    font-size: .95rem;
}

#orgTree span.toggle-tree,
#orgTree .tree-row,
#orgTree .user-item,
#selectedUsers li,
#selectedEmployees li,
#availableEmployees li {
    cursor: pointer;
}

#orgTree span.toggle-tree:hover,
#orgTree .tree-row:hover,
#orgTree .user-item:hover {
    color: var(--info-color);
}

#orgTree span.not-allowed {
    color: #c6c6c6 !important;
}

#orgTree span.not-allowed.bg-warning {
    color: #535353 !important;
}

#selectedUsers li:hover,
#selectedEmployees li:hover,
#availableEmployees li:hover {
    border: 1px solid var(--info-color);
}

#transferRecord span.hist_text {
    font-size: .8rem;
    font-weight: normal;
}

select option[data-level="1"] {
    padding-left: 1.5em;
}

select option[data-level="2"] {
    padding-left: 3em;
}

select option[data-level="3"] {
    padding-left: 4.5em;
}

.indicatorTable td,
.spIndicatorTable td {
    vertical-align: middle;
}

.indicatorTable input[type="number"],
.spIndicatorTable input[type="number"] {
    margin: 0 auto;
    width: 80px;
    min-width: 60px;
    max-width: 100px;
    text-align: center;
    padding: .25rem .25rem;
}

/* 右侧弹出动画 */
.modal-dialog-right {
    position: fixed;
    right: 0;
    top: 0;
    margin: 0;
    height: 100vh;
    transform: translateX(100%);
    transition: transform .3s;
}

.modal.show .modal-dialog-right {
    transform: translateX(0);
}

#weightModal .modal-dialog-slide {
    position: fixed;
    margin: 0;
    right: 0;
    top: 0;
    height: 100vh;
    width: 368px;
}

#weightModal .modal-dialog-slide .modal-content {
    height: 100vh;
    overflow: auto;
}

#weightModal .level-item {
    position: relative;
    background: #f8f9fa;
}

#weightModal .remove-level {
    position: absolute;
    top: 8px;
    right: 8px;
    z-index: 2;
    color: #dc3545 !important;
    cursor: pointer;
}

#weightModal .level-fields h6 {
    width: 80px;
}

#weightModal .level-fields .form-control,
#weightModal .level-fields .form-select,
#weightModal .level-fields .level-name {
    display: inline-block;
    vertical-align: middle;
    width: calc(100% - 168px);
}

#weightModal .level-fields .level-name {
    cursor: pointer;
    text-decoration: underline;
    color: #0d6efd !important;
}

#weightModal .level-fields>div:last-child {
    margin-bottom: 0;
}

.badge-employee {
    width: 106px;
}

.input-group .select2-container--default .select2-selection--single {
    border: 1px solid #ced4da;
    border-top-left-radius: 0;
    border-bottom-left-radius: 0;
}

.card-info-disabled {
    pointer-events: none;
    opacity: 0.38;
}

.positon-top-right {
    position: absolute;
    top: 0;
    right: 0;
}

.positon-top-left {
    position: absolute;
    top: 0;
    left: 0;
}

.positon-bottom-right {
    position: absolute;
    bottom: 0;
    right: 0;
}

.pointer-cursor,
.edit-prescore,
.show-edit-score {
    cursor: pointer;
}

.tabs {
    display: flex;
    border-bottom: 1px solid #e0e6ed;
    margin-bottom: .5rem;
}

.tab {
    padding: 12px 24px;
    cursor: pointer;
    position: relative;
    transition: all 0.3s;
}

.tab.active {
    color: #3498db;
    font-weight: bold;
}

.tab.active::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    height: 3px;
    background: #3498db;
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

.blink:hover .fas,
.blink:hover .fa,
.blink:hover .fa-solid {
    animation: shake 0.5s;
}

@keyframes shake {

    0%,
    100% {
        transform: rotate(0deg);
    }

    25% {
        transform: rotate(15deg);
    }

    75% {
        transform: rotate(-15deg);
    }
}

.employee-header {
    padding: 1.5rem;
    margin-bottom: 1rem;
    border-radius: .25rem;
    box-shadow: 0 0 1px rgba(0, 0, 0, .125), 0 1px 3px rgba(0, 0, 0, .2);
}

.employee-score-bg {
    background: rgba(255, 255, 255, 0.15);
}

.employee-score {
    font-size: 2.8rem;
    font-weight: 700;
    text-align: center;
    border-radius: 1rem;
    padding: 0.5rem 1.5rem;
    margin-top: 0.5rem;
    display: inline-block;
    backdrop-filter: blur(5px);
}

@media (max-width: 768px) {
    .employee-header {
        text-align: center;
    }
}

.filterTable tr th,
.filterTable tr td,
.employee-table tr th,
.employee-table tr td {
    vertical-align: middle;
}

/* 隐藏所有浏览器的数字输入框旋转按钮 */
input[type="number"]::-webkit-outer-spin-button,
input[type="number"]::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.table-mask {
    position: absolute;
    display: flex;
    align-items: center;
    justify-content: center;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.6);
    z-index: 10;
}

.idCardPhoto {
    height: 60px;
}

.label-col {
    flex: 0 0 100px;
    min-width: 100px;
    max-width: 180px;
    padding-right: 8px;
}
.label-col-new {
    display: inline-block;
    min-width: 80px;
    max-width: 180px;
}

@media (max-width: 768px) {
    .label-col {
        flex: 0 0 100px;
        min-width: 80px;
    }
}

@media (max-width: 576px) {
    .label-col {
        flex: 0 0 90px;
        min-width: 70px;
    }
}

.card-form-item .flex-fill {
    word-break: break-word;
}