/**
 * 归位商家管理系统 · 全局样式
 *
 * 视觉基调（对齐设计稿）：
 *   主色 = 低饱和陶土色，页面底色 = 暖米白，卡片纯白，
 *   避免高饱和色抢夺客户面部照片的视觉焦点。
 */

:root {
  --yy-primary: #b5714f;
  --yy-primary-hover: #c5805c;
  --yy-primary-active: #9d6143;
  --yy-primary-light: #f5ede6;
  --yy-bg-page: #f7f3ef;
  --yy-bg-card: #ffffff;
  --yy-border: #ece3db;
  --yy-text: #2f2f2f;
  --yy-text-secondary: #9a9088;
  --yy-text-light: #bdb3aa;
  --yy-success: #6ea87a;
  --yy-warning: #d9a05b;
  --yy-danger: #c05b4d;
  --yy-up: #c0392b;
  --yy-down: #2e8b57;
}

html,
body,
#root {
  height: 100%;
}

body {
  background: var(--yy-bg-page);
  color: var(--yy-text);
  font-size: 14px;
}

/* 去掉首屏 loading */
#yy-boot-loading {
  display: none;
}

/* ------------------------------ 布局 ------------------------------ */

.yy-layout {
  height: 100%;
  display: flex;
  background: var(--yy-bg-page);
}

/* ------------------------------ 侧边栏 ------------------------------ */

.yy-sider {
  width: 232px;
  flex: 0 0 232px;
  background: #fff;
  border-right: 1px solid var(--yy-border);
  display: flex;
  flex-direction: column;
  height: 100%;
}

.yy-sider__logo {
  height: 64px;
  display: flex;
  align-items: center;
  padding: 0 20px;
  flex: 0 0 64px;
}

/* 品牌图标自带陶土底 + 圆角，这里只负责尺寸与间距，不要再套底色 */
.yy-sider__logo-icon {
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 10px;
}

.yy-sider__logo-text {
  font-size: 19px;
  font-weight: 600;
  letter-spacing: 3px;
  color: var(--yy-primary);
}

.yy-sider__store {
  margin: 0 14px 12px;
  padding: 9px 12px;
  background: var(--yy-primary-light);
  border-radius: 8px;
  display: flex;
  align-items: center;
  cursor: pointer;
  font-size: 13px;
  color: #7a5a45;
}

.yy-sider__store-name {
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.yy-sider__menu {
  flex: 1;
  overflow-y: auto;
  padding: 0 10px 12px;
}

.yy-sider__menu::-webkit-scrollbar {
  width: 6px;
}

.yy-sider__menu::-webkit-scrollbar-thumb {
  background: #e5ded7;
  border-radius: 3px;
}

.yy-menu-item {
  display: flex;
  align-items: center;
  height: 40px;
  padding: 0 12px;
  margin-bottom: 2px;
  border-radius: 8px;
  cursor: pointer;
  color: #5c544e;
  font-size: 14px;
  user-select: none;
  transition: background 0.16s, color 0.16s;
}

.yy-menu-item:hover {
  background: #faf6f2;
}

.yy-menu-item--active {
  background: var(--yy-primary-light);
  color: var(--yy-primary);
  font-weight: 600;
}

.yy-menu-item__icon {
  width: 18px;
  margin-right: 10px;
  text-align: center;
  font-size: 15px;
}

.yy-menu-item__label {
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.yy-menu-item__arrow {
  font-size: 11px;
  color: var(--yy-text-light);
  transition: transform 0.18s;
}

.yy-menu-item__arrow--open {
  transform: rotate(90deg);
}

.yy-menu-sub {
  padding-left: 30px;
}

.yy-menu-sub .yy-menu-item {
  height: 36px;
  font-size: 13px;
}

.yy-sider__user {
  flex: 0 0 auto;
  border-top: 1px solid var(--yy-border);
  padding: 12px 16px;
  display: flex;
  align-items: center;
}

.yy-sider__user-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--yy-primary);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  margin-right: 10px;
  flex: 0 0 32px;
}

.yy-sider__user-name {
  font-size: 13px;
  color: var(--yy-text);
  line-height: 18px;
}

.yy-sider__user-role {
  font-size: 11px;
  color: var(--yy-text-secondary);
  line-height: 16px;
}

/* ------------------------------ 主区 ------------------------------ */

.yy-main {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.yy-header {
  flex: 0 0 64px;
  height: 64px;
  background: #fff;
  border-bottom: 1px solid var(--yy-border);
  display: flex;
  align-items: center;
  padding: 0 24px;
}

.yy-header__title {
  font-size: 17px;
  font-weight: 600;
  color: var(--yy-text);
  margin-right: 14px;
}

.yy-header__sub {
  font-size: 12px;
  color: var(--yy-text-secondary);
}

.yy-header__right {
  margin-left: auto;
  display: flex;
  align-items: center;
}

.yy-header__search {
  width: 240px;
  margin-right: 16px;
}

.yy-header__icon-btn {
  position: relative;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: #7d736b;
  font-size: 16px;
  margin-right: 8px;
}

.yy-header__icon-btn:hover {
  background: #f7f3ef;
}

.yy-header__badge {
  position: absolute;
  top: 4px;
  right: 4px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--yy-danger);
}

.yy-content {
  flex: 1;
  overflow: auto;
  padding: 16px 24px 28px;
}

/* ------------------------------ 卡片 ------------------------------ */

.yy-card {
  background: var(--yy-bg-card);
  border-radius: 10px;
  padding: 16px 18px;
  border: 1px solid var(--yy-border);
}

.yy-card + .yy-card {
  margin-top: 16px;
}

.yy-card__head {
  display: flex;
  align-items: center;
  margin-bottom: 12px;
}

.yy-card__title {
  font-size: 15px;
  font-weight: 600;
  color: var(--yy-text);
}

.yy-card__extra {
  margin-left: auto;
  font-size: 13px;
  color: var(--yy-primary);
  cursor: pointer;
}

/* 指标卡 */
.yy-stat {
  background: #fff;
  border: 1px solid var(--yy-border);
  border-radius: 10px;
  padding: 16px 18px;
  height: 100%;
}

.yy-stat__label {
  font-size: 13px;
  color: var(--yy-text-secondary);
  margin-bottom: 8px;
}

.yy-stat__value {
  font-size: 27px;
  font-weight: 600;
  color: var(--yy-text);
  line-height: 34px;
  font-family: -apple-system, "DIN Alternate", Arial, sans-serif;
}

.yy-stat__foot {
  margin-top: 8px;
  font-size: 12px;
  color: var(--yy-text-secondary);
}

.yy-stat__up {
  color: var(--yy-up);
}

.yy-stat__down {
  color: var(--yy-down);
}

/* ------------------------------ 查询表格 ------------------------------ */

.yy-table-view {
  background: #fff;
  border: 1px solid var(--yy-border);
  border-radius: 10px;
  padding: 16px 18px;
}

.yy-table-view__filter {
  border-bottom: 1px dashed var(--yy-border);
  padding-bottom: 4px;
  margin-bottom: 8px;
}

.yy-table-view__toolbar {
  display: flex;
  align-items: center;
  margin: 12px 0 8px;
}

.yy-table-view__toolbar-left {
  display: flex;
  align-items: center;
}

.yy-table-view__toolbar-left > * {
  margin-right: 8px;
}

.yy-table-view__toolbar-right {
  margin-left: auto;
}

.yy-table-view__toolbar-right > * {
  margin-left: 8px;
}

.yy-table-view .ant-table-thead > tr > th {
  background: #faf7f4;
  color: #6f645b;
  font-weight: 600;
}

.yy-table-view .ant-form-item-label > label {
  color: var(--yy-text-secondary);
  font-size: 13px;
}

.yy-table-view .ant-form-item {
  display: flex;
  align-items: center;
}

