/* 真实网站新增样式（在 style.css 之上） */
.loading { padding: 48px; text-align: center; color: #898781; }
.empty { padding: 32px; text-align: center; color: #898781; }
.link.danger { color: #d03b3b; }
.logout { margin-left: auto; cursor: pointer; color: #8ba1b8; font-size: 12px; white-space: nowrap; }
.logout:hover { color: #fff; }
.btn-sm { padding: 4px 10px; font-size: 12px; }
.row-actions { white-space: nowrap; }
.row-actions .link { margin-right: 10px; }
.mt8 { margin-top: 8px; }

/* ===== 拜访打卡：现场照片 ===== */
.photo-grid { display: flex; flex-wrap: wrap; gap: 8px; }
.photo-thumb { position: relative; width: 72px; height: 72px; border: 1px solid var(--border); border-radius: var(--r-sm); overflow: hidden; background: var(--surface-2); }
.photo-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.photo-del { position: absolute; top: 2px; right: 2px; width: 20px; height: 20px; line-height: 20px; text-align: center; background: rgba(11,11,11,0.6); color: #fff; border-radius: 50%; font-size: 12px; cursor: pointer; }
.photo-add { width: 72px; height: 72px; display: flex; align-items: center; justify-content: center; border: 1px dashed var(--brand); border-radius: var(--r-sm); color: var(--brand); font-size: 22px; cursor: pointer; background: transparent; }
.photo-add:hover { background: var(--surface-2); }

/* ===== 拜访打卡：我的打卡记录（按日期） ===== */
.punch-day { margin-bottom: 14px; }
.punch-day-h { display: flex; align-items: center; gap: 8px; font-weight: 600; margin-bottom: 8px; color: var(--ink-2); }
.punch-item { border: 1px solid var(--border); border-radius: var(--r); padding: 12px 14px; background: var(--surface); box-shadow: var(--shadow); margin-bottom: 8px; }
.punch-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.punch-head b { font-size: 14px; }
.punch-meta { margin: 4px 0 0; font-size: 12px; color: var(--ink-2); }
.punch-note { margin-top: 4px; font-size: 12px; color: var(--ink-2); }
.punch-photos { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.punch-photos img { width: 64px; height: 64px; object-fit: cover; border: 1px solid var(--border); border-radius: var(--r-sm); cursor: pointer; background: var(--surface-2); }

/* 表单里的 select / textarea 与 input 统一（拜访打卡等卡片内表单） */
.field select, .field textarea {
  width: 100%; min-height: 42px; padding: 10px 12px;
  border: 1px solid var(--border); border-radius: var(--r-sm);
  font-size: 14px; font-family: inherit; background: #fff; color: var(--ink);
}
.field select:focus, .field textarea:focus { border-color: var(--brand); outline: none; }

/* ===== 订单：产品名称搜索下拉 ===== */
.prod-search { position: relative; }
.o_suggest { position: absolute; top: 100%; left: 0; right: 0; max-height: 240px; overflow-y: auto; background: #fff; border: 1px solid var(--border); border-radius: 8px; box-shadow: 0 8px 24px rgba(0,0,0,0.14); z-index: 40; display: none; margin-top: 4px; }
.o_suggest.on { display: block; }
.o-opt { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 12px; cursor: pointer; font-size: 14px; border-bottom: 1px solid var(--hairline); }
.o-opt:last-child { border-bottom: none; }
.o-opt:hover { background: var(--surface-2); }
.o-opt .muted { color: var(--muted); font-size: 12px; white-space: nowrap; }

