/* ==========================================================================
   main.css —— 项目自定义样式（手写，不参与 Tailwind 编译）
   分工：
     · 一次性的布局 → 用 Tailwind 工具类直接写在模板里，不写到这里；
     · 跨页面复用的组件（应用外壳、表单控件）→ 写在这里，模板只留语义类名，
       避免同一串工具类在多个模板里重复十几遍。
   颜色统一引用 tailwind.src.css 中 @theme 产出的 --color-* 变量。
   ========================================================================== */

/* Alpine.js 反闪烁：带 x-cloak 的元素在 Alpine 初始化完成前不显示 */
[x-cloak] {
  display: none !important;
}

/* 微信登录二维码 iframe 由 wxLogin.js 动态插入，默认内联宽高 300x400 且带边框，
   这里统一做外观修正；外层盒子（模板里 w-[330px]）自适应 iframe 尺寸 */
#weLogin iframe,
#wxLogin iframe {
  display: block;
  border: 0;
  background-color: #ffffff;
}

/* ==========================================================================
   手机验证 iframe（auth/register.html 内嵌组件）
   receipt_return.html / addedit_after.html 用 <iframe class="verifyPhone">
   内嵌 register.html。iframe 没有 CSS 时会退回默认 150px 高，撑爆不了内容，
   故这里给足最小高度。实测 iframe 内 register 表单：基础 298px，
   出现错误/成功提示后约 385px，取 26rem（416px）留余量；宽度撑满宿主，
   display:block 去掉 inline iframe 的基线空隙。
   （addedit_after.html 另带内联 style="min-width:25rem"，优先级更高，保留。）
   ========================================================================== */
.verifyPhone {
  display: block;
  width: 100%;
  min-height: 26rem;
  border: 0;
}

/* ==========================================================================
   登录页（templates/auth/wxlogin.html）
   参考稿 index.html 的视觉已经全部用 Tailwind 工具类写在模板里，
   这里只保留工具类表达不了的伪元素。
   ========================================================================== */

/* Tab 激活态下划线（对应参考稿 .tab.active::after） */
.tab-btn.tab-active::after {
  content: "";
  position: absolute;
  bottom: -1px;
  left: 25%;
  width: 50%;
  height: 2px;
  background: #1677ff;
  border-radius: 2px;
}

/* ==========================================================================
   应用外壳（templates/base.html）+ 表单（参考稿 addedit.html）
   分工：
     · 一次性的布局，仍用 Tailwind 工具类写在模板里；
     · 跨页面复用的组件（外壳骨架、表单控件）写在这里，模板只留语义类名。
   颜色统一引用 tailwind.src.css 里 @theme 产出的 --color-app-* 变量，
   避免色值在 CSS 和 Tailwind 里各存一份。
   ========================================================================== */