.yy-table-view .ant-form-item-label {
  width: auto;
  min-width: 68px;
  text-align: right;
  padding-right: 8px;
  line-height: 32px;
}

.yy-table-view .ant-form-item-control-wrapper {
  flex: 1;
  min-width: 0;
}

/* ------------------------------ 全局 loading ------------------------------ */

.yy-global-loading {
  position: fixed;
  left: 0;
  top: 0;
  right: 0;
  bottom: 0;
  background: rgba(255, 255, 255, 0.55);
  z-index: 10000;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.yy-global-loading-text {
  margin-top: 12px;
  color: var(--yy-text-secondary);
  font-size: 13px;
}

/* ------------------------------ 状态标签 ------------------------------ */

.yy-tag {
  display: inline-block;
  padding: 1px 9px;
  border-radius: 10px;
  font-size: 12px;
  line-height: 19px;
  background: #f2ece7;
  color: #8a7f76;
}

.yy-tag--success {
  background: #eaf3ec;
  color: #4f8a5f;
}

.yy-tag--warning {
  background: #fbf0e2;
  color: #b07b34;
}

.yy-tag--danger {
  background: #faeae7;
  color: #b5503f;
}

.yy-tag--primary {
  background: var(--yy-primary-light);
  color: var(--yy-primary);
}

/* ------------------------------ 欢迎条 ------------------------------ */

.yy-welcome {
  background: var(--yy-primary-light);
  border-radius: 10px;
  padding: 14px 18px;
  display: flex;
  align-items: center;
  margin-bottom: 16px;
}

.yy-welcome__icon {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--yy-primary);
  font-size: 17px;
  margin-right: 12px;
  flex: 0 0 34px;
}

.yy-welcome__title {
  font-size: 14px;
  font-weight: 600;
  color: #7a5a45;
}

.yy-welcome__desc {
  font-size: 12px;
  color: #a08b7a;
  margin-top: 2px;
}

/* ------------------------------ 空状态 / 提示条 ------------------------------ */

.yy-empty {
  padding: 30px 0;
  text-align: center;
  color: var(--yy-text-light);
  font-size: 13px;
}

.yy-hint-bar {
  background: #fdf8f3;
  border: 1px solid #f2e6da;
  color: #a58a6f;
  border-radius: 8px;
  padding: 8px 12px;
  font-size: 12px;
  display: flex;
  align-items: center;
}

/* 表格内操作链接 */
.yy-table-view .ant-table-tbody .yy-op-link {
  color: var(--yy-primary);
  margin-right: 10px;
  cursor: pointer;
}

.yy-table-view .ant-table-tbody .yy-op-link:hover {
  color: var(--yy-primary-hover);
}

.yy-table-view .ant-table-tbody .yy-op-link--disabled {
  color: var(--yy-text-light);
  cursor: not-allowed;
}

/* 覆盖 antd 主题色为主色 */
.ant-btn-primary {
  background-color: var(--yy-primary);
  border-color: var(--yy-primary);
}

.ant-btn-primary:hover,
.ant-btn-primary:focus {
  background-color: var(--yy-primary-hover);
  border-color: var(--yy-primary-hover);
}

.ant-btn-primary[disabled],
.ant-btn-primary[disabled]:hover {
  background-color: #d8c7bb;
  border-color: #d8c7bb;
}

.ant-btn-link {
  color: var(--yy-primary);
}

.ant-pagination-item-active {
  border-color: var(--yy-primary);
}

.ant-pagination-item-active a {
  color: var(--yy-primary);
}

.ant-checkbox-checked .ant-checkbox-inner {
  background-color: var(--yy-primary);
  border-color: var(--yy-primary);
}

.ant-radio-button-wrapper-checked {
  color: var(--yy-primary);
  border-color: var(--yy-primary);
}

.ant-input:hover,
.ant-input:focus,
.ant-select-selection:hover,
.ant-select-selection:focus {
  border-color: var(--yy-primary-hover);
}

.ant-select-focused .ant-select-selection,
.ant-input:focus {
  box-shadow: 0 0 0 2px rgba(181, 113, 79, 0.12);
}

.ant-spin-dot-item {
  background-color: var(--yy-primary);
}

.ant-tabs-tab-active {
  color: var(--yy-primary) !important;
}

.ant-tabs-ink-bar {
  background-color: var(--yy-primary);
}

.ant-switch-checked {
  background-color: var(--yy-primary);
}

/* =============================================================================
 * 归位商家管理系统 · 业务页公共样式
 * 列表单元格、上传、详情抽屉、弹窗内表格等，被多个页面复用
 * ========================================================================== */

/* ------------------------------ 表格单元格 ------------------------------ */

/* 两行单元格：主文案 + 次要说明 */
.yy-cell2__main {
  color: var(--yy-text);
  font-size: 13px;
  line-height: 20px;
}

.yy-cell2__sub {
  color: var(--yy-text-light);
  font-size: 12px;
  line-height: 18px;
}

/* 客户单元格：头像 + 姓名，可点击进档案 */
.yy-cell-user {
  display: flex;
  align-items: center;
  gap: 6px;
}

.yy-cell-user__op {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
}

.yy-cell-user__op:hover .yy-cell2__main {
  color: var(--yy-primary);
}

.yy-cell-user__avatar {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  object-fit: cover;
  flex: 0 0 30px;
}

.yy-cell-user__avatar--empty {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--yy-primary-light);
  color: var(--yy-primary);
  font-size: 13px;
}

.yy-right,
.ant-table-cell .yy-right {
  text-align: right;
}

/* 表头居中、数字右对齐看起来更整齐 */
.yy-table-view .ant-table-thead > tr > th {
  color: var(--yy-text-secondary);
  font-weight: 500;
  background: #fbf8f5;
}

.yy-table-view .ant-table-tbody > tr > td {
  font-size: 13px;
}

.yy-table-view .ant-table-placeholder {
  border-bottom: none;
}

/* 操作列链接之间的间距 */
.yy-table-view .ant-table-tbody .yy-op-link + .yy-op-link {
  margin-left: 10px;
}

.yy-op-link--disabled {
  color: #b9b1a9;
  cursor: not-allowed;
  margin-left: 10px;
}

/* ------------------------------ 迷你表格（弹窗/详情内） ------------------------------ */

.yy-mini-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

.yy-mini-table th {
  padding: 8px 10px;
  color: var(--yy-text-secondary);
  font-weight: 500;
  text-align: left;
  background: #fbf8f5;
  border-bottom: 1px solid var(--yy-border);
  white-space: nowrap;
}

.yy-mini-table td {
  padding: 8px 10px;
  color: var(--yy-text);
  border-bottom: 1px solid #f4efe9;
}

.yy-mini-table tbody tr:hover td {
  background: #fdfbf9;
}

.yy-mini-table .yy-right {
  text-align: right;
}

.yy-mini-table .yy-center {
  text-align: center;
}

/* 迷你表格里的操作链接（客户档案 → 消费记录「查看明细」等） */
.yy-mini-table .yy-op-link {
  color: var(--yy-primary);
  cursor: pointer;
}

.yy-mini-table .yy-op-link:hover {
  color: var(--yy-primary-hover);
}

/* ------------------------------ 图片上传 ------------------------------ */

.yy-upload-single .ant-upload.ant-upload-select-picture-card {
  width: 104px;
  height: 104px;
  margin: 0;
  border-radius: 8px;
  border-color: var(--yy-border);
  background: #fdfbf9;
}

.yy-upload-single__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 6px;
}

.yy-upload-single__img--circle {
  border-radius: 50%;
}

.yy-upload-single__empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: var(--yy-text-light);
  font-size: 20px;
}

.yy-upload-single__text {
  margin-top: 4px;
  font-size: 12px;
}

