@import '/_content/Microsoft.FluentUI.AspNetCore.Components/css/reboot.css';
:root {
    --second-theme-color: #F54927;
    --warning-theme-color: #FFB900;
    --shadow-theme-color: rgba(222,222,222,1);
    --shadow1-theme-color: rgba(224,224,224,1);
    --brand-theme-color: #2563EB; /* 品牌明快蓝（皇家蓝），白字 5.2:1 AA */
    --brand-theme-color-dark: #1D4ED8; /* 品牌蓝加深：链接 hover / 按压 / 激活文字 */
    --ft-cta: #F54927; /* 品牌活力橙：每屏唯一顶级 CTA / 高亮点缀 */
    --ft-cta-hover: #EE7A12;
    --ft-cta-fg: #283237; /* 橙底深字 5.1:1 AA（橙底禁白字：仅 2.6:1） */
    --ft-cta-deep: #C5500E; /* 确需白字橙底时用，4.6:1 AA */
    --ft-orange-tint: #FEF3E7; /* 浅橙底（徽章 / 高亮块） */
    --ft-blue-tint: #E8EEFD; /* 浅蓝 chip 底（图标块 / 分类 / 轻强调） */
    --ft-nav-bg: #F0F5FF; /* 左侧导航浅蓝底 */
    --ft-nav-fg: #33415C;
    --ft-nav-hover-bg: #E2EAFB;
    --ft-nav-active-bg: #F54927; /* 当前项浅蓝 chip */
    /* Fastransp design system tokens — see design-system/fastransp/MASTER.md */
    --brand-green-text: #00875A; /* 绿：浅底上的文字/图标（AA 4.5:1），禁白字配亮绿 */
    --ft-error-fg: #C50F1F;
    --ft-error-bg: #FDF3F4;
    --ft-warning-fg: #856404;
    --ft-warning-bg: #FFF4CE;
    --ft-success-fg: #107C10;
    --ft-success-bg: #EFF6F0;
    --ft-info-fg: #005FB8;
    --ft-info-bg: #EFF6FC;
    --ft-green-tint: #E7F6EF; /* 品牌绿浅底（聊天气泡、品牌绿标签） */
    --ft-radius: 6px; /* 明快风圆角（原 3px 紧凑风） */
    --ft-shadow-card: 0 1px 2px rgba(0, 0, 0, 0.1);
    --ft-radius-card: 12px;
    --transition-base: 200ms ease;
    --ft-color-background: #F8FAFC;
}

body {
    margin: 0;
    padding: 0;
    height: 100vh;
    --body-font: "Microsoft Yahei", "Arial", "Segoe UI Variable", "Segoe UI", sans-serif;
    font-family: var(--body-font);
    font-size: var(--type-ramp-base-font-size);
    line-height: var(--type-ramp-base-line-height);
    font-weight: var(--font-weight);
    color: dimgrey;
    background: var(--neutral-fill-layer-rest);
}

body a {
    text-decoration: none;
}

a:hover {
    color: var(--brand-theme-color-dark) !important;
}

.language-selector-icon {
    width: 26px;
    height: 26px;
    padding: 5px 4px 4px;
    background: transparent;
    cursor: pointer;
    display: inline-block;
    vertical-align: middle;
}

.flag-en {
    background-position: -32px 0;
    width: 16px;
    height: 16px;
}

.flag-ch {
    background-position: -32px -48px;
    width: 16px;
    height: 16px;
}

.flag {
    background-image: url(images/flags.png);
}

.ftsp-top-menu1 {
    display: flex;
    font-weight: normal;
    justify-content: space-between;
    list-style: none;
    padding: 0px;
    margin: 0px;
    text-align: center;
    line-height: 35px;
    list-style-type: none;
    list-style-position: outside;
}

    .ftsp-top-menu1 li {
        padding: 0px;
        margin: 0px;
        width: 100%;
        line-height: 35px;
        background-color: transparent;
    }

        .ftsp-top-menu1 li a {
            text-decoration: none;
            color: black;
            display: inline-block;
            margin: 0px;
            min-width: 90px;
            vertical-align: central;
            text-align: center;
        }

            .ftsp-top-menu1 li a:hover {
                color: white;
                background-color: var(--accent-fill-rest);
            }

