/*
 * 顶部标题完整显示：logo 容器保持 230px（不影响 sidebar），
 * 标题文字绝对定位溢出显示；模块 Tab 用 JS 计算偏移
 */
:root {
    --header-row-height: 58px;
    --tabbar-row-height: 40px;
    --header-stack-height: calc(var(--header-row-height) + var(--tabbar-row-height));
    --sidebar-width: 230px;
    --brand-gradient: linear-gradient(135deg, #0a4ea3 0%, #004080 50%, #003358 100%);
    --brand-gradient-header: linear-gradient(90deg, #003358 0%, #004080 45%, #0a4ea3 100%);
    --brand-gradient-hover: linear-gradient(135deg, #0d5cb8 0%, #005099 50%, #003f70 100%);
    --brand-gradient-horizontal: linear-gradient(90deg, #0a4ea3 0%, #004080 100%);
    --brand-primary: #004080;
    --brand-primary-dark: #003358;
    --brand-primary-light: #0a4ea3;
    --brand-shadow: rgba(0, 64, 128, 0.28);
    --brand-shadow-strong: rgba(0, 64, 128, 0.35);
    --brand-tint-bg: rgba(0, 64, 128, 0.08);
}

@media (min-width: 768px) {
    .main-header .logo {
        position: relative;
        overflow: visible !important;
        text-align: left;
        height: var(--header-row-height) !important;
        line-height: var(--header-row-height) !important;
    }

    .main-header .logo .logo-lg {
        position: absolute;
        left: 15px;
        top: 0;
        height: var(--header-row-height);
        line-height: var(--header-row-height);
        white-space: nowrap;
        z-index: 1040;
        overflow: visible;
        pointer-events: none;
        font-size: 22px;
        font-weight: 700;
        letter-spacing: 1.4px;
        color: #fff !important;
        -webkit-font-smoothing: antialiased;
        text-shadow: 0 1px 1px rgba(0, 0, 0, 0.12);
    }

    .main-header #firstnav .nav-addtabs {
        left: var(--logo-overlap, 0px);
    }

    #firstnav {
        height: var(--header-row-height) !important;
    }

    .multiplenav .content-wrapper,
    .multiplenav .right-side {
        padding-top: var(--header-row-height) !important;
    }

    .multipletab.multiplenav .content-wrapper,
    .multipletab.multiplenav .right-side {
        padding-top: var(--header-stack-height) !important;
    }

    .multiplenav .main-sidebar,
    .multiplenav .left-side {
        padding-top: var(--header-row-height) !important;
    }

    .fixed .content-wrapper,
    .fixed .right-side {
        padding-top: var(--header-row-height) !important;
    }

    .multipletab.fixed .content-wrapper,
    .multipletab.fixed .right-side {
        padding-top: var(--header-stack-height) !important;
    }

    .multiplenav .main-header .navbar .navbar-custom-menu .navbar-nav > li > a {
        display: inline-flex !important;
        align-items: center !important;
        height: var(--header-row-height) !important;
        line-height: normal !important;
        padding-top: 0 !important;
        padding-bottom: 0 !important;
    }

    .multiplenav .main-header .navbar .navbar-custom-menu .navbar-nav > li.user-menu > a .user-image {
        float: none !important;
        margin-top: 0 !important;
        margin-right: 10px;
        width: 26px;
        height: 26px;
    }

    #firstnav .navbar-custom-menu {
        height: var(--header-row-height);
    }
}

/* ========== 机构端：隐藏顶栏一级模块菜单（固定联考管理系统侧栏） ========== */
@media (min-width: 768px) {
    .multiplenav.hide-top-module-nav #firstnav .nav-module-capsules {
        display: none !important;
    }

    .multiplenav.hide-top-module-nav #firstnav .nav-addtabs {
        left: 0 !important;
        padding-right: 0 !important;
        width: 0 !important;
        overflow: hidden !important;
    }

    .multiplenav.hide-top-module-nav #firstnav {
        display: flex;
        align-items: center;
        justify-content: flex-end;
    }

    .multiplenav.hide-top-module-nav #firstnav .navbar-custom-menu {
        position: relative;
        top: auto;
        right: auto;
        flex: 0 0 auto;
        margin-left: auto;
    }
}

/* ========== 顶栏右侧：用户名 + 平铺操作按钮 ========== */
.navbar-toolbar-flat {
    display: flex;
    align-items: center;
    gap: 6px;
    height: var(--header-row-height, 58px);
    margin: 0;
    padding: 0 8px 0 0;
}

.navbar-toolbar-flat > li {
    float: none;
    display: flex;
    align-items: center;
}

.navbar-toolbar-user {
    margin-right: 4px;
}

.navbar-toolbar-username {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    max-width: 180px;
    padding: 0 4px;
    color: rgba(255, 255, 255, 0.96);
    font-size: 14px;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.navbar-toolbar-username .fa {
    flex-shrink: 0;
    font-size: 16px;
    opacity: 0.92;
}

.navbar-toolbar-flat > li > a {
    display: inline-flex !important;
    align-items: center !important;
    gap: 6px !important;
    height: 32px !important;
    padding: 0 12px !important;
    line-height: 1 !important;
    border: 1px solid rgba(255, 255, 255, 0.24) !important;
    border-radius: 8px !important;
    background: rgba(255, 255, 255, 0.1) !important;
    color: rgba(255, 255, 255, 0.96) !important;
    font-size: 13px !important;
    font-weight: 500;
    white-space: nowrap;
    transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.navbar-toolbar-flat > li > a:hover,
.navbar-toolbar-flat > li > a:focus {
    background: rgba(255, 255, 255, 0.18) !important;
    border-color: rgba(255, 255, 255, 0.34) !important;
    color: #fff !important;
}

.navbar-toolbar-flat > li.navbar-toolbar-logout > a {
    border-color: rgba(254, 202, 202, 0.45) !important;
    background: rgba(239, 68, 68, 0.16) !important;
}

.navbar-toolbar-flat > li.navbar-toolbar-logout > a:hover,
.navbar-toolbar-flat > li.navbar-toolbar-logout > a:focus {
    border-color: rgba(254, 202, 202, 0.65) !important;
    background: rgba(239, 68, 68, 0.28) !important;
    color: #fff !important;
}

.navbar-toolbar-flat > li.dropdown.open > a.dropdown-toggle {
    background: rgba(255, 255, 255, 0.18) !important;
    border-color: rgba(255, 255, 255, 0.34) !important;
    color: #fff !important;
}

.navbar-toolbar-flat > li.dropdown > .dropdown-menu {
    min-width: 220px;
    margin-top: 6px;
    border-radius: 10px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 12px 32px rgba(15, 23, 42, 0.12);
}

.navbar-toolbar-flat > li.dropdown > .dropdown-menu > li > a {
    display: block !important;
    height: auto !important;
    padding: 9px 16px !important;
    border: none !important;
    border-radius: 0 !important;
    background: transparent !important;
    color: #334155 !important;
    font-size: 13px !important;
    font-weight: 400;
    white-space: nowrap;
}

.navbar-toolbar-flat > li.dropdown > .dropdown-menu > li > a:hover,
.navbar-toolbar-flat > li.dropdown > .dropdown-menu > li > a:focus {
    background: var(--brand-tint-bg) !important;
    color: var(--brand-primary) !important;
}

.multiplenav .main-header .navbar .navbar-custom-menu .navbar-toolbar-flat > li > a {
    height: 32px !important;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
}

@media (max-width: 991px) {
    .navbar-toolbar-username {
        max-width: 120px;
        font-size: 13px;
    }

    .navbar-toolbar-flat > li > a {
        padding: 0 10px !important;
        font-size: 12px !important;
    }
}

/* ========== 顶部一级模块导航：胶囊样式 ========== */
#firstnav .nav-module-capsules {
    display: flex;
    align-items: center;
    gap: 10px;
    height: var(--header-row-height, 58px);
    padding: 0 6px;
    border: none;
}

#firstnav .nav-module-capsules > li {
    float: none;
    margin: 0;
    position: relative;
}

#firstnav .nav-module-capsules > li > a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    height: 34px;
    line-height: 1;
    padding: 0 18px;
    margin: 0;
    border: 1px solid rgba(78, 115, 223, 0.22);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.92);
    color: #475569;
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 0.3px;
    white-space: nowrap;
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.06);
    transition: color 0.2s ease, background 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

#firstnav .nav-module-capsules > li > a:hover,
#firstnav .nav-module-capsules > li > a:focus {
    color: #4e73df;
    background: #fff;
    border-color: rgba(78, 115, 223, 0.42);
    border-right: 1px solid rgba(78, 115, 223, 0.42);
    box-shadow: 0 4px 14px rgba(78, 115, 223, 0.16);
    transform: translateY(-1px);
}

#firstnav .nav-module-capsules > li.active > a,
#firstnav .nav-module-capsules > li.active > a:hover,
#firstnav .nav-module-capsules > li.active > a:focus {
    color: #4e73df;
    background: #fff;
    border-color: rgba(78, 115, 223, 0.35);
    border-right-color: rgba(78, 115, 223, 0.35);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
    overflow: visible;
    transform: translateY(-1px);
}

#firstnav .nav-module-capsules > li > a i {
    font-size: 13px;
    opacity: 0.82;
    transition: opacity 0.2s ease, color 0.2s ease;
}

#firstnav .nav-module-capsules > li.active > a i {
    color: #4e73df;
    opacity: 1;
}

#firstnav .nav-module-capsules > li > a span {
    position: relative;
    top: 0;
}