/* 已选图片的容器：让「删除」浮层贴着图片走 */
.yy-upload-single__box {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
  border-radius: 6px;
}

/**
 * 悬停显示的删除条。antd3 的 picture-card 内容区有 padding，
 * 这里绝对定位到底部、圆角跟图片对齐，避免盖住图中间影响预览点击。
 */
.yy-upload-single__mask {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 24px;
  color: #fff;
  font-size: 13px;
  background: rgba(40, 33, 28, 0.66);
  opacity: 0;
  cursor: pointer;
  transition: opacity 0.2s;
}

.yy-upload-single__box:hover .yy-upload-single__mask {
  opacity: 1;
}

/* 圆形头像：容器也裁成圆，删除条自然被切出弧形 */
.yy-upload-single__box--circle {
  border-radius: 50%;
}

.yy-upload__tip {
  margin-top: 6px;
  color: var(--yy-text-light);
  font-size: 12px;
}

.yy-upload-multi {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.yy-upload-multi__item {
  position: relative;
  width: 104px;
  height: 104px;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid var(--yy-border);
}

.yy-upload-multi__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  cursor: zoom-in;
}

.yy-upload-multi__badge {
  position: absolute;
  top: 0;
  left: 0;
  padding: 1px 6px;
  font-size: 11px;
  color: #fff;
  background: var(--yy-primary);
  border-bottom-right-radius: 8px;
}

.yy-upload-multi__mask {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  justify-content: space-around;
  padding: 4px 0;
  color: #fff;
  background: rgba(40, 33, 28, 0.66);
  opacity: 0;
  transition: opacity 0.2s;
}

.yy-upload-multi__item:hover .yy-upload-multi__mask {
  opacity: 1;
}

.yy-upload-multi__mask .anticon {
  cursor: pointer;
}

/**
 * 「+ 上传」格必须和图片排在同一行，只有一行排不下时才换到下一行。
 * ⚠️ antd3 的 .ant-upload-picture-card-wrapper（外层 span）是 100% 宽的块级元素，
 * 作为 flex 子项会「独占整行」→ 只要这一行有图片，就被挤到下一行（表现为「+」单独一行）。
 * 这里把它收敛成和图片一样大的「一格」，让它跟在最后一张图片右侧、排满才换行。
 * 用 `.yy-upload-multi > .yy-upload-multi__add` 提高优先级，确保盖过 antd 自身的宽度规则。
 */
.yy-upload-multi > .yy-upload-multi__add {
  display: block;
  flex: 0 0 auto;
  width: 104px;
}

.yy-upload-multi__add .ant-upload.ant-upload-select-picture-card {
  width: 104px;
  height: 104px;
  margin: 0;
  border-radius: 8px;
  border-color: var(--yy-border);
  background: #fdfbf9;
}

/* 隐藏 antd 自带的列表容器（我们自绘 .yy-upload-multi__item），避免它撑高「+」格 */
.yy-upload-multi__add .ant-upload-list {
  display: none;
}

/* ------------------------------ 详情 / 抽屉 ------------------------------ */

.yy-detail-head {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--yy-border);
}

.yy-detail-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin: 16px 0;
}

.yy-detail-stat {
  padding: 12px 14px;
  border-radius: 8px;
  background: #fbf8f5;
}

.yy-detail-stat__label {
  color: var(--yy-text-light);
  font-size: 12px;
}

.yy-detail-stat__value {
  margin-top: 4px;
  color: var(--yy-text);
  font-size: 20px;
  font-weight: 600;
}

.yy-detail-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px 20px;
}

.yy-detail-field {
  display: flex;
  gap: 8px;
  font-size: 13px;
  color: var(--yy-text);
}

.yy-detail-field > span {
  color: var(--yy-text-light);
  flex: 0 0 76px;
}

/* ------------------------------ 表单内联行（商品明细等） ------------------------------ */

.yy-form-table {
  width: 100%;
  border-collapse: collapse;
}

.yy-form-table th {
  padding: 6px 8px;
  color: var(--yy-text-secondary);
  font-size: 12px;
  font-weight: 500;
  text-align: left;
  background: #fbf8f5;
  border: 1px solid var(--yy-border);
}

.yy-form-table td {
  padding: 6px 8px;
  border: 1px solid var(--yy-border);
}

.yy-form-table .ant-input,
.yy-form-table .ant-select,
.yy-form-table .ant-input-number {
  width: 100%;
}

/* ------------------------------ 通用提示条 ------------------------------ */

.yy-note {
  margin-bottom: 12px;
  padding: 8px 12px;
  color: #8a6136;
  font-size: 12px;
  line-height: 20px;
  background: #fdf4e8;
  border: 1px solid #f3e2c9;
  border-radius: 6px;
}

.yy-note .anticon {
  margin-right: 6px;
}

/* 指标卡上的一句补充说明 */
.yy-card__desc {
  margin-top: 10px;
  color: var(--yy-text-light);
  font-size: 12px;
}

/* 空状态在卡片内不要顶太高 */
.yy-card .ant-empty {
  margin: 24px 0;
}

/* ------------------------------ 弹窗内整行区域 ------------------------------ */

.yy-modal-section {
  margin-bottom: 18px;
}

.yy-modal-section__title {
  margin-bottom: 8px;
  color: var(--yy-text);
  font-size: 13px;
}

.yy-modal-section__required {
  margin-left: 4px;
  color: var(--yy-danger);
  font-style: normal;
}

.yy-modal-section__tip {
  margin-top: 6px;
  color: var(--yy-text-light);
  font-size: 12px;
  line-height: 18px;
}

/* ------------------------------ 弹窗内半宽字段并排（ModalField.span = 2） ------------------------------ */

.yy-modal-row {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 16px;
}

.yy-modal-row__col {
  flex: 1 1 0;
  min-width: 0;
}

/* 注：label / 控件的宽度由 antd 的 labelCol(6) / wrapperCol(17) 以内联方式给出，
   在半宽列里分别落到 25% / 70.83%，四字标题放得下，这里不要再改宽度（改不动且会误导）。 */
.yy-modal-row__col .ant-form-item-extra {
  min-height: 0;
  padding-top: 2px;
  font-size: 12px;
  line-height: 16px;
}


/* 弹窗 / 抽屉内的小标题 */
.yy-section-title {
  margin: 18px 0 10px;
  padding-left: 8px;
  color: var(--yy-text);
  font-size: 14px;
  font-weight: 500;
  border-left: 3px solid var(--yy-primary);
}

/* 工具条内的说明文字（多个页面共用） */
.yy-toolbar-tip {
  margin-left: 12px;
  color: var(--yy-text-light);
  font-size: 12px;
}

/* ------------------------------ 通用小工具 ------------------------------ */

/* 次要/占位文字（列表里的「未预约」「未分配」「未到店」等） */
.yy-text-light {
  color: var(--yy-text-light);
}

/* ------------------------------ 页面顶部说明条 ------------------------------ */

/*
 * 列表页顶部的角色/范围说明（设计稿里每条列表页都有一条）。
 * 默认暖米色（老板），--success 为浅绿（技师）——与设计稿 14/15 一致。
 */
.yy-page-tip {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  padding: 8px 14px;
  margin-bottom: 12px;
  border-radius: 8px;
  background: var(--yy-primary-light);
  color: var(--yy-text);
  font-size: 12px;
  line-height: 20px;
}

.yy-page-tip__head {
  color: var(--yy-primary-active);
  font-weight: 600;
}

.yy-page-tip__dot {
  margin: 0 8px;
  color: var(--yy-text-light);
}

.yy-page-tip__weak {
  color: var(--yy-text-secondary);
}

.yy-page-tip--success {
  background: #edf4ee;
}

.yy-page-tip--success .yy-page-tip__head {
  color: #4f8a6b;
}

/**
 * 登录页样式（对应设计稿 01）
 * 视觉基调：低饱和暖陶土色 + 纯白卡片，让品牌照片成为视觉焦点。
 */
