/* ============================================================================
   PC 后台组件样式：toast / 菜单（2026-11-20）
   ！！！这里是唯一来源：base.html 与 static/ui-kit.html 都引它。
   别把样式搬回 base.html 内联，也别在页面里复制一份 —— 两处各写必然漂移。
   图标/按钮等基础观感来自 ant-theme.css，本文件只管这两个浮层。
   ============================================================================ */

/* ── 全局反馈：toast 与确认弹窗（2026-11-20）──────────────────────
   为什么加：37 个 PC 页共 184 处 alert + 48 处 confirm，保存/删除全在弹系统框。
   用法见《门店通UI设计规范》§10.5：
     showToast('已保存', 'ok')           —— 轻反馈，3s 自动消失
     await uiConfirm({title, body, danger:true, okText:'删除 3 条'})
                                         —— 破坏性操作，返回 Promise<boolean>
   校验错误优先写行内（字段下方红字），不要用 toast 顶替。
   ⚠️ 新代码不许再写 alert() / confirm()。 */
.ui-toast-wrap{ position: fixed; top: 72px; left: 50%; transform: translateX(-50%);
    z-index: 9999; display: flex; flex-direction: column; align-items: center;
    gap: 8px; pointer-events: none; }
.ui-toast{ pointer-events: auto; display: flex; align-items: flex-start; gap: 10px;
    min-width: 260px; max-width: 560px; background: #fff;
    border: 1px solid var(--ad-border-split); border-left: 3px solid var(--ad-primary);
    border-radius: 4px; box-shadow: 0 6px 16px rgba(0,0,0,.12);
    padding: 10px 14px; font-size: 14px; line-height: 1.55; color: rgba(0,0,0,.85);
    animation: uiToastIn .16s ease-out; }
.ui-toast--ok{ border-left-color: #52c41a; }
.ui-toast--warn{ border-left-color: #faad14; }
.ui-toast--err{ border-left-color: #ff4d4f; }
.ui-toast .t{ flex: 1; min-width: 0; }
.ui-toast .x{ border: 0; background: none; color: rgba(0,0,0,.45);
    cursor: pointer; font-size: 16px; line-height: 1; padding: 0 0 0 2px; }
@keyframes uiToastIn{ from{ opacity: 0; transform: translateY(-6px); } to{ opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce){ .ui-toast{ animation: none; } }
/* 「更多」菜单：挂在 body 上，避免被 .table-card{overflow:hidden} 裁掉 */
.ui-menu{ position: fixed; z-index: 9998; background: #fff;
    border: 1px solid var(--ad-border-split); border-radius: 4px;
    box-shadow: 0 6px 16px rgba(0,0,0,.12); padding: 4px; min-width: 140px; }
.ui-menu button{ display: block; width: 100%; text-align: left; border: 0;
    background: none; padding: 7px 10px; font-size: 13px; color: rgba(0,0,0,.85);
    border-radius: 3px; cursor: pointer; white-space: nowrap; }
.ui-menu button:hover{ background: #f5f5f5; }
.ui-menu button.danger{ color: #c0392b; }

/* ── 列表页结构（2026-11-20 从 base.html 搬来）：base 与 ui-kit-pc 共用 ── */
/* ── Table（表格容器；单元格/表头还有一层在 ant-theme.css）──────── */
.table-card {
    background: #fff; border: 1px solid var(--ad-border-split);
    border-radius: var(--ad-radius); box-shadow: var(--ad-shadow-card);
    overflow: hidden;
}
.table-card .table-header {
    padding: 16px 24px; border-bottom: 1px solid var(--ad-border-split);
    display: flex; align-items: center; justify-content: space-between;
    flex-wrap: wrap; row-gap: 8px;
}
.table-card table { margin: 0; }
.table-card table th {
    background: #fafafa; border-bottom: 1px solid var(--ad-border-split);
    font-size: 14px; font-weight: 500; color: rgba(0,0,0,.85);
    text-transform: none; letter-spacing: 0; white-space: nowrap;
    padding: 16px;
}
.table-card table td {
    padding: 16px; font-size: 14px; vertical-align: middle;
    color: rgba(0,0,0,.85); border-bottom: 1px solid var(--ad-border-split);
}
.table-card tbody tr:last-child td { border-bottom: none; }
.table-card tbody tr:hover { background: #fafafa; }

/* ── Pagination ──────────────────────────────────────────────────── */
.pagination-wrapper { padding: 16px 24px; display: flex; align-items: center; justify-content: space-between; }
.pagination-wrapper .page-info { font-size: 14px; color: rgba(0,0,0,.65); }

/* ── Filters ─────────────────────────────────────────────────────── */
.filter-bar { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.filter-bar .form-control, .filter-bar .form-select {
    font-size: 14px; border-color: #d9d9d9; max-width: 180px; height: 32px;
}
.filter-bar .form-control:focus, .filter-bar .form-select:focus {
    border-color: var(--ad-primary-hover); box-shadow: var(--ad-shadow-focus);
}