/* ========== 仅顶栏背景色（统一纯色，避免 logo / firstnav 深浅不一） ========== */
.main-header {
    background: var(--brand-gradient-header) !important;
    box-shadow: 0 4px 22px var(--brand-shadow), 0 1px 0 rgba(255, 255, 255, 0.08) inset;
    border-bottom: 1px solid rgba(255, 255, 255, 0.14);
}

.main-header .logo {
    background: transparent !important;
    border-right-color: rgba(255, 255, 255, 0.15) !important;
    height: var(--header-row-height, 58px) !important;
    line-height: var(--header-row-height, 58px) !important;
}

.main-header .logo:hover {
    background: rgba(255, 255, 255, 0.06) !important;
}

.multiplenav .main-header .navbar {
    background: transparent !important;
    box-shadow: none;
}

.multiplenav #firstnav {
    box-shadow: none;
}

.multiplenav .main-header .navbar .navbar-custom-menu .navbar-nav > li > a {
    color: rgba(255, 255, 255, 0.92) !important;
}

.multiplenav .main-header .navbar .navbar-custom-menu .navbar-nav > li > a:hover,
.multiplenav .main-header .navbar .navbar-custom-menu .navbar-nav > li.open > a {
    color: #fff !important;
    background: rgba(255, 255, 255, 0.12) !important;
}

.multiplenav #firstnav .nav-module-capsules > li:not(.active) > a {
    background: transparent !important;
    border-color: rgba(255, 255, 255, 0.28) !important;
    color: rgba(255, 255, 255, 0.92) !important;
    box-shadow: none !important;
}

.multiplenav #firstnav .nav-module-capsules > li:not(.active) > a:hover,
.multiplenav #firstnav .nav-module-capsules > li:not(.active) > a:focus {
    background: rgba(255, 255, 255, 0.12) !important;
    color: #fff !important;
    border-color: rgba(255, 255, 255, 0.38) !important;
    border-right-color: rgba(255, 255, 255, 0.38) !important;
    box-shadow: none !important;
}

.multiplenav #firstnav .nav-module-capsules > li:not(.active) > a i {
    color: inherit;
}

.multiplenav #firstnav .nav-module-capsules > li.active > a,
.multiplenav #firstnav .nav-module-capsules > li.active > a:hover,
.multiplenav #firstnav .nav-module-capsules > li.active > a:focus {
    color: #4e73df !important;
    background: #fff !important;
    border-color: rgba(78, 115, 223, 0.35) !important;
    border-right-color: rgba(78, 115, 223, 0.35) !important;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.multiplenav #firstnav .nav-module-capsules > li.active > a i {
    color: #4e73df !important;
    opacity: 1;
}

/*
 * 多标签模式：顶栏第一行加高，第二行标签栏紧随其后
 */
@media (min-width: 768px) {
    .multipletab.multiplenav .main-header {
        background: transparent !important;
        box-shadow: none !important;
        border-bottom: none !important;
        min-height: var(--header-stack-height);
    }

    .fixed.multipletab.multiplenav .main-header {
        position: fixed !important;
        top: 0;
        right: 0;
        left: 0;
    }

    .multipletab.multiplenav .main-header::before {
        content: "";
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        height: var(--header-row-height);
        background: var(--brand-gradient-header);
        z-index: 0;
        pointer-events: none;
    }

    .multipletab.multiplenav .main-header .navbar {
        min-height: var(--header-stack-height);
        overflow: visible;
        position: relative;
        z-index: 1;
    }

    .multipletab.multiplenav .main-header .logo,
    .multipletab.multiplenav #firstnav {
        background: transparent !important;
        position: relative;
        z-index: 1;
    }

    /* 第一行顶栏（含清除缓存等下拉）须高于第二行标签栏 */
    .multipletab.multiplenav #firstnav {
        position: relative;
        z-index: 1042;
    }

    .multipletab.multiplenav #firstnav .navbar-custom-menu {
        z-index: 1042;
    }

    .multipletab.multiplenav #firstnav .navbar-custom-menu .dropdown-menu {
        z-index: 1050;
    }

    .multipletab.multiplenav .main-header .logo {
        height: var(--header-row-height) !important;
    }

    .multipletab.multiplenav #secondnav {
        top: var(--header-row-height) !important;
        left: 0 !important;
        width: 100% !important;
        height: auto !important;
        min-height: var(--tabbar-row-height) !important;
        margin: 0 !important;
        padding: 0 14px !important;
        box-sizing: border-box !important;
        background: #e4e8ef !important;
        border-bottom: 1px solid #cfd4dc !important;
        box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.65) !important;
        overflow: visible !important;
        z-index: 1035 !important;
    }

    /*
     * 顶栏 min-height 含第二行标签栏，左侧 0~230px 在 58~98px 处仍是 header 占位，
     * 会挡住侧栏第一项点击；让空白区穿透，交互元素保持可点。
     */
    .multipletab.multiplenav .main-header {
        pointer-events: none;
    }

    .multipletab.multiplenav .main-header .logo,
    .multipletab.multiplenav .main-header #firstnav,
    .multipletab.multiplenav .main-header #firstnav *,
    .multipletab.multiplenav .main-header #secondnav,
    .multipletab.multiplenav .main-header #secondnav * {
        pointer-events: auto;
    }

    .multipletab.multiplenav .main-sidebar,
    .multipletab.multiplenav .left-side {
        padding-top: var(--header-row-height) !important;
    }
}

/* ========== 多标签栏（第二行 Tab）Chrome 风格 + 原生溢出下拉 ========== */
.multipletab.multiplenav #secondnav .nav-addtabs {
    display: flex !important;
    align-items: flex-end;
    flex-wrap: nowrap;
    width: 100%;
    height: var(--tabbar-row-height) !important;
    margin: 0 !important;
    padding: 0 !important;
    border: none !important;
    overflow: visible !important;
    position: relative;
}

.multipletab.multiplenav #secondnav .nav-addtabs > li:not(.tabdrop) {
    float: none !important;
    flex: 0 0 auto;
    position: relative !important;
    box-sizing: border-box !important;
    height: 32px !important;
    line-height: 1 !important;
    margin: 0 5px 0 0 !important;
    padding: 0 28px 0 14px !important;
    border: 1px solid #c5cad3 !important;
    border-bottom-color: #c5cad3 !important;
    border-radius: 8px 8px 0 0 !important;
    background: rgba(255, 255, 255, 0.72) !important;
    box-shadow: none !important;
    transition: background 0.15s ease, border-color 0.15s ease;
}

.multipletab.multiplenav #secondnav .nav-addtabs > li:not(.tabdrop) > a {
    display: inline-flex !important;
    align-items: center !important;
    gap: 6px !important;
    height: 100% !important;
    padding: 0 !important;
    line-height: 1 !important;
    font-size: 13px !important;
    font-weight: 500 !important;
    color: #5c6573 !important;
    background: none !important;
    border: none !important;
    border-radius: 0 !important;
    white-space: nowrap !important;
    max-width: 200px;
    overflow: hidden !important;
    text-overflow: ellipsis;
    opacity: 1 !important;
}

.multipletab.multiplenav #secondnav .nav-addtabs > li:not(.tabdrop) > a i {
    flex-shrink: 0;
    font-size: 12px;
    color: #8b95a5 !important;
}

.multipletab.multiplenav #secondnav .nav-addtabs > li:not(.tabdrop) > a span:not(.pull-right-container) {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.multipletab.multiplenav #secondnav .nav-addtabs > li:not(.tabdrop):hover {
    background: rgba(255, 255, 255, 0.92) !important;
    border-color: #b0b8c4 !important;
}

.multipletab.multiplenav #secondnav .nav-addtabs > li:not(.tabdrop):hover > a {
    color: #374151 !important;
}

.multipletab.multiplenav #secondnav .nav-addtabs > li:not(.tabdrop).active {
    height: 34px !important;
    z-index: 3 !important;
    margin-bottom: -1px !important;
    border-color: #cfd4dc !important;
    border-bottom: 1px solid #fff !important;
    background: #fff !important;
    box-shadow: 0 -2px 8px rgba(15, 23, 42, 0.07) !important;
}

.multipletab.multiplenav #secondnav .nav-addtabs > li:not(.tabdrop).active::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    border-radius: 8px 8px 0 0;
    background: var(--brand-gradient-horizontal);
}

.multipletab.multiplenav #secondnav .nav-addtabs > li:not(.tabdrop).active > a,
.multipletab.multiplenav #secondnav .nav-addtabs > li:not(.tabdrop).active > a:hover,
.multipletab.multiplenav #secondnav .nav-addtabs > li:not(.tabdrop).active > a:focus {
    color: var(--brand-primary) !important;
    font-weight: 600 !important;
    background: none !important;
}

.multipletab.multiplenav #secondnav .nav-addtabs > li:not(.tabdrop).active > a i {
    color: var(--brand-primary) !important;
}

.multipletab.multiplenav #secondnav .nav-addtabs > li:not(.tabdrop) .close-tab {
    display: flex !important;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    right: 7px;
    margin-top: -9px;
    border-radius: 50%;
    color: #94a3b8 !important;
    opacity: 0;
    transition: opacity 0.15s ease, background 0.15s ease, color 0.15s ease;
}

.multipletab.multiplenav #secondnav .nav-addtabs > li:not(.tabdrop):hover > .close-tab,
.multipletab.multiplenav #secondnav .nav-addtabs > li:not(.tabdrop).active > .close-tab {
    opacity: 1 !important;
    color: #64748b !important;
}