.ftsp-nav-item1 {
    padding: 0px;
    display: block;
}

.ftsp-with-dropdown1 {
    position: relative;
}

.ftsp-dropdown1 {
    padding: 0px;
    margin: 0px;
    display: none;
    position: absolute;
    bottom: 100%;
    background-color: transparent;
    z-index: 8;
}

    .ftsp-dropdown1 li {
        padding: 0px;
        margin: 0px;
        border-left: solid 1px lightgray;
        border-right: solid 1px lightgray;
        border-top: solid 1px lightgray;
    }

.ftsp-dropdown-item1 {
    padding: 0px;
    margin: 0px;
}

.ftsp-with-dropdown1:hover .ftsp-dropdown1 {
    display: block;
}

.positioning-region {
    background-color: transparent !important;
}

    .positioning-region:hover {
        background-color: var(--second-theme-color) !important;
        color: #283237; /* 亮绿底上唯一达标的深色文字（7.8:1 AAA） */
    }

.no-margin {
    margin: 0px;
}

.margin-1 {
    margin: 1px;
}

.margin-3 {
    margin: 3px;
}

.margin-5 {
    margin: 5px;
}

.no-padding{
    padding:0px;
}

.padding-1{
    padding:1px;
}

.padding-3 {
    padding: 3px;
}

.padding-5 {
    padding: 5px;
}

.cursor-pointer{
    cursor:pointer;
}

.top-menu-small {
    display: flex;
    font-weight: normal;
    justify-content: space-between;
    list-style: none;
    padding: 0px;
    margin: 0px;
    text-align: center;
    line-height: 48px;
    list-style-type: none;
    list-style-position: outside;
}

    .top-menu-small li {
        padding: 0px;
        margin: 0px;
        width: 100%;
        line-height: 48px;
        background-color: transparent;
    }

        .top-menu-small li a {
            text-decoration: none;
            color: var(--accent-fill-rest);
            display: inline-block;
            padding: 0px;
            min-width: 110px;
            vertical-align: middle;
            text-align: center;
        }

            .top-menu-small li a:hover {
                /*color: white;*/
                background-color: var(--ft-cta);
                border-radius: 3px;
            }

.nav-item {
    padding: 0px;
    display: block;
}

.nav-item > a:hover > div > svg{
    /*fill: white !important;*/
}

.with-dropdown {
    position: relative;
}

.dropdown {
    display: none;
    position: absolute;
    top: 100%;
    left: 0px;
    background-color: white;
    margin: 0px;
    padding: 0px;
}

    .dropdown li {
        border-left: solid 1px lightgray;
        border-right: solid 1px lightgray;
        border-bottom: solid 1px lightgray;
    }

.dropdown-item {
    padding: 0px;
    margin:0px;
}

.with-dropdown:hover .dropdown {
    display: block;
}

.navmenu-icon {
    display: none;
}

.main {
    min-height: calc(100dvh - 106px);
    color: var(--neutral-foreground-rest);
    align-items: stretch !important;
}

.main-full {
    min-height: calc(100dvh - 0px);
    color: var(--neutral-foreground-rest);
    align-items: stretch !important;
}

.body-content {
    align-self: stretch;
    height: calc(100dvh - 106px) !important;
    display: flex;
}

.content {
    align-self: stretch !important;
    width: 100%;
}

.manage {
    width: 100dvw;
}

footer {
    background: #eff4f7;
    color: var(--neutral-foreground-rest);
    align-items: center;
    padding: 10px 10px;
}

    footer a {
        color: var(--neutral-foreground-rest);
        text-decoration: none;
    }

        footer a:focus {
            outline: 1px dashed;
            outline-offset: 3px;
        }

        footer a:hover {
            text-decoration: underline;
        }

.footer {
    background: #eff4f7;
    color: var(--neutral-foreground-rest);
    align-items: center;
    padding: 10px 10px;
    font-size:small;
}

    .footer a {
        color: var(--neutral-foreground-rest);
        text-decoration: none;
    }

        .footer a:focus {
            outline: 1px dashed;
            outline-offset: 3px;
        }

        .footer a:hover {
            text-decoration: underline;
        }

.alert {
    border: 1px dashed var(--accent-fill-rest);
    padding: 5px;
}

