/* sysIndex shell/theme/accelerator styles */

.sys-shell-banner {
    display: none;
    position: relative;
    z-index: 10;
    padding: 10px 20px;
    font-size: 13px;
}


.sys-shell-banner.is-visible {
    display: flex;
}

/*设置主题样式*/
.themeSetting {
    width: 0px;
    height: 992px;
    position: fixed;
    right: -310px;
    top: 0px;
    box-shadow: 0 28px 28px rgb(0 0 0 / 7%);
    z-index: var(--z-sidebar-panel);
    background: white;
    transition: 1s all;
}

.themeSetting.is-visible {
    right: 0;
    width: 310px;
}

.themeSetting-panel {
    padding: 20px;
    position: relative;
}

.themeSetting-panel div {
    width: 270px;
}

.themeSetting-title {
    font-size: 18px;
    line-height: 60px;
    height: 60px;
    border-bottom: 2px solid #eeeeee;
}

.themeSetting-close {
    color: #707070;
    position: absolute;
    top: 10px;
    right: 10px;
}

.themeSetting-layout a {
    display: inline-block;
    width: 120px;
    height: 120px;
}

.themeSetting-layout .leftLayout {
    background: url('images/layout1.png');
    background-size: 100%;
}

.themeSetting-layout .topLayout {
    background: url('images/layout2.png');
    background-size: 100%;
}

.dropdown-panel-body {
    min-height: auto;
    border-bottom: 2px solid #eee;
}

.themeSetting label {
    line-height: 40px;
    height: 40px;
}

.layoutBtn {
    display: flex;
    flex-wrap: wrap;
    border-bottom: 2px solid #eeeeee;
}

.layoutBtn a {
    position: relative;
    margin: 0 15px 30px 0;
}

.layoutBtn button {
    margin: 0 15px 30px 0;
    border: 2px solid #eeeeee;
}

.layoutBtn a i {
    position: absolute;
    bottom: 10px;
    font-size: 18px;
    right: 10px;
}

.selectBtn {
    border: 2px solid #376aea !important;
    background: white;
    color: #376aea !important;
}

.themeSettingBtn {
    text-shadow: none;
    line-height: 15px;
    font-weight: 400;
    padding: 7px 12px;
    outline: 0 !important;
    white-space: nowrap;
    display: inline-block;
    text-align: center;
    font-size: 13px;
    border-radius: 2px;
    vertical-align: middle;
    cursor: pointer;
}

.btn-selectHover {
    background-color: #376aea !important;
    color: white !important;
}

.layoutActive i {
    color: #376aea;
}

.themeSetting-scrollableHeader {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.themeSetting-close {
    cursor: pointer;
}

/*开关按钮尺寸*/

.layer-accelerator-doc {
    padding-bottom: 10px;
}

.layer-accelerator-doc-item {
    border-top: 1px solid #f0f0f0;
    padding: 12px 15px 22px 20px;
}

.layer-accelerator-doc-item-title {
    text-align: left;
    font-size: 15px;
    color: #333333;
}

.layer-accelerator-doc-item-content {
    padding-left: 5px;
}

.layer-accelerator-doc-item-content-item {
    display: flex;
    margin-top: 10px;
    height: 27px;
}

.layer-accelerator-doc-item-content-item-accelerator {
    width: 200px;
    display: flex;
}

.layer-accelerator-doc-item-content-item-key {
    background-color: #e6e6e6;
    padding: 0px 10px;
    font-size: 13px;
    border-radius: 3px;
    box-shadow: 1px 3px 0px 1px rgba(0, 0, 0, 0.15);
    height: 23px;
    color: #333333;
}

.layer-accelerator-doc-item-content-item-plus {
    width: 25px;
    height: 25px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #333333;
}

.layer-accelerator-doc-item-content-item-label {
    height: 24px;
    font-size: 14px;
    display: flex;
    align-items: center;
    color: #333333;
}

.layer-accelerator-doc-item-content-item-label .layer-form-tip-btn {
    margin-right: 0;
    margin-left: 5px;
}

/* sysIndex shell layout compatibility styles */

.J_iframe {
    min-height: calc(100vh - 80px);
}

::-webkit-scrollbar {
    width: 10px;
}

.ace-icon {
    width: 25px;
}

/*Logo图片*/
.card-item-image {
    width: 33px;
    height: 33px;
}

/*右上角导航按钮*/
.right-navbar-nav > li {
    min-width: 45px;
    display: flex;
    justify-content: center;
}

.topLayoutBody #main-menu {
    display: none;
    transition: 0.5s all;
}