/* 页面底色：参考稿 body 的三层径向渐变，写成工具类太别扭 */
.app-body {
  color: var(--color-app-body);
  background:
    radial-gradient(circle at 10% 90%, #dff2ff 0, transparent 23%),
    radial-gradient(circle at 95% 10%, #e8f5ff 0, transparent 25%),
    var(--color-app-canvas);
}

/* ---------- 骨架 ---------- */
.app {
  display: flex;
  min-height: 100vh;
}

.sidebar {
  flex: 0 0 238px;
  width: 238px;
  min-height: 100vh;
  padding: 22px 14px;
  background: rgba(255, 255, 255, .78);
  border-right: 1px solid #e1edf7;
  transition: width .25s, flex-basis .25s, padding .25s, transform .25s;
}

/* 桌面端折叠 */
.app.sidebar-collapsed .sidebar {
  width: 0;
  flex-basis: 0;
  padding: 0;
  overflow: hidden;
}

.brand {
  display: flex;
  align-items: center;
  height: 58px;
  padding: 0 15px;
  margin-bottom: 18px;
}

.brand-logo {
  display: grid;
  place-items: center;
  width: 39px;
  height: 39px;
  margin-right: 11px;
  border-radius: 10px;
  color: #fff;
  font-weight: 700;
  background: linear-gradient(135deg, var(--color-app-blue), #5bc0eb);
  box-shadow: 0 7px 18px rgba(47, 128, 237, .2);
}

.brand-title {
  font-size: 17px;
  font-weight: 700;
  color: var(--color-app-title);
}

.brand-subtitle {
  margin-top: 2px;
  font-size: 10px;
  color: #9aafc4;
}

.nav {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 13px;
  height: 44px;
  padding: 0 16px;
  border-radius: 9px;
  color: #6683a1;
  font-size: 14px;
  text-decoration: none;
}

.nav-item:hover {
  color: var(--color-app-blue);
  background: #f0f7ff;
}

.nav-item.active {
  color: var(--color-app-blue);
  background: #e9f3ff;
  box-shadow: inset 3px 0 var(--color-app-blue);
  font-weight: 600;
}

.nav-icon {
  width: 20px;
  text-align: center;
  flex: 0 0 20px;
}

.nav-badge {
  margin-left: auto;
  font-size: 12px;
  color: var(--color-app-blue);
}

.main {
  flex: 1;
  min-width: 0;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 70px;
  padding: 0 34px;
}

.top-left {
  display: flex;
  align-items: center;
  gap: 17px;
  min-width: 0;
}

.menu-btn {
  width: 35px;
  height: 35px;
  flex: 0 0 35px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #55738f;
  font-size: 21px;
  line-height: 1;
  cursor: pointer;
}

.menu-btn:hover {
  background: rgba(47, 128, 237, .08);
}

.page-title {
  font-size: 24px;
  font-weight: 650;
  color: #23679d;
  letter-spacing: 1px;
}

.user-area {
  display: flex;
  align-items: center;
  gap: 13px;
  font-size: 13px;
}

.avatar {
  display: grid;
  place-items: center;
  width: 35px;
  height: 35px;
  border-radius: 50%;
  color: #fff;
  background: #76a9e4;
  object-fit: cover;
}

.user-name {
  color: #334e68;
}

.user-arrow {
  margin-left: -8px;
  color: #8da0b5;
}

.logout {
  margin-left: 8px;
  color: #2779d4;
  text-decoration: none;
}

.content {
  padding: 13px 34px 34px;
}

.form-card {
  min-height: calc(100vh - 117px);
  padding: 30px 38px 34px;
  background: rgba(255, 255, 255, .95);
  border: 1px solid #e1ecf7;
  border-radius: 11px;
  box-shadow: 0 8px 28px rgba(50, 100, 150, .07);
}

.section-title {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 22px;
  font-size: 18px;
  font-weight: 650;
}

.section-icon {
  display: grid;
  place-items: center;
  width: 29px;
  height: 29px;
  flex: 0 0 29px;
  border-radius: 8px;
  color: var(--color-app-blue);
  background: #e9f3ff;
}

/* 提示条（get_flashed_messages） */
.flash {
  margin-bottom: 16px;
  padding: 11px 14px;
  border: 1px solid #ffe08a;
  border-radius: 8px;
  background: #fffbe6;
  color: #8a6d3b;
  font-size: 13px;
}

/* ---------- 表单 ---------- */
.form-row {
  margin-bottom: 21px;
}

.form-label {
  display: block;
  margin-bottom: 8px;
  font-size: 14px;
  font-weight: 600;
}

.required {
  color: #ff4d4f;
  font-weight: 600;
}

.help,
.codeTip {
  margin-left: 13px;
  color: #98aabd;
  font-size: 12px;
  font-weight: 400;
}

/* 控件统一外观。
   两点说明：
     1) 用「类型白名单」而不是一串 :not() 黑名单——submit / button / checkbox /
        radio / hidden / file 天然落在外面，语义更直白；
     2) 外面套 :where() 把选择器列表的特异性归零（整条只剩 .form-card 那一层）。
        否则特异性高达 (0,6,1)，后面想给某个控件做局部微调（例如搜索框要给放大镜
        图标留出左内边距）就得照抄五六个 :not() 才压得过它。 */
.form-card :where(
  input:not([type]),
  input[type="text"], input[type="search"], input[type="password"],
  input[type="date"], input[type="email"], input[type="number"],
  input[type="tel"], input[type="url"],
  select,
  textarea
) {
  width: 100%;
  height: 42px;
  padding: 0 12px;
  border: 1px solid var(--color-app-line);
  border-radius: 6px;
  outline: 0;
  background: #fff;
  color: #314b65;
  font-family: inherit;
  font-size: 14px;
}

/* 窄数字框（设备数量等）：靠工具类 !w-[7rem] 即可生效，但手机端要还原成整行宽
   （main.css 在级联里位于 tailwind 之后，同特异性会被这里压住，所以窄宽度要圈进 800px 以下） */
@media (min-width: 800px) {
  .form-card .input-w-auto {
    width: 7rem;
  }
}

/* 多行文本：特异性 (0,1,1) 高于上面 :where() 的 (0,1,0)，能正常盖掉高度与内边距 */
.form-card textarea {
  height: auto;
  min-height: 115px;
  padding: 11px 12px;
  resize: vertical;
}

.form-card :where(input, select, textarea):focus {
  border-color: #73b4f5;
  box-shadow: 0 0 0 3px rgba(47, 128, 237, .08);
}

/* 禁用态（工单已确认时项目号勾选框） */
.form-card input:disabled,
.form-card select:disabled,
.form-card textarea:disabled {
  background: #f5f8fb;
  color: #8da2b8;
  cursor: not-allowed;
}

/* 项目号一行：两个下拉 + 余下编码 */
.project-row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.project-row select {
  width: 78px;
  flex: 0 0 78px;
}

.project-row input {
  max-width: 250px;
}

.project-sep {
  color: var(--color-app-muted);
}

.project-extra {
  max-width: 320px;
}

/* 项目名称（#proName）：初始显示铭牌信息，项目号查询成功后由 JS 回填 */
.project-name {
  padding: 10px 14px;
  border: 1px dashed #cfe2f5;
  border-radius: 8px;
  background: #f7fbff;
  color: var(--color-app-title);
  font-size: 14px;
}

/* 没有初始铭牌信息时（addedit.html）先不占位，等查询成功再出现；
   整行一并收起，避免留下一段空白 */
.project-name:empty {
  display: none;
}

.form-row:has(> .project-name:empty) {
  display: none;
}

/* 项目号校验结果（#projectCodeCheckRes）：JS 往里面插 icon-yes/no.svg */
#projectCodeCheckRes {
  display: inline-flex;
  align-items: center;
}

#projectCodeCheckRes img {
  display: block;
  width: 18px;
  height: 18px;
}

.form-check {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-top: 12px;
  font-size: 13px;
  font-weight: 600;
}

.form-card .form-check input[type="checkbox"] {
  width: 15px;
  height: 15px;
  flex: 0 0 15px;
  margin: 0;
  accent-color: var(--color-app-blue);
}

/* 只读态（record.confirm）下用文本替代控件 */
.readonly-value {
  padding: 4px 0;
  color: #314b65;
  font-size: 14px;
  white-space: pre-wrap;
}

.check-status {
  display: inline-flex;
  align-items: center;
}

/* 附件区 */
.gallery {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.gallery-item {
  position: relative;
  padding: 6px;
  border: 1px solid #cfe2f5;
  border-radius: 8px;
  background: #fbfdff;
}

.gallery-item img,
.gallery-item video {
  display: block;
  max-width: 180px;
  max-height: 180px;
  border-radius: 5px;
}

/* 删除附件的钩子类名沿用模板原有的 .xiugaishanchu */
.gallery-item .xiugaishanchu {
  position: absolute;
  top: 2px;
  right: 6px;
  color: #ff4d4f;
  font-size: 16px;
  line-height: 1;
  cursor: pointer;
}

.upload-btn {
  height: 42px;
  padding: 0 18px;
  border: 1px dashed #9cc6ef;
  border-radius: 7px;
  background: #f7fbff;
  color: var(--color-app-blue);
  font-size: 14px;
  cursor: pointer;
}

.upload-btn:hover {
  background: #e9f3ff;
}

/* 按钮。用 inline-flex + 居中：button 版文字本就居中（no-op），
   <a> 版（如列表页「清除」）也能在 min-width 撑宽后水平+垂直居中。 */
.submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 100px;
  height: 42px;
  padding: 0 20px;
  border: 0;
  border-radius: 7px;
  background: linear-gradient(135deg, var(--color-app-blue), #3d91f2);
  color: #fff;
  font-family: inherit;
  font-size: 14px;
  cursor: pointer;
  box-shadow: 0 5px 13px rgba(47, 128, 237, .2);
}

.submit:hover {
  background: var(--color-app-blue-deep);
}

.btn-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 100px;
  height: 42px;
  padding: 0 20px;
  border: 1px solid var(--color-app-line);
  border-radius: 7px;
  background: #fff;
  color: #4a6a8a;
  font-family: inherit;
  font-size: 14px;
  cursor: pointer;
}

.btn-ghost:hover {
  border-color: #73b4f5;
  color: var(--color-app-blue);
  background: #f7fbff;
}

.btn-danger {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 42px;
  padding: 0 18px;
  border: 1px solid #ffccc7;
  border-radius: 7px;
  color: #d4380d;
  font-size: 14px;
  text-decoration: none;
  background: #fff;
}

.btn-danger:hover {
  background: #fff2f0;
}

/* 表格行内小尺寸按钮（如设备管理「取消免密生效」）：
   叠在 .btn-* 之后，靠源码顺序覆盖高度与内边距 */
.btn-sm {
  height: 30px;
  padding: 0 12px;
  border-radius: 6px;
  font-size: 12px;
}

.submit-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 26px;
}