.readonly-textfield {
    display: inline-block;
    border: solid 1px var(--neutral-stroke-rest);
    color: var(--neutral-foreground-rest);
    background: transparent;
    border-radius: var(--ft-radius);
    margin: 3px 3px 3px 6px;
    padding:5px;
    min-width: 160px;
    min-height: 27px;
    font-variant-numeric: tabular-nums;
}

.div-horizontal {
    display: flex;
    justify-content:flex-start;
    width: 100%;
}

.datagrid-outer-container {
    width: 100%;
    height: 100%;
}

.datagrid-container-withpager {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.datagrid-has-filter{
}

.datagrid-autoscroll {
    border: solid 1px lightgray;
    overflow-y: auto;
    width: 100%;
    font-size:smaller;
}

    .datagrid-pager {
        margin: 0px;
        padding: 0px 5px;
        border-left: solid 1px lightgray;
        border-right: solid 1px lightgray;
        border-bottom: solid 1px lightgray;
    }

.datagrid-fill{
    flex:1;
}

.page {
    display: flex;
    flex-direction: column;
    height: 100%;
    border-radius: 3px;
    background-color: var(--ft-color-background);
}

    .page .page-header {
        display: block;
        width: 100%;
        margin: 0px;
        background-color: var(--neutral-fill-stealth-rest)
    }

    .page .page-content {
        flex: 1;
        padding:5px;
        overflow-y:auto;
        min-height:0px;
    }

    .page .page-op-area {
        padding: 5px;
        align-content: end;
        border-top: 1px solid var(--neutral-stroke-rest);
    }
    .page .page-footer {
        position: relative;
        bottom: 0px;
    }

    .page .noscroll{
        overflow-y:visible;
        overflow-x:visible;
    }

    .page .has-page-action {
        height: calc(100% - 8px);
    }

    .page .page-div-action {
        display: flex;
        justify-items: stretch;
        justify-content: space-between;
        background-color: var(--neutral-fill-stealth-rest);
        align-content: end;
        text-align: end;
        padding: 10px 30px 10px 10px;
    }

.page-action{
    min-width:113px;
    font-size:larger;
    margin:4px;
}

#blazor-error-ui {
    background: lightyellow;
    bottom: 0;
    box-shadow: 0 -1px 2px rgba(0, 0, 0, 0.2);
    display: none;
    left: 0;
    padding: 0.6rem 1.25rem 0.7rem 1.25rem;
    position: fixed;
    width: 100%;
    z-index: 1000;
    margin: 20px 0;
}

    #blazor-error-ui .dismiss {
        cursor: pointer;
        position: absolute;
        right: 0.75rem;
        top: 0.5rem;
    }

