/* 上上签 · 外壳样式（照大饼的版面，主色改为深蓝） */
:root {
  --ssq-ink: #1d293b;
  --ssq-muted: #6d7e96;
  --ssq-blue: #3f76cc;
  --ssq-blue-2: #4a82d6;
  --ssq-blue-soft: #eef4fd;
  --ssq-line: #c9d4ea;
  --ssq-bg: #f6f8fc;
  --ssq-danger: #a43d53;
  --ssq-ok: #1f7a46;
  --ssq-warn: #9a5b12;
}
html.ssq-locked .app-shell, html:not(.ssq-engine-view) .app-shell { display: none !important; }
html.ssq-locked #ssqBar, html.ssq-locked #ssqBoss { display: none !important; }
html.ssq-engine-view #ssqBoss { display: none !important; }
html:not(.ssq-locked) #ssqGate { display: none !important; }
body { -webkit-text-size-adjust: 100%; }
.ssq, .ssq * { box-sizing: border-box; font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", sans-serif; }
.ssq { color: var(--ssq-ink); }
.ssq h1, .ssq h2, .ssq h3, .ssq p { margin: 0; }
.ssq button { font: inherit; cursor: pointer; }
.ssq input, .ssq select, .ssq textarea {
  font: inherit; width: 100%; min-height: 40px; padding: 7px 11px; color: var(--ssq-ink);
  background: #fafcff; border: 1px solid #858c9a; border-radius: 4px; outline-color: var(--ssq-blue);
  font-size: 16px; /* 16px 防止 iPhone 自动放大 */
}
.ssq .hidden { display: none !important; }
.ssq-primary { border: 0; border-radius: 24px; background: var(--ssq-blue); color: #fff; min-height: 42px; padding: 8px 16px; font-weight: 750; font-size: 15px; }
.ssq-primary:disabled { background: #b8cdee; cursor: not-allowed; }
.ssq-secondary { border: 1px solid #b4c8ea; border-radius: 9px; background: #f0f5fd; color: var(--ssq-blue); min-height: 36px; padding: 5px 11px; font-weight: 700; font-size: 14px; }
.ssq-quiet { border: 0; background: transparent; color: var(--ssq-blue); padding: 4px 7px; font-weight: 700; white-space: nowrap; font-size: 14px; }
.ssq-danger { border: 0; background: transparent; color: var(--ssq-danger); padding: 4px 6px; font-weight: 650; }
.ssq-hint { color: var(--ssq-muted); font-size: 12px; line-height: 1.5; }
.ssq-status { font-size: 13px; color: #3f76cc; min-height: 18px; white-space: pre-line; }
.ssq-status.error { color: var(--ssq-danger); }
.ssq-field { display: grid; gap: 4px; min-width: 0; }
.ssq-field > span { font-size: 14px; font-weight: 650; }

/* 登录 / 首次设置 */
#ssqGate { min-height: 100dvh; background: var(--ssq-bg); display: flex; justify-content: center; }
.ssq-gate-inner { width: min(100%, 460px); min-height: 100dvh; background: #fff; box-shadow: 0 0 24px #1e3c6c0d; padding: 0 16px 24px; }
.ssq-brand { display: flex; align-items: center; gap: 10px; padding: 16px 4px 6px; }
.ssq-logo { width: 42px; height: 42px; border-radius: 11px; background: linear-gradient(145deg, #5b8fe0, #3568b8); color: #fff; display: grid; place-items: center; font-weight: 800; font-size: 22px; letter-spacing: 0; box-shadow: 0 2px 8px #3568b840; }
.ssq-brand h1 { font-size: 23px; }
.ssq-brand .ssq-hint { margin-top: 1px; }
.ssq-gate-panel { margin-top: 26px; display: grid; gap: 13px; }
.ssq-gate-panel h2 { font-size: 21px; font-weight: 750; }
.ssq-mode-note { margin-top: 18px; padding: 8px 10px; border-left: 3px solid var(--ssq-blue); border-radius: 5px; background: var(--ssq-blue-soft); color: #2f5f9e; font-size: 13px; line-height: 1.5; }

/* 顶部栏 */
#ssqBar { position: sticky; top: 0; z-index: 900; background: #fff; border-bottom: 1px solid #dde4f1; padding: max(6px, env(safe-area-inset-top)) 10px 0; }
.ssq-bar-row { display: flex; align-items: center; gap: 8px; min-height: 40px; }
.ssq-bar-row .ssq-logo { width: 30px; height: 30px; border-radius: 8px; font-size: 16px; }
.ssq-bar-title { font-weight: 800; font-size: 17px; white-space: nowrap; }
.ssq-ver { color: var(--ssq-muted); font-size: 11px; font-weight: 400; margin-left: 3px; }
.ssq-grow { flex: 1; min-width: 0; }
.ssq-chip { display: inline-flex; align-items: center; gap: 4px; padding: 1px 8px; border-radius: 10px; font-size: 11.5px; line-height: 20px; white-space: nowrap; background: #e8f0fb; color: #3f5f8f; }
.ssq-chip.admin { background: #3f76cc; color: #fff; }
.ssq-chip.sync-ok { background: #e6f4ec; color: var(--ssq-ok); }
.ssq-chip.sync-wait { background: #fff3e0; color: var(--ssq-warn); }
.ssq-chip.sync-err { background: #fde8ec; color: var(--ssq-danger); }
.ssq-tabs { display: flex; gap: 0; margin-top: 4px; }
.ssq-tab { flex: 1; border: 0; background: transparent; padding: 9px 4px 8px; font-size: 15px; font-weight: 700; color: #5d6e89; border-bottom: 3px solid transparent; }
.ssq-tab.active { color: var(--ssq-blue); border-bottom-color: var(--ssq-blue); }
.ssq-tab .ssq-count { display: inline-block; min-width: 18px; margin-left: 3px; padding: 0 5px; border-radius: 9px; background: #d84a5f; color: #fff; font-size: 11px; line-height: 17px; }
.ssq-menu { position: absolute; right: 10px; top: 46px; z-index: 950; min-width: 190px; background: #fff; border: 1px solid #d3dcee; border-radius: 11px; box-shadow: 0 8px 26px #14284b33; padding: 5px; display: grid; }
.ssq-menu button { border: 0; background: transparent; text-align: left; padding: 10px 12px; border-radius: 7px; font-size: 15px; color: var(--ssq-ink); }
.ssq-menu button:hover { background: var(--ssq-blue-soft); }
.ssq-menu hr { border: 0; border-top: 1px solid #e3e8f2; margin: 4px 6px; }
.ssq-view-note { margin: 6px 0 2px; padding: 6px 10px; border-left: 3px solid var(--ssq-blue); border-radius: 5px; background: var(--ssq-blue-soft); color: #2f5f9e; font-size: 12.5px; line-height: 1.45; }

/* 老板记账页 */
#ssqBoss { background: var(--ssq-bg); min-height: calc(100dvh - 90px); }
.ssq-page { width: min(100%, 460px); margin: 0 auto; background: #fff; min-height: calc(100dvh - 90px); padding: 8px 12px 40px; box-shadow: 0 0 24px #1e3c6c0d; }
.ssq-section-title { display: flex; align-items: center; gap: 8px; margin: 12px 2px 8px; }
.ssq-section-title h2 { font-size: 16px; font-weight: 750; }
.ssq-seg { display: grid; grid-template-columns: repeat(3, 1fr); border: 1px solid #b4c8ea; border-radius: 9px; overflow: hidden; }
.ssq-seg button { border: 0; border-left: 1px solid #c9d8ef; background: #fff; color: #3f5f8f; padding: 9px 2px; font-size: 14px; font-weight: 700; }
.ssq-seg button:first-child { border-left: 0; }
.ssq-seg button.active { background: var(--ssq-blue); color: #fff; }
.ssq-form { display: grid; gap: 9px; padding: 10px; border: 1px solid #dbe3f2; border-radius: 11px; background: #fbfcff; }
.ssq-row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.ssq-amount { position: relative; }
.ssq-amount input { padding-right: 34px; }
.ssq-unit { position: absolute; right: 11px; top: 50%; transform: translateY(-50%); color: var(--ssq-muted); font-weight: 700; }
.ssq-form-actions { display: flex; gap: 8px; align-items: center; justify-content: flex-end; }
.ssq-form-actions .ssq-primary { min-width: 120px; }
.ssq-month { display: flex; align-items: center; justify-content: center; gap: 6px; margin: 14px 0 6px; }
.ssq-month strong { font-size: 16px; min-width: 96px; text-align: center; }
.ssq-month button { border: 1px solid #c9d8ef; background: #fff; color: var(--ssq-blue); border-radius: 9px; width: 36px; height: 32px; font-size: 16px; }
.ssq-totals { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.ssq-total { border: 1px solid #dbe3f2; border-radius: 9px; padding: 7px 8px; background: #f8faff; }
.ssq-total span { display: block; font-size: 11.5px; color: var(--ssq-muted); }
.ssq-total b { display: block; font-size: 15px; margin-top: 2px; font-variant-numeric: tabular-nums; }
.ssq-merge-bar { display: flex; align-items: center; gap: 8px; margin: 10px 0 2px; padding: 8px 10px; border: 1px solid #c9d4ea; border-radius: 9px; background: var(--ssq-blue-soft); }
.ssq-merge-bar .ssq-primary { min-height: 36px; }
.ssq-list { margin-top: 8px; }
.ssq-day { margin-top: 10px; }
.ssq-day-head { display: flex; justify-content: space-between; color: var(--ssq-muted); font-size: 12.5px; padding: 0 3px 3px; border-bottom: 1px dashed #c6d1e6; }
.ssq-item { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2px 8px; padding: 8px 3px; border-bottom: 1px solid #edf1f7; align-items: center; }
.ssq-item-main { font-size: 15px; font-weight: 650; overflow-wrap: anywhere; }
.ssq-item-sub { grid-column: 1; font-size: 12px; color: var(--ssq-muted); overflow-wrap: anywhere; }
.ssq-item-amt { grid-row: 1; grid-column: 2; font-weight: 750; font-size: 15px; font-variant-numeric: tabular-nums; text-align: right; }
.ssq-item-act { grid-column: 2; display: flex; gap: 2px; justify-content: flex-end; align-items: center; }
.ssq-tag { display: inline-block; padding: 0 6px; border-radius: 8px; font-size: 11px; line-height: 18px; font-weight: 600; }
.ssq-tag.wait { background: #fff1e3; color: #b4651c; }
.ssq-tag.done { background: #e6f4ec; color: var(--ssq-ok); }
.ssq-tag.type { background: #e8f0fb; color: #3f5f8f; margin-right: 4px; }
.ssq-empty { text-align: center; color: var(--ssq-muted); padding: 26px 0; font-size: 14px; }

/* 弹窗 / 提示 */
.ssq-modal { position: fixed; inset: 0; z-index: 2000; display: grid; place-items: center; padding: 14px; background: #13243bcc; }
.ssq-modal-panel { width: min(100%, 420px); max-height: calc(100dvh - 28px); overflow: auto; background: #fff; border-radius: 13px; padding: 16px; display: grid; gap: 11px; }
.ssq-modal-panel h3 { font-size: 18px; margin: 0; }
.ssq-modal-actions { display: flex; gap: 8px; justify-content: flex-end; }
.ssq-modal-actions button { min-width: 92px; }
.ssq-toast { position: fixed; z-index: 2100; top: max(14px, env(safe-area-inset-top)); left: 50%; transform: translateX(-50%); max-width: calc(100vw - 24px); padding: 9px 14px; border-radius: 10px; background: #3568b8; color: #fff; box-shadow: 0 3px 14px #14284b55; font-size: 14px; font-weight: 650; text-align: center; white-space: pre-line; }
.ssq-toast.error { background: var(--ssq-danger); }
.ssq-shot img { width: 100%; height: auto; border: 1px solid #dbe3f2; border-radius: 6px; }
.ssq-progress { height: 6px; border-radius: 3px; background: #e3e9f5; overflow: hidden; }
.ssq-progress > i { display: block; height: 100%; width: 30%; background: var(--ssq-blue); animation: ssqmove 1.1s infinite ease-in-out; }
@keyframes ssqmove { 0% { margin-left: -30%; } 100% { margin-left: 100%; } }
.ssq [hidden], #ssqMenu[hidden], #ssqBossCount[hidden], #ssqViewNote[hidden] { display: none !important; }

/* ===== A2：人员页 ===== */
#ssqPeople { display: none; background: var(--ssq-bg); min-height: calc(100dvh - 90px); }
html.ssq-people-view #ssqPeople { display: block; }
html.ssq-people-view #ssqBoss { display: none !important; }
.ssq-center { text-align: center; }
.ssq-totals-4 { grid-template-columns: repeat(4, 1fr); margin-top: 6px; }
.ssq-totals-4 .ssq-total b { font-size: 13.5px; overflow-wrap: anywhere; }
.ssq-pos { color: #1f7a46; } .ssq-neg { color: #a43d53; } .ssq-zero { color: var(--ssq-muted); }
.ssq-search { margin: 10px 0 6px; }
.ssq-chips { display: flex; gap: 6px; overflow-x: auto; padding: 2px 0 6px; scrollbar-width: none; }
.ssq-chips::-webkit-scrollbar { display: none; }
.ssq-chips button { flex: none; border: 1px solid #c9d8ef; background: #fff; color: #3f5f8f; border-radius: 16px; padding: 5px 12px; font-size: 13.5px; font-weight: 650; }
.ssq-chips button.active { background: var(--ssq-blue); border-color: var(--ssq-blue); color: #fff; }
.ssq-group { margin-top: 10px; }
.ssq-group-head { display: flex; justify-content: space-between; align-items: baseline; padding: 4px 3px; border-bottom: 1px dashed #c6d1e6; font-size: 14px; }
.ssq-group-head span { color: var(--ssq-muted); font-size: 12px; }
.ssq-person-row { width: 100%; display: grid; grid-template-columns: minmax(0, 1fr) auto 14px; gap: 1px 8px; align-items: center; text-align: left;
  border: 0; border-bottom: 1px solid #edf1f7; background: transparent; padding: 9px 3px; color: inherit; }
.ssq-person-row:active { background: var(--ssq-blue-soft); }
.ssq-person-name { font-size: 15.5px; font-weight: 700; display: flex; gap: 5px; align-items: center; flex-wrap: wrap; }
.ssq-person-sub { grid-column: 1; font-size: 12px; color: var(--ssq-muted); }
.ssq-person-bal { grid-row: 1 / span 2; grid-column: 2; font-weight: 750; font-size: 15px; font-variant-numeric: tabular-nums; }
.ssq-chev { grid-row: 1 / span 2; grid-column: 3; color: #9aa8c4; font-size: 20px; }
.ssq-back { border: 0; background: transparent; color: var(--ssq-blue); font-weight: 700; font-size: 15px; padding: 8px 0; }
.ssq-person-head { display: flex; gap: 11px; align-items: center; margin: 2px 0 4px; }
.ssq-person-head h2 { font-size: 21px; }
.ssq-avatar { width: 46px; height: 46px; border-radius: 13px; background: linear-gradient(145deg, #5b8fe0, #3568b8); color: #fff; display: grid; place-items: center; font-size: 21px; font-weight: 800; flex: none; }
.ssq-settle { display: grid; grid-template-columns: 1fr 14px 1fr 14px 1fr; align-items: center; gap: 3px; margin-top: 8px; }
.ssq-settle-cell { border: 1px solid #dbe3f2; border-radius: 9px; padding: 7px 6px; background: #f8faff; text-align: center; }
.ssq-settle-cell span { display: block; font-size: 11.5px; color: var(--ssq-muted); }
.ssq-settle-cell b { display: block; font-size: 14.5px; margin-top: 2px; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.ssq-settle-op { text-align: center; color: var(--ssq-muted); font-weight: 700; }
.ssq-final { margin-top: 8px; padding: 11px 14px; border-radius: 11px; background: #3568b8; color: #fff; display: grid; grid-template-columns: auto 1fr; align-items: baseline; gap: 2px 10px; }
.ssq-final span { font-size: 14px; opacity: .85; }
.ssq-final b { font-size: 24px; text-align: right; font-variant-numeric: tabular-nums; color: #fff !important; }
.ssq-final small { grid-column: 1 / -1; text-align: right; font-size: 12px; opacity: .8; }
.ssq-card { margin-top: 11px; border: 1px solid #dbe3f2; border-radius: 11px; padding: 9px 11px; background: #fff; }
.ssq-card h3 { font-size: 15px; margin: 0 0 4px; display: flex; gap: 8px; align-items: baseline; }
.ssq-card h3 small { font-size: 12px; color: var(--ssq-muted); font-weight: 400; }
.ssq-line { display: flex; justify-content: space-between; gap: 10px; padding: 7px 0; border-bottom: 1px solid #f0f3f8; font-size: 14.5px; }
.ssq-line:last-child { border-bottom: 0; }
.ssq-line small { display: block; font-size: 11.5px; color: var(--ssq-muted); margin-top: 1px; }
.ssq-line b { font-variant-numeric: tabular-nums; white-space: nowrap; }
.ssq-card .ssq-item:last-child { border-bottom: 0; }
.ssq-hist-row { width: 100%; display: grid; grid-template-columns: 1.3fr 1fr 1fr 1fr; gap: 4px; padding: 7px 2px; border: 0; border-bottom: 1px solid #f0f3f8; background: transparent; font-size: 13px; text-align: right; color: inherit; font-variant-numeric: tabular-nums; }
.ssq-hist-row > :first-child { text-align: left; }
.ssq-hist-row.active { background: var(--ssq-blue-soft); border-radius: 6px; }
.ssq-hist-head { color: var(--ssq-muted); font-size: 11.5px; }
.ssq-person-actions { display: flex; gap: 8px; justify-content: flex-end; margin: 14px 0 6px; }
.ssq-month button:disabled { opacity: .35; }
.ssq-alert { margin-top: 10px; border-radius: 8px; background: #fff3e0; color: #7a4a10; padding: 8px 10px; font-size: 13px; line-height: 1.5; }
.ssq-totals-4 { grid-template-columns: repeat(2, 1fr); }
.ssq-totals-4 .ssq-total b { font-size: 16px; white-space: nowrap; }

/* ===== A3：5 个入口 + 小分页 ===== */
.ssq-tab { font-size: 14.5px; padding: 9px 2px 8px; white-space: nowrap; }
.ssq-sub { display: flex; gap: 6px; overflow-x: auto; padding: 6px 0 7px; scrollbar-width: none; }
.ssq-sub::-webkit-scrollbar { display: none; }
.ssq-sub button { flex: none; border: 1px solid #c9d8ef; background: #fff; color: #3f5f8f; border-radius: 16px; padding: 5px 13px; font-size: 13.5px; font-weight: 650; }
.ssq-sub button.active { background: var(--ssq-blue); border-color: var(--ssq-blue); color: #fff; }
.ssq-group-card { width: 100%; text-align: left; display: block; margin-top: 10px; border: 1px solid #dbe3f2; border-radius: 11px; padding: 10px 11px; background: #fff; color: inherit; }
.ssq-group-card:active { background: var(--ssq-blue-soft); }
.ssq-gc-head { display: flex; gap: 8px; align-items: baseline; }
.ssq-gc-head b { font-size: 16px; }
.ssq-gc-head span { color: var(--ssq-muted); font-size: 12.5px; flex: 1; }
.ssq-gc-head .ssq-chev { flex: none; }
.ssq-gc-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; margin-top: 7px; }
.ssq-gc-grid span { font-size: 11.5px; color: var(--ssq-muted); }
.ssq-gc-grid b { display: block; font-size: 13.5px; color: var(--ssq-ink); margin-top: 1px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.ssq-gc-comm { margin-top: 7px; padding-top: 6px; border-top: 1px dashed #d5deeb; display: grid; gap: 2px; font-size: 12.5px; color: #3f5f8f; }

/* ===== A4：记账页 + 人员页精简（大饼风格：白底、细线、只在数字上用颜色） ===== */
#ssqOps { display: none; background: var(--ssq-bg); min-height: calc(100dvh - 90px); }
html.ssq-ops-view #ssqOps { display: block; }
html.ssq-ops-view #ssqBoss, html.ssq-ops-view #ssqPeople { display: none !important; }
.ssq-day-nav { display: grid; grid-template-columns: 40px 1fr 40px; gap: 6px; align-items: center; margin: 8px 0 2px; }
.ssq-day-nav > button { border: 1px solid #c9d8ef; background: #fff; color: var(--ssq-blue); border-radius: 9px; height: 38px; font-size: 18px; }
.ssq-day-pick { position: relative; display: block; text-align: center; }
.ssq-day-pick span { display: block; font-size: 17px; font-weight: 750; line-height: 38px; }
.ssq-day-pick input { position: absolute; inset: 0; opacity: 0; width: 100%; min-height: 0; cursor: pointer; }
.ssq-net { margin-top: 8px; padding: 10px 12px; border: 1px solid #dbe3f2; border-radius: 11px; background: #fff; display: grid; grid-template-columns: auto 1fr; align-items: baseline; gap: 2px 10px; }
.ssq-net span { font-size: 13.5px; color: var(--ssq-muted); }
.ssq-net b { font-size: 24px; text-align: right; font-variant-numeric: tabular-nums; }
.ssq-net small { grid-column: 1 / -1; text-align: right; font-size: 12px; color: var(--ssq-muted); }
.ssq-type-grid { display: grid; gap: 6px; }
.ssq-type-row { display: grid; grid-template-columns: 34px 1fr; align-items: center; gap: 6px; }
.ssq-type-row > span { font-size: 12.5px; color: var(--ssq-muted); }
.ssq-type-row > div { display: flex; flex-wrap: wrap; gap: 5px; }
.ssq-type-row button { border: 1px solid #c9d8ef; background: #fff; color: #3f5f8f; border-radius: 16px; padding: 6px 11px; font-size: 14px; font-weight: 650; }
.ssq-type-row button.active { background: var(--ssq-blue); border-color: var(--ssq-blue); color: #fff; }
.ssq-type-row button:disabled { opacity: .35; }
/* 人员个人页：去掉深色大块，和大饼一样白底 */
.ssq-final { background: #fff; color: var(--ssq-ink); border: 1.5px solid var(--ssq-blue); }
.ssq-final span, .ssq-final small { color: var(--ssq-muted); opacity: 1; }
.ssq-final b { color: inherit !important; }
.ssq-final b.ssq-pos { color: #1f7a46 !important; } .ssq-final b.ssq-neg { color: #a43d53 !important; }
.ssq-avatar { background: var(--ssq-blue-soft); color: var(--ssq-blue); }
.ssq-settle-cell { background: #fff; }

/* ===== A5：紧凑版面 —— 能一行就一行 ===== */
.ssq-page { padding: 4px 10px 32px; }
.ssq input, .ssq select, .ssq textarea { min-height: 36px; padding: 5px 9px; }
.ssq-field { gap: 2px; }
.ssq-field > span { font-size: 12px; font-weight: 600; color: #4a5a74; }
.ssq-form { gap: 7px; padding: 8px; }
.ssq-row2 { gap: 6px; }
.ssq-form-actions { gap: 6px; }
.ssq-form-actions input { flex: 1; width: auto; }
.ssq-primary { min-height: 36px; padding: 5px 16px; font-size: 14.5px; }
.ssq-form-actions .ssq-primary { min-width: 92px; }
.ssq-section-title { margin: 8px 2px 5px; }
.ssq-section-title h2 { font-size: 15px; }
/* 汇总：一张卡，两列，每格「名称 … 数字」一行 */
.ssq-totals, .ssq-totals-4 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 14px; margin-top: 6px; padding: 3px 10px; border: 1px solid #dbe3f2; border-radius: 9px; background: #fff; }
.ssq-totals .ssq-total, .ssq-totals-4 .ssq-total { display: flex; justify-content: space-between; align-items: baseline; gap: 6px; border: 0; border-radius: 0; padding: 4px 0; background: transparent; min-width: 0; }
.ssq-total span { font-size: 12px; white-space: nowrap; }
.ssq-total b, .ssq-totals-4 .ssq-total b { font-size: 13.5px !important; margin: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
/* 月份、日期切换 */
.ssq-month { margin: 6px 0 2px; gap: 4px; }
.ssq-month strong { font-size: 15px; }
.ssq-month button { width: 32px; height: 28px; font-size: 15px; }
.ssq-day-nav { grid-template-columns: 34px 1fr 34px; gap: 4px; margin: 6px 0 0; }
.ssq-day-nav.has-today { grid-template-columns: 34px 1fr auto 34px; }
.ssq-day-nav > button { height: 32px; font-size: 16px; }
.ssq-day-pick span { font-size: 15.5px; line-height: 32px; }
.ssq-today { border: 0 !important; background: var(--ssq-blue-soft) !important; font-size: 13px !important; font-weight: 700; padding: 0 10px; }
/* 当日经营净额：一行 */
.ssq-net { display: flex; align-items: baseline; gap: 8px; margin-top: 6px; padding: 6px 10px; }
.ssq-net span { font-size: 13px; }
.ssq-net b { font-size: 19px; margin-left: auto; }
.ssq-net small { order: 3; font-size: 11.5px; }
/* 种类按钮：小一号，连成一片 */
.ssq-type-grid { display: flex; flex-wrap: wrap; gap: 5px; }
.ssq-type-row { display: contents; }
.ssq-type-row > span { display: none; }
.ssq-type-row > div { display: contents; }
.ssq-type-row button { padding: 4px 9px; font-size: 13px; border-radius: 14px; }
.ssq-seg button { padding: 6px 2px; font-size: 13.5px; }
/* 列表：两行 */
.ssq-item { padding: 6px 2px; gap: 1px 8px; }
.ssq-item-main { font-size: 14px; }
.ssq-item-amt { font-size: 14px; }
.ssq-item-sub { font-size: 11.5px; }
.ssq-item-act .ssq-quiet, .ssq-item-act .ssq-danger { padding: 0 6px; font-size: 13px; }
.ssq-tag { line-height: 16px; padding: 0 5px; font-size: 10.5px; }
.ssq-day { margin-top: 6px; }
.ssq-chips { padding: 0 0 4px; gap: 5px; }
.ssq-chips button, .ssq-sub button { padding: 3px 11px; font-size: 13px; }
.ssq-sub { padding: 4px 0 5px; }
.ssq-search { margin: 6px 0 4px; }
/* 人员列表 */
.ssq-person-row { padding: 6px 2px; }
.ssq-person-name { font-size: 14.5px; }
.ssq-person-sub { font-size: 11.5px; }
.ssq-person-bal { font-size: 14px; }
.ssq-group { margin-top: 6px; }
.ssq-group-head { padding: 3px 2px; font-size: 13.5px; }
.ssq-group-card { margin-top: 6px; padding: 7px 9px; }
.ssq-gc-grid { margin-top: 4px; }
/* 个人账单 */
.ssq-back { padding: 4px 0; font-size: 14px; }
.ssq-person-head { gap: 9px; margin: 0 0 2px; }
.ssq-avatar { width: 34px; height: 34px; border-radius: 9px; font-size: 16px; }
.ssq-person-head h2 { font-size: 17px; }
.ssq-settle4 { display: grid; grid-template-columns: repeat(4, 1fr); margin-top: 6px; border: 1px solid #dbe3f2; border-radius: 9px; background: #fff; overflow: hidden; }
.ssq-settle4 > div { padding: 5px 6px; text-align: center; border-left: 1px solid #edf1f7; min-width: 0; }
.ssq-settle4 > div:first-child { border-left: 0; }
.ssq-settle4 span { display: block; font-size: 11px; color: var(--ssq-muted); white-space: nowrap; }
.ssq-settle4 b { display: block; font-size: 13.5px; font-variant-numeric: tabular-nums; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ssq-settle4 .is-final { background: var(--ssq-blue-soft); }
.ssq-settle4 .is-final b { font-size: 14.5px; }
.ssq-card { margin-top: 7px; padding: 5px 10px; }
.ssq-card h3 { font-size: 14px; margin: 2px 0; }
.ssq-line { display: grid; grid-template-columns: auto 1fr auto; gap: 8px; align-items: baseline; padding: 4px 0; font-size: 13.5px; }
.ssq-line small { display: block; margin: 0; font-size: 11px; color: var(--ssq-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ssq-hist-row { padding: 4px 2px; font-size: 12.5px; }
.ssq-alert { margin-top: 6px; padding: 5px 9px; font-size: 12px; line-height: 1.4; }
.ssq-person-actions { margin: 10px 0 4px; }
.ssq-person-actions button { min-height: 34px; }
.ssq-merge-bar { margin: 6px 0 2px; padding: 5px 9px; }
.ssq-merge-bar .ssq-primary { min-height: 32px; }
.ssq-empty { padding: 16px 0; }
/* 顶部栏也收一点 */
.ssq-tab { padding: 7px 2px 6px; }
.ssq-bar-row { min-height: 36px; }
/* A5 补充 */
.ssq .ssq-hist-row { font-size: 12.5px; }
.ssq .ssq-person-row { padding: 7px 2px; min-height: 0; }
.ssq-month-tag { font-size: 11px; font-weight: 600; color: var(--ssq-blue); background: var(--ssq-blue-soft); border-radius: 8px; padding: 0 6px; margin-left: 6px; vertical-align: 2px; }
.ssq .ssq-type-row button { padding: 3px 8px; font-size: 12.5px; }
.ssq-type-grid { gap: 4px; }
.ssq-sub .ssq-side-btn { margin-left: auto; border-style: dashed; }
.ssq-sub .ssq-side-btn.active { border-style: solid; }
@media (min-width: 821px) { .ssq-sub .ssq-side-btn { display: none; } }

/* ===== A8：人员合并（本月操作、档案卡、返回条） ===== */
.ssq-opscard { margin-top: 6px; border: 1px solid #dbe3f2; border-radius: 9px; background: #fff; }
.ssq-opscard > summary { list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 7px 10px; cursor: pointer; font-size: 14px; }
.ssq-opscard > summary::-webkit-details-marker { display: none; }
.ssq-opscard > summary b::before { content: "▸ "; color: var(--ssq-muted); }
.ssq-opscard[open] > summary b::before { content: "▾ "; }
.ssq-ops-list { border-top: 1px solid #edf1f7; padding: 2px 10px; }
.ssq-ops-row { display: grid; grid-template-columns: 64px 1fr auto auto; gap: 6px; align-items: center; padding: 4px 0; border-bottom: 1px solid #f2f5f9; font-size: 13.5px; }
.ssq-ops-row:last-child { border-bottom: 0; }
.ssq-ops-row small { font-size: 11.5px; color: var(--ssq-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ssq-ops-row small.ok { color: #1f7a46; } .ssq-ops-row small.warn { color: #9a5b12; }
.ssq .ssq-mini { border: 1px solid #b4c8ea; background: #f0f5fd; color: var(--ssq-blue); border-radius: 8px; padding: 3px 10px; font-size: 12.5px; font-weight: 700; min-height: 28px; }
.ssq .ssq-mini:disabled { opacity: .4; }
.ssq .ssq-mini-danger { border-color: #ecc4cd; background: #fff6f8; color: #a43d53; }
.ssq-ops-foot { display: flex; flex-wrap: wrap; gap: 4px 6px; align-items: center; padding: 6px 10px 8px; border-top: 1px solid #edf1f7; }
.ssq-ops-foot .ssq-quiet { font-size: 12.5px; padding: 2px 4px; }
.ssq-kv2 { display: grid; grid-template-columns: 38px 1fr; gap: 3px 8px; font-size: 13px; padding: 2px 0 4px; }
.ssq-kv2 span { color: var(--ssq-muted); font-size: 12px; }
.ssq-kv2 b { font-weight: 600; overflow-wrap: anywhere; }
.ssq-card h3 small { margin-left: auto; }
.ssq-sub .ssq-back-btn { border: 0 !important; background: transparent !important; color: var(--ssq-blue) !important; padding-left: 2px !important; }
.ssq-tool-title { font-size: 14px; font-weight: 750; align-self: center; }

/* ===== A9：个人页顶部一行；档案可展开 ===== */
.ssq-person-line { display: flex; align-items: baseline; gap: 8px; margin: 2px 0 0; min-width: 0; }
.ssq-person-line h2 { font-size: 19px; font-weight: 800; white-space: nowrap; }
.ssq-person-meta { flex: 1; min-width: 0; font-size: 12.5px; color: var(--ssq-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ssq-month-mini { display: inline-flex; align-items: center; gap: 2px; flex: none; }
.ssq-month-mini b { font-size: 14px; min-width: 40px; text-align: center; }
.ssq .ssq-month-mini button { border: 1px solid #c9d8ef; background: #fff; color: var(--ssq-blue); border-radius: 8px; width: 28px; height: 26px; font-size: 14px; padding: 0; }
.ssq-month-mini button:disabled { opacity: .35; }
.ssq-profile-card > summary { list-style: none; display: flex; align-items: baseline; gap: 8px; cursor: pointer; padding: 2px 0; }
.ssq-profile-card > summary::-webkit-details-marker { display: none; }
.ssq-profile-card > summary b { font-size: 14px; }
.ssq-profile-card > summary b::before { content: "▸ "; color: var(--ssq-muted); }
.ssq-profile-card[open] > summary b::before { content: "▾ "; }
.ssq-profile-card > summary small { margin-left: auto; font-size: 12px; color: var(--ssq-muted); }
.ssq-profile-card[open] > summary { margin-bottom: 2px; }

/* ===== A10：顶部栏目之间加竖线 ===== */
.ssq-tab { position: relative; }
.ssq-tab + .ssq-tab::before { content: ""; position: absolute; left: 0; top: 50%; transform: translateY(-50%); width: 1px; height: 16px; background: #c9d4e6; }
/* A11：去掉「签」字方块，标题左边对齐 */
.ssq-bar-title { padding-left: 2px; font-size: 18px; }
.ssq-brand h1 { font-size: 24px; }
