/* 个人设备租赁记账本 —— 手机优先样式 */

:root {
  --bg: #f2f4f7;
  --card: #ffffff;
  --line: #e4e7ee;
  --text: #16181d;
  --muted: #6b7280;
  --muted-2: #98a1b0;
  --primary: #2f6bff;
  --primary-dark: #1e51d8;
  --ok: #12a150;
  --ok-bg: #e9f8ef;
  --warn: #b7791f;
  --warn-bg: #fdf6e3;
  --danger: #e5484d;
  --danger-bg: #fdecec;
  --radius: 14px;
  --radius-sm: 10px;
  --shadow: 0 1px 2px rgba(16, 24, 40, 0.05), 0 6px 16px rgba(16, 24, 40, 0.06);
  --nav-h: 62px;
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  font-size: 15px;
  line-height: 1.5;
  -webkit-text-size-adjust: 100%;
}

body { padding-bottom: calc(var(--nav-h) + 24px + env(safe-area-inset-bottom)); }

.hidden { display: none !important; }
.center { text-align: center; }
.muted { color: var(--muted); }
.small { font-size: 12.5px; }
.mono { font-variant-numeric: tabular-nums; }
.nowrap { white-space: nowrap; }

/* ---------------- 顶部 ---------------- */

.app-header {
  position: sticky;
  top: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 12px 16px;
  background: rgba(247, 248, 251, 0.92);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--line);
}

.app-header h1 { font-size: 17px; margin: 0; font-weight: 650; letter-spacing: 0.2px; }

.header-actions { display: flex; gap: 8px; align-items: center; }

.badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  font-size: 12px;
  background: #eef1f6;
  color: var(--muted);
  border: 1px solid var(--line);
}
.badge.sample { background: var(--warn-bg); color: var(--warn); border-color: #f0e0b8; font-weight: 600; }

/* ---------------- 主体 ---------------- */

.page { padding: 14px 14px 28px; max-width: 900px; margin: 0 auto; }

.sample-banner {
  margin: 0 0 12px;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  background: var(--warn-bg);
  border: 1px solid #f0e0b8;
  color: #7a5a12;
  font-size: 13px;
}

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 14px;
  margin-bottom: 12px;
  box-shadow: var(--shadow);
}

.card-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin: 0 0 10px;
  font-size: 16px;
  font-weight: 650;
}

.section-title {
  margin: 20px 0 8px;
  font-size: 14px;
  font-weight: 650;
  color: var(--muted);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* ---------------- 表单 ---------------- */

label.field { display: block; margin-bottom: 12px; }
label.field > span { display: block; font-size: 13px; color: var(--muted); margin-bottom: 6px; }

input, select, textarea {
  width: 100%;
  min-height: 46px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: #fff;
  color: var(--text);
  font-size: 16px;
  font-family: inherit;
  outline: none;
}
input:focus, select:focus, textarea:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(47, 107, 255, 0.12); }
input::placeholder { color: var(--muted-2); }
select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, #9aa3b2 50%), linear-gradient(135deg, #9aa3b2 50%, transparent 50%); background-position: calc(100% - 18px) 21px, calc(100% - 13px) 21px; background-size: 5px 5px, 5px 5px; background-repeat: no-repeat; padding-right: 32px; }

.grid2 { display: grid; grid-template-columns: 1fr; gap: 10px; }
@media (min-width: 760px) {
  .grid2 { grid-template-columns: 1fr 1fr; }
}
.grid3 { display: grid; grid-template-columns: 1fr; gap: 8px; }
@media (min-width: 760px) {
  .grid3 { grid-template-columns: 1fr 1fr 1.2fr; }
}

/* ---------------- 按钮 ---------------- */

button { font-family: inherit; cursor: pointer; font-size: 15px; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 46px;
  padding: 0 16px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  background: #fff;
  color: var(--text);
  font-weight: 550;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--primary); border-color: var(--primary); color: #fff; }
