html,
body,
#app,
.console {
    height: 100%;
}

body {
    margin: 0;
    background: #f0f2f5;
    color: #303133;
    font-family: "Helvetica Neue", Helvetica, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", Arial, sans-serif;
}

.console-aside {
    background: #1f2d3d;
    overflow: hidden;
    transition: width 0.2s;
}

.console-aside .el-menu {
    border-right: 0;
    height: calc(100% - 60px);
    overflow-y: auto;
}

.password-card {
    max-width: 420px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 10px;
    height: 60px;
    padding: 0 18px;
    color: #fff;
    font-size: 16px;
    font-weight: 600;
    white-space: nowrap;
}

.brand i {
    font-size: 20px;
    color: #409eff;
}

.console-header.el-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 0 20px;
    background: #fff;
    border-bottom: 1px solid #ebeef5;
}

.nav-toggle {
    font-size: 20px;
    color: #606266;
}

.header-spacer {
    flex: 1;
}

.user-trigger {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    color: #303133;
}

.user-copy {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

.user-copy strong {
    font-size: 14px;
    font-weight: 600;
}

.user-copy small {
    color: #909399;
    font-size: 12px;
}

.el-main {
    background: #f0f2f5;
}

.page-head h1 {
    margin: 0;
    font-size: 22px;
    font-weight: 600;
}

.page-head p,
.login-lead {
    margin: 6px 0 0;
    color: #909399;
}

.page-alert {
    margin: 16px 0;
}

.metric-col,
.section-col {
    margin-bottom: 16px;
}

.metric-label {
    color: #909399;
    font-size: 13px;
}

.metric-value {
    margin-top: 8px;
    font-size: 28px;
    font-weight: 600;
    line-height: 1.2;
}

.metric-hint {
    margin-top: 8px;
    color: #67c23a;
    font-size: 12px;
}

.section {
    margin-top: 0;
}

.card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.card-header small {
    color: #909399;
    font-weight: 400;
}

.trend-row {
    display: grid;
    grid-template-columns: 52px minmax(0, 1fr) 36px;
    gap: 12px;
    align-items: center;
    margin: 12px 0;
}

.trend-row .el-progress {
    line-height: 1;
}

.trend-row-wide {
    grid-template-columns: 52px minmax(0, 1fr) 28px 28px;
}

.trend-row-wide em {
    color: #67c23a;
    font-style: normal;
    text-align: right;
}

.page-tools {
    margin: 16px 0;
}

.page-link {
    max-width: 640px;
}

.jobs-filter {
    width: 220px;
}

.job-action-reset {
    color: #e6a23c;
}

.job-action-danger {
    color: #f56c6c;
}

.view-page-link {
    color: #409eff;
    margin-right: 10px;
}

.view-page-path {
    color: #909399;
    font-size: 12px;
}

.alert-detail {
    margin: 4px 0 0;
    color: #909399;
}

.hidden-form {
    position: absolute;
    width: 0;
    height: 0;
    overflow: hidden;
}

.login-page {
    min-height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px 16px;
    box-sizing: border-box;
}

.login-card {
    width: 400px;
    max-width: 100%;
}

.login-brand {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #409eff;
    font-size: 18px;
}

.login-card h1 {
    margin: 18px 0 0;
    font-size: 24px;
    font-weight: 600;
}

.login-submit {
    width: 100%;
    margin-top: 8px;
}

.record-live {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #67c23a;
    font-size: 12px;
}

.record-live i {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #67c23a;
}

.record-filters {
    display: flex;
    gap: 12px;
    align-items: center;
}

.record-event-filter {
    width: 140px;
}

.record-status {
    display: inline-flex;
    align-items: center;
    border-radius: 4px;
    padding: 0 8px;
    line-height: 22px;
    font-size: 12px;
}

.record-status.is-opened { background: #ecf5ff; color: #409eff; }
.record-status.is-success { background: #f0f9eb; color: #67c23a; }
.record-status.is-failed { background: #fef0f0; color: #f56c6c; }
.record-status.is-cancelled { background: #fdf6ec; color: #e6a23c; }
.record-status.is-pending { background: #f4f4f5; color: #909399; }

.record-row-fresh td {
    background: #f0f9eb !important;
}

.mobile-mask {
    position: fixed;
    inset: 0;
    z-index: 2000;
    background: rgba(0, 0, 0, 0.45);
}

@media (max-width: 767px) {
    .console-aside {
        position: fixed;
        z-index: 2001;
        top: 0;
        bottom: 0;
        left: 0;
        transform: translateX(-100%);
    }

    .console-aside.is-open {
        transform: translateX(0);
    }

    .user-copy,
    .user-trigger .el-icon-arrow-down {
        display: none;
    }
}
