/* 本轮体验改造新增样式集中在本文件（由各模块追加，避免多人同时改 style.css 冲突） */

/* ===== 客户申请页 · 金额单位与备注 ===== */

/* ===== 保函查验页 ===== */

/* 客服电话：沿用所在容器文字色，移动端可一键拨号 */
.tel-link { color: inherit; text-decoration: none; }
.tel-link:hover { text-decoration: underline; }

/* 查不到 / 验证码不符时的下一步引导 */
.next-guide {
  color: #6b7c93; font-size: 13.5px; line-height: 1.85;
  margin: 10px auto 0; max-width: 640px;
}
.verify-actions { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin-top: 22px; }

/* 失效保函：橙色警示横幅再强化，避免被误当有效保函 */
.verify-result[data-verify="expired"] .banner.warn { border-left: 4px solid #d98a1f; font-weight: 600; }
.verify-result[data-verify="expired"] .res-id { color: #a05a12; }
.btn:disabled { opacity: .6; cursor: progress; box-shadow: none; }

/* ===== 后台 · 批量操作 / 回收站 / 分页 / 备份 ===== */

/* 批量操作条：勾选列表行后出现（1 份 → PDF，多份 → ZIP） */
.batch-bar {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  margin: 0 0 12px; padding: 10px 14px; border-radius: var(--r-md);
  background: #eef5fd; border: 1px solid #d6e6f8; font-size: 13px; color: #1a5b9e;
}
.batch-bar.trash-bar { background: var(--red-bg); border-color: #f6d3cf; color: #a2301f; }
.batch-bar b { font-weight: 700; }

/* 列表多选列（明细视图第一列） */
.chk-cell { text-align: center; }
.chk-cell input { width: 15px; height: 15px; cursor: pointer; vertical-align: middle; }
.row-check { width: 15px; height: 15px; cursor: pointer; vertical-align: middle; }

/* 回收站行 */
tbody tr.trash-row { background: #fdf7f7; }
.trash-row .t-id { color: #8a5a5a; }
.row-restore {
  font-size: 12.5px; font-weight: 600; color: var(--blue-500); cursor: pointer; white-space: nowrap;
}
.row-restore:hover { text-decoration: underline; }
.row-purge {
  font-size: 12.5px; font-weight: 600; color: #d33a3a; margin-left: 10px; cursor: pointer; white-space: nowrap;
}
.row-purge:hover { text-decoration: underline; }

/* ===== 后台 · 分页 / 备份 ===== */

/* 分页条 */
.pager {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  margin-top: 12px; padding: 10px 2px;
}
.pg-info { font-size: 12.5px; color: var(--muted); margin-right: auto; }
.pg-btn {
  padding: 5px 14px; border-radius: var(--r-sm); border: 1px solid var(--line);
  background: #fff; color: var(--ink-2); font-size: 12.5px; font-weight: 600; cursor: pointer;
  font-family: inherit; transition: .15s;
}
.pg-btn:hover:not(:disabled) { border-color: var(--blue-400); color: var(--blue-600); }
.pg-btn:disabled { opacity: .5; cursor: not-allowed; }
.pg-btn.on { background: #1f6fd0; border-color: #1f6fd0; color: #fff; cursor: default; }
.pg-size { display: flex; align-items: center; gap: 6px; font-size: 12.5px; color: var(--muted); }
.pg-size .pg-sel {
  height: 30px; padding: 0 6px; border-radius: var(--r-sm); border: 1px solid var(--line);
  background: #fff; font-size: 12.5px; font-family: inherit; color: var(--ink-2); cursor: pointer;
}
.pg-size .pg-sel:focus { outline: none; border-color: var(--blue-400); }
.pg-ell { font-size: 12.5px; color: var(--muted); padding: 0 2px; letter-spacing: .08em; }

/* 选择企业弹窗：分组标题（最近使用 / 全部企业） */
.pick-sec {
  padding: 7px 12px; background: var(--line-2); font-size: 11.5px; font-weight: 700;
  color: var(--muted); border-bottom: 1px solid var(--line); letter-spacing: .02em;
}

/* 模板列表「默认」标记 */
.tpl-def {
  display: inline-block; margin-left: 6px; padding: 0 6px; border-radius: 20px;
  background: var(--gold-100); color: var(--gold-500); font-size: 10.5px; font-weight: 700;
  vertical-align: 1px;
}

/* 数据备份页 */
.backup-head {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  margin-bottom: 10px; font-size: 14px;
}
.backup-head .hint { font-size: 12.5px; color: var(--muted); margin-left: auto; }
.usage-bar {
  height: 9px; border-radius: 20px; background: var(--line-2); overflow: hidden;
}
.usage-bar i {
  display: block; height: 100%; border-radius: 20px;
  background: linear-gradient(90deg, var(--blue-400), var(--blue-500)); transition: width .25s;
}
.usage-bar i.warn { background: linear-gradient(90deg, #e0a53a, var(--amber)); }
.usage-bar i.danger { background: linear-gradient(90deg, #d1453b, var(--red)); }
.backup-usage { margin-top: 8px; font-size: 12.5px; color: var(--muted); }

/* ===== 后台 · 已出函明细筛选 / 章印选择 / 模板 Word 导入 ===== */

/* 自定义区间筛选行 */
.custom-filter { margin: -6px 0 14px; }
.custom-filter .cf-label { font-size: 12.5px; color: var(--muted); }
.custom-filter .cf-sep { font-size: 12.5px; color: #a9b6c6; }
.custom-filter .cf-input {
  height: 34px; border: 1px solid var(--line); border-radius: var(--r-sm);
  background: #fff; padding: 0 10px; font-size: 13px; color: var(--ink-2);
  outline: none; font-family: inherit;
}
.custom-filter .cf-input:focus { border-color: var(--blue-500); }
.custom-filter .cf-num { width: 108px; }
.custom-filter .cf-tip { font-size: 12px; color: #a9b6c6; margin-left: 4px; }

/* 结果计数（放在筛选行尾部） */
.toolbar-filters .rec-count { margin-left: auto; font-size: 12.5px; color: #93a1b3; }

/* 带章印 / 不带章印 单选 */
.seal-mode {
  display: inline-flex; align-items: center; gap: 10px; flex-wrap: wrap;
  font-size: 12.5px; color: var(--muted);
}
.seal-mode .sm-label { color: #93a1b3; }
.seal-mode label { display: inline-flex; align-items: center; gap: 4px; cursor: pointer; white-space: nowrap; }
.seal-mode input[type=radio] { width: 14px; height: 14px; cursor: pointer; margin: 0; accent-color: var(--blue-500); }

/* 模板列表里的「Word」标识 */
.tpl-word-badge {
  display: inline-block; margin-left: 6px; padding: 1px 6px; border-radius: 4px;
  background: #eaf2fd; color: var(--blue-600); font-size: 11px; font-weight: 600;
  vertical-align: 1px; letter-spacing: .2px;
}

/* 模板编辑器里的字段说明 */
.field .field-tip { margin-top: 5px; font-size: 12px; color: #a9b6c6; line-height: 1.6; }

/* 工作台「保函下载」列按钮 */
#tbody .row-dl { white-space: nowrap; }

/* ===== 保函文档 · 页眉页脚与只读行 ===== */
.doc-hf {
  display: flex; justify-content: space-between; align-items: baseline;
  font-family: var(--sans); font-size: 9pt; color: #5f6d7f; letter-spacing: .04em;
}
.doc-hf-header { margin-bottom: 8px; padding-bottom: 4px; border-bottom: 1px solid #eceff3; }
.doc-hf-footer { margin-top: 14px; justify-content: center; color: #6b7c93; }

/* ===== 后台 · 招标人 / 地区列与邮寄 ===== */
/* 工作台「招标人 / 地区」列：紧凑小字号（该表列已多） */
#tbody .issuer-cell {
  font-size: 12px;
  color: #6b7c93;
  white-space: nowrap;
}
/* 抽屉「邮寄原件」徽标 */
.mail-badge {
  display: inline-block;
  margin-right: 6px;
  padding: 1px 8px;
  border-radius: 999px;
  background: #e8f1ff;
  color: #1f6fd0;
  font-size: 11.5px;
  font-weight: 600;
  white-space: nowrap;
}
#dBody .d-row .v .mail-addr { word-break: break-all; }

/* ===== 工作台 · 列宽保护 =====
   列变多后投标人列会被挤成逐字竖排，改为给表格设最小宽度让其横向滚动，
   同时投标人列按词换行、招标人 / 地区列收紧不换行 */
#appTableWrap table { min-width: 1240px; }
#tbody .issuer-cell { white-space: nowrap; font-size: 12px; }
#tbody .t-company { word-break: keep-all; overflow-wrap: anywhere; max-width: 220px; }

/* ===== 可开函项目页（projects.html）：线下办理提示区（紧凑版） ===== */
.offline-notice {
  display: flex; align-items: center; gap: 18px; flex-wrap: wrap;
  background: linear-gradient(135deg, #fdf6e7, #fbefd9);
  border: 1px solid #ecd9ae; border-left: 4px solid var(--gold-500, #c1913f);
  border-radius: 12px; padding: 12px 18px; margin: 20px 0 4px;
}
.offline-notice .notice-text { flex: 1 1 300px; min-width: 240px; }
.offline-notice .notice-title {
  display: flex; align-items: center; gap: 6px;
  font-size: 14px; font-weight: 700; color: #8a6420; margin-bottom: 3px;
}
.offline-notice .notice-title svg { flex-shrink: 0; }
.offline-notice .notice-lead { font-size: 13px; color: var(--ink-2, #33445c); line-height: 1.65; margin: 0; }
.offline-notice .notice-lead b { color: #8a6420; }
.offline-notice .notice-tel { font-size: 12px; color: var(--muted, #6b7c93); margin: 3px 0 0; }
.offline-notice .notice-tel a { color: var(--blue-500, #1f6fd0); font-weight: 700; font-size: 14px; }
.qr-slot { display: flex; align-items: center; gap: 10px; flex: 0 0 auto; }
.qr-slot img { width: 104px; height: 104px; border-radius: 8px; border: 1px solid #e3ddc9; background: #fff; flex-shrink: 0; }
.qr-slot .qr-caption { font-size: 11.5px; color: var(--muted, #6b7c93); line-height: 1.55; max-width: 110px; }

/* ===== 可开函项目页：筛选工具栏 + 表格 ===== */
.pj-toolbar { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-bottom: 14px; }
.pj-toolbar input[type=text] {
  height: 38px; border-radius: 8px; border: 1px solid #d9e2ee; padding: 0 12px; font-size: 13.5px;
  outline: none; min-width: 240px; font-family: inherit; color: var(--ink-2);
}
.pj-toolbar input[type=text]:focus { border-color: var(--blue-400); }
.pj-toolbar .filter-select { height: 38px; border-radius: 8px; font-size: 13px; }
.pj-range { display: flex; align-items: center; gap: 6px; }
.pj-range input {
  height: 38px; border-radius: 8px; border: 1px solid #d9e2ee; padding: 0 10px; font-size: 13px;
  outline: none; font-family: inherit; color: var(--ink-2); background: #fff;
}
.pj-range input[type=date] { width: 150px; color-scheme: light; }
.pj-range input:focus { border-color: var(--blue-400); }
.pj-range .pj-sep { font-size: 12.5px; color: var(--muted); }
.pj-toolbar .rec-count { margin-left: auto; font-size: 12.5px; color: #93a1b3; }

/* 表格：可排序表头 + 行样式（覆盖全局 tr 的手型光标） */
.pj-table-wrap table { min-width: 880px; }
.pj-table tbody tr { cursor: default; }
.pj-table .pj-name { font-weight: 600; color: var(--navy-700); line-height: 1.5; }
.pj-table .pj-owner { font-size: 12.5px; color: var(--ink-2); line-height: 1.5; }
.pj-table .pj-region { font-size: 12.5px; color: var(--ink-2); white-space: nowrap; }
.pj-table .pj-amt { text-align: right; font-variant-numeric: tabular-nums; font-weight: 600; color: var(--navy-700); white-space: nowrap; }
.pj-table .th-sort { cursor: pointer; user-select: none; }
.pj-table .th-sort:hover { color: var(--navy-700); }
.pj-table .th-sort::after { content: '⇅'; font-size: 11px; opacity: .4; margin-left: 4px; }
.pj-table .th-sort.asc::after { content: '↑'; opacity: 1; color: var(--blue-600); }
.pj-table .th-sort.desc::after { content: '↓'; opacity: 1; color: var(--blue-600); }
.pj-loading td { text-align: center; color: var(--muted); padding: 46px 16px !important; font-size: 13px; letter-spacing: .05em; }@media (max-width: 720px) {
  .offline-notice { flex-direction: column; align-items: stretch; }
  .qr-slot img { width: 92px; height: 92px; }
  .pj-toolbar input[type=text] { min-width: 0; width: 100%; }
  .pj-toolbar .filter-select { width: 100%; }
  .pj-toolbar .rec-count { margin-left: 0; width: 100%; }
}
