* { box-sizing: border-box; }
html, body, #app { height: 100%; margin: 0; }
body { font-family: -apple-system, "Microsoft YaHei", "PingFang SC", sans-serif; background: #f0f2f5; }

.layout { height: 100vh; }
.aside { background: #304156; }
.logo {
  height: 60px; line-height: 60px; text-align: center;
  color: #fff; font-size: 18px; font-weight: 700;
  background: #2b3a4d; letter-spacing: 1px;
}
.aside .el-menu { border-right: none; }

.header {
  display: flex; align-items: center; justify-content: space-between;
  background: #fff; border-bottom: 1px solid #e6e6e6; padding: 0 20px;
}
.breadcrumb { font-size: 16px; font-weight: 600; color: #303133; }
.user-name { cursor: pointer; color: #303133; outline: none; }

.login-wrap {
  height: 100vh; display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, #1f3a5f 0%, #2b5876 100%);
}
.login-card {
  width: 380px; background: #fff; border-radius: 8px; padding: 32px 28px;
  box-shadow: 0 8px 30px rgba(0,0,0,0.2); text-align: center;
}
.login-title { font-size: 22px; font-weight: 700; color: #303133; margin-bottom: 6px; }
.login-version { font-size: 13px; font-weight: 500; color: #409eff; background: #ecf5ff; padding: 2px 8px; border-radius: 10px; margin-left: 8px; vertical-align: middle; }
.login-sub { color: #909399; font-size: 13px; margin-bottom: 22px; }
.qr-box {
  width: 200px; height: 200px; margin: 0 auto 16px; border: 1px dashed #dcdfe6;
  border-radius: 6px; display: flex; align-items: center; justify-content: center;
  color: #909399; flex-direction: column; gap: 8px;
}
.qr-box img { width: 180px; height: 180px; }
.qr-box img.qr-faded { opacity: 0.35; filter: grayscale(1); }

.file-row { display: flex; justify-content: space-between; align-items: center; padding: 8px 0; border-bottom: 1px solid #f0f0f0; }

.project-page .toolbar { display: flex; gap: 10px; margin-bottom: 14px; flex-shrink: 0; }
.project-page .search-row { display: flex; flex-wrap: wrap; gap: 8px; padding: 4px 0 10px; align-items: center; flex-shrink: 0; }

/* 打印员工完整信息弹窗：只保留描述内容 */
@media print {
  body { background: #fff !important; }
  .el-overlay, .el-dialog__header, .el-dialog__footer { display: none !important; }
  .el-dialog { box-shadow: none !important; border: none !important; width: 100% !important; max-width: 100% !important; margin: 0 !important; }
  .el-dialog__body { padding: 8px !important; }
  .el-descriptions__label, .el-descriptions__content { color: #000 !important; }
  .el-aside, .el-header, .project-page > .el-card > div:not(.el-dialog):not(.el-dialog__body) { display: none !important; }
}
.project-page .th-search .th-title { font-weight: 700; margin-bottom: 4px; color: #303133; text-align: center; width: 100%; }
.project-page .th-search { display: flex; flex-direction: column; align-items: center; text-align: center; }
.project-page .th-search .el-input,
.project-page .th-search .el-select,
.project-page .th-search .el-date-editor {
  display: inline-block !important;
  vertical-align: middle !important;
  width: 90% !important;
  margin: 0 5% !important;
}
.project-page .filter-form { background: #fafbfc; padding: 12px 12px 0; border: 1px solid #ebeef5; border-radius: 4px; }
.project-page .filter-form .el-form-item { margin-bottom: 10px; }
.project-page .filter-form .el-form-item__label { font-size: 12px; color: #606266; }
.project-page .el-table .cell { white-space: nowrap; }
.project-page .el-table th { font-weight: 600; color: #303133; }
.project-page .el-table thead th .cell { text-align: center !important; }

/* 主区域紧贴：减少 el-main 内边距 */
.el-main { padding: 12px 16px; }

/* 让列表/表单页填满主区域（除顶部 60px header 外的空间） */
.project-page { display: flex; flex-direction: column; height: calc(100vh - 60px - 24px); min-height: 0; }
.project-page > .el-card { flex: 1; min-height: 0; display: flex; flex-direction: column; resize: both; overflow: hidden; max-width: 100%; }
.project-page > .el-card > .el-card__body { flex: 1; min-height: 0; padding: 12px; display: flex; flex-direction: column; overflow: hidden; }
.project-page .el-table { flex: 1 1 0; min-height: 0; height: 100% !important; max-height: none !important; }
.project-page .el-table__inner-wrapper,
.project-page .el-table__body-wrapper { max-height: none !important; }
/* 始终显示竖直滚动条并美化 */
.project-page .el-table__body-wrapper { overflow-y: auto !important; scrollbar-width: thin; }
.project-page .el-table__body-wrapper::-webkit-scrollbar { width: 10px; }
.project-page .el-table__body-wrapper::-webkit-scrollbar-track { background: #f5f7fa; }
.project-page .el-table__body-wrapper::-webkit-scrollbar-thumb { background: #c0c4cc; border-radius: 5px; }
.project-page .el-table__body-wrapper::-webkit-scrollbar-thumb:hover { background: #909399; }
.project-page .el-pagination { flex-shrink: 0; margin-top: 8px !important; }
.project-page .toolbar { display: flex; gap: 10px; margin-bottom: 14px; flex-shrink: 0; }

/* 角色管理 - 权限点分组 */
.project-page .perm-groups { background: #fafafa; padding: 10px 14px; border-radius: 4px; max-height: 340px; overflow-y: auto; border: 1px solid #ebeef5; }
.project-page .perm-group-title { font-weight: 700; color: #303133; margin: 8px 0 4px; font-size: 13px; }
.project-page .perm-group { padding: 2px 0; }

/* 项目立项 - 现场照片上传卡片加大 */
.el-upload--picture-card, .el-upload-list--picture-card .el-upload-list__item { width: 110px !important; height: 110px !important; }
.el-upload--picture-card .el-icon { font-size: 28px !important; }

/* 项目情况区 label 按列左对齐 */
.project-status-grid .el-form-item { align-items: flex-start; margin-bottom: 8px; }
.project-status-grid .el-form-item__label { text-align: left; padding-left: 0 !important; width: auto !important; min-width: 80px; }
.project-status-grid .el-form-item__content { width: 100%; }
