@import url('open-iconic/font/css/open-iconic-bootstrap.min.css');

* {
    box-sizing: border-box;
}

:root {
    --global-size: 16px;
}

html, body {
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    margin: 0;
    height: 100%;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    font-size: var(--global-size);
}

.valid.modified:not([type=checkbox]) {
    outline: 1px solid #26b050;
}


.invalid {
    outline: 1px solid red;
}

.validation-message {
    color: red;
}

.button-link {
    text-decoration: unset;
}

#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;
}

#blazor-error-ui .dismiss {
    cursor: pointer;
    position: absolute;
    right: 0.75rem;
    top: 0.5rem;
}

.title {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    padding-bottom: 0.625rem;
}

.title.title-secondary {
    padding-top: 0.313rem;
    padding-bottom: 0;
    color: var(--bs-secondary-color);
}

.title-header-text {
    font-size: 2.5rem;
    line-height: 3rem;
    font-weight: 600;
    letter-spacing: 0rem;
    padding: 0.3125rem 0;
}

.title-content-text {
    font-size: 1.75rem;
    font-weight: 400;
    line-height: 2.5rem;
    letter-spacing: 0rem;
}

.main-content {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100%;
    width: 100%;
}

.block-content {
    width: 31.25rem;
    height: auto;
    display: flex;
    flex-direction: column;
    gap: 0.625rem;
    max-width: 100%;
}


.or {
    display: flex;
    flex-direction: row;
    align-items: center;
}

.or .or-line {
    border-bottom: 1px solid var(--bs-body-color);
    width: 100%;
    opacity: 0.2;
}

.or .or-text {
    padding: 0 0.625rem 0px 0.625rem;
    font-size: 0.75rem;
    line-height: 1.125rem;
    color: var(--bs-body-color);
    opacity: 0.7;
}

.links-area {
    display: flex;
    flex-direction: column;
    gap: 0.625rem;
    padding-top: 0.625rem;
}

.links-container {
    display: flex;
    gap: 0.25rem;
    justify-content: center;
    align-items: center;
}

.links-container .dot {
    height: 0.3125rem;
    width: 0.3125rem;
    margin: 0 0.1875rem;
    border-radius: 50%;
    background-color: var(--bs-body-color);
    opacity: 0.7;
}

.manage-layout {
    display: flex;
    flex-direction: column;
    gap: 0.625rem;
}

.info-message::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    opacity: 0.15;
    background: var(--bs-primary);
    z-index: -1;
}