.blazor-error-boundary {
    background: url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTYiIGhlaWdodD0iNDkiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIG92ZXJmbG93PSJoaWRkZW4iPjxkZWZzPjxjbGlwUGF0aCBpZD0iY2xpcDAiPjxyZWN0IHg9IjIzNSIgeT0iNTEiIHdpZHRoPSI1NiIgaGVpZ2h0PSI0OSIvPjwvY2xpcFBhdGg+PC9kZWZzPjxnIGNsaXAtcGF0aD0idXJsKCNjbGlwMCkiIHRyYW5zZm9ybT0idHJhbnNsYXRlKC0yMzUgLTUxKSI+PHBhdGggZD0iTTI2My41MDYgNTFDMjY0LjcxNyA1MSAyNjUuODEzIDUxLjQ4MzcgMjY2LjYwNiA1Mi4yNjU4TDI2Ny4wNTIgNTIuNzk4NyAyNjcuNTM5IDUzLjYyODMgMjkwLjE4NSA5Mi4xODMxIDI5MC41NDUgOTIuNzk1IDI5MC42NTYgOTIuOTk2QzI5MC44NzcgOTMuNTEzIDI5MSA5NC4wODE1IDI5MSA5NC42NzgyIDI5MSA5Ny4wNjUxIDI4OS4wMzggOTkgMjg2LjYxNyA5OUwyNDAuMzgzIDk5QzIzNy45NjMgOTkgMjM2IDk3LjA2NTEgMjM2IDk0LjY3ODIgMjM2IDk0LjM3OTkgMjM2LjAzMSA5NC4wODg2IDIzNi4wODkgOTMuODA3MkwyMzYuMzM4IDkzLjAxNjIgMjM2Ljg1OCA5Mi4xMzE0IDI1OS40NzMgNTMuNjI5NCAyNTkuOTYxIDUyLjc5ODUgMjYwLjQwNyA1Mi4yNjU4QzI2MS4yIDUxLjQ4MzcgMjYyLjI5NiA1MSAyNjMuNTA2IDUxWk0yNjMuNTg2IDY2LjAxODNDMjYwLjczNyA2Ni4wMTgzIDI1OS4zMTMgNjcuMTI0NSAyNTkuMzEzIDY5LjMzNyAyNTkuMzEzIDY5LjYxMDIgMjU5LjMzMiA2OS44NjA4IDI1OS4zNzEgNzAuMDg4N0wyNjEuNzk1IDg0LjAxNjEgMjY1LjM4IDg0LjAxNjEgMjY3LjgyMSA2OS43NDc1QzI2Ny44NiA2OS43MzA5IDI2Ny44NzkgNjkuNTg3NyAyNjcuODc5IDY5LjMxNzkgMjY3Ljg3OSA2Ny4xMTgyIDI2Ni40NDggNjYuMDE4MyAyNjMuNTg2IDY2LjAxODNaTTI2My41NzYgODYuMDU0N0MyNjEuMDQ5IDg2LjA1NDcgMjU5Ljc4NiA4Ny4zMDA1IDI1OS43ODYgODkuNzkyMSAyNTkuNzg2IDkyLjI4MzcgMjYxLjA0OSA5My41Mjk1IDI2My41NzYgOTMuNTI5NSAyNjYuMTE2IDkzLjUyOTUgMjY3LjM4NyA5Mi4yODM3IDI2Ny4zODcgODkuNzkyMSAyNjcuMzg3IDg3LjMwMDUgMjY2LjExNiA4Ni4wNTQ3IDI2My41NzYgODYuMDU0N1oiIGZpbGw9IiNGRkU1MDAiIGZpbGwtcnVsZT0iZXZlbm9kZCIvPjwvZz48L3N2Zz4=) no-repeat 1rem/1.8rem, #b32121;
    padding: 1rem 1rem 1rem 3.7rem;
    color: white;
}

    .blazor-error-boundary::before {
        content: "An error has occurred. "
    }

.loading-progress {
    position: relative;
    display: block;
    width: 8rem;
    height: 8rem;
    margin: 20vh auto 1rem auto;
}

    .loading-progress circle {
        fill: none;
        stroke: #e0e0e0;
        stroke-width: 0.6rem;
        transform-origin: 50% 50%;
        transform: rotate(-90deg);
    }

        .loading-progress circle:last-child {
            stroke: #1b6ec2;
            stroke-dasharray: calc(3.141 * var(--blazor-load-percentage, 0%) * 0.8), 500%;
            transition: stroke-dasharray 0.05s ease-in-out;
        }

.loading-progress-text {
    position: absolute;
    text-align: center;
    font-weight: bold;
    inset: calc(20vh + 3.25rem) 0 auto 0.2rem;
}

    .loading-progress-text:after {
        content: var(--blazor-load-percentage-text, "Loading");
    }

code {
    color: #c02d76;
}

.header-gutters {
    margin: 0.5rem !important;
}

@media (max-width: 600px) {
    .header-gutters {
        margin: 0.5rem !important;
    }

    [dir="rtl"] .header-gutters {
        margin: 0.5rem !important;
    }

    .main {
        flex-direction: column !important;
        row-gap: 0 !important;
    }

    nav.sitenav {
        width: 100%;
        height: 100%;
    }

    #main-menu {
        width: 100% !important;
    }

        #main-menu > div:first-child:is(.expander) {
            display: none;
        }

    .navmenu {
        width: 100%;
    }

    #navmenu-toggle {
        appearance: none;
    }

        #navmenu-toggle ~ nav {
            display: none;
        }

        #navmenu-toggle:checked ~ nav {
            display: block;
        }

    .navmenu-icon {
        cursor: pointer;
        z-index: 10;
        display: block;
        position: absolute;
        top: 15px;
        left: unset;
        right: 20px;
        width: 20px;
        height: 20px;
        border: none;
    }

    [dir="rtl"] .navmenu-icon {
        left: 20px;
        right: unset;
    }
}