.Ypr24Gus {
  display: flex;
  width: 100%;
  height: 100%;
  min-height: 100vh;
  background: #fff;
}
/* ------------------------------ 左侧品牌区 ------------------------------ */
.jjJjKS77 {
  position: relative;
  flex: 0 0 51%;
  max-width: 51%;
  padding: 36px 48px 40px;
  display: flex;
  flex-direction: column;
  color: #fff;
  overflow: hidden;
  /* 品牌实拍照片（手部面部调理，取自设计稿 01-登录页）+ 暖陶土色蒙版，
     蒙版由深到浅，保证左下角白色文案始终可读 */
  background-image: linear-gradient(158deg, rgba(84, 52, 40, 0.58) 0%, rgba(126, 76, 56, 0.42) 42%, rgba(168, 102, 74, 0.26) 100%), url(/static/img/login-bg.58341fc5.jpg);
  background-size: cover, cover;
  background-position: center, center;
  background-repeat: no-repeat, no-repeat;
  /* 照片加载失败时兜底成暖陶土色 */
  background-color: #9c6247;
}
/* 柔光叠加，避免大面积纯色显得单薄 */
.jjJjKS77::after {
  content: '';
  position: absolute;
  right: -120px;
  bottom: -160px;
  width: 520px;
  height: 520px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 236, 220, 0.28) 0%, rgba(255, 236, 220, 0) 70%);
  pointer-events: none;
}
.m9uddLbS {
  display: flex;
  align-items: center;
  position: relative;
  z-index: 1;
}
/* 品牌图标自带米白底 + 圆角（inverse 版），这里只负责尺寸与间距 */
.dKkDHVj_ {
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-right: 10px;
}
.T5gcCUUM {
  font-size: 19px;
  font-weight: 600;
  letter-spacing: 4px;
}
.vWvX87dk {
  position: relative;
  z-index: 1;
  margin-top: auto;
  margin-bottom: auto;
  padding-bottom: 18%;
}
.v97wTxGH {
  font-size: 34px;
  line-height: 1.42;
  font-weight: 600;
  letter-spacing: 2px;
  margin: 0 0 14px;
  color: #fff;
}
.uyNDCn_z {
  font-size: 13.5px;
  line-height: 1.9;
  color: rgba(255, 255, 255, 0.86);
  margin: 0;
  letter-spacing: 0.5px;
}
.w8lgmw1m {
  position: relative;
  z-index: 1;
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 12.5px;
  line-height: 2.1;
  color: rgba(255, 255, 255, 0.78);
}
.w8lgmw1m li::before {
  content: '·';
  margin-right: 8px;
  color: rgba(255, 255, 255, 0.6);
}
/* ------------------------------ 右侧登录卡片 ------------------------------ */
.F5gn65Ye {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 24px;
  background: #fff;
}
.Qcll1hy_ {
  width: 100%;
  max-width: 400px;
}
.BLqdr5jQ {
  font-size: 25px;
  font-weight: 600;
  color: #2f2f2f;
  margin: 0 0 10px;
  letter-spacing: 1px;
}
.BZxqvykB {
  font-size: 12.5px;
  color: #9a9088;
  line-height: 1.75;
  margin: 0 0 24px;
}
.E2cDDnP0 {
  margin-bottom: 16px;
}
.JvB3GxSh {
  display: block;
  font-size: 13px;
  color: #6f645b;
  margin-bottom: 7px;
}
.u7CzzNNi {
  font-size: 12px;
  color: #b0a396;
  margin-top: 6px;
  min-height: 17px;
}
.QxfxeLit {
  display: flex;
  align-items: center;
  margin: 4px 0 18px;
}
.T2JOhp_C {
  margin-left: auto;
  font-size: 12.5px;
  color: #b5714f;
}
.MHaaJHMi {
  height: 44px !important;
  font-size: 15px;
  letter-spacing: 4px;
  border-radius: 8px !important;
}
.O65Czw5H {
  margin-top: 12px;
  font-size: 12px;
  color: #b0a396;
  line-height: 1.7;
  text-align: center;
}
.f4whX0hA {
  margin-top: 16px;
  background: #fdf8f3;
  border: 1px solid #f4e8dc;
  border-radius: 8px;
  padding: 9px 12px;
  font-size: 12px;
  color: #a58a6f;
  text-align: center;
}
/* 输入框圆角与边框 */
.Qcll1hy_ .ant-input,
.Qcll1hy_ .ant-input-password,
.Qcll1hy_ .ant-select-selection {
  border-radius: 8px;
  border-color: #e8ded5;
}
.Qcll1hy_ .ant-input:focus,
.Qcll1hy_ .ant-select-selection:hover {
  border-color: #c5805c;
}
.Qcll1hy_ .ant-select-selection--single {
  height: 40px;
}
.Qcll1hy_ .ant-select-selection__rendered {
  line-height: 38px;
}
@media (max-width: 900px) {
  .jjJjKS77 {
    display: none;
  }
}

/**
 * 工作台公共样式
 */
.ZU6guxRz {
  min-height: 100%;
}
/* 今日预约行 */
.zm_nQuvN {
  display: flex;
  align-items: center;
  padding: 11px 0;
  border-bottom: 1px solid #f5f0eb;
  font-size: 13px;
}
.zm_nQuvN:last-child {
  border-bottom: none;
}
.EouAyFvf {
  width: 60px;
  color: #6f645b;
  flex: 0 0 60px;
}
.mEblxSDA {
  flex: 1;
  color: #2f2f2f;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.oDGx2Cu5 {
  width: 116px;
  color: #9a9088;
  font-size: 12px;
  flex: 0 0 116px;
  margin-right: 8px;
}
/* 柱状图标题 */
.AbxDo75h {
  margin: 20px 0 4px;
  font-size: 12.5px;
  color: #9a9088;
}
/* 业绩排行 */
.M3ddDVxp {
  display: flex;
  align-items: center;
  padding: 10px 0;
  font-size: 13px;
  border-bottom: 1px solid #f8f4f0;
}
.M3ddDVxp:last-child {
  border-bottom: none;
}
.wAZjjBDi {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #f2ece7;
  color: #8a7f76;
  font-size: 12px;
  text-align: center;
  line-height: 20px;
  margin-right: 10px;
  flex: 0 0 20px;
}
.op0rnmAp {
  background: #b5714f;
  color: #fff;
}
.DwJKntKr {
  flex: 1;
  color: #3d3d3d;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.A7aH4GVL {
  color: #2f2f2f;
  font-weight: 600;
}
/* 待办 */
.ZoZ1rML1 {
  padding: 10px 0;
  border-bottom: 1px solid #f8f4f0;
}
.ZoZ1rML1:last-child {
  border-bottom: none;
}
.lDT6AM_c {
  font-size: 13px;
  color: #2f2f2f;
}
.gpuv3Pao {
  font-size: 12px;
  color: #9a9088;
  margin-top: 3px;
}
/* 绩效明细两列小卡 */
.yGaY57l1 {
  display: flex;
  margin-top: 4px;
}
.GPdfJbXJ {
  flex: 1;
  background: #faf7f4;
  border-radius: 8px;
  padding: 12px 14px;
}
.GPdfJbXJ + .GPdfJbXJ {
  margin-left: 12px;
}
.hsDbXPrV {
  font-size: 12px;
  color: #9a9088;
}
.a5RYialW {
  font-size: 20px;
  font-weight: 600;
  color: #2f2f2f;
  margin-top: 5px;
}
/* 快捷入口 */
.snRiyA4O {
  display: flex;
  flex-wrap: wrap;
}
.WKcpa6iH {
  width: 25%;
  text-align: center;
  padding: 14px 0;
  cursor: pointer;
  border-radius: 8px;
}
.WKcpa6iH:hover {
  background: #faf7f4;
}
.MeYrFHWe {
  font-size: 19px;
  color: #b5714f;
}
._9hH5ura {
  font-size: 12.5px;
  color: #6f645b;
  margin-top: 7px;
}

