/* 业主 2026-10-14 v7q：表单统一。
   1. 全站下拉：点开不再是系统列表，换成跟「客户联想」同一套实色浮层（选项多带搜索）。
   2. 选陪玩：搜索 + 下拉（几百个陪玩一个个摆不下）。
   3. 派单抽屉：顶上分部 + 大标题，下面分区只用标题和细线分层，不再一层层套框。
   4. 报备抽屉：电脑上也去掉分区卡片；客服 / 店长的金额做成金额卡片。 */

/* ── 1. 下拉浮层 ── */
.xsel-pop {
  position: fixed; z-index: 10050; display: flex; flex-direction: column; min-width: 0; padding: 6px;
  border-radius: var(--r-md, 14px); color: var(--text-1);
  background: linear-gradient(180deg, rgba(255, 238, 247, .05), rgba(255, 238, 247, .02)), var(--ink-850, #1a141e);
  box-shadow: var(--shadow-float, 0 18px 48px rgba(0, 0, 0, .45)), inset 0 0 0 1px var(--glass-edge-strong, rgba(255, 255, 255, .14));
  transform-origin: top center; animation: xy-picker-in .16s var(--ease-out, ease-out) both; overscroll-behavior: contain;
}
.xsel-pop.is-up { transform-origin: bottom center; }
.xsel-search { display: flex; flex: none; align-items: center; gap: 8px; height: 38px; margin: 0 0 6px; padding: 0 10px; border-radius: var(--r-sm, 10px); background: var(--bg-sunken, rgba(0, 0, 0, .25)); box-shadow: inset 0 0 0 1px var(--hairline); cursor: text; }
.xsel-search svg, .pp-box > svg { flex: none; width: 15px; height: 15px; fill: none; stroke: var(--text-4); stroke-width: 2; stroke-linecap: round; }
.xsel-pop .xsel-search input { flex: 1 1 auto; width: auto; min-width: 0; height: 36px; min-height: 0; padding: 0; border: 0; border-radius: 0; background: transparent; box-shadow: none; outline: none; color: var(--text-1); font-size: 14px; }
.xsel-list { position: relative; display: grid; flex: 1 1 auto; align-content: start; gap: 2px; min-height: 0; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; }
.xsel-group { padding: 8px 10px 4px; color: var(--text-4); font-size: 11px; font-weight: 700; letter-spacing: .06em; }
.xsel-opt { display: flex; align-items: center; gap: 10px; width: 100%; min-height: 38px; padding: 8px 10px 8px 12px; border: 0; border-radius: var(--r-sm, 10px); background: transparent; color: var(--text-1); font: inherit; font-size: 14px; text-align: left; cursor: pointer; transition: background var(--t-fast, .12s) var(--ease-out, ease-out); }
.xsel-opt > span { flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.xsel-opt svg { flex: none; width: 15px; height: 15px; fill: none; stroke: var(--brand, #f4b3cf); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; opacity: 0; }
.xsel-opt:hover, .xsel-opt.is-active { background: var(--bg-hover, rgba(255, 255, 255, .06)); }
.xsel-opt.is-on { color: var(--brand, #f4b3cf); font-weight: 600; }
.xsel-opt.is-on svg { opacity: 1; }
.xsel-opt:disabled { cursor: default; opacity: .4; }
.xsel-opt[hidden], .xsel-group[hidden], .xsel-empty[hidden], .pp-opt[hidden], .pp-empty[hidden] { display: none !important; }
.xsel-empty, .pp-empty { padding: 14px 12px; color: var(--text-4); font-size: 13px; text-align: center; }
select[aria-expanded="true"] { border-color: rgba(244, 179, 207, .55) !important; box-shadow: 0 0 0 3px rgba(244, 179, 207, .14) !important; }
@media (pointer: coarse) { .xsel-opt { min-height: 44px; font-size: 15px; } }

/* ── 2. 选陪玩：搜索 + 下拉 ── */
.pp { position: relative; min-width: 0; }
.pp-box { display: flex; align-items: center; gap: 8px; min-height: 46px; padding: 0 12px; border-radius: 12px; background: var(--bg-sunken, rgba(0, 0, 0, .25)); box-shadow: inset 0 0 0 1px var(--hairline-strong, var(--hairline)); cursor: text; transition: box-shadow .15s ease; }
.pp.is-open .pp-box, .pp-box:focus-within { box-shadow: inset 0 0 0 1px rgba(244, 179, 207, .55), 0 0 0 3px rgba(244, 179, 207, .12); }
:is(#drawer, #orderSheet, body) .pp .pp-box input.pp-input { flex: 1 1 auto; width: auto; min-width: 0; height: 44px; min-height: 0; padding: 0; border: 0; border-radius: 0; background: transparent; box-shadow: none; outline: none; color: var(--text-1); font-size: 14px; }
.pp-count { flex: none; color: var(--text-4); font-size: 12px; }
.pp-list {
  position: absolute; top: calc(100% + 6px); left: 0; right: 0; z-index: 60; display: none; max-height: 300px; padding: 6px; overflow-y: auto;
  border-radius: var(--r-md, 14px); overscroll-behavior: contain; scrollbar-width: thin;
  background: linear-gradient(180deg, rgba(255, 238, 247, .05), rgba(255, 238, 247, .02)), var(--ink-850, #1a141e);
  box-shadow: var(--shadow-float, 0 18px 48px rgba(0, 0, 0, .45)), inset 0 0 0 1px var(--glass-edge-strong, rgba(255, 255, 255, .14));
}
.pp.is-open .pp-list { display: grid; align-content: start; gap: 2px; animation: xy-picker-in .16s var(--ease-out, ease-out) both; }
.pp-opt { display: grid; grid-template-columns: auto minmax(0, 1fr) auto auto; align-items: center; gap: 10px; width: 100%; min-height: 48px; padding: 6px 10px 6px 6px; border: 0; border-radius: var(--r-sm, 10px); background: transparent; color: var(--text-1); font: inherit; text-align: left; cursor: pointer; }
.pp-opt:hover, .pp-opt.is-active { background: var(--bg-hover, rgba(255, 255, 255, .06)); }
.pp-opt .xy-ava { width: 34px; height: 34px; font-size: 12px; }
.pp-main { display: grid; gap: 2px; min-width: 0; }
.pp-main b { overflow: hidden; font-size: 14px; font-weight: 600; text-overflow: ellipsis; white-space: nowrap; }
.pp-main small { overflow: hidden; color: var(--text-3); font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.pp-opt em { padding: 1px 6px; border-radius: var(--r-pill, 999px); color: var(--warn, #f5c46b); font-size: 10.5px; font-style: normal; font-weight: 600; box-shadow: inset 0 0 0 1px rgba(245, 196, 107, .35); }
.pp-opt i { display: block; width: 0; }
.pp-check { display: grid; place-items: center; width: 20px; height: 20px; border-radius: 6px; box-shadow: inset 0 0 0 1.5px var(--hairline-strong, rgba(255, 255, 255, .2)); transition: background .12s ease; }
.pp-check svg { width: 13px; height: 13px; fill: none; stroke: #1a141e; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; opacity: 0; }
.pp-opt.is-on .pp-check { background: var(--brand, #f4b3cf); box-shadow: none; }
.pp-opt.is-on .pp-check svg { opacity: 1; }
.pp-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.pp-chips:empty { display: none; }
.pp-chip { display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 3px 0 3px; border-radius: var(--r-pill, 999px); background: rgba(244, 179, 207, .14); box-shadow: inset 0 0 0 1px rgba(244, 179, 207, .45); color: var(--text-1); font-size: 13px; }
.pp-chip .xy-ava { width: 28px; height: 28px; font-size: 11px; }
.pp-chip > button { display: grid; place-items: center; width: 28px; height: 28px; min-width: 0; min-height: 0; padding: 0; border: 0; border-radius: 50%; background: transparent; color: var(--text-3); font-size: 17px; line-height: 1; cursor: pointer; }
.pp-chip > button:hover { background: rgba(255, 255, 255, .08); color: var(--text-1); }
.drawer :is(.drawer-form-section, .field):has(.pp.is-open), .osh-sec:has(.pp.is-open), .osh-sec .field:has(.pp.is-open) { position: relative; z-index: 40; }
@media (prefers-reduced-motion: reduce) { .xsel-pop, .pp.is-open .pp-list { animation: none; } }

/* 下单侧板：选中的人每人一行单价，行尾 × 移除。 */
.osh-price { position: relative; grid-template-columns: minmax(0, 1fr) 132px 84px 30px; gap: 8px; }
@media (max-width: 560px) {
  .osh-price { grid-template-columns: minmax(0, 1fr) 112px 30px; }
  .osh-price-sum { grid-column: 1 / -1; grid-row: 2; }
}
.osh-price-x { display: grid; place-items: center; flex: none; width: 30px; height: 30px; min-height: 0; padding: 0; border: 0; border-radius: 50%; background: transparent; color: var(--text-4); font-size: 17px; line-height: 1; cursor: pointer; }
.osh-price-x:hover { background: rgba(255, 255, 255, .08); color: var(--text-1); }
.osh-chip-custom, .dspf-chip-custom { border: 1px dashed var(--hairline-strong, rgba(255, 255, 255, .22)) !important; background: transparent !important; color: var(--text-3) !important; }
.osh-chip-custom.is-on, .dspf-chip-custom:has(input:checked) { border-style: solid !important; border-color: rgba(244, 179, 207, .55) !important; background: rgba(244, 179, 207, .16) !important; color: var(--text-1) !important; box-shadow: none !important; }
.osh-extra { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 10px; }
.osh-extra .dp-seg { flex: 0 0 auto; min-width: 200px; }
.osh-extra .dp-yuan { flex: 1 1 120px; min-width: 0; }

/* ── 3. 派单抽屉 ── */
.dspf-sr { position: absolute !important; width: 1px !important; height: 1px !important; min-height: 0 !important; margin: -1px !important; padding: 0 !important; overflow: hidden !important; clip: rect(0 0 0 0) !important; border: 0 !important; white-space: nowrap !important; opacity: 0; pointer-events: none; }
#drawer .dspf { gap: 0; }
#drawer .dspf .dspf-hero { display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "seg code" "title title"; align-items: center; gap: 14px 12px; margin: 0; padding: 2px 2px 18px; border: 0; background: none; box-shadow: none; }
#drawer .dspf-divseg { grid-area: seg; display: inline-flex; flex-wrap: wrap; justify-self: start; gap: 4px; max-width: 100%; padding: 4px; border-radius: var(--r-pill, 999px); background: var(--bg-sunken); box-shadow: inset 0 0 0 1px var(--hairline); }
#drawer .dspf-divseg button { height: 34px; min-height: 34px; padding: 0 16px; border: 0; border-radius: var(--r-pill, 999px); background: transparent; color: var(--text-3); font-size: 13.5px; font-weight: 600; cursor: pointer; transition: background .15s ease, color .15s ease; }
#drawer .dspf-divseg button:hover { color: var(--text-1); }
#drawer .dspf-divseg button.is-on { background: var(--bg-raised); color: var(--text-1); box-shadow: var(--highlight, none), 0 0 0 1px var(--hairline-strong); }
#drawer .dspf-divnone { padding: 6px 10px; color: var(--text-3); font-size: 13px; }
#drawer .dspf .dspf-code { grid-area: code; display: flex; align-items: center; gap: 4px; min-width: 0; margin: 0; }
#drawer .dspf .dspf-code > label { margin: 0; color: var(--text-4); font-size: 11.5px; font-weight: 500; white-space: nowrap; }
#drawer .dspf .dspf-code input { width: 14ch; height: 30px; min-height: 30px; padding: 0 6px; border: 0; border-radius: 8px; background: transparent; box-shadow: none; color: var(--text-3); font-size: 12.5px; text-align: right; }
#drawer .dspf .dspf-code input:hover, #drawer .dspf .dspf-code input:focus { background: var(--bg-sunken); box-shadow: inset 0 0 0 1px var(--hairline); color: var(--text-1); outline: none; }
#drawer .dspf .dspf-title { grid-area: title; margin: 0; }
#drawer .dspf .dspf-title input { height: auto; min-height: 46px; padding: 4px 0; border: 0; border-radius: 0; background: transparent; box-shadow: inset 0 -1px 0 var(--hairline); color: var(--text-1); font-family: var(--font-serif); font-size: 22px; font-weight: 700; letter-spacing: .01em; transition: box-shadow .15s ease; }
#drawer .dspf .dspf-title input:hover { box-shadow: inset 0 -1px 0 var(--hairline-strong); }
#drawer .dspf .dspf-title input:focus { outline: none; box-shadow: inset 0 -2px 0 rgba(244, 179, 207, .7); }

#drawer .dspf .dspf-sec { margin: 0; padding: 22px 2px 4px; border: 0; border-radius: 0; background: none; box-shadow: none; }
#drawer .dspf .dspf-head { display: flex; align-items: center; gap: 12px; margin: 0 0 14px; }
#drawer .dspf .dspf-head h4 { flex: none; margin: 0; color: var(--text-1); font-family: var(--font-serif); font-size: 15px; font-weight: 700; letter-spacing: .04em; }
#drawer .dspf .dspf-head::after { content: ""; flex: 1 1 auto; height: 1px; background: linear-gradient(90deg, var(--hairline-strong, rgba(255, 255, 255, .16)), transparent); }
#drawer .dspf .drawer-form-fields { gap: 14px 12px; }
#drawer .dspf .field { min-width: 0; margin: 0; }
#drawer .dspf .dspf-people { grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); }
#drawer .dspf .dspf-notes { grid-template-columns: repeat(2, minmax(0, 1fr)); }
#drawer .dspf .dspf-notes textarea { min-height: 84px; }
#drawer .dspf .dspf-foot { grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); }
#drawer .dspf input[type="datetime-local"] { display: block; width: 100%; min-width: 0; max-width: 100%; color-scheme: dark; }
#drawer .dspf .dspf-link { display: flex; gap: 8px; min-width: 0; }
#drawer .dspf .dspf-link input { flex: 1 1 auto; min-width: 0; color: var(--text-3); font-size: 12.5px; text-overflow: ellipsis; }
#drawer .dspf .dspf-copy { flex: none; min-height: 46px; padding: 0 16px; }
#drawer .dspf .dspf-copy:disabled { opacity: .45; cursor: default; }

/* 计价：桌面一行三格（项目 / 规格 / 数量），自定义时两两一行。 */
#drawer .dspf .dspf-pricing { grid-template-columns: repeat(6, minmax(0, 1fr)); }
#drawer .dspf .dspf-pricing > .field { grid-column: span 2; }
#drawer .dspf .dspf-pricing > .field.c3 { grid-column: span 3; }
#drawer .dspf .dspf-pricing > .field.full { grid-column: 1 / -1; }
#drawer :is(.dspf, .invite-form) .dspf-seg { display: grid; grid-auto-columns: minmax(0, 1fr); grid-auto-flow: column; gap: 4px; padding: 4px; border-radius: var(--r-pill, 999px); background: var(--bg-sunken); box-shadow: inset 0 0 0 1px var(--hairline); }
#drawer :is(.dspf, .invite-form) .dspf-seg label { position: relative; display: block; min-width: 0; margin: 0; cursor: pointer; }
#drawer :is(.dspf, .invite-form) .dspf-seg input { position: absolute; inset: 0; width: 100%; height: 100%; min-height: 0; margin: 0; opacity: 0; cursor: pointer; }
#drawer :is(.dspf, .invite-form) .dspf-seg span { display: flex; align-items: center; justify-content: center; height: 38px; padding: 0 8px; border-radius: var(--r-pill, 999px); color: var(--text-3); font-size: 13.5px; font-weight: 600; white-space: nowrap; transition: background .15s ease, color .15s ease; }
#drawer :is(.dspf, .invite-form) .dspf-seg input:checked + span { background: var(--bg-raised); color: var(--text-1); box-shadow: var(--highlight, none), 0 0 0 1px var(--hairline-strong); }
#drawer :is(.dspf, .invite-form) .dspf-seg input:focus-visible + span { outline: 2px solid var(--brand, #f4b3cf); outline-offset: 1px; }
#drawer .dspf .dspf-money { position: relative; display: block; min-width: 0; }
#drawer .dspf .dspf-money i { position: absolute; top: 50%; left: 13px; color: var(--text-3); font-style: normal; font-weight: 600; transform: translateY(-50%); pointer-events: none; }
#drawer .dspf .dspf-money small { position: absolute; top: 50%; right: 12px; color: var(--text-4); font-size: 12px; transform: translateY(-50%); pointer-events: none; }
#drawer .dspf .dspf-money input { width: 100%; padding-left: 30px; padding-right: 52px; font-weight: 600; font-variant-numeric: tabular-nums; }
#drawer .dspf .dspf-extra .osh-chips { gap: 8px; }
#drawer .dspf .dspf-extra-row { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 10px; }
#drawer .dspf .dspf-extra-row .dspf-seg { flex: 0 0 auto; min-width: 220px; }
#drawer .dspf .dspf-extra-row .dspf-money { flex: 1 1 140px; }

@media (max-width: 720px) {
  #drawer .dspf .dspf-title input { font-size: 20px; }
  #drawer .dspf .dspf-divseg button { padding: 0 13px; }
  #drawer .dspf .dspf-people, #drawer .dspf .dspf-notes, #drawer .dspf .dspf-foot { grid-template-columns: minmax(0, 1fr); }
  #drawer .dspf .dspf-pricing > .field, #drawer .dspf .dspf-pricing > .field.c3 { grid-column: span 3; }
  #drawer .dspf .dspf-pricing > .field.m-full { grid-column: 1 / -1; }
  #drawer .dspf input:not([type="hidden"]):not([type="radio"]):not([type="checkbox"]), #drawer .dspf select, #drawer .dspf textarea { font-size: 16px; }
  #drawer .dspf .dspf-code input, #drawer .dspf .dspf-link input { font-size: 13px; }
  #drawer .dspf .dspf-extra-row .dspf-seg { flex: 1 1 100%; min-width: 0; }
  .osh-extra .dp-seg { flex: 1 1 100%; min-width: 0; }
}

/* ── 4. 报备抽屉：电脑上也不套分区卡片；标题后面一条细线分层 ── */
#drawer .report-drawer-form { gap: 0; }
#drawer .report-drawer-form .drawer-form-section { margin: 0; padding: 22px 2px 4px; border: 0; border-radius: 0; background: none; box-shadow: none; }
#drawer .report-drawer-form .drawer-form-section:first-child { padding-top: 4px; }
#drawer .report-drawer-form .drawer-form-section-head { display: flex; align-items: center; gap: 10px; margin: 0 0 14px; }
#drawer .report-drawer-form .drawer-form-section-head > span { width: auto; height: auto; min-width: 0; padding: 0; border-radius: 0; background: none; box-shadow: none; color: var(--brand, #f4b3cf); font-size: 11px; font-weight: 700; letter-spacing: .08em; }
#drawer .report-drawer-form .drawer-form-section-head > div { flex: none; }
#drawer .report-drawer-form .drawer-form-section-head h4 { margin: 0; color: var(--text-1); font-family: var(--font-serif); font-size: 15px; font-weight: 700; letter-spacing: .04em; }
#drawer .report-drawer-form .drawer-form-section-head::after { content: ""; flex: 1 1 auto; height: 1px; background: linear-gradient(90deg, var(--hairline-strong, rgba(255, 255, 255, .16)), transparent); }

/* 客服 / 店长的金额卡片：业主 2026-10-14 v7r 起跟陪玩一样只填一个金额（实付按会员折扣自动算），细线下面一行分成。 */
#drawer .report-drawer-form .report-amount-card.is-staff { padding: 12px 16px 12px; }
#drawer .report-drawer-form .report-amount-card.is-staff .report-money input:not([type="hidden"]):not([type="file"]) { height: 46px; min-height: 46px; font-size: 24px; }
#drawer .report-drawer-form .report-amount-card.is-staff .report-settlement-preview { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; height: auto; min-height: 0; margin: 8px 0 0; padding: 10px 0 0; border: 0; border-top: 1px solid var(--hairline); border-radius: 0; background: none; box-shadow: none; }
#drawer .report-drawer-form .report-amount-card.is-staff .report-settlement-preview > div { display: grid; gap: 2px; min-width: 0; min-height: 0; margin: 0; padding: 0; border: 0; border-radius: 0; background: none; box-shadow: none; }
#drawer .report-drawer-form .report-amount-card.is-staff .report-settlement-preview span { margin: 0; color: var(--text-4); font-size: 11.5px; }
#drawer .report-drawer-form .report-amount-card.is-staff .report-settlement-preview strong { overflow: hidden; margin: 0; color: var(--text-1); font-size: 14.5px; font-weight: 700; font-variant-numeric: tabular-nums; text-overflow: ellipsis; white-space: nowrap; }
#drawer .report-drawer-form .report-amount-card.is-staff .report-settlement-preview > div:first-child strong { color: var(--brand, #f4b3cf); }
@media (max-width: 720px) {
  #drawer .report-drawer-form .drawer-form-section { padding: 20px 2px 4px; border-bottom: 0; }
  #drawer .report-drawer-form .drawer-form-section:first-child { padding-top: 4px; }
  #drawer .report-drawer-form .report-amount-card.is-staff .report-money input:not([type="hidden"]):not([type="file"]) { font-size: 22px; }
}
@media (max-width: 420px) {
  #drawer .report-drawer-form .report-amount-card.is-staff .report-settlement-preview { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 12px; }
}

/* ── 5. 业主 2026-10-14 v7r：字段「标题」和「注释」分开看 ──
   标题：亮一档、粗一点、13.5px；必填 = 粉色小胶囊，选填 / 只读 = 灰色小胶囊；
   注释（.field-hint）：另起一行、11.5px、最淡的灰、不加粗。分区大标题再大一号。
   派单 / 报备 / 充值 / 人员这些抽屉陪玩、客服、管理、店长看到的都是同一套。 */
#drawer #drawerBody .field:not(.dspf-code) > label:not(.dspf-sr),
#drawer #drawerBody .dspf .dspf-label {
  display: flex; flex-wrap: wrap; align-items: center; gap: 3px 6px; margin: 0 0 8px;
  color: var(--text-2, #e9dfe6); font-size: 13.5px; font-weight: 600; letter-spacing: .01em; line-height: 1.35;
}
:is(#drawer, body) .field-necessity {
  display: inline-flex; align-items: center; height: 18px; margin: 0; padding: 0 7px; border-radius: var(--r-pill, 999px);
  background: rgba(244, 179, 207, .13); color: var(--brand, #f4b3cf); font-size: 10.5px; font-weight: 600; letter-spacing: .04em; line-height: 1; white-space: nowrap; vertical-align: middle;
}
:is(#drawer, body) .field-necessity.optional { background: rgba(255, 255, 255, .06); color: var(--text-4); font-weight: 500; }
:is(#drawer, body) .field-hint { display: block; flex: 1 0 100%; margin: 0; color: var(--text-4); font-size: 11.5px; font-weight: 400; letter-spacing: 0; line-height: 1.45; }
:is(#drawer, body) .field-hint:empty { display: none; }
#drawer .dspf .dspf-head h4, #drawer .report-drawer-form .drawer-form-section-head h4 { font-size: 16.5px; }

/* 指定陪玩：一整条可以打勾的按钮，勾上了底下才出搜索选择。 */

/* 抽屉底栏 = 深底液态玻璃（xyGlassActions 挂的类，宝宝 11-02），这里只定大小 */
#drawer .drawer-footer .lg-btn { display: inline-flex; justify-content: center; gap: 6px; height: 40px; min-height: 40px; padding: 0 20px; font-size: 14px; white-space: nowrap; }
#drawer .drawer-footer .lg-btn svg { width: 16px; height: 16px; }

/* 派单最底下的「预付金额」：跟取消 / 保存一排；大字总价，小字单价 × 数量。手机上单独占一行。 */
#drawer .drawer-footer:has(.dspf-prepay) { flex-wrap: wrap; align-items: center; }
#drawer .dspf-prepay { display: flex; flex: 1 1 220px; flex-wrap: wrap; align-items: baseline; gap: 0 8px; min-width: 0; margin-right: auto; }
#drawer .dspf-prepay:empty { display: none; }
#drawer .dspf-prepay .dspf-prepay-k { color: var(--text-2, #e9dfe6); font-size: 13px; font-weight: 600; }
#drawer .dspf-prepay .dspf-prepay-k::after { content: "："; }
#drawer .dspf-prepay b { color: var(--brand, #f4b3cf); font-size: 22px; font-weight: 700; font-variant-numeric: tabular-nums; line-height: 1.2; }
#drawer .dspf-prepay b em { margin-left: 2px; color: var(--text-3); font-size: 12px; font-style: normal; font-weight: 500; }
#drawer .dspf-prepay small { flex: 1 0 100%; overflow: hidden; color: var(--text-4); font-size: 11.5px; text-overflow: ellipsis; white-space: nowrap; }
@media (max-width: 720px) {
  #drawer .dspf-prepay { flex: 1 0 100%; margin: 0 0 6px; padding: 0 2px 8px; border-bottom: 1px solid var(--hairline); }
  #drawer .dspf-prepay small { white-space: normal; }
}

/* 业主 2026-10-14 v7s：下单表选了表上没价的陪玩——说清楚谁在哪个项目没价，能一键换到有价的项目。 */
.order-sheet .osh-noprice { margin: 8px 0 0; padding: 9px 12px; border-radius: 12px; background: rgba(244, 179, 207, .07); box-shadow: inset 0 0 0 1px rgba(244, 179, 207, .22); color: var(--text-3); font-size: 12.5px; line-height: 1.5; }
.order-sheet .osh-noprice-switch { min-height: 0; margin: 0 0 0 6px; padding: 0; border: 0; background: none; box-shadow: none; color: var(--brand, #f4b3cf); font: inherit; font-weight: 600; text-decoration: underline; text-underline-offset: 2px; cursor: pointer; }

/* 业主 2026-10-14 v7t：下单表 02 陪玩上方「不限 / 男陪 / 女陪」。 */
.order-sheet .osh-gender { width: 100%; max-width: 320px; margin: 0 0 10px; }
#drawer .dspf .dspf-gender .dspf-seg { max-width: 360px; }

/* ── 6. 业主 2026-10-14 v7v：下单表跟派单 / 报备 / 充值抽屉同一套外框 ──
   电脑：右侧浮起 680 宽、上下右各留 12、18 圆角；≤760：贴右满高 440 宽（手机就是全屏）。
   顶上标题栏 + 圆形关闭；分区「粉色编号 + 宋体标题 + 渐隐细线」；底部左边实付、右边取消 / 下单。 */
.xy-dsp .order-sheet { align-items: stretch; justify-content: flex-end; }
.xy-dsp .order-sheet .dsp-scrim { background: rgba(6, 3, 8, .5); -webkit-backdrop-filter: blur(10px) saturate(120%); backdrop-filter: blur(10px) saturate(120%); }
.xy-dsp .order-sheet .dsp-panel.osh-panel {
  width: min(680px, calc(100vw - 24px)); max-height: none; margin: 12px; border-radius: 18px;
  background: var(--glass-float-bg); box-shadow: var(--shadow-float); outline: 1px solid var(--hairline); outline-offset: -1px; transition: none;
}
.dsp-sheet .osh-header { flex: none; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 20px; border-bottom: 1px solid var(--hairline); background: rgba(255, 238, 247, .043); }
.dsp-sheet .osh-header h3 { margin: 0; min-width: 0; color: var(--text-1); font-size: 17px; font-weight: 700; line-height: 1.5; }
.dsp-sheet .osh-close { display: flex; align-items: center; justify-content: center; flex: none; width: 44px; height: 44px; min-height: 44px; padding: 0; border: 1px solid var(--hairline); border-radius: var(--r-pill, 999px); background: transparent; box-shadow: none; color: var(--text-2); cursor: pointer; }
.dsp-sheet .osh-close:hover { background: rgba(255, 255, 255, .06); color: var(--text-1); }
.dsp-sheet .osh-close svg { width: 18px; height: 18px; }
.order-sheet .osh-form { display: flex; flex-direction: column; flex: 1 1 auto; min-height: 0; margin: 0; }
.order-sheet .osh-body { flex: 1 1 auto; min-height: 0; padding: 18px 20px; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; scrollbar-color: rgba(255, 228, 240, .14) transparent; }
.order-sheet .osh-hero { padding: 2px 2px 18px; }
.order-sheet .osh-sec { display: block; margin: 0; padding: 22px 2px 4px; }
.order-sheet .osh-body > .osh-sec:first-child, .order-sheet .osh-hero + .osh-sec { padding-top: 4px; }
.order-sheet .osh-sec-head { display: flex; align-items: center; gap: 12px; margin: 0 0 14px; }
.order-sheet .osh-sec-head h4 { flex: none; display: flex; align-items: baseline; gap: 8px; margin: 0; color: var(--text-1); font-family: var(--font-serif); font-size: 16.5px; font-weight: 700; letter-spacing: .04em; }
.order-sheet .osh-sec-head::after { content: ""; order: 1; flex: 1 1 auto; height: 1px; background: linear-gradient(90deg, var(--hairline-strong, rgba(255, 255, 255, .16)), transparent); }
.order-sheet .osh-sec-head > :not(.osh-idx):not(h4) { order: 2; }
.order-sheet .osh-sec-code { color: var(--text-4); font-family: var(--font-sans, inherit); font-size: 12px; font-weight: 500; letter-spacing: 0; }
.order-sheet .osh-idx, #drawer .dspf .dspf-head .osh-idx { flex: none; color: var(--brand, #f4b3cf); font-size: 11px; font-weight: 700; letter-spacing: .08em; opacity: 1; }
.order-sheet .osh-count { margin-left: 0; }
.order-sheet .osh-grid { gap: 14px 12px; }
.order-sheet .osh-body .field > label { display: flex; flex-wrap: wrap; align-items: center; gap: 3px 6px; margin: 0 0 8px; color: var(--text-2, #e9dfe6); font-size: 13.5px; font-weight: 600; letter-spacing: .01em; line-height: 1.35; }
.order-sheet .osh-sec:has(.picker-options.show), .order-sheet .osh-sec .field:has(.picker-options.show) { position: relative; z-index: 40; }
.order-sheet .osh-edit { flex: none; display: inline-flex; align-items: center; gap: 5px; height: 30px; min-height: 30px; padding: 0 12px 0 10px; border-radius: var(--r-pill, 999px); font-size: 12.5px; }
.order-sheet .osh-edit svg { width: 14px; height: 14px; }

/* 分部胶囊、分段按钮：跟派单抽屉的同一套尺寸和选中态。 */
.order-sheet .dspf-divseg { display: inline-flex; flex-wrap: wrap; gap: 4px; max-width: 100%; padding: 4px; border-radius: var(--r-pill, 999px); background: var(--bg-sunken); box-shadow: inset 0 0 0 1px var(--hairline); }
.order-sheet .dspf-divseg button { height: 34px; min-height: 34px; padding: 0 16px; border: 0; border-radius: var(--r-pill, 999px); background: transparent; box-shadow: none; color: var(--text-3); font-size: 13.5px; font-weight: 600; cursor: pointer; transition: background .15s ease, color .15s ease; }
.order-sheet .dspf-divseg button:hover { color: var(--text-1); }
.order-sheet .dspf-divseg button.is-on { background: var(--bg-raised); color: var(--text-1); box-shadow: var(--highlight, none), 0 0 0 1px var(--hairline-strong); }
.order-sheet .dp-seg button { height: 38px; min-height: 38px; padding: 0 8px; color: var(--text-3); font-weight: 600; white-space: nowrap; }
.order-sheet .dp-seg button.is-on { color: var(--text-1); }
.order-sheet .osh-gender { max-width: 360px; margin: 0 0 12px; }

/* 从派单来的摘要卡：两列「标题 / 内容」，客户要求和备注占整行。 */
.order-sheet .osh-sum { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 16px; margin: 0; padding: 14px 16px; border-radius: var(--r-lg, 14px); background: var(--bg-sunken); box-shadow: inset 0 0 0 1px var(--hairline); }
.order-sheet .osh-sum-item { display: grid; gap: 3px; min-width: 0; margin: 0; }
.order-sheet .osh-sum-item.is-wide { grid-column: 1 / -1; padding-top: 10px; border-top: 1px solid var(--hairline); }
.order-sheet .osh-sum-item.is-wide + .osh-sum-item.is-wide { padding-top: 0; border-top: 0; }
.order-sheet .osh-sum dt { color: var(--text-4); font-size: 12px; }
.order-sheet .osh-sum dd { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 8px; min-width: 0; margin: 0; color: var(--text-1); font-size: 14px; font-weight: 600; line-height: 1.45; overflow-wrap: anywhere; }
.order-sheet .osh-sum dd small { color: var(--text-4); font-size: 12px; font-weight: 500; }
.order-sheet .osh-sum-item.is-wide dd { font-weight: 500; color: var(--text-2); }
.order-sheet .osh-note { display: flex; align-items: center; gap: 6px; margin: 10px 2px 0; color: var(--text-4); font-size: 12px; }
.order-sheet .osh-note svg { width: 14px; height: 14px; flex: none; }

/* 底部：跟派单抽屉底部一排——左边实付大字，右边取消 / 下单（药丸按钮、按内容宽）。 */
.order-sheet .osh-foot { flex: none; display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 8px; margin: 0; padding: 14px 20px; border-top: 1px solid var(--hairline); background: rgba(255, 238, 247, .043); }
.order-sheet .osh-foot > button { flex: none; display: inline-flex; align-items: center; justify-content: center; gap: 7px; height: 40px; min-height: 40px; padding: 0 16px; border-radius: var(--r-pill, 999px); font-size: 14px; font-weight: 600; }
.order-sheet .osh-foot > button svg { width: 16px; height: 16px; }
.order-sheet .dspf-prepay { display: flex; flex: 1 1 220px; flex-wrap: wrap; align-items: baseline; gap: 0 8px; min-width: 0; margin-right: auto; }
.order-sheet .dspf-prepay .dspf-prepay-k { color: var(--text-2, #e9dfe6); font-size: 13px; font-weight: 600; }
.order-sheet .dspf-prepay .dspf-prepay-k::after { content: "："; }
.order-sheet .dspf-prepay b { color: var(--brand, #f4b3cf); font-size: 22px; font-weight: 700; font-variant-numeric: tabular-nums; line-height: 1.2; }
.order-sheet .dspf-prepay small { flex: 1 0 100%; overflow: hidden; color: var(--text-4); font-size: 11.5px; text-overflow: ellipsis; white-space: nowrap; }
.order-sheet .dspf-prepay small.is-short { color: var(--down, #ff8f8f); }

/* 打开 / 收起：跟抽屉一样从右边滑进滑出（手机也是），不再从底下弹。 */
.xy-dsp .order-sheet.is-enter .dsp-panel { animation: dsp-panel-in .5s cubic-bezier(.22, 1, .36, 1) both; }
.xy-dsp .order-sheet.is-leaving .dsp-panel { animation: dsp-panel-out .24s cubic-bezier(.4, 0, 1, 1) forwards; }
.xy-dsp .order-sheet.is-enter :is(.osh-body > *, .osh-foot) { animation: dsp-rise .55s cubic-bezier(.22, 1, .36, 1) both; }
.xy-dsp .order-sheet.is-enter .osh-body > :nth-child(2) { animation-delay: .06s; }
.xy-dsp .order-sheet.is-enter .osh-body > :nth-child(3) { animation-delay: .1s; }
.xy-dsp .order-sheet.is-enter .osh-body > :nth-child(4) { animation-delay: .14s; }
.xy-dsp .order-sheet.is-enter .osh-foot { animation-delay: .18s; }
@media (max-width: 979px) {
  .xy-dsp .order-sheet { align-items: stretch; justify-content: flex-end; }
  .xy-dsp .order-sheet .dsp-panel.osh-panel { width: min(680px, calc(100vw - 24px)); max-height: none; margin: 12px; border-radius: 18px; }
  .xy-dsp .order-sheet.is-enter .dsp-panel { animation: dsp-panel-in .5s cubic-bezier(.22, 1, .36, 1) both; }
  .xy-dsp .order-sheet.is-leaving .dsp-panel { animation: dsp-panel-out .24s cubic-bezier(.4, 0, 1, 1) forwards; }
}
@media (max-width: 760px) {
  .xy-dsp .order-sheet .dsp-panel.osh-panel { width: min(440px, 100%); height: 100%; margin: 0; border-radius: 0; outline: 0; border-left: 1px solid var(--hairline); }
  .order-sheet .osh-foot { padding: 14px 20px calc(12px + env(safe-area-inset-bottom, 0px)); }
  .order-sheet .dspf-prepay { flex: 1 0 100%; margin: 0 0 6px; padding: 0 2px 8px; border-bottom: 1px solid var(--hairline); }
  .order-sheet .dspf-prepay small { white-space: normal; }
  .order-sheet .osh-body input:not([type="hidden"]):not([type="radio"]):not([type="checkbox"]), .order-sheet .osh-body select { font-size: 16px; }
  .order-sheet .dspf-divseg button { padding: 0 13px; }
}
@media (prefers-reduced-motion: reduce) {
  .xy-dsp .order-sheet :is(.dsp-scrim, .dsp-panel, .osh-body > *, .osh-foot) { animation: none !important; }
}

/* v7v 补：派单抽屉的分区编号去掉通用方块底，跟报备抽屉 / 下单表一样是纯粉色数字；派单号用正文字体。 */
#drawer .dspf .dspf-head > .osh-idx { width: auto; height: auto; min-width: 0; padding: 0; border-radius: 0; background: none; box-shadow: none; line-height: 1.2; }
.order-sheet .osh-sec-head h4 .osh-sec-code { font-family: var(--font-sans, system-ui, sans-serif); font-weight: 500; }

/* 咸鱼 2026-10-28（15）：资料抽屉「先看后改」—— 查看时一行一个「名称 —— 内容」，不是一屏输入框（index.html drawerViewMode） */
#drawer.is-view #drawerBody .personnel-drawer-fields { display: block; }
#drawer.is-view #drawerBody .field {
  display: grid; grid-template-columns: 96px minmax(0, 1fr); align-items: baseline; column-gap: 16px;
  margin: 0; padding: 12px 2px; border-bottom: 1px solid var(--hairline);
}
#drawer.is-view #drawerBody .field:not(.dspf-code) > :is(label, .dspf-label) { margin: 0; }
#drawer.is-view #drawerBody .field :is(input, select, textarea):is(:disabled, [readonly]) {
  min-height: 0; height: auto; padding: 0; border: 0; border-radius: 0; background: none; box-shadow: none; opacity: 1;
  color: var(--text-1); -webkit-text-fill-color: var(--text-1); font-size: 14.5px; font-weight: 500;
  appearance: none; -webkit-appearance: none; resize: none; cursor: default; field-sizing: content;
}
#drawer.is-view #drawerBody ::placeholder { color: transparent; }
#drawer.is-view #drawerBody .field[data-empty] > :not(label) { display: none; }
#drawer.is-view #drawerBody .field[data-empty]::after { content: "未填写"; font-size: 14px; color: var(--text-4); }
/* 查看时：名称灰、内容白（跟上面「账户概览」一致）；等级只显示选中的那枚，不要框和「更换」；上传按钮点「编辑」再出现 */
#drawer.is-view #drawerBody .field:not(.dspf-code) > :is(label, .dspf-label) { color: var(--text-3); font-size: 13.5px; font-weight: 500; }
#drawer.is-view #drawerBody .xy-pick > .xy-pick-btn { min-height: 0; padding: 0; background: none; box-shadow: none; pointer-events: none; }
#drawer.is-view #drawerBody .xy-pick-edit,
#drawer.is-view #drawerBody .xy-media .profile-avatar-upload { display: none; }
/* 陪玩资料「游戏分部 / 档位」查看时：只列在的分部，一行「无畏契约 超凡男」，不要勾选框和底框（legend 浮动后才能进网格的名称列） */
#drawer.is-view #drawerBody .invite-div-field > legend { float: left; width: auto; padding: 0; color: var(--text-3); font-size: 13.5px; font-weight: 500; }
#drawer.is-view #drawerBody .invite-div-list { display: flex; flex-wrap: wrap; gap: 6px 18px; }
#drawer.is-view #drawerBody .invite-div-row { min-height: 0; padding: 0; gap: 8px; background: none; box-shadow: none; }
#drawer.is-view #drawerBody .invite-div-row span { flex: none; color: var(--text-3); }
#drawer.is-view #drawerBody .invite-div-row select { width: auto; }
#drawer.is-view #drawerBody .invite-div-row:not(.is-on),
#drawer.is-view #drawerBody .invite-div-row input[type="checkbox"] { display: none; }
/* 附加标签查看时只显示挂上的；一个没挂就跟别的空字段一样写「未填写」 */
#drawer.is-view #drawerBody .ptag-field .osh-chip:not(:has(input:checked)) { display: none; }
#drawer.is-view #drawerBody .ptag-field:not(:has(input:checked)) > .osh-chips { display: none; }
#drawer.is-view #drawerBody .ptag-field:not(:has(input:checked))::after { content: "未填写"; font-size: 14px; color: var(--text-4); }