.multipletab.multiplenav #secondnav .nav-addtabs > li:not(.tabdrop) .close-tab:hover {
    background: rgba(239, 68, 68, 0.12) !important;
    color: #dc2626 !important;
}

.multipletab.multiplenav #secondnav .nav-addtabs > li:not(.tabdrop) .close-tab:before {
    font-size: 14px;
    line-height: 1;
}

.multipletab.multiplenav #secondnav .nav-addtabs > li:not(.tabdrop):not(:has(.close-tab)) {
    padding-right: 14px !important;
}

/* 放不下时：FastAdmin 原生溢出下拉（显示在右侧） */
.multipletab.multiplenav #secondnav .nav-addtabs > li.tabdrop {
    float: none !important;
    flex: 0 0 auto;
    align-self: flex-end;
    order: 999;
    margin: 0 0 0 auto !important;
    position: relative !important;
    height: 32px !important;
    padding: 0 !important;
    border: none !important;
    background: transparent !important;
    box-shadow: none !important;
    z-index: 12 !important;
}

.multipletab.multiplenav #secondnav .nav-addtabs > li.tabdrop.open {
    z-index: 1050 !important;
}

.multipletab.multiplenav #secondnav .nav-addtabs > li.tabdrop > a {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    height: 32px !important;
    min-width: 36px !important;
    padding: 0 10px !important;
    border: 1px solid #c5cad3 !important;
    border-bottom-color: #c5cad3 !important;
    border-radius: 8px 8px 0 0 !important;
    background: rgba(255, 255, 255, 0.92) !important;
    color: #5c6573 !important;
    box-shadow: none !important;
}

.multipletab.multiplenav #secondnav .nav-addtabs > li.tabdrop > a:hover,
.multipletab.multiplenav #secondnav .nav-addtabs > li.tabdrop.open > a {
    background: #fff !important;
    border-color: var(--brand-primary) !important;
    color: var(--brand-primary) !important;
}

.multipletab.multiplenav #secondnav .nav-addtabs > li.tabdrop > .dropdown-menu {
    right: 0;
    left: auto;
    min-width: 160px;
    max-height: 320px;
    overflow-y: auto;
    margin-top: 4px;
    border-radius: 8px;
    border: 1px solid #dfe7f2;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.12);
    z-index: 1050 !important;
    pointer-events: auto;
}

.multipletab.multiplenav #secondnav .nav-addtabs > li.tabdrop > .dropdown-menu > li {
    float: none !important;
    display: block !important;
    height: auto !important;
    margin: 0 !important;
    padding: 0 !important;
    border: none !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
}

.multipletab.multiplenav #secondnav .nav-addtabs > li.tabdrop > .dropdown-menu > li > a {
    display: block !important;
    max-width: none !important;
    padding: 8px 14px !important;
    color: #475569 !important;
    white-space: nowrap !important;
}

.multipletab.multiplenav #secondnav .nav-addtabs > li.tabdrop > .dropdown-menu > li.active > a,
.multipletab.multiplenav #secondnav .nav-addtabs > li.tabdrop > .dropdown-menu > li > a:hover {
    color: var(--brand-primary) !important;
    background: var(--brand-tint-bg) !important;
}

.multipletab.multiplenav #secondnav .nav-addtabs > li.tabdrop > .dropdown-menu > li .close-tab {
    opacity: 1 !important;
    right: 10px;
}

