/* ========== 全局 ========== */
[v-cloak] { display: none; }
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; height: 100%; font-family: "Helvetica Neue", Helvetica, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", Arial, sans-serif; }
#app { height: 100%; }
.mt-10 { margin-top: 10px; }
.mt-14 { margin-top: 14px; }
.mb-10 { margin-bottom: 10px; }
.mb-14 { margin-bottom: 14px; }
.cell-sub { font-size: 12px; color: #909399; line-height: 1.4; }

/* ========== 登录页 ========== */
.login-page { min-height: 100vh; display: flex; align-items: center; justify-content: center; background: linear-gradient(135deg, #1f3a5f 0%, #2d5a8e 45%, #3a7cb8 100%); }
.login-container { width: 420px; }
.login-brand { text-align: center; color: #fff; margin-bottom: 26px; }
.brand-circle { width: 64px; height: 64px; margin: 0 auto 14px; border-radius: 50%; background: rgba(255,255,255,0.14); border: 2px solid rgba(255,255,255,0.45); display: flex; align-items: center; justify-content: center; font-size: 24px; font-weight: 700; letter-spacing: 2px; }
.login-brand h1 { font-size: 22px; margin: 0 0 6px; font-weight: 600; letter-spacing: 1px; }
.login-brand p { margin: 0; font-size: 13px; opacity: 0.85; letter-spacing: 2px; }
.login-card { background: #fff; border-radius: 12px; padding: 28px 30px; min-height: 210px; display: flex; flex-direction: column; align-items: center; justify-content: center; box-shadow: 0 12px 40px rgba(0,0,0,0.25); }
.login-spinner { color: #2d5a8e; }
.login-tip { color: #606266; font-size: 14px; margin: 12px 0 0; }
.demo-title { align-self: flex-start; color: #606266; font-size: 14px; margin: 0 0 14px; font-weight: 500; }
.demo-user-list { width: 100%; max-height: 300px; overflow: auto; }
.demo-user-item { display: flex; align-items: center; gap: 10px; padding: 10px 8px; border-radius: 8px; cursor: pointer; transition: background 0.2s; }
.demo-user-item:hover { background: #f0f5fa; }
.demo-user-info { flex: 1; display: flex; flex-direction: column; line-height: 1.35; }
.demo-user-name { font-size: 14px; color: #303133; }
.demo-user-company { font-size: 12px; color: #909399; }

/* ========== 主布局 ========== */
.main-layout { height: 100vh; }
.app-aside { background: #1f2d3d; display: flex; flex-direction: column; }
.aside-logo { padding: 18px 16px; border-bottom: 1px solid rgba(255,255,255,0.08); }
.aside-logo-text { display: block; color: #fff; font-size: 16px; font-weight: 600; letter-spacing: 1px; }
.aside-logo-sub { display: block; color: rgba(255,255,255,0.55); font-size: 11px; margin-top: 3px; letter-spacing: 2px; }
.aside-menu { border-right: none; background: transparent; flex: 1; padding-top: 6px; }
.aside-menu .el-menu-item { color: rgba(255,255,255,0.72); }
.aside-menu .el-menu-item:hover { background: rgba(255,255,255,0.08); color: #fff; }
.aside-menu .el-menu-item.is-active { background: #409eff; color: #fff; }
.menu-badge { margin-left: 8px; }
.aside-user { display: flex; align-items: center; gap: 8px; padding: 12px 14px; border-top: 1px solid rgba(255,255,255,0.08); }
.aside-user-info { flex: 1; display: flex; flex-direction: column; line-height: 1.3; min-width: 0; }
.aside-user-name { color: #fff; font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.aside-user-role { color: rgba(255,255,255,0.5); font-size: 11px; }
.aside-user-more { color: rgba(255,255,255,0.6); cursor: pointer; }
.aside-user-more:hover { color: #fff; }

.app-main { background: #f0f2f5; }
.app-content { padding: 16px; overflow: auto; }

/* ========== 统计卡片 ========== */
.stat-cards { margin-bottom: 0; }
.stat-card { --accent: #409eff; background: #fff; border-radius: 10px; padding: 16px 18px; border-left: 4px solid var(--accent); box-shadow: 0 1px 4px rgba(0,0,0,0.06); margin-bottom: 14px; }
.stat-card-label { color: #909399; font-size: 13px; }
.stat-card-value { color: #303133; font-size: 26px; font-weight: 700; margin: 6px 0 2px; }
.stat-card-sub { color: #c0c4cc; font-size: 12px; }

/* ========== 待办列表 ========== */
.todo-item { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 4px; border-bottom: 1px solid #f2f3f5; cursor: pointer; }
.todo-item:last-child { border-bottom: none; }
.todo-item:hover { background: #f7f9fc; }
.todo-no { font-size: 14px; color: #303133; display: flex; align-items: center; gap: 8px; }
.todo-meta { font-size: 12px; color: #909399; margin-top: 3px; }

/* ========== 筛选栏 ========== */
.filter-bar { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }

/* ========== 导入 ========== */
.upload-tip { text-align: center; color: #909399; padding: 6px 0; }
.upload-tip p { margin: 6px 0 0; font-size: 14px; }
.upload-tip .upload-sub { font-size: 12px; color: #c0c4cc; }
.merge-summary { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 10px; }

/* ========== 图表 ========== */
.chart-box { width: 100%; height: 320px; }

/* ========== 统计报表明细 ========== */
.stat-total-row { font-weight: 700; background: #f5f7fa !important; }
.stat-total-row td { color: #303133 !important; }

/* ========== 工单详情 ========== */
.detail-actions { display: flex; gap: 10px; margin-top: 16px; flex-wrap: wrap; }
.detail-timeline { margin-top: 6px; max-height: 380px; overflow: auto; padding-right: 6px; }
.tl-head { display: flex; align-items: center; gap: 8px; }
.tl-fromto { font-size: 13px; color: #606266; }
.tl-note { font-size: 13px; color: #909399; margin-top: 5px; line-height: 1.5; }

/* ========== 系统管理 ========== */
.map-tag { margin: 2px 3px 2px 0; }
.map-editor { width: 100%; }
.map-row { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }
.map-col { width: 110px; color: #606266; font-size: 13px; }

/* ========== 深色主题适配(Element Plus 默认亮色,保持亮色内容区) ========== */
.el-card { border-radius: 8px; }
.el-table { --el-table-header-bg-color: #f5f7fa; }