/* ==========================================================================
   Fastransp 设计系统（design-system/fastransp/MASTER.md）
   轻松明快的亮色后台风格：明快皇家蓝 #2563EB 主导（按钮/链接/焦点/导航），
   活力橙 #F58220 = 每屏唯一顶级 CTA（.ft-cta-btn），
   品牌绿 #00E396 仅用于成功 / 品牌点缀（卡片图标、聊天气泡、图表系列）。
   ========================================================================== */

/* --- 卡片 / 详情面板 --- */
.ft-card {
    background: #fff;
    border-radius: var(--ft-radius-card);
    box-shadow: var(--ft-shadow-card);
    padding: 10px;
    transition: box-shadow var(--transition-base), transform var(--transition-base)
}

.ft-card-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    color: var(--neutral-foreground-rest);
    margin: 0 0 8px;
}

    .ft-card-title fluent-icon {
        color: var(--brand-green-text);
    }

    .ft-card-title svg {
        fill: var(--brand-green-text);
    }

/* --- 公告列表 / 金额汇总行 --- */
.ft-news-list {
    margin: 0;
    padding-left: 18px;
}

    .ft-news-list li {
        margin: 4px 0;
    }

.ft-stat-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 3px 5px;
    font-variant-numeric: tabular-nums;
}

    .ft-stat-row b {
        font-weight: 600;
        color: var(--neutral-foreground-rest);
    }

.ft-panel {
    background: #fff;
    border: 1px solid var(--neutral-stroke-rest);
    border-radius: var(--ft-radius);
    overflow: hidden;
}

.ft-panel-head {
    display: flex;
    align-items: center;
    gap: 8px;
    background: var(--neutral-fill-stealth-rest);
    border-bottom: 1px solid var(--neutral-stroke-rest);
    font-weight: 600;
    color: var(--neutral-foreground-rest);
    padding: 5px 10px;
}

.ft-panel-body {
    padding: 5px 10px;
}

/* --- 表单行：标签 + 控件 --- */
.ft-form-row {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    margin: 3px;
}

.ft-label {
    display: inline-block;
    min-width: 75px;
    vertical-align:middle;
}
.ft-form-control{
    vertical-align:middle;
}

.ft-label-lg {
    min-width: 95px;
}

.ft-req {
    color: var(--ft-error-fg);
}

/* --- 消息（替换 color:red / color:green 内联样式） --- */
.ft-msg-error {
    color: var(--ft-error-fg);
}

.ft-msg-success {
    color: var(--ft-success-fg);
}

/* --- 可点击文字操作（替换 anchor-as-button 内联样式） --- */
.ft-link {
    color: var(--brand-theme-color);
    cursor: pointer;
    text-decoration: none;
}

    .ft-link:hover {
        color: var(--brand-theme-color-dark);
        text-decoration: underline;
    }

/* --- 品牌橙 CTA（轻松明快风：活力橙 = 每屏唯一顶级操作，如 提交订单/立即充值）
   用法：<button class="ft-cta-btn">…</button>（HTML 按钮，Fluent 枚举无 Solid，故不用 FluentButton）
   橙底用深字 #283237（5.1:1 AA；白字仅 2.6:1 不达标） --- */
.ft-cta-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    background: var(--ft-cta);
    color: white;
    border: none;
    border-radius: var(--ft-radius);
    padding: 6px 16px;
    font-family: inherit;
    font-size: inherit;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 150ms ease-out;
}
    .ft-cta-btn svg {
        fill: white !important;
    }

    .ft-cta-btn:hover {
        background: var(--ft-cta-hover);
    }

    .ft-cta-btn:active {
        background: #E56E05;
    }

    .ft-cta-btn:disabled {
        opacity: .6;
        cursor: default;
    }

/* --- 筛选栏 / 按钮组 --- */
.ft-filter-bar {
    display: inline-flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 4px;
    margin: 2px 0 4px;
    vertical-align: middle;
}

    .ft-filter-bar fluent-text-field,
    .ft-filter-bar fluent-number-field,
    .ft-filter-bar fluent-select,
    .ft-filter-bar fluent-date-picker,
    .ft-filter-bar fluent-combobox {
        margin: 1px;
        padding: 1px;
    }

.ft-btn-group {
    display: flex;
    align-items: center;
    gap: 4px;
}