/* ========== 左侧菜单：商务选中态 ========== */
.main-sidebar .sidebar-menu > li > a {
    border-radius: 0 10px 10px 0;
    margin: 3px 10px 3px 0;
    border-left: 3px solid transparent;
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.main-sidebar .sidebar-menu > li:hover > a {
    color: #4e73df !important;
    background: rgba(78, 115, 223, 0.07) !important;
    border-left-color: rgba(78, 115, 223, 0.35) !important;
}

.main-sidebar .sidebar-menu > li.active > a,
.main-sidebar .sidebar-menu > li.treeview.menu-open > a {
    color: #4e73df !important;
    background: linear-gradient(90deg, rgba(78, 115, 223, 0.16) 0%, rgba(78, 115, 223, 0.06) 100%) !important;
    border-left-color: #4e73df !important;
    font-weight: 600;
    box-shadow: inset 0 0 0 1px rgba(78, 115, 223, 0.1);
}

.main-sidebar .sidebar-menu > li.active > a > .fa,
.main-sidebar .sidebar-menu > li.active > a > .glyphicon,
.main-sidebar .sidebar-menu > li.active > a > .ion,
.main-sidebar .sidebar-menu > li.treeview.menu-open > a > .fa {
    color: #4e73df !important;
}

.main-sidebar .sidebar-menu > li > .treeview-menu {
    background: rgba(78, 115, 223, 0.03) !important;
}

.main-sidebar .treeview-menu > li > a {
    border-radius: 0 8px 8px 0;
    margin: 2px 10px 2px 0;
    padding-left: 28px;
    transition: background 0.2s ease, color 0.2s ease;
}

.main-sidebar .treeview-menu > li:hover > a {
    color: #4e73df !important;
    background: rgba(78, 115, 223, 0.06) !important;
}

.main-sidebar .treeview-menu > li.active > a {
    color: #4e73df !important;
    background: rgba(78, 115, 223, 0.12) !important;
    font-weight: 600;
}

/* ========== 右侧内容区：配色 + 圆角边框 ========== */
:root {
    --content-bg: #f0f2f5;
    --content-bg-gradient: #f0f2f5;
    --content-surface: #ffffff;
    --content-surface-soft: #f5f7fa;
    --content-border: #e4e7eb;
    --content-shadow: 0 2px 12px rgba(15, 23, 42, 0.05);
    --content-radius: 8px;
    --content-radius-sm: 5px;
    /* 表格皮肤：品牌蓝实色表头（偏浅） */
    --table-header-bg: linear-gradient(180deg, #3d7ec4 0%, #2a6bb0 100%);
    --table-header-solid: #2a6bb0;
    --table-header-color: #ffffff;
    --table-border: #c5d5e8;
    --table-row-border: #e8eef6;
    --table-stripe-bg: #f3f7fb;
    --table-hover-bg: #e8f1fa;
    --table-selected-bg: #dceaf8;
}

body.inside-header,
body.inside-aside,
body.is-dialog {
    --content-radius: 8px;
    --content-radius-sm: 5px;
}

/* 主框架右侧底色 */
.content-wrapper {
    background: var(--content-bg-gradient) !important;
    background-color: var(--content-bg) !important;
}

/* iframe 内页底色 */
body.inside-header,
body.inside-aside {
    background: var(--content-bg-gradient) !important;
    background-color: var(--content-bg) !important;
}

/* 列表页主面板 */
body.inside-header .content .panel-intro,
body.inside-aside .content .panel-intro,
body.is-dialog .content .panel-intro,
body.is-dialog .panel-intro {
    border-radius: var(--content-radius);
    overflow: hidden;
    border: 1px solid var(--content-border);
    box-shadow: var(--content-shadow);
    background: var(--content-surface);
}

body.inside-header .content .panel-intro > .panel-heading,
body.inside-aside .content .panel-intro > .panel-heading,
body.is-dialog .content .panel-intro > .panel-heading,
body.is-dialog .panel-intro > .panel-heading {
    border-radius: var(--content-radius) var(--content-radius) 0 0;
    background: var(--content-surface-soft) !important;
    border-color: var(--content-border) !important;
    border-bottom: 1px solid #e4e7eb;
    padding: 12px 15px 10px !important;
}

/* 全局 Tab：胶囊样式（panel-intro / panel-nav） */
body.inside-header .content .panel-intro > .panel-heading .nav-tabs,
body.inside-aside .content .panel-intro > .panel-heading .nav-tabs,
body.is-dialog .panel-intro > .panel-heading .nav-tabs,
body.inside-header .content .panel-nav > .panel-heading .nav-tabs,
body.inside-aside .content .panel-nav > .panel-heading .nav-tabs,
body.is-dialog .panel-nav > .panel-heading .nav-tabs {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    border-bottom: none !important;
    margin-bottom: 0;
}

body.inside-header .content .panel-intro > .panel-heading .nav-tabs > li,
body.inside-aside .content .panel-intro > .panel-heading .nav-tabs > li,
body.is-dialog .panel-intro > .panel-heading .nav-tabs > li,
body.inside-header .content .panel-nav > .panel-heading .nav-tabs > li,
body.inside-aside .content .panel-nav > .panel-heading .nav-tabs > li,
body.is-dialog .panel-nav > .panel-heading .nav-tabs > li {
    float: none;
    margin: 0;
}

body.inside-header .content .panel-intro > .panel-heading .nav-tabs > li > a,
body.inside-aside .content .panel-intro > .panel-heading .nav-tabs > li > a,
body.is-dialog .panel-intro > .panel-heading .nav-tabs > li > a,
body.inside-header .content .panel-nav > .panel-heading .nav-tabs > li > a,
body.inside-aside .content .panel-nav > .panel-heading .nav-tabs > li > a,
body.is-dialog .panel-nav > .panel-heading .nav-tabs > li > a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    height: 32px;
    line-height: 1;
    padding: 0 16px !important;
    margin: 0 !important;
    border: 1px solid #d7e0ea !important;
    border-radius: 999px !important;
    background: #fff !important;
    color: #64748b !important;
    font-size: 13px;
    font-weight: 500;
    white-space: nowrap;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
    transition: color 0.2s ease, background 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

body.inside-header .content .panel-intro > .panel-heading .nav-tabs > li > a:hover,
body.inside-aside .content .panel-intro > .panel-heading .nav-tabs > li > a:hover,
body.is-dialog .panel-intro > .panel-heading .nav-tabs > li > a:hover,
body.inside-header .content .panel-intro > .panel-heading .nav-tabs > li > a:focus,
body.inside-aside .content .panel-intro > .panel-heading .nav-tabs > li > a:focus,
body.is-dialog .panel-intro > .panel-heading .nav-tabs > li > a:focus,
body.inside-header .content .panel-nav > .panel-heading .nav-tabs > li > a:hover,
body.inside-aside .content .panel-nav > .panel-heading .nav-tabs > li > a:hover,
body.is-dialog .panel-nav > .panel-heading .nav-tabs > li > a:hover,
body.inside-header .content .panel-nav > .panel-heading .nav-tabs > li > a:focus,
body.inside-aside .content .panel-nav > .panel-heading .nav-tabs > li > a:focus,
body.is-dialog .panel-nav > .panel-heading .nav-tabs > li > a:focus {
    background: #f0f6fc !important;
    border-color: #b8cce0 !important;
    color: var(--brand-primary, #004080) !important;
    box-shadow: 0 2px 8px rgba(0, 64, 128, 0.1);
}

body.inside-header .content .panel-intro > .panel-heading .nav-tabs > li.active > a,
body.inside-aside .content .panel-intro > .panel-heading .nav-tabs > li.active > a,
body.is-dialog .panel-intro > .panel-heading .nav-tabs > li.active > a,
body.inside-header .content .panel-intro > .panel-heading .nav-tabs > li.active > a:hover,
body.inside-aside .content .panel-intro > .panel-heading .nav-tabs > li.active > a:hover,
body.is-dialog .panel-intro > .panel-heading .nav-tabs > li.active > a:hover,
body.inside-header .content .panel-intro > .panel-heading .nav-tabs > li.active > a:focus,
body.inside-aside .content .panel-intro > .panel-heading .nav-tabs > li.active > a:focus,
body.is-dialog .panel-intro > .panel-heading .nav-tabs > li.active > a:focus,
body.inside-header .content .panel-nav > .panel-heading .nav-tabs > li.active > a,
body.inside-aside .content .panel-nav > .panel-heading .nav-tabs > li.active > a,
body.is-dialog .panel-nav > .panel-heading .nav-tabs > li.active > a,
body.inside-header .content .panel-nav > .panel-heading .nav-tabs > li.active > a:hover,
body.inside-aside .content .panel-nav > .panel-heading .nav-tabs > li.active > a:hover,
body.is-dialog .panel-nav > .panel-heading .nav-tabs > li.active > a:hover,
body.inside-header .content .panel-nav > .panel-heading .nav-tabs > li.active > a:focus,
body.inside-aside .content .panel-nav > .panel-heading .nav-tabs > li.active > a:focus,
body.is-dialog .panel-nav > .panel-heading .nav-tabs > li.active > a:focus {
    background: var(--brand-gradient-horizontal, linear-gradient(90deg, #0a4ea3 0%, #004080 100%)) !important;
    border-color: var(--brand-primary-dark, #003358) !important;
    color: #fff !important;
    box-shadow: 0 3px 10px rgba(0, 64, 128, 0.28);
    cursor: default;
}

/* 对话框内 panel-nav 头部也统一浅底 */
body.inside-header .content .panel-nav > .panel-heading,
body.inside-aside .content .panel-nav > .panel-heading,
body.is-dialog .panel-nav > .panel-heading {
    background: var(--content-surface-soft) !important;
    border-color: var(--content-border) !important;
    padding: 10px 12px !important;
}

body.inside-header .content .panel-intro > .panel-body,
body.inside-aside .content .panel-intro > .panel-body,
body.is-dialog .content .panel-intro > .panel-body,
body.is-dialog .panel-intro > .panel-body {
    border-radius: 0 0 var(--content-radius) var(--content-radius);
    background: #fff;
}

/* AdminLTE 卡片 */
body.inside-header .content .box,
body.inside-aside .content .box,
body.is-dialog .content .box,
body.is-dialog .box {
    border-radius: var(--content-radius);
    overflow: hidden;
}

/* Bootstrap Table 外框：顶边跟表头同色，避免顶角露白缝 */
body.inside-header .bootstrap-table .fixed-table-container,
body.inside-aside .bootstrap-table .fixed-table-container,
body.is-dialog .bootstrap-table .fixed-table-container {
    border: 1px solid var(--table-border) !important;
    border-top-color: var(--table-header-solid) !important;
    border-radius: var(--content-radius-sm);
    overflow: hidden;
    background: #fff !important;
}

/* 去掉表格外框，避免双边框夹缝 */
body.inside-header .bootstrap-table .table,
body.inside-aside .bootstrap-table .table,
body.is-dialog .bootstrap-table .table,
body.inside-header .bootstrap-table .table-bordered,
body.inside-aside .bootstrap-table .table-bordered,
body.is-dialog .bootstrap-table .table-bordered {
    border: none !important;
    border-collapse: collapse !important;
}

/* —— 表头：蓝底 —— */
body.inside-header .bootstrap-table .fixed-table-container thead,
body.inside-aside .bootstrap-table .fixed-table-container thead,
body.is-dialog .bootstrap-table .fixed-table-container thead,
body.inside-header .bootstrap-table .fixed-table-container thead tr,
body.inside-aside .bootstrap-table .fixed-table-container thead tr,
body.is-dialog .bootstrap-table .fixed-table-container thead tr {
    background: var(--table-header-bg) !important;
    border: none !important;
}

body.inside-header .bootstrap-table .table > thead > tr > th,
body.inside-aside .bootstrap-table .table > thead > tr > th,
body.is-dialog .bootstrap-table .table > thead > tr > th,
body.inside-header .bootstrap-table .fixed-table-container thead th,
body.inside-aside .bootstrap-table .fixed-table-container thead th,
body.is-dialog .bootstrap-table .fixed-table-container thead th {
    background: var(--table-header-bg) !important;
    color: var(--table-header-color) !important;
    font-weight: 600;
    letter-spacing: 0.03em;
    border-top: none !important;
    border-bottom: none !important;
    border-left: 1px solid rgba(255, 255, 255, 0.28) !important;
    border-right: none !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    text-shadow: 0 1px 0 rgba(0, 0, 0, 0.15);
}

/* 首末列横向补色，填平表头与外框之间的左右缝（不向下延伸，避免工具栏下蓝线） */
body.inside-header .bootstrap-table .fixed-table-container thead th:first-child,
body.inside-aside .bootstrap-table .fixed-table-container thead th:first-child,
body.is-dialog .bootstrap-table .fixed-table-container thead th:first-child {
    border-left: none !important;
    box-shadow: -3px 0 0 var(--table-header-solid) !important;
}

body.inside-header .bootstrap-table .fixed-table-container thead th:last-child,
body.inside-aside .bootstrap-table .fixed-table-container thead th:last-child,
body.is-dialog .bootstrap-table .fixed-table-container thead th:last-child {
    box-shadow: 3px 0 0 var(--table-header-solid) !important;
}

/* 固定表头开启时：可见表头在 .fixed-table-header；body 内 height:0 的 thead 去蓝底，避免工具栏下多一条蓝线 */
body.inside-header .bootstrap-table .fixed-table-container:has(> .fixed-table-header:not([style*="display: none"])) > .fixed-table-body > table > thead,
body.inside-aside .bootstrap-table .fixed-table-container:has(> .fixed-table-header:not([style*="display: none"])) > .fixed-table-body > table > thead,
body.is-dialog .bootstrap-table .fixed-table-container:has(> .fixed-table-header:not([style*="display: none"])) > .fixed-table-body > table > thead,
body.inside-header .bootstrap-table .fixed-table-container:has(> .fixed-table-header:not([style*="display: none"])) > .fixed-table-body > table > thead > tr,
body.inside-aside .bootstrap-table .fixed-table-container:has(> .fixed-table-header:not([style*="display: none"])) > .fixed-table-body > table > thead > tr,
body.is-dialog .bootstrap-table .fixed-table-container:has(> .fixed-table-header:not([style*="display: none"])) > .fixed-table-body > table > thead > tr,
body.inside-header .bootstrap-table .fixed-table-container:has(> .fixed-table-header:not([style*="display: none"])) > .fixed-table-body > table > thead > tr > th,
body.inside-aside .bootstrap-table .fixed-table-container:has(> .fixed-table-header:not([style*="display: none"])) > .fixed-table-body > table > thead > tr > th,
body.is-dialog .bootstrap-table .fixed-table-container:has(> .fixed-table-header:not([style*="display: none"])) > .fixed-table-body > table > thead > tr > th {
    background: transparent !important;
    box-shadow: none !important;
    border-color: transparent !important;
    color: transparent !important;
    text-shadow: none !important;
}

body.inside-header .bootstrap-table .fixed-table-container:has(> .fixed-table-header:not([style*="display: none"])) > .fixed-table-body > table > thead > tr > th .th-inner,
body.inside-aside .bootstrap-table .fixed-table-container:has(> .fixed-table-header:not([style*="display: none"])) > .fixed-table-body > table > thead > tr > th .th-inner,
body.is-dialog .bootstrap-table .fixed-table-container:has(> .fixed-table-header:not([style*="display: none"])) > .fixed-table-body > table > thead > tr > th .th-inner {
    background: transparent !important;
}

/* 默认空壳透明；真正显示固定表头时铺蓝底，避免左右露白缝 */
body.inside-header .bootstrap-table .fixed-table-header,
body.inside-aside .bootstrap-table .fixed-table-header,
body.is-dialog .bootstrap-table .fixed-table-header {
    background: transparent !important;
    border: none !important;
    margin: 0 !important;
}

body.inside-header .bootstrap-table .fixed-table-container:has(> .fixed-table-header:not([style*="display: none"])) > .fixed-table-header,
body.inside-aside .bootstrap-table .fixed-table-container:has(> .fixed-table-header:not([style*="display: none"])) > .fixed-table-header,
body.is-dialog .bootstrap-table .fixed-table-container:has(> .fixed-table-header:not([style*="display: none"])) > .fixed-table-header {
    background: var(--table-header-solid) !important;
}

body.inside-header .bootstrap-table .fixed-table-header[style*="display: none"],
body.inside-aside .bootstrap-table .fixed-table-header[style*="display: none"],
body.is-dialog .bootstrap-table .fixed-table-header[style*="display: none"],
body.inside-header .bootstrap-table .fixed-table-header[style*="display:none"],
body.inside-aside .bootstrap-table .fixed-table-header[style*="display:none"],
body.is-dialog .bootstrap-table .fixed-table-header[style*="display:none"] {
    height: 0 !important;
    min-height: 0 !important;
    padding: 0 !important;
    overflow: hidden !important;
    border: none !important;
    background: transparent !important;
}

/* 工具栏与表格之间不要额外边线 */
body.inside-header .bootstrap-table .fixed-table-toolbar,
body.inside-aside .bootstrap-table .fixed-table-toolbar,
body.is-dialog .bootstrap-table .fixed-table-toolbar {
    border-bottom: none !important;
    margin-bottom: 0 !important;
}

body.inside-header .bootstrap-table .table > thead > tr > th .th-inner,
body.inside-aside .bootstrap-table .table > thead > tr > th .th-inner,
body.is-dialog .bootstrap-table .table > thead > tr > th .th-inner,
body.inside-header .bootstrap-table .table > thead > tr > th a,
body.inside-aside .bootstrap-table .table > thead > tr > th a,
body.is-dialog .bootstrap-table .table > thead > tr > th a,
body.inside-header .bootstrap-table .table > thead > tr > th .sortable,
body.inside-aside .bootstrap-table .table > thead > tr > th .sortable,
body.is-dialog .bootstrap-table .table > thead > tr > th .sortable {
    color: #fff !important;
    border: none !important;
    background: transparent;
}

/* th 在 bootstrap-table 里常为 height:0，蓝底铺到 .th-inner 才稳 */
body.inside-header .bootstrap-table .fixed-table-container thead th .th-inner,
body.inside-aside .bootstrap-table .fixed-table-container thead th .th-inner,
body.is-dialog .bootstrap-table .fixed-table-container thead th .th-inner {
    background: var(--table-header-bg) !important;
}

/* —— 表体：不透明底色 + 格子边线 —— */
body.inside-header .bootstrap-table .table-striped > tbody > tr:nth-of-type(odd) > td,
body.inside-aside .bootstrap-table .table-striped > tbody > tr:nth-of-type(odd) > td,
body.is-dialog .bootstrap-table .table-striped > tbody > tr:nth-of-type(odd) > td {
    background-color: var(--table-stripe-bg) !important;
}

body.inside-header .bootstrap-table .table-striped > tbody > tr:nth-of-type(even) > td,
body.inside-aside .bootstrap-table .table-striped > tbody > tr:nth-of-type(even) > td,
body.is-dialog .bootstrap-table .table-striped > tbody > tr:nth-of-type(even) > td {
    background-color: #fff !important;
}

body.inside-header .bootstrap-table .table-hover > tbody > tr:hover > td,
body.inside-aside .bootstrap-table .table-hover > tbody > tr:hover > td,
body.is-dialog .bootstrap-table .table-hover > tbody > tr:hover > td {
    background-color: var(--table-hover-bg) !important;
}

body.inside-header .bootstrap-table .table-bordered > tbody > tr > td,
body.inside-aside .bootstrap-table .table-bordered > tbody > tr > td,
body.is-dialog .bootstrap-table .table-bordered > tbody > tr > td,
body.inside-header .bootstrap-table .fixed-table-container tbody td,
body.inside-aside .bootstrap-table .fixed-table-container tbody td,
body.is-dialog .bootstrap-table .fixed-table-container tbody td {
    border: 1px solid var(--table-row-border) !important;
}

body.inside-header .bootstrap-table .fixed-table-container tbody .selected td,
body.inside-aside .bootstrap-table .fixed-table-container tbody .selected td,
body.is-dialog .bootstrap-table .fixed-table-container tbody .selected td {
    background-color: var(--table-selected-bg) !important;
}

/* Bootstrap Table 分页栏：与边框留出间距 */
body.inside-header .bootstrap-table .fixed-table-pagination,
body.inside-aside .bootstrap-table .fixed-table-pagination,
body.is-dialog .bootstrap-table .fixed-table-pagination {
    padding: 12px 16px 14px;
    margin-top: 0;
    margin-bottom: 0;
    box-sizing: border-box;
    border-top: 1px solid var(--table-border);
    background: #fafcfe;
}

body.inside-header .bootstrap-table .fixed-table-pagination div.pagination,
body.inside-aside .bootstrap-table .fixed-table-pagination div.pagination,
body.is-dialog .bootstrap-table .fixed-table-pagination div.pagination,
body.inside-header .bootstrap-table .fixed-table-pagination .pagination-detail,
body.inside-aside .bootstrap-table .fixed-table-pagination .pagination-detail,
body.is-dialog .bootstrap-table .fixed-table-pagination .pagination-detail {
    margin-top: 0;
    margin-bottom: 0;
}

/* ========== 全局条件筛选（commonsearch） ========== */
body.inside-header .bootstrap-table .commonsearch-table,
body.inside-aside .bootstrap-table .commonsearch-table,
body.is-dialog .bootstrap-table .commonsearch-table,
body.inside-header .bootstrap-table .common-search-table,
body.inside-aside .bootstrap-table .common-search-table,
body.is-dialog .bootstrap-table .common-search-table {
    margin: 0 0 14px;
    padding: 16px 18px 8px;
    border: 1px solid var(--table-border, #c5d5e8);
    border-radius: var(--content-radius-sm, 5px);
    background: linear-gradient(180deg, #f5f9fd 0%, #eef4fb 100%);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.85);
}

body.inside-header .bootstrap-table .form-commonsearch,
body.inside-aside .bootstrap-table .form-commonsearch,
body.is-dialog .bootstrap-table .form-commonsearch {
    margin: 0;
}

body.inside-header .bootstrap-table .form-commonsearch > fieldset,
body.inside-aside .bootstrap-table .form-commonsearch > fieldset,
body.is-dialog .bootstrap-table .form-commonsearch > fieldset {
    margin: 0;
    padding: 0;
    border: none;
}

body.inside-header .bootstrap-table .form-commonsearch > fieldset > legend,
body.inside-aside .bootstrap-table .form-commonsearch > fieldset > legend,
body.is-dialog .bootstrap-table .form-commonsearch > fieldset > legend {
    display: none;
}

body.inside-header .bootstrap-table .form-commonsearch .row,
body.inside-aside .bootstrap-table .form-commonsearch .row,
body.is-dialog .bootstrap-table .form-commonsearch .row {
    margin-left: -8px;
    margin-right: -8px;
}

body.inside-header .bootstrap-table .form-commonsearch .row > .form-group,
body.inside-aside .bootstrap-table .form-commonsearch .row > .form-group,
body.is-dialog .bootstrap-table .form-commonsearch .row > .form-group {
    margin-left: 0;
    margin-right: 0;
    margin-bottom: 12px;
    padding-left: 8px;
    padding-right: 8px;
}

body.inside-header .bootstrap-table .form-commonsearch .control-label,
body.inside-aside .bootstrap-table .form-commonsearch .control-label,
body.is-dialog .bootstrap-table .form-commonsearch .control-label {
    padding-top: 7px;
    padding-bottom: 0;
    color: #334155;
    font-size: 13px;
    font-weight: 600;
    white-space: nowrap;
}

body.inside-header .bootstrap-table .form-commonsearch .form-control,
body.inside-aside .bootstrap-table .form-commonsearch .form-control,
body.is-dialog .bootstrap-table .form-commonsearch .form-control {
    height: 34px;
    padding: 6px 10px;
    border: 1px solid #cfdceb;
    border-radius: 5px !important;
    background: #fff;
    color: #1e293b;
    font-size: 13px;
    box-shadow: none;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

body.inside-header .bootstrap-table .form-commonsearch .form-control:hover,
body.inside-aside .bootstrap-table .form-commonsearch .form-control:hover,
body.is-dialog .bootstrap-table .form-commonsearch .form-control:hover {
    border-color: #a8c0db;
}

body.inside-header .bootstrap-table .form-commonsearch .form-control:focus,
body.inside-aside .bootstrap-table .form-commonsearch .form-control:focus,
body.is-dialog .bootstrap-table .form-commonsearch .form-control:focus {
    border-color: var(--brand-primary-light, #0a4ea3);
    box-shadow: 0 0 0 3px rgba(10, 78, 163, 0.15);
    outline: none;
}

body.inside-header .bootstrap-table .form-commonsearch select.form-control,
body.inside-aside .bootstrap-table .form-commonsearch select.form-control,
body.is-dialog .bootstrap-table .form-commonsearch select.form-control {
    padding-right: 28px;
    cursor: pointer;
}

body.inside-header .bootstrap-table .form-commonsearch .row-between > [class*="col-"],
body.inside-aside .bootstrap-table .form-commonsearch .row-between > [class*="col-"],
body.is-dialog .bootstrap-table .form-commonsearch .row-between > [class*="col-"] {
    padding-left: 4px;
    padding-right: 4px;
}

body.inside-header .bootstrap-table .form-commonsearch .sp_container,
body.inside-aside .bootstrap-table .form-commonsearch .sp_container,
body.is-dialog .bootstrap-table .form-commonsearch .sp_container {
    border-radius: 5px;
}

body.inside-header .bootstrap-table .form-commonsearch .sp_container .sp_input,
body.inside-aside .bootstrap-table .form-commonsearch .sp_container .sp_input,
body.is-dialog .bootstrap-table .form-commonsearch .sp_container .sp_input {
    border-radius: 5px !important;
    border-color: #cfdceb !important;
    height: 32px;
}

/* 查询 / 重置按钮 */
body.inside-header .bootstrap-table .form-commonsearch .btn,
body.inside-aside .bootstrap-table .form-commonsearch .btn,
body.is-dialog .bootstrap-table .form-commonsearch .btn {
    height: 34px;
    line-height: 20px;
    padding: 6px 16px;
    border-radius: 5px !important;
    font-size: 13px;
    font-weight: 500;
    box-shadow: none;
    transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
}

body.inside-header .bootstrap-table .form-commonsearch .btn.btn-success,
body.inside-aside .bootstrap-table .form-commonsearch .btn.btn-success,
body.is-dialog .bootstrap-table .form-commonsearch .btn.btn-success {
    color: #fff !important;
    background: var(--brand-gradient-horizontal, linear-gradient(90deg, #0a4ea3 0%, #004080 100%)) !important;
    border: 1px solid var(--brand-primary-dark, #003358) !important;
    box-shadow: 0 2px 6px rgba(0, 64, 128, 0.22) !important;
}

body.inside-header .bootstrap-table .form-commonsearch .btn.btn-success:hover,
body.inside-aside .bootstrap-table .form-commonsearch .btn.btn-success:hover,
body.is-dialog .bootstrap-table .form-commonsearch .btn.btn-success:hover {
    background: var(--brand-gradient-hover, linear-gradient(135deg, #0d5cb8 0%, #005099 50%, #003f70 100%)) !important;
    box-shadow: 0 4px 10px rgba(0, 64, 128, 0.3) !important;
}

body.inside-header .bootstrap-table .form-commonsearch .btn.btn-default,
body.inside-aside .bootstrap-table .form-commonsearch .btn.btn-default,
body.is-dialog .bootstrap-table .form-commonsearch .btn.btn-default {
    color: #475569 !important;
    background: #fff !important;
    border: 1px solid #cfdceb !important;
}

body.inside-header .bootstrap-table .form-commonsearch .btn.btn-default:hover,
body.inside-aside .bootstrap-table .form-commonsearch .btn.btn-default:hover,
body.is-dialog .bootstrap-table .form-commonsearch .btn.btn-default:hover {
    color: var(--brand-primary, #004080) !important;
    border-color: #a8c0db !important;
    background: #f8fbfe !important;
}

/* 工具栏「普通搜索」开关按钮 */
body.inside-header .bootstrap-table .btn-commonsearch,
body.inside-aside .bootstrap-table .btn-commonsearch,
body.is-dialog .bootstrap-table .btn-commonsearch {
    color: var(--brand-primary, #004080) !important;
    background: rgba(10, 78, 163, 0.08) !important;
    border: 1px solid rgba(10, 78, 163, 0.22) !important;
    border-radius: 5px !important;
}

body.inside-header .bootstrap-table .btn-commonsearch:hover,
body.inside-aside .bootstrap-table .btn-commonsearch:hover,
body.is-dialog .bootstrap-table .btn-commonsearch:hover,
body.inside-header .bootstrap-table .btn-commonsearch:focus,
body.inside-aside .bootstrap-table .btn-commonsearch:focus,
body.is-dialog .bootstrap-table .btn-commonsearch:focus {
    color: #fff !important;
    background: var(--brand-primary-light, #0a4ea3) !important;
    border-color: var(--brand-primary, #004080) !important;
}

body.inside-header .bootstrap-table .btn-commonsearch > span,
body.inside-aside .bootstrap-table .btn-commonsearch > span,
body.is-dialog .bootstrap-table .btn-commonsearch > span {
    background: #ef4444;
    color: #fff;
    border-radius: 10px;
    min-width: 16px;
    height: 16px;
    line-height: 16px;
    font-size: 11px;
    padding: 0 4px;
    box-shadow: 0 1px 3px rgba(239, 68, 68, 0.35);
}

/* ========== 表格操作栏按钮：小圆角实心风格 ========== */
.bootstrap-table .fixed-table-body tbody td a.btn.btn-xs,
.bootstrap-table .fixed-table-body tbody td button.btn.btn-xs,
.bootstrap-table .fixed-table-body tbody td .btn-group > .btn.btn-xs {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    gap: 4px;
    height: 26px;
    line-height: 1 !important;
    padding: 0 10px !important;
    margin: 2px 4px 2px 0;
    border-radius: 5px !important;
    font-size: 12px !important;
    font-weight: 400;
    border-width: 1px !important;
    border-style: solid !important;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.08) !important;
    vertical-align: middle;
    white-space: nowrap;
    transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
}

.bootstrap-table .fixed-table-body tbody td a.btn.btn-xs .fa,
.bootstrap-table .fixed-table-body tbody td button.btn.btn-xs .fa,
.bootstrap-table .fixed-table-body tbody td .btn-group > .btn.btn-xs .fa {
    font-size: 12px;
    line-height: 1;
}

.bootstrap-table .fixed-table-body tbody td a.btn.btn-xs:hover,
.bootstrap-table .fixed-table-body tbody td button.btn.btn-xs:hover,
.bootstrap-table .fixed-table-body tbody td .btn-group > .btn.btn-xs:hover {
    box-shadow: 0 2px 6px rgba(15, 23, 42, 0.14) !important;
}

.bootstrap-table .fixed-table-body tbody td a.btn.btn-xs.disabled,
.bootstrap-table .fixed-table-body tbody td a.btn.btn-xs[disabled],
.bootstrap-table .fixed-table-body tbody td button.btn.btn-xs.disabled {
    opacity: 0.5;
    box-shadow: none !important;
    cursor: not-allowed;
}

/* 编辑 */
.bootstrap-table .fixed-table-body tbody td .btn-editone.btn-xs {
    color: #fff !important;
    background: var(--brand-primary-light) !important;
    border-color: var(--brand-primary) !important;
}
.bootstrap-table .fixed-table-body tbody td .btn-editone.btn-xs:hover {
    color: #fff !important;
    background: var(--brand-primary) !important;
    border-color: var(--brand-primary-dark) !important;
}

/* 成功 / 下载类 */
.bootstrap-table .fixed-table-body tbody td .btn-success.btn-xs {
    color: #fff !important;
    background: #059669 !important;
    border-color: #047857 !important;
}
.bootstrap-table .fixed-table-body tbody td .btn-success.btn-xs:hover {
    color: #fff !important;
    background: #047857 !important;
    border-color: #065f46 !important;
}

/* 删除 / 危险 */
.bootstrap-table .fixed-table-body tbody td .btn-danger.btn-xs,
.bootstrap-table .fixed-table-body tbody td .btn-delone.btn-xs,
.bootstrap-table .fixed-table-body tbody td .btn-destroyone.btn-xs {
    color: #fff !important;
    background: #ef4444 !important;
    border-color: #dc2626 !important;
}
.bootstrap-table .fixed-table-body tbody td .btn-danger.btn-xs:hover,
.bootstrap-table .fixed-table-body tbody td .btn-delone.btn-xs:hover,
.bootstrap-table .fixed-table-body tbody td .btn-destroyone.btn-xs:hover {
    color: #fff !important;
    background: #dc2626 !important;
    border-color: #b91c1c !important;
}

/* 详情 / 信息 */
.bootstrap-table .fixed-table-body tbody td .btn-info.btn-xs {
    color: #fff !important;
    background: #3b82f6 !important;
    border-color: #2563eb !important;
}
.bootstrap-table .fixed-table-body tbody td .btn-info.btn-xs:hover {
    color: #fff !important;
    background: #2563eb !important;
    border-color: #1d4ed8 !important;
}

/* 主要 / 排序 */
.bootstrap-table .fixed-table-body tbody td .btn-primary.btn-xs,
.bootstrap-table .fixed-table-body tbody td .btn-dragsort.btn-xs {
    color: #fff !important;
    background: var(--brand-primary) !important;
    border-color: var(--brand-primary-dark) !important;
}
.bootstrap-table .fixed-table-body tbody td .btn-primary.btn-xs:hover,
.bootstrap-table .fixed-table-body tbody td .btn-dragsort.btn-xs:hover {
    color: #fff !important;
    background: var(--brand-primary-dark) !important;
    border-color: #002847 !important;
}

/* 警告 */
.bootstrap-table .fixed-table-body tbody td .btn-warning.btn-xs {
    color: #fff !important;
    background: #f59e0b !important;
    border-color: #d97706 !important;
}
.bootstrap-table .fixed-table-body tbody td .btn-warning.btn-xs:hover {
    color: #fff !important;
    background: #d97706 !important;
    border-color: #b45309 !important;
}

/* 默认 / 更多 */
.bootstrap-table .fixed-table-body tbody td .btn-default.btn-xs {
    color: #fff !important;
    background: #64748b !important;
    border-color: #475569 !important;
}
.bootstrap-table .fixed-table-body tbody td .btn-default.btn-xs:hover {
    color: #fff !important;
    background: #475569 !important;
    border-color: #334155 !important;
}

/* 操作列内下拉按钮组 */
.bootstrap-table .fixed-table-body tbody td .btn-group {
    display: inline-flex;
    vertical-align: middle;
    margin: 2px 4px 2px 0;
}
.bootstrap-table .fixed-table-body tbody td .btn-group > .btn.btn-xs + .btn.btn-xs {
    margin-left: -1px;
    border-top-left-radius: 0 !important;
    border-bottom-left-radius: 0 !important;
}
.bootstrap-table .fixed-table-body tbody td .btn-group > .btn.btn-xs:first-child:not(:only-child) {
    border-top-right-radius: 0 !important;
    border-bottom-right-radius: 0 !important;
}
.bootstrap-table .fixed-table-body tbody td .btn-group .dropdown-menu > li > a {
    padding: 8px 14px;
    font-size: 13px;
}
.bootstrap-table .fixed-table-body tbody td .btn-group .dropdown-menu > li > a .fa {
    margin-right: 6px;
    width: 14px;
    text-align: center;
}

/* 表单控件 */
body.inside-header .content .form-control,
body.inside-aside .content .form-control,
body.is-dialog .form-control,
body.inside-header .content .input-group-addon,
body.inside-aside .content .input-group-addon,
body.is-dialog .input-group-addon {
    border-radius: var(--content-radius-sm);
}

body.inside-header .content .input-group .form-control:first-child,
body.inside-aside .content .input-group .form-control:first-child,
body.is-dialog .input-group .form-control:first-child {
    border-radius: var(--content-radius-sm) 0 0 var(--content-radius-sm);
}

body.inside-header .content .input-group .form-control:last-child,
body.inside-aside .content .input-group .form-control:last-child,
body.is-dialog .input-group .form-control:last-child {
    border-radius: 0 var(--content-radius-sm) var(--content-radius-sm) 0;
}

body.inside-header .content .input-group-btn:first-child > .btn,
body.inside-aside .content .input-group-btn:first-child > .btn,
body.is-dialog .input-group-btn:first-child > .btn {
    border-radius: var(--content-radius-sm) 0 0 var(--content-radius-sm);
}

body.inside-header .content .input-group-btn:last-child > .btn,
body.inside-aside .content .input-group-btn:last-child > .btn,
body.is-dialog .input-group-btn:last-child > .btn {
    border-radius: 0 var(--content-radius-sm) var(--content-radius-sm) 0;
}

/* 工具栏按钮组 */
body.inside-header .content .toolbar .btn,
body.inside-aside .content .toolbar .btn,
body.is-dialog .toolbar .btn {
    border-radius: var(--content-radius-sm);
}

/* 普通 panel */
body.inside-header .content .panel:not(.panel-intro),
body.inside-aside .content .panel:not(.panel-intro),
body.is-dialog .panel:not(.panel-intro) {
    border-radius: var(--content-radius);
    overflow: hidden;
}

body.inside-header .content .panel-default,
body.inside-aside .content .panel-default,
body.is-dialog .panel-default {
    border-radius: var(--content-radius);
}

/* 表格（非 bootstrap-table 场景） */
body.inside-header .content .table-bordered,
body.inside-aside .content .table-bordered,
body.is-dialog .table-bordered {
    border-radius: var(--content-radius-sm);
    overflow: hidden;
    border-color: var(--table-border);
}

body.inside-header .content .table > thead > tr > th,
body.inside-aside .content .table > thead > tr > th,
body.is-dialog .table > thead > tr > th {
    background: var(--table-header-bg);
    color: var(--table-header-color) !important;
    font-weight: 600;
    border-top: none !important;
    border-bottom: none !important;
    border-left: 1px solid rgba(255, 255, 255, 0.28) !important;
    border-right: none !important;
    text-shadow: 0 1px 0 rgba(0, 0, 0, 0.15);
}

body.inside-header .content .table > thead > tr > th:first-child,
body.inside-aside .content .table > thead > tr > th:first-child,
body.is-dialog .table > thead > tr > th:first-child {
    border-left: none !important;
}

body.inside-header .content .table-striped > tbody > tr:nth-of-type(odd),
body.inside-aside .content .table-striped > tbody > tr:nth-of-type(odd),
body.is-dialog .table-striped > tbody > tr:nth-of-type(odd) {
    background-color: var(--table-stripe-bg);
}

body.inside-header .content .table-hover > tbody > tr:hover,
body.inside-aside .content .table-hover > tbody > tr:hover,
body.is-dialog .table-hover > tbody > tr:hover {
    background-color: var(--table-hover-bg);
}

body.inside-header .content .table-bordered > thead > tr:first-child > th:first-child,
body.inside-aside .content .table-bordered > thead > tr:first-child > th:first-child,
body.is-dialog .table-bordered > thead > tr:first-child > th:first-child,
body.inside-header .content .table-bordered > tbody > tr:first-child > td:first-child,
body.inside-aside .content .table-bordered > tbody > tr:first-child > td:first-child,
body.is-dialog .table-bordered > tbody > tr:first-child > td:first-child {
    border-top-left-radius: var(--content-radius-sm);
}

body.inside-header .content .table-bordered > thead > tr:first-child > th:last-child,
body.inside-aside .content .table-bordered > thead > tr:first-child > th:last-child,
body.is-dialog .table-bordered > thead > tr:first-child > th:last-child,
body.inside-header .content .table-bordered > tbody > tr:first-child > td:last-child,
body.inside-aside .content .table-bordered > tbody > tr:first-child > td:last-child,
body.is-dialog .table-bordered > tbody > tr:first-child > td:last-child {
    border-top-right-radius: var(--content-radius-sm);
}

body.inside-header .content .table-bordered > tbody > tr:last-child > td:first-child,
body.inside-aside .content .table-bordered > tbody > tr:last-child > td:first-child,
body.is-dialog .table-bordered > tbody > tr:last-child > td:first-child {
    border-bottom-left-radius: var(--content-radius-sm);
}

body.inside-header .content .table-bordered > tbody > tr:last-child > td:last-child,
body.inside-aside .content .table-bordered > tbody > tr:last-child > td:last-child,
body.is-dialog .table-bordered > tbody > tr:last-child > td:last-child {
    border-bottom-right-radius: var(--content-radius-sm);
}

/* ========== 全站弹框：表单区与底部按钮区统一白底 ========== */
body.is-dialog,
body.is-dialog #main,
body.is-dialog .content {
    background: #fff !important;
}

.layui-layer.layui-layer-fast.layui-layer-composite-dialog .layui-layer-content,
.layui-layer.layui-layer-fast.layui-layer-skill-config .layui-layer-content,
.layui-layer.layui-layer-fast.layui-layer-composite-dialog iframe,
.layui-layer.layui-layer-fast.layui-layer-skill-config iframe {
    background: #fff !important;
}

.layui-layer.layui-layer-fast.layui-layer-composite-dialog .layui-layer-btn,
.layui-layer.layui-layer-fast.layui-layer-composite-dialog .layui-layer-footer,
.layui-layer.layui-layer-fast.layui-layer-skill-config .layui-layer-btn,
.layui-layer.layui-layer-fast.layui-layer-skill-config .layui-layer-footer {
    background: #fff !important;
    background-color: #fff !important;
    border-top: 1px solid #eef2f6 !important;
    box-shadow: none !important;
}

/* ========== 全站 Toastr 提示（样式美化，位置：多标签栏行右上角，FastAdmin 默认） ========== */
#toast-container.toast-top-right-index {
    top: calc(var(--header-row-height, 58px) + 4px) !important;
    right: 12px !important;
    width: auto !important;
    z-index: 999999 !important;
}

#toast-container.toast-top-right {
    top: 12px !important;
    right: 12px !important;
    width: auto !important;
}

#toast-container > div {
    width: 360px;
    max-width: calc(100vw - 32px);
    padding: 14px 48px 14px 52px !important;
    opacity: 1 !important;
    border-radius: 12px !important;
    border: 1px solid #e2e8f0;
    background-image: none !important;
    background-color: #fff !important;
    color: #334155 !important;
    box-shadow: 0 12px 32px rgba(15, 23, 42, 0.12), 0 4px 12px rgba(15, 23, 42, 0.06) !important;
    font-size: 14px;
    line-height: 1.55;
}

#toast-container > div:hover {
    box-shadow: 0 16px 40px rgba(15, 23, 42, 0.14), 0 6px 16px rgba(15, 23, 42, 0.08) !important;
    opacity: 1 !important;
    cursor: default;
}

#toast-container > div::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    border-radius: 12px 0 0 12px;
}

#toast-container > div::after {
    position: absolute;
    left: 18px;
    top: 50%;
    transform: translateY(-50%);
    width: 22px;
    height: 22px;
    font-family: FontAwesome;
    font-size: 13px;
    line-height: 22px;
    text-align: center;
    border-radius: 50%;
    color: #fff;
}

#toast-container > .toast-success {
    background-color: #eff6ff !important;
    border-color: #bfdbfe !important;
    color: #003358 !important;
}

#toast-container > .toast-success::before {
    background: var(--brand-gradient-horizontal);
}

#toast-container > .toast-success::after {
    content: "\f00c";
    background: var(--brand-primary);
}

#toast-container > .toast-error {
    background-color: #fef2f2 !important;
    border-color: #fecaca !important;
    color: #991b1b !important;
}

#toast-container > .toast-error::before {
    background: linear-gradient(180deg, #f87171 0%, #dc2626 100%);
}

#toast-container > .toast-error::after {
    content: "\f00d";
    background: #dc2626;
}

#toast-container > .toast-warning {
    background-color: #fffbeb !important;
    border-color: #fde68a !important;
    color: #92400e !important;
}

#toast-container > .toast-warning::before {
    background: linear-gradient(180deg, #fbbf24 0%, #d97706 100%);
}

#toast-container > .toast-warning::after {
    content: "\f071";
    background: #d97706;
}

#toast-container > .toast-info {
    background-color: #eff6ff !important;
    border-color: #bfdbfe !important;
    color: #1e40af !important;
}

#toast-container > .toast-info::before {
    background: linear-gradient(180deg, #60a5fa 0%, #2563eb 100%);
}

#toast-container > .toast-info::after {
    content: "\f129";
    background: #2563eb;
}

#toast-container .toast-title {
    font-weight: 700;
    font-size: 14px;
    margin-bottom: 2px;
    color: inherit;
}

#toast-container .toast-message {
    font-size: 13px;
    color: inherit;
    opacity: 0.92;
}

#toast-container .toast-close-button {
    position: absolute;
    top: 10px;
    right: 10px;
    float: none;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    padding: 0;
    line-height: 1;
    text-align: center;
    border-radius: 8px;
    border: 1px solid #cbd5e1;
    background: #fff;
    color: #475569 !important;
    text-shadow: none !important;
    opacity: 1 !important;
    font-size: 20px;
    font-weight: 500;
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.08);
    transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
}

