/* iPad · 顾客档案 —— 段内样式，类名 iu- 前缀。尺寸 / 颜色取自 origin/main 对应组件的 StyleSheet。 */
.iu-root { position: absolute; inset: 0; }
.iu-root .g { flex: 1; }
.iu-root b, .iu-root small, .iu-root span { min-width: 0; }

/* 通用 */
.iu-btn { display: inline-flex; align-items: center; justify-content: center; gap: 7px; border-radius: 10px; border: 1px solid #E5E7EB; padding: 11px 16px; font-size: 14px; font-weight: 600; color: #374151; background: #fff; white-space: nowrap; }
.iu-btn.pri { background: #3DCAB1; border-color: #3DCAB1; color: #fff; }
.iu-btn.tl { background: #3DCAB115; border-color: #3DCAB144; color: #0F766E; }
.iu-btn.ghost { background: #F3F4F6; border-color: #F3F4F6; color: #4B5563; }
.iu-btn.off { opacity: .4; } .iu-btn.g { flex: 1; }
.iu-btn.sm { padding: 0 14px; height: 36px; font-size: 13px; border-radius: 8px; }
.iu-chip { height: 32px; display: inline-flex; align-items: center; padding: 0 14px; border-radius: 16px; background: #F3F4F6; font-size: 13px; font-weight: 500; color: #6B7280; white-space: nowrap; }
.iu-chip.on { background: #3DCAB115; color: #0F766E; font-weight: 600; }
.iu-chip.sm { height: 28px; padding: 0 12px; font-size: 12px; }
.iu-ava { width: 44px; height: 44px; border-radius: 22px; flex: none; display: inline-flex; align-items: center; justify-content: center; font: 700 15px Inter, sans-serif; font-style: normal; }
.iu-ava.lg { width: 64px; height: 64px; border-radius: 32px; font-size: 22px; }
.iu-ava.sm { width: 36px; height: 36px; border-radius: 18px; font-size: 13px; background: #E0F2FE; color: #0369A1; }
.iu-vip { padding: 2px 8px; border-radius: 6px; background: #FEF3C7; color: #B45309; font: 700 11px Inter, sans-serif; font-style: normal; letter-spacing: .4px; }
.iu-caret { display: inline-block; width: 2px; height: 17px; margin-left: 2px; vertical-align: -3px; background: #3DCAB1; animation: iu-blink 1s steps(1) infinite; }
@keyframes iu-blink { 50% { opacity: 0; } }
.iu-card { background: #fff; border: 1px solid #EEF0F3; border-radius: 14px; padding: 16px 18px; }
.iu-sec { display: block; font-size: 12px; font-weight: 600; color: #9CA3AF; letter-spacing: .3px; margin: 4px 0 2px; }

/* ---------- 顾客列表 ---------- */
.iu-list { position: absolute; inset: 0; display: flex; flex-direction: column; background: #fff; }
.iu-lh { height: 76px; flex: none; display: flex; align-items: center; gap: 12px; padding: 0 28px; border-bottom: 1px solid #E5E7EB; }
.iu-lh > div:first-child { display: flex; flex-direction: column; gap: 4px; }
.iu-lh b { font-size: 22px; font-weight: 700; color: #24252C; } .iu-lh small { font-size: 12px; color: #9CA3AF; }
.iu-newbtn { height: 36px; display: inline-flex; align-items: center; gap: 6px; padding: 0 14px; border-radius: 8px; background: #3DCAB1; color: #fff; font-size: 13px; font-weight: 600; }
.iu-fb { flex: none; display: flex; align-items: center; gap: 14px; padding: 14px 28px; border-bottom: 1px solid #F3F4F6; }
.iu-search { width: 340px; height: 40px; flex: none; display: flex; align-items: center; gap: 8px; padding: 0 12px; border-radius: 10px; background: #F3F4F6; color: #9CA3AF; font-size: 14px; }
.iu-search.has { color: #24252C; box-shadow: inset 0 0 0 2px #3DCAB1; background: #fff; }
.iu-search.sm { width: auto; height: 36px; font-size: 13px; }
.iu-chips { display: flex; gap: 8px; } .iu-chips.sm { gap: 6px; }
.iu-rows { flex: 1; min-height: 0; overflow: hidden; padding: 18px 28px; display: flex; flex-direction: column; gap: 8px; }
.iu-row { display: flex; align-items: center; gap: 14px; padding: 12px 16px; border-radius: 12px; background: #F9FAFB; border: 1px solid #F3F4F6; animation: kt-fade .2s ease; }
.iu-rm { flex: 1; display: flex; flex-direction: column; gap: 4px; }
.iu-rn { display: flex; align-items: center; gap: 8px; }
.iu-rn b { font-size: 15px; font-weight: 600; color: #0A1629; }
.iu-rm small { font-size: 12px; color: #91929E; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.iu-rm small.warn { color: #D89575; }
.iu-rs { display: flex; flex-direction: column; align-items: flex-end; gap: 2px; }
.iu-rs b { font: 700 15px Inter, sans-serif; color: #24252C; } .iu-rs small { font-size: 11px; color: #9CA3AF; }
.iu-empty { padding: 40px; text-align: center; font-size: 14px; color: #9CA3AF; font-style: italic; }

/* 弹窗表单 */
.iu-mh { display: flex; align-items: center; justify-content: space-between; margin-bottom: 4px; }
.iu-mh b { font-size: 18px; font-weight: 700; color: #0A1629; }
.iu-x { width: 32px; height: 32px; border-radius: 16px; background: #F3F4F6; color: #6B7280; display: inline-flex; align-items: center; justify-content: center; }
.iu-fl { font-size: 13px; font-weight: 600; color: #374151; margin-top: 4px; }
.iu-in { height: 44px; display: flex; align-items: center; padding: 0 14px; border-radius: 10px; border: 1px solid #E5E7EB; background: #F9FAFB; font-size: 15px; color: #24252C; }
.iu-in span { color: #9CA3AF; } .iu-in.focus { border-color: #3DCAB1; background: #fff; box-shadow: 0 0 0 3px #3DCAB122; }
.iu-in.ro { color: #6B7280; }
.iu-mf { display: flex; gap: 10px; margin-top: 10px; }
.iu-help { font-size: 13px; color: #0F766E; background: #3DCAB112; border-radius: 8px; padding: 8px 12px; }

/* ---------- 顾客详情 ---------- */
.iu-det { position: absolute; inset: 0; display: flex; flex-direction: column; background: #F8FAFB; }
.iu-dtb { height: 56px; flex: none; display: flex; align-items: center; gap: 12px; padding: 0 24px; background: #fff; border-bottom: 1px solid #EEF0F3; }
.iu-dtb > b { font-size: 16px; font-weight: 700; color: #0A1629; }
.iu-back { width: 36px; height: 36px; border-radius: 8px; background: #F3F4F6; color: #374151; display: inline-flex; align-items: center; justify-content: center; }
.iu-editbtn { height: 36px; display: inline-flex; align-items: center; gap: 6px; padding: 0 14px; border-radius: 8px; background: #3DCAB115; border: 1px solid #3DCAB144; color: #0F766E; font-size: 13px; font-weight: 600; }
.iu-tabs { flex: none; display: flex; gap: 4px; padding: 0 24px; background: #fff; border-bottom: 1px solid #EEF0F3; }
.iu-tabs span { height: 44px; display: inline-flex; align-items: center; gap: 6px; padding: 0 14px; font-size: 14px; font-weight: 500; color: #6B7280; border-bottom: 2px solid transparent; }
.iu-tabs span.on { color: #0F766E; font-weight: 600; border-bottom-color: #3DCAB1; }
.iu-tabs em { min-width: 20px; height: 18px; padding: 0 6px; border-radius: 9px; background: #F3F4F6; color: #6B7280; font: 600 11px/18px Inter, sans-serif; font-style: normal; text-align: center; }
.iu-tabs span.on em { background: #3DCAB122; color: #0F766E; }
.iu-dbody { flex: 1; min-height: 0; overflow: hidden; padding: 18px 24px; display: flex; flex-direction: column; gap: 14px; }
.iu-hero { flex: none; display: flex; align-items: center; gap: 16px; padding: 16px 20px; border-radius: 16px; background: #fff; border: 1px solid #EEF0F3; }
.iu-hm { display: flex; flex-direction: column; gap: 6px; } .iu-hm .iu-rn b { font-size: 20px; font-weight: 700; }
.iu-hmeta { display: flex; gap: 16px; } .iu-hmeta span { display: inline-flex; align-items: center; gap: 5px; font-size: 13px; color: #6B7280; }
.iu-call { width: 44px; height: 44px; border-radius: 22px; background: #ECFDF5; color: #059669; display: inline-flex; align-items: center; justify-content: center; }
.iu-2col { display: flex; gap: 16px; min-height: 0; }
.iu-2col > .iu-card:first-child { flex: 1.35; }
.iu-side { flex: 1; display: flex; flex-direction: column; gap: 14px; }
.iu-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 18px; align-content: start; }
.iu-fr { display: flex; flex-direction: column; gap: 3px; }
.iu-fr small, .iu-notes small, .iu-ts small { font-size: 11px; color: #9CA3AF; font-weight: 500; }
.iu-fr b { font-size: 14px; font-weight: 500; color: #0A1629; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.iu-ein { height: 32px; display: flex; align-items: center; padding: 0 10px; border-radius: 8px; border: 1px solid #E5E7EB; background: #F9FAFB; font-size: 13px; color: #24252C; white-space: nowrap; overflow: hidden; }
.iu-notes { grid-column: 1 / -1; display: flex; flex-direction: column; gap: 4px; padding-top: 8px; border-top: 1px dashed #EEF0F3; }
.iu-notes p { margin: 0; font-size: 14px; line-height: 1.5; color: #374151; } .iu-notes .mut { color: #9CA3AF; }
.iu-ta { min-height: 62px; padding: 8px 10px; border-radius: 8px; border: 1px solid #3DCAB1; box-shadow: 0 0 0 3px #3DCAB122; font-size: 14px; line-height: 1.5; color: #24252C; }
.iu-mem { display: flex; flex-direction: column; gap: 10px; }
.iu-memh { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }
.iu-memh b { font-size: 14px; font-weight: 700; color: #0A1629; } .iu-memh small { font-size: 12px; font-weight: 600; color: #B45309; }
.iu-segs { display: flex; padding: 3px; border-radius: 10px; background: #F3F4F6; }
.iu-seg { flex: 1; height: 36px; display: flex; align-items: center; justify-content: center; border-radius: 8px; font-size: 13px; font-weight: 600; color: #6B7280; }
.iu-seg.on { background: #fff; color: #0F766E; box-shadow: 0 1px 3px rgba(15, 23, 42, .1); }
.iu-seg.on.vip { background: #FEF3C7; color: #B45309; }
.iu-hint { font-size: 11px; color: #9CA3AF; line-height: 1.4; }
.iu-tsc { display: flex; flex-direction: column; gap: 10px; }
.iu-ts { display: flex; justify-content: space-between; align-items: center; } .iu-ts b { font: 600 13px Inter, sans-serif; color: #374151; }
.iu-cta { flex: none; display: flex; gap: 12px; } .iu-cta .iu-btn { height: 46px; }

.iu-terms { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.iu-terms span { height: 40px; display: flex; align-items: center; justify-content: center; border-radius: 10px; border: 1px solid #E5E7EB; font-size: 14px; font-weight: 500; color: #374151; }
.iu-terms span.on { border: 2px solid #3DCAB1; background: #3DCAB112; color: #0F766E; font-weight: 700; }
.iu-exp { font-size: 13px; color: #0F766E; font-weight: 600; min-height: 18px; }
.iu-auto { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 12px; background: #F9FAFB; }
.iu-auto > div { flex: 1; display: flex; flex-direction: column; gap: 3px; } .iu-auto b { font-size: 14px; color: #0A1629; } .iu-auto small { font-size: 11px; color: #6B7280; }
.iu-sw { width: 44px; height: 26px; border-radius: 13px; background: #D1D5DB; position: relative; flex: none; }
.iu-sw::after { content: ''; position: absolute; left: 3px; top: 3px; width: 20px; height: 20px; border-radius: 10px; background: #fff; }
.iu-nocard { display: flex; align-items: center; gap: 8px; font-size: 12px; color: #92400E; background: #FFFBEB; border-radius: 8px; padding: 8px 12px; }
.iu-ik { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 12px; border: 1px solid #EEF0F3; }
.iu-ik div { flex: 1; display: flex; flex-direction: column; gap: 3px; } .iu-ik b { font-size: 14px; color: #0A1629; } .iu-ik small { font-size: 12px; color: #9CA3AF; }
.iu-ik em { font-style: normal; font-size: 12px; font-weight: 600; color: #047857; background: #D1FAE5; padding: 3px 10px; border-radius: 10px; }

.iu-pad { display: flex; flex-direction: column; gap: 12px; }
.iu-up { display: flex; align-items: center; gap: 18px; padding: 14px 18px; border-radius: 14px; background: #fff; border: 1px solid #EEF0F3; }
.iu-upd { width: 120px; display: flex; flex-direction: column; gap: 3px; } .iu-upd b { font-size: 15px; color: #0A1629; } .iu-upd small { font-size: 13px; color: #6B7280; }
.iu-upm { flex: 1; display: flex; flex-direction: column; gap: 4px; } .iu-upm b { font-size: 15px; color: #0A1629; } .iu-upm > small { font-size: 12px; color: #6B7280; }
.iu-upt { display: flex; gap: 10px; align-items: center; }
.iu-upt span { display: inline-flex; align-items: center; gap: 4px; font-size: 11px; color: #9CA3AF; } .iu-upt span.ok { color: #047857; }
.iu-st { font-style: normal; font-size: 11px; font-weight: 600; padding: 2px 8px; border-radius: 6px; }
.iu-st.g { background: #D1FAE5; color: #047857; } .iu-st.b { background: #DBEAFE; color: #1D4ED8; }
.iu-upa { display: flex; gap: 10px; align-items: center; }
.iu-rsb { height: 36px; display: inline-flex; align-items: center; gap: 5px; padding: 0 12px; border-radius: 8px; border: 1px solid #E5E7EB; font-size: 12px; color: #6B7280; }
.iu-cx { width: 36px; height: 36px; border-radius: 8px; border: 1px solid #FECACA; color: #DC2626; display: inline-flex; align-items: center; justify-content: center; }
.iu-txh { display: flex; align-items: center; gap: 8px; } .iu-txh b { font-size: 15px; font-weight: 700; color: #0A1629; } .iu-txh small { font-size: 13px; color: #6B7280; margin-left: 6px; }
.iu-tbl { padding: 6px 18px; }
.iu-tr { display: grid; grid-template-columns: 80px 1.6fr 1fr 90px 100px; align-items: center; height: 46px; border-bottom: 1px solid #F3F4F6; font-size: 13px; color: #374151; }
.iu-tr:last-child { border-bottom: 0; } .iu-tr.h { height: 38px; font-size: 11px; font-weight: 600; color: #9CA3AF; }
.iu-tr .r { text-align: right; } .iu-tr b { font: 600 13px Inter, sans-serif; }
.iu-pm { font-style: normal; font-size: 11px; font-weight: 600; padding: 2px 8px; border-radius: 6px; background: #F3F4F6; color: #4B5563; }
.iu-pm.mPkg { background: #EDE9FE; color: #6D28D9; } .iu-pm.mCard { background: #DBEAFE; color: #1D4ED8; }
.iu-vr { display: grid; grid-template-columns: 56px 1fr 90px 90px; align-items: center; height: 40px; font-size: 13px; color: #374151; border-bottom: 1px solid #F6F7F9; }
.iu-vr small { color: #9CA3AF; } .iu-vr b { font-weight: 500; color: #0A1629; } .iu-vr em { font-style: normal; text-align: right; font: 600 13px Inter, sans-serif; }
.iu-ct { display: block; font-size: 14px; font-weight: 700; color: #0A1629; margin-bottom: 10px; }
.iu-bar { display: grid; grid-template-columns: 76px 1fr 56px; align-items: center; gap: 10px; height: 30px; font-size: 13px; color: #374151; }
.iu-bar i { height: 8px; border-radius: 4px; background: #F3F4F6; position: relative; overflow: hidden; }
.iu-bar i::after { content: ''; position: absolute; inset: 0 auto 0 0; width: var(--w); background: #3DCAB1; border-radius: 4px; }
.iu-bar em { font-style: normal; text-align: right; color: #6B7280; font-size: 12px; }
.iu-kv { display: flex; justify-content: space-between; height: 30px; align-items: center; font-size: 13px; color: #6B7280; } .iu-kv b { color: #0A1629; font: 700 14px Inter, sans-serif; }
.iu-sums { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.iu-sum { background: #fff; border: 1px solid #EEF0F3; border-radius: 14px; padding: 14px 16px; display: flex; flex-direction: column; gap: 6px; }
.iu-sum small { font-size: 12px; color: #9CA3AF; } .iu-sum b { font: 700 22px Inter, sans-serif; color: #0A1629; }
.iu-pk { display: flex; align-items: center; gap: 14px; position: relative; overflow: hidden; }
.iu-pkbar { position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: #3DCAB1; }
.iu-pkm { flex: 1; display: flex; flex-direction: column; gap: 4px; } .iu-pkm b { font-size: 15px; color: #0A1629; } .iu-pkm small { font-size: 12px; color: #6B7280; }
.iu-pkr { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; } .iu-pkr b { font: 700 16px Inter, sans-serif; color: #0F766E; }
.iu-pkr em { font-style: normal; font-size: 11px; font-weight: 600; background: #D1FAE5; color: #047857; padding: 2px 8px; border-radius: 6px; }

/* ---------- 消息 ---------- */
.iu-sms { position: absolute; inset: 0; display: flex; background: #F8FAFB; }
.iu-sl { width: 300px; flex: none; display: flex; flex-direction: column; gap: 10px; padding: 16px 14px; background: #fff; border-right: 1px solid #EEF0F3; }
.iu-slh { display: flex; align-items: center; gap: 8px; } .iu-slh b { font-size: 18px; font-weight: 700; color: #0A1629; }
.iu-ths { display: flex; flex-direction: column; gap: 4px; }
.iu-th { display: flex; align-items: center; gap: 10px; padding: 10px; border-radius: 12px; position: relative; }
.iu-th.on { background: #3DCAB115; }
.iu-thm { flex: 1; display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.iu-thm > div { display: flex; justify-content: space-between; gap: 6px; } .iu-thm b { font-size: 14px; color: #0A1629; white-space: nowrap; } .iu-thm small { font-size: 11px; color: #9CA3AF; white-space: nowrap; }
.iu-thm > span { font-size: 12px; color: #6B7280; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.iu-auto-tag { font-style: normal; font-size: 10px; font-weight: 600; color: #6D28D9; background: #EDE9FE; padding: 1px 6px; border-radius: 5px; margin-right: 5px; }
.iu-dot { position: absolute; right: 10px; bottom: 14px; width: 9px; height: 9px; border-radius: 5px; background: #DC2626; }
.iu-sc { flex: 1; min-width: 0; display: flex; flex-direction: column; background: #F8FAFB; }
.iu-sc.empty { align-items: center; justify-content: center; color: #D1D5DB; }
.iu-sch { flex: none; height: 64px; display: flex; align-items: center; gap: 10px; padding: 0 18px; background: #fff; border-bottom: 1px solid #EEF0F3; }
.iu-sch > div:first-child { display: flex; flex-direction: column; gap: 3px; } .iu-sch b { font-size: 16px; color: #0A1629; }
.iu-sch small { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; color: #6B7280; }
.iu-g { width: 7px; height: 7px; border-radius: 4px; background: #10B981; }
.iu-msgs { flex: 1; min-height: 0; padding: 20px; display: flex; flex-direction: column; gap: 12px; }
.iu-bub { max-width: 72%; display: flex; flex-direction: column; gap: 4px; }
.iu-bub span { padding: 10px 14px; border-radius: 16px; font-size: 14px; line-height: 1.45; }
.iu-bub small { font-size: 11px; color: #9CA3AF; }
.iu-bub.in span { background: #fff; border: 1px solid #EEF0F3; color: #24252C; border-bottom-left-radius: 4px; }
.iu-bub.out { align-self: flex-end; align-items: flex-end; animation: kt-fade .25s ease; }
.iu-bub.out span { background: #3DCAB1; color: #fff; border-bottom-right-radius: 4px; }
.iu-qb { flex: none; display: flex; gap: 8px; padding: 8px 16px; }
.iu-qb span { height: 30px; display: inline-flex; align-items: center; gap: 5px; padding: 0 12px; border-radius: 15px; background: #fff; border: 1px solid #E5E7EB; font-size: 12px; font-weight: 500; color: #374151; }
.iu-comp { flex: none; display: flex; align-items: flex-end; gap: 10px; padding: 4px 16px 0; }
.iu-cin { flex: 1; min-height: 44px; display: flex; align-items: center; padding: 8px 14px; border-radius: 12px; background: #fff; border: 1px solid #E5E7EB; font-size: 14px; color: #9CA3AF; }
.iu-cin.has { color: #24252C; border-color: #3DCAB1; }
.iu-comp .iu-btn.sm { height: 44px; }
.iu-cnt { flex: none; display: block; padding: 6px 16px 14px; font-size: 11px; color: #9CA3AF; }
.iu-dr { width: 280px; flex: none; padding: 18px 14px; background: #fff; border-left: 1px solid #EEF0F3; animation: ip-slide .22s ease; }
.iu-hintc { display: flex; flex-direction: column; gap: 8px; padding: 16px; border-radius: 14px; background: #FFFBEB; border: 1px solid #FDE68A; color: #B45309; }
.iu-hintc b { font-size: 15px; color: #92400E; } .iu-hintc small { font-size: 13px; line-height: 1.45; color: #78350F; } .iu-hintc small.tl { color: #0F766E; }
.iu-hintc .iu-btn { margin-top: 4px; }

/* 系统 Alert（两键横排，「确定」是 destructive 红色） */
.iu-al { width: 280px; border-radius: 14px; background: rgba(248, 248, 250, .97); text-align: center; overflow: hidden; animation: ip-pop .2s ease; box-shadow: 0 12px 40px rgba(15, 23, 42, .2); }
.iu-al > b { display: block; padding: 18px 16px 2px; font-size: 16px; }
.iu-al > small { display: block; padding: 0 16px 16px; font-size: 13px; color: #374151; }
.iu-alb { display: flex; border-top: 1px solid #D9D9DE; }
.iu-alb span { flex: 1; height: 44px; display: flex; align-items: center; justify-content: center; color: #007AFF; font-size: 16px; }
.iu-alb span + span { border-left: 1px solid #D9D9DE; } .iu-alb span.d { color: #FF3B30; }