/* --- 状态标签（pill） --- */
.ft-status {
    display: inline-block;
    padding: 1px 8px;
    border-radius: var(--ft-radius);
    font-size: 12px;
    font-weight: 600;
    line-height: 18px;
    white-space: nowrap;
}

.ft-status-warn {
    background: var(--ft-warning-bg);
    color: var(--ft-warning-fg);
}

.ft-status-error {
    background: var(--ft-error-bg);
    color: var(--ft-error-fg);
}

.ft-status-success {
    background: var(--ft-success-bg);
    color: var(--ft-success-fg);
}

.ft-status-info {
    background: var(--ft-info-bg);
    color: var(--ft-info-fg);
}

.ft-status-neutral {
    background: var(--neutral-fill-stealth-rest);
    color: var(--neutral-foreground-rest);
}

.ft-status-brand {
    background: var(--brand-theme-color);
    color: #fff;
}

.ft-status-green {
    background: var(--ft-green-tint);
    color: var(--brand-green-text);
}

/* --- 警示横幅（替换 橙底白字 横幅） --- */
.ft-alert {
    display: flex;
    align-items: center;
    gap: 6px;
    background: var(--ft-warning-bg);
    color: var(--ft-warning-fg);
    border: 1px solid rgba(133,100,4,0.25);
    border-radius: var(--ft-radius);
    padding: 4px 10px;
    margin: 4px;
}

/* --- 仪表盘 KPI 块 / 图表标题 --- */
.ft-kpi-tile {
    background: var(--neutral-fill-stealth-rest);
    border: 1px solid var(--neutral-stroke-rest);
    border-radius: var(--ft-radius);
    padding: 5px;
}

.ft-chart-title {
    color: dimgray;
    font-size: 13px;
    margin: 0 0 4px;
}

/* --- 在线客服（原 Chat.razor 内联样式） --- */
.chat-box {
    width: 460px;
    height: 740px;
    background: #fff;
    border: 1px solid var(--neutral-stroke-rest);
    border-radius: var(--ft-radius);
    box-shadow: 0 3px 3px 0 rgba(0,0,0,0.1);
    overflow: hidden;
}

.chat-head {
    display: flex;
    align-items: center;
    background: var(--brand-theme-color);
    color: #fff;
    padding: 5px 10px;
}

.chat-time {
    color: dimgray;
    font-size: 12px;
}

.chat-bubble {
    display: block;
    width: fit-content;
    max-width: 100%;
    border-radius: var(--ft-radius);
    padding: 8px;
}

.chat-bubble-own {
    background: var(--ft-green-tint);
    border: 1px solid #BFE5D2;
    text-align: right;
}

.chat-bubble-other {
    background: #fff;
    border: 1px solid var(--neutral-stroke-rest);
}

/* --- 状态圆点（页脚渲染器状态） --- */
.ft-dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    vertical-align: middle;
    margin-right: 4px;
}

.ft-dot-ok {
    background: var(--ft-success-fg);
}

.ft-dot-warn {
    background: #FFB900;
}

.ft-dot-off {
    background: var(--neutral-foreground-hint);
}

/* --- 数值数据使用等宽数字 --- */
fluent-data-grid,
fluent-select,
fluent-combobox {
    font-variant-numeric: tabular-nums;
}

/* --- MDI 标签条（原 Controls/Tabs/*.razor.css 未随包加载，迁移至此） --- */
.active {
    display: block;
}

.inactive {
    display: none;
}

.tabs-bar {
    display: flex;
    align-items: stretch;
    background: var(--neutral-fill-stealth-rest);
    border-bottom: 1px solid var(--neutral-stroke-rest);
    overflow-x: auto;
    overflow-y: hidden;
    padding: 0 4px;
    flex-shrink: 0;
}

