/* 全局 */
#app, body, html {width: 100%;height: 100%;background-color: #f6f8f9;font-size: 12px;}
a {color: #333;text-decoration: none;}
a:hover, a:focus {color: #000;text-decoration: none;}
a:link {text-decoration: none;}
a:-webkit-any-link {text-decoration: none;}
a,button,input,textarea{-webkit-tap-highlight-color:rgba(0,0,0,0);box-sizing: border-box;outline:none !important; -webkit-appearance: none;}
* {margin: 0;padding: 0;box-sizing: border-box;outline: none;}

/* 大布局样式 */
.aminui {display: flex;flex-flow: column;}
.aminui-wrapper {display: flex;flex:1;overflow: auto;}

/* 全局滚动条样式 */
.scrollable {-webkit-overflow-scrolling: touch;}
::-webkit-scrollbar {width: 5px;height: 5px;}
::-webkit-scrollbar-thumb {background-color: rgba(50, 50, 50, 0.3);}
::-webkit-scrollbar-thumb:hover {background-color: rgba(50, 50, 50, 0.6);}
::-webkit-scrollbar-track {background-color: rgba(50, 50, 50, 0.1);}
::-webkit-scrollbar-track:hover {background-color: rgba(50, 50, 50, 0.2);}

/* 头部 */
.adminui-header {height: 48px;color: #fff;display: flex;justify-content:space-between;}
.adminui-header-left {display: flex;align-items: center;padding-left:24px;cursor: pointer;}
.adminui-header-right {display: flex;align-items: center;padding-right:24px;}
.adminui-header .logo-bar {font-size: 22px;font-weight: bold;display: flex;align-items: center;}
.adminui-header .logo-bar .logo {margin-right: 20px;width: 32px;height: 32px;}
.adminui-header .user-bar .panel-item {color: #fff;}

/* 左侧菜单 */
.aminui-side {position: relative;;display: flex;flex-flow: column;flex-shrink:0;width:210px;background: #fff;box-shadow: 2px 0 8px 3px rgba(0, 21, 41, 0.35);transition:width 0.3s;}
.adminui-side-scroll {overflow: auto;overflow-x:hidden;flex: 1;}

.el-sub-menu.is-active .el-sub-menu__title {color: var(--el-menu-active-color);}
.el-menu-item:hover, .el-sub-menu__title:hover {background-color: transparent;color: #E64555;}
.el-sub-menu.is-opened .el-menu {background: #fcf5f5;}
.el-sub-menu.is-opened .el-menu .el-menu-item.is-active, .el-menu-item.is-active {background: #f7e0e1;font-weight: 600;}
.el-sub-menu.is-opened .el-menu .el-menu-item.is-active::before, .el-menu-item.is-active::before {position: absolute;left: 0;top: 50%;content: "";width: 8px;height: 20px;margin-top: -10px;background: var(--el-menu-active-color)}
.el-menu--collapse .el-sub-menu.is-active, .el-menu--collapse .el-menu-item.is-active {background: #f7e0e1;}
.el-menu--collapse .el-sub-menu.is-active .el-sub-menu__title::before, .el-menu--collapse .el-menu-item.is-active::before {position: absolute;left: 0;top: 50%;content: "";width: 8px;height: 20px;margin-top: -10px;background: var(--el-menu-active-color)}

.adminui-side-bottom {height:48px;box-shadow: -6px 0 8px 3px rgba(0, 21, 41, 0.35);cursor: pointer;display: flex;align-items: center;justify-content: center;color: #454f5b;}
.adminui-side-bottom i {font-size: 16px;}
.adminui-side-bottom:hover {color: var(--el-color-primary);}

.aminui-side.isCollapse {width: 48px;}
.aminui-side.isCollapse .el-menu{ --el-menu-base-level-padding: 12px;}

/* 右侧内容 */
.aminui-body {flex: 1;display: flex;flex-flow: column;}

.adminui-main {overflow: auto;background-color: #f3f6f8;flex: 1;}

/*定宽页面*/
.sc-page {width: 1230px;margin: 0 auto;}

/*溢出(...)*/
.overflow-ellipsis {overflow: hidden;white-space: nowrap;text-overflow: ellipsis;}

.aminui-main-container {
    width: 100%;padding: 15px;overflow: auto;
    .el-header {height: fit-content;margin-bottom: 15px;}
    .left-panel {line-height: 22px;font-size: 16px;font-weight: 600;}
    .aminui-main-container__query-header {
        align-items: unset;padding: 20px 15px 2px;border: none;border-radius: var(--el-border-radius-base);
        .el-form {flex-basis: 100%;
            .el-form-item.el-form-item__button .el-form-item__content {flex-wrap: nowrap;}
        }
        .el-button-group {
            display: flex;margin-left: 32px;font-size: 13px;
            .el-button+.el-button {margin-left: 12px;}
        }
        .el-button {padding: 8px 10px;border-color: var(--el-button-border-color);border-radius: var(--el-border-radius-base);}
    }
    .aminui-main-container__statistics-header {
        margin-bottom: 0;padding: 20px 0;border-bottom: none;border-radius: var(--el-border-radius-base);
        .statistics-panel {
            flex-basis: 100%;position: relative;display: flex;justify-content: space-evenly;align-items: center;
            &:not(:first-child)::before {content: "";position: absolute;left: 0;top: 25%;width: 1px;height: 50%;background: rgba(0, 0, 0, 0.15);}
            .sc-statistic {
                line-height: 30px;
                .sc-statistic-title {margin-bottom: 0;font-size: 14px;font-weight: 500;color: #555;}
                .sc-statistic-content {
                    font-size: 26px;
                    .sc-statistic-content-suffix {line-height: 22px;font-size: 14px;color: rgba(0, 0, 0, 0.45);}
                }
            }
        }
    }
    .aminui-main-container__table-main {
        height: 0;padding: 15px 15px 0;background: #fff;border-radius: var(--el-border-radius-base);
        .el-header {padding: 0;border: none;}
        .el-main.nopadding {padding: 0;}
    }
}

.aminui-main-container__dialog {
    .el-dialog__body {padding-bottom: 0;
        .sc-dialog__body {height: calc(100vh - 2 * var(--el-dialog-margin-top) - 2 * var(--el-dialog-padding-primary) - var(--el-dialog-padding-primary) - var(--el-dialog-font-line-height));}
    }
    .el-dialog__footer {display: none;}

    .aminui-main-container {padding: 0;
        .aminui-main-container__query-header {margin: 6px 0;padding: 0 15px;}
        .aminui-main-container__table-main {padding-top: 0;}
    }
}

.search-input-suffix .el-input__suffix-inner {flex-direction: row-reverse;
    .el-icon {margin-left: 0;cursor: pointer;
        &:hover {color: rgba(0, 0, 0, 0.8);}
    }
}
.sc-state {margin-left: 6px;}