/* =============================================================================
 * 归位商家管理系统 · 订单成交 / 耗卡核销
 * ========================================================================== */
/* 订单明细编辑器底部 */
.yy-items-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 10px;
}
.yy-items-total {
  color: var(--yy-text-secondary);
  font-size: 13px;
}
.yy-items-total b {
  color: var(--yy-primary);
  font-size: 16px;
}
/* 合计里的「−」「=」分隔符与最终实收 */
.yy-items-total__sep {
  margin: 0 8px;
  color: var(--yy-text-light);
}
.yy-items-total__net {
  font-size: 18px !important;
}
/* 明细行：商品单元格（体验卡标记 + 下拉） */
.yy-item-product {
  display: flex;
  align-items: center;
  gap: 4px;
}
.yy-item-product__sel {
  flex: 1;
  min-width: 0;
}
/* 体验卡标记：明细行上的小「体」字 */
.yy-item-exp {
  display: inline-block;
  min-width: 14px;
  height: 14px;
  line-height: 14px;
  padding: 0 2px;
  border-radius: 3px;
  background: var(--yy-text);
  color: #fff;
  font-size: 10px;
  font-style: normal;
  font-weight: 500;
  text-align: center;
  flex: none;
}
/* 只读金额（售价 / 金额） */
.yy-item-readonly {
  color: var(--yy-text-secondary);
}
/* 行实收小计 */
.yy-item-net {
  color: var(--yy-text);
  font-weight: 600;
}
/* 卡次数（单张）输入 + 份数换算提示：卡总次数 = 单张卡次数 × 购买数量 */
.yy-item-times__hint {
  display: block;
  margin-top: 2px;
  font-size: 12px;
  line-height: 16px;
  color: var(--yy-text-light);
}
/* 明细行删除图标 */
.yy-del-icon {
  color: var(--yy-text-light);
  cursor: pointer;
}
.yy-del-icon:hover {
  color: var(--yy-danger);
}
/* 卡片剩余次数进度条 */
.yy-progress-cell {
  min-width: 130px;
}
.yy-progress-cell__bar {
  height: 6px;
  margin-bottom: 4px;
  border-radius: 3px;
  background: #f0eae4;
  overflow: hidden;
  /* 彩色块靠右：剩余越多右侧越满，次数被消耗时颜色从左往右消失（左侧为已用的浅灰） */
  display: flex;
  justify-content: flex-end;
}
.yy-progress-cell__inner {
  height: 100%;
  border-radius: 3px;
  background: linear-gradient(90deg, #d9a883, var(--yy-primary));
}
/* 次数已用尽：整条留灰（剩余 0 无彩色块） */
.yy-progress-cell--empty .yy-progress-cell__bar {
  background: #ded7cf;
}

/* =============================================================================
 * 归位商家管理系统 · 客户档案详情（设计稿 16）
 * 面部档案「调整前 → 调整后」并排对比是本页的视觉主角
 * ========================================================================== */
.yy-cust-detail__head {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--yy-border);
}
.yy-cust-detail__avatar {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  object-fit: cover;
  flex: 0 0 64px;
}
.yy-cust-detail__avatar--empty {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--yy-primary-light);
  color: var(--yy-primary);
  font-size: 24px;
}
.yy-cust-detail__head-main {
  flex: 1;
  min-width: 0;
}
.yy-cust-detail__name {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 18px;
  font-weight: 600;
  color: var(--yy-text);
}
.yy-cust-detail__sub {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 16px;
  margin-top: 6px;
  color: var(--yy-text-secondary);
  font-size: 13px;
}
.yy-cust-detail__stats {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 12px;
  margin: 16px 0 18px;
}
.yy-cust-detail__stat {
  padding: 12px 14px;
  border-radius: 8px;
  background: #fbf8f5;
}
.yy-cust-detail__stat-label {
  color: var(--yy-text-light);
  font-size: 12px;
}
.yy-cust-detail__stat-value {
  margin-top: 4px;
  color: var(--yy-text);
  font-size: 20px;
  font-weight: 600;
}
.yy-cust-detail__stat-value--sm {
  font-size: 14px;
  font-weight: 500;
}
.yy-cust-detail__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px 20px;
}
.yy-cust-detail__field {
  display: flex;
  gap: 8px;
  color: var(--yy-text);
  font-size: 13px;
}
.yy-cust-detail__field > span {
  flex: 0 0 70px;
  color: var(--yy-text-light);
}
/* ------------------------------ 面部档案 ------------------------------ */
.yy-face__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}
.yy-face__switch {
  display: inline-flex;
  padding: 2px;
  border-radius: 6px;
  background: #f4efe9;
}
.yy-face__switch-item {
  padding: 4px 14px;
  color: var(--yy-text-secondary);
  font-size: 13px;
  border-radius: 5px;
}
.yy-face__switch-item--on {
  color: var(--yy-primary);
  background: #fff;
  box-shadow: 0 1px 3px rgba(90, 70, 55, 0.1);
}
.yy-face__row {
  margin-bottom: 22px;
}
.yy-face__row-title {
  margin-bottom: 8px;
  color: var(--yy-text);
  font-size: 14px;
  font-weight: 500;
}
.yy-face__pair {
  display: flex;
  align-items: stretch;
  gap: 12px;
}
.yy-face__cell {
  flex: 1;
  min-width: 0;
  padding: 12px;
  border: 1px solid var(--yy-border);
  border-radius: 8px;
  background: #fdfbf9;
}
.yy-face__cell-tag {
  display: inline-block;
  margin-bottom: 8px;
  padding: 1px 8px;
  color: var(--yy-text-secondary);
  font-size: 12px;
  background: #ece5de;
  border-radius: 10px;
}
.yy-face__cell-tag--after {
  color: #fff;
  background: var(--yy-primary);
}
/* 「对比图」框：操作人自己拼好的前后对比图，单独一档，与前一组的视觉区分开 */
.yy-face__cell--compare {
  flex: 0 0 210px;
}
.yy-face__cell-tag--compare {
  color: #fff;
  background: #7a4ea8;
}
.yy-face__arrow {
  display: flex;
  align-items: center;
  color: var(--yy-text-light);
  font-size: 18px;
}
/* ------------------------------ 前后对比（可选照片） ------------------------------ */
.yy-face__compare {
  border: 1px solid var(--yy-border);
  border-radius: 10px;
  background: #fdfbf9;
  padding: 14px 16px;
}
.yy-face__compare-pick {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-right: 20px;
  margin-bottom: 12px;
}
.yy-face__compare-label {
  display: inline-block;
  padding: 1px 8px;
  color: var(--yy-text-secondary);
  font-size: 12px;
  background: #ece5de;
  border-radius: 10px;
}
.yy-face__compare-label--after {
  color: #fff;
  background: var(--yy-primary);
}
.yy-face__compare-count {
  color: var(--yy-text-secondary);
  font-size: 12px;
}
.yy-face__compare-body {
  display: flex;
  align-items: stretch;
  gap: 14px;
}
.yy-face__compare-img {
  flex: 1;
  min-width: 0;
}
.yy-face__compare-img img {
  width: 100%;
  max-height: 420px;
  object-fit: contain;
  border-radius: 8px;
  background: #fff;
  border: 1px solid var(--yy-border);
  display: block;
}
.yy-face__compare-cap {
  margin-top: 8px;
  text-align: center;
  color: var(--yy-text-secondary);
  font-size: 12px;
}
.yy-face__figure {
  margin: 0 0 10px;
}
.yy-face__figure img {
  width: 100%;
  border-radius: 6px;
  display: block;
}
.yy-face__figure figcaption {
  margin-top: 6px;
  color: var(--yy-text-secondary);
  font-size: 12px;
  line-height: 18px;
}
.yy-face__placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 120px;
  color: var(--yy-text-light);
  font-size: 13px;
  background: #f7f3ef;
  border-radius: 6px;
}
/* ------------------------------ 客户卡 ------------------------------ */
.yy-card-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}
.yy-card-item {
  padding: 14px;
  border: 1px solid var(--yy-border);
  border-radius: 8px;
}
.yy-card-item__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.yy-card-item__name {
  color: var(--yy-text);
  font-size: 14px;
  font-weight: 500;
}
.yy-card-item__no {
  margin-top: 4px;
  color: var(--yy-text-light);
  font-size: 12px;
}
.yy-card-item__progress {
  margin: 10px 0 8px;
  height: 6px;
  border-radius: 3px;
  background: #f0eae4;
  overflow: hidden;
  /* 彩色块靠右：剩余越多右侧越满，次数被消耗时颜色从左往右消失（左侧为已用的浅灰） */
  display: flex;
  justify-content: flex-end;
}
.yy-card-item__progress-bar {
  height: 100%;
  border-radius: 3px;
  background: var(--yy-primary);
}
/* 次数已用尽：整条留灰（剩余 0 无彩色块） */
.yy-card-item__progress--empty {
  background: #ded7cf;
}
.yy-card-item__foot {
  display: flex;
  justify-content: space-between;
  margin-top: 4px;
  color: var(--yy-text-secondary);
  font-size: 12px;
}
/* 卡上的金额三件套：原始价格 / 实收金额 / 优惠金额 */
.yy-card-item__amounts {
  display: flex;
  margin-top: 6px;
  padding-top: 6px;
  border-top: 1px dashed var(--yy-border);
  color: var(--yy-text-secondary);
  font-size: 12px;
}
.yy-card-item__amounts > span {
  flex: 1;
  text-align: center;
}
.yy-card-item__amounts > span + span {
  border-left: 1px solid #f4efe9;
}
.yy-card-item__amounts b {
  color: var(--yy-text);
  font-weight: 500;
}
/* ------------------------------ 跟进时间线 ------------------------------ */
.yy-timeline {
  padding-left: 6px;
}
.yy-timeline__item {
  position: relative;
  padding: 0 0 16px 18px;
  border-left: 1px solid var(--yy-border);
}
.yy-timeline__item:last-child {
  border-left-color: transparent;
  padding-bottom: 0;
}
.yy-timeline__dot {
  position: absolute;
  left: -5px;
  top: 4px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
}
.yy-timeline__head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  color: var(--yy-text);
  font-size: 13px;
}
.yy-timeline__time,
.yy-timeline__who {
  color: var(--yy-text-light);
  font-size: 12px;
}
.yy-timeline__content {
  margin-top: 6px;
  color: var(--yy-text);
  font-size: 13px;
  line-height: 21px;
}
.yy-timeline__next {
  margin-top: 4px;
  color: #b8802f;
  font-size: 12px;
}
/* ------------------------------ 面部操作记录（一次操作一条） ------------------------------ */
.yy-face__pending-tip {
  margin-left: 6px;
  color: #b07b34;
  font-size: 12px;
}
.yy-face__cell-count {
  margin-left: 6px;
  color: var(--yy-text-light);
  font-size: 11px;
}
.yy-face__ops {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.yy-face__op {
  padding: 12px 14px;
  border: 1px solid var(--yy-border);
  border-radius: 10px;
  background: #fff;
}
.yy-face__op--todo {
  border-color: #eccfa6;
  background: #fffdf9;
}
/* 头部元信息强制单行展示（去掉「已完善」后内容收敛到一行；放不下时字号自动缩小） */
.yy-face__op-head {
  display: flex;
  align-items: center;
  flex-wrap: nowrap;
  gap: 10px;
  margin-bottom: 10px;
}
.yy-face__op-head > * {
  flex: 0 0 auto;
  white-space: nowrap;
}
.yy-face__op-time {
  color: var(--yy-text);
  font-size: 13px;
  font-weight: 500;
}
.yy-face__op-meta {
  color: var(--yy-text-secondary);
  font-size: 12px;
}
/* 一次到店操作 = 一次耗卡：头部的「耗卡 卡名 卡号 · n 次」小胶囊 */
/* 客户卡「去预约」行的提示文案 */
.yy-card-item__booking-tip {
  color: var(--yy-text-secondary);
  font-size: 12px;
}
.yy-face__op-card {
  padding: 1px 8px;
  border-radius: 10px;
  background: var(--yy-primary-light, rgba(140, 98, 57, 0.12));
  color: var(--yy-primary, #8c6239);
  font-size: 12px;
  white-space: nowrap;
}
/* 卡名较长时整行放不下：胶囊文字略微缩小 */
.yy-face__op-card--long {
  font-size: 11px;
}
.yy-face__op-actions {
  margin-left: auto;
}
.yy-face__op-actions .yy-op-link + .yy-op-link {
  margin-left: 12px;
}
.yy-face__op-desc {
  margin-bottom: 10px;
  color: var(--yy-text-secondary);
  font-size: 12px;
  line-height: 19px;
}
.yy-face__during {
  margin-top: 10px;
}
/* 「过程中」在整行里，别让叠图铺满整行宽度 */
.yy-face__during .yy-face__stack {
  max-width: 280px;
}
.yy-face__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(96px, 1fr));
  gap: 8px;
}
.yy-face__thumb {
  width: 100%;
  height: 92px;
  object-fit: cover;
  border-radius: 6px;
  border: 1px solid var(--yy-border);
  background: #f7f3ef;
  cursor: zoom-in;
  display: block;
}
/* ------------------------------ 文件夹式叠图 ------------------------------ */
/*
 * 第一张完整显示，后面的依次向右下错开 6px、只露出边（像一沓照片/一个文件夹）；
 * 最多叠 4 层，多余的不画，数量看右下角角标。
 * 容器高度固定，图片绝对定位，宽度按「层数 × 6px」内缩，保证最后一层右边缘刚好贴住容器。
 */
