/* ========== 物流管理系统全局主题（参考设计稿风格） ========== */
:root {
  --navy: #16233f;
  --navy-light: #1f3154;
  --cyan: #29b6c8;
  --cyan-dark: #17a2b8;
  --cyan-grad: linear-gradient(180deg, #3ec4d6 0%, #1ba4b8 100%);
  --bg: #f2f6fa;
  --text: #1f2d3d;
  --text-sub: #5a6b7f;
  --text-muted: #8a97a8;
  --border: #e3eaf1;
}

* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); font-family: "PingFang SC", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif; color: var(--text); }

/* ---------- 整体布局：侧边栏 + 主区域 ---------- */
.lms-layout { display: flex; min-height: 100vh; }

.lms-sidebar {
  width: 210px; flex-shrink: 0; padding-top: 14px;
  background: linear-gradient(180deg, var(--navy) 0%, var(--navy-light) 100%);
  display: flex; flex-direction: column;
  max-height: 100vh; overflow-y: auto; position: sticky; top: 0;
}
.lms-brand {
  height: 64px; display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 17px; font-weight: 700; letter-spacing: 1px;
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.lms-menu { display: flex; align-items: center; gap: 10px; min-height: 48px; padding: 6px 18px;
  color: #c9d6e3; font-size: 14px; line-height: 1.4; text-decoration: none; cursor: pointer;
  border-left: 3px solid transparent; transition: background .15s; }
.lms-menu:hover { background: rgba(255,255,255,.06); color: #fff; }
.lms-menu.active { background: rgba(41,182,200,.9); color: #fff; font-weight: 500; border-left-color: #7fe3ef; }
.lms-menu svg { flex-shrink: 0; }
.lms-menu-group { padding: 16px 18px 6px; font-size: 12px; color: #7d8ea8; letter-spacing: 2px; }

.lms-main { flex: 1; display: flex; flex-direction: column; min-width: 0; }

.lms-header {
  height: 56px; background: var(--navy); position: relative;
  display: flex; align-items: center; padding: 0 24px; flex-shrink: 0;
}
.lms-header .title {
  position: absolute; left: 50%; transform: translateX(-50%);
  color: #fff; font-size: 17px; font-weight: 700; letter-spacing: 2px; white-space: nowrap;
}
.lms-header .right { margin-left: auto; display: flex; align-items: center; gap: 16px;
  color: #c9d6e3; font-size: 13px; }
.lms-header .right a, .lms-header .right .link { color: #fff; cursor: pointer; text-decoration: none; }
.lms-header .right a:hover { color: #7fe3ef; }

.lms-content { padding: 20px; flex: 1; }
.lms-crumb { font-size: 13px; color: var(--text-muted); margin-bottom: 16px; }
.lms-crumb-sep { margin: 0 6px; color: #b6c2cf; }
.lms-crumb-current { color: var(--text); font-weight: 500; }

.lms-card {
  background: #fff; border-radius: 8px; padding: 16px; margin-bottom: 16px;
  box-shadow: 0 1px 4px rgba(22,35,63,.06);
}

/* ---------- 按钮：青色渐变 ---------- */
.el-button--primary,
.el-button--primary:focus {
  background: var(--cyan-grad); border: none; color: #fff;
}
.el-button--primary:hover { opacity: .88; background: var(--cyan-grad); border: none; }
.el-button--primary.is-disabled { opacity: .45; }
.el-button--danger.is-plain { color: #f06b6b; border-color: #f06b6b; background: #fff; }
.el-button--danger.is-plain:hover { background: #fef0f0; }
.el-button:not(.el-button--primary):not(.el-button--danger) { border-color: var(--border); }

/* ---------- 表格：青色渐变表头 ---------- */
.el-table th.el-table__cell {
  background: var(--cyan-grad) !important; color: #fff;
  font-weight: 600; font-size: 13px; border-bottom: none;
}
.el-table td.el-table__cell { font-size: 13px; color: var(--text); }
.el-table .el-table__row:hover > td { background: #f0fbfc !important; }
.el-table { --el-table-border-color: var(--border); }

/* ---------- 标签 ---------- */
.el-tag { border: none; }

/* ---------- 分页 ---------- */
.el-pagination .el-pager li.is-active { background: var(--cyan-dark); color: #fff; }

/* ---------- 弹窗标题 ---------- */
.el-dialog__title { font-weight: 600; font-size: 15px; }

/* ---------- 顶部标签页 ---------- */
.el-tabs__item.is-active { color: var(--cyan-dark); }
.el-tabs__active-bar { background: var(--cyan-dark); }
.el-tabs__item:hover { color: var(--cyan-dark); }

/* ---------- 响应式：窄屏收起侧边栏为顶部菜单 ---------- */
@media (max-width: 860px) {
  .lms-layout { flex-direction: column; }
  .lms-sidebar { width: 100%; flex-direction: row; align-items: stretch; height: auto; overflow-x: auto; }
  .lms-brand { display: none; }
  .lms-menu { border-left: none; border-bottom: 3px solid transparent; white-space: nowrap; }
  .lms-menu.active { border-bottom-color: #7fe3ef; }
  .lms-header .title { position: static; transform: none; font-size: 15px; margin-right: auto; }
  .lms-content { padding: 12px; }
}