#toast-container .toast-close-button:hover,
#toast-container .toast-close-button:focus {
    color: #1e293b !important;
    background: #f1f5f9;
    border-color: #94a3b8;
    box-shadow: 0 2px 6px rgba(15, 23, 42, 0.1);
    opacity: 1 !important;
}

#toast-container .toast-progress {
    height: 3px;
    opacity: 0.35;
}

#toast-container > .toast-success .toast-progress {
    background-color: var(--brand-primary) !important;
}

#toast-container > .toast-error .toast-progress {
    background-color: #dc2626 !important;
}

#toast-container > .toast-warning .toast-progress {
    background-color: #d97706 !important;
}

#toast-container > .toast-info .toast-progress {
    background-color: #2563eb !important;
}

@media (max-width: 480px) {
    #toast-container > div {
        width: auto;
        max-width: calc(100vw - 24px);
    }
}

/* ========== 全站 Layer 确认按钮 / 工具栏主色按钮：蓝色品牌 ========== */
.layui-layer.layui-layer-fast .layui-layer-btn a.layui-layer-btn0 {
    background: var(--brand-gradient-horizontal) !important;
    border-color: var(--brand-primary-dark) !important;
    color: #fff !important;
}

.layui-layer.layui-layer-fast .layui-layer-btn a.layui-layer-btn0:hover {
    background: var(--brand-gradient-hover) !important;
    border-color: #002847 !important;
    color: #fff !important;
}

