/* 金蝶数据、高德小程序：同步总览和数据浏览 */
.sy-state { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; margin: 0 0 16px; color: var(--work-muted, #6b7280); font-size: 13px; }
.sy-state span:not(.tag) + span::before { content: "·"; margin-right: 10px; color: #b7bcc6; }
.sy-state span.late { color: #c0392b; }
.sy-state .tag.bad { background: #fdecea; color: #c0392b; }
.sy-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; }
.sy-card { display: flex; flex-direction: column; gap: 6px; padding: 16px 18px; border: 1px solid #eceef2; border-radius: 14px; background: #fff; color: inherit; text-decoration: none; transition: border-color .15s, box-shadow .15s; }
.sy-card:hover { border-color: #c9d6ee; box-shadow: 0 6px 18px rgba(30, 60, 120, .08); }
.sy-card header { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; flex-wrap: wrap; }
.sy-card h3 { margin: 0; font-size: 15px; font-weight: 600; color: #1d2129; white-space: nowrap; }
.sy-cadence { font-size: 12px; color: #1a7f45; background: #e6f6ec; padding: 1px 8px; border-radius: 10px; white-space: nowrap; }
.sy-count { font-size: 28px; line-height: 36px; font-weight: 650; color: #1d2129; font-variant-numeric: tabular-nums; }
.sy-count small { margin-left: 4px; font-size: 13px; font-weight: 400; color: #8a919f; }
.sy-range, .sy-note { margin: 0; font-size: 12.5px; line-height: 19px; color: #6b7280; }
.sy-note { flex: 1; }
.sy-card footer { display: flex; justify-content: space-between; margin-top: 4px; padding-top: 8px; border-top: 1px solid #f0f1f4; font-size: 12px; color: #8a919f; }
.sy-go { color: var(--blue, #1677ff); }
.sy-missing { margin: 18px 2px 0; font-size: 12.5px; color: #8a919f; }
.sy-total { margin: 2px 0 10px; font-size: 13px; color: #6b7280; }
.workpage .sy-panel .sy-table { overflow-x: auto; }
/* 栏多的表按内容定宽，放不下就横向滚，不把单号、名字挤成省略号。 */
.workpage .sy-panel .sy-table table { table-layout: auto; width: max-content; min-width: 100%; }
.workpage .sy-panel .sy-table td, .workpage .sy-panel .sy-table th { height: 44px; padding: 8px 12px; white-space: nowrap; max-width: 300px; overflow: hidden; text-overflow: ellipsis; font-size: 13px; }
.workpage .sy-panel .sy-table .num { text-align: right; font-variant-numeric: tabular-nums; }

/* 高德小程序 → 写回记录 */
.wb-banner { margin: 0 0 14px; padding: 10px 14px; border-radius: 10px; font-size: 13px; line-height: 21px; background: #eef4ff; color: #2b4a80; }
.wb-banner.warn { background: #fff7e6; color: #8a5a00; }
.wb-banner.bad { background: #fdecea; color: #a8322a; }
.wb-banner.ok { background: #e6f6ec; color: #1a6b3c; }
.workpage .sy-panel .sy-table td.wb-note { max-width: 320px; white-space: normal; line-height: 20px; }
.cl-chip.bad { background: #fdecea; color: #c0392b; }

/* 高德同步总览顶上的账号切换（两家公司各一个高德号，数据各放各的）。 */
.sy-accounts { display: inline-flex; gap: 6px; margin: 0 0 16px; padding: 5px; border-radius: 16px; background: var(--fill); }
.sy-account { min-width: 150px; padding: 8px 16px; border-radius: 12px; color: var(--text-muted); transition: background .2s ease, box-shadow .2s ease, color .2s ease; }
.sy-account b { display: block; color: inherit; font-size: 14px; font-weight: 600; line-height: 1.4; }
.sy-account small { display: block; font-size: 12px; }
.sy-account:hover { color: var(--text); }
.sy-account.on { color: var(--blue); background: #fff; box-shadow: 0 8px 18px -12px rgba(18, 116, 165, .7), inset 0 0 0 1px var(--blue-line); }
