/* JOOM ERP 自定义样式 */
html, body, #app { height: 100%; margin: 0; padding: 0; }
body { font-family: "Helvetica Neue", Arial, "PingFang SC", "Microsoft YaHei", sans-serif; background: #f5f7fa; }

.login-wrap { display: flex; align-items: center; justify-content: center; height: 100%;
  background: linear-gradient(135deg, #1f2d3d 0%, #2b4a6f 60%, #3a7bd5 100%); }
.login-card { width: 400px; padding: 36px 32px; background: #fff; border-radius: 12px;
  box-shadow: 0 12px 40px rgba(0,0,0,.25); }
.login-title { text-align: center; font-size: 22px; font-weight: 600; color: #1f2d3d; margin: 0 0 6px; }
.login-sub { text-align: center; color: #909399; font-size: 13px; margin-bottom: 24px; }

.layout { height: 100vh; display: flex; }
.aside { background: #1f2d3d; color: #cfd8e3; width: 210px; flex-shrink: 0; display: flex; flex-direction: column;
  transition: width .2s ease; overflow: hidden; }
.layout.aside-collapsed .aside { width: 64px; }
.aside .logo { color: #fff; font-size: 17px; font-weight: 700; padding: 18px 16px; letter-spacing: 1px;
  border-bottom: 1px solid rgba(255,255,255,.08); white-space: nowrap; overflow: hidden; text-align: center; }
.aside .el-menu { border-right: none; flex: 1; overflow-y: auto; overflow-x: hidden; }
.aside-toggle { display: flex; align-items: center; justify-content: center; padding: 12px 8px; cursor: pointer;
  color: #a8b3c0; border-top: 1px solid rgba(255,255,255,.08); user-select: none; white-space: nowrap; }
.aside-toggle:hover { color: #fff; background: rgba(255,255,255,.06); }
.main { flex: 1; display: flex; flex-direction: column; min-width: 0; }
.header { background: #fff; display: flex; align-items: center; justify-content: space-between;
  padding: 0 20px; height: 56px; box-shadow: 0 1px 4px rgba(0,21,41,.08); z-index: 5; }
.header .right { display: flex; align-items: center; gap: 16px; }
.user-phone-link { color: #606266; cursor: pointer; }
.user-phone-link:hover { color: #3a7bd5; }
.content { flex: 1; overflow: auto; padding: 16px; }

.toolbar { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 12px; }
.toolbar .grow { flex: 1; }
.pager { display: flex; justify-content: flex-end; margin-top: 12px; }
.card { background: #fff; border-radius: 8px; padding: 16px; }

.stat-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 12px; margin-bottom: 16px; }
.stat-card { background: #fff; border-radius: 8px; padding: 16px 20px; }
.stat-card .num { font-size: 26px; font-weight: 700; color: #1f2d3d; }
.stat-card .label { color: #909399; font-size: 13px; margin-top: 4px; }

.img-thumb { width: 56px; height: 56px; border-radius: 6px; object-fit: cover; border: 1px solid #ebeef5; background: #fafafa; cursor: zoom-in; }
.desc-html { max-height: 500px; overflow: auto; border: 1px solid #ebeef5; border-radius: 6px; padding: 10px; background: #fafafa; }
.desc-html img { max-width: 100%; }
.error-pre { white-space: pre-wrap; word-break: break-all; font-size: 12px; color: #c0392b; margin: 0; }

.quick-card { cursor: pointer; transition: all .2s; }
.quick-card:hover { transform: translateY(-2px); box-shadow: 0 6px 18px rgba(31,45,61,.12); }
.quick-title { font-weight: 600; font-size: 15px; margin-top: 8px; color: #1f2d3d; }
.quick-sub { color: #909399; font-size: 12px; margin-top: 4px; }
.dl-box { background: #f7f9fc; border: 1px solid #ebeef5; border-radius: 8px; padding: 14px 16px; height: 100%; box-sizing: border-box; }
.bind-guide { margin: 0; padding-left: 18px; color: #606266; font-size: 13px; line-height: 1.9; }
.bind-guide .redirect-line { margin-top: 4px; display: flex; align-items: center; gap: 8px; }
.bind-guide .redirect-line code { background: #f0f2f5; border: 1px solid #ebeef5; border-radius: 4px; padding: 2px 8px; font-size: 12px; word-break: break-all; }