.yy-face__stack {
  position: relative;
  height: 128px;
  cursor: zoom-in;
  border-radius: 8px;
}
.yy-face__stack-img {
  position: absolute;
  top: 0;
  left: 0;
  object-fit: cover;
  border-radius: 6px;
  border: 1px solid var(--yy-border);
  background: #f7f3ef;
  box-shadow: 0 1px 3px rgba(90, 62, 45, 0.1);
  display: block;
  transition: transform 0.15s ease;
}
.yy-face__stack:hover .yy-face__stack-img {
  box-shadow: 0 2px 8px rgba(90, 62, 45, 0.16);
}
.yy-face__stack-count {
  position: absolute;
  right: 4px;
  bottom: 4px;
  z-index: 20;
  padding: 0 7px;
  height: 20px;
  line-height: 20px;
  border-radius: 10px;
  background: rgba(43, 35, 30, 0.72);
  color: #fff;
  font-size: 11px;
}
/* ------------------------------ 大图预览（左右切换） ------------------------------ */
.yy-face__viewer {
  position: relative;
  background: #0f0b09;
  border-radius: 0 0 4px 4px;
}
.yy-face__viewer-img {
  display: block;
  width: 100%;
  max-height: 600px;
  object-fit: contain;
  user-select: none;
  cursor: grab;
}
.yy-face__viewer-nav {
  position: absolute;
  top: 50%;
  margin-top: -22px;
  width: 44px;
  height: 44px;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.82);
  color: #3a2e27;
  font-size: 18px;
  cursor: pointer;
  outline: none;
  transition: background 0.15s ease;
}
.yy-face__viewer-nav:hover {
  background: #fff;
}
.yy-face__viewer-nav--prev {
  left: 12px;
}
.yy-face__viewer-nav--next {
  right: 12px;
}
.yy-face__viewer-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 14px;
  color: #f3ece6;
  font-size: 12px;
  background: rgba(23, 17, 14, 0.92);
}
.yy-face__viewer-count {
  flex: 0 0 auto;
  margin-left: 12px;
  color: #d8c9bc;
}
/* ------------------------------ 面部比对 ------------------------------ */
.yy-face__compare-img img {
  cursor: zoom-in;
}
.yy-face__compare-body--big .yy-face__compare-img img {
  max-height: 620px;
}
.yy-face__compare-hint {
  margin-top: 10px;
  color: var(--yy-text-light);
  font-size: 12px;
}