body.inside-header .content .toolbar .btn-success,
body.inside-aside .content .toolbar .btn-success,
body.is-dialog .toolbar .btn-success {
    background: var(--brand-gradient-horizontal) !important;
    border-color: var(--brand-primary-dark) !important;
    color: #fff !important;
}

body.inside-header .content .toolbar .btn-success:hover,
body.inside-aside .content .toolbar .btn-success:hover,
body.is-dialog .toolbar .btn-success:hover,
body.inside-header .content .toolbar .btn-success:focus,
body.inside-aside .content .toolbar .btn-success:focus,
body.is-dialog .toolbar .btn-success:focus {
    background: var(--brand-gradient-hover) !important;
    border-color: #002847 !important;
    color: #fff !important;
}

body.inside-header .content .btn-success:not(.btn-xs),
body.inside-aside .content .btn-success:not(.btn-xs),
body.is-dialog .btn-success:not(.btn-xs) {
    background: var(--brand-gradient-horizontal) !important;
    border-color: var(--brand-primary-dark) !important;
    color: #fff !important;
}

body.inside-header .content .btn-success:not(.btn-xs):hover,
body.inside-aside .content .btn-success:not(.btn-xs):hover,
body.is-dialog .btn-success:not(.btn-xs):hover,
body.inside-header .content .btn-success:not(.btn-xs):focus,
body.inside-aside .content .btn-success:not(.btn-xs):focus,
body.is-dialog .btn-success:not(.btn-xs):focus {
    background: var(--brand-gradient-hover) !important;
    border-color: #002847 !important;
    color: #fff !important;
}