.btn-primary:active { background: var(--primary-dark); }
.btn-block { width: 100%; }
.btn-lg { min-height: 52px; font-size: 16.5px; font-weight: 650; }
.btn-ghost { background: #fff; color: var(--primary); border-color: #c9d8ff; }
.btn-danger { color: var(--danger); border-color: #f4c9ca; background: #fff; }
/* 缺货模块统一红色（与红框二次确认一致）：#D92D20 */
.btn-stockout { background: #D92D20; border-color: #D92D20; color: #fff; }
.btn-stockout:active { background: #B42318; }
.btn-sm { min-height: 36px; padding: 0 12px; font-size: 13.5px; border-radius: 9px; }
.btn[disabled] { opacity: 0.5; pointer-events: none; }

.row-actions { display: flex; gap: 8px; flex-wrap: wrap; }

/* ---------------- 分段控件 ---------------- */

.segmented {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 1fr;
  gap: 4px;
  padding: 4px;
  background: #e8ebf1;
  border-radius: 12px;
  margin-bottom: 14px;
}
.segmented button {
  min-height: 40px;
  border: none;
  border-radius: 9px;
  background: transparent;
  color: #4b5563;
  font-weight: 600;
}
.segmented button.active { background: #fff; color: var(--primary); box-shadow: 0 1px 3px rgba(16, 24, 40, 0.12); }

/* ---------------- 列表项 ---------------- */

.device-card { padding: 14px; }
.device-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.device-name { font-size: 16.5px; font-weight: 650; }
.device-stats { display: flex; flex-wrap: wrap; gap: 6px 14px; margin-top: 8px; font-size: 13px; color: var(--muted); }
.device-stats b { color: var(--text); font-weight: 600; }

.purchase-list { margin-top: 10px; border-top: 1px dashed var(--line); padding-top: 8px; }
.purchase-item { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 6px 0; font-size: 13.5px; }
.purchase-item + .purchase-item { border-top: 1px solid #f1f3f7; }

.chip {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 999px;
  background: #eef1f6;
  color: var(--muted);
  font-size: 12px;
}
.chip.ok { background: var(--ok-bg); color: var(--ok); }
.chip.warn { background: var(--warn-bg); color: var(--warn); }
.chip.danger { background: var(--danger-bg); color: var(--danger); }
.chip.rent { background: #eaf0ff; color: var(--primary-dark); }
.chip.repair { background: #fff0ea; color: #c2410c; }

.empty {
  padding: 34px 18px;
  text-align: center;
  color: var(--muted);
  background: var(--card);
  border: 1px dashed var(--line);
  border-radius: var(--radius);
}
.empty h3 { margin: 0 0 6px; font-size: 15px; color: var(--text); }

/* ---------------- 购物车（紧凑单行） ---------------- */

/* 顶部：出租日期独立行 + 备注折叠按钮 */
.rent-meta { padding: 14px 14px 10px; }
.rent-meta-row {
  display: flex;
  align-items: flex-end;
  gap: 12px;
}
.rent-date { flex: 1; margin-bottom: 0; }
.rent-date input { min-height: 44px; }
.rent-note-toggle {
  flex: 0 0 auto;
  background: transparent;
  border: none;
  padding: 6px 4px 10px;
  color: var(--primary);
  font-size: 13.5px;
  font-weight: 550;
  cursor: pointer;
  min-height: auto;
}
.rent-note-toggle:hover { text-decoration: underline; }
.rent-note { margin-top: 10px; }

/* 取消编辑按钮移到外层 */
.rent-meta-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin: 0 0 10px;
}
.rent-meta-wrap .rent-title { font-size: 16px; font-weight: 650; }

/* cart-item 单行紧凑（desktop）+ 三行（mobile） */
.cart-item {
  display: grid;
  grid-template-columns: 24px minmax(180px, 1fr) 70px 70px 110px 32px;
  gap: 10px;
  align-items: end;
  padding: 10px 12px;
  margin-bottom: 8px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  position: relative;
}
.cart-item .cart-idx {
  width: 22px; height: 22px;
  flex: 0 0 22px;
  border-radius: 50%;
  background: #eef1f6;
  color: var(--muted);
  font-size: 12px;
  display: flex; align-items: center; justify-content: center;
  font-weight: 600;
  align-self: center;
}
.cart-item .cart-model-name {
  font-size: 14px;
  font-weight: 500;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  align-self: center;
  min-width: 0;
}
/* cart-empty 空态提示 */
.cart-empty {
  text-align: center;
  padding: 32px 12px;
  color: var(--muted);
  background: #fff;
  border: 1px dashed var(--line);
  border-radius: var(--radius);
}
.cart-empty p { margin: 0 0 4px; font-size: 14px; font-weight: 500; }
.cart-empty p.small { font-size: 12px; font-weight: 400; }
.cart-item .cart-model .ss-input { min-height: 40px; padding: 8px 28px 8px 10px; font-size: 14.5px; }

/* 字段语义化：每个输入框上方放小 label（数量/天数/金额），永远可见 */
.cart-cell {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}
.cart-cell-label {
  font-size: 11px;
  color: var(--muted-2);
  letter-spacing: 0.04em;
  line-height: 1;
  font-weight: 500;
}
.cart-item .cart-qty,
.cart-item .cart-days,
.cart-item .cart-amount {
  min-height: 38px;
  padding: 7px 8px;
  text-align: center;
  font-variant-numeric: tabular-nums;
  font-size: 14.5px;
  border-radius: 8px;
  width: 100%;
}
.cart-item .cart-amount { text-align: right; }
.cart-item .cart-del {
  width: 32px; height: 32px;
  border: none;
  background: transparent;
  color: var(--muted-2);
  font-size: 20px;
  line-height: 1;
  border-radius: 8px;
  padding: 0;
  min-height: 32px;
  cursor: pointer;
  align-self: center;
}
.cart-item .cart-del:hover { background: var(--danger-bg); color: var(--danger); }
.cart-item .cart-hint {
  grid-column: 2 / 7;
  font-size: 11.5px;
  color: var(--muted-2);
  padding-top: 4px;
  font-variant-numeric: tabular-nums;
}

/* 手机紧凑两行：型号占第 1 行整行（不被截断），输入区「第 1 / 数量 / 天数 / 金额 / 删除」占第 2 行 */
@media (max-width: 600px) {
  .cart-item {
    display: grid;
    grid-template-columns: auto 1fr 1fr 1fr auto;
    grid-template-rows: auto auto auto;
    column-gap: 8px;
    row-gap: 6px;
    padding: 10px;
    align-items: stretch;
  }
  /* 型号名跨整行第 1 格 — 不再被截断 */
  .cart-item .cart-model-name { grid-column: 1 / -1; grid-row: 1; min-width: 0; }
  /* 第 2 行：序号 / 数量 / 天数 / 金额 / 删除 */
  .cart-item .cart-idx { grid-column: 1; grid-row: 2; justify-self: start; align-self: center; }
  .cart-item .cart-cell:nth-of-type(1) { grid-column: 2; grid-row: 2; }
  .cart-item .cart-cell:nth-of-type(2) { grid-column: 3; grid-row: 2; }
  .cart-item .cart-cell:nth-of-type(3) { grid-column: 4; grid-row: 2; }
  .cart-item .cart-del { grid-column: 5; grid-row: 2; justify-self: end; align-self: center; }
  /* 第 3 行：日期提示 */
  .cart-item .cart-hint { grid-column: 1 / -1; grid-row: 3; padding-top: 2px; }
  .cart-item .cart-model .ss-input { min-height: 38px; }
  .cart-item .cart-qty,
  .cart-item .cart-days,
  .cart-item .cart-amount { min-height: 36px; }
}

.total-bar {
  position: sticky;
  bottom: calc(var(--nav-h) + 10px + env(safe-area-inset-bottom));
  z-index: 20;
  margin-top: 14px;
  background: #0f172a;
  color: #fff;
  border-radius: var(--radius);
  padding: 12px 14px;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.28);
}
/* cart-list 底部留空，避免最后一项被 sticky 合计栏遮挡（移动端 180px ≈ 合计栏高 + nav 高 + 余量） */
#cart-list { padding-bottom: 0; }
/* 给外层 #ledger-rent 加 padding-bottom：滚动到底时最后一项能滚到 sticky 合计栏上方可见 */
#ledger-rent { padding-bottom: 200px; }
@media (min-width: 601px) {
  #ledger-rent { padding-bottom: 150px; }
}
.total-line { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.total-label { font-size: 13px; color: #cbd5e1; }
.total-value { font-size: 26px; font-weight: 700; font-variant-numeric: tabular-nums; letter-spacing: 0.4px; }
.total-sub { margin-top: 2px; font-size: 12px; color: #94a3b8; }
.total-bar .btn-primary { margin-top: 10px; background: var(--primary); }

.receipt { background: #f8fafc; border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 10px 12px; font-size: 13.5px; }
.receipt-line { display: flex; justify-content: space-between; gap: 12px; padding: 3px 0; }
.receipt-total { border-top: 1px solid var(--line); margin-top: 6px; padding-top: 6px; font-weight: 650; }

/* ---------------- 统计 ---------------- */

.kpi-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.kpi { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 12px; box-shadow: var(--shadow); }
.kpi .kpi-label { font-size: 12.5px; color: var(--muted); margin-bottom: 4px; }
.kpi .kpi-value { font-size: 19px; font-weight: 700; font-variant-numeric: tabular-nums; }
.kpi .kpi-note { font-size: 11.5px; color: var(--muted-2); margin-top: 3px; }

.progress { height: 10px; border-radius: 999px; background: #e8ebf1; overflow: hidden; margin: 8px 0 6px; }
.progress > i { display: block; height: 100%; background: linear-gradient(90deg, #4f8bff, #2f6bff); border-radius: 999px; }
.progress.done > i { background: linear-gradient(90deg, #34c46f, #12a150); }

.stat-table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.stat-table th, .stat-table td { text-align: right; padding: 7px 6px; border-bottom: 1px solid #f1f3f7; font-variant-numeric: tabular-nums; }
.stat-table th:first-child, .stat-table td:first-child { text-align: left; }
.stat-table th { color: var(--muted); font-weight: 600; font-size: 12.5px; white-space: nowrap; }
.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }

.notes { margin-top: 14px; }
.notes summary { cursor: pointer; font-size: 13.5px; color: var(--primary); font-weight: 600; padding: 8px 0; }
.notes ul { margin: 6px 0 0; padding-left: 18px; color: var(--muted); font-size: 12.5px; }
.notes li { margin-bottom: 5px; }

/* ---------------- 底部导航 ---------------- */

.nav {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 40;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: saturate(180%) blur(12px);
  border-top: 1px solid var(--line);
  padding-bottom: env(safe-area-inset-bottom);
}
.nav button {
  border: none;
  background: transparent;
  min-height: var(--nav-h);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  color: var(--muted);
  font-size: 12.5px;
  font-weight: 600;
}
.nav button.active { color: var(--primary); }
.nav .nav-icon { font-size: 19px; line-height: 1; }

/* ---------------- 弹层 ---------------- */

.overlay {
  position: fixed;
  inset: 0;
  z-index: 60;
  background: rgba(15, 23, 42, 0.42);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 0;
}
.overlay.center-box { align-items: center; padding: 16px; }

/* 确认弹层是全局最高优先级对话（低于 toast 200）：
   它会从详情弹层 / 表单弹层 / 选型弹层之上弹出，而那些弹层要么在 DOM 里更靠后、
   要么运行时才 append 到 body，同用 z-index 60/80 时会反过来盖住确认框，
   真机上表现为「点了删除，屏幕上却什么都没弹出来」——必须单独抬到 90。 */
#confirm-overlay { z-index: 90; }

.sheet {
  width: 100%;
  max-width: 560px;
  max-height: 88vh;
  overflow-y: auto;
  background: #fff;
  border-radius: 18px 18px 0 0;
  padding: 18px 16px calc(18px + env(safe-area-inset-bottom));
  animation: sheet-up 0.18s ease-out;
}
.overlay.center-box .sheet { border-radius: 16px; animation: pop 0.16s ease-out; padding-bottom: 18px; }
@keyframes sheet-up { from { transform: translateY(14px); opacity: 0.6; } to { transform: none; opacity: 1; } }
@keyframes pop { from { transform: scale(0.97); opacity: 0.6; } to { transform: none; opacity: 1; } }

.sheet h2 { margin: 0 0 4px; font-size: 17px; }
.sheet .sheet-sub { color: var(--muted); font-size: 13px; margin: 0 0 14px; }
.sheet .divider { height: 1px; background: var(--line); margin: 14px 0; }

.auth-card { max-width: 420px; width: 100%; background: #fff; border-radius: 16px; padding: 22px 18px; }
.auth-card h1 { font-size: 19px; margin: 0 0 6px; }
.auth-card p { color: var(--muted); font-size: 13.5px; margin: 0 0 16px; }

.toast {
  position: fixed;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%) scale(0.92);
  z-index: 200;
  max-width: 88vw;
  padding: 12px 18px;
  border-radius: 12px;
  background: rgba(15, 23, 42, 0.94);
  color: #fff;
  font-size: 14px;
  font-weight: 500;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.4);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.18s ease, transform 0.18s ease;
}
.toast.toast-show {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}
.toast.hidden { display: none; }
.toast.error { background: #b91c1c; }
.toast.ok { background: #116b3a; }

.file-input { display: none; }

/* ---------------- searchSelect（可输入搜索的下拉） ---------------- */
.ss { position: relative; }
.ss .ss-input {
  width: 100%;
  padding: 10px 36px 10px 12px;
  border: 1px solid #cdd2da;
  border-radius: 8px;
  background: #fff;
  font: inherit;
  color: inherit;
  outline: none;
  transition: border-color 0.15s;
  -webkit-appearance: none;
  appearance: none;
}
.ss .ss-input:focus { border-color: #4f8bff; }
.ss[disabled] .ss-input { background: #f5f6f8; color: #8c8c8c; }
/* 自定义 type="search" 自带清除按钮：Webkit 风格统一，避免不同浏览器长相差 */
.ss .ss-input::-webkit-search-cancel-button {
  -webkit-appearance: none;
  appearance: none;
  width: 16px;
  height: 16px;
  margin-left: 6px;
  background: #d3d6dc;
  border-radius: 50%;
  cursor: pointer;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'><path d='M3 3 L13 13 M13 3 L3 13' stroke='white' stroke-width='2' stroke-linecap='round'/></svg>");
  background-size: 10px 10px;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 0.9;
}
.ss .ss-input::-webkit-search-cancel-button:hover { background-color: #b1b6c0; opacity: 1; }
.ss .ss-caret {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  pointer-events: none;
  color: #8c8c8c;
  font-size: 12px;
}
.ss .ss-list {
  position: absolute;
  z-index: 50;
  left: 0;
  right: 0;
  top: calc(100% + 4px);
  min-width: 240px;
  max-width: 360px;
  max-height: 480px;
  overflow-y: auto;
  background: #fff;
  border: 1px solid #d8dce4;
  border-radius: 10px;
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.12);
  padding: 4px 0;
  list-style: none;
  margin: 0;
}
/* cart 行的下拉：让宽度可以向左溢出，覆盖完整 cart-item 区域 */
.cart-item .ss .ss-list {
  left: -8px;
  right: auto;
  width: max-content;
  min-width: 260px;
  max-width: calc(100vw - 40px);
}
.ss .ss-list.hidden { display: none; }
.ss .ss-opt {
  padding: 10px 12px;
  font-size: 14px;
  color: #1f2330;
  cursor: pointer;
  line-height: 1.3;
  word-break: break-word;
}
.ss .ss-opt:hover, .ss .ss-opt.active { background: #eef4ff; color: #1f4cd0; }

/* ---------------- searchSelect 品牌分组模式 ---------------- */
.ss-group { list-style: none; }
.ss-group-head {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  font-size: 13px;
  color: #5f6473;
  background: #f7f8fb;
  cursor: pointer;
  user-select: none;
  border-bottom: 0.5px solid #eef0f4;
  font-weight: 500;
  letter-spacing: 0.02em;
}
.ss-group-head:hover { background: #eef1f6; }
.ss-group-name { flex: 1; }
.ss-group-count {
  display: inline-block;
  min-width: 28px;
  text-align: center;
  padding: 1px 8px;
  border-radius: 999px;
  background: #e9ecf2;
  color: #5f6473;
  font-size: 11px;
  font-weight: 500;
}
.ss-chevron {
  width: 12px;
  height: 12px;
  flex-shrink: 0;
  color: #8c8c8c;
  transition: transform 0.18s ease;
}
.ss-group.is-open .ss-chevron { transform: rotate(180deg); color: #4f8bff; }
.ss-group-models {
  list-style: none;
  padding: 0;
  margin: 0;
  display: none;
}
.ss-group.is-open .ss-group-models { display: block; }
/* 展开时品牌头与下方选项加细分隔 */
.ss-group.is-open .ss-group-head { border-bottom: 0.5px solid #e2e6ee; }
.ss-group-models .ss-opt { padding-left: 20px; }
/* 选中态：所在组品牌名高亮 */
.ss-group:has(.ss-opt.active) .ss-group-name { color: #1f4cd0; }
.ss-group:has(.ss-opt.active) .ss-group-count { background: rgba(47, 107, 255, 0.12); color: var(--primary, #1f4cd0); }
/* 顶部独立项（如「全部型号」） */
.ss-opt-top {
  font-weight: 500;
  color: #1f2330;
  border-bottom: 0.5px solid #eef0f4;
}
.ss-opt-top.ss-opt.active,
.ss-opt-top.ss-opt:hover { background: #eef4ff; color: #1f4cd0; }

/* ---------------- 报价表导入预览 ---------------- */
.quote-preview {
  max-height: 380px;
  overflow-y: auto;
  border: 1px solid #d8dce4;
  border-radius: 8px;
  background: #fff;
}
.quote-preview table { width: 100%; border-collapse: collapse; font-size: 13px; }
.quote-preview th, .quote-preview td { text-align: left; padding: 8px 10px; border-bottom: 1px solid #f0f2f6; }
.quote-preview th { background: #f5f7fa; position: sticky; top: 0; }
.quote-summary {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin: 0 0 12px;
}
.quote-summary .cell {
  border: 1px solid #d8dce4;
  border-radius: 8px;
  padding: 10px;
  text-align: center;
}
.quote-summary .cell b { display: block; font-size: 18px; }
.quote-summary .cell span { font-size: 12px; color: #6b7280; }

/* ---------------- placeholder 标签 ---------------- */
.chip.warn {
  display: inline-block;
  margin-right: 4px;
  padding: 2px 8px;
  border-radius: 999px;
  background: #fff5d6;
  color: #b7791f;
  font-size: 12px;
}
.chip.ok {
  display: inline-block;
  margin-right: 4px;
  padding: 2px 8px;
  border-radius: 999px;
  background: #d8f5e2;
  color: #0f7a3c;
  font-size: 12px;
}
.chip.danger {
  display: inline-block;
  margin-right: 4px;
  padding: 2px 8px;
  border-radius: 999px;
  background: #ffe1de;
  color: #b42318;
  font-size: 12px;
}

/* 设备页顶部操作按钮 */
.dev-actions { display: flex; gap: 8px; margin: -4px 0 12px; flex-wrap: wrap; }

/* 设备卡片"待补"标记 */
.device-pending {
  font-size: 12px;
  color: #b7791f;
  margin-top: 4px;
}
.device-pending .ok { color: #0f7a3c; }

@media (min-width: 760px) {
  body { font-size: 15px; }
  .page { padding: 20px 24px 40px; }
  .kpi-grid { grid-template-columns: repeat(4, 1fr); }
  .grid3 { gap: 12px; }
  .quote-summary { grid-template-columns: repeat(3, 1fr); }
}

/* ============================================================
 * 品牌统计 — ECharts 圆环 + 列表双向联动
 * 视觉风格：参考 Excel / WPS / Power BI 经营数据看板
 * 圆环外侧数据标签 + 引导线（不是贴在环上的白色药丸）
 * ============================================================ */

/* 顶部 KPI 改为更轻盈：无边框、靠字号和留白区分 */
.kpi {
  background: transparent;
  border: none;
  padding: 4px 2px;
}
.kpi .kpi-value {
  font-size: 22px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.01em;
}
.kpi .kpi-label {
  font-size: 12px;
  color: #6b7280;
  letter-spacing: 0.04em;
}
.kpi .kpi-note {
  font-size: 11px;
  color: #9aa3b5;
  margin-top: 4px;
}

/* 品牌统计区 */
.brand-summary {
  display: flex;
  flex-direction: column;
  gap: 24px;
  align-items: stretch;
  padding: 20px 4px 8px;
}
@media (min-width: 720px) {
  .brand-summary { flex-direction: row; align-items: flex-start; gap: 40px; padding: 24px 8px 12px; }
}

.chart-wrap {
  width: 100%;
  max-width: 360px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;  /* 不增长不压缩 — 保持固定宽度，让 brand-list 拿剩余空间 */
  margin: 0 auto;
}
@media (min-width: 720px) {
  .chart-wrap {
    width: 420px;
    flex-shrink: 0;
  }
}
#brand-chart {
  width: 100%;
  max-width: 360px;
  height: 360px;
}
@media (min-width: 720px) {
  #brand-chart {
    width: 420px;
    max-width: 420px;
    height: 420px;
  }
}
@media (max-width: 600px) {
  #brand-chart { height: 300px; }
}

/* 列表（行高更大一些，留出给"金额 + 占比"两列足够的呼吸感） */
.brand-list {
  list-style: none;
  margin: 0;
  padding: 0;
  width: 100%;
  display: flex;
  flex-direction: column;
  flex: 1;
  min-width: 0;
}
.brand-row {
  display: grid;
  grid-template-columns: 14px 1fr auto 64px;
  gap: 14px;
  align-items: center;
  padding: 12px 6px;
  border-bottom: 1px solid rgba(15, 23, 42, 0.06);
  cursor: pointer;
  transition: background 120ms ease;
  outline: none;
  user-select: none;
}
.brand-row:hover,
.brand-row.is-hover {
  background: rgba(47, 107, 255, 0.05);
}
.brand-row:focus {
  background: rgba(47, 107, 255, 0.08);
}
.brand-row:last-child { border-bottom: none; }
.brand-swatch {
  width: 8px;
  height: 22px;
  border-radius: 2px;
  display: block;
}
.brand-name {
  font-size: 15px;
  color: #1f2330;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-weight: 500;
}
.brand-row.is-hover .brand-name { color: var(--primary-dark); }
.brand-amt {
  font-size: 15px;
  font-weight: 500;
  color: #1f2330;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.01em;
}
.brand-pct {
  font-size: 12.5px;
  color: #6b7280;
  text-align: right;
  font-variant-numeric: tabular-nums;
  font-weight: 500;
}
.brand-row.is-hover .brand-pct { color: var(--primary-dark); }

.brand-back {
  margin: 4px 0 14px;
}
.brand-back .btn {
  background: transparent;
  border: none;
  color: #3b6ad6;
  padding: 4px 0;
  font-size: 14px;
  text-decoration: none;
  font-weight: 500;
}
.brand-back .btn:hover {
  background: transparent;
  text-decoration: underline;
}

/* ============================================================
   选型号弹层 + 填字段弹层（底部弹起 sheet）
   ============================================================ */

/* 遮罩 + sheet 容器 */
.picker-overlay {
  z-index: 80;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  background: rgba(15, 23, 42, 0.55);
}
.picker-overlay.hidden { display: none; }

.picker-sheet {
  width: 100%;
  max-width: 720px;
  max-height: 80vh;
  background: #fff;
  border-radius: 16px 16px 0 0;
  display: flex;
  flex-direction: column;
  box-shadow: 0 -10px 30px rgba(15, 23, 42, 0.18);
  animation: pickerSlideUp 0.22s ease-out;
  /* 键盘感知：margin-bottom / max-height 由 JS 按键盘高度写入 */
  transition: margin-bottom 0.15s ease-out, max-height 0.15s ease-out;
}
@keyframes pickerSlideUp {
  from { transform: translateY(100%); }
  to { transform: translateY(0); }
}
.picker-handle {
  width: 40px;
  height: 4px;
  background: #d3d6dc;
  border-radius: 2px;
  margin: 8px auto 0;
  flex-shrink: 0;
}
.picker-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 20px 12px;
  flex-shrink: 0;
}
.picker-title {
  font-size: 17px;
  font-weight: 600;
  color: var(--text);
  letter-spacing: 0.02em;
}
.picker-close {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: #eef1f6;
  color: var(--muted);
  border: none;
  font-size: 18px;
  font-family: system-ui, sans-serif;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
.picker-close:hover { background: #e1e6ee; color: var(--text); }

/* 搜索框 */
.picker-search-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 20px 8px;
  height: 40px;
  background: #fff;
  border: 1px solid #cdd2da;
  border-radius: 10px;
  padding: 0 12px;
  flex-shrink: 0;
  transition: border-color 0.15s;
}
.picker-search-wrap:focus-within {
  border-color: var(--primary, #4f8bff);
  box-shadow: 0 0 0 3px rgba(47, 107, 255, 0.08);
}
.picker-search-icon {
  width: 16px;
  height: 16px;
  color: var(--muted);
  flex-shrink: 0;
}
.picker-search-wrap:focus-within .picker-search-icon { color: var(--primary, #4f8bff); }
#picker-search {
  flex: 1;
  border: none;
  outline: none;
  background: transparent;
  font: inherit;
  font-size: 14px;
  color: var(--text);
  -webkit-appearance: none;
  appearance: none;
}
#picker-search::-webkit-search-cancel-button {
  -webkit-appearance: none;
  appearance: none;
  width: 16px;
  height: 16px;
  margin-left: 6px;
  background: #d3d6dc;
  border-radius: 50%;
  cursor: pointer;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'><path d='M3 3 L13 13 M13 3 L3 13' stroke='white' stroke-width='2' stroke-linecap='round'/></svg>");
  background-size: 10px 10px;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 0.9;
}
#picker-search::-webkit-search-cancel-button:hover { background-color: #b1b6c0; opacity: 1; }

/* hint 小字 */
.picker-hint {
  padding: 0 20px 8px;
  font-size: 11px;
  color: var(--muted);
  letter-spacing: 0.04em;
  flex-shrink: 0;
}

/* 品牌分组列表 */
.picker-brand-list {
  flex: 1;
  overflow-y: auto;
  padding: 0 0 16px;
  margin: 0;
  list-style: none;
  -webkit-overflow-scrolling: touch;
}
.picker-brand-group { border-top: 0.5px solid #eef0f4; }
.picker-brand-group:first-child { border-top: none; }
.picker-brand-head {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 20px;
  background: #f7f8fb;
  cursor: pointer;
  user-select: none;
  font-size: 13px;
  color: #5f6473;
  font-weight: 500;
  letter-spacing: 0.02em;
}
.picker-brand-head:hover { background: #eef1f6; }
.picker-brand-name { flex: 1; }
.picker-brand-count {
  min-width: 28px;
  text-align: center;
  padding: 1px 8px;
  border-radius: 999px;
  background: #e9ecf2;
  color: #5f6473;
  font-size: 11px;
  font-weight: 500;
}
.picker-chevron {
  width: 12px;
  height: 12px;
  color: #8c8c8c;
  transition: transform 0.18s ease;
}
.picker-brand-group.is-open .picker-chevron { transform: rotate(180deg); color: var(--primary, #4f8bff); }
.picker-brand-models {
  list-style: none;
  padding: 0;
  margin: 0;
  display: none;
}
.picker-brand-group.is-open .picker-brand-models { display: block; }
.picker-model {
  padding: 12px 20px 12px 28px;
  font-size: 14px;
  color: var(--text);
  cursor: pointer;
  border-bottom: 0.5px solid #f4f6fa;
}
.picker-model:hover { background: #eef4ff; color: var(--primary, #1f4cd0); }
.picker-model:last-child { border-bottom: none; }
.picker-empty {
  padding: 24px 20px;
  text-align: center;
  color: var(--muted);
  font-size: 13px;
}

/* 弹层 2：填字段 */
.picker-sheet-fields {
  max-height: 90vh;
}
.picker-fields-body {
  flex: 1;
  overflow-y: auto;
  padding: 8px 20px 16px;
}
.picker-fields-model {
  font-size: 17px;
  font-weight: 600;
  color: var(--primary, #1f4cd0);
  padding: 14px 0 16px;
  border-bottom: 0.5px solid #eef0f4;
  margin-bottom: 16px;
  letter-spacing: 0.02em;
}
.picker-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 14px;
}
.picker-field-label {
  font-size: 12px;
  color: var(--muted);
  letter-spacing: 0.04em;
}
.picker-field input {
  height: 44px;
  padding: 10px 12px;
  border: 1px solid #cdd2da;
  border-radius: 8px;
  font: inherit;
  font-size: 16px;
  color: var(--text);
  outline: none;
  transition: border-color 0.15s;
}
.picker-field input:focus {
  border-color: var(--primary, #4f8bff);
  box-shadow: 0 0 0 3px rgba(47, 107, 255, 0.08);
}
.picker-fields-range {
  margin-top: 6px;
  padding: 10px 12px;
  background: #f7f8fb;
  border-radius: 8px;
  font-size: 12px;
  color: var(--muted);
  text-align: center;
}
.picker-fields-footer {
  padding: 12px 20px calc(20px + env(safe-area-inset-bottom));
  background: #fff;
  border-top: 0.5px solid #eef0f4;
  flex-shrink: 0;
}

/* 移动端 cart-add 按钮 — 更突出 */
@media (max-width: 600px) {
  #cart-add {
    height: 48px;
    font-size: 15px;
    font-weight: 500;
    letter-spacing: 0.02em;
  }
}

/* ============================================================
   iOS Safari ghost-click 屏障
   弹层关闭后 400ms 内吞掉 iOS 补发的穿透点击，
   防止误触弹层下方的输入框/下拉。
   z-index 70：高于 .overlay(60) 和 .ss-list(50)，
   低于 .picker-overlay(80)，不挡弹层 1→2 同帧切换。
   ============================================================ */
.ghost-shield {
  position: fixed;
  inset: 0;
  z-index: 70;
  background: transparent;
}

/* ============================================================
   出租页 —— iOS 原生风改版（2026-09-22）
   本段在文件末尾，按「后来者胜」覆盖上方旧卡片样式。
   规则：系统灰底 + 纯白 10px 圆角分组卡 + 发丝线分隔 + iOS 蓝 #007AFF
   ============================================================ */

/* 页面留白（iOS 左右 16px） */
#page-ledger { padding: 6px 16px 28px; }

/* 分段控件：iOS 灰底 + 白色药丸 */
.segmented {
  background: #e3e3e8;
  border: none;
  border-radius: 9px;
  padding: 2px;
  gap: 0;
  margin-bottom: 20px;
}
.segmented button {
  border: none;
  background: transparent;
  border-radius: 7px;
  padding: 6px 0;
  min-height: 32px;
  font-family: inherit;
  font-size: 13px;
  font-weight: 500;
  color: rgba(60, 60, 67, 0.6);
}
.segmented button.active {
  background: #fff;
  color: #000;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

/* 分组卡片 + 分组小标题 */
.ios-group {
  background: #fff;
  border-radius: 10px;
  overflow: hidden;
  margin: 0 0 22px;
}
.ios-section-head {
  padding: 0 0 7px;
  font-size: 13px;
  color: rgba(60, 60, 67, 0.6);
}

/* 列表行：左标签 + 右值 + 箭头 */
.ios-row {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  min-height: 48px;
  padding: 0 16px;
  background: #fff;
  border: none;
  text-align: left;
  font-family: inherit;
  font-size: 17px;
  color: #000;
  cursor: pointer;
}
.ios-row:active { background: #f2f2f7; }
.ios-label { font-size: 17px; color: #000; }
.ios-value-wrap { display: flex; align-items: center; gap: 6px; min-width: 0; }
.ios-value { font-size: 17px; color: rgba(60, 60, 67, 0.6); white-space: nowrap; }
.ios-chev { font-size: 18px; line-height: 1; color: #c6c6c8; flex-shrink: 0; }

/* 发丝线分隔：行与行之间、设备行之间、设备区与「＋ 添加设备」之间 */
.ios-row + .ios-row::before,
.cart-item + .cart-item::before,
#cart-list:not(:empty) + .ios-row-add::before,
#stockout-cart-list:not(:empty) + .ios-row-add::before {
  content: '';
  position: absolute;
  top: 0;
  left: 16px;
  right: 0;
  height: 0.5px;
  background: rgba(60, 60, 67, 0.29);
}
.ios-row-add {
  justify-content: flex-start;
  color: #007aff;
  font-size: 17px;
}
/* 缺货未成交流程里的「＋ 添加设备」用红色，与出租的蓝色明显区分 */
#ledger-stockout .ios-row-add { color: #B42318; }

/* 日期行：原生 date 输入透明覆盖整行，点哪都能唤起 iOS 日期选择器 */
#rent-date {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 0;
  border: none;
  opacity: 0;
  background: transparent;
  -webkit-appearance: none;
  appearance: none;
  cursor: pointer;
}
/* 顶部出租日期被锁定（新建单）：不响应点击，隐藏箭头与按压反馈 */
#rent-date-row.is-locked { cursor: default; }
#rent-date-row.is-locked:active { background: #fff; }
#rent-date-row.is-locked .ios-chev { visibility: hidden; }
#rent-date-row.is-locked .ios-value { color: rgba(60, 60, 67, 0.35); }
#rent-date:disabled { cursor: default; }
.rent-date-tip {
  padding: 6px 16px 10px;
  font-size: 12px;
  line-height: 1.5;
}

/* 空态：静默一行字，不做边框不做插图 */
.ios-empty { padding: 26px 16px; text-align: center; }
.ios-empty p { margin: 0; font-size: 15px; color: rgba(60, 60, 67, 0.6); }
.ios-empty .ios-empty-sub { margin-top: 4px; font-size: 13px; color: rgba(60, 60, 67, 0.45); }

/* 设备行 */
.cart-item {
  display: block;
  position: relative;
  padding: 0;
  margin: 0;
  background: #fff;
  border: none;
  border-radius: 0;
}
.cart-row-btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  min-height: 56px;
  padding: 8px 16px;
  background: #fff;
  border: none;
  font-family: inherit;
  text-align: left;
  cursor: pointer;
}
.cart-row-btn:active { background: #f2f2f7; }
.cart-item .cart-model-name {
  font-size: 17px;
  font-weight: 400;
  color: #000;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.cart-row-right { display: flex; align-items: center; gap: 6px; flex-shrink: 0; }
.cart-item .cart-summary {
  font-size: 17px;
  font-weight: 500;
  color: #000;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}
.cart-item .cart-hint {
  grid-column: auto;
  padding: 0 16px 9px;
  margin: 0;
  font-size: 12px;
  color: rgba(60, 60, 67, 0.45);
  font-variant-numeric: tabular-nums;
}
.total-cur { font-size: 15px; color: #000; margin-right: 2px; }

/* 底栏：iOS 悬浮操作条（合计 + 保存） */
.total-bar {
  position: sticky;
  bottom: calc(var(--nav-h) + 12px + env(safe-area-inset-bottom));
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin: 20px 0 0;
  padding: 10px 14px;
  background: rgba(255, 255, 255, 0.94);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  backdrop-filter: saturate(180%) blur(20px);
  border: 0.5px solid rgba(60, 60, 67, 0.2);
  border-radius: 14px;
  box-shadow: 0 6px 20px rgba(15, 23, 42, 0.08);
  color: #000;
}
.total-line { display: flex; flex-direction: column; align-items: flex-start; gap: 1px; }
.total-label { font-size: 12px; color: rgba(60, 60, 67, 0.6); }
.total-value {
  font-size: 22px;
  font-weight: 500;
  color: #000;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.2px;
}
.btn-ios-primary {
  min-height: 44px;
  padding: 0 22px;
  border: none;
  border-radius: 12px;
  background: #007aff;
  color: #fff;
  font-family: inherit;
  font-size: 17px;
  font-weight: 500;
  white-space: nowrap;
  cursor: pointer;
}
.btn-ios-primary:active { background: #0062cc; }
.btn-ios-primary:disabled { background: #c7c7cc; color: #fff; }

/* 编辑态提示条 */
.ios-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin: 0 0 20px;
  padding: 12px 16px;
  background: #fff;
  border-radius: 10px;
  font-size: 15px;
  color: #000;
}
.ios-banner-btn {
  padding: 0;
  background: transparent;
  border: none;
  color: #007aff;
  font-family: inherit;
  font-size: 15px;
  cursor: pointer;
}

/* 破坏性操作：iOS 红（弹层 2 里的「从这张单里删掉这项」） */
.ios-destructive {
  display: block;
  width: 100%;
  margin-top: 18px;
  padding: 14px 0;
  background: transparent;
  border: none;
  color: #ff3b30;
  font-family: inherit;
  font-size: 17px;
  cursor: pointer;
}

/* 底栏变矮了，底部留白同步收紧 */
#ledger-rent { padding-bottom: 150px; }
@media (min-width: 601px) {
  #ledger-rent { padding-bottom: 120px; }
}

/* ============================================================
   选型号弹层 —— iOS 风
   ============================================================ */
.picker-sheet { border-radius: 14px 14px 0 0; }
.picker-header { padding: 6px 16px 10px; }
.picker-title { font-size: 17px; font-weight: 500; color: #000; }
.picker-close {
  width: 30px;
  height: 30px;
  background: #e3e3e8;
  color: #8e8e93;
  font-size: 17px;
}
.picker-close:hover { background: #d8d8de; color: #3c3c43; }

/* iOS 搜索框：灰底圆角无边框 */
.picker-search-wrap {
  margin: 0 16px 10px;
  height: 36px;
  padding: 0 8px;
  gap: 6px;
  background: #e3e3e8;
  border: none;
  border-radius: 10px;
}
.picker-search-wrap:focus-within { border: none; }
.picker-search-wrap:focus-within .picker-search-icon { color: #8e8e93; }
#picker-search { font-size: 17px; color: #000; }
.picker-hint {
  padding: 0 16px 8px;
  font-size: 13px;
  color: rgba(60, 60, 67, 0.6);
  letter-spacing: 0;
}
.picker-brand-list { padding: 0 0 calc(16px + env(safe-area-inset-bottom)); }

/* 品牌行：白底普通行 + 右侧数量 + 箭头（不再是灰色小标题） */
.picker-brand-group { border-top: none; }
.picker-brand-group + .picker-brand-group .picker-brand-head { border-top: 0.5px solid rgba(60, 60, 67, 0.29); }
.picker-brand-head {
  background: #fff;
  gap: 8px;
  min-height: 48px;
  padding: 12px 16px;
  font-size: 17px;
  font-weight: 400;
  color: #000;
  letter-spacing: 0;
}
.picker-brand-head:hover { background: #f7f7fa; }
.picker-brand-head:active { background: #f2f2f7; }
.picker-brand-name { flex: 1; font-size: 17px; color: #000; }
.picker-brand-count {
  min-width: 0;
  padding: 0;
  background: transparent;
  color: rgba(60, 60, 67, 0.6);
  font-size: 15px;
}
.picker-chevron { color: #c6c6c8; width: 12px; height: 8px; transition: transform 0.2s ease; }
.picker-brand-group.is-open .picker-chevron { transform: rotate(180deg); }

/* 型号行（搜索时平铺 / 展开时列表内） */
.picker-model {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-height: 48px;
  padding: 12px 16px;
  font-size: 17px;
  color: #000;
  border-bottom: 0.5px solid rgba(60, 60, 67, 0.29);
}
.picker-model:last-child { border-bottom: none; }
.picker-model:hover { background: #f7f7fa; color: #000; }
.picker-model:active { background: #f2f2f7; }
.picker-model-brand { font-size: 15px; color: rgba(60, 60, 67, 0.6); }
.picker-empty { padding: 26px 16px; text-align: center; font-size: 15px; color: rgba(60, 60, 67, 0.6); }

/* 弹层 2：字段区与标题 */
.picker-fields-body { padding: 4px 16px 16px; }
.picker-fields-model {
  font-size: 17px;
  font-weight: 500;
  color: #000;
  padding: 10px 0 14px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.picker-fields-footer { padding: 12px 16px calc(16px + env(safe-area-inset-bottom)); }
.picker-fields-footer .btn-primary {
  height: 50px;
  border: none;
  border-radius: 12px;
  background: #007aff;
  font-size: 17px;
  font-weight: 500;
}
.picker-fields-footer .btn-primary:active { background: #0062cc; }

/* 字段改成 iOS 表单行：左标签 + 右对齐数值 + 发丝线 */
.picker-field {
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 48px;
  margin: 0;
  border-bottom: 0.5px solid rgba(60, 60, 67, 0.29);
}
.picker-field-label { font-size: 17px; color: #000; letter-spacing: 0; white-space: nowrap; }
.picker-field input {
  flex: 1;
  min-width: 0;
  height: 44px;
  padding: 0;
  border: none;
  border-radius: 0;
  background: transparent;
  text-align: right;
  font: inherit;
  font-size: 17px;
  color: #000;
  font-variant-numeric: tabular-nums;
}
.picker-field input:focus { border: none; }
.picker-fields-range {
  margin: 14px 0 0;
  padding: 0;
  background: transparent;
  border-radius: 0;
  text-align: center;
  font-size: 13px;
  color: rgba(60, 60, 67, 0.6);
  font-variant-numeric: tabular-nums;
}

/* ============================================================
   弹层结构加固（0923 真机反馈修复）
   现象：① 选型号时弹层突然被撑满整屏、标题与搜索框看不见了；
        ② 打字时弹层与键盘之间有截空档，时透明（遮罩）时白（弹层）。
   根因：① .picker-sheet 没有 overflow:hidden，iOS 为了露出被键盘
          挡住的搜索框，会去滚动这个"可滚动祖先"，把标题栏滚出视野；
        ② 键盘适配用满可视高度（vv.height-16），弹层顶到状态栏底下；
        ③ 键盘适配只测一次（focusin 后 120ms），跟不上 250ms 的键盘动画。
   ============================================================ */

/* 遮罩层精确覆盖「键盘之上那块可见区」（top / height 由 JS 按 visualViewport 写入）。
   top + height 都生效时 bottom 被忽略，等价于原来的 inset:0。
   过渡时长与曲线对齐 iOS 键盘动画，弹层跟手、不落空档。 */
.picker-overlay {
  top: 0;
  height: 100vh;
  /* 弹层活动区顶部留安全距离：任何情况下都不顶到状态栏 / Safari 顶栏 */
  padding-top: max(10px, env(safe-area-inset-top));
  transition: top 0.25s cubic-bezier(0.32, 0.72, 0, 1),
              height 0.25s cubic-bezier(0.32, 0.72, 0, 1);
}

/* ① 严格裁切：圆角真正生效，同时不给 iOS「滚动这个容器」的机会 */
.picker-sheet {
  overflow: hidden;
  /* 高度上限从 80vh 收到 74vh —— 一打开不再「占满屏幕」 */
  max-height: min(74vh, 620px);
  transition: max-height 0.25s cubic-bezier(0.32, 0.72, 0, 1);
}
.picker-sheet-fields { max-height: min(74vh, 620px); }

/* ② 顶部固定区：把手 / 标题 / 搜索框 / 提示，列表怎么滚都不动 */
.picker-sheet-top {
  flex: 0 0 auto;            /* 不压缩、不拉伸 */
  position: sticky;
  top: 0;
  z-index: 3;
  background: #fff;          /* 不透出下方列表 */
  border-radius: 14px 14px 0 0;
}

/* ③ flex 经典加固：不把最小高度归零，长列表会把容器撑破 */
.picker-brand-list { min-height: 0; }
.picker-fields-body { min-height: 0; }

/* ==================================================================
   角色与权限（0923）
   店长登录后只保留「记账」；历史记录里一眼看清哪张单是自己记的
   （能改）、哪张是别人的（只能看）。
   注意：这里只管「看着干净」，真正的拦截在服务端。
   ================================================================== */

/* 录入人标记：蓝色=我记的，灰色=别人的 */
.chip.mine {
  background: #eaf0ff;
  color: var(--primary-dark);
}
.chip.who {
  background: #f0f1f4;
  color: var(--muted);
}

/* 店长底部保留「记账 + 统计」两项，居中摆放 */
body.role-manager .nav {
  grid-template-columns: repeat(2, minmax(0, 160px));
  justify-content: center;
  column-gap: 8px;
}

/* ============ 分项日期 + 免费搭（0923） ============ */
/* 免费搭标签：金额 0 的行自动挂（老板拍板：金额填 0 = 免费搭） */
.chip.chip-free {
  display: inline-block;
  margin-left: 6px;
  padding: 1px 7px;
  border-radius: 99px;
  background: #eaf0ff;
  color: var(--primary-dark, #1f4cd0);
  font-size: 11px;
  font-weight: 500;
  vertical-align: middle;
}
/* 与单日期不同的行：日期数字用主色突出 */
.cart-date-diff,
.hist-date-diff {
  color: var(--primary, #4f8bff);
  font-weight: 600;
}
/* 弹层 2 的起租日期：原生 date 输入沿用同款字段样式 */
.picker-field input[type="date"] {
  -webkit-appearance: none;
  appearance: none;
  background: #fff;
}
/* 弹层 2 金额为 0 时的「免费搭」提示 */
.picker-fields-freehint {
  margin-top: -6px;
  margin-bottom: 10px;
  font-size: 12px;
  line-height: 1.5;
  color: var(--primary, #4f8bff);
}

/* ===== 总账（按门店 / 按型号 / 免费搭天数）—— 全部累计 ===== */
.ledger-card { margin-bottom: 14px; }
.ledger-title {
  padding: 12px 16px 2px;
  font-size: 13px;
  color: var(--muted, #6b7280);
}
.ledger-row { padding: 9px 16px 12px; }
.ledger-row + .ledger-row { border-top: 0.5px solid rgba(60, 60, 67, 0.14); }
.ledger-top {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
}
.ledger-name {
  font-size: 15px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.ledger-val { font-size: 15px; font-weight: 600; white-space: nowrap; }
.ledger-val i {
  font-style: normal;
  font-weight: 400;
  font-size: 12px;
  color: var(--muted-2, #98a1b0);
  margin-left: 6px;
}
.ledger-bar {
  margin-top: 6px;
  height: 4px;
  border-radius: 2px;
  background: rgba(60, 60, 67, 0.1);
  overflow: hidden;
}
.ledger-bar span {
  display: block;
  height: 100%;
  border-radius: 2px;
  background: var(--primary, #2f6bff);
}
.ledger-empty {
  padding: 12px 16px 14px;
  font-size: 14px;
  color: var(--muted-2, #98a1b0);
}

/* ===== 放心宝（增值业务独立流水）===== */
.ios-row-input {
  cursor: text;
  gap: 12px;
}
.ios-row-input input {
  flex: 0 0 130px;
  margin: 0;
  padding: 8px 10px;
  border: 0.5px solid rgba(60, 60, 67, 0.2);
  border-radius: 8px;
  background: #fff;
  font-size: 16px;
  text-align: right;
  -webkit-appearance: none;
  appearance: none;
}
.ios-row-input input:focus {
  outline: none;
  border-color: var(--primary, #2f6bff);
}
.fxb-quick-tip {
  padding: 6px 16px 0;
  font-size: 12px;
  line-height: 1.5;
}
.chip.fxb {
  background: #e8f7ee;
  color: #1d8a4e;
}
.fxb-amount {
  color: #1d8a4e;
}

/* ============ 历史页三段式 + 统计分层（0926 改版） ============ */

/* 筛选：收成一行 */
.hist-filter-group { margin-bottom: 12px; }
.hist-filter-active {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 12px;
  padding: 9px 12px;
  background: rgba(0, 122, 255, 0.1);
  border-radius: 10px;
  font-size: 13px;
}
.hist-filter-text { flex: 1; min-width: 0; color: #007aff; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hist-filter-clear {
  flex: 0 0 auto;
  border: 0;
  background: none;
  padding: 4px 8px;
  font-size: 13px;
  font-weight: 600;
  color: #007aff;
  cursor: pointer;
}

/* 门店入口行 */
.hist-store-row .ios-value { font-size: 15px; }

/* 记录列表：按日期分组 + 单行 */
.hist-date-head {
  margin: 16px 4px 6px;
  font-size: 13px;
  font-weight: 500;
  color: rgba(60, 60, 67, 0.6);
}
.hist-list-group {
  background: #fff;
  border-radius: 10px;
  overflow: hidden;
}
.hist-row {
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-height: 48px;
  padding: 12px 16px;
  background: #fff;
  border: 0;
  border-bottom: 0.5px solid rgba(60, 60, 67, 0.18);
  font: inherit;
  text-align: left;
  cursor: pointer;
}
.hist-row:last-child { border-bottom: 0; }
.hist-row:active { background: rgba(60, 60, 67, 0.06); }
.hist-row-main { flex: 1; min-width: 0; }
.hist-row-title {
  display: block;
  font-size: 15px;
  line-height: 1.35;
  color: #1c1c1e;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.hist-row-side { display: flex; align-items: center; gap: 6px; flex: 0 0 auto; }
.hist-amt { font-size: 16px; font-weight: 600; color: #1c1c1e; }
.hist-amt.fxb { color: #1d8a4e; }

/* 单据详情弹层 */
.hist-detail-sheet {
  max-width: 480px;
  width: 100%;
  max-height: 88vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.hist-detail-top {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 10px 12px;
  border-bottom: 0.5px solid rgba(60, 60, 67, 0.18);
}
.hist-detail-title { font-size: 16px; font-weight: 600; }
.hist-detail-body { flex: 1; min-height: 0; overflow-y: auto; -webkit-overflow-scrolling: touch; padding-bottom: 16px; }

/* 统计页：更多指标 —— 紧凑文字入口（居中小字 + ›，不占大数字卡那样的高度） */
.kpi-more { margin-top: 2px; }
.kpi-more summary {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2px;
  padding: 8px 0 6px;
  font-size: 13.5px;
  color: #8e8e93;
  cursor: pointer;
  list-style: none;
}
.kpi-more summary::-webkit-details-marker { display: none; }
.kpi-more summary .ios-chev { color: #c6c6c8; font-size: 15px; line-height: 1; transition: transform 0.15s ease; }
.kpi-more[open] summary .ios-chev { transform: rotate(90deg); }
.kpi-more[open] .kpi-grid { padding: 0; }

/* 品牌列表：查看全部 */
.brand-more { list-style: none; padding: 6px 0; }
.brand-more .btn { width: 100%; }

/* 累计总账：门店入口行 + 门店大数字 */
.ledger-entry {
  display: block;
  width: 100%;
  padding: 10px 0;
  background: none;
  border: 0;
  font: inherit;
  text-align: left;
  cursor: pointer;
}
.ledger-entry:active { opacity: 0.6; }
.ledger-big { font-size: 26px; font-weight: 700; margin: 4px 0 10px; }
.ledger-big i { font-size: 12px; font-weight: 400; font-style: normal; color: rgba(60, 60, 67, 0.6); margin-left: 8px; }
.ledger-total { margin-top: 10px; padding-top: 10px; border-top: 0.5px solid rgba(60, 60, 67, 0.18); font-size: 13px; color: rgba(60, 60, 67, 0.6); }
.ledger-sub { margin-top: 10px; font-size: 12px; line-height: 1.5; color: rgba(60, 60, 67, 0.55); }

/* ===================================================================
   缺货未成交（v7 起）：独立红色作用域 .stockout-*
   原则：所有样式以 .stockout- 前缀，绝不改写出租页 / 统计页既有样式。
   红色调色板：#D92D20（主红）/ #B42318（深红文字）/ #FFF1F0（浅红底）/ #FDA29B（红边）
   =================================================================== */

/* 记账页 tab / 历史页类别：缺货用红色标识 */
.segmented button.stockout-tab { color: #B42318; }
.segmented button.stockout-tab.active { background: #D92D20; color: #fff; }
.segmented button.stockout-cat { color: #B42318; }
.segmented button.stockout-cat.active { background: #D92D20; color: #fff; }

/* 常驻红色提示栏：提醒这是「不会生成出租单」的记录 */
.stockout-banner {
  display: flex; align-items: flex-start; gap: 8px;
  background: #FFF1F0; border: 1px solid #FDA29B; color: #B42318;
  border-radius: 10px; padding: 10px 12px; font-size: 13px; line-height: 1.45; margin-bottom: 4px;
}
.stockout-banner b { font-weight: 600; }
.stockout-banner-icon { font-size: 15px; line-height: 1.3; flex: 0 0 auto; }

.stockout-section-head {
  font-size: 13px; color: #B42318; font-weight: 600;
  margin: 16px 4px 8px; letter-spacing: 0.3px;
}

/* 老板门店三选一 */
.stockout-store-options { padding: 0; }
.stockout-store-options .stockout-store-btn {
  display: flex; align-items: center; justify-content: space-between;
  width: 100%; padding: 12px 16px; background: none; border: 0;
  border-top: 0.5px solid rgba(60, 60, 67, 0.18); font: inherit; text-align: left;
  cursor: pointer; color: #B42318; font-weight: 500;
}
.stockout-store-options .stockout-store-btn:first-child { border-top: 0; }
.stockout-store-options .stockout-store-btn.active { background: #FFF1F0; }
.stockout-store-options .stockout-store-btn.active::after { content: '✓'; color: #D92D20; font-weight: 700; }

/* 购物车项复用既有 .cart-* 样式，这里只补红色合计条 */
.stockout-total-bar {
  position: sticky; bottom: 0; background: #fff; border-top: 0.5px solid rgba(60, 60, 67, 0.18);
  padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); margin: 12px -16px -16px;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
}
.stockout-total-line { display: flex; flex-direction: column; }
.stockout-total-label { font-size: 12px; color: rgba(60, 60, 67, 0.6); }
.stockout-total-value { font-size: 20px; font-weight: 700; color: #B42318; }
.stockout-total-cur { font-size: 13px; margin-right: 1px; }
.stockout-save-btn {
  background: #D92D20; color: #fff; border: 0; border-radius: 12px;
  height: 50px; padding: 0 22px; font-size: 17px; font-weight: 500; cursor: pointer; flex: 0 0 auto;
}
.stockout-save-btn:disabled { opacity: 0.5; }
.stockout-save-btn:active { opacity: 0.85; }

/* 需求日期：原生 date 输入透明覆盖整行，只显示一行清晰日期（年-月-日），避免原生控件与标签重叠 */
#stockout-date {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 0;
  border: none;
  opacity: 0;
  background: transparent;
  -webkit-appearance: none;
  appearance: none;
  cursor: pointer;
}

/* 缺货类型：红色双选按钮（一次选择统一套用全部型号） */
.stockout-type-options { display: flex; flex-direction: column; }
.stockout-type-btn {
  display: block;
  width: 100%;
  text-align: left;
  padding: 14px 16px;
  background: #fff;
  border: none;
  border-top: 0.5px solid rgba(60, 60, 67, 0.18);
  font: inherit;
  font-size: 16px;
  color: #B42318;
  cursor: pointer;
}
.stockout-type-btn:first-child { border-top: none; }
.stockout-type-btn.active { background: #D92D20; color: #fff; font-weight: 600; }
.stockout-type-note {
  padding: 8px 16px 10px;
  font-size: 13px;
  color: #B42318;
  background: #FFF1F0;
}

/* 缺货型号列表行：型号 + 金额（点整行=修改），下方类型标签 + 修改/删除 */
.stockout-cart-tag {
  padding: 0 16px 8px;
  font-size: 13px;
  color: #B42318;
}
.stockout-cart-actions { display: flex; border-top: 0.5px solid rgba(60, 60, 67, 0.12); }
.stockout-cart-actions .link-btn {
  flex: 1;
  padding: 10px;
  background: #fff;
  border: none;
  font: inherit;
  font-size: 15px;
  color: #B42318;
  cursor: pointer;
}
.stockout-cart-actions .link-btn.danger { color: #B42318; }
.stockout-cart-actions .link-btn + .link-btn { border-left: 0.5px solid rgba(60, 60, 67, 0.12); }
.stockout-cart-actions .link-btn:active { background: #f2f2f7; }

/* 缺货填字段弹层提交按钮统一走红色（与缺货全链路一致，不混入出租蓝） */
#stockout-fields-overlay .picker-fields-footer .btn {
  background: #D92D20;
  border-color: #D92D20;
  color: #fff;
}
#stockout-fields-overlay .picker-fields-footer .btn:active { background: #B42318; }

/* 统计页红色入口卡 */
.stockout-entry-card {
  display: flex; align-items: center; gap: 12px; width: 100%;
  background: #FFF1F0; border: 1px solid #FDA29B; border-radius: 12px;
  padding: 14px 16px; margin-bottom: 12px; cursor: pointer; text-align: left; font: inherit;
}
.stockout-entry-card:active { opacity: 0.85; }
.stockout-entry-icon { font-size: 20px; }
.stockout-entry-text { flex: 1; display: flex; flex-direction: column; }
.stockout-entry-title { font-size: 16px; font-weight: 600; color: #B42318; }
.stockout-entry-sub { font-size: 12px; color: #B42318; opacity: 0.85; margin-top: 2px; }
.stockout-entry-chev { color: #D92D20; font-size: 18px; }

/* 品牌区块（统计页）：圆环 + 列表 */
.stockout-brand-head { font-size: 15px; font-weight: 600; margin: 16px 4px 8px; }
#stockout-brand-chart { width: 100%; height: 240px; }

/* 红色二次确认框 */
.stockout-confirm-sheet { border-top: 3px solid #D92D20; }
.stockout-confirm-icon { font-size: 28px; color: #D92D20; text-align: center; }
.stockout-confirm-sub { font-size: 13px; color: #B42318; margin: 0 0 12px; line-height: 1.5; }
.stockout-confirm-summary { background: #FFF1F0; border: 1px solid #FDA29B; border-radius: 10px; padding: 12px; margin-bottom: 16px; font-size: 14px; }
.stockout-confirm-summary .row { display: flex; justify-content: space-between; padding: 3px 0; gap: 12px; }
.stockout-confirm-summary .row b { color: #B42318; font-weight: 600; }
.stockout-confirm-ok { background: #D92D20; color: #fff; border: 0; border-radius: 10px; height: 44px; font-size: 16px; font-weight: 500; cursor: pointer; }
.stockout-confirm-ok:active { opacity: 0.85; }

/* 历史列表里的缺货行：左侧红条 + 红色金额 + 红标 */
.hist-row.stockout-row { border-left: 3px solid #D92D20; }
.stockout-row .hist-amt { color: #B42318; }
.stockout-tag {
  display: inline-block; background: #D92D20; color: #fff; font-size: 11px; font-weight: 600;
  padding: 1px 6px; border-radius: 6px; margin-right: 6px; vertical-align: 1px;
}

/* 选型号时「新增型号」行 */
.picker-newmodel {
  list-style: none; padding: 14px 16px; color: #007AFF; font-weight: 500; cursor: pointer;
  background: none; border-top: 0.5px solid rgba(60, 60, 67, 0.18);
}
.picker-newmodel:active { opacity: 0.6; }

/* 缺货统计：门店筛选控件（老板专属）复用 .stockout-store-options 样式 */
.stockout-store-filter .stockout-store-options { margin: 0 -16px; }
.stockout-store-filter .stockout-store-btn { padding-left: 16px; padding-right: 16px; color: #B42318; }

/* ---------- v7 收尾：缺货全流程统一红色（出租保持蓝色，不在此作用域内） ---------- */

/* 历史页「缺货未成交」类别：顶部合计行整体红色 */
.device-stats.stockout-hist-head { color: #B42318; }
.device-stats.stockout-hist-head b { color: #B42318; }

/* 缺货详情：缺货类型标识（红色小标） */
.stockout-tag-sm {
  display: inline-block; margin-left: 8px; padding: 1px 7px; border-radius: 6px;
  background: #FFF1F0; border: 1px solid #FDA29B; color: #B42318;
  font-size: 11px; font-weight: 600; vertical-align: 1px;
}
.stockout-detail-item-head { margin-bottom: 4px; }
.stockout-detail-item-head b { color: #B42318; }
.stockout-detail-item-sub { font-size: 13px; color: rgba(60, 60, 67, 0.6); }

/* 「填写缺货信息」弹层：整层红色（出租的填字段弹层保持蓝色） */
#stockout-fields-overlay .picker-title { color: #B42318; }
#stockout-fields-overlay .picker-fields-model { color: #B42318; }
#stockout-fields-overlay .picker-fields-freehint { color: #B42318; }
#stockout-fields-overlay #stockout-fields-type button.active { background: #D92D20; color: #fff; }
#stockout-fields-overlay .picker-fields-footer .btn-primary { background: #D92D20; }
#stockout-fields-overlay .picker-fields-footer .btn-primary:active { background: #B42318; }

/* 「新增型号并继续」：缺货流程下走红色（出租流程保持蓝色） */
#picker-newmodel-overlay.stockout-mode .picker-title { color: #B42318; }
#picker-newmodel-overlay.stockout-mode .picker-fields-footer .btn-primary { background: #D92D20; }
#picker-newmodel-overlay.stockout-mode .picker-fields-footer .btn-primary:active { background: #B42318; }

/* 缺货统计：日期范围「应用日期范围」确认按钮红色 */
#stockout-stats-apply { background: #D92D20; border-color: #D92D20; }
#stockout-stats-apply:active { background: #B42318; }

/* 缺货统计：品牌 / 型号 / 门店 标识与图表统一红色（出租统计的 .brand-* 不受影响） */
#stats-stockout-pane .brand-name,
#stats-stockout-pane .brand-amt,
#stats-stockout-pane .brand-pct { color: #B42318; }
#stats-stockout-pane .brand-row:hover,
#stats-stockout-pane .brand-row.is-hover { background: rgba(217, 45, 32, 0.05); }
#stats-stockout-pane .brand-row:focus { background: rgba(217, 45, 32, 0.08); }
#stats-stockout-pane .stockout-brand-block { margin-top: 12px; }
#stats-stockout-pane .stockout-brand-name { font-size: 15px; font-weight: 600; color: #B42318; margin: 10px 4px 6px; }
#stats-stockout-pane .stockout-model-list { list-style: none; margin: 0; padding: 0; }
#stats-stockout-pane .stockout-model-row {
  display: flex; align-items: flex-start; justify-content: space-between; gap: 12px;
  padding: 10px 6px; border-bottom: 0.5px solid rgba(217, 45, 32, 0.14);
}
#stats-stockout-pane .stockout-model-row:last-child { border-bottom: 0; }
#stats-stockout-pane .stockout-model-name { color: #B42318; font-weight: 500; font-size: 15px; }
#stats-stockout-pane .stockout-model-sub { color: #B42318; font-size: 12.5px; text-align: right; line-height: 1.5; }
#stats-stockout-pane .stockout-model-sub .muted { color: rgba(180, 35, 24, 0.6); }

/* 统计页入口卡（点进「闲置分析」）—— 沿用统计页既有卡片观感 */
.idle-entry-card {
  display: flex; align-items: center; gap: 12px; width: 100%;
  background: var(--card); border: 1px solid var(--line); border-radius: 12px;
  padding: 14px 16px; margin-bottom: 12px; cursor: pointer; text-align: left; font: inherit;
  box-shadow: var(--shadow);
}
.idle-entry-card:active { opacity: 0.85; }
.idle-entry-text { flex: 1; display: flex; flex-direction: column; }
.idle-entry-title { font-size: 16px; font-weight: 600; color: var(--text); }
.idle-entry-sub { font-size: 12px; color: var(--muted); margin-top: 2px; }
.idle-entry-chev { color: #c6c6c8; font-size: 18px; }

/* ==================== 闲置分析（v8 起，老板专属 · 只读）· 极简苹果风 ====================
   浅灰底 + 纯白卡片、大标题大数字、充足留白、统一圆角；
   少边框少阴影，主色系统蓝 #007aff；100% 闲置只把「数字」染成柔和琥珀，卡片不变黄。
   不使用渐变、图表、粗边框，也不出现任何说明性文字。 */

.idle-back {
  display: inline-block; margin: 0 0 6px; padding: 8px 2px;
  background: none; border: 0; font: inherit; font-size: 15px; color: #007aff; cursor: pointer;
}
.idle-title {
  margin: 0 0 18px; font-size: 30px; line-height: 1.2; font-weight: 700;
  letter-spacing: -0.6px; color: #16181d;
}

/* ---------- 筛选：简洁圆角选择按钮 ---------- */
.idle-filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 22px; }
.idle-pill-wrap { position: relative; display: inline-flex; max-width: 100%; }
.idle-pill-wrap::after {
  content: '\203A'; position: absolute; right: 14px; top: 50%; transform: translateY(-50%);
  color: #007aff; font-size: 16px; line-height: 1; pointer-events: none;
}
.idle-pill {
  appearance: none; -webkit-appearance: none;
  border: 0; border-radius: 999px; background: #ffffff; color: #007aff;
  font: inherit; font-size: 14.5px; font-weight: 500; line-height: 1.2;
  padding: 10px 34px 10px 16px; max-width: 100%;
  text-overflow: ellipsis; cursor: pointer;
}
.idle-pill:active { background: #f2f2f7; }

/* ---------- 顶部四项汇总 ---------- */
.idle-summary { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 24px; }
.idle-stat { background: #ffffff; border-radius: 16px; padding: 16px 16px 18px; }
.idle-stat-label { font-size: 13px; color: rgba(60, 60, 67, 0.6); margin-bottom: 6px; }
.idle-stat-value {
  font-size: 28px; font-weight: 700; letter-spacing: -0.5px;
  color: #16181d; font-variant-numeric: tabular-nums;
}

/* ---------- 型号卡片 ---------- */
.idle-list { display: flex; flex-direction: column; gap: 12px; }
.idle-card { background: #ffffff; border-radius: 16px; padding: 18px; }
.idle-card-name { font-size: 18px; font-weight: 600; color: #16181d; margin-bottom: 14px; word-break: break-word; }
.idle-rate-block { display: flex; flex-direction: column; gap: 2px; margin-bottom: 16px; }
.idle-rate-label { font-size: 13px; color: rgba(60, 60, 67, 0.6); }
.idle-rate-value {
  font-size: 28px; font-weight: 700; letter-spacing: -0.5px;
  color: #16181d; font-variant-numeric: tabular-nums;
}
.idle-meta {
  display: flex; flex-wrap: wrap; gap: 6px 18px;
  font-size: 14.5px; color: #3c3c43; margin-bottom: 16px;
}
.idle-meta b { font-weight: 600; color: #16181d; font-variant-numeric: tabular-nums; }
.idle-link {
  display: inline-flex; align-items: center; gap: 3px;
  background: none; border: 0; padding: 2px 0; font: inherit;
  font-size: 15px; font-weight: 500; color: #007aff; cursor: pointer;
}
.idle-link:active { opacity: 0.6; }
.idle-chev { color: #c6c6c8; font-size: 16px; line-height: 1; }

/* ---------- 门店明细（型号卡片展开） ---------- */
.idle-store-list { margin-top: 16px; }
.idle-store-row { padding: 14px 0; border-top: 0.5px solid rgba(60, 60, 67, 0.16); }
.idle-store-row:first-child { border-top: 0; padding-top: 4px; }
.idle-store-row:last-child { padding-bottom: 0; }
.idle-store-name { font-size: 15.5px; font-weight: 600; color: #16181d; margin-bottom: 6px; }
.idle-store-line { font-size: 14px; color: #3c3c43; line-height: 1.75; font-variant-numeric: tabular-nums; }

/* ---------- 调拨建议 ---------- */
.idle-section-title {
  margin: 28px 0 12px; font-size: 20px; font-weight: 700;
  letter-spacing: -0.3px; color: #16181d;
}
.idle-transfer { background: #ffffff; border-radius: 16px; padding: 18px; margin-bottom: 12px; }
.idle-transfer:last-child { margin-bottom: 0; }
.idle-transfer-model { font-size: 18px; font-weight: 600; color: #16181d; margin-bottom: 6px; word-break: break-word; }
.idle-transfer-line { font-size: 15px; color: #3c3c43; margin-bottom: 4px; }
.idle-transfer-store { padding-top: 14px; margin-top: 10px; border-top: 0.5px solid rgba(60, 60, 67, 0.16); }

/* ---------- 空状态 ---------- */
.idle-empty { font-size: 14.5px; color: rgba(60, 60, 67, 0.6); }
.idle-empty-block {
  background: #ffffff; border-radius: 16px; padding: 28px 18px; text-align: center;
}

/* ---------- 100% 闲置：只把数字染成柔和琥珀，卡片保持白色 ---------- */
.idle-rate-value.is-full,
.idle-stat-value.is-full,
.idle-amber { color: #b25e09; }

@media (min-width: 720px) {
  .idle-summary { grid-template-columns: repeat(4, 1fr); }
}


/* ==================== 业务统计重构（v9）：三模块切换 + 缺货红 / 闲置蓝橙 ==================== */

/* ---------- 顶部三切换项 ---------- */
.stats-tabs {
  display: flex; gap: 8px; margin-bottom: 14px;
}
.stats-tab {
  flex: 1; height: 42px; border: 0; border-radius: 10px; cursor: pointer;
  background: #ffffff; color: #1d2129; font: inherit; font-size: 14.5px; font-weight: 600;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.05);
}
.stats-tab.active { color: #ffffff; }
.stats-tab[data-module="rental"].active { background: var(--primary, #2f6bff); }
.stats-tab[data-module="stockout"].active { background: #d92d20; }
.stats-tab[data-module="idle"].active { background: #007aff; }

/* ---------- 缺货 / 闲置共用：筛选与 KPI ---------- */
.so-filters, .idle-filter-card { margin-bottom: 12px; padding: 12px; }
.so-filter-row, .idle-filter-row { display: flex; gap: 8px; margin-bottom: 8px; }
.so-filter-row:last-child, .idle-filter-row:last-child { margin-bottom: 0; }
.so-select-wrap, .idle-select-wrap { flex: 1; min-width: 0; position: relative; }
.so-select-wrap select, .idle-select-wrap select,
.so-filter-row input[type="date"], .idle-filter-row input[type="date"] {
  width: 100%; height: 40px; border: 1px solid var(--line); border-radius: 10px;
  background: #ffffff; color: #1d2129; font: inherit; font-size: 13.5px; padding: 0 10px;
  appearance: none; -webkit-appearance: none;
}
.so-select-wrap::after, .idle-select-wrap::after {
  content: '\203A'; position: absolute; right: 10px; top: 50%; transform: translateY(-50%) rotate(90deg);
  color: #98a2b3; font-size: 14px; pointer-events: none;
}
.so-kpi-card { padding: 14px 14px 16px; margin-bottom: 12px; }
.so-kpi-card-title { font-size: 16px; font-weight: 700; color: #101828; margin-bottom: 12px; }
.so-kpi-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.so-kpi-grid-4 { margin-top: 10px; }
.so-kpi { min-width: 0; }
.so-kpi-label { font-size: 11.5px; color: #667085; margin-bottom: 3px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.so-kpi-value {
  font-size: 21px; font-weight: 750; letter-spacing: -0.3px; color: #101828;
  font-variant-numeric: tabular-nums; line-height: 1.15; word-break: break-all;
}
.so-kpi-value.is-red { color: #d92d20; }
.so-kpi-value.is-high { color: #e8833a; }
.so-kpi-value.so-kpi-dark { color: #101828; }
.so-kpi-unit { font-size: 12px; font-weight: 600; margin-left: 1px; color: inherit; }
.so-red { color: #d92d20; }

/* ---------- 环形图卡片 ---------- */
.so-ring-card { padding: 14px; margin-bottom: 12px; }
.so-more-link {
  display: flex; justify-content: center; align-items: center; gap: 2px; width: 100%;
  background: none; border: 0; padding: 8px 0 2px; font: inherit;
  font-size: 13.5px; font-weight: 600; color: var(--primary, #2f6bff); cursor: pointer;
}
.so-more-link:active { opacity: 0.7; }
.so-chev { font-size: 15px; }

/* ---------- 列表 / 行 ----------
   旧 .brand-row 是「色块14px + 名称1fr + 金额 + 百分比64px」四列 grid；
   缺货行没有色块（设计图行 = 名称 + 笔数 + 占比/日期 + ›），这里覆盖列定义，
   否则名称会掉进 14px 列被截成单字。 */
#stats-stockout-pane .brand-row {
  grid-template-columns: minmax(0, 1.4fr) auto auto 14px;
  gap: 10px;
}
#stats-stockout-pane .brand-row .brand-amt { text-align: right; }
#stats-stockout-pane .brand-row .brand-pct { color: #98a2b3; font-weight: 500; }

/* ---------- 列表 / 行 ---------- */
.so-store-card { padding: 14px; margin-bottom: 12px; }
.so-store-card .brand-list { margin: 0; }
.so-clickable { cursor: pointer; }
.so-clickable:active { background: #f5f6f8; }
.so-store-card .brand-row { padding-left: 2px; padding-right: 2px; }
.so-store-card .brand-row .ios-chev { color: #c6c6c8; margin-left: 4px; }

/* ---------- 门店分布（品牌页） ---------- */
.so-store-dist { display: flex; gap: 8px; }
.so-dist-cell {
  flex: 1; background: #f8f9fb; border-radius: 10px; padding: 10px 8px; text-align: center;
}
.so-dist-name { font-size: 12px; color: #667085; margin-bottom: 2px; }
.so-dist-num { font-size: 19px; font-weight: 750; color: #101828; font-variant-numeric: tabular-nums; }

/* ---------- 逐条登记明细（型号页） ---------- */
.so-record { padding: 12px 0; border-top: 0.5px solid rgba(15, 23, 42, 0.08); }
.so-record:first-child { border-top: 0; padding-top: 2px; }
.so-record-head {
  display: flex; justify-content: space-between; align-items: center;
  font-size: 15px; font-weight: 650; color: #101828; margin-bottom: 8px;
}
.so-record-head .ios-chev { color: #c6c6c8; }
.so-record-grid { display: grid; grid-template-columns: 1.1fr 1.4fr 1fr; gap: 8px; }
.so-record-label { font-size: 11.5px; color: #667085; margin-bottom: 3px; }
.so-record-val { font-size: 13px; font-weight: 600; color: #101828; }
.so-type-pill {
  display: inline-block; padding: 3px 8px; border-radius: 999px;
  background: #fdecea; color: #b42318; font-size: 11.5px; font-weight: 600; white-space: nowrap;
}

/* ---------- 闲置：吸顶大盘 + 高闲置摘要 + 品类环形图 ---------- */
.idle-kpi-sticky { position: sticky; top: 61px; z-index: 25; margin-bottom: 12px; }
.idle-kpi-card { padding: 14px 14px 16px; box-shadow: 0 4px 14px rgba(15, 23, 42, 0.08); }
.idle-kpi-card-title { font-size: 17px; font-weight: 750; color: #101828; margin-bottom: 12px; }
.idle-high-card {
  display: flex; align-items: center; padding: 14px; margin-bottom: 12px;
  background: #fff7ec; border-radius: 14px;
}
.idle-high-cell { flex: 1; min-width: 0; }
.idle-high-divider { width: 1px; align-self: stretch; background: rgba(232, 131, 58, 0.25); margin: 0 14px; }
.idle-high-num {
  font-size: 26px; font-weight: 750; color: #e8833a; letter-spacing: -0.4px;
  font-variant-numeric: tabular-nums;
}
.idle-high-unit { font-size: 13px; font-weight: 650; margin-left: 2px; }
.idle-cat-rate { color: #101828; }
.idle-cat-rate.is-high { color: #e8833a; }

/* 390px 级窄屏：缺货 KPI 的「预计损失」金额较长，允许两列布局避免挤压 */
@media (max-width: 374px) {
  .so-kpi-grid { grid-template-columns: repeat(2, 1fr); gap: 10px 6px; }
}

/* v9.1：登记记录里的「需求日期」与登记日不同天时的弱提醒（琥珀，不用缺货红） */
.so-record-val.so-need-warn { color: #b25e09; }

/* ==================== 各门店品牌收入构成（v9.2 · 按设计图） ==================== */
.sbb-sec { display: flex; align-items: center; justify-content: space-between; margin: 18px 4px 10px; }
.sbb-sec-title { font-size: 15px; font-weight: 600; }
.sbb-manage {
  border: none; background: #e5f0ff; color: #007aff;
  font-size: 13px; padding: 6px 12px; border-radius: 8px; min-height: 0; line-height: 1;
}
.sbb-cards { display: flex; flex-direction: column; gap: 10px; }
.sbb-card { padding: 14px 16px; }
.sbb-head { display: flex; align-items: flex-start; justify-content: space-between; margin-bottom: 10px; }
.sbb-title { display: flex; flex-direction: column; gap: 2px; }
.sbb-name { font-size: 16px; font-weight: 600; }
.sbb-sub { font-size: 12px; color: rgba(60, 60, 67, 0.6); }
.sbb-income { font-size: 17px; font-weight: 600; font-variant-numeric: tabular-nums; }
.sbb-bar {
  display: flex;
  height: 12px;
  border-radius: 6px;
  overflow: hidden;
  background: #e9e9ee;
}
.sbb-bar-empty { background: #e9e9ee; }
.sbb-seg { display: block; height: 100%; min-width: 2px; }
.sbb-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 12px; margin-top: 12px; }
.sbb-item { display: flex; align-items: center; gap: 6px; font-size: 13px; min-width: 0; }
.sbb-item .brand-swatch { width: 8px; height: 8px; border-radius: 2.5px; flex: 0 0 auto; }
.sbb-brand { color: rgba(60, 60, 67, 0.75); flex: 0 0 auto; }
.sbb-amt { color: #1c1c1e; font-variant-numeric: tabular-nums; }
.sbb-dot { color: rgba(60, 60, 67, 0.4); }
.sbb-pct { color: rgba(60, 60, 67, 0.6); font-variant-numeric: tabular-nums; }
.sbb-empty { margin: 12px 2px 0; font-size: 13px; color: rgba(60, 60, 67, 0.45); }
.sbb-note { margin: 12px 4px 0; font-size: 12px; color: rgba(60, 60, 67, 0.45); text-align: center; }

/* ==================== 收入归属管理页（v9.2 · 按设计图） ==================== */
.attr-page {
  position: fixed; inset: 0; z-index: 90;
  background: #f2f2f7;
  display: flex; flex-direction: column;
  overflow: hidden;
}
.attr-head {
  display: flex; align-items: center; gap: 6px;
  padding: 14px 16px 10px;
  background: #fff;
  border-bottom: 0.5px solid rgba(60, 60, 67, 0.18);
}
.attr-back {
  border: none; background: none; padding: 4px 8px 4px 0;
  font-size: 26px; line-height: 1; color: #007aff; cursor: pointer;
}
.attr-head-t { display: flex; flex-direction: column; gap: 1px; }
.attr-title { font-size: 17px; font-weight: 600; }
.attr-sub { font-size: 12px; color: rgba(60, 60, 67, 0.6); }
.attr-chips {
  display: flex; gap: 8px; padding: 12px 16px 4px;
  background: #f2f2f7; flex-wrap: wrap;
}
.attr-chip {
  border: none; background: #fff; color: #1c1c1e;
  font-size: 14px; padding: 8px 16px; border-radius: 18px; min-height: 0; line-height: 1.2;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}
.attr-chip.active { background: #007aff; color: #fff; }
.attr-scroll { flex: 1 1 auto; overflow-y: auto; padding: 12px 16px 24px; min-height: 0; }
.attr-body { display: flex; flex-direction: column; gap: 10px; }
.attr-card { padding: 14px 16px; }
.attr-top { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }
.attr-date { font-size: 13px; color: rgba(60, 60, 67, 0.6); }
.attr-amt { font-size: 17px; font-weight: 600; font-variant-numeric: tabular-nums; }
.attr-models { margin-top: 8px; font-size: 16px; font-weight: 600; }
.attr-meta { margin-top: 4px; font-size: 13px; color: rgba(60, 60, 67, 0.6); }
.attr-foot {
  display: flex; align-items: center; justify-content: space-between;
  margin-top: 12px; padding-top: 12px;
  border-top: 0.5px solid rgba(60, 60, 67, 0.18);
}
.attr-cur { font-size: 15px; }
.attr-edit {
  border: none; background: #e5f0ff; color: #007aff;
  font-size: 14px; padding: 9px 14px; border-radius: 9px; min-height: 0; line-height: 1;
}
.attr-note {
  margin-top: 16px; padding: 12px 14px;
  background: #e9f1ff; border-radius: 10px;
  font-size: 13px; color: #4a6fa5; line-height: 1.6;
}
.attr-none { margin: 40px 0; text-align: center; font-size: 14px; color: rgba(60, 60, 67, 0.45); }

/* ==================== 修改门店归属底部弹层（v9.2 · 按设计图） ==================== */
/* 从「收入归属管理」页（z-index 90）之上弹出，必须高于它，否则弹层被整页盖住 */
#attribution-picker { z-index: 95; }
.sheet-grab { width: 36px; height: 5px; border-radius: 2.5px; background: #d9d9de; margin: 8px auto 6px; }
.attrp-title { margin: 0 0 6px; font-size: 18px; font-weight: 600; }
.attrp-sub { color: rgba(60, 60, 67, 0.6); font-size: 13px; margin: 0 0 4px; line-height: 1.5; }
.attrp-opts { display: flex; flex-direction: column; margin: 0 -16px; }
.attrp-opt {
  display: flex; align-items: center; justify-content: space-between;
  min-height: 52px; padding: 12px 16px;
  border: none; border-top: 0.5px solid rgba(60, 60, 67, 0.18);
  background: #fff; font-size: 16px; color: #1c1c1e; text-align: left;
}
.attrp-opt:first-child { border-top: none; }
.attrp-radio {
  width: 20px; height: 20px; border-radius: 50%;
  border: 2px solid #d9d9de; position: relative; flex: 0 0 auto;
  background: #fff;
}
.attrp-opt.selected .attrp-radio { border-color: #007aff; }
.attrp-opt.selected .attrp-radio::after {
  content: ''; position: absolute; inset: 3px; border-radius: 50%; background: #007aff;
}
.attrp-actions { display: flex; gap: 10px; margin-top: 16px; }
.attrp-actions .btn { flex: 1; }
.attrp-cancel { background: #f2f2f7; color: #1c1c1e; }

/* v9.2.2：出租/缺货历史行的录入人第二行灰色短标签（避免标题行截断） */
.hist-row-who { display: block; margin-top: 2px; font-size: 12px; color: rgba(60, 60, 67, 0.6); }

/* ============================================================
   设备「起租日期」iOS 风格三列滚轮（年 / 月 / 日）
   替换原生整月日历。行高 44px 与 wheel-date.js 的 ITEM_H 保持一致。
   ============================================================ */
:root {
  --wheel-item-h: 44px;
  --wheel-visible: 5;
}

.wheel-overlay {
  position: fixed;
  inset: 0;
  z-index: 1200;
  display: flex;
  align-items: flex-end;
  background: rgba(0, 0, 0, 0.4);
}
.wheel-overlay.hidden { display: none; }

.wheel-sheet {
  width: 100%;
  max-height: 86vh;
  display: flex;
  flex-direction: column;
  background: #fff;
  border-radius: 14px 14px 0 0;
  padding-bottom: env(safe-area-inset-bottom, 0);
  animation: wheelSheetIn 0.22s ease-out;
}
@keyframes wheelSheetIn {
  from { transform: translateY(16px); opacity: 0.6; }
  to { transform: translateY(0); opacity: 1; }
}

.wheel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 12px 14px;
  border-bottom: 0.5px solid rgba(60, 60, 67, 0.18);
}
.wheel-title-group { display: flex; flex-direction: column; align-items: center; min-width: 0; }
.wheel-title { font-size: 16px; font-weight: 600; color: #1c1c1e; }
.wheel-sub { font-size: 12px; color: rgba(60, 60, 67, 0.6); margin-top: 2px; }

.wheel-btn {
  border: none;
  background: transparent;
  font-family: inherit;
  font-size: 16px;
  color: #007aff;
  padding: 8px 6px;
  cursor: pointer;
  white-space: nowrap;
}
.wheel-btn:active { opacity: 0.5; }
.wheel-btn-primary { font-weight: 600; }

.wheel-body { padding: 0 10px; }

.wheel-grid,
.wheel-columns {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 0;
}
.wheel-col-head {
  text-align: center;
  font-size: 12px;
  color: rgba(60, 60, 67, 0.45);
  padding: 8px 0 4px;
}

.wheel-col {
  position: relative;
  height: calc(var(--wheel-item-h) * var(--wheel-visible));
  overflow: hidden;
}
.wheel-viewport {
  height: 100%;
  overflow-y: auto;
  /* 刻意**不用** CSS scroll-snap。
   * 原因：scroll-snap-align:start 会把行对齐到视口**顶部**，
   * 而 iOS 滚轮要的是「选中行在正中」。视口高 220px、行高 44px，
   * 居中需要偏移 110px = 2.5 行 —— 不是整数行，snap 表达不了，
   * 结果是滚动位置被浏览器拉回、选中行停在顶部（肉眼看到 2000 年而非 2026 年）。
   * 改用 JS 的磁吸：wheel-date.js 在 scroll 停止后把位置round 到最近整行。
   */
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  outline: none;
}
.wheel-viewport::-webkit-scrollbar { display: none; }

.wheel-strip { padding: 0; }

.wheel-item {
  height: var(--wheel-item-h);
  line-height: var(--wheel-item-h);
  text-align: center;
  font-size: 19px;
  color: rgba(60, 60, 67, 0.35);
  user-select: none;
  -webkit-user-select: none;
  cursor: pointer;
}
.wheel-item.is-blank { cursor: default; }
.wheel-item.is-selected {
  color: #1c1c1e;
  font-weight: 600;
  font-size: 21px;
}

/* 选中行的上下分隔带（iOS 滚轮质感） */
.wheel-center-band {
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  height: var(--wheel-item-h);
  transform: translateY(-50%);
  pointer-events: none;
  border-top: 0.5px solid rgba(60, 60, 67, 0.2);
  border-bottom: 0.5px solid rgba(60, 60, 67, 0.2);
  background: rgba(120, 120, 128, 0.06);
}

.wheel-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 8px 14px 14px;
  border-top: 0.5px solid rgba(60, 60, 67, 0.12);
}
.wheel-btn-ghost { color: #8e8e93; font-size: 14px; }
.wheel-haptic-note {
  font-size: 11px;
  color: rgba(60, 60, 67, 0.45);
  text-align: right;
  flex: 1;
}

/* 起租日期字段：改成可点的按钮样式（滚轮入口） */
#picker-fields-date-picker {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  width: 100%;
  min-height: 44px;
  padding: 10px 12px;
  border: 1px solid rgba(60, 60, 67, 0.2);
  border-radius: 10px;
  background: #fff;
  font-family: inherit;
  font-size: 16px;
  color: #1c1c1e;
  cursor: pointer;
  text-align: left;
}
#picker-fields-date-picker:active { background: #f2f2f7; }
#picker-fields-date-picker .ios-chev { color: #c6c6c8; }
.picker-field-date { display: block; }
