@import '_content/BlazorServerControls/BlazorServerControls.f07k8ztfiv.bundle.scp.css';

/* _content/AIOrm_JianChaApp/Components/Layout/MainLayout.razor.rz.scp.css */
/* 两栏布局：左侧 SideNav（宽度交给 BscNavMenu 自己决定，折叠时才收窄），右侧内容。
   断点 641px 必须与 BscNavMenu 的 CSS（max-width: 640.98px）对齐。 */

.page[b-35ph52usms] {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.sidebar[b-35ph52usms] {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    /* 不写死宽度：跟着 BscNavMenu 的展开/折叠走 */
    width: auto;
    box-sizing: border-box;
    border-right: 1px solid #e3e6ea;
    background: #fff;
}

.main[b-35ph52usms] {
    flex: 1 1 auto;
    min-width: 0;   /* 允许内容区收缩，否则宽表格会把整页撑破 */
    display: flex;
    flex-direction: column;
}

.topbar[b-35ph52usms] {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .75rem;
    padding: .5rem 1rem;
    background: #fff;
    border-bottom: 1px solid #e3e6ea;
    box-shadow: 0 1px 2px rgba(27, 31, 35, .06);
}

/* 顶栏品牌：用 logo 图片替换文字标题（相对路径 src，挂应用子路径也成立） */
.topbar-logo[b-35ph52usms] {
    height: 40px;
    width: auto;
    display: block;
}

.content[b-35ph52usms] {
    flex: 1 1 auto;
    padding: 1rem;
}

@media (min-width: 641px) {
    .page[b-35ph52usms] {
        flex-direction: row;
    }

    .sidebar[b-35ph52usms] {
        flex: 0 0 auto;
        height: 100vh;
        position: sticky;
        top: 0;
    }
}

/* 暗色主题：body 上有 theme_dark 时（ThemeRestorer负责贴 class）把侧栏与顶栏也翻过来。
   控件自己的暗色配色来自 _content/BlazorServerControls/bsc-theme.css（App.razor 已引）。 */
body.theme_dark .sidebar[b-35ph52usms],
body.theme_dark .topbar[b-35ph52usms] {
    background: #1f2429;
    border-color: #333b44;
}
/* ---- 动态分析的下钻树（DomTree / CoreControl 生成的节点） ----
   控件库不提供任何 CSS（它只是"一根 DOM 树枝"），所以外观全部由宿主给。
   注意：这些类名是 CoreControl 挂上去的，scoped 属性会自动加到选择器最后一段。 */
.dim-tree__box[b-35ph52usms] {
    font-size: .9rem;
}

.dim-tree__list[b-35ph52usms] {
    list-style: none;
    margin: 0;
    padding: 0;
}

.dim-tree__list--child[b-35ph52usms] {
    margin-left: 1.1rem;
    border-left: 1px dashed #d8dde3;
    padding-left: .5rem;
}

.dim-tree__row[b-35ph52usms] {
    display: flex;
    align-items: center;
    gap: .5rem;
    padding: 3px 0;
}

.dim-tree__arrow[b-35ph52usms] {
    cursor: pointer;
    color: #52606d;
    display: inline-block;
    width: 1rem;
    transition: transform 120ms ease;
    user-select: none;
}

.dim-tree__label[b-35ph52usms] {
    cursor: pointer;
    color: #1b6ec2;
    text-decoration: none;
    min-width: 12rem;
}

.dim-tree__label:hover[b-35ph52usms] {
    text-decoration: underline;
}

.dim-tree__sum[b-35ph52usms] {
    margin-left: auto;
    font-variant-numeric: tabular-nums;
    color: #1f2933;
}

.dim-tree__pct[b-35ph52usms] {
    color: #52606d;
    width: 4.5rem;
    text-align: right;
    font-variant-numeric: tabular-nums;
}

.dim-tree__cnt[b-35ph52usms] {
    color: #9aa5b1;
    width: 4rem;
    text-align: right;
}