/* 综合端考试计划列表：计划状态 / 提交省中心 */
.exam-plan-cell-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    min-width: 78px;
    padding: 3px 11px;
    font-size: 12px;
    font-weight: 500;
    line-height: 1.45;
    border-radius: 999px;
    white-space: nowrap;
    vertical-align: middle;
    letter-spacing: 0.02em;
    border: 1px solid transparent;
}

.exam-plan-cell-badge .fa {
    font-size: 11px;
    opacity: 0.9;
}

.exam-plan-cell-badge--pending {
    color: #92400e;
    background: linear-gradient(135deg, #fffbeb 0%, #fef3c7 100%);
    border-color: #fcd34d;
    box-shadow: 0 1px 2px rgba(180, 83, 9, 0.08);
}

.exam-plan-cell-badge--published {
    color: #003358;
    background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
    border-color: #93c5fd;
    box-shadow: 0 1px 2px rgba(0, 64, 128, 0.1);
}

.exam-plan-cell-badge--void {
    color: #64748b;
    background: #f1f5f9;
    border-color: #cbd5e1;
}

.exam-plan-cell-badge--submit-no {
    color: #475569;
    background: #f8fafc;
    border-color: #cbd5e1;
}

.exam-plan-cell-badge--submit-yes {
    color: #065f46;
    background: linear-gradient(135deg, #ecfdf5 0%, #d1fae5 100%);
    border-color: #6ee7b7;
    box-shadow: 0 1px 2px rgba(5, 150, 105, 0.08);
}

/* 考试计划列表：考试状态（圆点状态条，区别于计划状态胶囊） */
.exam-plan-session {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 2px 0;
    font-size: 12px;
    font-weight: 500;
    line-height: 1.4;
    white-space: nowrap;
    vertical-align: middle;
}

.exam-plan-session__dot {
    display: inline-block;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    flex-shrink: 0;
    box-shadow: 0 0 0 2px rgba(148, 163, 184, 0.25);
}

.exam-plan-session--idle {
    color: #64748b;
}

.exam-plan-session--idle .exam-plan-session__dot {
    background: #94a3b8;
    box-shadow: 0 0 0 2px rgba(148, 163, 184, 0.22);
}

.exam-plan-session--running {
    color: #0369a1;
}

.exam-plan-session--running .exam-plan-session__dot {
    background: #0ea5e9;
    box-shadow: 0 0 0 2px rgba(14, 165, 233, 0.28);
    animation: exam-plan-session-pulse 1.6s ease-in-out infinite;
}

.exam-plan-session--done {
    color: #047857;
}

.exam-plan-session--done .exam-plan-session__dot {
    background: #10b981;
    box-shadow: 0 0 0 2px rgba(16, 185, 129, 0.22);
}

@keyframes exam-plan-session-pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.55; transform: scale(0.85); }
}