.info-message {
    padding: 0.625rem 1rem 0.625rem 1rem;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.info-message.info-panel {
    margin-bottom: 0.625rem;
}

.manage-content {
    display: flex;
    flex-direction: column;
    gap: 0.625rem;
}

.large-input {
    height: 4.3125rem;
    font-size: 1.875rem;
}

.title-content-text-secondary {
    font-size: 1.25rem;
    line-height: 1.75rem;
}

.button-group {
    display: flex;
    flex-direction: row;
    gap: 0.625rem;
}

.confirm-button {
    margin-top: 0.3125rem;
}

.display-desktop {
    display: block;
}

.display-mobile {
    display: none;
}

.icon-external-provider {
    width: 1rem;
    height: 1rem;
}

.icon-google {
    background-image: url("/images/account/providers/google-logo.svg")
}

.icon-facebook {
    background-image: url("/images/account/providers/facebook-logo.svg")
}

.icon-microsoft {
    background-image: url("/images/account/providers/microsoft-logo.svg")
}

.icon-twitter {
    background-image: url("/images/account/providers/x-logo.svg")
}

@media (max-width: 768px) {
    .display-desktop {
        display: none;
    }

    .display-mobile {
        display: block;
    }
}



.custom-form-layout {
    max-height: 600px;
    /* 设置最大高度 */
    overflow-y: auto;
    /* 启用垂直滚动 */
}

.custom-form-item {
    width: 100%;
    /* 设置表单项的宽度 */
}

/***/
.dxbl-group-header {
    height: 20px;
}

.dxbl-tabs-item {
    height: 30px;
}

.dxbl-grid-toolbar-container {
    height: 10px;
}
.dxbl-grid > .dxbl-grid-toolbar-container {
    min-height: 2.5rem
}
/* 自定义CSS 以下  ----------------------- */
.dxbl-grid {
    height: calc(100vh - 120px);
    overflow-y: auto;
    --dxbl-grid-line-height: 2;
    /**表格高度*/
}

/* 树组件高度设置 */
.dxbl-treeview {
    height: auto;
    overflow-y: auto;
    /**树视图高度*/
}

.dxbl-treelist {
    height: 750px;
    overflow-y: auto;
    /**树列表高度*/
}

/* 带滚动条的树视图 */
.tree-container {
    height: 750px;
    overflow-y: auto;
}

.grid-modified-cell {
    background-color: rgba(var(--bs-primary-rgb), 0.15) !important;
}

/* 表格隔行换色 */
.header-bold span {
    font-weight: 700;
}
/* DevExpress and Bootstrap Themes */
.alt-item > td:not(.dxbl-grid-empty-cell),
.alt-item > td:not(.dxbl-grid-indent-cell) {
    background-color: color-mix(in srgb, var(--bs-gray-300), transparent 50%);
}
/* Fluent Themes */
.alt-item {
    --dxbl-grid-row-bg: var(--DS-color-surface-neutral-subdued-rest);
}

/* ============================================================
   🎯 主布局多标签页 — 标签头固定（flex 方案，无需 sticky）
   标签头不参与滚动，只有标签内容区滚动。
   ============================================================ */

/* ① DxTabs 整体：flex 纵向布局，撑满父容器 */
.tabs-container > .dxbl-tabs {
    display: flex !important;
    flex-direction: column !important;
    height: 100% !important;
    overflow: hidden !important;
}

/* ② 标签头导航栏：不缩不长，自然高度，带底线 */
.tabs-container > .dxbl-tabs > *:not(.dxbl-tabs-content-panel):not(style) {
    flex: 0 0 auto !important;
    overflow-x: auto !important;
    overflow-y: hidden !important;
    background: var(--bs-body-bg, #ffffff) !important;
    border-bottom: 1px solid var(--bs-border-color, #dee2e6) !important;
    z-index: 2 !important;
}

/* ③ 标签内容面板：占满剩余空间，独立滚动 */
.tabs-container > .dxbl-tabs > .dxbl-tabs-content-panel {
    flex: 1 1 0% !important;
    overflow-y: auto !important;
    min-height: 0 !important;           /* flex 子项收缩关键 */
}


/* Fluent Light / Dark 主题下 Modal & Popup Header 高度优化 */
.dxbl-modal .modal-header,
.dxbl-modal-header,
.dxbl-popup-header,
.dxbl-modal-header.dxbl-popup-header {
    padding-top: 0.15rem !important;
    padding-bottom: 0.15rem !important;
    min-height: unset !important;
}

/* DevExpress Popup/Window header 高度缩减 */
div[class*="dxbl-modal"] > .modal-header,
div[class*="dxbl-modal"] > div:first-child {
    padding-top: 0.15rem !important;
    padding-bottom: 0.15rem !important;
    min-height: 0 !important;
}

/* 顶部消息图标默认色（浅色主题），与公司图标一致 */
.message-icon path {
    stroke: #6366f1 !important;
}

/* 暗色主题下，顶部导航图标使用更亮的同色系，保证对比度同时保留彩色 */
.page.theme-dark .icon-company,
.page.theme-fluent-dark .icon-company,
.page.theme-blazing-dark .icon-company,
.page.theme-night .icon-company,
.page.theme-cyborg .icon-company,
.page.theme-darkly .icon-company,
.page.theme-superhero .icon-company,
.page.theme-solar .icon-company,
.page.theme-vapor .icon-company,
.page.theme-quartz .icon-company {
    background-color: #a5b4fc !important;
}
.page.theme-dark .icon-user,
.page.theme-fluent-dark .icon-user,
.page.theme-blazing-dark .icon-user,
.page.theme-night .icon-user,
.page.theme-cyborg .icon-user,
.page.theme-darkly .icon-user,
.page.theme-superhero .icon-user,
.page.theme-solar .icon-user,
.page.theme-vapor .icon-user,
.page.theme-quartz .icon-user,
.page.theme-dark .language-icon,
.page.theme-fluent-dark .language-icon,
.page.theme-blazing-dark .language-icon,
.page.theme-night .language-icon,
.page.theme-cyborg .language-icon,
.page.theme-darkly .language-icon,
.page.theme-superhero .language-icon,
.page.theme-solar .language-icon,
.page.theme-vapor .language-icon,
.page.theme-quartz .language-icon {
    background-color: #a5b4fc !important;
}
.page.theme-dark .icon-log-in,
.page.theme-fluent-dark .icon-log-in,
.page.theme-blazing-dark .icon-log-in,
.page.theme-night .icon-log-in,
.page.theme-cyborg .icon-log-in,
.page.theme-darkly .icon-log-in,
.page.theme-superhero .icon-log-in,
.page.theme-solar .icon-log-in,
.page.theme-vapor .icon-log-in,
.page.theme-quartz .icon-log-in {
    background-color: #6ee7b7 !important;
}
.page.theme-dark .message-icon path,
.page.theme-fluent-dark .message-icon path,
.page.theme-blazing-dark .message-icon path,
.page.theme-night .message-icon path,
.page.theme-cyborg .message-icon path,
.page.theme-darkly .message-icon path,
.page.theme-superhero .message-icon path,
.page.theme-solar .message-icon path,
.page.theme-vapor .message-icon path,
.page.theme-quartz .message-icon path {
    stroke: #a5b4fc !important;
}

/* 顶部工具栏按钮（菜单/公司/用户）：图标与文字之间不留间距 */
.menu-button-nav.dxbl-btn {
    --dxbl-btn-icon-spacing: 0 !important;
    gap: 0 !important;
}
.menu-button-nav.dxbl-btn > .dxbl-image,
.menu-button-nav.dxbl-btn > .icon {
    margin-right: 0 !important;
    margin-left: 0 !important;
}


/* DxGrid：数值/日期类型列默认右对齐，统一改为左对齐，与文本列保持一致。
   DevExpress 给这类单元格/表头加的是 .dxbl-align-right 类，这里限定在 .dxbl-grid
   内覆盖，避免影响 Scheduler 等其它同样使用该工具类的控件。 */
.dxbl-grid .dxbl-align-right {
    text-align: left !important;
    justify-content: flex-start !important;
}
