/* ============================================================
 * 批 V17 U1 签证登记（改法清单 #253；设计稿 rv/V17-designs「U1_签证登记」）：这一页自己的样式
 *   零件（数字条 / 步骤带 / 筛选条 / 表格 / 抽屉 / 字段区 …）的样式在 core-v17-ui.css，这里只放 U0 没有的几处：
 *   数字条下面「另有 N 件已逾期」、步骤带右上角「办理步骤」、「现在要做」卡里的几行、邀请函卡片、
 *   以及抽屉里没重画的老块（材料页签的案件资料 / 护照照片、记录页签的各步）套上新颜色。类名 vs- = 列表页，vd- = 案件抽屉
 *   index.html 里这个文件排在 core-v17-ui.css 前面（用例 5538 ⑧ 认「公共零件样式、外壳样式、</head>」三行连着）：
 *   所以凡是和零件类名写在同一个元素上、又要盖掉零件同一条属性的规则，选择器都带上零件的类名（.u-note.vs-inval、.u-btn.vd-info、.u-tbl.vs-tbl …），靠多一级类名赢，不靠先后
 * ============================================================ */

/* ---------- 列表页 ---------- */
.vs-page .vs-body, .vs-page .vs-body-in { display: flex; flex-direction: column; gap: var(--u-space-4); min-width: 0; }
/* 数字条：「7 天内到期」那格下面另出一行「另有 N 件已逾期」 */
.vs-stat-wrap { flex: 1 1 150px; display: flex; flex-direction: column; min-width: 0; border-right: 1px solid var(--u-line); }
.vs-stat-wrap > .u-stat-i { flex: 1 1 auto; border-right: 0; padding-bottom: 4px; }
.vs-od { display: inline-flex; align-items: center; gap: 4px; align-self: flex-start; margin: 0 20px 10px; padding: 0; border: 0; background: none; font-family: inherit; font-size: 12px; line-height: 18px; font-weight: 500; color: var(--u-danger); cursor: pointer; text-align: left; }
.vs-od:hover > span { text-decoration: underline; }
.vs-od.on > span { text-decoration: underline; font-weight: 600; }
.vs-od:focus-visible { outline: 2px solid var(--u-brand); outline-offset: 2px; border-radius: 2px; }
/* 步骤带：右上角「办理步骤」（第一行给它让出位置） */
.vs-pipe { position: relative; }
.vs-pipe > .u-pipe > .u-pipe-row:first-child { padding-right: 96px; }
.vs-pipe.ru > .u-pipe > .u-pipe-row:first-child { padding-right: 156px; }
.u-link.vs-sop-link { position: absolute; top: 20px; right: 20px; font-size: 13px; line-height: 20px; white-space: nowrap; }
.u-note.vs-pipe-none { background: var(--u-surface); border: 1px solid var(--u-line); border-radius: var(--u-radius-lg); padding: 12px 20px; }
.vs-pipe-none > .vs-sop-link { position: static; }
.u-note.vs-inval { justify-content: flex-start; background: var(--u-warning-soft); color: var(--u-warning); }
.vs-inval > .u-link { margin-left: auto; }
/* 筛选条：签证状态下拉和它的 ⓘ 贴在一起 */
.vs-vsf { display: inline-flex; align-items: center; gap: 2px; }
.u-btn.vs-legend { font-size: 14px; color: var(--u-ink-3); }
.vs-list .u-toolbar .u-search { width: 260px; max-width: 100%; }
.vs-exp:empty { display: none; }
/* 表格：人员那格第二行的小块之间留空；订单、客户放不下截断 */
.vs-tbl td .u-cell .s > .u-code { flex: none; }
.vs-tbl td .u-cell .s > .u-tag { flex: none; }
.vs-tbl td .u-cell .m > a.u-link { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
/* 人员一格的名字（批 V17 U1 跟进二，审核方 #270 11-16 00:34）：不带空格的长名字（ALEKSANDROVA-KONSTANTINOVSKAYA）原来撑出格子、压到「订单 · 客户」那一栏——
 * 放不下就在任意位置折行，不出格 */
.vs-tbl td .u-cell .m > span.no-i18n { min-width: 0; overflow-wrap: anywhere; }
.vs-tbl td .u-cell .s > span.no-i18n { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.vs-tbl td .u-who { max-width: 100%; }
/* 「最近期限」第二行（批 V17 U1 跟进，审核方 #253 11-15 23:44）：俄文 1366 下期限名长，一行放不下时只截期限名，日期整个留着 */
.vs-tbl td .u-cell .s .vs-due { display: flex; flex: 1 1 auto; align-items: baseline; gap: 4px; min-width: 0; }
.vs-tbl td .u-cell .s .vs-due > .nm { flex: 0 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.vs-tbl td .u-cell .s .vs-due > .dt { flex: none; white-space: nowrap; }
@media (max-width: 767px) {
  .vs-pipe > .u-pipe > .u-pipe-row:first-child, .vs-pipe.ru > .u-pipe > .u-pipe-row:first-child { padding-right: 20px; }
  .u-link.vs-sop-link { position: static; display: inline-block; margin: 0 20px 8px; }
  .u-card.vs-list { overflow-x: hidden; }
  .u-tbl.vs-tbl, .u-tbl.vs-tbl > tbody, .u-tbl.vs-tbl > tbody > tr, .u-tbl.vs-tbl > tbody > tr > td { display: block; width: auto; }
  .u-tbl.vs-tbl > colgroup, .u-tbl.vs-tbl > thead { display: none; }
  .u-tbl.vs-tbl > tbody > tr { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 6px 12px; padding: 12px 16px; border-bottom: 1px solid var(--u-line); position: relative; }
  .u-tbl.vs-tbl > tbody > tr > td { padding: 0; border: 0; }
  .u-tbl.vs-tbl > tbody > tr > td.go { position: absolute; right: 12px; top: 12px; }
  .vs-list .u-toolbar .u-search { width: 100%; }
}

/* ---------- 案件抽屉 ---------- */
.u-tag.vd-st, .u-tag.vd-late { flex: none; }
.u-dh-meta [data-vd-pp] { letter-spacing: 0.02em; }
/* 「现在要做」卡里的几行 */
.vd-now-meta { font-size: 12px; line-height: 18px; color: var(--u-ink-3); }
.vd-now-line { display: flex; align-items: flex-start; gap: 6px; font-size: 13px; line-height: 20px; color: var(--u-ink-2); }
.vd-now-line > .u-ic { flex: none; margin-top: 3px; }
.vd-now-line > span { min-width: 0; overflow-wrap: anywhere; }
.vd-now-line.danger { color: var(--u-danger); }
.vd-now-line.warning { color: var(--u-warning); }
.vd-now-line > .vd-info { margin-left: auto; }
/* 批 V18 V18-10：「现在要做」里「待我复核…」是醒目色块；列表「当前步骤」的「· 等复核」不拆行 */
.vd-now-line.vd-wait.me { padding: 6px 10px; border-radius: var(--u-radius-md); background: var(--u-warning-soft); color: var(--u-warning); font-weight: 600; }
.vs-rvw { white-space: nowrap; }
.vd-gate { display: flex; flex-direction: column; gap: 8px; }
.vd-gate-act { display: flex; justify-content: flex-end; }
.vd-gate-act:has(> [hidden]) { display: none; }
.u-label.vd-gf { min-width: 0; }
.vd-gf > .k { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.vd-gf-ro { display: flex; align-items: center; gap: 8px; min-height: 36px; font-size: 14px; }
.vd-gf .vsf-file { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; min-height: 36px; font-size: 13px; }
.vd-how { font-size: 13px; line-height: 20px; color: var(--u-ink-2); }
.vd-how > summary { cursor: pointer; color: var(--u-brand); list-style: none; }
.vd-how > summary::-webkit-details-marker { display: none; }
.vd-how > summary:focus-visible { outline: 2px solid var(--u-brand); outline-offset: 2px; border-radius: 2px; }
.vd-how-bd { display: flex; flex-direction: column; gap: 4px; margin-top: 6px; padding: 10px 12px; border-radius: var(--u-radius-md); background: var(--u-ground); }
.u-btn.vd-info { font-size: 14px; color: var(--u-ink-3); flex: none; }
/* 复核（步内复核 / 老复核卡 / 邀请函复核）：一块浅底，按钮照新样子 */
.vd-rv { display: flex; flex-direction: column; gap: 8px; padding: 12px; border-radius: var(--u-radius-md); background: var(--u-ground); font-size: 13px; line-height: 20px; color: var(--u-ink-2); }
.vd-rv-hd { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.vd-rv-hd > h3 { margin: 0; font-size: 13px; line-height: 20px; font-weight: 600; color: var(--u-ink); }
.vd-rv-hd > .sub { font-size: 12px; color: var(--u-ink-3); }
.vd-rv-bd { display: flex; flex-direction: column; gap: 4px; }
.vd-rv .small { font-size: 12px; line-height: 18px; }
.vd-rv .muted { color: var(--u-ink-3); }
.vd-rv .mt8 { margin-top: 4px; }
.vd-ro { margin: 0 24px; }
/* 页签的几块 */
.vd3 { display: flex; flex-direction: column; min-width: 0; }
.vd3-pane { display: flex; flex-direction: column; gap: 24px; min-width: 0; }
.vd3-pane[hidden] { display: none; }
.vd-dsub { display: block; font-size: 12px; line-height: 18px; color: var(--u-ink-3); }
.vd-dsub.u-t-danger { color: var(--u-danger); }
.vd-dsub.u-t-warning { color: var(--u-warning); }
.u-sec-hd > .vd-info { margin-left: 4px; margin-right: auto; }
.u-sec-hd > .u-t-muted { margin-left: auto; font-size: 13px; }
.vd-plan-line { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 14px; line-height: 22px; }
.vd-plan-line .u-t-muted { font-size: 13px; }
.vd-span { font-size: 13px; line-height: 20px; color: var(--u-ink-2); }
.vd-why { font-size: 12px; line-height: 18px; color: var(--u-ink-3); max-width: 260px; margin-right: 8px; }
.vd-foot-l { display: inline-flex; align-items: center; gap: 8px; }
.vd-foot-r { display: inline-flex; align-items: center; }
/* 标题行「⋯」里的删除 / 申请删除（Core.recycleDel 自己画的按钮）照菜单项的样子 */
.u-more-menu > .vd-rc { display: block; }
.u-more-menu > .vd-rc:empty { display: none; }
.u-more-menu > .vd-rc > button, .u-more-menu > .vd-rc > .btn { display: flex; align-items: center; width: 100%; padding: 7px 10px; border: 0; border-radius: var(--u-radius-sm); background: none; font-family: inherit; font-size: 14px; line-height: 22px; font-weight: 400; color: var(--u-danger); cursor: pointer; white-space: nowrap; height: auto; box-shadow: none; }
.u-more-menu > .vd-rc > button:hover:not(:disabled) { background: var(--u-danger-soft); }
.u-more-menu > .vd-rc > button:disabled { color: var(--u-ink-3); cursor: default; }
/* 邀请函：一封一张卡 */
.vd-iv-list { display: flex; flex-direction: column; gap: 12px; }
.vd-iv { padding: 14px 16px; display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.vd-iv-hd { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; min-width: 0; }
.vd-iv-hd > b { font-size: 14px; line-height: 22px; font-weight: 600; color: var(--u-ink); overflow-wrap: anywhere; min-width: 0; }
.vd-iv-acts { margin-left: auto; display: inline-flex; align-items: center; gap: 2px; flex: none; }
.vd-iv-line { font-size: 13px; line-height: 20px; color: var(--u-ink-2); overflow-wrap: anywhere; }
.vd-iv.void > .vd-iv-hd > b, .vd-iv.void > .vd-iv-line { color: var(--u-ink-3); }
.vd-iv-people { display: flex; flex-wrap: wrap; gap: 6px; }
.vd-iv-chip { display: inline-flex; align-items: center; gap: 8px; max-width: 100%; padding: 3px 10px; border-radius: var(--u-radius-sm); background: var(--u-neutral-soft); font-size: 13px; line-height: 20px; color: var(--u-ink); overflow-wrap: anywhere; }
.vd-iv-chip > .own { font-size: 12px; color: var(--u-brand); white-space: nowrap; }
.vd-iv-chip.other { color: var(--u-ink-2); }
.vd-iv-note { font-size: 12px; line-height: 18px; color: var(--u-ink-3); }
.vd-iv-ft { display: flex; flex-direction: column; gap: 4px; padding-top: 8px; border-top: 1px solid var(--u-line); }
.vd-ivfee { display: flex; flex-wrap: wrap; gap: 2px 12px; font-size: 12px; line-height: 18px; color: var(--u-ink-2); }
.vd-ivfee > span:last-child { color: var(--u-ink-3); }
.vd-ivfee .nw { white-space: nowrap; }
.vd-iv-fee { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; font-size: 13px; line-height: 20px; color: var(--u-ink-2); }
.vd-iv-fee > .k { color: var(--u-ink-3); }
.vd-iv-fee > b { font-weight: 600; color: var(--u-ink); }
/* 记录页签：各步（V16-D1 的竖排，换成新颜色） */
.u-drawer .vd2-steps { display: flex; flex-direction: column; }
.u-drawer .vd2-step { display: flex; align-items: center; gap: 12px; padding: 8px 0; border-bottom: 1px solid var(--u-line); }
.u-drawer .vd2-step:last-child { border-bottom: 0; }
.u-drawer .vd2-step > .dot { flex: none; width: 24px; height: 24px; border-radius: var(--u-radius-pill); display: inline-flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 600; background: var(--u-neutral-soft); color: var(--u-ink-3); font-variant-numeric: tabular-nums; }
.u-drawer .vd2-step.done > .dot { background: var(--u-brand); color: var(--u-surface); }
.u-drawer .vd2-step.cur > .dot { background: var(--u-brand-soft); color: var(--u-brand); box-shadow: inset 0 0 0 1px var(--u-brand-line); }
.u-drawer .vd2-step > .st-main { flex: 1; min-width: 0; }
.u-drawer .vd2-step .nm { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font-size: 14px; line-height: 22px; color: var(--u-ink); }
.u-drawer .vd2-step.todo .nm, .u-drawer .vd2-step.skip .nm { color: var(--u-ink-2); }
.u-drawer .vd2-step .meta { font-size: 12px; line-height: 18px; color: var(--u-ink-3); }
/* 材料页签里没重画的老块（护照照片、案件资料）：换成新的边框、字和按钮颜色，结构不动 */
/* 批 V19 V19-13c：材料页签里那两张老卡片（全部字段、护照照片）换成 u-card（带 data-legacy），下面几条并列认它，样子照旧 */
.u-drawer .vd3 .card, .u-drawer .vd3 .u-card:where([data-legacy]) { border: 1px solid var(--u-line); border-radius: var(--u-radius-lg); box-shadow: none; background: var(--u-surface); margin: 0; }
.u-drawer .vd3 .card > .card-hd, .u-drawer .vd3 .u-card:where([data-legacy]) > .card-hd { padding: 12px 16px; border-bottom: 1px solid var(--u-line); background: none; gap: 8px; flex-wrap: wrap; }
.u-drawer .vd3 .card > .card-hd h3, .u-drawer .vd3 .u-card:where([data-legacy]) > .card-hd h3 { font-size: var(--u-fs-title); line-height: var(--u-lh-title); font-weight: 600; color: var(--u-ink); }
.u-drawer .vd3 .card > .card-hd .sub, .u-drawer .vd3 .u-card:where([data-legacy]) > .card-hd .sub { font-size: 12px; line-height: 18px; color: var(--u-ink-3); }
.u-drawer .vd3 .card > .card-bd, .u-drawer .vd3 .u-card:where([data-legacy]) > .card-bd { padding: 16px; }
.u-drawer .vd3 details.card:not([open]) > .card-hd, .u-drawer .vd3 details.u-card:where([data-legacy]):not([open]) > .card-hd { border-bottom: 0; }
.u-drawer .vd3 .field > label { font-size: 12px; line-height: 18px; color: var(--u-ink-2); font-weight: 400; }
/* 批 V18 V18-33 B（审核方 #365，Mike 19:08）：签证抽屉里的老按钮照通用别名，只是一律用小号 32（原来自己写高 32 / 28、字 13） */
.u-drawer .vd3 .btn { min-height: 32px; padding: 4px 12px; }
.u-drawer .vd3 .tag { border-radius: var(--u-radius-sm); }
@media (max-width: 767px) {
  .vd-iv-acts { margin-left: 0; }
  .vd-why { max-width: none; }
}