.tabs-item {
    display: inline-block;
    width: fit-content;
    list-style: none;
    color: var(--neutral-foreground-rest);
    cursor: pointer;
    margin-bottom: -1px;
    border-radius: var(--ft-radius) var(--ft-radius) 0 0;
    transition: background-color .15s ease;
}

    .tabs-item .nav-link {
        display: block;
        padding: 5px 8px 4px;
        max-width: 175px;
        overflow: clip;
        text-decoration: none;
        color: inherit;
    }

    .tabs-item .tab-title {
        display: block;
        width: 100%;
        overflow: clip;
        text-wrap-mode: nowrap;
    }

    .tabs-item:hover {
        background: var(--neutral-fill-stealth-hover);
    }

    .tabs-item.active {
        background: var(--neutral-fill-layer-rest);
        border-bottom: 1px solid var(--neutral-fill-layer-rest);
        box-shadow: inset 0 2px 0 var(--brand-theme-color);
    }

        .tabs-item.active .nav-link {
            font-weight: 600;
            color: var(--brand-theme-color);
        }

    .tabs-item.drop {
        outline: 2px dashed var(--brand-theme-color);
        outline-offset: -2px;
    }

    .tabs-item.drag .nav-link {
        pointer-events: none;
    }

    .tabs-item button.close {
        margin: 4px 2px 4px 0;
        padding: 1px;
        background: transparent;
        font-size: 1.1rem;
        line-height: 1;
        color: var(--neutral-foreground-rest);
        opacity: .6;
        border: 1px solid transparent;
        vertical-align: central;
        height: 22px;
        width: 22px;
        border-radius: var(--ft-radius);
        cursor: pointer;
    }

        .tabs-item button.close:hover {
            opacity: 1;
            color: var(--ft-error-fg);
            border-color: var(--ft-error-fg);
        }

.tabs-content {
    flex: 1;
    min-height: 0;
    border: 1px solid var(--neutral-stroke-rest);
    border-top-width: 0;
    background-color: var(--ft-color-background);
}

/* --- 页头（白底 + 浅灰底边；覆盖 FluentHeader 内建的 accent 底） --- */
.ft-header,
.ft-header::part(root),
.ft-header::part(control) {
    background: #FFFFFF !important;
    color: var(--neutral-foreground-rest);
}

    .ft-header {
        border-bottom: 1px solid var(--neutral-stroke-rest);
    }

/* --- Badge（组织名等：橙色实心 / 浅橙） --- */
.ft-badge {
    display: inline-block;
    padding: 2px 12px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.5;
    white-space: nowrap;
}

    .ft-badge-orange {
        background: var(--ft-cta);
        color: var(--ft-cta-fg);
    }

/* --- 左侧导航（浅蓝底，当前项 = 浅蓝 chip + 品牌蓝文字） --- */
.navmenu {
    background: var(--ft-cta-fg);
    color: white;
}

    .navmenu .fluent-nav-menu {
        background: transparent;
    }

    .navmenu .fluent-nav-link,
    .navmenu .fluent-nav-group {
        border-radius: var(--ft-radius);
    }

    .navmenu .fluent-nav-link:hover,
    .navmenu .fluent-nav-group:hover,
    .navmenu .navmenu-icon:hover {
        color: var(--brand-theme-color-dark);
        background: var(--ft-nav-hover-bg);
    }

    .navmenu .nav-active {
        color: white !important;
        background: var(--ft-nav-active-bg);
    }

/* --- Fluent 输入控件统一边框（原 MainLayout / EmptyLayout 内联 <style>，迁移至此） --- */
fluent-text-field{
    vertical-align:middle;
}

fluent-text-field::part(root) {
    border: solid 1px lightgray;
}

fluent-number-field::part(root) {
    border: solid 1px lightgray;
}

fluent-combobox::part(control) {
    border: solid 1px lightgray;
    margin-bottom: 3px;
}

fluent-select::part(listbox) {
    box-shadow: none;
}

.multi-selection fluent-option {
    padding-left: 24px;
}

.multi-selection fluent-option::before {
    width: calc(((var(--base-height-multiplier) + var(--density)) * var(--design-unit) / 2) * 1px);
    border: solid 1px var(--accent-fill-rest);
}

/* --- 国旗图标（语言切换） --- */
.flag {
    height: 1rem;
    margin: auto;
    border: 1px solid var(--neutral-stroke-rest);
}

/* --- 搜索框 --- */
.search-box {
    min-width: 250px;
    width: 100%;
}

    .search-box fluent-search {
        width: 100%;
    }

/* --- 数据网格选中行 --- */
.fluent-data-grid-row:has([row-selected]) > td {
    background-color: var(--neutral-fill-stealth-hover);
}

#main-menu svg {
    fill: white !important;
}
