/* ============ 代理端专属样式 ============
 * 设计取向：浅色表单操作台，左侧导航 + 右侧工作区。
 * 2026-10-24：顶栏与 Hero 由彩色实色块改为浅色系，全站统一浅底深字。
 */
body[data-page="agent"] { background: #f6f8fb; }

body[data-page="agent"] .topbar {
  background: rgba(255, 255, 255, .94);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 1px 8px rgba(22, 32, 47, .05);
}
body[data-page="agent"] .topbar .brand { color: var(--text); display: flex; align-items: center; gap: 9px; }
body[data-page="agent"] .brand-mark {
  width: 27px; height: 27px; border-radius: 8px;
  background: linear-gradient(135deg, #4f86ff, #2f6bff); color: #fff;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 14px; font-weight: 800;
  box-shadow: 0 2px 8px rgba(47, 107, 255, .28);
}
body[data-page="agent"] .topbar .who { color: var(--text-2); font-weight: 600; }
body[data-page="agent"] .chip {
  background: #eef3ff; color: var(--brand-dark);
  border: 1px solid #dfe7ff;
}
body[data-page="agent"] .chip:hover { background: #e2ebff; }

/* 主体：左侧导航 + 右侧工作区 */
.agent-shell { display: grid; grid-template-columns: 186px 1fr; gap: 18px; align-items: start; }
.side-nav {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 10px; box-shadow: var(--shadow);
  position: sticky; top: 74px;
}
.side-nav button {
  display: flex; align-items: center; gap: 9px;
  width: 100%; padding: 11px 13px; margin-bottom: 4px;
  border: none; background: none; border-radius: 9px;
  font-size: 14.5px; font-weight: 600; color: var(--text-2);
  cursor: pointer; font-family: inherit; text-align: left;
}
.side-nav button:last-child { margin-bottom: 0; }
.side-nav button:hover { background: #f4f7fb; color: var(--text); }
.side-nav button.active { background: var(--brand); color: #fff; box-shadow: 0 3px 10px rgba(47, 107, 255, .28); }
.side-nav .nav-ico { font-size: 16px; width: 20px; text-align: center; }
.side-nav .nav-badge {
  margin-left: auto; background: #eef2f7; color: var(--text-2);
  font-size: 11.5px; padding: 1px 7px; border-radius: 999px; font-weight: 700;
}
.side-nav button.active .nav-badge { background: rgba(255, 255, 255, .26); color: #fff; }

.workspace { min-width: 0; }

.agent-hero {
  background: linear-gradient(120deg, #eef4ff, #f3f0ff 60%, #fdf7ff);
  border: 1px solid #e2eaff;
  border-radius: var(--radius); padding: 17px 19px; color: var(--text);
  margin-bottom: 16px; box-shadow: 0 2px 12px rgba(22, 32, 47, .05);
}
.agent-hero .ah-title { font-size: 17px; font-weight: 700; display: flex; align-items: center; gap: 8px; color: var(--text); }
.agent-hero .ah-sub { font-size: 13px; color: var(--text-2); margin-top: 3px; }
.agent-hero .ah-stats { display: flex; gap: 22px; margin-top: 13px; flex-wrap: wrap; }
.agent-hero .ah-stat .l { font-size: 12px; color: var(--text-3); }
.agent-hero .ah-stat .v { font-size: 21px; font-weight: 800; line-height: 1.2; color: var(--brand-dark); }

/* 报单卡片分组 */
.form-section {
  border: 1px solid var(--line); border-radius: 10px;
  padding: 14px; margin-bottom: 16px; background: #fcfdff;
}
.form-section-title {
  font-size: 13.5px; font-weight: 700; color: var(--brand-dark);
  margin-bottom: 12px; display: flex; align-items: center; gap: 7px;
}
.form-section-title .st-num {
  width: 20px; height: 20px; border-radius: 6px; background: var(--brand); color: #fff;
  font-size: 12px; display: inline-flex; align-items: center; justify-content: center; font-weight: 700;
}

.pkg-picker { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 9px; }
.pkg-opt {
  border: 1.5px solid var(--line); border-radius: 9px; padding: 10px 12px;
  cursor: pointer; font-size: 13.5px; background: #fff; transition: border-color .15s, background .15s;
  text-align: center; font-weight: 600; color: var(--text-2);
}
.pkg-opt:hover { border-color: var(--brand); color: var(--brand-dark); }
.pkg-opt.active { border-color: var(--brand); background: #eef3ff; color: var(--brand-dark); }

@media (max-width: 860px) {
  .agent-shell { grid-template-columns: 1fr; }
  .side-nav {
    position: static; display: flex; gap: 6px; overflow-x: auto;
    padding: 8px; -webkit-overflow-scrolling: touch;
  }
  .side-nav button { width: auto; margin-bottom: 0; white-space: nowrap; flex-shrink: 0; padding: 9px 13px; }
  .side-nav .nav-badge { margin-left: 4px; }
}