.submit-row-actions {
  display: flex;
  gap: 10px;
  margin-left: auto;
}

/* 提交遮罩 */
#loading {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  background: rgba(255, 255, 255, .82);
  color: #4a6a8a;
  font-size: 14px;
}

/* 纯 CSS 转圈，替代原来缺失的 img/Spin.gif */
.spinner {
  width: 34px;
  height: 34px;
  border: 3px solid #d6e6f7;
  border-top-color: var(--color-app-blue);
  border-radius: 50%;
  animation: app-spin .8s linear infinite;
}

@keyframes app-spin {
  to {
    transform: rotate(360deg);
  }
}

/* 红色提示条变体（表单内行内错误，如 user/edit 保存校验），覆盖 .flash 的黄底 */
.flash-error {
  border-color: #ffccc7;
  background: #fff2f0;
  color: #d4380d;
}

/* ==========================================================================
   项目建设进度（templates/applyadmin/projectprogress.html）
   原来是模板内联 style（旧 .container/.header/.stepper/.step 一套），迁 base 后
   移到这里并改语义类名；配色换用整站 --color-app-* 令牌，不再引旧渐变色。
   ========================================================================== */

.progress-card {
  max-width: 420px;
  margin-bottom: 14px;
  border: 1px solid #e1ecf7;
  border-radius: 11px;
  background: #fff;
  overflow: hidden;
}

