/* 运小二 · 智慧物流平台 样式 */
* { margin: 0; padding: 0; box-sizing: border-box; }
html, body, #app { height: 100%; font-family: 'PingFang SC', 'Microsoft YaHei', 'Helvetica Neue', Arial, sans-serif; }

/* ============ 登录页（官网 tencheer 同款视觉，登录逻辑保持现有） ============ */
.lg-page { position: relative; min-height: 100%; background: #050a14; color: #e9f2ff; overflow-x: hidden; }
.lg-bg { position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background:
    radial-gradient(900px 600px at 78% -8%, rgba(37,99,235,.18), transparent 65%),
    radial-gradient(700px 500px at 0% 30%, rgba(34,211,238,.07), transparent 70%),
    radial-gradient(800px 600px at 95% 85%, rgba(59,130,246,.08), transparent 70%),
    #050a14; }
.lg-bg::after { content: ""; position: absolute; inset: 0; opacity: .4;
  background-image: linear-gradient(rgba(120,170,230,.045) 1px, transparent 1px), linear-gradient(90deg, rgba(120,170,230,.045) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: linear-gradient(to bottom, #000, transparent 85%); mask-image: linear-gradient(to bottom, #000, transparent 85%); }
.lg-shell { position: relative; z-index: 1; width: min(1120px, calc(100% - 48px)); margin: 0 auto;
  min-height: 100vh; display: grid; grid-template-columns: 1fr 430px; gap: 64px; align-items: center; padding: 48px 0; }
.lg-badge { display: inline-flex; align-items: center; gap: 10px; padding: 7px 14px 7px 8px; border-radius: 999px;
  border: 1px solid rgba(126,171,224,.28); background: rgba(16,30,48,.7); font-size: 12px; color: #93a8c4; margin-bottom: 26px; }
.lg-badge b { background: rgba(34,211,238,.14); color: #22d3ee; padding: 3px 9px; border-radius: 999px; font-size: 11px; letter-spacing: .06em; }
.lg-left h1 { font-size: clamp(34px, 4.2vw, 54px); font-weight: 800; letter-spacing: -.02em; line-height: 1.22; }
.lg-left h1 .line { display: block; }
.lg-left h1 em { font-style: normal; background: linear-gradient(100deg, #60a5fa, #22d3ee 60%, #7dd3fc);
  -webkit-background-clip: text; background-clip: text; color: transparent; }
.lg-desc { margin-top: 22px; color: #93a8c4; font-size: 15px; max-width: 560px; line-height: 1.9; }
.lg-desc b { color: #e9f2ff; font-weight: 600; }
.lg-points { display: flex; gap: 20px; margin-top: 36px; flex-wrap: wrap; }
.lg-points div { display: flex; align-items: center; gap: 8px; font-size: 13px; color: #93a8c4; }
.lg-points div::before { content: "✓"; color: #34d399; font-weight: 700; }
.lg-foot { margin-top: 56px; font-size: 12px; color: #647c98; letter-spacing: .06em; }
.lg-card { position: relative; padding: 28px 28px 22px; border-radius: 18px;
  background: linear-gradient(165deg, rgba(20,38,60,.96), rgba(9,18,31,.98));
  border: 1px solid rgba(120,175,240,.22); box-shadow: 0 24px 70px rgba(0,0,0,.45); }
.lg-card::before { content: ""; position: absolute; inset: -1px; border-radius: 18px; padding: 1px; pointer-events: none;
  background: linear-gradient(140deg, rgba(59,130,246,.5), transparent 40%, transparent 60%, rgba(34,211,238,.35));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude; }
.lg-card-top { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 18px; }
.lg-card-top h3 { font-size: 20px; font-weight: 700; color: #e9f2ff; }
.lg-card-top p { font-size: 11px; letter-spacing: .2em; color: #647c98; margin-top: 4px; }
.lg-live { display: flex; align-items: center; gap: 7px; font-size: 11px; color: #34d399; }
.lg-live i { width: 7px; height: 7px; border-radius: 50%; background: #34d399; box-shadow: 0 0 0 4px rgba(52,211,153,.14); animation: lg-pulse 2s infinite; }
@keyframes lg-pulse { 50% { box-shadow: 0 0 0 8px rgba(52,211,153,0); } }
.lg-card .el-input__wrapper { background: rgba(4,11,21,.7); box-shadow: 0 0 0 1px rgba(126,171,224,.14) inset; border-radius: 9px; height: 44px; }
.lg-card .el-input__wrapper.is-focus { box-shadow: 0 0 0 1px rgba(59,130,246,.7) inset, 0 0 0 3px rgba(59,130,246,.1) !important; }
.lg-card .el-input__inner { color: #e9f2ff; }
.lg-card .el-input__inner::placeholder { color: #526880; }
.lg-card .el-input__prefix .el-icon { color: #647c98; }
.lg-card .el-form-item { margin-bottom: 16px; }
.lg-acct-tip { --el-alert-bg-color: rgba(34,211,238,.06); --el-alert-border-color: rgba(34,211,238,.18);
  --el-alert-text-color: #93a8c4; --el-alert-title-color: #e9f2ff; margin-bottom: 16px; }
.lg-btn.el-button { width: 100%; height: 46px; border-radius: 9px; border: 0; font-weight: 700; font-size: 15px;
  background-color: #3b82f6; background-image: linear-gradient(135deg, #3b82f6, #22d3ee);
  color: #04101f; box-shadow: 0 10px 26px rgba(59,130,246,.25);
  --el-button-hover-bg-color: #2563ab; --el-button-active-bg-color: #1d4ed8; }
.lg-btn.el-button:hover { transform: translateY(-2px); box-shadow: 0 14px 32px rgba(59,130,246,.4); }
.lg-links { display: flex; justify-content: space-between; align-items: center; margin-top: 16px; padding-top: 14px; border-top: 1px solid rgba(126,171,224,.14); }
.lg-links .el-button + .el-button { margin-left: 0; }
.lg-note { margin-top: 12px; font-size: 11px; color: #4f6580; text-align: center; }
@media (max-width: 960px) {
  .lg-shell { grid-template-columns: 1fr; gap: 36px; padding-top: 60px; }
  .lg-left h1 { font-size: 30px; }
  .lg-card { max-width: 440px; width: 100%; }
}

/* 旧版登录样式（平台登录/注册页仍引用部分类名） */
.login-wrap { position: relative; height: 100%; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.login-bg { position: absolute; inset: 0; background: linear-gradient(135deg, #1d2535 0%, #2563ab 45%, #409eff 100%); }
.login-bg::after { content: ''; position: absolute; inset: 0; background:
  radial-gradient(circle at 20% 30%, rgba(255,255,255,.08) 0, transparent 40%),
  radial-gradient(circle at 80% 70%, rgba(255,255,255,.06) 0, transparent 45%); }
.login-card { position: relative; width: 400px; border-radius: 14px; padding: 8px 12px; }
.login-logo { text-align: center; margin-bottom: 18px; }
.login-logo h2 { margin: 10px 0 4px; color: #1d2535; letter-spacing: 2px; }
.login-logo p { color: #909399; font-size: 13px; }
.login-btn { width: 100%; letter-spacing: 8px; font-size: 16px; }
.login-foot { margin-top: 14px; text-align: center; color: #c0c4cc; font-size: 12px; }
.main-layout { height: 100%; }
.aside { background: #1d2535; display: flex; flex-direction: column; }
.brand { height: 56px; display: flex; align-items: center; justify-content: center; gap: 8px; color: #fff; font-size: 18px; font-weight: 600; letter-spacing: 2px; border-bottom: 1px solid rgba(255,255,255,.08); }
.menu { border-right: none !important; flex: 1; }
.menu .el-menu-item { height: 48px; }
.menu .el-menu-item.is-active { background: #409eff !important; }
.aside-foot { padding: 14px; }
.ai-btn { width: 100%; }
.header { display: flex; align-items: center; justify-content: space-between; background: #fff; border-bottom: 1px solid #ebeef5; }
.crumb { color: #303133; font-weight: 500; }
.header-right { display: flex; align-items: center; gap: 10px; }
.user-chip { display: inline-flex; align-items: center; gap: 6px; cursor: pointer; color: #303133; outline: none; }
.main { background: #f4f6fa; padding: 10px; overflow: hidden; display: flex; }
.main > * { flex: 1; min-width: 0; }
.crud-page { height: 100%; display: flex; flex-direction: column; min-height: 0; }

/* ============ 通用列表组件 TmsGrid ============ */
.tms-grid { flex: 1; display: flex; flex-direction: column; min-height: 0; background: #fff; border-radius: 10px; box-shadow: 0 1px 4px rgba(16, 32, 64, .06); padding: 8px 10px; }

/* ============ 表格紧凑化（全局） ============ */
.el-table { font-size: 12px; }
.el-table .el-table__cell { padding: 4px 0; }
.el-table .cell { padding: 0 8px; }
/* 操作列：宽度随内容自适应（TmsGrid 动态实测），按钮不换行 */
.tg-ops-col .cell { white-space: nowrap; padding: 0 4px; }
.tg-ops-col .el-button + .el-button { margin-left: 4px; }
.tg-top { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 10px; }
.tg-top-left { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.tg-top > .tg-tools { display: flex; gap: 8px; align-items: center; margin-left: auto; }
.tg-body { flex: 1; min-height: 0; }
/* 表头两行：第一行 标题 + 排序图标，第二行 筛选输入框 */
.tg-table .el-table__header th.is-sortable > .cell { display: flex; flex-wrap: wrap; align-items: center; column-gap: 2px; row-gap: 4px; padding-top: 3px; padding-bottom: 3px; }
.tg-table .tg-head { display: contents; }
.tg-table .tg-th { display: inline-flex; align-items: center; gap: 3px; order: 1; flex: 0 0 auto; white-space: nowrap; font-weight: 600; }
.tg-table .caret-wrapper { order: 2; flex: 0 0 auto; }
.tg-table .tg-head-input { order: 3; flex: 0 0 100%; }
.tg-head-input .el-input__wrapper { border-radius: 3px; box-shadow: 0 0 0 1px #dcdfe6 inset; padding: 1px 6px; min-height: 22px; }
.tg-head-input .el-input__inner { height: 20px; font-size: 12px; }
.tg-head-input.is-focus .el-input__wrapper { box-shadow: 0 0 0 1px #2563eb inset; }
/* 序号列表头：第一行标题，第二行「重置」按钮，与普通列表头两行对齐 */
.tg-idx-head { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; width: 100%; }
.tg-idx-title { font-weight: 600; white-space: nowrap; }
.tg-reset.el-button { font-size: 11px; height: 20px; padding: 0 2px; }
/* 日期 / 数值 / 状态列的筛选触发器（代替输入框） */
.tg-head-trigger { order: 3; flex: 0 0 100%; display: flex; align-items: center; justify-content: space-between;
  min-height: 22px; padding: 1px 6px; border-radius: 3px; box-shadow: 0 0 0 1px #dcdfe6 inset;
  background: #fff; font-size: 12px; color: #909399; cursor: pointer; user-select: none; }
.tg-head-trigger:hover { box-shadow: 0 0 0 1px #2563eb inset; }
.tg-head-trigger.is-active { color: #2563eb; box-shadow: 0 0 0 1px #2563eb inset; background: #ecf5ff; }
.tg-head-trigger .tg-trigger-txt { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tg-head-trigger .el-icon { font-size: 11px; flex: 0 0 auto; }
/* 表头筛选弹框 */
.tg-filter-pop.el-popover { padding: 10px 12px; }
.tg-fp-title { font-size: 13px; font-weight: 600; color: #303133; margin-bottom: 10px; padding-bottom: 8px; border-bottom: 1px solid #ebeef5; }
.tg-fp-row { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; }
.tg-fp-row > span { flex: 0 0 56px; font-size: 12px; color: #606266; text-align: right; }
.tg-fp-row > .el-input, .tg-fp-row > .el-date-editor { flex: 1; min-width: 0; }
.tg-fp-bar { display: flex; justify-content: space-between; border-bottom: 1px solid #ebeef5; margin-bottom: 6px; }
.tg-fp-bar .el-button { font-size: 12px; }
.tg-fp-checks { display: flex; flex-direction: column; max-height: 220px; overflow-y: auto; }
.tg-fp-checks .el-checkbox { margin-right: 0; height: 28px; }
.tg-fp-count { color: #a8abb2; font-size: 11px; margin-left: 6px; }
.tg-fp-btns { display: flex; justify-content: flex-end; gap: 8px; margin-top: 12px; padding-top: 10px; border-top: 1px solid #ebeef5; }
.tg-summary { border: 1px solid #e8edf5; border-top: none; background: #f8fafc; height: 34px; display: flex; align-items: center; overflow: hidden; font-size: 12px; color: #42506b; flex-shrink: 0; }
.tg-summary-inner { display: flex; align-items: center; }
.tg-summary-cell { padding: 0 10px; flex-shrink: 0; line-height: 32px; }
.tg-summary-cell.idx { width: 48px; text-align: center; font-weight: 600; color: #2563eb; position: sticky; left: 0; z-index: 2; background: inherit; }
.tg-pager { padding-top: 10px; display: flex; justify-content: flex-end; flex-shrink: 0; }
.tg-tip { font-size: 12px; color: #8a94a6; margin-bottom: 10px; line-height: 1.6; }
.tg-col-row { display: flex; align-items: center; gap: 6px; padding: 5px 0; border-bottom: 1px dashed #f0f2f7; }
.tg-col-row .tg-col-name { flex: 1; font-size: 13px; color: #303133; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tg-exp-row { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; flex-wrap: wrap; }
.tg-exp-cols { max-height: 300px; overflow-y: auto; border: 1px solid #f0f2f7; border-radius: 6px; padding: 4px 10px; }

.dash-time { float: right; font-size: 12px; color: #98a3b5; font-weight: 400; }
.tab-icon { font-size: 13px; color: #8a94a6; margin-right: 2px; }
.tab-item.active .tab-icon { color: #2563eb; }

/* 公司信息 / 数据导入页面 */
.company-card { width: 100%; height: 100%; overflow-y: auto; }
.company-body { max-width: 100%; }
.company-group { font-size: 13px; font-weight: 600; color: #2563eb; border-left: 3px solid #2563eb; padding-left: 8px; margin: 6px 0 12px; }
.company-body .el-form-item { margin-bottom: 12px; }
.card-title { font-weight: 600; color: #1f2d3d; }
.import-card { width: 100%; height: 100%; overflow-y: auto; }
.import-step { margin-bottom: 18px; }
.step-title { font-size: 13px; font-weight: 600; color: #42506b; margin-bottom: 8px; }
.import-file { font-size: 13px; }
.import-fname { margin-left: 10px; color: #2563eb; font-size: 12px; }
.import-warn { font-size: 12px; color: #e6a23c; margin-bottom: 8px; }
.import-ok { margin-top: 10px; font-size: 13px; color: #16a34a; }
.import-err { color: #ef4444; }
.mt14 { margin-top: 14px; }
.mt0 { margin-bottom: 0; }
.card-title { font-weight: 600; color: #303133; }
.stat-card .num { font-size: 30px; font-weight: 700; color: #303133; }
.stat-card .num.fee { color: #67c23a; }
.stat-card .num.warn { color: #e6a23c; }
.stat-card .num.ok { color: #409eff; }
.stat-card .lbl { color: #909399; font-size: 13px; margin-top: 4px; }
.fee { color: #f56c6c; }
.filter-card .el-form-item { margin-bottom: 0; }
.insight-item { margin-bottom: 10px; }
.ai-messages { flex: 1; overflow-y: auto; padding: 6px 4px; height: calc(100% - 60px); }
.ai-welcome { text-align: center; padding: 40px 20px; color: #909399; }
.ai-welcome p { margin: 12px 0 20px; line-height: 1.7; }
.ai-chips { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.ai-chip { cursor: pointer; }
.ai-msg { display: flex; margin-bottom: 12px; }
.ai-msg.user { justify-content: flex-end; }
.ai-msg .bubble { max-width: 85%; padding: 9px 12px; border-radius: 10px; font-size: 13.5px; line-height: 1.65; white-space: pre-wrap; word-break: break-all; }
.ai-msg.user .bubble { background: #409eff; color: #fff; border-top-right-radius: 2px; }
.ai-msg.assistant .bubble { background: #f4f6fa; color: #303133; border-top-left-radius: 2px; }
.ai-input-bar { display: flex; gap: 8px; padding-top: 10px; border-top: 1px solid #ebeef5; }
.el-drawer.ai-drawer .el-drawer__body { display: flex; flex-direction: column; height: 100%; }

/* ===== 版本记录抽屉 ===== */
.ver-cur { display: flex; align-items: baseline; gap: 10px; padding: 10px 14px; margin-bottom: 14px;
  background: #f0f9eb; border: 1px solid #d1edc4; border-radius: 8px; font-size: 13px; color: #4d7c3a; }
.ver-cur b { font-size: 16px; color: #67c23a; }
.ver-cur-date { color: #909399; font-size: 12px; }
.ver-list { border-top: none; }
.ver-head { display: flex; align-items: center; gap: 8px; width: 100%; min-width: 0; }
.ver-tag { flex: 0 0 auto; background: #2563eb; color: #fff; font-size: 11px; font-weight: 600;
  padding: 1px 7px; border-radius: 10px; line-height: 18px; }
.ver-title { flex: 1 1 auto; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  font-size: 13px; font-weight: 600; color: #303133; }
.ver-date { flex: 0 0 auto; font-size: 11px; color: #a8abb2; }
.ver-items { margin: 0; padding: 0 0 4px 4px; list-style: none; }
.ver-items li { position: relative; padding: 5px 0 5px 14px; font-size: 12.5px; color: #606266; line-height: 1.6; }
.ver-items li::before { content: ''; position: absolute; left: 2px; top: 12px; width: 5px; height: 5px;
  border-radius: 50%; background: #c0c4cc; }
.el-collapse.ver-list .el-collapse-item__header { padding-left: 2px; }

/* ===== 回单照片链接（TmsGrid photoCol） ===== */
.tg-photo-link { color: #2563eb; cursor: pointer; }
.tg-photo-link:hover { text-decoration: underline; }
.tg-photo-link.no-photo { color: #a8abb2; cursor: default; }
/* 照片弹框 */
.photo-wall { display: flex; flex-wrap: wrap; gap: 12px; }
.photo-item { width: 200px; height: 200px; overflow: hidden; border-radius: 6px; background: #f5f7fa; cursor: pointer; }
.photo-wall .el-image { width: 200px; height: 200px; transition: transform .2s; }
.photo-err { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center;
  font-size: 12px; color: #c0c4cc; }

/* ===== 订单登记：发货方/收货方下拉四列合并（名称|联系人|电话|地址） ===== */
.cust-opt { display: flex; align-items: center; gap: 8px; min-width: 0; width: 100%; }
.cust-opt .co-name { flex: 0 0 auto; max-width: 46%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  font-weight: 600; color: #303133; }
.cust-opt .co-sub { flex: 0 0 auto; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  font-size: 12px; color: #909399; }
.cust-opt .co-addr { flex: 1 1 auto; min-width: 0; }
/* 自定义大图预览（支持角度记忆） */
.photo-viewer { position: fixed; inset: 0; z-index: 3200; background: rgba(0, 0, 0, .82);
  display: flex; flex-direction: column; align-items: center; justify-content: center; }
.pv-bar { position: absolute; top: 16px; left: 50%; transform: translateX(-50%); display: flex;
  align-items: center; gap: 8px; padding: 8px 14px; background: rgba(255, 255, 255, .12); border-radius: 8px; }
.pv-count { color: #fff; font-size: 13px; margin-right: 6px; }
.pv-img { max-width: 88vw; max-height: 82vh; object-fit: contain; transition: transform .2s; user-select: none; }

/* ===== 跟踪时间线 ====== */
.track-timeline { padding-left: 4px; }
.track-timeline .track-detail { color: #8492a6; font-size: 12px; margin-top: 2px; }
.mt8 { margin-top: 8px; }
/* ===== 二级菜单与上传按钮 ====== */
.menu .el-sub-menu .el-menu { background-color: #16202e; }
.menu .el-sub-menu .el-menu .el-menu-item { padding-left: 44px !important; font-size: 13px; }
.menu .el-sub-menu .el-sub-menu__title:hover, .menu .el-menu-item:hover { background-color: #2a3b55; }
.upload-btn { display: inline-block; margin: 0 12px; }
/* ===== 运单登记单版面（复刻 order_record_view 排版） ===== */
.order-form { width: 100%; }
.oblock { background: #fff; border: 1px solid #e4e9f2; border-radius: 4px; margin-top: 10px; }
.oblock-title { display: flex; align-items: center; gap: 6px; padding: 7px 12px; background: #f5f7fa; border-bottom: 1px solid #e4e9f2; font-weight: 600; font-size: 13px; color: #303133; }
/* 费用结算等多行区域：统一栅格列宽 + 统一标签宽度，保证上下行逐列对齐 */
.oblock .ogrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 8px 12px; padding: 10px 12px 8px; align-items: center; }
.oblock .ogrid .oitem { display: flex; align-items: center; gap: 6px; margin: 0; min-width: 0; }
.oblock .ogrid .oitem > label { flex: 0 0 72px; width: 72px; text-align: right; }
.oblock .ogrid .oitem > .el-input { flex: 1 1 auto; min-width: 0; }
.oblock .ogrid .oitem-wide { grid-column: span 2; }
.oitem { display: flex; align-items: center; gap: 4px; margin-bottom: 8px; }
.oitem > label { font-size: 12.5px; color: #606266; white-space: nowrap; }
.oitem > label.req::before { content: '*'; color: #f56c6c; margin-right: 2px; }
.oitem .el-input-number .el-input__inner { text-align: left; }
.otwo { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 10px; }
.otwo .oblock { margin-top: 0; }
.ovform { display: grid; grid-template-columns: 1fr 1fr; gap: 2px 14px; padding: 8px 12px 4px; }
.ovform .oitem { margin-bottom: 6px; }
.ovform .oitem > label { min-width: 62px; }
.otable { width: 100%; border-collapse: collapse; }
.otable th { background: #f5f7fa; font-size: 12px; color: #606266; font-weight: 600; padding: 6px 4px; border-bottom: 1px solid #e4e9f2; white-space: nowrap; }
.otable td { padding: 4px 3px; border-bottom: 1px solid #f0f2f7; }
.otable .el-select { width: 100%; }
.otable .osum td { background: #fafbfd; font-weight: 600; color: #303133; padding: 7px 4px; border-top: 1px solid #e4e9f2; border-bottom: none; }
.obtn-bar { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 10px; background: #fff; border: 1px solid #e4e9f2; border-radius: 4px; padding: 10px 14px; margin: 12px 0 20px; position: sticky; bottom: 8px; box-shadow: 0 -2px 10px rgba(0,0,0,.06); z-index: 5; }
.obtn-right { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; }
.print-opt { font-size: 12.5px; color: #606266; display: inline-flex; align-items: center; gap: 3px; margin-left: 10px; cursor: pointer; }
.print-opt input { accent-color: #409eff; cursor: pointer; }
/* ===== 侧栏自定义菜单（二级弹框模式） ===== */
.nav-menu { flex: 1; overflow-y: auto; padding: 6px 0; }
.nav-item { display: flex; align-items: center; gap: 10px; padding: 0 15px; height: 46px; color: #aeb6c5; cursor: pointer; font-size: 14px; user-select: none; position: relative; border-left: 3px solid transparent; transition: background .15s ease, color .15s ease; }
.nav-item:hover { background: #2a3b55; color: #fff; }
.nav-item.active { background: linear-gradient(90deg, #1f6feb, #3b82f6); color: #fff; border-left-color: #8ec2ff; }
.nav-item .el-icon { font-size: 16px; }
.nav-item .nav-arrow { margin-left: auto; font-size: 12px; opacity: .55; }
.submenu { max-height: 62vh; overflow-y: auto; margin: -6px -12px; padding: 4px 0; }
.submenu-item { display: flex; align-items: center; gap: 9px; padding: 9px 16px; font-size: 13px; color: #42506b; cursor: pointer; white-space: nowrap; border-left: 2px solid transparent; transition: all .15s ease; }
.submenu-item .el-icon { color: #9aa7bd; font-size: 14px; transition: color .15s ease; flex-shrink: 0; }
.submenu-item:hover { background: #f0f7ff; color: #2563eb; }
.submenu-item:hover .el-icon { color: #2563eb; }
.submenu-item.active { background: #f0f7ff; color: #2563eb; font-weight: 600; border-left-color: #2563eb; }
.submenu-item.active .el-icon { color: #2563eb; }
.submenu-pop { padding: 6px 12px !important; border-radius: 8px !important; box-shadow: 0 6px 24px rgba(16, 32, 64, .12) !important; border: 1px solid #e8edf5 !important; }

/* ===== 多页签 ===== */
.tab-bar { display: flex; align-items: center; gap: 6px; background: #fff; padding: 5px 10px; border-bottom: 1px solid #ebeef5; overflow-x: auto; flex-shrink: 0; }
.tab-item { display: inline-flex; align-items: center; gap: 6px; padding: 4px 12px; font-size: 12.5px; color: #606266; border: 1px solid #e4e9f2; border-radius: 3px; cursor: pointer; white-space: nowrap; background: #f7f9fc; user-select: none; }
.tab-item:hover { color: #409eff; border-color: #c6e2ff; }
.tab-item.active { background: #409eff; border-color: #409eff; color: #fff; }
.tab-close { font-size: 12px; border-radius: 50%; padding: 1px; flex-shrink: 0; }
.tab-close:hover { background: rgba(0,0,0,.18); color: #fff; }
.tab-ops { margin-left: auto; flex-shrink: 0; }
.tab-ops-btn { display: inline-flex; align-items: center; justify-content: center; width: 26px; height: 26px; border: 1px solid #e4e9f2; border-radius: 3px; cursor: pointer; color: #606266; background: #f7f9fc; outline: none; }
.tab-ops-btn:hover { color: #409eff; border-color: #c6e2ff; }

/* ===== order grid pages ===== */
.og-page { height: 100%; display: flex; flex-direction: column; min-height: 0; }
.og-date { font-size: 12.5px; color: #606266; margin-right: 2px; }
.og-date-sep { color: #909399; margin: 0 2px; }
.og-sub { font-size: 13px; font-weight: 600; color: #303133; margin: 12px 0 6px; }
.og-print-tip { font-size: 12.5px; color: #606266; margin-bottom: 12px; }
.og-import-result { height: 430px; display: flex; flex-direction: column; }
.og-import-result .tms-grid { flex: 1; min-height: 0; }
.og-page .el-drawer__body h4.og-sub:first-child { margin-top: 0; }

/* ===== 调度单登记（非列表页）：多行内容统一列宽，上下行逐列对齐 ===== */
.dg-page { height: 100%; display: flex; flex-direction: column; min-height: 0; overflow-y: auto; padding: 8px 10px 20px; }
.dg-block { background: #fff; border: 1px solid #e4e9f2; border-radius: 4px; margin-bottom: 10px; flex-shrink: 0; }
.dg-block-title { display: flex; align-items: center; gap: 6px; padding: 7px 12px; background: #f5f7fa; border-bottom: 1px solid #e4e9f2; font-weight: 600; font-size: 13px; color: #303133; }
.dg-block-title .dg-count { margin-left: 12px; font-weight: 400; font-size: 12px; color: #909399; }
.dg-tools { margin-left: auto; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.dg-tools .el-radio-group { flex-shrink: 0; }
.dgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 10px 16px; padding: 12px; align-items: center; }
.dgrid .ditem { display: flex; align-items: center; gap: 8px; min-width: 0; }
.dgrid .ditem > label { flex: 0 0 88px; width: 88px; text-align: right; font-size: 12.5px; color: #606266; white-space: nowrap; }
.dgrid .ditem > label.req::before { content: '*'; color: #f56c6c; margin-right: 2px; }
.dgrid .ditem > .el-input, .dgrid .ditem > .el-select, .dgrid .ditem > .el-input-number, .dgrid .ditem > .el-date-editor { flex: 1 1 auto; min-width: 0; }
.dgrid .ditem-wide { grid-column: span 2; }
.dgrid .ditem .el-input-number { width: 100%; }
.dg-stock { height: 300px; display: flex; flex-direction: column; }
.dg-tslist { height: 320px; display: flex; flex-direction: column; }
.dg-stock .tms-grid, .dg-tslist .tms-grid { flex: 1; min-height: 0; }
.dg-selected { padding: 0 12px 12px; }
.dg-selected .el-table { --el-table-border-color: #e4e9f2; }
.dg-bar { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 10px; background: #fff; border: 1px solid #e4e9f2; border-radius: 4px; padding: 10px 14px; margin-bottom: 10px; flex-shrink: 0; box-shadow: 0 2px 10px rgba(16,32,64,.05); }
.dg-bar-left { font-size: 12.5px; color: #606266; }
.dg-bar-left b { color: #f56c6c; font-size: 14px; }
.dg-bar-right { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.dg-print { display: inline-flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: 12.5px; color: #606266; }
.dg-print label { display: inline-flex; align-items: center; gap: 3px; cursor: pointer; white-space: nowrap; }
.dg-print input { accent-color: #409eff; cursor: pointer; }
.dg-page .el-drawer__body h4.og-sub:first-child { margin-top: 0; }

/* 综合查询：键值对区块与表单同栅格，上下行逐列对齐 */
.cs-kv .ditem > label { flex: 0 0 110px; width: 110px; }
.cs-kv .cs-val { flex: 1 1 auto; min-width: 0; font-size: 12.5px; color: #303133; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* 结算：单据详情键值对与新增弹框选单区，同样保持上下行逐列对齐 */
.st-kv .ditem > label { flex: 0 0 110px; width: 110px; }
.st-kv .st-val { flex: 1 1 auto; min-width: 0; font-size: 12.5px; color: #303133; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ===== 预警管理 / 查询统计：汇总条、详情与打印区多行逐列对齐 ===== */
.og-page > .wr-overview { flex: 0 0 auto; }
.wr-overview { background: #fff; border: 1px solid #e4e9f2; border-radius: 10px; padding: 8px 14px 6px; margin-bottom: 10px; box-shadow: 0 1px 4px rgba(16, 32, 64, .06); }
.wr-ov-title { font-size: 12.5px; font-weight: 600; color: #303133; margin-bottom: 6px; }
.wr-ov-title span { font-weight: 400; color: #909399; margin-left: 10px; }
.wr-kv { padding: 0; gap: 6px 16px; }
.wr-kv .ditem > label { flex: 0 0 110px; width: 110px; }
.wr-kv .st-val { font-weight: 600; color: #1f6feb; }
.og-page .el-drawer__body .wr-kv { margin-bottom: 12px; }
.wr-print-scope { margin-bottom: 12px; }
.wr-print-opts { display: flex; flex-wrap: wrap; gap: 6px 16px; }
.el-drawer__body > .dgrid.st-kv { background: #fafbfc; border: 1px solid #e4e9f2; border-radius: 4px; margin-bottom: 12px; }
.st-pick { height: 290px; display: flex; flex-direction: column; padding: 0 12px 12px; }
.st-pick .tms-grid { flex: 1; min-height: 0; }

/* 资金管理：报销明细多行编辑，与查询条件同栅格、上下行逐列对齐 */
.fd-items { padding: 0 4px; overflow-y: auto; }
.fd-item-head { font-size: 13px; font-weight: 600; color: #303133; margin: 4px 0 8px; }
.fd-item { margin-bottom: 8px; padding-bottom: 8px; border-bottom: 1px dashed #e4e9f2; }
.fd-items-pad { height: auto; max-height: 290px; display: block; padding: 0 12px 12px; }
.fd-items-pad .fd-items { max-height: 250px; }

/* ============ 登录首页：平台特点 + 注册 / 平台入口 ============ */
.login-shell { position: relative; z-index: 1; display: flex; align-items: center; gap: 56px; width: min(1080px, 94vw); }
.login-hero { flex: 1; min-width: 0; color: #fff; }
.login-hero-badge { display: inline-block; padding: 5px 12px; border: 1px solid rgba(255,255,255,.35); border-radius: 20px; font-size: 12px; letter-spacing: 1px; background: rgba(255,255,255,.1); }
.login-hero h1 { margin: 18px 0 12px; font-size: 38px; line-height: 1.35; font-weight: 700; letter-spacing: 1px; }
.login-hero > p { font-size: 14px; color: rgba(255,255,255,.85); line-height: 1.9; max-width: 480px; }
.login-features { margin-top: 26px; display: grid; grid-template-columns: 1fr 1fr; gap: 14px 18px; }
.login-feature { display: flex; align-items: flex-start; gap: 10px; padding: 10px 12px; border-radius: 10px; background: rgba(255,255,255,.10); border: 1px solid rgba(255,255,255,.16); }
.login-feature-icon { flex: 0 0 30px; height: 30px; border-radius: 8px; display: flex; align-items: center; justify-content: center; background: rgba(255,255,255,.2); }
.login-feature-text { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.login-feature-text b { font-size: 13px; font-weight: 600; }
.login-feature-text span { font-size: 11px; color: rgba(255,255,255,.78); line-height: 1.5; }
.login-hero-foot { margin-top: 24px; font-size: 12px; color: rgba(255,255,255,.7); }
.login-card { width: 360px; flex: 0 0 360px; border-radius: 14px !important; padding: 10px 16px 6px; }
.login-card .el-card__body { padding: 12px 10px; }
.login-links { display: flex; justify-content: space-between; margin: 6px 2px 2px; }
.login-foot { margin-top: 8px; font-size: 11px; text-align: center; }
.login-acct-tip, .plogin-tip { margin-bottom: 16px; }
.plogin-card { width: 400px; flex: 0 0 400px; padding: 12px 18px; }
@media (max-width: 900px) { .login-hero { display: none; } .login-shell { justify-content: center; width: auto; } }

/* ============ 在线注册申请页 ============ */
.reg-wrap, .rd-wrap { position: relative; min-height: 100%; overflow: auto; background: linear-gradient(135deg, #1d2535 0%, #2563ab 46%, #409eff 100%); }
.reg-bg { position: absolute; inset: 0; pointer-events: none; background: radial-gradient(circle at 18% 25%, rgba(255,255,255,.08) 0, transparent 42%); }
.reg-shell { position: relative; z-index: 1; min-height: 100vh; display: flex; align-items: center; justify-content: center; gap: 56px; padding: 28px; }
.reg-hero { color: #fff; max-width: 470px; }
.reg-hero-brand { display: flex; align-items: center; gap: 10px; font-size: 15px; font-weight: 600; letter-spacing: 1px; }
.reg-hero h1 { margin: 20px 0 12px; font-size: 34px; line-height: 1.35; }
.reg-hero-sub { font-size: 14px; color: rgba(255,255,255,.85); line-height: 1.9; }
.reg-features { margin-top: 24px; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.reg-feature { display: flex; align-items: flex-start; gap: 9px; padding: 10px; border-radius: 9px; background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.16); }
.reg-feature-icon { flex: 0 0 28px; height: 28px; border-radius: 7px; display: flex; align-items: center; justify-content: center; background: rgba(255,255,255,.2); }
.reg-feature b { display: block; font-size: 12px; }
.reg-feature span { display: block; margin-top: 2px; font-size: 11px; color: rgba(255,255,255,.76); line-height: 1.45; }
.reg-card { width: 430px; flex: 0 0 430px; border-radius: 14px !important; }
.reg-card .el-card__body { padding: 20px 24px; }
.reg-card-head h2 { font-size: 21px; color: #1d2535; }
.reg-card-head p { margin: 6px 0 16px; font-size: 12px; color: #8a94a6; }
.reg-modes { margin-bottom: 16px; }
.reg-code-row { display: flex; gap: 8px; width: 100%; }
.reg-code-row .el-button { flex: 0 0 118px; }
.reg-dev { margin: 2px 0 12px; }
.reg-submit { width: 100%; letter-spacing: 2px; }
.reg-steps { display: flex; align-items: center; justify-content: space-between; margin-top: 18px; font-size: 11px; color: #8a94a6; }
.reg-steps i { flex: 1; height: 1px; margin: 0 8px; background: #dcdfe6; }
.reg-result-info { margin: 0 auto 18px; width: 300px; text-align: left; font-size: 13px; }
.reg-result-info div { display: flex; justify-content: space-between; padding: 5px 0; border-bottom: 1px dashed #ebeef5; }
.reg-result-info span { color: #8a94a6; }
.reg-foot { margin-top: 14px; text-align: center; }
@media (max-width: 940px) { .reg-hero { display: none; } }

/* ============ 注册详情页 ============ */
.rd-top { position: relative; z-index: 1; height: 56px; padding: 0 28px; display: flex; align-items: center; justify-content: space-between; background: rgba(255,255,255,.96); box-shadow: 0 1px 6px rgba(0,0,0,.08); }
.rd-brand { display: flex; align-items: center; gap: 8px; color: #2563ab; font-size: 15px; }
.rd-body { position: relative; z-index: 1; padding: 20px; display: flex; justify-content: center; }
.rd-card { width: min(940px, 96vw); border-radius: 12px !important; min-height: 420px; }
.rd-card .el-card__body { padding: 22px 28px; }
.rd-head { display: flex; align-items: flex-start; justify-content: space-between; }
.rd-head h2 { font-size: 20px; color: #1d2535; }
.rd-head p { margin-top: 6px; font-size: 12px; color: #8a94a6; }
.rd-steps { margin: 26px 0 22px; }
.rd-alert { margin-bottom: 18px; }
.rd-form h3 { margin: 20px 0 12px; font-size: 14px; color: #303133; border-left: 3px solid #2563eb; padding-left: 8px; }
.rd-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 4px 22px; }
.rd-grid .el-form-item { margin-bottom: 14px; }
.rd-actions { margin-top: 24px; display: flex; gap: 12px; }
.rd-done { margin-top: 10px; }
@media (max-width: 700px) { .rd-grid { grid-template-columns: 1fr; } }

/* ============ 平台账号工作台 ============ */
.pf-wrap { min-height: 100vh; display: flex; flex-direction: column; background: #f4f6fa; }
.pf-header { height: 58px; flex: 0 0 58px; display: flex; align-items: center; justify-content: space-between; padding: 0 24px; background: #1d2535; color: #fff; }
.pf-brand { display: flex; align-items: center; gap: 10px; font-size: 16px; }
.pf-brand span { margin-left: 8px; font-size: 11px; letter-spacing: 2px; color: #8ea6c8; }
.pf-user { display: flex; align-items: center; gap: 14px; font-size: 13px; }
.pf-main { flex: 1; padding: 14px 18px; min-width: 0; }
.pf-tabs { background: #fff; border-radius: 10px; padding: 6px 16px 16px; box-shadow: 0 1px 4px rgba(16,32,64,.06); }
.pf-tabs .el-tabs__item { font-size: 14px; }
.pf-cards { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; margin: 8px 0 16px; }
.pf-cards.small { grid-template-columns: repeat(3, 1fr); }
.pf-card { background: linear-gradient(135deg, #f8fbff, #eef4ff); border: 1px solid #e4ecfa; border-radius: 10px; padding: 14px 16px; }
.pf-card.primary { background: linear-gradient(135deg, #2563ab, #409eff); border-color: #2563ab; color: #fff; }
.pf-card span { display: block; font-size: 12px; color: #7a879c; }
.pf-card.primary span, .pf-card.primary i { color: rgba(255,255,255,.82); }
.pf-card b { display: block; margin: 8px 0 4px; font-size: 22px; font-weight: 700; letter-spacing: .5px; }
.pf-card i { display: block; font-style: normal; font-size: 11px; color: #9aa6b8; }
.pf-toolbar { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 12px; }
.pf-total { font-size: 12px; color: #8a94a6; }
.pf-table { --el-table-border-color: #e8edf5; }
.pf-review { margin-top: 20px; }
.pf-review h4 { margin-bottom: 10px; font-size: 14px; }
.pf-review-btns { margin-top: 14px; display: flex; gap: 10px; }
@media (max-width: 1000px) { .pf-cards { grid-template-columns: repeat(2, 1fr); } }

/* ============ 总公司管理后台 ============ */
.hq-cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.hq-card { background: linear-gradient(135deg, #f8fbff, #eef4ff); border: 1px solid #e4ecfa; border-radius: 10px; padding: 14px 16px; }
.hq-card.primary { background: linear-gradient(135deg, #2563ab, #409eff); border-color: #2563ab; color: #fff; }
.hq-card span { display: block; font-size: 12px; color: #7a879c; }
.hq-card.primary span { color: rgba(255,255,255,.85); }
.hq-card b { display: block; margin: 8px 0 2px; font-size: 24px; font-weight: 700; }
.hq-card i { display: block; font-style: normal; font-size: 11px; color: #9aa6b8; }
.hq-card.primary i { color: rgba(255,255,255,.75); }
@media (max-width: 1000px) { .hq-cards { grid-template-columns: repeat(2, 1fr); } }
.hq-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
.hq-grid .el-form-item { margin-bottom: 12px; }
.hq-tbl { font-size: 12px; }
.tg-total { font-size: 12px; color: #8a94a6; }