/* 考试计划列表：编号等宽胶囊 */
.exam-plan-code {
    display: inline-block;
    max-width: 180px;
    padding: 2px 8px;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
    font-size: 12px;
    font-weight: 500;
    line-height: 1.45;
    letter-spacing: 0.02em;
    border-radius: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    vertical-align: middle;
    border: 1px solid transparent;
}

.exam-plan-code--exam {
    color: #1e3a5f;
    background: #f1f5f9;
    border-color: #cbd5e1;
}

.exam-plan-code--paper {
    color: #5b21b6;
    background: #f5f3ff;
    border-color: #ddd6fe;
    max-width: none;
    overflow: visible;
    text-overflow: clip;
    white-space: nowrap;
}

/* 考试计划列表：时限/次数数值样式（替代统一蓝 pill） */
.exam-plan-metric {
    display: inline-flex;
    align-items: baseline;
    gap: 1px 3px;
    padding: 2px 0;
    line-height: 1.35;
    white-space: nowrap;
    vertical-align: middle;
    font-variant-numeric: tabular-nums;
}

.exam-plan-metric__num {
    font-size: 14px;
    font-weight: 600;
    letter-spacing: -0.02em;
}

.exam-plan-metric__unit {
    font-size: 11px;
    font-weight: 400;
    color: #64748b;
}

.exam-plan-metric--empty {
    font-size: 12px;
    font-weight: 400;
    color: #94a3b8;
}

.exam-plan-metric--time .exam-plan-metric__num {
    color: #1d4ed8;
}

.exam-plan-metric--entry .exam-plan-metric__num {
    color: #0f766e;
}

.exam-plan-metric--count .exam-plan-metric__num {
    color: #b45309;
}

.exam-plan-metric--away .exam-plan-metric__num {
    color: #7c3aed;
}

/* 考试计划列表：技能开关（图标文案，替代绿/红 pill） */
.exam-plan-switch {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 2px 8px;
    font-size: 12px;
    font-weight: 500;
    line-height: 1.45;
    border-radius: 4px;
    white-space: nowrap;
    vertical-align: middle;
    border: 1px dashed transparent;
}

.exam-plan-switch .fa {
    font-size: 12px;
    width: 1em;
    text-align: center;
}

.exam-plan-switch--on {
    color: #047857;
    background: #ecfdf5;
    border-color: #a7f3d0;
}

.exam-plan-switch--off {
    color: #94a3b8;
    background: #f8fafc;
    border-color: #e2e8f0;
}