/**
 * 归位商家管理系统 · 预约管理（月历视图）样式
 *
 * 类名策略：本文件是全局样式（非 *.module.less），类名统一 yy-bk- 前缀。
 * 视觉对齐设计稿 18：左「月历 + 当日明细侧栏」，顶部为月份导航/视图切换/搜索/状态筛选。
 */
/* ------------------------------ 页面骨架 ------------------------------ */
.yy-bk-page {
  display: flex;
  flex-direction: column;
  gap: 12px;
  /* 预约小块的操作浮层以本页为定位基准 */
  position: relative;
}
/* 工具条：月份导航 · 视图切换 · 搜索 · 状态 · 主按钮 */
.yy-bk-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  background: var(--yy-bg-card);
  border: 1px solid var(--yy-border);
  border-radius: 12px;
  padding: 12px 16px;
}
.yy-bk-month {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  border: 1px solid var(--yy-border);
  border-radius: 8px;
  padding: 0 4px;
  height: 32px;
}
.yy-bk-month__label {
  min-width: 108px;
  text-align: center;
  font-size: 14px;
  font-weight: 600;
  color: var(--yy-text);
  user-select: none;
}
.yy-bk-month__nav {
  border: none;
  background: transparent;
  cursor: pointer;
  color: var(--yy-text-secondary);
  font-size: 12px;
  padding: 0 6px;
  line-height: 32px;
  height: 32px;
}
.yy-bk-month__nav:hover {
  color: var(--yy-primary);
}
.yy-bk-bar__spacer {
  flex: 1;
}
/* 图例 + 本月汇总 */
.yy-bk-legend {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
  padding: 0 4px;
}
.yy-bk-legend__item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--yy-text-secondary);
}
.yy-bk-legend__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  display: inline-block;
}
.yy-bk-legend__summary {
  margin-left: auto;
  font-size: 12px;
  color: var(--yy-text-secondary);
}
/* ------------------------------ 主体：左日历 右侧栏 ------------------------------ */
.yy-bk-main {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}
.yy-bk-cal {
  flex: 1;
  min-width: 0;
  background: var(--yy-bg-card);
  border: 1px solid var(--yy-border);
  border-radius: 12px;
  overflow: hidden;
}
.yy-bk-cal__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 18px 10px;
}
.yy-bk-cal__title {
  font-size: 15px;
  font-weight: 600;
  color: var(--yy-text);
}
.yy-bk-cal__tip {
  font-size: 12px;
  color: var(--yy-text-light);
}
.yy-bk-week,
.yy-bk-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
}
.yy-bk-week {
  border-top: 1px solid var(--yy-border);
  border-bottom: 1px solid var(--yy-border);
  background: #fbf8f5;
}
.yy-bk-week__cell {
  padding: 8px 0;
  text-align: center;
  font-size: 12px;
  color: var(--yy-text-secondary);
}
.yy-bk-cell {
  /* 固定高度保证月历网格整齐：预约多时在格内滚动（见 .yy-bk-cell__chips） */
  height: 104px;
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--yy-border);
  border-left: 1px solid var(--yy-border);
  padding: 6px 8px 8px;
  cursor: pointer;
  position: relative;
  transition: background 0.15s ease;
  overflow: hidden;
}
.yy-bk-grid > .yy-bk-cell:nth-child(7n + 1) {
  border-left: none;
}
.yy-bk-cell:hover {
  background: #fdfaf7;
}
.yy-bk-cell--out {
  background: #fbf9f7;
}
.yy-bk-cell--out:hover {
  background: #f8f5f2;
}
.yy-bk-cell--sel,
.yy-bk-cell--sel:hover {
  background: var(--yy-primary-light);
}
.yy-bk-cell__day {
  font-size: 13px;
  color: var(--yy-text);
  line-height: 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.yy-bk-cell--out .yy-bk-cell__day {
  color: var(--yy-text-light);
}
.yy-bk-cell__badge {
  display: inline-block;
  min-width: 20px;
  height: 20px;
  line-height: 20px;
  text-align: center;
  border-radius: 10px;
  font-size: 12px;
}
.yy-bk-cell--today .yy-bk-cell__badge {
  background: var(--yy-primary);
  color: #fff;
  font-weight: 600;
}
.yy-bk-cell--sel .yy-bk-cell__day {
  color: var(--yy-primary-active);
  font-weight: 600;
}
/* 格内预约小块滚动容器：超过格子高度时可用鼠标上下滚动查看全部预约 */
.yy-bk-cell__chips {
  flex: 1;
  min-height: 0;
  margin-top: 2px;
  overflow-y: auto;
  overflow-x: hidden;
  scrollbar-width: thin;
}
.yy-bk-cell__chips::-webkit-scrollbar {
  width: 4px;
}
.yy-bk-cell__chips::-webkit-scrollbar-thumb {
  background: rgba(74, 56, 44, 0.22);
  border-radius: 2px;
}
.yy-bk-cell__chips::-webkit-scrollbar-track {
  background: transparent;
}
.yy-bk-chip {
  display: block;
  width: 100%;
  text-align: left;
  border: none;
  border-left: 3px solid transparent;
  border-radius: 4px;
  font-size: 11px;
  line-height: 18px;
  padding: 0 5px;
  margin-top: 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  cursor: pointer;
  font-weight: 500;
}
.yy-bk-chip__time {
  font-weight: 600;
}
/* 体验卡标记：预约条目上的小「体」字（中性深色底，与 6 种状态色都能区分） */
.yy-bk-exp {
  display: inline-block;
  min-width: 14px;
  height: 14px;
  line-height: 14px;
  padding: 0 2px;
  margin-right: 4px;
  border-radius: 3px;
  background: var(--yy-text);
  color: #fff;
  font-size: 10px;
  font-style: normal;
  font-weight: 500;
  text-align: center;
  vertical-align: middle;
  flex: none;
}
/* ------------------ 预约小块点击后的操作浮层（转成交 / 取消） ------------------ */
.yy-bk-pop {
  position: absolute;
  z-index: 30;
  width: 208px;
  background: var(--yy-bg-card);
  border: 1px solid var(--yy-border);
  border-radius: 10px;
  box-shadow: 0 8px 24px rgba(74, 56, 44, 0.18);
  padding: 10px 12px;
  user-select: none;
}
.yy-bk-pop__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.yy-bk-pop__time {
  font-size: 14px;
  font-weight: 600;
  color: var(--yy-text);
}
.yy-bk-pop__tag {
  font-size: 11px;
  line-height: 18px;
  padding: 0 7px;
  border-radius: 9px;
  white-space: nowrap;
}
.yy-bk-pop__name {
  margin-top: 4px;
  font-size: 13px;
  color: var(--yy-text);
}
.yy-bk-pop__sub {
  margin-top: 2px;
  font-size: 12px;
  color: var(--yy-text-secondary);
  line-height: 18px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.yy-bk-pop__btns {
  margin-top: 10px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.yy-bk-pop__done {
  font-size: 12px;
  color: var(--yy-text-light);
}
.yy-bk-cal__empty {
  padding: 28px 0;
  text-align: center;
  color: var(--yy-text-light);
  font-size: 13px;
}
/* ------------------------------ 当日明细侧栏 ------------------------------ */
.yy-bk-side {
  flex: 0 0 324px;
  width: 324px;
  background: var(--yy-bg-card);
  border: 1px solid var(--yy-border);
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  max-height: 706px;
}
.yy-bk-side__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  border-bottom: 1px solid var(--yy-border);
}
.yy-bk-side__date {
  font-size: 14px;
  font-weight: 600;
  color: var(--yy-text);
}
.yy-bk-side__count {
  font-size: 12px;
  color: var(--yy-text-secondary);
}
.yy-bk-side__body {
  flex: 1;
  overflow-y: auto;
  padding: 12px;
}
.yy-bk-item {
  border: 1px solid var(--yy-border);
  border-left-width: 3px;
  border-left-style: solid;
  border-radius: 8px;
  padding: 10px 12px;
  margin-bottom: 10px;
  cursor: pointer;
  transition: box-shadow 0.15s ease, border-color 0.15s ease;
}
.yy-bk-item:hover {
  box-shadow: 0 2px 8px rgba(74, 56, 44, 0.1);
}
/* 选中态：点左侧预约小块或点右侧卡片都会进入（与左侧选中联动） */
.yy-bk-item--sel,
.yy-bk-item--sel:hover {
  border-color: var(--yy-primary);
  box-shadow: 0 2px 10px rgba(74, 56, 44, 0.14);
}
.yy-bk-item__btns {
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px dashed var(--yy-border);
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}
.yy-bk-item:last-child {
  margin-bottom: 0;
}
.yy-bk-item__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.yy-bk-item__time {
  font-size: 13px;
  font-weight: 600;
  color: var(--yy-text);
}
.yy-bk-item__tag {
  font-size: 11px;
  line-height: 18px;
  padding: 0 7px;
  border-radius: 9px;
  white-space: nowrap;
}
.yy-bk-item__main {
  margin-top: 6px;
  font-size: 13px;
  color: var(--yy-text);
  line-height: 20px;
}
.yy-bk-item__sub {
  margin-top: 4px;
  font-size: 12px;
  color: var(--yy-text-secondary);
  line-height: 18px;
}
.yy-bk-side__foot {
  border-top: 1px solid var(--yy-border);
  padding: 10px 16px;
  text-align: center;
  font-size: 12px;
}
.yy-bk-side__foot a {
  color: var(--yy-primary);
}
.yy-bk-side__empty {
  padding: 60px 0;
  text-align: center;
  color: var(--yy-text-light);
  font-size: 13px;
}
/* 列表视图下承载「月视图 / 列表视图」切换的细条 */
.yy-bk-listbar {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 12px;
}
@media (max-width: 1360px) {
  .yy-bk-side {
    flex: 0 0 288px;
    width: 288px;
  }
}
/* 待耗卡「已约满」提示：卡剩余次数已被待服务预约占满，不允许重复预约 */
.yy-bk-card-warn {
  margin-top: 6px;
  padding: 4px 10px;
  color: #a8501f;
  font-size: 12px;
  line-height: 18px;
  background: #fdf1e6;
  border-radius: 4px;
}

/* =============================================================================
 * 归位商家管理系统 · 商品管理 / 商品查看
 * ========================================================================== */
/* 列表里的商品单元格：缩略图 + 名称 */
.yy-cell-product {
  display: flex;
  align-items: center;
  gap: 10px;
}
.yy-cell-product__img {
  width: 42px;
  height: 42px;
  border-radius: 6px;
  object-fit: cover;
  flex: 0 0 42px;
  border: 1px solid var(--yy-border);
}
.yy-cell-product__img--empty {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--yy-text-light);
  background: #fbf8f5;
  font-size: 16px;
}
.yy-cell-product__main {
  min-width: 0;
}
/* ------------------------------ 商品查看抽屉 ------------------------------ */
.yy-product-view__hero {
  display: flex;
  gap: 16px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--yy-border);
}
.yy-product-view__hero img,
.yy-product-view__hero-empty {
  width: 120px;
  height: 120px;
  border-radius: 10px;
  object-fit: cover;
  flex: 0 0 120px;
  border: 1px solid var(--yy-border);
}
.yy-product-view__hero-empty {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--yy-text-light);
  background: #fbf8f5;
  font-size: 28px;
}
.yy-product-view__hero-main {
  flex: 1;
  min-width: 0;
}
.yy-product-view__name {
  color: var(--yy-text);
  font-size: 18px;
  font-weight: 600;
}
.yy-product-view__price {
  margin-top: 6px;
  color: var(--yy-primary);
  font-size: 24px;
  font-weight: 600;
}
.yy-product-view__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 10px;
}
.yy-product-view__intro {
  color: var(--yy-text);
  font-size: 13px;
  line-height: 22px;
  white-space: pre-wrap;
}
.yy-product-view__gallery {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.yy-product-view__gallery img {
  width: 108px;
  height: 108px;
  border-radius: 8px;
  object-fit: cover;
  border: 1px solid var(--yy-border);
}

/* =============================================================================
 * 归位商家管理系统 · 权限管理（角色 / 菜单）
 * ========================================================================== */
/* 授权菜单弹窗里的树 */
.yy-grant-tree {
  max-height: 420px;
  padding: 8px 4px;
  overflow: auto;
  border: 1px solid var(--yy-border);
  border-radius: 8px;
}
.yy-grant-tree .ant-tree-node-content-wrapper {
  font-size: 13px;
}
/* 菜单管理里的行内图标 */
.yy-menu-icon {
  margin-right: 6px;
  color: var(--yy-primary);
}
/* 自建过滤条（菜单管理用树表，不复用 TableView 的分页与工具条） */
.yy-page__filter {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  margin-bottom: 12px;
  background: #fff;
  border-radius: 8px;
}
.yy-page__field {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.yy-page__label {
  color: var(--yy-text-secondary);
  font-size: 13px;
}
.yy-page__toolbar {
  display: flex;
  align-items: center;
  margin-bottom: 12px;
}
.yy-page__toolbar > button + button {
  margin-left: 8px;
}

/* =============================================================================
 * 归位商家管理系统 · 门店管理
 * ========================================================================== */
.yy-cell-store {
  display: flex;
  align-items: center;
  gap: 10px;
}
.yy-cell-store__logo {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  object-fit: cover;
  flex: 0 0 40px;
  border: 1px solid var(--yy-border);
}
.yy-cell-store__logo--empty {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--yy-primary);
  background: var(--yy-primary-light);
  font-size: 18px;
}

/* =============================================================================
 * 归位商家管理系统 · 报表（我的业绩 / 数据统计）
 * ========================================================================== */
/* 报表顶部工具条 */
.yy-report-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  margin-bottom: 14px;
  background: #fff;
  border-radius: 8px;
}
.yy-report-bar__label {
  color: var(--yy-text-secondary);
  font-size: 13px;
}
/* 指标卡一行 */
.yy-stat-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-bottom: 14px;
}
/* 图表两列布局 */
.yy-report-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: 14px;
}
@media (max-width: 1280px) {
  .yy-report-grid {
    grid-template-columns: 1fr;
  }
  .yy-stat-row {
    grid-template-columns: repeat(2, 1fr);
  }
}
/* 顶部视角切换 */
.yy-mode-bar {
  display: flex;
  align-items: center;
  margin-bottom: 14px;
}
/* 绩效榜排名 */
.yy-rank {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  color: var(--yy-text-secondary);
  font-size: 12px;
  border-radius: 50%;
  background: #f4efe9;
}
.yy-rank--top {
  color: #fff;
  background: var(--yy-primary);
}
/* 绩效金额强调 */
.yy-perf-amount {
  color: var(--yy-primary);
  font-weight: 600;
}

