@charset "UTF-8";
/* ============================================================
   upload-record.css — 上品记录
   表格 筛选区 底部分页 悬浮按钮 右键菜单 的外观与动画和上品管理完全一致：
   页面同时引用 pre-quality-management.css，这里只放本页新增的部分，类名统一 ur- 前缀。

   目录
     1. 配色补充（青色）
     2. 多选下拉（提交用户 店铺账户）
     3. 店铺账户单元格（上方店铺账户 下方店铺ID）
     4. 日期单元格 / 强制上品
     5. 撤销上品（右键菜单项 / 撤销中 / 移除动画）
     6. 手机卡片
   ============================================================ */

/* ---------- 1. 配色补充 ---------- */
.t-cyan { --st: 8, 145, 178; --st-fg: #0e7490; }
[data-theme="dark"] .t-cyan { --st: 34, 211, 238; --st-fg: #67e8f9; }

/* ---------- 2. 多选下拉（外观同上品管理的筛选下拉，选项可以多选，菜单不收起） ---------- */
.ur-mpick .pq-pick-menu {
    display: flex;
    flex-direction: column;
    width: max(100%, 250px);
}
.ur-mpick.is-wide .pq-pick-menu { width: max(100%, 300px); }
/* 靠近右侧时向左展开，不伸到悬浮按钮下面 */
.ur-mpick.align-right .pq-pick-menu { left: auto; right: 0; transform-origin: top right; }

.ur-mp-search {
    position: relative;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    gap: 8px;
    height: 34px;
    margin: 0 0 6px;
    padding: 0 6px 0 10px;
    box-sizing: border-box;
    border: 1px solid var(--glass-border);
    border-radius: 8px;
    background: var(--glass-bg);
    cursor: text;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.ur-mp-search:focus-within { border-color: rgb(var(--st)); box-shadow: 0 0 0 3px rgba(var(--st), 0.12); }
.ur-mp-search > i { font-size: 0.74rem; color: var(--text-secondary); opacity: 0.75; transition: color 0.2s ease, transform 0.3s var(--ease-spring); }
.ur-mp-search:focus-within > i { color: rgb(var(--st)); opacity: 1; transform: scale(1.1); }
.ur-mp-in {
    flex: 1;
    min-width: 0;
    height: 100%;
    margin: 0;
    padding: 0;
    border: none;
    outline: none;
    background: transparent;
    color: var(--text-primary);
    font-family: inherit;
    font-size: 0.82rem;
}
.ur-mp-in::placeholder { color: var(--text-secondary); opacity: 0.75; }
.ur-mp-qx {
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    padding: 0;
    border: none;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.6rem;
    color: var(--text-secondary);
    background: rgba(148, 163, 184, 0.16);
    cursor: pointer;
    animation: popIn 0.25s var(--ease-spring);
    transition: background-color 0.15s ease, color 0.15s ease;
}
.ur-mp-qx:hover { color: #fff; background: #ef4444; }

.ur-mp-list {
    max-height: 288px;
    margin: 0 -3px;
    padding: 0 3px;
    overflow-y: auto;
    overscroll-behavior: contain;
    scrollbar-width: thin;
    scrollbar-color: rgba(148, 163, 184, 0.45) transparent;
}
.ur-mp-list .pq-pick-opt { padding: 7px 10px; }
.ur-mp-name { display: flex; flex-direction: column; gap: 1px; line-height: 1.25; }
.ur-mp-name b,
.ur-mp-name em { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.ur-mp-name b { font-size: 0.84rem; font-weight: 600; }
.ur-mp-name em { font-style: normal; font-size: 0.7rem; font-weight: 500; color: var(--text-secondary); font-variant-numeric: tabular-nums; }
.pq-pick-opt.active .ur-mp-name b { font-weight: 800; }
.ur-mp-name mark { padding: 0 1px; border-radius: 3px; background: rgba(245, 158, 11, 0.3); color: inherit; }

/* 选项前面的头像：用户圆形 店铺圆角方块，按名字上色 */
.ur-mp-av {
    flex: 0 0 26px;
    height: 26px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-style: normal;
    font-size: 0.72rem;
    font-weight: 800;
    color: #fff;
    background: linear-gradient(135deg, hsl(var(--h, 220), 68%, 60%), hsl(calc(var(--h, 220) + 28), 68%, 48%));
    box-shadow: 0 2px 6px hsla(var(--h, 220), 68%, 50%, 0.28);
    transition: transform 0.25s var(--ease-spring);
}
.ur-mp-av.is-store { border-radius: 8px; font-size: 0.64rem; }
.ur-mp-av.is-none { color: var(--text-secondary); background: rgba(127, 127, 127, 0.16); box-shadow: none; }
.pq-pick-opt.active .ur-mp-av { transform: scale(1.08); }

.ur-mp-state {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px;
    font-size: 0.78rem;
    color: var(--text-secondary);
    white-space: normal;
}
.ur-mp-state.is-error { color: #ef4444; }
.ur-mp-retry {
    margin-left: auto;
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    height: 24px;
    padding: 0 9px;
    border: none;
    border-radius: 7px;
    background: rgba(239, 68, 68, 0.1);
    color: #ef4444;
    font-family: inherit;
    font-size: 0.72rem;
    font-weight: 700;
    cursor: pointer;
}
.ur-mp-retry:hover { background: rgba(239, 68, 68, 0.18); }
.ur-mp-skel { display: flex; align-items: center; gap: 9px; padding: 7px 10px; animation: pqPulse 1.2s ease-in-out infinite; animation-delay: calc(var(--i, 0) * 0.1s); }
.ur-mp-skel i { flex: 0 0 26px; height: 26px; border-radius: 50%; background: rgba(148, 163, 184, 0.22); }
.ur-mp-skel b { flex: 1; height: 10px; border-radius: 5px; background: rgba(148, 163, 184, 0.22); }

/* ---------- 3. 店铺账户单元格：左边按店铺账户上色的方块图标，右边上方店铺账户（别名小标）下方店铺ID ---------- */
.ur-store { display: flex; align-items: center; gap: 10px; min-width: 0; width: 100%; }
.ur-store-av {
    position: relative;
    flex: 0 0 32px;
    height: 32px;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-style: normal;
    font-size: 0.76rem;
    color: #fff;
    background: linear-gradient(135deg, hsl(var(--h, 200), 70%, 58%), hsl(calc(var(--h, 200) + 32), 68%, 46%));
    box-shadow: 0 3px 8px hsla(var(--h, 200), 68%, 48%, 0.28);
}
.ur-store-txt { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; line-height: 1.2; }
.ur-store-top { display: flex; align-items: center; gap: 6px; min-width: 0; }
.ur-store-name {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 0.86rem;
    font-weight: 700;
    color: var(--text-primary);
}
.ur-store-alias {
    flex: 0 1 auto;
    min-width: 0;
    max-width: 48%;
    height: 18px;
    padding: 0 6px;
    box-sizing: border-box;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    border-radius: 5px;
    font-style: normal;
    font-size: 0.66rem;
    font-weight: 700;
    line-height: 16px;
    color: hsl(var(--h, 200), 55%, 36%);
    background: hsla(var(--h, 200), 75%, 50%, 0.1);
    border: 1px solid hsla(var(--h, 200), 60%, 45%, 0.22);
}
[data-theme="dark"] .ur-store-alias { color: hsl(var(--h, 200), 75%, 74%); background: hsla(var(--h, 200), 75%, 55%, 0.14); border-color: hsla(var(--h, 200), 70%, 60%, 0.28); }
.ur-store-id {
    display: flex;
    align-items: center;
    gap: 5px;
    min-width: 0;
    white-space: nowrap;
    font-family: ui-monospace, SFMono-Regular, Consolas, "Liberation Mono", monospace;
    font-size: 0.74rem;
    font-weight: 600;
    color: var(--text-secondary);
    font-variant-numeric: tabular-nums;
}
.ur-store-id > i {
    flex-shrink: 0;
    height: 15px;
    padding: 0 4px;
    box-sizing: border-box;
    border: 1px solid var(--glass-border);
    border-radius: 4px;
    background: var(--pq-chip-bg);
    font-family: inherit;
    font-style: normal;
    font-size: 0.58rem;
    font-weight: 800;
    line-height: 13px;
    letter-spacing: 0.4px;
}
.ur-store-id > span { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
/* 店铺列表还在获取：方块是流光占位，店铺账户位置一条占位条，店铺ID 先显示 */
.ur-store.is-pending .ur-store-av,
.ur-store-skel {
    background: linear-gradient(100deg, rgba(var(--accent-rgb), 0.1) 30%, rgba(var(--accent-rgb), 0.24) 50%, rgba(var(--accent-rgb), 0.1) 70%);
    background-size: 220% 100%;
    box-shadow: none;
    animation: userSkel 1.2s linear infinite;
}
.ur-store-skel { display: block; width: 72%; height: 11px; border-radius: 6px; }
/* 店铺列表里没有这个店铺ID（或者获取失败）：灰色方块 */
.ur-store.is-unknown .ur-store-av { color: var(--text-secondary); background: rgba(127, 127, 127, 0.16); box-shadow: none; }
.ur-store.is-unknown .ur-store-name { font-weight: 600; color: var(--text-secondary); }
/* 对出店铺账户后：方块和名字轻轻浮现（关键帧与来自用户共用） */
.ur-store.is-in .ur-store-av { animation: userAvIn 0.42s var(--ease-spring); }
.ur-store.is-in .ur-store-top { animation: userNameIn 0.36s var(--ease-out); }

/* 提交用户：名字占满格子剩下的宽度，拉宽列后完整显示 */
.glass-table td.c-user > .pq-user { display: flex; flex: 1 1 auto; width: 100%; }
.glass-table td.c-user > .pq-user b { flex: 1 1 0; }

/* ---------- 4. 日期单元格 / 强制上品 ---------- */
.ur-date {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    gap: 3px;
    line-height: 1.2;
    white-space: nowrap;
    font-variant-numeric: tabular-nums;
}
.ur-date b { font-size: 0.86rem; font-weight: 700; letter-spacing: 0.2px; color: var(--text-primary); }
.ur-date em { display: inline-flex; align-items: center; gap: 5px; font-style: normal; font-size: 0.72rem; color: var(--text-secondary); }
/* 时间前面的小圆点区分三种日期：创建 主色 / 冻结 青色 / 上品 绿色 */
.ur-date em::before {
    content: '';
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--accent-color);
    box-shadow: 0 0 0 2px rgba(var(--accent-rgb), 0.16);
}
.ur-date.is-frozen em::before { background: #06b6d4; box-shadow: 0 0 0 2px rgba(6, 182, 212, 0.16); }
.ur-date.is-upload em::before { background: #10b981; box-shadow: 0 0 0 2px rgba(16, 185, 129, 0.16); }
.ur-no { font-size: 0.8rem; color: var(--text-secondary); opacity: 0.6; white-space: nowrap; }

/* ---------- 5. 撤销上品 ---------- */
.context-menu .menu-item[data-act="undo"] > i { color: #ef4444; }
/* 指向时箭头逆时针转一整圈（像倒带），停下时仍是正的 */
.context-menu .menu-item[data-act="undo"].is-active > i { color: #fff; transform: rotate(-360deg) scale(1.12); }
.context-menu .menu-item[data-act="undo"] > i { transition: transform 0.5s var(--ease-out), color 0.18s ease; }
.context-menu[data-glide="undo"] .menu-glide {
    background: linear-gradient(135deg, #ef4444, #dc2626);
    box-shadow: 0 6px 14px rgba(239, 68, 68, 0.32);
}

/* 撤销中：整行扫过一道淡红色的光，状态徽章轻轻闪烁 */
.glass-table tbody tr.pq-row.ur-undoing::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 7;
    pointer-events: none;
    background: linear-gradient(90deg, transparent, rgba(239, 68, 68, 0.14), transparent) no-repeat;
    background-size: 40% 100%;
    animation: urScan 1.1s linear infinite;
}
@keyframes urScan {
    from { background-position: -60% 0; }
    to   { background-position: 160% 0; }
}
.ur-undoing .status-badge { animation: pqPulse 0.8s ease-in-out infinite; }
.pq-card.ur-undoing { box-shadow: 0 0 0 2px rgba(239, 68, 68, 0.3), var(--glass-shadow); }

/* 撤销成功：先染一下淡红再向左滑出淡掉，随后这一行收起高度，下面的行顺势补上 */
.glass-table tbody tr.pq-row.ur-undone { animation: urRowOut 0.34s var(--ease-std) forwards; pointer-events: none; }
.glass-table tbody tr.pq-row.ur-undone > td { background: color-mix(in srgb, var(--pq-row-bg) 90%, #ef4444); }
@keyframes urRowOut {
    0%   { opacity: 1; transform: none; }
    35%  { opacity: 1; transform: translateX(4px); }
    100% { opacity: 0; transform: translateX(-28px); }
}
.glass-table tbody tr.pq-row.ur-collapse > td {
    height: 0;
    min-height: 0;
    padding-top: 0;
    padding-bottom: 0;
    border-bottom-width: 0;
    overflow: hidden;
    transition: min-height 0.26s var(--ease-std), padding 0.26s var(--ease-std);
}
.pq-card.ur-undone { animation: urCardOut 0.36s var(--ease-std) forwards; pointer-events: none; }
@keyframes urCardOut {
    35%  { opacity: 1; transform: translateX(4px); }
    100% { opacity: 0; transform: translateX(-32px) scale(0.98); }
}

/* ---------- 6. 手机卡片 ---------- */
.ur-card .pq-card-head .pq-ident { gap: 6px; }
.ur-card .pq-card-meta + .pq-sec { border-top: none; }
.ur-card .pq-meta-item { justify-content: center; }
.ur-card .pq-meta-item .ur-date { align-items: flex-start; }
.ur-card .pq-meta-item .ur-store-av { flex-basis: 30px; height: 30px; border-radius: 9px; }
.ur-card .pq-meta-item .pq-user b { font-size: 0.86rem; }
.ur-card-note { font-size: 0.82rem; line-height: 1.6; color: var(--text-primary); white-space: pre-line; overflow-wrap: anywhere; }