.progress-card-header {
  padding: 11px 16px;
  background: linear-gradient(135deg, var(--color-app-blue), #5bc0eb);
  color: #fff;
  font-size: 15px;
  font-weight: 600;
}

.progress-time {
  padding: 9px 16px 0;
  color: #55738f;
  font-size: 13px;
}

/* 展开/收起触发链接 */
.progress-toggle {
  display: inline-block;
  margin: 10px 16px 4px;
  color: var(--color-app-blue);
  font-size: 13px;
  text-decoration: none;
  cursor: pointer;
}

.progress-toggle:hover {
  text-decoration: underline;
}

/* 时间线区（默认由模板加 hidden，点开后 jQuery slideToggle 接管） */
.progress-steps {
  padding: 6px 16px 10px;
}

.progress-step {
  display: flex;
  position: relative;
  margin-bottom: 20px;
}

.progress-step:last-child {
  margin-bottom: 0;
}

/* 节点圆圈；.progress-step.active（由脚本判定：明细不含「等待/退回」）填蓝 */
.progress-circle {
  width: 20px;
  height: 20px;
  flex: 0 0 20px;
  margin-right: 14px;
  box-sizing: content-box;
  border: 3px solid #dbe7f3;
  border-radius: 50%;
  background: #fff;
  position: relative;
  z-index: 2;
}

.progress-step.active .progress-circle {
  border-color: var(--color-app-blue);
  background: var(--color-app-blue);
}

/* 节点间连接线（居中对准圆圈中轴：圆圈总宽 26，线宽 3 → left = 13 − 1.5） */
.progress-line {
  position: absolute;
  left: 11.5px;
  top: 26px;
  bottom: -20px;
  width: 3px;
  background: #dbe7f3;
  z-index: 1;
}

.progress-step:last-child .progress-line {
  display: none;
}

.progress-batch {
  flex: 1;
  min-width: 0;
  padding-bottom: 2px;
}

.progress-batch-title {
  margin-bottom: 4px;
  color: var(--color-app-title);
  font-size: 14px;
  font-weight: 600;
}

.progress-batch-detail {
  color: #64748b;
  font-size: 13px;
  line-height: 1.6;
}

/* ---------- 手机端（参考稿 @media max-width:800px） ---------- */
@media (max-width: 800px) {
  .sidebar {
    position: fixed;
    z-index: 20;
    top: 0;
    bottom: 0;
    left: 0;
    transform: translateX(-100%);
    background: #fff;
    box-shadow: 8px 0 30px rgba(30, 80, 130, .12);
  }

  .app.sidebar-open .sidebar {
    transform: translateX(0);
  }

  .main {
    width: 100%;
  }

  .topbar {
    height: 62px;
    padding: 0 17px;
  }

  .page-title {
    font-size: 20px;
  }

  .user-area {
    gap: 7px;
  }

  .user-name,
  .user-arrow {
    display: none;
  }

  .logout {
    margin-left: 3px;
  }

  .content {
    padding: 10px 12px 20px;
  }

  .form-card {
    min-height: calc(100vh - 92px);
    padding: 22px 17px 28px;
    border-radius: 10px;
  }

  .section-title {
    font-size: 17px;
  }

  .help {
    display: block;
    margin: 5px 0 0;
  }

  .project-row input {
    max-width: none;
    flex: 1;
    min-width: 150px;
  }

  .project-extra {
    max-width: none;
  }

  .submit,
  .btn-ghost,
  .btn-danger {
    width: 100%;
    justify-content: center;
  }

  .submit-row {
    flex-direction: column-reverse;
    align-items: stretch;
  }

  .submit-row-actions {
    flex-direction: column-reverse;
    margin-left: 0;
  }
}

/* ==========================================================================
   列表页（templates/record/list.html）
   ========================================================================== */

/* ---------- 搜索工具条 ---------- */
.list-toolbar {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
}

.search-box {
  position: relative;
  flex: 1 1 auto;
  max-width: 400px;
  min-width: 0;
}

.search-icon {
  position: absolute;
  top: 50%;
  left: 13px;
  transform: translateY(-50%);
  color: #9ab0c6;
  font-size: 16px;
  line-height: 1;
  pointer-events: none;
}

/* 给放大镜图标让出位置。控件通用规则外面套了 :where()，这里一个普通选择器就压得住 */
.form-card .search-box input {
  padding-left: 36px;
}

.list-toolbar .submit,
.list-toolbar .btn-ghost {
  flex: 0 0 auto;
}

/* ---------- 结果条 ---------- */
.list-meta {
  margin-bottom: 12px;
  color: #7f96ad;
  font-size: 13px;
}

.list-meta b {
  color: var(--color-app-title);
  font-size: 15px;
}

/* ---------- 表格 ---------- */
.table-wrap {
  overflow-x: auto;
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

.data-table thead th {
  padding: 0 14px 12px;
  border-bottom: 1px solid #e1ecf7;
  color: #7f96ad;
  font-weight: 500;
  text-align: left;
  white-space: nowrap;
}

.data-table tbody td {
  padding: 13px 14px;
  border-bottom: 1px solid #eef4fa;
  color: #3c5a78;
  vertical-align: middle;
}

.data-table tbody tr:last-child td {
  border-bottom: 0;
}

.data-table tbody tr:hover {
  background: #f7fbff;
}

.cell-id a {
  color: var(--color-app-blue);
  font-weight: 600;
  text-decoration: none;
}

.cell-id a:hover {
  text-decoration: underline;
}

.msg-link {
  color: #8da2b8;
  text-decoration: none;
}

.msg-link:hover {
  color: var(--color-app-blue);
}

.msg-link.unread {
  color: #d4380d;
  font-weight: 600;
}

/* 该项不适用时的占位，避免单元格看起来是空的 */
.dash {
  color: #c3d2e0;
}

/* ---------- 状态徽标 ---------- */
.status {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 10px 3px 5px;
  border-radius: 20px;
  font-size: 12px;
  white-space: nowrap;
}

.status img {
  display: block;
  width: 16px;
  height: 16px;
  flex: 0 0 16px;
}

.status-ok {
  color: #3f8600;
  background: #f2fbe8;
}

.status-draft {
  color: #8a9bad;
  background: #f4f7fa;
}

/* 未通过（红）/ 待审核（橙）：申请列表等三态场景用 */
.status-rejected {
  color: #d4380d;
  background: #fff2f0;
}

.status-pending {
  color: #ad6800;
  background: #fffbe6;
}

.state-wait {
  color: #ad6800;
}

.state-doing {
  color: #1c62b8;
}

/* 空结果 */
.data-table .empty {
  padding: 46px 14px;
  color: #9ab0c6;
  text-align: center;
}

/* ---------- 分页器 ---------- */
/* DOM 由 paginator_<version>.js 生成：.page-label 前缀文字、.page-link 可点页码、
   .page-current 当前页、.page-gap 省略号。脚本原先给当前页和省略号写的是同一份
   内联 background，纯 CSS 分不开，已改为输出语义类名。 */
.paginator {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 22px;
}

/* 只有一页时模板不会调用 createPaginator，这里让空容器彻底消失 */
.paginator:empty {
  display: none;
}

.paginator a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 32px;
  height: 32px;
  padding: 0 9px;
  border: 1px solid var(--color-app-line);
  border-radius: 6px;
  background: #fff;
  color: #4a6a8a;
  font-size: 13px;
  text-decoration: none;
}

.paginator .page-link:hover {
  border-color: #73b4f5;
  color: var(--color-app-blue);
  background: #f7fbff;
}

.paginator .page-current {
  border-color: var(--color-app-blue);
  background: var(--color-app-blue);
  color: #fff;
  font-weight: 600;
  cursor: default;
}

.paginator .page-gap {
  border-color: transparent;
  background: transparent;
  color: #b6c6d6;
  cursor: default;
}

.paginator .page-label {
  min-width: 0;
  height: auto;
  padding: 0 2px 0 0;
  border: 0;
  background: transparent;
  color: #9ab0c6;
}

/* ---------- 列表页手机端：表格转卡片 ---------- */
@media (max-width: 800px) {
  .list-toolbar {
    flex-wrap: wrap;
  }

  .search-box {
    flex: 1 1 100%;
    max-width: none;
  }

  .table-wrap {
    overflow-x: visible;
  }

  .data-table,
  .data-table tbody,
  .data-table tr,
  .data-table td {
    display: block;
    width: 100%;
  }

  .data-table thead {
    display: none;
  }

  .data-table tbody tr {
    margin-bottom: 12px;
    padding: 2px 14px;
    border: 1px solid #e1ecf7;
    border-radius: 10px;
    background: #fff;
  }

  .data-table tbody tr:hover {
    background: #fff;
  }

  .data-table tbody td {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 10px 0;
    border-bottom: 1px dashed #eef4fa;
  }

  .data-table tbody td:last-child {
    border-bottom: 0;
  }

  /* 表头在手机上已隐藏，列名改由 data-label 提供 */
  .data-table tbody td::before {
    content: attr(data-label);
    flex: 0 0 auto;
    color: #9ab0c6;
    font-size: 12px;
  }

  /* 首列当卡片标题 */
  .data-table tbody td:first-child {
    justify-content: flex-start;
    padding-top: 12px;
    font-size: 15px;
  }

  .data-table tbody td:first-child::before {
    content: none;
  }

  /* 空结果是一整行，不需要列名 */
  .data-table tbody td.empty {
    justify-content: center;
    padding: 34px 0;
  }

  .data-table tbody td.empty::before {
    content: none;
  }

  .paginator {
    justify-content: center;
  }
}

/* ================= select2（可搜索下拉，devadmin / user.edit 省份选择） =================
   外观对齐 .form-card 控件令牌：46px 高、7px 圆角、同聚焦光晕。
   4.0.13 的 DOM：.select2-container--default .select2-selection--single */
.form-card .select2-container .select2-selection--single {
  height: 46px;
  border: 1px solid #d5dfe9;
  border-radius: 7px;
  background: #fff;
  display: flex;
  align-items: center;
}

.form-card .select2-container .select2-selection--single .select2-selection__rendered {
  line-height: 1.4;
  padding-left: 14px;
  padding-right: 34px;
  font-size: 14px;
  color: #1f2d3d;
}

.form-card .select2-container .select2-selection--single .select2-selection__arrow {
  height: 44px;
  right: 8px;
}

.form-card .select2-container--default .select2-selection--single .select2-selection__placeholder {
  color: #9aabbd;
}

.form-card .select2-container--default.select2-container--focus .select2-selection--single,
.form-card .select2-container--default.select2-container--open .select2-selection--single {
  border-color: #73b4f5;
  box-shadow: 0 0 0 3px rgba(47, 128, 237, .08);
}

/* 下拉面板搜索框与选项字号，贴近项目整体密度 */
.select2-container--default .select2-search--dropdown .select2-search__field {
  border-radius: 6px;
  font-size: 14px;
}

.select2-container--default .select2-results__option {
  font-size: 14px;
}