/* navbar-header 透明，只隐藏汉堡按钮，企业 logo/名称保留显示 */
#main-navbar .navbar-header {
    background: transparent !important;
    border: none !important;
}
/* 桌面隐藏汉堡按钮（<768px 由 sysIndex-menu.css 移动端断点恢复显示，两条规则各自带断点，不依赖加载顺序） */
@media screen and (min-width: 768px) {
    #main-navbar .navbar-header .navbar-toggle {
        display: none !important;
    }
}
#main-navbar .navbar-header .navbar-brand {
    color: #1f2733 !important;
    font-size: 14px !important;
    line-height: 51px !important;
    padding: 0 12px 0 12px !important;
    max-width: 260px !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
    display: block !important;
}
/* 有图标时，brand 左边距由图标 margin-right 承担，自身无需再留 */
#main-navbar .navbar-header img.card-item-image + .navbar-brand {
    padding-left: 0 !important;
}
#main-navbar .navbar-header img.card-item-image {
    display: inline-block !important;
    height: 28px !important;
    width: auto !important;
    vertical-align: middle !important;
    margin: 0 6px 0 12px !important;
}

/* navbar 固定从 rail 右边(76px)开始，panel 展收不影响顶栏宽度 */
#main-navbar {
    position: fixed !important;
    left: var(--rail-w) !important;
    width: calc(100% - var(--rail-w)) !important;
    z-index: var(--z-navbar-controls) !important;
    background-color: #fff !important;
    box-shadow: none !important;
    border-bottom: 1px solid #e8eaed !important;
    transition: none !important;
}

/* topLayout 模式：navbar 恢复全宽（左侧菜单隐藏） */
.topLayoutBody #main-navbar {
    left: 0 !important;
    width: 100% !important;
    margin-bottom: 0 !important;
}

/*切换主题样式时iframe窗口高度更新*/
.topLayoutBody #content-main {
    margin-top: 0px !important;
    padding-top: 48px;
    max-height: 100vh !important;
}

.topLayoutBody body:not(.mmc) #main-wrapper {
    padding-left: 0px !important;
}

html.topLayoutBody {
    overflow: visible;
}

body.main-menu-animated.selected {
    overflow: auto;
}

.system-switch-dropdown {
    position: static;
}

#main-navbar .navbar-header {
    padding-right: 10px;
}

#left,
#main-menu-toggle,
.layer-accelerator-doc {
    display: none;
}

#content-main {
    margin-top: 46px;
    padding-top: 0px;
    max-height: calc(100vh - 46px);
    overflow: hidden;
}

.menu.select {
    background: #e1e9fc;
}

.switchery-small {
    width: 30px;
    height: 16px;
}

.switchery-small > small {
    width: 16px;
    height: 16px;
}

.fa-times-circle:hover {
    background: none !important;
    color: #707070 !important;
}

/*原本的*/
#main-navbar .navbar-collapse,
#main-navbar .navbar-collapse.collapse {
    overflow: visible !important;
}

.theme-default .dropdown-menu > li.active > a,
.theme-default .dropdown-menu > li > a:hover,
.theme-default .nav-pills > li.active > a,
.theme-default .nav-pills > li.active > a:focus,
.theme-default .nav-pills > li.active > a:hover {
    background: none !important;
    color: #376aea !important;
}

/* 已去掉 #content-main / .content-tabs 上的 Bootstrap row，无需再 !important 抹负边距 */

.theme-default.selected::-webkit-scrollbar {
    width: 0;
}

@media (min-width: 480px) {
    .mme #main-navbar .navbar-inner {
        left: 0;
    }
}

.pointer-events-none {
    pointer-events: none !important;
}

#main-navbar.fold {
    top: -42px;
}

.auto-fold-header #content-main {
    padding-top: 8px !important;
}

.auto-fold-header #content-main .J_iframe {
    min-height: calc(100vh - 40px);
}

/* sysIndex navbar overflow compatibility */
#main-navbar .right {
    overflow: visible !important;
}
