:root {
    --el-color-primary: #3B82F6;
    --el-color-primary-light-3: #74A9F9;
    --el-color-primary-light-5: #A9C8FB;
    --el-color-primary-light-7: #CBDDFD;
    --el-color-primary-light-8: #DEEAFE;
    --el-color-primary-light-9: #EFF6FF;
    --el-color-primary-dark-2: #2563EB;
    --el-border-radius-base: 4px;
    --el-border-radius-small: 4px;
    --el-font-size-base: 14px;
    --el-text-color-primary: #1F2937;
    --el-text-color-regular: #4B5563;
    --el-border-color: #E5E7EB;
    --el-border-color-light: #EEF0F3;
    --el-fill-color-blank: #FFFFFF;
    --yj-bg: #F5F7FA;
    --yj-card: #FFFFFF;
    --yj-text: #1F2937;
    --yj-sub: #6B7280;
    --yj-muted: #9CA3AF;
    --yj-line: #E5E7EB;
    --yj-primary: #3B82F6;
    --yj-ink: #0F172A;
}

html, body {
    margin: 0;
    padding: 0;
    background: var(--yj-bg);
    color: var(--yj-text);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
    -webkit-font-smoothing: antialiased;
}

* { box-sizing: border-box; }
button { font-family: inherit; }
a { color: var(--yj-primary); text-decoration: none; }

#app { min-height: 100vh; }

/* ---------- boot ---------- */
.boot-screen {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 18px;
    background: radial-gradient(900px 480px at 50% 12%, #E7EFFF 0%, #F5F7FA 60%);
}
.boot-mark, .login-mark {
    width: 48px; height: 48px; border-radius: 12px;
    background: linear-gradient(145deg, #3B82F6, #2563EB);
    color: #fff; font-size: 22px; font-weight: 700;
    display: flex; align-items: center; justify-content: center;
    box-shadow: 0 10px 24px rgba(37, 99, 235, .28);
    overflow: hidden;
}
.boot-mark img, .login-mark img { width: 100%; height: 100%; object-fit: cover; }
.boot-text { color: var(--yj-sub); font-size: 14px; letter-spacing: .04em; }

/* ---------- login ---------- */
.login-wrap {
    min-height: 100vh;
    display: grid;
    grid-template-columns: 1.05fr 1fr;
    background: #fff;
}
.login-aside {
    position: relative;
    padding: 56px 64px;
    color: #fff;
    display: flex;
    flex-direction: column;
    background:
        radial-gradient(760px 520px at 8% 8%, rgba(96, 165, 250, .55), transparent 62%),
        radial-gradient(600px 500px at 92% 92%, rgba(37, 99, 235, .55), transparent 60%),
        linear-gradient(150deg, #0B1220 0%, #101B31 52%, #0E1A2E 100%);
    overflow: hidden;
}
.login-aside::after {
    content: "";
    position: absolute; inset: 0;
    background-image: linear-gradient(rgba(255,255,255,.05) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.05) 1px, transparent 1px);
    background-size: 56px 56px;
    mask-image: radial-gradient(600px 460px at 30% 30%, #000 20%, transparent 80%);
    pointer-events: none;
}
.login-brand { display: flex; align-items: center; gap: 14px; position: relative; z-index: 1; }
.login-brand b { display: block; font-size: 19px; letter-spacing: .06em; }
.login-brand i { display: block; font-size: 10px; letter-spacing: .3em; color: rgba(255,255,255,.55); font-style: normal; margin-top: 4px; }
.login-copy { margin: auto 0; position: relative; z-index: 1; max-width: 480px; }
.login-copy h1 { font-size: 44px; line-height: 1.25; margin: 0 0 22px; font-weight: 600; letter-spacing: .01em; }
.login-copy p { color: rgba(255,255,255,.62); font-size: 15px; line-height: 1.9; margin: 0 0 34px; }
.login-points { display: flex; flex-direction: column; gap: 14px; }
.login-points span { display: flex; align-items: center; gap: 12px; color: rgba(255,255,255,.8); font-size: 14px; }
.login-points i { width: 6px; height: 6px; border-radius: 50%; background: #60A5FA; box-shadow: 0 0 0 4px rgba(96,165,250,.16); }
.login-foot { position: relative; z-index: 1; color: rgba(255,255,255,.35); font-size: 12px; letter-spacing: .06em; }
.login-main { display: flex; align-items: center; justify-content: center; padding: 40px 24px; background: #fff; }
.login-card { width: 100%; max-width: 360px; }
.login-card h2 { margin: 0 0 8px; font-size: 26px; font-weight: 600; color: var(--yj-ink); }
.login-sub { margin: 0 0 26px; color: var(--yj-muted); font-size: 13px; }
.login-alert { margin-bottom: 16px; }
.login-error { color: #EF4444; font-size: 13px; margin: -4px 0 12px; }
.login-btn { width: 100%; height: 46px; font-size: 15px; letter-spacing: .3em; margin-top: 6px; }
.login-tip { margin-top: 22px; color: var(--yj-muted); font-size: 12px; text-align: center; }

/* ---------- layout ---------- */
.layout { display: flex; height: 100vh; overflow: hidden; background: var(--yj-bg); }
.sidebar {
    width: 236px; flex: 0 0 236px;
    background: #fff;
    border-right: 1px solid var(--yj-line);
    display: flex; flex-direction: column;
    position: sticky; top: 0; height: 100vh;
    z-index: 20;
}
.brand { display: flex; align-items: center; gap: 12px; padding: 22px 22px 18px; }
.brand-mark {
    width: 38px; height: 38px; border-radius: 10px;
    background: linear-gradient(145deg, #3B82F6, #2563EB);
    color: #fff; font-size: 18px; font-weight: 700;
    display: flex; align-items: center; justify-content: center;
    box-shadow: 0 8px 18px rgba(37, 99, 235, .24);
}
.brand-text b { display: block; font-size: 15px; letter-spacing: .08em; color: var(--yj-ink); }
.brand-text i { display: block; font-size: 10px; font-style: normal; color: var(--yj-muted); letter-spacing: .18em; margin-top: 3px; }
.nav-scroll { flex: 1; overflow-y: auto; padding: 6px 12px 18px; }
.nav-scroll::-webkit-scrollbar { width: 4px; }
.nav-scroll::-webkit-scrollbar-thumb { background: #E5E7EB; border-radius: 4px; }
.nav-group { margin-bottom: 14px; }
.sidebar .nav-group { margin-bottom: 12px; }
.nav-label {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
    border: 0;
    background: none;
    cursor: pointer;
    font: inherit;
    font-size: 12px;
    font-weight: 700;
    color: #344054;
    letter-spacing: .06em;
    padding: 8px 10px 6px;
    border-radius: 8px;
    text-align: left;
}
.nav-label:hover { color: #1F2329; background: #F6F8FB; }
/* PC 侧边栏：大类标题加粗深色、菜单项右移，形成层级区分 */
.sidebar .nav-label { font-size: 14px; font-weight:200; color: #1F2329; letter-spacing: .06em; padding: 10px 12px 4px; background: none; }
.sidebar .nav-label:hover { background: none; color: #000; }
.sidebar .nav-label-icon { font-size: 15px; color: #6B7280; }
.sidebar .nav-item { padding-left: 28px; }
.nav-label-icon { font-size: 15px; color: #8A94A6; }
.nav-label-text { flex: 1; }
.nav-caret { font-size: 13px; color: #98A2B3; transition: transform .18s; }
.nav-caret.closed { transform: rotate(-90deg); }
.nav-items { overflow: hidden; }
.nav-item {
    width: 100%;
    display: flex; align-items: center; gap: 10px;
    padding: 10px 12px; margin-bottom: 2px;
    border: 0; border-radius: 6px;
    background: transparent; color: #4B5563;
    font-size: 13.5px; text-align: left; cursor: pointer;
    transition: background .15s, color .15s;
    position: relative;
}
.nav-item .el-icon { font-size: 17px; color: #8A94A6; transition: color .15s; }
.nav-item:hover { background: #F6F8FB; color: var(--yj-ink); }
.nav-item.active { background: #EFF6FF; color: #2563EB; font-weight: 600; }
.nav-item.active .el-icon { color: #2563EB; }
.nav-item.active::before {
    content: ""; position: absolute; left: -12px; top: 50%; transform: translateY(-50%);
    width: 3px; height: 18px; border-radius: 0 3px 3px 0; background: #3B82F6;
}
.side-foot { padding: 14px 22px; border-top: 1px solid var(--yj-line); font-size: 11.5px; color: var(--yj-muted); display: flex; align-items: center; gap: 8px; }
.side-foot .dot { width: 6px; height: 6px; border-radius: 50%; background: #10B981; box-shadow: 0 0 0 3px rgba(16,185,129,.15); }
.main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.topbar {
    height: 64px; flex: 0 0 64px;
    background: rgba(255,255,255,.92);
    backdrop-filter: saturate(180%) blur(10px);
    border-bottom: 1px solid var(--yj-line);
    display: flex; align-items: center; gap: 16px;
    padding: 0 24px;
    position: sticky; top: 0; z-index: 15;
}
.burger { display: none; border: 1px solid var(--yj-line); background: #fff; border-radius: 6px; width: 34px; height: 34px; align-items: center; justify-content: center; cursor: pointer; color: #4B5563; }
.crumb { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--yj-muted); min-width: 0; }
.crumb strong { color: var(--yj-ink); font-weight: 600; font-size: 14px; }
.crumb .el-icon { font-size: 12px; }
.top-actions { margin-left: auto; display: flex; align-items: center; gap: 12px; }
.store-select { width: 168px; }
.store-scope { width: 168px; }
.store-scope-single {
    display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 10px;
    border-radius: 8px; background: #F6F8FB; color: var(--yj-ink); font-size: 13px;
}
.brand-mark { overflow: hidden; }
.brand-mark img { width: 100%; height: 100%; object-fit: cover; }
.brand-mini { font-size: 14px; font-weight: 600; color: var(--yj-ink); letter-spacing: .06em; line-height: 1; }
.nav-toggle {
    margin-left: auto; width: 26px; height: 26px; padding: 0; flex: 0 0 26px;
    border: 1px solid var(--yj-line); border-radius: 8px; background: #fff; color: var(--yj-muted);
    display: flex; align-items: center; justify-content: center; cursor: pointer;
}
.nav-toggle:hover { color: #2563EB; border-color: #BFDBFE; background: #EFF6FF; }
.sidebar { transition: width .18s ease, flex-basis .18s ease; }
.sidebar.collapsed { width: 72px; flex: 0 0 72px; }
.sidebar.collapsed .brand { flex-direction: column; gap: 8px; padding: 16px 8px 12px; }
.sidebar.collapsed .brand-mark { width: 34px; height: 34px; font-size: 16px; }
.sidebar.collapsed .nav-toggle { margin-left: 0; }
.sidebar.collapsed .nav-scroll { padding: 4px 8px 14px; }
.sidebar.collapsed .nav-label { justify-content: center; padding: 6px 0; }
.sidebar.collapsed .nav-label-icon { font-size: 15px; }
.sidebar.collapsed .nav-label-text,
.sidebar.collapsed .nav-caret { display: none; }
.sidebar.collapsed .nav-group { margin-bottom: 8px; padding-top: 8px; border-top: 1px solid var(--yj-line); }
.sidebar.collapsed .nav-group:first-child { border-top: 0; padding-top: 0; }
.sidebar.collapsed .nav-item { justify-content: center; padding: 10px 0; }
.sidebar.collapsed .nav-text { display: none; }
.sidebar.collapsed .side-foot { justify-content: center; padding: 12px 0; }
.sidebar.collapsed .foot-text { display: none; }
.user-chip { display: flex; align-items: center; gap: 9px; cursor: pointer; padding: 4px 6px 4px 4px; border-radius: 8px; transition: background .15s; }
.user-chip:hover { background: #F5F7FA; }
.avatar {
    width: 32px; height: 32px; border-radius: 50%;
    background: linear-gradient(145deg, #DBEAFE, #BFDBFE);
    color: #1D4ED8; font-size: 13px; font-weight: 600;
    display: flex; align-items: center; justify-content: center;
}
.user-meta b { display: block; font-size: 13px; color: var(--yj-ink); font-weight: 600; line-height: 1.2; }
.user-meta i { display: block; font-size: 11px; color: var(--yj-muted); font-style: normal; margin-top: 2px; }
.user-chip .chev { font-size: 12px; color: #9CA3AF; }
.content { flex: 1; padding: 24px; min-width: 0; overflow-y: auto; }

/* ---------- page skeleton ---------- */
.page { display: flex; flex-direction: column; gap: 16px; animation: pageIn .22s ease; }
/* 表格页使用 fill：页面高度锁定在视口内，只有表格内部滚动 */
.page.fill { height: 100%; min-height: 0; }
@keyframes pageIn { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.page-head h2 { margin: 0; font-size: 20px; font-weight: 600; color: var(--yj-ink); letter-spacing: .01em; }
.page-head .desc { margin: 6px 0 0; color: var(--yj-muted); font-size: 12.5px; line-height: 1.6; }
.page-head .actions { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.panel {
    background: var(--yj-card);
    border: 1px solid var(--yj-line);
    border-radius: 8px;
    padding: 18px 20px;
    min-width: 0;
}
.panel-title { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.panel-title h3 { margin: 0; font-size: 14.5px; font-weight: 600; color: var(--yj-ink); white-space: nowrap; }
.panel-title .hint { color: var(--yj-muted); font-size: 12px; }
.panel.flush { padding: 0; overflow: hidden; }
.panel.flush .panel-title { padding: 16px 20px 0; }
.panel.fill { flex: 1; min-height: 0; display: flex; flex-direction: column; }
.panel.fill .table-scroll { flex: 1; min-height: 200px; }
.panel.fill .el-tabs { flex: 1; min-height: 0; display: flex; flex-direction: column; }
.panel.fill .el-tabs__content { flex: 1; min-height: 0; }
.panel.fill .el-tab-pane { height: 100%; display: flex; flex-direction: column; }
.panel.fill .matrix-wrap { flex: 1; min-height: 0; overflow: auto; }
.table-scroll { min-width: 0; }
.table-foot { flex: 0 0 auto; display: flex; justify-content: flex-end; padding-top: 12px; }
.page.fill > .split { flex: 1; min-height: 0; }
.page.fill .split > .panel { min-height: 0; }
.page.fill .split > .panel:first-child { overflow: auto; }
.filter-bar { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.filter-bar .grow { flex: 1; }
.muted { color: var(--yj-muted); }
.mono { font-family: "Consolas", "Menlo", monospace; font-size: 12.5px; }
/* 长小数坐标单行省略，完整值通过 title 查看 */
.coord-cell span { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.num { font-variant-numeric: tabular-nums; }
.tag-dot { display: inline-flex; align-items: center; gap: 6px; }
.tag-dot i { width: 6px; height: 6px; border-radius: 50%; }

/* ---------- stats ---------- */
.stat-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.stat-card {
    background: #fff; border: 1px solid var(--yj-line); border-radius: 8px;
    padding: 18px 20px; position: relative; overflow: hidden;
    transition: border-color .15s, box-shadow .15s;
}
.stat-card:hover { border-color: #DBE3EE; box-shadow: 0 6px 18px rgba(15, 23, 42, .04); }
.stat-card .stat-head { display: flex; align-items: center; justify-content: space-between; color: var(--yj-sub); font-size: 12.5px; }
.stat-card .stat-val { margin-top: 12px; font-size: 28px; font-weight: 600; color: var(--yj-ink); line-height: 1; font-variant-numeric: tabular-nums; }
.stat-card .stat-val small { font-size: 13px; font-weight: 500; color: var(--yj-muted); margin-left: 4px; }
.stat-card .stat-sub { margin-top: 10px; font-size: 12px; color: var(--yj-muted); }
.stat-ico { width: 32px; height: 32px; border-radius: 8px; display: flex; align-items: center; justify-content: center; font-size: 17px; background: #EFF6FF; color: #2563EB; }
.stat-ico.green { background: #ECFDF5; color: #059669; }
.stat-ico.amber { background: #FFFBEB; color: #D97706; }
.stat-ico.red { background: #FEF2F2; color: #DC2626; }
.stat-ico.violet { background: #F5F3FF; color: #7C3AED; }
.stat-ico.slate { background: #F1F5F9; color: #475569; }
.stat-card.accent { background: linear-gradient(140deg, #0F172A, #16233D); border-color: #16233D; }
.stat-card.accent .stat-head, .stat-card.accent .stat-sub { color: rgba(255,255,255,.58); }
.stat-card.accent .stat-val { color: #fff; }

/* ---------- workflow overview ---------- */
.wf-overview { padding-bottom: 14px; margin-bottom: 4px; border-bottom: 1px solid #F1F4F8; }
.wf-overview-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; margin-bottom: 10px; }
.wf-overview-head h3 { font-size: 14px; color: var(--yj-ink); }
.wf-overview-head p { margin-top: 3px; font-size: 12px; color: var(--yj-muted); }
.wf-overview-sum { display: flex; align-items: baseline; gap: 16px; flex-wrap: wrap; }
.wf-sum-item { font-size: 12px; color: var(--yj-sub); white-space: nowrap; }
.wf-sum-item b { margin-right: 5px; font-size: 18px; font-weight: 600; color: var(--yj-ink); font-variant-numeric: tabular-nums; }
.wf-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 12px; }
.wf-card {
    position: relative; min-width: 0; text-align: left; font: inherit; color: inherit; cursor: pointer;
    background: #fff; border: 1px solid var(--yj-line); border-radius: 8px; padding: 13px 14px;
    transition: border-color .15s, box-shadow .15s;
}
.wf-card:hover { border-color: #C9D6E8; box-shadow: 0 6px 18px rgba(15, 23, 42, .05); }
.wf-card-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.wf-badge {
    min-width: 24px; height: 24px; padding: 0 7px; border-radius: 12px;
    display: inline-flex; align-items: center; justify-content: center;
    background: #EFF6FF; color: #2563EB; font-size: 12.5px; font-weight: 600; font-variant-numeric: tabular-nums;
}
.wf-badge.zero { background: #F1F5F9; color: #94A3B8; font-weight: 500; }
.wf-card-name { margin-top: 9px; font-size: 14px; font-weight: 600; color: var(--yj-ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wf-card-remark { margin-top: 5px; min-height: 17px; font-size: 12px; line-height: 1.45; color: var(--yj-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wf-card-foot {
    margin-top: 10px; padding-top: 9px; border-top: 1px dashed #EEF2F7;
    display: flex; align-items: center; justify-content: space-between; gap: 8px;
    font-size: 11.5px; color: var(--yj-muted); white-space: nowrap;
}
.wf-mode { color: var(--yj-sub); overflow: hidden; text-overflow: ellipsis; }
.wf-off { color: #B45309; }
.wf-overview-page { flex: 1; min-height: 0; overflow: auto; margin-bottom: 0; padding-bottom: 4px; border-bottom: none; }
.wf-stage { flex: 1; min-height: 0; display: flex; flex-direction: column; }
.wf-stage-head {
    display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap;
    padding-bottom: 12px; margin-bottom: 14px; border-bottom: 1px solid #F1F4F8;
}
.wf-stage-head > div { min-width: 0; }
.wf-stage-head b { font-size: 14px; color: var(--yj-ink); margin-right: 8px; }
.wf-stage-head .muted { font-size: 12px; color: var(--yj-muted); }

/* ---------- queue board ---------- */
.q-stats { display: flex; gap: 8px; flex-wrap: wrap; }
.q-chip {
    display: inline-flex; align-items: center; gap: 7px;
    padding: 7px 12px; border-radius: 20px;
    background: #fff; border: 1px solid var(--yj-line);
    font-size: 12.5px; color: var(--yj-sub);
}
.q-chip b { color: var(--yj-ink); font-size: 14px; font-variant-numeric: tabular-nums; }
.q-chip i { width: 6px; height: 6px; border-radius: 50%; }
.staff-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.staff-card { background: #fff; border: 1px solid var(--yj-line); border-radius: 8px; display: flex; flex-direction: column; min-width: 0; overflow: hidden; }
.staff-card.off { opacity: .72; }
.staff-head { padding: 16px 18px 12px; display: flex; align-items: flex-start; gap: 10px; border-bottom: 1px solid #F1F4F8; }
.staff-avatar {
    width: 38px; height: 38px; border-radius: 10px; flex: 0 0 38px;
    background: #F1F5F9; color: #334155; font-size: 15px; font-weight: 600;
    display: flex; align-items: center; justify-content: center; overflow: hidden;
}
.staff-avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }
.avatar-upload-box {
    width: 72px; height: 72px; border: 1px dashed #CBD5E1; border-radius: 10px;
    display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px;
    color: #94A3B8; font-size: 12px; background: #F8FAFC; cursor: pointer; overflow: hidden;
}
.avatar-upload-box:hover { border-color: var(--yj-brand, #3B82F6); color: var(--yj-brand, #3B82F6); }
.avatar-upload-box img { width: 100%; height: 100%; object-fit: cover; display: block; }
.avatar-edit { display: flex; align-items: center; gap: 14px; margin-bottom: 16px; }
.staff-head .who { flex: 1; min-width: 0; }
.staff-head .who b { display: block; font-size: 14.5px; color: var(--yj-ink); }
.staff-head .who span { display: block; color: var(--yj-muted); font-size: 12px; margin-top: 3px; }
.staff-head .who .lv { display: inline-block; margin-left: 6px; padding: 0 6px; border-radius: 3px; background: #F1F5F9; color: #64748B; font-size: 10.5px; line-height: 17px; vertical-align: 1px; }
.staff-head .head-actions { display: flex; align-items: center; gap: 4px; }
.staff-metrics { display: grid; grid-template-columns: repeat(3, 1fr); border-bottom: 1px solid #F1F4F8; }
.staff-metrics div { padding: 10px 8px; text-align: center; }
.staff-metrics div + div { border-left: 1px solid #F1F4F8; }
.staff-metrics b { display: block; font-size: 17px; color: var(--yj-ink); font-variant-numeric: tabular-nums; }
.staff-metrics span { display: block; font-size: 11px; color: var(--yj-muted); margin-top: 3px; }
.staff-body { padding: 12px 14px 14px; flex: 1; display: flex; flex-direction: column; gap: 8px; }
.current-ticket { border: 1px solid #E7EDF6; background: #FAFCFF; border-radius: 6px; padding: 10px 12px; }
.current-ticket .row1 { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.ticket-no { font-family: "Consolas", "Menlo", monospace; font-weight: 700; font-size: 16px; color: #1E3A8A; letter-spacing: .04em; }
.current-ticket .cust { font-size: 12.5px; color: #4B5563; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.current-ticket .meta { margin-top: 6px; font-size: 11.5px; color: var(--yj-muted); display: flex; gap: 10px; flex-wrap: wrap; }
.current-ticket .btns { margin-top: 10px; display: flex; gap: 6px; flex-wrap: wrap; }
.wait-list { display: flex; flex-direction: column; gap: 6px; }
.wait-row { display: flex; align-items: center; gap: 8px; padding: 7px 8px; border-radius: 6px; border: 1px solid transparent; cursor: pointer; transition: background .12s; }
.wait-row:hover { background: #F7F9FC; }
.wait-row .no { font-family: "Consolas", "Menlo", monospace; font-size: 12.5px; color: #334155; width: 44px; }
.wait-row .nm { flex: 1; min-width: 0; font-size: 12px; color: #6B7280; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wait-row .tm { font-size: 11.5px; color: #94A3B8; font-variant-numeric: tabular-nums; }
.staff-empty { padding: 18px 10px; text-align: center; color: var(--yj-muted); font-size: 12px; }
.sub-block { border-top: 1px dashed #EDF0F5; padding-top: 10px; }
.sub-block-title { font-size: 11.5px; color: var(--yj-muted); letter-spacing: .06em; margin-bottom: 6px; display: flex; justify-content: space-between; align-items: center; }
.tail-line { display: flex; align-items: center; gap: 8px; padding: 6px 4px; font-size: 12px; color: #4B5563; }
.tail-line .no { font-family: "Consolas", monospace; font-weight: 600; color: #334155; width: 42px; }
.tail-line .grow { flex: 1; min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }

/* ---------- tables / cells ---------- */
.cell-main { font-weight: 500; color: var(--yj-ink); }
.cell-sub { color: var(--yj-muted); font-size: 11.5px; margin-top: 2px; }
.att-legend { display: flex; flex-wrap: wrap; align-items: center; gap: 18px; margin: 0 0 12px; color: var(--yj-muted); font-size: 12px; }
.att-legend span { display: inline-flex; align-items: center; }
.att-legend i { width: 14px; height: 14px; border-radius: 4px; background: #F5F7FA; display: inline-block; margin-right: 6px; }
.att-legend i.on { background: #409EFF; }
.att-legend i.future { background: #EBEEF5; }
.att-legend .hint { margin-left: auto; color: #A8ABB2; }
.att-photo { width: 36px; height: 36px; border-radius: 6px; cursor: pointer; vertical-align: middle; }
.att-cell { width: 20px; height: 18px; margin: 0 auto; border-radius: 3px; background: #F5F7FA; }
.att-cell.is-on { background: #409EFF; color: #fff; }
.att-cell.is-future { background: #EBEEF5; color: #C0C4CC; }
.att-cell.is-today { box-shadow: inset 0 0 0 1px #337ECC; }
/* 表单项内的说明文字独占一行，避免与开关等非 100% 宽控件并排 */
.el-form-item__content > .cell-sub { flex: 0 0 100%; }
.switch-state { font-size: 12px; color: var(--yj-muted); margin-left: 10px; }
.cell-actions { display: flex; gap: 2px; flex-wrap: wrap; }
.tag-row { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.price { font-variant-numeric: tabular-nums; color: var(--yj-ink); }
.price.big { font-size: 16px; font-weight: 600; }
.empty-pad { padding: 40px 0; }
.split { display: grid; grid-template-columns: 280px minmax(0, 1fr); gap: 16px; align-items: start; }
.side-list { display: flex; flex-direction: column; gap: 2px; }
.side-list button { display: flex; align-items: center; justify-content: space-between; gap: 8px; width: 100%; padding: 9px 12px; border: 0; background: transparent; border-radius: 6px; color: #4B5563; font-size: 13px; cursor: pointer; text-align: left; }
.side-list button:hover { background: #F7F9FC; }
.side-list button.active { background: #EFF6FF; color: #2563EB; font-weight: 600; }
.side-list button .cnt { color: var(--yj-muted); font-size: 11px; font-weight: 400; }
.matrix-wrap { overflow: auto; scrollbar-width: thin; scrollbar-color: #B8C2D0 #F1F4F8; }
.matrix-wrap::-webkit-scrollbar { width: 12px; height: 12px; }
.matrix-wrap::-webkit-scrollbar-track { background: #F1F4F8; border-radius: 6px; }
.matrix-wrap::-webkit-scrollbar-thumb { background: #B8C2D0; border-radius: 6px; border: 2px solid #F1F4F8; }
.matrix-wrap::-webkit-scrollbar-thumb:hover { background: #94A3B8; }
.matrix { border-collapse: separate; border-spacing: 0; width: max-content; min-width: 100%; }
.matrix th, .matrix td { padding: 10px 12px; border-bottom: 1px solid #F1F4F8; text-align: left; font-size: 12.5px; vertical-align: middle; }
.matrix th { background: #FAFBFD; color: #64748B; font-weight: 500; white-space: nowrap; font-size: 12px; }
.matrix th .col-hint { margin-top: 3px; color: #94A3B8; font-size: 10.5px; font-weight: 400; }
.matrix th:first-child { position: sticky; left: 0; z-index: 2; background: #FAFBFD; }
.matrix td:first-child { position: sticky; left: 0; background: #fff; z-index: 1; border-right: 1px solid #F1F4F8; }
.matrix tr:hover td { background: #FAFCFF; }
.matrix tr:hover td:first-child { background: #FAFCFF; }
.matrix .cell-price { font-variant-numeric: tabular-nums; cursor: pointer; padding: 4px 6px; border-radius: 4px; display: inline-block; white-space: nowrap; }
.matrix .cell-price:hover { background: #EFF6FF; color: #2563EB; }
.matrix .cell-price.empty { color: #C0C6D0; cursor: default; }
.matrix .cell-price.empty:hover { background: transparent; color: #C0C6D0; }
.matrix .cell-price .vip { display: block; color: #64748B; font-size: 11px; margin-top: 2px; }
.matrix .cell-price.off { color: #B6BCC7; }
.matrix .lock-ico { color: #D97706; font-size: 11px; margin-left: 3px; }
.item-check-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.item-check { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border: 1px solid var(--yj-line); border-radius: 6px; cursor: pointer; transition: border-color .15s, background .15s; }
.item-check:hover { border-color: #BFDBFE; background: #F8FBFF; }
.item-check.on { border-color: #BFDBFE; background: #F2F7FF; }
.item-check .nm { flex: 1; min-width: 0; }
.item-check .nm b { display: block; font-size: 13px; color: var(--yj-ink); font-weight: 500; }
.item-check .nm span { display: block; font-size: 11.5px; color: var(--yj-muted); margin-top: 2px; }
.item-check.locked { cursor: default; background: #FAFBFD; border-color: #EEF2F7; }
.item-picker { display: flex; height: 270px; border: 1px solid var(--yj-line); border-radius: 8px; overflow: hidden; }
.item-cats { width: 156px; flex: none; padding: 6px; overflow-y: auto; background: #F8FAFC; border-right: 1px solid var(--yj-line); }
.item-cat { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 8px 10px; border-radius: 6px; font-size: 13px; color: #475569; cursor: pointer; }
.item-cat:hover { background: #EEF2F7; }
.item-cat.on { background: #E8F0FF; color: #1D4ED8; font-weight: 600; }
.item-cat span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.item-cat em { flex: none; font-style: normal; font-size: 11px; color: #94A3B8; }
.item-items { flex: 1; min-width: 0; padding: 8px; overflow-y: auto; display: flex; flex-direction: column; gap: 6px; }
.item-check.locked:hover { border-color: #EEF2F7; background: #FAFBFD; }
.item-check.locked.on { border-color: #C7D2FE; background: #F5F7FF; }
.settle-bar { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; padding: 10px 12px; margin-bottom: 10px; background: #F8FAFC; border: 1px solid #EEF2F7; border-radius: 8px; }
.settle-bar .settle-label { font-size: 12px; color: var(--yj-muted); flex: 0 0 auto; }
.settle-pick { margin-bottom: 10px; padding: 10px 12px; border: 1px dashed #DBEAFE; border-radius: 8px; background: #FBFCFF; }

/* ---------- cashier ---------- */
.cashier-bar { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 0 0 12px; margin: 0 0 12px; border-bottom: 1px solid var(--yj-line); }
.cashier-store { display: inline-flex; align-items: center; gap: 6px; padding: 0 12px 0 2px; font-size: 13px; font-weight: 600; color: var(--yj-ink); white-space: nowrap; }
.cash-summary { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-left: auto; font-size: 12px; color: var(--yj-muted); }
.cash-summary b { color: var(--yj-ink); font-weight: 600; font-variant-numeric: tabular-nums; }
.cash-summary .vip { color: #B45309; }
.cash-tabs > .el-tabs__header { margin-bottom: 14px; }
.cashier-grid { display: grid; grid-template-columns: minmax(0,1fr) minmax(360px,420px); gap: 14px; align-items: start; }
.cashier-grid > .panel { margin: 0; }
.cashier-pick { min-width: 0; padding: 14px 16px; }
.cashier-pick-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 2px 0 12px; }
.cashier-pick-head h3 { margin: 0; font-size: 14.5px; font-weight: 600; color: var(--yj-ink); }
.cashier-pick .filter-bar { margin-bottom: 12px; }
.cashier-pick .cash-cats { margin-bottom: 12px; }
.cashier-items { display: grid; grid-template-columns: repeat(auto-fill, minmax(168px, 1fr)); gap: 10px; }
.cash-card { padding: 12px 14px; border: 1px solid var(--yj-line); border-radius: 10px; background: #fff; cursor: pointer; transition: border-color .15s, box-shadow .15s; box-shadow: 0 1px 2px rgba(15,23,42,.05); }
.cash-card:hover { border-color: #BFDBFE; box-shadow: 0 4px 12px rgba(15,23,42,.07); }
.cash-card.on { border-color: #93C5FD; background: #F2F7FF; box-shadow: 0 3px 10px rgba(59,130,246,.09); }
.cash-card .nm { font-size: 13px; font-weight: 500; color: var(--yj-ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cash-card .meta { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; margin-top: 4px; }
.cash-card .meta .price { font-size: 14px; font-weight: 600; color: #DC2626; }
.cash-card .meta .vip { font-size: 11px; color: #B45309; }
.cash-card .sub { margin-top: 3px; font-size: 11px; color: var(--yj-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cash-cats { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.cash-cats button { border: 1px solid var(--yj-line); background: #fff; color: #475569; font-size: 12px; padding: 5px 10px; border-radius: 999px; cursor: pointer; transition: all .15s; }
.cash-cats button:hover { border-color: #BFDBFE; color: #2563EB; }
.cash-cats button.on { border-color: #93C5FD; background: #E8F0FF; color: #1D4ED8; font-weight: 600; }
.cash-checkout { position: sticky; top: 0; }
.cash-item-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; padding: 9px 12px; background: #F8FAFC; border: 1px solid #EEF2F7; border-radius: 8px; }
.cash-item-head b { font-size: 13.5px; color: var(--yj-ink); }
.cash-price { font-size: 17px; font-weight: 600; color: #DC2626; font-variant-numeric: tabular-nums; white-space: nowrap; }
.cash-walkin { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 10px; }
.cash-amounts { margin: 12px 0 4px; padding: 8px 12px; background: #FBFCFE; border: 1px solid #F0F3F8; border-radius: 8px; }
.cash-result { margin-top: 12px; padding: 10px 12px; border: 1px solid #BBF7D0; border-radius: 8px; background: #F0FDF4; color: #166534; font-size: 12px; line-height: 1.7; }
.cash-result b { font-size: 13px; }
.cash-result.err { border-color: #FECACA; background: #FEF2F2; color: #B91C1C; }
.cash-plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 8px; }
.cash-plan { padding: 12px 14px; border: 1px solid var(--yj-line); border-radius: 10px; background: #fff; cursor: pointer; transition: border-color .15s, box-shadow .15s; box-shadow: 0 1px 2px rgba(15,23,42,.05); }
.cash-plan:hover { border-color: #BFDBFE; box-shadow: 0 4px 12px rgba(15,23,42,.07); }
.cash-plan.on { border-color: #93C5FD; background: #F2F7FF; box-shadow: 0 3px 10px rgba(59,130,246,.09); }
.cash-plan .nm { font-size: 13px; color: var(--yj-ink); font-weight: 500; }
.cash-plan .price { margin-top: 6px; font-size: 18px; font-weight: 600; color: #DC2626; font-variant-numeric: tabular-nums; }
.cash-plan .sub { margin-top: 4px; font-size: 11px; color: var(--yj-muted); }
.cash-plan-sum { margin-bottom: 4px; padding: 8px 12px; background: #F8FAFC; border: 1px solid #EEF2F7; border-radius: 8px; }
.cash-plan-sum > div { display: flex; justify-content: space-between; gap: 12px; padding: 4px 0; font-size: 12.5px; color: var(--yj-muted); }
.cash-plan-sum b { color: var(--yj-ink); font-weight: 500; text-align: right; }
.cash-plan-sum b.price { color: #DC2626; font-weight: 600; }
.cashier-hint { font-size: 11.5px; color: var(--yj-muted); }
.cash-member { margin-bottom: 10px; padding: 9px 11px; border: 1px solid #EEF2F7; border-radius: 8px; background: #FBFCFE; }
.cash-member-head { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; }
.cash-member-head .section-label { margin: 0; }
.cash-member-walkin { font-size: 11.5px; color: var(--yj-muted); }
.cash-member-locked { padding: 7px 10px; border: 1px dashed #DBEAFE; border-radius: 6px; background: #F8FBFF; font-size: 12px; color: #3B6FB6; }
.cash-member-hint { margin-top: 6px; font-size: 11.5px; color: var(--yj-muted); }
.cash-member-phone { font-size: 12px; color: var(--yj-text); font-variant-numeric: tabular-nums; }
.cash-member-no { font-size: 12px; color: var(--yj-muted); font-variant-numeric: tabular-nums; }
.cash-member-results { margin-top: 6px; max-height: 224px; overflow-y: auto; border: 1px solid #EEF2F7; border-radius: 8px; background: #fff; }
.cash-member-item { display: flex; align-items: center; justify-content: space-between; gap: 10px; width: 100%; padding: 8px 11px; border: 0; background: transparent; text-align: left; cursor: pointer; font-size: 12.5px; color: var(--yj-text); }
.cash-member-item + .cash-member-item { border-top: 1px solid #F3F6FA; }
.cash-member-item:hover { background: #F5F9FF; }
.cash-member-item .nm { font-weight: 600; }
.cash-member-item .meta { font-size: 11.5px; color: var(--yj-muted); }
.cash-member-assets { margin-left: 0; width: 100%; gap: 8px 14px; margin-top: 6px; }
.cash-pays { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.cash-pay { border: 1px solid var(--yj-line); border-radius: 6px; background: #fff; padding: 6px 12px; font-size: 12px; color: #475569; cursor: pointer; }
.cash-pay.on { border-color: #FCA5A5; background: #FEF2F2; color: #B91C1C; font-weight: 600; }
.cash-pay.off { border-style: dashed; color: #A8B3C2; background: #FBFCFE; cursor: not-allowed; }
.cash-pay-note { margin-left: auto; font-size: 11px; color: #A8B3C2; white-space: nowrap; }
.cash-checkout .section-label { margin: 12px 0 8px; }
.cash-pay-btn.el-button { background: #DC2626; border-color: #DC2626; }
.cash-pay-btn.el-button:hover, .cash-pay-btn.el-button:focus { background: #B91C1C; border-color: #B91C1C; }
.cash-order-no { margin-top: 8px; font-size: 11.5px; color: var(--yj-muted); }
.cash-staff-note { margin-bottom: 10px; font-size: 11.5px; color: var(--yj-muted); }
/* 手机端结算悬浮按钮：桌面隐藏，≤900px 显示。 */
.cash-fab { display: none; }
/* 扫码支付等待层（模拟）：金额 + 二维码占位 + 支付倒计时。 */
.cash-scan { padding: 2px 0 4px; text-align: center; }
.cash-scan-amount { font-size: 28px; font-weight: 700; color: #DC2626; line-height: 1.2; }
.cash-scan-title { margin-top: 4px; font-size: 13px; color: var(--yj-muted); }
.cash-scan-qr { width: 132px; height: 132px; margin: 16px auto; display: flex; align-items: center; justify-content: center; border: 1px dashed #E5E7EB; border-radius: 12px; background: #FAFAFA; color: #9CA3AF; }
.cash-scan-qr img { width: 100%; height: 100%; object-fit: contain; }
.cash-scan-wait { display: flex; align-items: center; justify-content: center; gap: 6px; font-size: 14px; color: #374151; }
.cash-scan-dot { width: 8px; height: 8px; border-radius: 50%; background: #22C55E; animation: cashScanPulse 1s infinite; }
.cash-scan-remain { margin-top: 8px; font-size: 12px; color: var(--yj-muted); }
@keyframes cashScanPulse { 0%, 100% { opacity: 1; } 50% { opacity: .25; } }
.settle-orders { display: flex; flex-direction: column; gap: 8px; max-height: 620px; overflow-y: auto; padding-right: 2px; }
.settle-order { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 12px; border: 1px solid var(--yj-line); border-radius: 10px; background: #fff; cursor: pointer; box-shadow: 0 1px 2px rgba(15,23,42,.05); transition: border-color .15s, box-shadow .15s; }
.settle-order:hover { border-color: #BFDBFE; box-shadow: 0 4px 12px rgba(15,23,42,.07); }
.settle-order.on { border-color: #93C5FD; background: #F2F7FF; box-shadow: 0 3px 10px rgba(59,130,246,.09); }
.settle-order-main { min-width: 0; }
.settle-order-main .nm { font-size: 13px; font-weight: 500; color: var(--yj-ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.settle-order-main .sub { margin-top: 3px; font-size: 11px; color: var(--yj-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.settle-order-side { display: flex; flex-direction: column; align-items: flex-end; gap: 5px; flex: none; }
.settle-order-side .price { font-size: 15px; font-weight: 600; color: #DC2626; font-variant-numeric: tabular-nums; }
.settle-tag { padding: 1px 8px; border-radius: 999px; background: #F1F5F9; font-size: 10.5px; color: #94A3B8; }
.settle-tag.member { background: #ECFDF5; color: #047857; }

/* ---------- role permission ---------- */
.role-item { padding: 12px 14px; border: 1px solid var(--yj-line); border-radius: 8px; margin-bottom: 8px; cursor: pointer; transition: border-color .15s, background .15s; }
.role-item:hover { border-color: #BFDBFE; }
.role-item.active { border-color: #93C5FD; background: #F5F9FF; box-shadow: 0 4px 14px rgba(59,130,246,.08); }
.role-item .top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.role-item .top b { font-size: 13.5px; color: var(--yj-ink); }
.role-item .meta { margin-top: 6px; font-size: 11.5px; color: var(--yj-muted); display: flex; gap: 10px; flex-wrap: wrap; }
.perm-module { border: 1px solid #EDF0F5; border-radius: 8px; padding: 12px 14px; margin-bottom: 10px; }
.perm-module-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 8px; }
.perm-module-head b { font-size: 13px; color: var(--yj-ink); }
.perm-module-head .code { color: var(--yj-muted); font-size: 11px; font-family: "Consolas", monospace; }
.perm-module .el-checkbox { margin-right: 18px; }
.perm-all { font-size: 12px; color: var(--yj-muted); }
.legend { display: flex; gap: 14px; flex-wrap: wrap; font-size: 11.5px; color: var(--yj-muted); }
.legend span { display: inline-flex; align-items: center; gap: 5px; }
.legend i { width: 8px; height: 8px; border-radius: 2px; }

/* ---------- charts ---------- */
.bar-chart { display: flex; align-items: flex-end; gap: 6px; height: 170px; padding-top: 10px; }
.bar-chart .bar { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 6px; min-width: 0; height: 100%; justify-content: flex-end; }
.bar-chart .bar i { width: 100%; max-width: 34px; background: linear-gradient(180deg, #93C5FD, #3B82F6); border-radius: 3px 3px 0 0; min-height: 2px; transition: height .25s; }
.bar-chart .bar span { font-size: 10px; color: var(--yj-muted); }
.bar-chart .bar em { font-size: 10.5px; font-style: normal; color: #64748B; }
.mini-bar { height: 6px; border-radius: 3px; background: #EFF2F7; overflow: hidden; }
.mini-bar i { display: block; height: 100%; border-radius: 3px; background: linear-gradient(90deg, #60A5FA, #3B82F6); }
.dist-row { display: grid; grid-template-columns: 86px minmax(0,1fr) 48px; align-items: center; gap: 10px; font-size: 12px; color: #4B5563; margin-bottom: 9px; }
.dist-row .val { text-align: right; color: var(--yj-ink); font-variant-numeric: tabular-nums; }

/* ---------- drawers ---------- */
.detail-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; padding-bottom: 14px; border-bottom: 1px solid #F1F4F8; margin-bottom: 14px; }
.detail-head h3 { margin: 0; font-size: 18px; color: var(--yj-ink); font-weight: 600; }
.detail-head p { margin: 5px 0 0; font-size: 12px; color: var(--yj-muted); }
.kv { display: grid; grid-template-columns: 92px minmax(0,1fr); gap: 9px 12px; font-size: 12.5px; }
.kv dt { color: var(--yj-muted); }
.kv dd { margin: 0; color: var(--yj-ink); word-break: break-all; }
.kv.kv-two { grid-template-columns: 82px minmax(0,1fr) 82px minmax(0,1fr); }
.section-label { font-size: 11.5px; color: var(--yj-muted); letter-spacing: .08em; margin: 18px 0 10px; }
.timeline-row { display: flex; gap: 10px; padding: 8px 0; border-bottom: 1px dashed #F1F4F8; font-size: 12px; }
.timeline-row:last-child { border-bottom: 0; }
.timeline-row .t { color: var(--yj-muted); width: 108px; flex: 0 0 108px; font-variant-numeric: tabular-nums; }
.timeline-row .d { color: #4B5563; flex: 1; }
.timeline-row .o { color: #9CA3AF; }
.amount-line { display: flex; justify-content: space-between; padding: 4px 0; font-size: 13px; color: #4B5563; }
.amount-line.total { border-top: 1px solid #F1F4F8; margin-top: 8px; padding-top: 10px; font-weight: 600; color: var(--yj-ink); font-size: 15px; }
.amount-line.total em { font-style: normal; color: #DC2626; }
.pay-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.pay-grid > div { padding: 10px 12px; background: #F8FAFC; border: 1px solid #EEF2F7; border-radius: 8px; min-width: 0; }
.pay-grid > div > span { display: block; font-size: 11.5px; color: var(--yj-muted); }
.pay-grid b { display: block; margin-top: 4px; font-size: 13px; color: var(--yj-ink); font-weight: 600; word-break: break-all; }
.rel-row { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px dashed #F1F4F8; font-size: 12px; }
.rel-row:last-child { border-bottom: 0; }
.rel-row .rel-main { flex: 1; min-width: 0; }
.rel-row .rel-main .d { display: block; color: var(--yj-ink); }
.rel-row .rel-main .o { display: block; margin-top: 3px; color: #9CA3AF; }
.rel-row.clickable, .rel-inline.clickable, .timeline-row.clickable { cursor: pointer; }
.rel-inline { display: inline-flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.rel-go { color: #2563EB; font-size: 12px; white-space: nowrap; }

/* ---------- audit / settings ---------- */
.audit-pre { margin: 0; padding: 14px 16px; background: #F8FAFC; border: 1px solid #EEF2F7; border-radius: 8px; font-family: "Consolas", "Menlo", monospace; font-size: 12px; line-height: 1.7; color: #334155; white-space: pre-wrap; word-break: break-all; max-height: 420px; overflow: auto; }
.detail-text { color: var(--yj-muted); font-size: 12px; word-break: break-all; }
.settings-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; align-items: start; }
.settings-grid .panel { margin: 0; }
.settings-wide { grid-column: 1 / -1; }
.brand-profile { display: flex; align-items: flex-start; gap: 20px; }
.brand-profile .avatar-uploader { flex: 0 0 88px; }
.brand-profile .avatar-upload-box { width: 88px; height: 88px; }
.brand-profile-main { flex: 1; min-width: 0; max-width: 560px; }
.brand-profile-main .el-form-item { margin-bottom: 4px; }
.brand-logo-tip { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 2px; font-size: 11.5px; color: var(--yj-muted); }
.brand-logo-tip span { min-width: 0; }
.settings-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
.settings-pair .el-form-item { margin-bottom: 14px; }
.theme-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; width: 100%; }
.theme-card { display: block; width: 100%; padding: 12px 14px 13px; text-align: left; background: #FFFFFF; border: 1px solid #E5E9F0; border-radius: 10px; cursor: pointer; transition: border-color .15s, box-shadow .15s; font: inherit; }
.theme-card:hover:not(:disabled) { border-color: #C7D2E0; }
.theme-card.is-on { border-color: #2563EB; box-shadow: 0 0 0 2px rgba(37, 99, 235, .12); }
.theme-card:disabled { cursor: not-allowed; opacity: .7; }
.theme-swatch { display: flex; gap: 4px; margin-bottom: 10px; }
.theme-swatch i { display: block; width: 22px; height: 22px; border-radius: 6px; border: 1px solid rgba(15, 23, 42, .08); }
.theme-card b { display: block; font-size: 13.5px; color: var(--yj-ink); font-weight: 600; }
.theme-card small { display: block; margin-top: 4px; font-size: 11.5px; line-height: 1.5; color: var(--yj-muted); }
@media (max-width: 720px) { .theme-grid { grid-template-columns: 1fr; } }
.rule-preview { padding: 10px 14px; background: #F0F7FF; border: 1px solid #DBEAFE; border-radius: 8px; font-size: 12.5px; color: #475569; line-height: 1.6; }
.rule-preview b { color: #1D4ED8; font-weight: 600; }
.settings-summary { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.settings-summary > div { padding: 12px 14px; background: #F8FAFC; border: 1px solid #EEF2F7; border-radius: 8px; }
.settings-summary span { display: block; font-size: 11.5px; color: var(--yj-muted); }
.settings-summary b { display: block; margin-top: 5px; font-size: 13px; color: var(--yj-ink); font-weight: 600; }
.member-stat { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; padding: 14px 0 4px; }
.member-stat > div { padding: 10px 12px; background: #F8FAFC; border: 1px solid #EEF2F7; border-radius: 8px; }
.member-stat span { display: block; font-size: 11.5px; color: var(--yj-muted); }
.member-stat b { display: block; margin-top: 5px; font-size: 15px; color: var(--yj-ink); font-weight: 600; font-variant-numeric: tabular-nums; }
.discount-row { display: flex; align-items: center; gap: 12px; padding: 8px 4px; border-bottom: 1px dashed #F1F4F8; font-size: 13px; }
.reset-pwd { padding: 14px; background: #F8FAFC; border: 1px dashed #CBD5E1; border-radius: 8px; font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 20px; font-weight: 600; letter-spacing: .08em; text-align: center; color: var(--yj-ink); user-select: all; }
.discount-row:last-child { border-bottom: 0; }
.discount-row > span:first-child { flex: 1; min-width: 0; color: var(--yj-ink); }
.field-row { display: flex; align-items: center; gap: 8px; padding: 6px 0; flex-wrap: wrap; }
.review-imgs { display: flex; gap: 8px; flex-wrap: wrap; }
.photo-grid { display: flex; gap: 8px; flex-wrap: wrap; }
.photo-item { position: relative; width: 76px; height: 76px; border-radius: 6px; overflow: hidden; border: 1px solid var(--yj-line); background: #F8FAFC; }
.photo-item img { width: 100%; height: 100%; object-fit: cover; display: block; }
.photo-del { position: absolute; top: 2px; right: 2px; width: 18px; height: 18px; border-radius: 50%; background: rgba(15,23,42,.62); color: #fff; font-style: normal; font-size: 12px; line-height: 18px; text-align: center; cursor: pointer; }
.photo-add { width: 76px; height: 76px; border: 1px dashed #CBD5E1; border-radius: 6px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; color: #94A3B8; font-size: 11px; cursor: pointer; background: #FAFBFD; }
.photo-add:hover { border-color: #93C5FD; color: #3B82F6; }
.rate-line { display: flex; align-items: center; gap: 10px; }
.rate-text { margin: 8px 0 0; font-size: 12.5px; color: #4B5563; line-height: 1.7; background: #F8FAFC; border: 1px solid #EEF2F7; border-radius: 6px; padding: 8px 12px; }
.svc-count { margin-left: 8px; font-size: 11.5px; color: #94A3B8; font-weight: 400; }
.svc-list { display: flex; flex-direction: column; gap: 10px; }
.svc-item { padding: 10px 12px; background: #F8FAFC; border: 1px solid #EEF2F7; border-radius: 8px; }
.svc-head { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.svc-head .t { font-size: 11.5px; color: #94A3B8; font-variant-numeric: tabular-nums; }
.svc-head .o { font-size: 12.5px; color: var(--yj-ink); font-weight: 600; }
.svc-meta { margin-top: 3px; font-size: 11.5px; color: #9CA3AF; }
.svc-item .rate-text { margin-top: 6px; background: #fff; }
.svc-item .photo-grid { margin-top: 8px; }

/* ---------- appointment calendar ---------- */
.calendar-layout { flex: 1; min-height: 0; display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 16px; }
.cal-panel { display: flex; flex-direction: column; min-height: 0; padding: 16px 18px; }
.cal-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 10px; }
.cal-month b { font-size: 16px; color: var(--yj-ink); }
.cal-month span { margin-left: 8px; font-size: 12px; color: var(--yj-muted); }
.cal-nav { display: flex; align-items: center; gap: 6px; }
.cal-week { display: grid; grid-template-columns: repeat(7, 1fr); gap: 8px; padding: 0 2px 8px; text-align: center; font-size: 12px; color: var(--yj-muted); }
.cal-grid { flex: 1; min-height: 0; display: grid; grid-template-columns: repeat(7, 1fr); grid-template-rows: repeat(6, minmax(0, 1fr)); gap: 8px; }
.cal-cell {
    min-height: 0; border: 1px solid #EEF1F5; border-radius: 8px; background: #FCFDFE;
    padding: 7px 9px; display: flex; flex-direction: column; justify-content: space-between;
    cursor: pointer; overflow: hidden; transition: border-color .15s, background .15s, box-shadow .15s;
}
.cal-cell:hover { border-color: #BFDBFE; background: #F8FAFF; }
.cal-cell.other { background: #FAFBFD; }
.cal-cell.other .d { color: #B6BFCC; }
.cal-cell.today { border-color: #93C5FD; }
.cal-cell.sel { border-color: #2563EB; background: #EFF6FF; box-shadow: 0 0 0 1px #2563EB inset; }
.cal-top { display: flex; align-items: center; justify-content: space-between; gap: 4px; }
.cal-top .d { font-size: 13px; font-weight: 600; color: var(--yj-ink); font-variant-numeric: tabular-nums; }
.cal-today { font-size: 10px; line-height: 1; color: #2563EB; background: #DBEAFE; border-radius: 8px; padding: 3px 5px; }
.cal-count b { font-size: 19px; font-weight: 600; color: #1D4ED8; font-variant-numeric: tabular-nums; }
.cal-count small { margin-left: 2px; font-size: 11px; color: var(--yj-muted); }
.cal-count em { display: block; margin-top: 2px; font-style: normal; font-size: 11px; color: #D97706; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cal-zero { font-size: 12px; color: #D4DAE3; }
.day-panel { min-height: 0; display: flex; flex-direction: column; padding: 16px 0 0; }
.day-panel .panel-title { padding: 0 18px; margin-bottom: 8px; }
.day-list { flex: 1; min-height: 0; overflow: auto; padding: 0 10px 14px; }
.day-item { display: flex; gap: 10px; padding: 10px 8px; border-bottom: 1px solid #F1F4F8; cursor: pointer; border-radius: 6px; }
.day-item:hover { background: #F8FAFC; }
.day-time { flex: 0 0 46px; text-align: right; }
.day-time b { display: block; font-size: 13px; color: var(--yj-ink); font-variant-numeric: tabular-nums; }
.day-time span { font-size: 11px; color: var(--yj-muted); }
.day-main { flex: 1; min-width: 0; }
.day-line { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.day-line b { font-size: 12.5px; color: var(--yj-ink); }
.day-line .queue { font-size: 11px; color: var(--yj-muted); }
.day-sub { margin-top: 3px; font-size: 11.5px; color: var(--yj-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.day-pay { flex: 0 0 auto; display: flex; flex-direction: column; align-items: flex-end; justify-content: space-between; font-size: 11.5px; }
.day-pay .unpaid { color: #D97706; }
.day-pay .paid { color: #059669; }
.day-pay i { font-style: normal; font-size: 11px; color: #2563EB; }
.cal-empty { padding: 44px 10px; text-align: center; font-size: 12px; color: var(--yj-muted); }

/* ---------- monitor fullscreen dashboard ---------- */
body.monitor-screen-open { overflow: hidden; }
.monitor-dash {
    position: fixed; inset: 0; z-index: 2000; overflow: auto;
    display: grid; grid-template-rows: auto auto auto minmax(0, 1fr); gap: 12px;
    padding: 18px 22px 20px; color: #dbeafe;
    background:
        radial-gradient(1100px 620px at 8% -12%, rgba(34, 211, 238, .14), transparent 62%),
        radial-gradient(900px 560px at 102% -6%, rgba(59, 130, 246, .12), transparent 58%),
        linear-gradient(180deg, #071224 0%, #050b16 58%, #04090f 100%);
    font-variant-numeric: tabular-nums;
}
.dash-grid-bg {
    position: absolute; inset: 0; pointer-events: none; opacity: .75;
    background-image:
        linear-gradient(rgba(56, 189, 248, .05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(56, 189, 248, .05) 1px, transparent 1px);
    background-size: 44px 44px;
    -webkit-mask-image: radial-gradient(ellipse at 50% 0%, #000 34%, transparent 80%);
    mask-image: radial-gradient(ellipse at 50% 0%, #000 34%, transparent 80%);
}
.dash-head { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 2px 2px 12px; border-bottom: 1px solid rgba(56, 189, 248, .16); }
.dash-brand { display: flex; align-items: center; gap: 14px; min-width: 0; }
.dash-logo { position: relative; width: 44px; height: 44px; flex: 0 0 44px; display: grid; place-items: center; border-radius: 12px; background: linear-gradient(135deg, #67e8f9, #22d3ee 48%, #2563eb); color: #03111f; font-size: 22px; font-weight: 800; box-shadow: 0 0 30px rgba(34, 211, 238, .38); }
.dash-logo::after { content: ""; position: absolute; inset: -5px; border: 1px solid rgba(34, 211, 238, .32); border-radius: 16px; }
.dash-logo.has-img { overflow: hidden; background: rgba(255, 255, 255, .06); }
.dash-logo img { width: 100%; height: 100%; border-radius: 10px; object-fit: cover; display: block; }
.dash-heading { min-width: 0; }
.dash-heading h1 { font-size: 22px; font-weight: 600; letter-spacing: 2px; color: #f0f9ff; white-space: nowrap; }
.dash-heading p { display: flex; align-items: center; gap: 8px; margin-top: 4px; font-size: 11.5px; letter-spacing: .5px; color: #6f8ba8; white-space: nowrap; }
.dash-heading p b { color: #38bdf8; font-weight: 600; }
.dash-heading p i { width: 3px; height: 3px; flex: 0 0 3px; border-radius: 50%; background: #2b4a68; }
.dash-tools { display: flex; align-items: center; gap: 11px; flex: 0 0 auto; flex-wrap: nowrap; }
.dash-clock { padding-right: 14px; text-align: right; border-right: 1px solid rgba(56, 189, 248, .16); }
.dash-clock b { display: block; font-size: 24px; font-weight: 500; letter-spacing: 2px; color: #e0f2fe; line-height: 1.1; }
.dash-clock span { display: block; margin-top: 3px; font-size: 10px; letter-spacing: .5px; color: #5b7896; }
.dash-state-ico { display: inline-flex; align-items: center; justify-content: center; width: 34px; height: 34px; flex: 0 0 34px; border: 1px solid rgba(148, 163, 184, .22); border-radius: 8px; background: rgba(15, 34, 54, .5); color: #94a3b8; font-size: 17px; }
.dash-state-ico.live { border-color: rgba(52, 211, 153, .36); background: rgba(52, 211, 153, .1); color: #6ee7b7; }
.dash-state-ico.retry { border-color: rgba(251, 191, 36, .36); background: rgba(251, 191, 36, .1); color: #fcd34d; }
.dash-btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; height: 34px; padding: 0 13px; border-radius: 8px; border: 1px solid rgba(34, 211, 238, .32); background: linear-gradient(180deg, rgba(34, 211, 238, .18), rgba(34, 211, 238, .05)); color: #a5f3fc; font-size: 12px; cursor: pointer; transition: border-color .18s, box-shadow .18s, background .18s; }
.dash-btn:hover { border-color: rgba(34, 211, 238, .62); background: linear-gradient(180deg, rgba(34, 211, 238, .28), rgba(34, 211, 238, .08)); box-shadow: 0 0 18px rgba(34, 211, 238, .18); }
.dash-btn:disabled { opacity: .5; cursor: default; }
.dash-btn.ghost { border-color: rgba(148, 163, 184, .22); background: rgba(15, 34, 54, .5); color: #94a3b8; }
.dash-btn.ghost:hover { border-color: rgba(148, 163, 184, .44); box-shadow: none; }

.dash-kpis { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 11px; }
.dash-kpi { position: relative; overflow: hidden; padding: 13px 15px 12px; border: 1px solid rgba(56, 189, 248, .15); border-radius: 12px; background: linear-gradient(160deg, rgba(15, 38, 62, .9), rgba(8, 22, 38, .92)); box-shadow: inset 0 1px 0 rgba(148, 197, 255, .05); }
.dash-kpi::before { content: ""; position: absolute; right: -34px; top: -46px; width: 128px; height: 128px; border-radius: 50%; background: radial-gradient(circle, var(--kc), transparent 66%); opacity: .13; pointer-events: none; }
.dash-kpi::after { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: var(--kc); box-shadow: 0 0 18px var(--kc); }
.dash-kpi.c-cyan { --kc: #22d3ee; }
.dash-kpi.c-green { --kc: #34d399; }
.dash-kpi.c-blue { --kc: #60a5fa; }
.dash-kpi.c-violet { --kc: #a78bfa; }
.dash-kpi.c-amber { --kc: #fbbf24; }
.dash-kpi.c-rose { --kc: #fb7185; }
.k-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; font-size: 11.5px; letter-spacing: 1px; color: #7f9db9; }
.k-ico { width: 26px; height: 26px; flex: 0 0 26px; display: grid; place-items: center; border: 1px solid rgba(148, 197, 255, .1); border-radius: 7px; background: rgba(255, 255, 255, .04); color: var(--kc); font-size: 14px; }
.k-val { margin-top: 8px; font-size: clamp(22px, 2.15vw, 34px); font-weight: 600; line-height: 1.05; letter-spacing: .5px; color: #f0f9ff; white-space: nowrap; }
.k-val em { margin-right: 2px; font-style: normal; font-size: .58em; font-weight: 500; color: var(--kc); }
.k-val small { margin-left: 4px; font-size: .42em; font-weight: 400; color: #6f8ba8; }
.k-sub { margin-top: 7px; font-size: 10.5px; color: #5f7d9a; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.dash-mid { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); gap: 12px; min-height: 0; }
.dash-panel { position: relative; min-width: 0; overflow: hidden; padding: 14px 16px; border: 1px solid rgba(56, 189, 248, .15); border-radius: 12px; background: linear-gradient(160deg, rgba(12, 30, 50, .9), rgba(7, 19, 33, .93)); box-shadow: inset 0 1px 0 rgba(148, 197, 255, .04); }
.dash-panel::before, .dash-panel::after { content: ""; position: absolute; width: 14px; height: 14px; border-color: rgba(34, 211, 238, .5); border-style: solid; pointer-events: none; }
.dash-panel::before { left: -1px; top: -1px; border-width: 2px 0 0 2px; border-radius: 4px 0 0 0; }
.dash-panel::after { right: -1px; bottom: -1px; border-width: 0 2px 2px 0; border-radius: 0 0 4px 0; }
.dash-trend { display: flex; flex-direction: column; }
.p-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; min-width: 0; }
.p-head h3 { font-size: 14px; font-weight: 600; letter-spacing: 1px; color: #e2f3ff; white-space: nowrap; }
.p-head h3::before { content: ""; display: inline-block; width: 3px; height: 12px; margin-right: 8px; vertical-align: -1px; border-radius: 2px; background: #22d3ee; box-shadow: 0 0 10px #22d3ee; }
.p-head span { display: block; margin-top: 4px; font-size: 10.5px; letter-spacing: .4px; color: #5f7d9a; white-space: nowrap; }
.p-meta { flex: 0 0 auto; text-align: right; }
.p-meta b { display: block; font-size: 12px; font-weight: 600; letter-spacing: .5px; color: #67e8f9; white-space: nowrap; }
.p-meta span { display: block; margin-top: 4px; font-size: 10.5px; color: #5f7d9a; white-space: nowrap; }
.dash-chart { position: relative; flex: 1; min-height: 130px; margin-top: 12px; padding-top: 12px; padding-bottom: 18px; }
.chart-lines { position: absolute; inset: 12px 0 18px; display: flex; flex-direction: column; justify-content: space-between; pointer-events: none; }
.chart-lines i { display: block; border-top: 1px dashed rgba(56, 189, 248, .1); }
.chart-cols { position: absolute; inset: 12px 0 18px; display: flex; align-items: flex-end; gap: 3px; }
.chart-col { position: relative; flex: 1; min-width: 0; height: 100%; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; }
.chart-col i { width: 100%; max-width: 20px; min-height: 3px; border-radius: 4px 4px 1px 1px; background: linear-gradient(180deg, rgba(34, 211, 238, .95), rgba(37, 99, 235, .35)); box-shadow: 0 0 12px rgba(34, 211, 238, .16); transition: height .5s cubic-bezier(.2, .9, .3, 1); }
.chart-col.peak i { background: linear-gradient(180deg, #fde68a, #f59e0b); box-shadow: 0 0 16px rgba(251, 191, 36, .35); }
.chart-col.now i { background: linear-gradient(180deg, #5eead4, #0ea5e9); box-shadow: 0 0 18px rgba(94, 234, 212, .45); }
.chart-col span { position: absolute; bottom: -17px; font-size: 9.5px; color: #4e6c88; white-space: nowrap; }
.chart-col .bar-val { margin-bottom: 3px; font-size: 9px; font-weight: 500; color: #67e8f9; white-space: nowrap; }
.chart-col.peak .bar-val { color: #fcd34d; }
.p-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 8px; padding-top: 8px; border-top: 1px dashed rgba(56, 189, 248, .12); font-size: 10.5px; color: #4e6c88; }
.p-foot span { white-space: nowrap; }

.rank-list { display: flex; flex-direction: column; margin-top: 8px; }
.rank-row { display: flex; align-items: center; gap: 10px; min-width: 0; padding: 7px 0; border-bottom: 1px dashed rgba(56, 189, 248, .1); }
.rank-row:last-child { border-bottom: 0; }
.rk { width: 22px; height: 22px; flex: 0 0 22px; display: grid; place-items: center; border: 1px solid rgba(148, 197, 255, .1); border-radius: 6px; background: rgba(148, 197, 255, .06); color: #64809b; font-style: normal; font-size: 11px; font-weight: 700; }
.rk.n1 { border-color: transparent; background: linear-gradient(135deg, #fde68a, #f59e0b); color: #1a1200; box-shadow: 0 0 14px rgba(251, 191, 36, .35); }
.rk.n2 { border-color: transparent; background: linear-gradient(135deg, #e2e8f0, #94a3b8); color: #0b1520; }
.rk.n3 { border-color: transparent; background: linear-gradient(135deg, #fdba74, #c2410c); color: #1a0c02; }
.rk-main { flex: 1; min-width: 0; }
.rk-line { display: flex; justify-content: space-between; gap: 8px; font-size: 12px; }
.rk-line b { min-width: 0; font-weight: 500; color: #dbeeff; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rk-line span { flex: 0 0 auto; font-weight: 600; color: #67e8f9; }
.rk-bar { height: 4px; margin-top: 5px; overflow: hidden; border-radius: 99px; background: rgba(148, 197, 255, .08); }
.rk-bar i { display: block; height: 100%; border-radius: 99px; background: linear-gradient(90deg, #0891b2, #22d3ee, #67e8f9); box-shadow: 0 0 10px rgba(34, 211, 238, .35); transition: width .5s ease; }
.rk-sub { display: flex; justify-content: space-between; gap: 8px; margin-top: 4px; font-size: 10px; color: #57748f; white-space: nowrap; overflow: hidden; }
.rk-sub span:first-child { min-width: 0; overflow: hidden; text-overflow: ellipsis; }

.dash-stores { display: grid; grid-template-columns: 1fr; gap: 12px; min-height: 0; overflow: auto; align-content: start; }
.dash-stores[class*="cols-"] { grid-auto-rows: minmax(0, 1fr); }
.dash-stores.cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.dash-stores.cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.dash-stores.cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.dash-stores.cols-5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.dash-stores.cols-6 { grid-template-columns: repeat(6, minmax(0, 1fr)); }
.dash-store { display: flex; flex-direction: column; min-width: 0; overflow: hidden; border: 1px solid rgba(56, 189, 248, .15); border-radius: 12px; background: linear-gradient(160deg, rgba(12, 30, 50, .9), rgba(7, 19, 33, .93)); }
.dash-store.top-store { border-color: rgba(251, 191, 36, .42); box-shadow: 0 0 22px rgba(251, 191, 36, .1), inset 0 0 26px rgba(251, 191, 36, .04); }
.store-head { padding: 9px 12px; border-bottom: 1px solid rgba(56, 189, 248, .1); background: rgba(34, 211, 238, .03); }
.store-line { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; min-width: 0; }
.store-id { display: flex; align-items: center; gap: 7px; min-width: 0; }
.store-id i { width: 7px; height: 7px; flex: 0 0 7px; border-radius: 50%; background: #22d3ee; box-shadow: 0 0 10px #22d3ee; }
.store-id b { min-width: 0; font-size: 13px; font-weight: 600; color: #e2f3ff; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.store-rev { flex: 0 0 auto; font-size: 15px; font-weight: 600; color: #67e8f9; white-space: nowrap; }
.store-rev span { margin-left: 4px; font-size: 10px; font-weight: 400; color: #57748f; }
.store-sub { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 3px; font-size: 10px; color: #57748f; white-space: nowrap; }
.store-rank { flex: 0 0 auto; padding: 1px 6px; border: 1px solid rgba(148, 197, 255, .14); border-radius: 999px; color: #7d97b0; font-style: normal; font-size: 9px; line-height: 15px; }
.store-rank.top { border-color: rgba(251, 191, 36, .4); background: linear-gradient(135deg, rgba(251, 191, 36, .2), rgba(251, 191, 36, .07)); color: #fcd34d; box-shadow: 0 0 10px rgba(251, 191, 36, .16); }
.store-metrics { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-bottom: 1px solid rgba(56, 189, 248, .1); }
.store-metrics > div { min-width: 0; padding: 8px 2px; text-align: center; }
.store-metrics > div + div { border-left: 1px solid rgba(56, 189, 248, .08); }
.store-metrics b { display: block; font-size: 13px; font-weight: 600; color: #dbeafe; white-space: nowrap; }
.store-metrics b.serving { color: #fbbf24; }
.store-metrics b.waiting { color: #67e8f9; }
.store-metrics span { display: block; margin-top: 2px; font-size: 10px; color: #57748f; white-space: nowrap; }
.store-staff { flex: 1; min-height: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(78px, 1fr)); align-content: start; gap: 8px; padding: 9px 10px 11px; overflow-y: auto; scrollbar-width: thin; scrollbar-color: rgba(148, 197, 255, .18) transparent; }
.store-staff::-webkit-scrollbar { width: 4px; }
.store-staff::-webkit-scrollbar-thumb { border-radius: 99px; background: rgba(148, 197, 255, .18); }
.store-staff::-webkit-scrollbar-track { background: transparent; }
.store-empty { padding: 14px 10px; text-align: center; font-size: 10.5px; color: #4e6c88; }
/* 员工卡：居中竖排、圆形头像用背景图铺满裁切、状态角标悬浮头像右下角；列数由宽度自动决定 */
.dash-stores .store-staff .staff-card { position: relative; display: flex; flex-direction: column; align-items: center; min-width: 0; padding: 9px 4px 7px; gap: 5px; border: 1px solid rgba(148, 197, 255, .08); border-radius: 9px; background: rgba(148, 197, 255, .03); transition: border-color .2s, background .2s; }
.dash-stores .store-staff .staff-ava { width: 38px; height: 38px; flex: 0 0 38px; font-size: 13px; box-shadow: 0 2px 8px rgba(2, 15, 28, .45); }
.dash-stores .store-staff .staff-main { width: 100%; text-align: center; }
.dash-stores .store-staff .staff-top { justify-content: center; gap: 0; }
.dash-stores .store-staff .staff-top b { font-size: 11.5px; }
.dash-stores .store-staff .staff-top .staff-badge { display: none; }
.dash-stores .store-staff .staff-sub { margin-top: 1px; font-size: 9px; }
.dash-stores .store-staff .staff-badge-float { display: inline-block; position: absolute; right: -9px; bottom: -4px; padding: 1px 4px; border-radius: 6px; font-size: 8.5px; line-height: 13px; white-space: nowrap; background: #0a1a2c; border: 1px solid rgba(148, 197, 255, .22); box-shadow: 0 1px 4px rgba(2, 15, 28, .5); }
.dash-stores .store-staff .staff-badge-float.st0 { color: #9aa8b8; }
.dash-stores .store-staff .staff-badge-float.st1 { color: #6ee7b7; }
.dash-stores .store-staff .staff-badge-float.st2 { color: #fcd34d; }
.dash-stores .store-staff .staff-ping { top: -1px; right: -1px; bottom: auto; }
.cols-5 .store-head, .cols-6 .store-head { padding: 6px 9px; }
.cols-5 .store-id b, .cols-6 .store-id b { font-size: 12px; }
.cols-5 .store-rev, .cols-6 .store-rev { font-size: 13.5px; }
.cols-5 .store-metrics > div, .cols-6 .store-metrics > div { padding: 4px 1px; }
.cols-5 .store-metrics b, .cols-6 .store-metrics b { font-size: 12px; }
.cols-5 .store-metrics span, .cols-6 .store-metrics span { font-size: 9.5px; }
.dash-empty { display: flex; align-items: center; justify-content: center; min-height: 120px; font-size: 12px; letter-spacing: .5px; color: #4e6c88; }
.dash-stores > .dash-empty { grid-column: 1 / -1; }
.staff-card.st1 { border-color: rgba(52, 211, 153, .2); background: rgba(52, 211, 153, .05); }
.staff-card.st2 { border-color: rgba(251, 191, 36, .34); background: linear-gradient(135deg, rgba(251, 191, 36, .13), rgba(251, 191, 36, .04)); box-shadow: inset 0 0 18px rgba(251, 191, 36, .1); }
.staff-ava { position: relative; width: 32px; height: 32px; flex: 0 0 32px; display: grid; place-items: center; border: 1px solid rgba(34, 211, 238, .25); border-radius: 50%; background-color: rgba(34, 211, 238, .12); background-size: cover; background-position: center; background-repeat: no-repeat; color: #67e8f9; font-size: 12px; font-weight: 600; }
.staff-ping { position: absolute; right: -1px; bottom: -1px; width: 8px; height: 8px; border: 2px solid #0a1a2c; border-radius: 50%; background: #fbbf24; animation: dashPulseAmber 1.6s ease-out infinite; }
.staff-main { flex: 1; min-width: 0; }
.staff-top { display: flex; align-items: center; gap: 5px; min-width: 0; }
.staff-top b { min-width: 0; font-size: 11.5px; font-weight: 500; color: #dbeafe; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.staff-badge { flex: 0 0 auto; padding: 1px 5px; border-radius: 4px; font-size: 9px; line-height: 14px; white-space: nowrap; }
.staff-badge.st0 { background: rgba(148, 163, 184, .1); color: #7c8fa3; }
.staff-badge.st1 { background: rgba(52, 211, 153, .12); color: #6ee7b7; }
.staff-badge.st2 { background: rgba(251, 191, 36, .15); color: #fcd34d; }
.staff-sub { margin-top: 3px; font-size: 9.5px; color: #57748f; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.staff-sub.live { color: #d4a72c; }

@keyframes dashPulseGreen {
    0% { box-shadow: 0 0 0 0 rgba(52, 211, 153, .45); }
    70% { box-shadow: 0 0 0 7px rgba(52, 211, 153, 0); }
    100% { box-shadow: 0 0 0 0 rgba(52, 211, 153, 0); }
}
@keyframes dashPulseAmber {
    0% { box-shadow: 0 0 0 0 rgba(251, 191, 36, .5); }
    70% { box-shadow: 0 0 0 6px rgba(251, 191, 36, 0); }
    100% { box-shadow: 0 0 0 0 rgba(251, 191, 36, 0); }
}
@media (max-width: 1200px) {
    .dash-kpis { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .dash-mid { grid-template-columns: 1fr; }
    .dash-stores.cols-5, .dash-stores.cols-6 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .dash-stores[class*="cols-"] { grid-auto-rows: auto; }
    .dash-chart { height: 190px; flex: none; }
}
@media (max-width: 900px) {
    .monitor-dash { display: block; padding: 14px; }
    .monitor-dash > section, .monitor-dash > header { margin-bottom: 10px; }
    .dash-head { flex-wrap: nowrap; align-items: center; gap: 8px; }
    .dash-brand { min-width: 0; }
    .dash-heading { min-width: 0; }
    .dash-clock { display: none; }
    .dash-tools { flex-wrap: nowrap; gap: 8px; }
    .dash-heading h1 { font-size: 18px; letter-spacing: 1px; overflow: hidden; text-overflow: ellipsis; }
    .dash-heading p { font-size: 10px; }
    .dash-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .dash-chart { height: 170px; }
    .dash-stores.cols-3, .dash-stores.cols-4, .dash-stores.cols-5, .dash-stores.cols-6 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    /* 门店员工：手机端固定一行 4 个，圆形头像加大 */
    .dash-stores[class*="cols-"] .store-staff { grid-template-columns: repeat(4, minmax(0, 1fr)); }
    .dash-stores .store-staff .staff-card { padding: 10px 5px 8px; gap: 6px; border-radius: 10px; }
    .dash-stores .store-staff .staff-ava { width: 46px; height: 46px; flex: 0 0 46px; font-size: 15px; }
    .dash-stores .store-staff .staff-sub { font-size: 9.5px; }
}
@media (max-width: 560px) {
    .monitor-dash { padding: 12px; }
    .dash-logo { width: 38px; height: 38px; flex-basis: 38px; font-size: 18px; }
    .dash-heading h1 { font-size: 16px; }
    .dash-heading p span:last-child, .dash-heading p i:last-of-type { display: none; }
    .dash-btn { width: 34px; padding: 0; }
    .dash-btn span { display: none; }
    .k-val { font-size: 22px; }
    .dash-chart { height: 150px; }
    .dash-stores[class*="cols-"] { grid-template-columns: 1fr; }
    .dash-stores[class*="cols-"] .store-staff { grid-template-columns: repeat(4, minmax(0, 1fr)); }
    .dash-stores .store-staff .staff-ava { width: 42px; height: 42px; flex-basis: 42px; }
}

/* ---------- login responsive ---------- */
@media (max-width: 1100px) {
    .login-aside { padding: 40px; }
    .login-copy h1 { font-size: 34px; }
    .staff-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .stat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .mon-kpi { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .mon-strip { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .mon-split { grid-template-columns: 1fr; }
}
@media (max-width: 900px) {
    .login-wrap { grid-template-columns: 1fr; }
    .login-aside { display: none; }
    .login-main { min-height: 100vh; background: radial-gradient(800px 420px at 50% 0%, #EAF2FF, #fff 62%); }
    .sidebar { display: none; }
    .burger { display: flex; }
    .topbar { padding: 0 16px; height: 58px; flex: 0 0 58px; gap: 10px; }
    .nav-drawer .el-drawer__body { padding: 0; }
    .nav-drawer-body { height: 100%; display: flex; flex-direction: column; }
    .drawer-brand { flex: 0 0 auto; padding: 18px 16px 14px; border-bottom: 1px solid var(--yj-line); }
    .drawer-close {
        margin-left: auto; width: 30px; height: 30px; padding: 0;
        border: 1px solid var(--yj-line); border-radius: 8px; background: #fff; color: #6B7280;
        display: flex; align-items: center; justify-content: center; cursor: pointer;
    }
    .drawer-close:hover { color: #2563EB; border-color: #BFDBFE; background: #EFF6FF; }
    .nav-drawer .nav-scroll { padding: 8px 14px 20px; }
    .nav-drawer .nav-group { margin-bottom: 16px; }
    .nav-drawer .nav-label { padding: 8px 4px; font-size: 14px; font-weight: 600; color: #3A4354; letter-spacing: .04em; }
    .nav-drawer .nav-label-icon { font-size: 16px; color: #6B7280; }
    .nav-drawer .nav-label:hover { color: #1F2329; }
    .nav-drawer .nav-caret { font-size: 14px; color: #98A2B3; }
    .nav-drawer .nav-items { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-top: 10px; }
    .nav-drawer .nav-item {
        width: 100%; flex-direction: column; justify-content: center; gap: 6px;
        margin: 0; padding: 10px 4px; min-height: 66px;
        border: 1px solid #EEF2F7; border-radius: 10px; background: #F9FBFD;
        font-size: 12px; line-height: 1.2; text-align: center;
    }
    .nav-drawer .nav-item .el-icon { font-size: 19px; }
    .nav-drawer .nav-item span { display: block; max-width: 100%; word-break: break-all; }
    .nav-drawer .nav-item.active { background: #EFF6FF; border-color: #BFDBFE; }
    .nav-drawer .nav-item.active::before { display: none; }
    .crumb span, .crumb .el-icon { display: none; }
    .content { padding: 10px 0 0; }
    .staff-grid { grid-template-columns: 1fr; }
    .split { grid-template-columns: 1fr; }
    .mon-kpi { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .mon-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .mon-stores { grid-template-columns: 1fr; }
    .mon-status { padding: 5px 10px; }
    .mon-updated { display: none; }
    .cashier-grid { grid-template-columns: 1fr; }
    .cash-checkout { position: static; }
    .cashier-grid .cash-checkout { display: none; }
    .cash-tabs .el-tabs__content { padding-bottom: 76px; }
    .cash-fab {
        position: fixed; right: 16px; bottom: calc(16px + env(safe-area-inset-bottom)); z-index: 90;
        display: inline-flex; align-items: center; gap: 6px; padding: 12px 20px;
        border: 0; border-radius: 999px; background: #DC2626; color: #fff;
        font-size: 14px; font-weight: 600; box-shadow: 0 8px 20px rgba(220,38,38,.35); cursor: pointer;
    }
    .cash-fab:active { background: #B91C1C; }
    .cash-sheet .cash-checkout { padding: 0; border: 0; box-shadow: none; background: transparent; }
    .cash-sheet .panel-title { margin-top: 0; }
    .cashier-bar { gap: 8px; }
    .cashier-bar .el-select { width: 100% !important; }
    .cashier-store { padding-right: 4px; }
    .cash-summary { width: 100%; margin-left: 0; gap: 10px; }
    .cashier-items { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); }
    .stat-card .stat-val { font-size: 24px; }
    .store-select { width: 120px; }
    .user-meta { display: none; }
    .item-check-grid { grid-template-columns: 1fr; }
    .member-stat { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .settle-bar { align-items: flex-start; }
    .page { gap: 12px; }
    .page-head { align-items: center; gap: 8px; padding-right: 10px; }
    /* 手机端统一隐藏页面标题与介绍，只保留门店选择与操作按钮 */
    .page-head h2, .page-head .desc { display: none; }
    .page-head .cash-head-text { display: none; }
    .panel { padding: 10px; }
    /* 筛选栏紧凑排布：控件按固定窄宽度自动换行，日期不占整行 */
    .filter-bar { gap: 6px 8px; }
    .filter-bar > .el-input,
    .filter-bar > .el-select,
    .filter-bar > .el-date-editor { flex: 0 1 auto; min-width: 0; }
    .filter-bar > .el-input { width: 136px !important; }
    .filter-bar > .el-select { width: 112px !important; }
    .filter-bar > .el-date-editor { width: 208px !important; max-width: 100%; }
    .filter-bar > .date-trigger { width: 150px !important; padding: 0 6px; font-size: 12px; }
    .filter-bar > .el-button { margin-left: 0; }
    .filter-bar .reset-btn { display: none; }
    .cell-actions { gap: 2px 4px; }
    .cell-actions .el-button { margin-left: 0; padding: 4px 6px; font-size: 12px; }
    .table-foot { justify-content: center; }
    .table-foot .el-pagination { flex-wrap: wrap; row-gap: 6px; justify-content: center; }
    /* 手机端隐藏分页「共 N 条」与每页条数，给页码留出宽度 */
    .el-pagination__total,
    .el-pagination__sizes { display: none; }
    .calendar-layout { grid-template-columns: 1fr; overflow: auto; }
    .cal-panel { flex: none; min-height: 460px; }
    .day-panel { flex: none; min-height: 320px; }
    .q-chip { padding: 6px 10px; }
    /* 手机端保留操作列固定在右侧，便于横向滚动时点击；左侧固定列还原为普通列。 */
    .el-table__body-wrapper tr td.el-table-fixed-column--left,
    .el-table__header-wrapper tr th.el-table-fixed-column--left {
        position: static !important; left: auto !important;
        box-shadow: none !important; z-index: auto !important;
    }
    /* 考勤月度汇总与考勤日历：手机端员工姓名列仍需固定在左侧（覆盖上方还原规则） */
    .att-monthly-table .el-table__body-wrapper tr td.el-table-fixed-column--left,
    .att-monthly-table .el-table__header-wrapper tr th.el-table-fixed-column--left,
    .att-cal-table .el-table__body-wrapper tr td.el-table-fixed-column--left,
    .att-cal-table .el-table__header-wrapper tr th.el-table-fixed-column--left {
        position: sticky !important; left: 0 !important;
        z-index: 3 !important;
        box-shadow: 2px 0 6px rgba(15, 23, 42, .06) !important;
    }
}
@media (max-width: 560px) {
    .stat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
    .stat-card { padding: 14px; }
    .stat-card .stat-val { font-size: 21px; }
    .stat-card .stat-sub { display: none; }
    .top-actions { gap: 6px; }
    .store-select { width: 108px; }
    .el-dialog { width: calc(100vw - 32px) !important; }
    .el-message-box { width: calc(100vw - 40px) !important; }
    .el-drawer { width: 100% !important; }
    .kv.kv-two { grid-template-columns: 82px minmax(0,1fr); }
    .settings-grid { grid-template-columns: 1fr; }
    .settings-summary { grid-template-columns: 1fr 1fr; }
    .brand-profile { flex-direction: column; }
    .brand-profile-main { max-width: none; width: 100%; }
    .el-pagination { flex-wrap: wrap; justify-content: flex-end; row-gap: 6px; }
    .el-pagination__sizes { display: none; }
    .bar-chart .bar em { display: none; }
    .cal-panel { min-height: 400px; padding: 12px 10px; }
    .cal-week, .cal-grid { gap: 4px; }
    .cal-week { padding-bottom: 6px; }
    .cal-cell { padding: 5px 6px; border-radius: 6px; }
    .cal-top .d { font-size: 12px; }
    .cal-count b { font-size: 15px; }
    .cal-count em { display: none; }
    .cal-today { display: none; }
    .cal-month span { display: none; }
    .wf-overview-head { flex-wrap: wrap; align-items: flex-start; }
    .wf-overview-sum { width: 100%; gap: 14px; }
    .wf-cards { grid-template-columns: 1fr; }
    .wf-stage-head { align-items: flex-start; }
    .wf-stage-head > div { flex: 1 1 100%; }
    .wf-stage-head b { display: block; margin: 0 0 4px; }
    .cashier-items { grid-template-columns: 1fr; }
    .cash-plans { grid-template-columns: 1fr; }
    .cash-walkin { grid-template-columns: 1fr; }
    .cash-item-head { flex-wrap: wrap; }
    .settle-orders { max-height: none; }
    .settle-order { padding: 10px; }
    .cash-member { padding: 10px; }
    .cash-member-assets { gap: 8px 12px; }
}

/* ---------- staff performance ---------- */
.sp-summary { grid-template-columns: repeat(6, minmax(0, 1fr)); }
.sp-summary .stat-card { padding: 16px; }
.sp-summary .sp-rate-val { font-size: 21px; letter-spacing: -.2px; }
.sp-summary.sp-summary-m { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.sp-rate { font-variant-numeric: tabular-nums; white-space: nowrap; }
.sp-table { width: 100%; }
.sp-cards { display: none; }
.sp-card { border: 1px solid var(--yj-line); border-radius: 12px; padding: 12px 14px; background: #fff; }
.sp-card-head { display: flex; align-items: baseline; gap: 8px; margin-bottom: 10px; }
.sp-card-head b { font-size: 15px; color: var(--yj-ink); }
.sp-card-head span { font-size: 12px; color: var(--yj-muted); }
.sp-card-head em { margin-left: auto; font-style: normal; font-size: 14px; font-weight: 600; color: var(--yj-ink); font-variant-numeric: tabular-nums; }
.sp-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 14px; }
.sp-metric { min-width: 0; }
.sp-metric span { display: block; font-size: 11.5px; color: var(--yj-muted); }
.sp-metric b { display: block; margin-top: 2px; font-size: 13px; font-weight: 600; color: var(--yj-text); font-variant-numeric: tabular-nums; }
.sp-card-foot { margin-top: 8px; padding-top: 8px; border-top: 1px dashed var(--yj-line); text-align: right; }
.sp-note { margin-top: 16px; padding: 12px 14px; border: 1px dashed var(--yj-line); border-radius: 10px; color: var(--yj-muted); font-size: 12px; line-height: 1.9; }
.sp-note strong { display: block; color: var(--yj-sub); font-weight: 600; margin-bottom: 2px; }

/* ---------- reports ---------- */
.rp-health { display: flex; gap: 12px; padding: 14px 16px; border-radius: 10px; border: 1px solid #BBF7D0; background: #F0FDF4; }
.rp-health.warn { border-color: #FDE68A; background: #FFFBEB; }
.rp-health.bad { border-color: #FECACA; background: #FEF2F2; }
.rp-health.empty { border-color: var(--yj-line); background: #F8FAFC; }
.rp-health .rp-ico { width: 34px; height: 34px; flex: 0 0 34px; border-radius: 9px; display: flex; align-items: center; justify-content: center; font-size: 18px; background: #DCFCE7; color: #15803D; }
.rp-health.warn .rp-ico { background: #FEF3C7; color: #B45309; }
.rp-health.bad .rp-ico { background: #FEE2E2; color: #B91C1C; }
.rp-health.empty .rp-ico { background: #E2E8F0; color: #475569; }
.rp-health b { display: block; font-size: 13.5px; color: var(--yj-ink); }
.rp-health p { margin: 4px 0 0; font-size: 12px; line-height: 1.6; color: var(--yj-muted); }
.rp-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.rp-chip { display: inline-flex; align-items: center; padding: 2px 9px; border-radius: 999px; background: rgba(255,255,255,.78); border: 1px solid rgba(180,83,9,.18); color: #92400E; font-size: 11.5px; }
.rp-chip.bad { color: #B91C1C; border-color: rgba(185,28,28,.18); }
.rp-split { grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr); }
.rp-problem-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; align-items: start; }
.rp-list { display: flex; flex-direction: column; }
.rp-item { display: flex; gap: 10px; padding: 10px 0; border-bottom: 1px dashed #EEF2F7; }
.rp-item:last-child { border-bottom: 0; padding-bottom: 0; }
.rp-item-main { flex: 1; min-width: 0; }
.rp-item-top { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.rp-item-top b { font-size: 12.5px; color: var(--yj-ink); font-weight: 600; }
.rp-item-txt { margin-top: 3px; font-size: 12px; line-height: 1.55; color: var(--yj-sub); overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.rp-item time { flex: 0 0 auto; font-size: 11px; color: var(--yj-muted); white-space: nowrap; }
.rp-tag { display: inline-flex; align-items: center; padding: 1px 7px; border-radius: 999px; background: #FEF2F2; color: #B91C1C; font-size: 10.5px; }
.rp-tag.amber { background: #FFFBEB; color: #B45309; }
.rp-tag.slate { background: #F1F5F9; color: #475569; }
.rp-empty { padding: 24px 0; text-align: center; font-size: 12px; color: var(--yj-muted); }
.rp-reason { display: grid; grid-template-columns: minmax(0, 1fr) 42px; gap: 5px 10px; align-items: center; padding: 7px 0; border-bottom: 1px dashed #EEF2F7; }
.rp-reason:last-child { border-bottom: 0; }
.rp-reason .rp-reason-name { font-size: 12px; color: var(--yj-sub); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rp-reason .rp-reason-count { text-align: right; font-size: 12px; color: var(--yj-ink); font-variant-numeric: tabular-nums; }
.rp-reason .mini-bar { grid-column: 1 / -1; }
.rp-reason-foot { grid-column: 1 / -1; font-size: 11px; color: var(--yj-muted); }
.rp-text-bad { color: #DC2626; }
.rp-staff-cards { display: none; }
@media (max-width: 1200px) {
    .rp-problem-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .rp-problem-grid > .panel:last-child { grid-column: 1 / -1; }
}
@media (max-width: 900px) {
    .rp-split, .rp-problem-grid { grid-template-columns: 1fr; }
    .rp-problem-grid > .panel:last-child { grid-column: auto; }
    .rp-health { padding: 12px 13px; }
    .rp-staff-table { display: none; }
    .rp-staff-cards { display: grid; grid-template-columns: 1fr; gap: 10px; }
}
@media (max-width: 1200px) {
    .sp-summary { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .sp-summary.sp-summary-m { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
    .sp-summary { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
    .sp-summary .stat-card { padding: 14px; }
    .sp-summary .stat-val { font-size: 20px; }
    .sp-summary .sp-rate-val { font-size: 18px; }
    .sp-summary.sp-summary-m { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .sp-table { display: none; }
    .sp-cards { display: grid; grid-template-columns: 1fr; gap: 10px; }
}

/* ---------- finance report ---------- */
.finance-kpi { grid-template-columns: repeat(3, minmax(0, 1fr)); margin-bottom: 16px; }
/* 待结算两张卡片固定一行两列，避免首卡 accent 在窄屏独占一行 */
.finance-kpi.settle-kpi { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.finance-kpi .stat-card { padding: 20px 22px; }
.finance-kpi .finance-total { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 500; color: rgba(255,255,255,.92); }
.finance-kpi .finance-total em {
    font-style: normal; padding: 2px 7px; border-radius: 999px;
    background: rgba(255,255,255,.14); color: rgba(255,255,255,.82);
    font-size: 10.5px; letter-spacing: .06em;
}
.finance-kpi .stat-card.accent .stat-val { font-size: 36px; letter-spacing: -.01em; }
.finance-kpi .stat-card.accent .stat-sub { color: rgba(255,255,255,.66); }
.finance-kpi .stat-ico.finance-ico { background: rgba(255,255,255,.12); color: #fff; }
.finance-kpi .fin-lines { margin-top: 12px; display: flex; flex-wrap: wrap; gap: 6px; }
.finance-kpi .fin-chip {
    padding: 5px 8px; border-radius: 6px; background: #F6F8FB;
    font-size: 11.5px; line-height: 1; color: var(--yj-sub); font-variant-numeric: tabular-nums;
}
.finance-kpi .fin-chip b { margin-left: 2px; font-weight: 600; color: var(--yj-ink); }
.finance-kpi.secondary .stat-card { padding: 16px 20px; }
.finance-kpi.secondary .stat-val { font-size: 22px; }
.finance-kpi.secondary .stat-sub { margin-top: 8px; }
.finance-tables { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; align-items: start; }
.fin-store-table .el-table__header th.el-table__cell { background: #f7f8fa; color: var(--yj-muted); font-weight: 600; }
.fin-store-table .el-table__cell { font-variant-numeric: tabular-nums; }
.fin-store-table .fin-total { font-weight: 600; color: var(--yj-ink); }
.fin-store-table th.fin-total-head { background: #eef3ff !important; color: var(--yj-ink) !important; }
@media (max-width: 900px) {
    .finance-kpi { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
    .finance-kpi .stat-card.accent { grid-column: 1 / -1; }
    .finance-kpi.settle-kpi .stat-card.accent { grid-column: auto; }
    .finance-kpi .stat-card { padding: 14px; }
    .finance-kpi .stat-card.accent .stat-val { font-size: 28px; }
    .finance-kpi.secondary { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .finance-kpi.secondary .stat-ico { display: none; }
    .finance-tables { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
    .finance-kpi .fin-lines { display: none; }
    .finance-kpi.secondary .stat-card { padding: 12px 10px; }
    .finance-kpi.secondary .stat-val { font-size: 18px; }
    .finance-kpi.secondary .stat-head { font-size: 11.5px; }
}

/* ---------- member analysis ---------- */
.ma-kpi { margin-bottom: 16px; }
.ma-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.ma-panel { min-width: 0; }
.ma-donut-wrap { display: flex; align-items: center; gap: 30px; padding: 8px 4px 4px; }
.ma-donut { position: relative; flex: 0 0 152px; width: 152px; height: 152px; border-radius: 50%; }
.ma-donut-hole {
    position: absolute; inset: 26px; border-radius: 50%; background: #fff;
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    box-shadow: inset 0 0 0 1px #F1F5F9;
}
.ma-donut-hole b { font-size: 26px; line-height: 1; font-weight: 600; color: var(--yj-ink); font-variant-numeric: tabular-nums; }
.ma-donut-hole span { margin-top: 6px; font-size: 11px; color: var(--yj-muted); }
.ma-legend { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 14px; }
.ma-legend-row { display: grid; grid-template-columns: 10px 48px 44px 44px minmax(0, 1fr); align-items: center; gap: 8px; font-size: 12.5px; color: var(--yj-sub); }
.ma-legend-row b { text-align: right; color: var(--yj-ink); font-weight: 600; font-variant-numeric: tabular-nums; }
.ma-legend-row em { font-style: normal; text-align: right; color: var(--yj-muted); font-variant-numeric: tabular-nums; }
.ma-legend-name { color: var(--yj-sub); }
.ma-dot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; }
.ma-mini { height: 6px; border-radius: 3px; background: #F1F5F9; overflow: hidden; display: block; }
.ma-mini i { display: block; height: 100%; border-radius: 3px; transition: width .3s; }
.ma-stack {
    display: flex; height: 14px; margin: 12px 0 18px; border-radius: 7px; overflow: hidden;
    background: #EEF2F7;
}
.ma-stack i { display: block; height: 100%; transition: width .3s; }
.ma-act-list { display: flex; flex-direction: column; gap: 12px; }
.ma-act-row { display: grid; grid-template-columns: 10px 52px 78px 46px minmax(0, 1fr); align-items: center; gap: 8px; font-size: 12.5px; color: var(--yj-sub); }
.ma-act-row b { color: var(--yj-ink); font-weight: 600; font-variant-numeric: tabular-nums; }
.ma-act-row em { font-style: normal; text-align: right; color: var(--yj-muted); font-variant-numeric: tabular-nums; }
.ma-act-desc { font-size: 11.5px; color: var(--yj-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ma-records { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin-top: 16px; }
.ma-record { background: #fff; border: 1px solid var(--yj-line); border-radius: 8px; padding: 16px 18px; min-width: 0; }
.ma-record-head { display: flex; align-items: center; justify-content: space-between; font-size: 12.5px; color: var(--yj-sub); }
.ma-record-val { margin-top: 12px; font-size: 26px; font-weight: 600; color: var(--yj-ink); line-height: 1; font-variant-numeric: tabular-nums; }
.ma-record-val small { margin-left: 4px; font-size: 13px; font-weight: 500; color: var(--yj-muted); }
.ma-record-who { margin-top: 10px; font-size: 12px; color: var(--yj-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ma-record-who span { margin-left: 6px; color: var(--yj-sub); }
.ma-rank {
    display: inline-flex; align-items: center; justify-content: center;
    width: 24px; height: 24px; border-radius: 50%;
    background: #F1F5F9; color: #64748B; font-size: 12px; font-weight: 600;
    font-variant-numeric: tabular-nums;
}
.ma-rank.r1 { background: #FEF3C7; color: #B45309; }
.ma-rank.r2 { background: #E2E8F0; color: #475569; }
.ma-rank.r3 { background: #FFEDD5; color: #C2410C; }
.ma-bar { height: 6px; border-radius: 3px; background: #F1F5F9; overflow: hidden; }
.ma-bar i { display: block; height: 100%; border-radius: 3px; background: linear-gradient(90deg, #93C5FD, #3B82F6); }
.ma-bar-txt { display: block; margin-top: 4px; font-size: 11px; color: var(--yj-muted); font-variant-numeric: tabular-nums; }
.ma-cards { display: none; }
.ma-note { margin-top: 16px; }
@media (max-width: 1200px) {
    .ma-records { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
    .ma-grid { grid-template-columns: 1fr; }
    .ma-donut-wrap { gap: 20px; }
    .ma-donut { flex-basis: 132px; width: 132px; height: 132px; }
    .ma-donut-hole { inset: 24px; }
    .ma-donut-hole b { font-size: 22px; }
    .ma-table { display: none; }
    .ma-cards { display: grid; grid-template-columns: 1fr; gap: 10px; }
    .ma-card {
        display: flex; align-items: center; gap: 10px;
        border: 1px solid var(--yj-line); border-radius: 10px; padding: 10px 12px; background: #fff;
    }
    .ma-card-main { flex: 1; min-width: 0; }
    .ma-card-main b { display: block; font-size: 13.5px; color: var(--yj-ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
    .ma-card-main span { display: block; margin-top: 2px; font-size: 11.5px; color: var(--yj-muted); }
    .ma-card-val { text-align: right; }
    .ma-card-val b { display: block; font-size: 13.5px; color: var(--yj-ink); font-variant-numeric: tabular-nums; }
    .ma-card-val span { display: block; margin-top: 2px; font-size: 11px; color: var(--yj-muted); }
}
@media (max-width: 560px) {
    .ma-kpi .stat-card { padding: 14px; }
    .ma-kpi .stat-val { font-size: 21px; }
    .ma-kpi .stat-sub { display: block; margin-top: 6px; font-size: 11px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
    .ma-records { grid-template-columns: 1fr 1fr; gap: 10px; }
    .ma-record { padding: 13px 12px; }
    .ma-record-val { font-size: 19px; }
    .ma-record .stat-ico { display: none; }
    .ma-donut { flex-basis: 116px; width: 116px; height: 116px; }
    .ma-donut-hole { inset: 21px; }
    .ma-donut-hole b { font-size: 19px; }
    .ma-legend-row { grid-template-columns: 10px 40px 36px 38px minmax(0, 1fr); gap: 6px; font-size: 12px; }
    .ma-act-row { grid-template-columns: 10px 40px 66px 40px; }
    .ma-act-desc { display: none; }
}

/* ---------- dashboard v1.43 ---------- */
.db-approve { display: flex; align-items: center; gap: 12px;  padding: 12px 16px; border: 1px solid #FDE68A; border-radius: 10px; background: #FFFBEB; }
.db-approve-ico { flex: none; width: 32px; height: 32px; border-radius: 50%; background: #FEF3C7; color: #B45309; display: flex; align-items: center; justify-content: center; font-size: 16px; }
.db-approve-text { flex: 1; min-width: 0; }
.db-approve-text b { display: block; font-size: 13px; color: #92400E; }
.db-approve-text span { display: block; margin-top: 3px; font-size: 11.5px; color: #B45309; opacity: .8; }
.db-approve .el-button { flex: none; }

.db-kpi { padding: 0; overflow: hidden;   }
.db-kpi-group + .db-kpi-group { border-top: 1px solid var(--yj-line); }
.db-kpi-cap { display: flex; align-items: baseline; gap: 10px; padding: 14px 18px 0; }
.db-kpi-cap b { font-size: 13px; font-weight: 600; color: var(--yj-ink); }
.db-kpi-cap span { font-size: 11.5px; color: var(--yj-muted); }
.db-kpi-grid { display: grid; margin-top: 12px; }
.db-kpi-grid.amt { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.db-kpi-grid.appt { grid-template-columns: repeat(6, minmax(0, 1fr)); }
.db-kpi-tile { min-width: 0; padding: 12px 18px 15px; box-shadow: inset -1px -1px 0 #EEF2F7; }
.db-kpi-label { display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--yj-sub); white-space: nowrap; }
.db-kpi-label .dot { flex: none; width: 5px; height: 5px; border-radius: 50%; background: #94A3B8; }
.db-kpi-label .dot.amber { background: #F59E0B; }
.db-kpi-label .dot.blue { background: #3B82F6; }
.db-kpi-label .dot.green { background: #10B981; }
.db-kpi-label .dot.slate { background: #CBD5E1; }
.db-kpi-label .dot.violet { background: #8B5CF6; }
.db-kpi-val { margin-top: 9px; font-size: 26px; font-weight: 600; color: var(--yj-ink); line-height: 1; font-variant-numeric: tabular-nums; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.db-kpi-val em { font-style: normal; font-size: 14px; font-weight: 600; margin-right: 2px; }
.db-kpi-val small { font-size: 12px; font-weight: 500; color: var(--yj-muted); margin-left: 3px; }
.db-kpi-tile.hot .db-kpi-val { color: #2563EB; }
.db-kpi-sub { display: block; margin-top: 8px; font-size: 11.5px; color: var(--yj-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.db-conn { display: inline-flex; align-items: center; gap: 6px; margin-right: 2px; font-size: 12px; color: var(--yj-muted); white-space: nowrap; }
.db-conn i { width: 7px; height: 7px; border-radius: 50%; background: #10B981; box-shadow: 0 0 0 3px rgba(16, 185, 129, .12); }
.db-conn.connecting i, .db-conn.retrying i { background: #F59E0B; box-shadow: 0 0 0 3px rgba(245, 158, 11, .14); }
.db-live { display: inline-block; flex: none; width: 6px; height: 6px; border-radius: 50%; background: #10B981; margin-right: 6px; }
.db-live.off { background: #CBD5E1; }

.db-hours { display: flex; align-items: flex-end; gap: 6px; height: 140px; padding-top: 4px; }
.db-hour-col { flex: 1; min-width: 0; height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; gap: 4px; }
.db-hour-val { height: 14px; font-size: 10.5px; color: #64748B; font-variant-numeric: tabular-nums; }
.db-hour-track { width: 100%; max-width: 26px; flex: 1; display: flex; align-items: flex-end; border-radius: 4px; background: linear-gradient(#F8FAFC, #EEF3F9); overflow: hidden; }
.db-hour-track i { display: block; width: 100%; min-height: 3px; border-radius: 4px 4px 0 0; background: linear-gradient(180deg, #60A5FA, #2563EB); transition: height .3s ease; }
.db-hour-track i.zero { display: none; }
.db-hour-label { font-size: 10.5px; color: #94A3B8; white-space: nowrap; }

.db-team { padding-bottom: 16px; }
.db-team-table { overflow-x: auto; border: 1px solid var(--yj-line); background: #fff; }
.db-team-table table { width: 100%; border-collapse: collapse; }
.db-team-table th { padding: 10px 14px; text-align: left; font-size: 12px; font-weight: 500; color: var(--yj-muted); background: #F8FAFC; border-bottom: 1px solid var(--yj-line); white-space: nowrap; }
.db-team-table th:first-child, .db-team-table td:first-child { padding-left: 16px; }
.db-team-table th:last-child, .db-team-table td:last-child { padding-right: 16px; }
.db-team-table td { padding: 10px 14px; border-bottom: 1px solid #F1F4F8; vertical-align: middle; }
.db-team-table th.num, .db-team-table td.num { text-align: right; font-variant-numeric: tabular-nums; }
.db-team-table td.num { font-size: 13px; color: var(--yj-ink); white-space: nowrap; }
.db-team-table td.num.strong { font-weight: 600; }
.db-team-table tr.db-store-row td { padding: 9px 14px; background: #F8FAFC; border-top: 1px solid var(--yj-line); border-bottom: 1px solid var(--yj-line); }
.db-team-table tbody:first-of-type tr.db-store-row td { border-top: none; }
.db-team-table tr.db-store-row.off td { background: #FBFCFE; color: #94A3B8; }
.db-store-cell { display: flex; align-items: center; gap: 10px; min-width: 0; }
.db-store-ic { flex: none; width: 30px; height: 30px; border-radius: 9px; background: #EFF6FF; color: #2563EB; display: flex; align-items: center; justify-content: center; }
.db-store-ic .el-icon { font-size: 15px; }
.db-store-ic.off { background: #F1F5F9; color: #94A3B8; }
.db-store-name { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; min-width: 0; }
.db-store-name b { font-size: 13.5px; font-weight: 600; color: var(--yj-ink); white-space: nowrap; }
.db-store-name span { font-size: 11.5px; color: var(--yj-muted); white-space: nowrap; }
.db-store-row.off .db-store-name b { color: #64748B; }
.db-team-table tbody tr.db-staff-row:last-child td { border-bottom: none; }
.db-off { display: inline-flex; align-items: center; gap: 5px; }
.db-off::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: #CBD5E1; }
.db-people { display: grid; grid-template-columns: repeat(auto-fill, minmax(206px, 1fr)); gap: 10px 12px; }
.db-person { display: flex; align-items: center; gap: 10px; min-width: 0; padding: 8px 10px; border: 1px solid #EDF1F7; border-radius: 10px; background: #FBFDFF; }
.db-person.serving { border-color: #FBE7C2; background: #FFFCF5; }
.db-ava { position: relative; flex: none; width: 34px; height: 34px; border-radius: 50%; background: #EEF3FA; color: #3B5B8C; display: flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 600; }
.db-ava img { position: absolute; inset: 0; width: 100%; height: 100%; border-radius: 50%; object-fit: cover; display: block; }
.db-ava.st1 { box-shadow: 0 0 0 2px #DBEAFE; }
.db-ava.st2 { box-shadow: 0 0 0 2px #FDE68A; }
.db-ping { position: absolute; right: -1px; bottom: -1px; width: 9px; height: 9px; border-radius: 50%; background: #F59E0B; border: 2px solid #fff; }
.db-person-main { min-width: 0; }
.db-person-main b { display: block; font-size: 13px; font-weight: 600; color: var(--yj-ink); }
.db-task { display: block; margin-top: 3px; font-size: 11.5px; color: var(--yj-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.db-task.serving { color: #B45309; }
.db-task em { font-style: normal; }
.db-new { display: inline-block; min-width: 24px; padding: 2px 7px; border-radius: 999px; background: #ECFDF5; color: #047857; font-size: 12px; font-weight: 600; text-align: center; }
.db-new.zero { background: #F1F5F9; color: #94A3B8; }
.db-cell-traffic { white-space: nowrap; }
.db-traffic { display: flex; align-items: center; gap: 4px; }
.db-tf { display: inline-flex; align-items: center; justify-content: center; width: 22px; height: 22px; border-radius: 50%; background: #EFF6FF; color: #3B82F6; font-size: 13px; }
.db-tf-more { font-size: 11px; color: var(--yj-muted); }
.db-traffic b { margin-left: 5px; font-size: 12.5px; font-weight: 600; color: var(--yj-ink); font-variant-numeric: tabular-nums; }
.db-traffic small { margin-left: 1px; font-size: 10.5px; font-weight: 500; color: var(--yj-muted); }
.db-traffic-idle { display: inline-flex; align-items: center; gap: 5px; padding: 2px 9px; border-radius: 999px; background: #F1F5F9; font-size: 11px; color: #94A3B8; }
.db-traffic-idle::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: #CBD5E1; }

.db-team-cards { display: none; }
.db-store-card { border: 1px solid #E9EEF5; border-radius: 14px; padding: 12px 14px; margin-bottom: 10px; background: #fff; box-shadow: 0 1px 2px rgba(15, 23, 42, .03); }
.db-store-card:last-child { margin-bottom: 0; }
.db-store-card-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.db-store-card-head .db-store-cell { flex: 1; }
.db-store-card-head .db-store-name b { font-size: 13.5px; }
.db-store-card-head .db-store-name span { font-size: 11px; white-space: normal; }
.db-store-card-head .db-tf { width: 20px; height: 20px; font-size: 12px; }
.db-store-card-stats { display: flex; flex-wrap: wrap; gap: 4px 14px; margin-top: 8px; font-size: 11px; color: var(--yj-muted); }
.db-store-card-stats b { color: var(--yj-ink); font-size: 12px; font-variant-numeric: tabular-nums; }
.db-store-card .db-people { grid-template-columns: repeat(auto-fill, minmax(132px, 1fr)); gap: 10px 10px; margin-top: 10px; padding-top: 10px; border-top: 1px dashed #EEF2F7; }
.db-store-card .db-person { padding: 7px 8px; gap: 8px; }
.db-store-card .db-person.serving { grid-column: 1 / -1; }
.db-store-card .db-ava { width: 30px; height: 30px; font-size: 12px; }
.db-store-card .db-person-main b { font-size: 12.5px; }

@media (max-width: 1280px) {
    .db-kpi-grid.amt { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .db-kpi-grid.appt { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .db-kpi-val { font-size: 23px; }
}
@media (max-width: 1100px) {
    .db-team-table { display: none; }
    .db-team-cards { display: block; }
}
@media (max-width: 700px) {
    .db-approve { align-items: center; gap: 10px; padding: 11px 12px; }
    .db-approve-ico { width: 28px; height: 28px; font-size: 14px; }
    .db-approve-text b { font-size: 12.5px; line-height: 1.35; }
    .db-approve-text span { display: none; }
    .db-approve .el-button { padding: 5px 10px; }
    .db-kpi-grid.amt, .db-kpi-grid.appt { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .db-kpi-grid.amt .db-kpi-tile:last-child { grid-column: 1 / -1; }
    .db-kpi-tile { padding: 11px 13px 13px; }
    .db-kpi-val { font-size: 20px; }
    .db-kpi-sub { font-size: 10.5px; }
    .db-kpi-cap { padding: 12px 14px 0; }
    .db-kpi-cap span { display: none; }
    .db-conn { display: none; }
    .db-hours { height: 120px; gap: 3px; }
    .db-hour-track { max-width: 18px; }
    .db-hour-label { font-size: 9.5px; }
}
@media (max-width: 560px) {
    .db-kpi-cap { padding: 11px 13px 0; }
    .db-kpi-tile { padding: 10px 12px 12px; }
    .db-kpi-label { font-size: 11.5px; }
    .db-kpi-val { font-size: 19px; }
    .db-kpi-val em { font-size: 12px; }
    .db-store-card { padding: 11px 12px; }
}

/* ---------- 员工档案扩展 ---------- */
.form-2col { display: grid; grid-template-columns: 1fr 1fr; gap: 0 12px; }
.staff-form .el-form-item { margin-bottom: 14px; }
.form-block + .form-block { margin-top: 18px; padding-top: 16px; border-top: 1px solid #EEF2F7; }
.form-block-title {
    display: flex; align-items: center; gap: 8px; margin: 0 0 12px;
    font-size: 13px; font-weight: 600; color: var(--yj-ink);
}
.form-block-title::before { content: ""; width: 3px; height: 12px; border-radius: 2px; background: var(--yj-primary); }
.form-switch-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 12px; }
.staff-media-row { display: flex; gap: 28px; flex-wrap: wrap; }
.staff-media-cell { display: flex; flex-direction: column; gap: 6px; }
.staff-photo-box {
    width: 176px; height: 112px; border: 1px dashed #CBD5E1; border-radius: 10px;
    display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px;
    color: #94A3B8; font-size: 12px; background: #F8FAFC; cursor: pointer; overflow: hidden;
}
.staff-photo-box:hover { border-color: var(--yj-primary); color: var(--yj-primary); }
.staff-photo-box img { width: 100%; height: 100%; object-fit: cover; display: block; }
.staff-dialog, .work-dialog { max-width: calc(100vw - 24px); }
.staff-dialog .el-dialog__body, .work-dialog .el-dialog__body {
    max-height: calc(88vh - 132px); overflow-y: auto; padding-right: 8px;
}
.exp-editor { width: 100%; }
.exp-row {
    display: grid; grid-template-columns: 118px 118px minmax(0, 1fr) minmax(0, 1.3fr) 44px;
    gap: 8px; align-items: center; margin-bottom: 8px;
}
.exp-row .el-input-number, .exp-row .el-date-editor { width: 100%; }
.exp-actions { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.exp-actions .cell-sub { margin-top: 0; }

/* ---------- 员工登录账号 ---------- */
.staff-account-dialog { max-width: calc(100vw - 24px); }
.account-head { padding: 12px 14px; border: 1px solid var(--yj-line); border-radius: 10px; background: #F8FAFC; }
.account-name { font-size: 15px; font-weight: 600; color: var(--yj-ink); }
.account-tags { display: flex; flex-wrap: wrap; gap: 6px; margin: 8px 0 6px; }
.account-actions { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0 4px; }
.account-actions .el-button + .el-button { margin-left: 0; }
.account-logs { margin-top: 16px; }
.account-logs-head {
    display: flex; align-items: center; gap: 8px; margin-bottom: 10px;
    font-size: 13px; font-weight: 600; color: var(--yj-ink);
}
.account-logs-head::before { content: ""; width: 3px; height: 12px; border-radius: 2px; background: var(--yj-primary); }
.account-pwd-tip { margin: 0 0 12px; font-size: 13px; line-height: 1.7; color: #64748B; }

/* ---------- 作品发布 ---------- */
.work-scroll { flex: 1; min-height: 220px; overflow-y: auto; padding-right: 2px; }
.work-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(228px, 1fr)); gap: 14px; }
.work-card {
    border: 1px solid var(--yj-line); border-radius: 10px; background: #fff;
    display: flex; flex-direction: column; min-width: 0; overflow: hidden;
}
.work-cover { position: relative; aspect-ratio: 4 / 3; background: #F1F5F9; }
.work-cover img { width: 100%; height: 100%; object-fit: cover; display: block; }
.work-cover-empty { height: 100%; display: flex; align-items: center; justify-content: center; color: #CBD5E1; font-size: 28px; }
.work-badge {
    position: absolute; top: 8px; left: 8px; display: inline-flex; align-items: center; gap: 3px;
    padding: 2px 7px; border-radius: 999px; background: rgba(15, 23, 42, .62); color: #fff;
    font-size: 11px; line-height: 17px; font-variant-numeric: tabular-nums;
}
.work-state { left: auto; right: 8px; }
.work-state.is-live { background: rgba(22, 163, 74, .86); }
.work-state.is-draft { background: rgba(100, 116, 139, .86); }
.work-body { padding: 11px 13px 9px; display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.work-body h3 { margin: 0; font-size: 13.5px; font-weight: 600; color: var(--yj-ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.work-body p {
    margin: 0; font-size: 12px; color: var(--yj-sub); line-height: 1.55;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
    min-height: 37px;
}
.work-meta { display: flex; align-items: center; justify-content: space-between; gap: 8px; font-size: 11.5px; color: var(--yj-muted); }
.work-staff { display: inline-flex; align-items: center; gap: 6px; min-width: 0; }
.work-staff-avatar {
    width: 20px; height: 20px; border-radius: 50%; background: #F1F5F9; color: #334155;
    display: inline-flex; align-items: center; justify-content: center; overflow: hidden;
    font-size: 10.5px; font-weight: 600; flex: 0 0 20px;
}
.work-staff-avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }
.work-foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; border-top: 1px solid #F1F4F8; padding-top: 6px; font-size: 11.5px; }
.work-actions { display: inline-flex; align-items: center; gap: 2px; }
.work-actions .el-button { padding: 2px 5px; }

/* 作品媒体编辑 */
.media-grid { display: flex; flex-wrap: wrap; gap: 10px; }
.media-tile {
    position: relative; width: 104px; height: 104px; border-radius: 8px; overflow: hidden;
    background: #F1F5F9; border: 1px solid var(--yj-line);
}
.media-tile img, .media-tile video { width: 100%; height: 100%; object-fit: cover; display: block; }
.media-cover-flag {
    position: absolute; left: 6px; bottom: 6px; padding: 1px 6px; border-radius: 3px;
    background: rgba(37, 99, 235, .9); color: #fff; font-size: 10.5px; line-height: 16px;
}
.media-remove {
    position: absolute; top: 4px; right: 4px; width: 20px; height: 20px; border: 0; border-radius: 50%;
    background: rgba(15, 23, 42, .62); color: #fff; font-size: 14px; line-height: 1; cursor: pointer;
    display: flex; align-items: center; justify-content: center; padding: 0;
}
.media-remove:hover { background: rgba(220, 38, 38, .9); }
.media-setcover {
    position: absolute; left: 0; right: 0; bottom: 0; border: 0; height: 22px;
    background: rgba(15, 23, 42, .58); color: #fff; font-size: 10.5px; cursor: pointer;
}
.media-setcover:hover { background: rgba(37, 99, 235, .86); }
.media-upload { display: inline-flex; }
.media-add {
    width: 104px; height: 104px; border: 1px dashed #CBD5E1; border-radius: 8px;
    display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px;
    color: #94A3B8; font-size: 12px; background: #F8FAFC; cursor: pointer;
}
.media-add:hover { border-color: var(--yj-primary); color: var(--yj-primary); }

@media (max-width: 900px) {
    .work-grid { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); }
}
@media (max-width: 700px) {
    .form-2col { grid-template-columns: 1fr; }
    .work-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
    .work-badge { top: 5px; left: 5px; padding: 1px 5px; font-size: 10px; line-height: 15px; }
    .work-state { left: auto; right: 5px; }
    .work-body { padding: 7px 8px 6px; gap: 4px; }
    .work-body h3 { font-size: 12px; }
    .work-meta { font-size: 10.5px; gap: 4px; }
    .work-meta > span:last-child { display: none; }
    .work-staff-avatar { width: 16px; height: 16px; flex: 0 0 16px; font-size: 9px; }
    .work-foot { font-size: 10.5px; gap: 4px; }
    .work-foot > .muted { display: none; }
    .work-actions .el-button { padding: 1px 3px; font-size: 12px; }
    .work-body p { -webkit-line-clamp: 1; min-height: 0; }
    .staff-media-row { gap: 16px; }
    .staff-photo-box { width: 140px; height: 92px; }
    .form-switch-row { grid-template-columns: 1fr; }
    .exp-row { grid-template-columns: 1fr 1fr; }
    .exp-row .el-button { grid-column: 1 / -1; justify-self: end; }
    .media-tile, .media-add { width: 88px; height: 88px; }
}

/* ---------- 系统模块：收款商户 ---------- */
.pm-table { flex: 1; min-height: 200px; }
.pm-cards { display: none; }
.pm-card { border: 1px solid var(--yj-line); border-radius: 10px; background: #fff; padding: 12px 13px; min-width: 0; }
.pm-card-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.pm-card-title { min-width: 0; }
.pm-card-title b { display: block; font-size: 14px; color: var(--yj-ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pm-card-title .cell-sub { margin-top: 3px; }
.pm-card-meta { display: grid; grid-template-columns: 1fr 1fr; gap: 5px 12px; margin-top: 10px; }
.pm-card-meta span { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; font-size: 12px; color: var(--yj-text); min-width: 0; }
.pm-card-meta i { font-style: normal; color: var(--yj-muted); flex: 0 0 auto; }
.pm-card-actions { display: flex; align-items: center; gap: 2px; margin-top: 8px; padding-top: 6px; border-top: 1px dashed var(--yj-line); }
.pm-card-actions .el-button { padding: 2px 5px; }
.pm-store-count { font-weight: 600; color: var(--yj-ink); font-variant-numeric: tabular-nums; }
.pm-license { margin-top: 4px; }
.pm-store-list { display: flex; flex-wrap: wrap; gap: 6px; }
.pm-store-chip {
    display: inline-flex; align-items: center; gap: 6px; padding: 3px 9px; border-radius: 999px;
    background: #F8FAFC; border: 1px solid var(--yj-line); font-size: 12px; color: var(--yj-text);
}
.pm-store-chip i { font-style: normal; color: var(--yj-muted); font-size: 11px; }
.license-upload .el-upload { display: block; }
.license-box {
    width: 116px; height: 78px; border: 1px dashed #CBD5E1; border-radius: 8px;
    display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px;
    color: #94A3B8; font-size: 12px; background: #F8FAFC; cursor: pointer; overflow: hidden;
}
.license-box:hover { border-color: var(--yj-primary); color: var(--yj-primary); }
.license-box img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pm-docs { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 6px; }
.pm-doc { min-width: 0; }
.pm-doc-label { font-size: 13px; color: var(--yj-text); margin-bottom: 6px; }
.pm-doc-tip { font-size: 12px; color: var(--yj-muted); margin: 0 0 14px; }

/* ---------- 系统模块：小程序 / 公众号配置 ---------- */
.wx-panel { min-width: 0; }
.wx-type-row { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-bottom: 14px; }
.wx-verify { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; color: var(--yj-muted); }
.wx-dot { width: 7px; height: 7px; border-radius: 50%; background: #CBD5E1; }
.wx-dot.on { background: #16A34A; box-shadow: 0 0 0 3px rgba(22, 163, 74, .14); }
.wx-config-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 16px; }
.wx-config-grid .el-form-item { margin-bottom: 14px; }
.wx-span2 { grid-column: 1 / -1; }
.wx-banner-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 12px; }
.wx-banner-card { border: 1px solid var(--yj-line); border-radius: 10px; overflow: hidden; background: #fff; display: flex; flex-direction: column; min-width: 0; }
.wx-banner-img { position: relative; aspect-ratio: 16 / 9; background: #F1F5F9; }
.wx-banner-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.wx-banner-link, .wx-banner-off {
    position: absolute; padding: 2px 7px; border-radius: 999px; font-size: 10.5px; line-height: 16px;
    background: rgba(15, 23, 42, .62); color: #fff;
}
.wx-banner-link { left: 8px; bottom: 8px; }
.wx-banner-off { right: 8px; top: 8px; background: rgba(100, 116, 139, .9); }
.wx-banner-body { padding: 9px 11px 7px; display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.wx-banner-body b { font-size: 13px; color: var(--yj-ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wx-banner-body .cell-sub { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wx-banner-actions { display: flex; align-items: center; gap: 0; flex-wrap: wrap; margin-top: 4px; border-top: 1px dashed var(--yj-line); padding-top: 4px; }
.wx-banner-actions .el-button { padding: 2px 4px; }
.wx-banner-upload { display: block; }
.wx-banner-upload .el-upload { display: block; width: 100%; height: 100%; }
.wx-banner-add {
    min-height: 148px; height: 100%; border: 1px dashed #CBD5E1; border-radius: 10px;
    display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 5px;
    color: #94A3B8; font-size: 12.5px; background: #F8FAFC; cursor: pointer;
}
.wx-banner-add:hover { border-color: var(--yj-primary); color: var(--yj-primary); }
.wx-banner-add i { font-style: normal; font-size: 11px; color: var(--yj-muted); }
.wx-banner-empty { padding: 20px 16px; border: 1px dashed var(--yj-line); border-radius: 10px; color: var(--yj-muted); font-size: 12.5px; text-align: center; }
.wx-banner-preview { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 6px; }
.wx-banner-preview img { width: 200px; height: 112px; object-fit: cover; border-radius: 8px; border: 1px solid var(--yj-line); display: block; }

/* ---------- 系统模块：消息模板 / 订阅额度 / 发送记录 ---------- */
.wx-msg { background: var(--yj-card); border: 1px solid var(--yj-line); border-radius: 8px; padding: 16px 20px 18px; min-width: 0; }
.wx-msg .el-tabs__header { margin-bottom: 14px; }
.wx-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 12px; }
.wx-toolbar .cell-sub { flex: 1; min-width: 200px; margin: 0; }
.wx-filter { margin-bottom: 14px; }
.wx-msg-cards { display: none; }
.wx-msg-card { border: 1px solid var(--yj-line); border-radius: 10px; padding: 12px 13px; background: #fff; min-width: 0; }
.wx-msg-card-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.wx-msg-card-head b { font-size: 14px; color: var(--yj-ink); min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wx-msg-card-sub { margin-top: 3px; font-size: 11.5px; color: var(--yj-muted); word-break: break-all; }
.wx-msg-card-line { display: flex; align-items: baseline; gap: 10px; margin-top: 5px; font-size: 12px; color: var(--yj-text); min-width: 0; }
.wx-msg-card-line .muted { flex: 0 0 62px; font-size: 11.5px; }
.wx-msg-card-line > span:last-child { word-break: break-all; }
.wx-msg-card-actions { display: flex; align-items: center; gap: 2px; margin-top: 8px; padding-top: 6px; border-top: 1px dashed var(--yj-line); }
.wx-msg-card-actions .el-button { padding: 2px 5px; }
.wx-map { font-size: 12px; color: var(--yj-sub); line-height: 1.6; word-break: break-all; }
.wx-grant-num { font-variant-numeric: tabular-nums; color: var(--yj-sub); }
.wx-grant-num b { color: var(--yj-primary); }
.wx-fields { width: 100%; }
.wx-field-row { display: grid; grid-template-columns: minmax(0, 1fr) 18px minmax(0, 1.1fr) 32px; gap: 8px; align-items: center; margin-bottom: 8px; }
.wx-arrow { text-align: center; color: var(--yj-muted); font-size: 12px; }
.wx-dialog { max-width: calc(100vw - 24px); }
.wx-dialog .el-dialog__body { max-height: calc(88vh - 132px); overflow-y: auto; }

/* ---------- 系统模块：公众号回调与菜单 ---------- */
.wx-mode-summary {
    display: flex; align-items: center; gap: 8px 16px; flex-wrap: wrap;
    padding: 9px 12px; margin-bottom: 10px; border: 1px solid var(--yj-line); border-radius: 8px;
    background: #F8FAFC; font-size: 12px; color: var(--yj-text);
}
.wx-mode-summary b { color: var(--yj-ink); font-weight: 600; }
.wx-follow-qr { display: flex; align-items: flex-start; gap: 14px; flex-wrap: wrap; margin-top: 6px; }
.wx-follow-qr-img {
    width: 96px; height: 96px; flex: 0 0 auto; border: 1px dashed #CBD5E1; border-radius: 8px;
    background: #F8FAFC; display: flex; align-items: center; justify-content: center;
    color: #94A3B8; font-size: 12px; overflow: hidden;
}
.wx-follow-qr-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.wx-follow-qr-body { display: flex; flex-direction: column; gap: 7px; min-width: 220px; flex: 1; }
.wx-follow-qr-body .wx-type-row { margin-bottom: 0; }
.wx-follow-title { font-size: 13px; color: var(--yj-ink); font-weight: 600; }
.wx-callback {
    display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
    padding: 9px 12px; margin-bottom: 14px; border: 1px dashed var(--yj-line); border-radius: 8px; background: #F8FAFC;
}
.wx-callback-label { font-size: 11.5px; color: var(--yj-muted); letter-spacing: .04em; flex: 0 0 auto; }
.wx-callback code { flex: 1; min-width: 180px; color: var(--yj-text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wx-callback .wx-verify { margin-left: auto; }
.oa-menu-head { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; margin-bottom: 14px; }
.oa-menu-head .cell-sub { flex: 1; min-width: 220px; margin: 0; }
.oa-menu-btns { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.oa-menu-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; align-items: start; }
.oa-menu-card {
    border: 1px solid var(--yj-line); border-radius: 10px; padding: 12px; background: #FBFCFE;
    display: flex; flex-direction: column; gap: 10px; min-width: 0;
}
.oa-menu-card-head { display: grid; grid-template-columns: 22px minmax(0, 1fr) 32px; align-items: center; gap: 8px; }
.oa-menu-idx {
    width: 22px; height: 22px; border-radius: 50%; background: #EFF6FF; color: var(--yj-primary);
    display: inline-flex; align-items: center; justify-content: center; font-size: 11.5px; font-weight: 600;
}
.oa-menu-kids { display: flex; flex-direction: column; gap: 8px; }
.oa-kid { display: flex; flex-direction: column; gap: 6px; padding-top: 8px; border-top: 1px dashed var(--yj-line); }
.oa-kid-head { display: grid; grid-template-columns: minmax(0, 1fr) 32px; align-items: center; gap: 6px; }
.oa-field-row { display: flex; align-items: center; gap: 6px; min-width: 0; }
.oa-field-row .el-input { flex: 1; min-width: 0; }
.oa-leaf { padding-top: 2px; }
.oa-menu-foot { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; padding-top: 8px; border-top: 1px dashed var(--yj-line); }
.oa-menu-foot .cell-sub { margin: 0; }
.oa-menu-add {
    min-height: 132px; border: 1px dashed #CBD5E1; border-radius: 10px; background: #F8FAFC;
    display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px;
    color: #94A3B8; font-size: 12.5px; cursor: pointer;
}
.oa-menu-add:hover { border-color: var(--yj-primary); color: var(--yj-primary); }

@media (max-width: 900px) {
    .pm-table { display: none; }
    .pm-cards { display: grid; grid-template-columns: 1fr; gap: 10px; flex: 1; min-height: 0; overflow-y: auto; align-content: start; padding-right: 2px; }
    .wx-msg-table { display: none; }
    .wx-msg-cards { display: grid; grid-template-columns: 1fr; gap: 10px; }
    .wx-banner-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .oa-menu-list { grid-template-columns: 1fr; }
}
@media (max-width: 700px) {
    .wx-config-grid { grid-template-columns: 1fr; }
    .wx-span2 { grid-column: auto; }
    .wx-msg { padding: 14px 14px 16px; }
    .wx-callback code { min-width: 100%; order: 3; }
    .wx-callback .wx-verify { order: 4; margin-left: 0; }
    .wx-banner-preview img { width: 100%; height: auto; aspect-ratio: 16 / 9; }
    .wx-field-row { grid-template-columns: minmax(0, 1fr) 16px minmax(0, 1fr) 28px; gap: 5px; }
    .oa-menu-head { align-items: flex-start; }
    .oa-menu-btns { width: 100%; justify-content: flex-end; }
    .wx-follow-qr-body { min-width: 0; }
    .wx-mode-summary { gap: 6px 12px; }
    .pm-card-meta { grid-template-columns: 1fr; }
}


/* ---------- 员工工作状态（ADR-060） ---------- */
.staff-opt { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-width: 150px; }
.staff-opt-tip { flex: 0 0 auto; font-style: normal; font-size: 11.5px; color: #667085; }
.staff-opt-tip.on { color: #067647; }
.staff-opt-tip.wait { color: #B54708; }
.staff-opt-tip.block { color: #B42318; }
.staff-state-line {
    display: flex; align-items: center; gap: 6px;
    margin: -4px 0 12px; font-size: 12px; color: #667085;
}
.wsdot {
    display: inline-block; width: 7px; height: 7px; flex: 0 0 auto;
    border-radius: 50%; background: #98A2B3; vertical-align: middle;
}
.wsdot.ws-1 { background: #12B76A; }
.wsdot.ws-2 { background: #F79009; }
.wsdot.ws-3 { background: #2E90FA; }
.wsdot.ws-4 { background: #F04438; }
.work-cell { display: flex; align-items: center; gap: 6px; }
.work-cell-text { font-size: 12.5px; color: #344054; white-space: nowrap; }
.work-cell .el-switch { margin-left: auto; }

/* 工作台待支付（防逃单） */
.db-pend-badge {
    display: inline-block; margin-left: 8px; padding: 1px 8px; border-radius: 999px;
    background: #FEE4E2; color: #B42318; font-size: 12px; font-style: normal; font-weight: 600; vertical-align: middle;
}
.db-pend-sum {
    display: flex; flex-wrap: wrap; gap: 10px; padding: 4px 0 14px;
}
.db-pend-stat {
    flex: 1 1 130px; min-width: 120px; padding: 10px 14px; border-radius: 10px;
    background: #F8FAFC; border: 1px solid #E7ECF3;
}
.db-pend-stat span { display: block; font-size: 12px; color: #667085; }
.db-pend-stat b { display: block; margin-top: 4px; font-size: 20px; color: #101828; line-height: 1.2; }
.db-pend-stat b small { margin-left: 2px; font-size: 12px; font-weight: 400; color: #667085; }
.db-pend-stat.warn { background: #FFFAEB; border-color: #FEDF89; }
.db-pend-stat.warn b { color: #B54708; }
.db-pend-stat.danger { background: #FEF3F2; border-color: #FECDCA; }
.db-pend-stat.danger b { color: #B42318; }
.db-wait { display: inline-block; padding: 2px 8px; border-radius: 6px; font-size: 12.5px; background: #F2F4F7; color: #475467; white-space: nowrap; }
.db-wait.lv1 { background: #FFFAEB; color: #B54708; font-weight: 600; }
.db-wait.lv2 { background: #FEE4E2; color: #B42318; font-weight: 700; }
.db-pend-price { color: #101828; }
.db-row-danger { background: #FFF4F3 !important; }
.db-row-danger .db-wait.lv2 { background: #FDA29B; color: #7A271A; }
.db-row-warn { background: #FFFCF2; }
.cell-main { font-size: 13px; color: #101828; }
.cell-sub { margin-top: 2px; font-size: 11.5px; color: #98A2B3; }
.db-pend-more { padding-top: 8px; font-size: 12px; color: #98A2B3; text-align: right; }
.db-pend-blank { display: flex; align-items: center; gap: 10px; padding: 14px 18px; }
.db-pend-ok { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 600; color: #067647; }

/* 短信管理 */
.sms-sum { display: flex; flex-wrap: wrap; gap: 12px; padding: 14px 16px; margin-bottom: 12px; }
.sms-sum-tile { flex: 1 1 190px; min-width: 170px; padding: 12px 16px; border-radius: 10px; background: #F8FAFC; border: 1px solid #E7ECF3; }
.sms-sum-label { display: block; font-size: 12px; color: #667085; }
.sms-sum-val { margin-top: 6px; font-size: 22px; font-weight: 700; color: #101828; line-height: 1.15; }
.sms-sum-val small { margin-left: 3px; font-size: 12px; font-weight: 400; color: #667085; }
.sms-sum-val.sms-sum-text { font-size: 16px; }
.sms-sum-sub { display: block; margin-top: 4px; font-size: 12px; color: #98A2B3; }
.sms-plus { color: #067647; }
.sms-tip { margin: 0 0 4px; font-size: 12px; color: #98A2B3; }
/* 手机端短信统计卡片一行 4 列，字号收紧 */
@media (max-width: 900px) {
    .sms-sum { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; padding: 10px; }
    .sms-sum-tile { flex: none; min-width: 0; padding: 8px 6px; border-radius: 8px; }
    .sms-sum-label { font-size: 10px; line-height: 1.3; }
    .sms-sum-val { margin-top: 4px; font-size: 15px; }
    .sms-sum-val small { margin-left: 2px; font-size: 9px; }
    .sms-sum-val.sms-sum-text { font-size: 11px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
    .sms-sum-sub { margin-top: 3px; font-size: 9px; line-height: 1.35; }
}

/* 顶栏员工端二维码（v1.94） */
.top-qr-btn {
    display: inline-flex; align-items: center; gap: 6px;
    height: 34px; padding: 0 12px;
    border: 1px solid #E3E7EE; background: #fff; border-radius: 17px;
    color: #4E5969; font-size: 13px; cursor: pointer; transition: all .15s;
}
.top-qr-btn:hover { color: #2F6BFF; border-color: #C9D8FF; background: #F5F8FF; }
.top-qr-btn .el-icon { font-size: 15px; }
.staff-qr { text-align: center; }
.staff-qr-code { display: inline-block; padding: 10px; background: #fff; border: 1px solid #EEF1F5; border-radius: 12px; }
.staff-qr-code svg { display: block; width: 220px; height: 220px; }
.staff-qr-code img { display: block; width: 220px; height: 220px; object-fit: contain; }
.entry-qr-code { cursor: pointer; }
.entry-qr-code svg { width: 240px; height: 240px; }
.staff-qr-fallback { margin: 0 auto 12px; padding: 24px 12px; max-width: 240px; border: 1px dashed #E3E7EE; border-radius: 12px; color: #98A2B3; font-size: 12px; line-height: 1.6; }
.staff-qr-tip { margin: 14px 0 4px; font-size: 14px; font-weight: 600; color: #1F2329; }
.staff-qr-url { margin: 0; font-size: 12px; color: #8A94A6; word-break: break-all; }
.staff-qr-desc { margin: 10px 0 0; font-size: 12px; color: #98A2B3; line-height: 1.6; }
.staff-qr-open { margin-top: 14px; width: 100%; }
.scope-store-note { padding: 7px 10px; border-radius: 8px; background: #F7F9FC; color: #5A6474; font-size: 12px; line-height: 1.6; }
@media (max-width: 767px) {
    .top-qr-btn span { display: none; }
    .top-qr-btn { padding: 0 9px; }
}

/* ---------- 业务趋势 ---------- */
.trend-period {
    display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
    padding: 10px 14px; border: 1px solid #E7EEFB; border-radius: 8px;
    background: linear-gradient(120deg, #F7FAFF, #FFFFFF); color: #33507A; font-size: 12.5px;
}
.trend-period span { color: var(--yj-muted); }

.trend-growth {
    display: inline-flex; align-items: center; padding: 1px 7px; border-radius: 10px;
    font-size: 11.5px; font-weight: 600; line-height: 18px; white-space: nowrap; font-variant-numeric: tabular-nums;
}
.trend-growth.up { color: #059669; background: #ECFDF5; }
.trend-growth.down { color: #DC2626; background: #FEF2F2; }
.trend-growth.flat { color: #64748B; background: #F1F5F9; }
.trend-growth.new { color: #2563EB; background: #EFF6FF; }

.trend-grid { display: grid; grid-template-columns: minmax(0, 1.65fr) minmax(0, 1fr); gap: 16px; }
.trend-chart-card, .trend-store-card { display: flex; flex-direction: column; min-width: 0; }
.trend-items-card { display: flex; flex-direction: column; min-width: 0; margin-top: 16px; }
.trend-itemmap { position: relative; height: 300px; border-radius: 10px; overflow: hidden; background: #FAFAFA; }
.trend-item-block {
    position: absolute; box-sizing: border-box;
    border: 2px solid #fff; border-radius: 8px;
    padding: 12px 14px; overflow: hidden;
    display: flex; flex-direction: column; justify-content: flex-start;
    cursor: default; transition: filter .15s, transform .15s;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .35);
}
.trend-item-block:hover { filter: brightness(1.04) saturate(1.05); }
.trend-item-block b { font-size: 13.5px; font-weight: 600; line-height: 1.35; letter-spacing: .01em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.trend-item-block span { font-size: 16px; font-weight: 700; line-height: 1.4; font-variant-numeric: tabular-nums; }
.trend-item-block i { font-size: 11.5px; font-style: normal; opacity: .78; }
.trend-item-block.compact { padding: 4px 10px; }
.trend-item-block.compact b { font-size: 11.5px; line-height: 1.25; }
.trend-legend { display: flex; align-items: center; gap: 14px; color: var(--yj-sub); font-size: 12px; flex-wrap: wrap; }
.trend-legend span { display: inline-flex; align-items: center; gap: 5px; white-space: nowrap; }
.trend-legend .dot { width: 8px; height: 8px; border-radius: 2px; display: inline-block; }
.trend-legend .dot.turnover { background: #C7D2E4; }
.trend-legend .dot.revenue { background: #2563EB; }
.trend-legend .dot.cash { background: #EF4444; }
.trend-legend .dot.turnover-line { background: #94A3B8; border-radius: 50%; }
.trend-legend .dot.volume { background: #38BDF8; border-radius: 2px 2px 0 0; }
.trend-legend .dot.new { background: #F59E0B; border-radius: 2px 2px 0 0; }

.trend-active-strip {
    display: flex; align-items: center; gap: 16px; flex-wrap: wrap;
    padding: 8px 12px; margin-bottom: 10px; border-radius: 7px; background: #F8FAFD;
    color: var(--yj-muted); font-size: 12px; min-height: 38px;
}
.trend-active-strip b { color: var(--yj-ink); font-size: 13px; }
.trend-active-strip em { color: #1F2937; font-style: normal; font-weight: 600; margin-left: 2px; font-variant-numeric: tabular-nums; }

.trend-store-list { flex: 1; min-height: 0; overflow: auto; }
.trend-store-row { display: flex; align-items: center; gap: 10px; padding: 8px 0; border-bottom: 1px dashed #F1F4F8; }
.trend-store-row:last-child { border-bottom: 0; }
.trend-store-row .rank {
    width: 20px; height: 20px; flex: none; border-radius: 6px; background: #F1F5F9; color: #64748B;
    display: inline-flex; align-items: center; justify-content: center; font-size: 11px; font-weight: 600;
}
.trend-store-row .rank.top { background: #EFF6FF; color: #2563EB; }
.trend-store-row .main { flex: 1; min-width: 0; }
.trend-store-row .name { display: flex; align-items: center; justify-content: space-between; gap: 8px; font-size: 12.5px; }
.trend-store-row .name b { color: #1F2937; font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.trend-store-row .name em { color: var(--yj-muted); font-style: normal; font-size: 11.5px; flex: none; }
.trend-store-row .bar { height: 5px; margin-top: 6px; border-radius: 3px; background: #F1F5F9; overflow: hidden; }
.trend-store-row .bar i { display: block; height: 100%; border-radius: 3px; background: linear-gradient(90deg, #93C5FD, #2563EB); }
.trend-store-row .val { flex: none; text-align: right; min-width: 86px; }
.trend-store-row .val b { display: block; font-size: 12.5px; color: #1F2937; font-variant-numeric: tabular-nums; }
.trend-store-row .val span { display: block; margin-top: 2px; font-size: 11px; color: var(--yj-muted); }
.trend-store-row .val .trend-growth { padding: 0; background: none; }

.trend-view-switch { display: inline-flex; padding: 2px; border-radius: 7px; background: #F1F5F9; margin-left: 2px; margin-right: auto; }
.trend-view-switch button {
    border: 0; background: none; padding: 4px 12px; border-radius: 5px; cursor: pointer;
    font-family: inherit; font-size: 12px; color: #64748B; transition: background .15s, color .15s;
}
.trend-view-switch button.active { background: #fff; color: #2563EB; font-weight: 600; box-shadow: 0 1px 3px rgba(15, 23, 42, .12); }
.trend-plot { display: flex; height: 328px; }
.trend-y-axis { position: relative; width: 54px; flex: none; height: 300px; }
.trend-y-axis span { position: absolute; right: 8px; transform: translateY(-50%); font-size: 11px; color: var(--yj-muted); font-variant-numeric: tabular-nums; }
.trend-y-axis .trend-vol-axis { font-size: 10px; color: #94A3B8; letter-spacing: .04em; }
.trend-plot-inner { position: relative; flex: 1; min-width: 0; height: 300px; }
.trend-svg { position: absolute; left: 0; top: 0; width: 100%; height: 300px; display: block; overflow: visible; }
.trend-grid-line { stroke: #EEF2F7; stroke-width: 1; stroke-dasharray: 4 4; }
.trend-divider { stroke: #E2E8F0; stroke-width: 1; }
.trend-vol-base { stroke: #E2E8F0; stroke-width: 1; }
.trend-area { fill: url(#trendArea); }
.trend-line { fill: none; stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.trend-line.revenue { stroke: #2563EB; }
.trend-line.turnover { stroke: #94A3B8; stroke-dasharray: 5 4; }
.trend-line.cash { stroke: #EF4444; stroke-width: 1.6; }
.trend-vol-bar { fill: url(#trendVol); transition: fill .15s; }
.trend-vol-bar.active { fill: #0EA5E9; }
.trend-vol-bar.new { fill: #F59E0B; }
.trend-vol-bar.new.active { fill: #D97706; }
.trend-marker {
    position: absolute; width: 10px; height: 10px; border-radius: 50%; background: #fff;
    border: 2px solid #2563EB; transform: translate(-50%, -50%); pointer-events: none;
    box-shadow: 0 2px 8px rgba(37, 99, 235, .35); z-index: 2;
}
.trend-x-axis { position: absolute; left: 0; right: 0; top: 302px; height: 20px; }
.trend-x-axis span { position: absolute; transform: translateX(-50%); font-size: 11px; color: var(--yj-muted); white-space: nowrap; }

@media (max-width: 1200px) {
    .trend-grid { grid-template-columns: 1fr; }
    .trend-store-list { max-height: 320px; }
}
@media (max-width: 767px) {
    .trend-period span { display: block; }
    .trend-legend { gap: 10px; }
    .trend-active-strip { gap: 10px; padding: 8px 10px; }
    .trend-y-axis { width: 42px; }
    .trend-itemmap { height: 200px; }
    .trend-chart-card .panel-title { flex-wrap: wrap; }
}

/* 手机端单日历区间选择（预约取票） */
.mcal { width: 100%; }
.mcal-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 6px; }
.mcal-title { font-size: 13px; font-weight: 600; color: #334155; }
.mcal-nav { width: 28px; height: 28px; line-height: 26px; text-align: center; font-size: 18px; color: #64748b; border-radius: 6px; cursor: pointer; user-select: none; }
.mcal-nav:active { background: #f1f5f9; }
.mcal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 2px; text-align: center; }
.mcal-wd { padding: 4px 0; font-size: 11px; color: #94a3b8; }
.mcal-cell { height: 32px; line-height: 32px; font-size: 13px; color: #334155; border-radius: 6px; cursor: pointer; }
.mcal-cell.empty { cursor: default; }
.mcal-cell.today { color: #e11d48; font-weight: 600; }
.mcal-cell.in-range { background: #fee2e2; color: #b91c1c; border-radius: 0; }
.mcal-cell.edge { background: #e11d48; color: #fff; font-weight: 600; }
.mcal-tip { margin-top: 8px; text-align: center; font-size: 12px; color: #64748b; }
.mcal-foot { margin-top: 4px; text-align: center; }
.mcal-clear { font-size: 12px; color: #94a3b8; cursor: pointer; }
.mcal-clear:active { color: #e11d48; }
