/* 1108-16 全站统一组件（uk-*）。样板见 evidence/ui-unify-20261108（kit.css）。
   只补 os-*（unified.css）和 mn-*（mine.css）没有的通用件；颜色沿用现有变量。
   页面专属样式放各页自己的 CSS，不写在这里。 */
.uk{color:var(--ink);font-size:15px}
.uk *{box-sizing:border-box}
.uk em{font-style:normal}
/* 页头：大标题＋右侧最多一个次要入口（文字链接 / 日期 / 圆形加号） */
.uk-head{display:flex;align-items:center;gap:12px;margin:6px 0 12px}
.uk-head h1{font-size:30px;font-weight:600;letter-spacing:-.02em;margin:0;color:var(--ink);line-height:1.15}
.uk-head .r{margin-left:auto;display:flex;align-items:center;gap:12px}
.uk-head small{color:var(--muted);font-size:13px;white-space:nowrap}
.uk-head a,.uk-tl{color:var(--green);font-size:15px;text-decoration:none;white-space:nowrap;background:none;border:0;padding:0;min-height:0;cursor:pointer}
.uk-plus{width:34px;height:34px;min-height:0;border-radius:50%;background:var(--green);color:#fff;border:0;display:grid;place-items:center;font-size:22px;line-height:1;padding:0;flex:none}
.uk-back{display:flex;align-items:center;justify-content:space-between;gap:10px;margin:6px 0 4px}
.uk-back a{color:var(--green);font-size:15px;text-decoration:none}

/* 筛选行：一行胶囊，可横向滑动；不带字段名 */
.uk-filters{display:flex;align-items:center;gap:8px;overflow-x:auto;margin:0 0 10px;padding:2px 0;scrollbar-width:none}
.uk-filters::-webkit-scrollbar{display:none}
.uk-filters+.uk-filters{margin-top:-2px}
.uk-seg{display:inline-flex;gap:2px;background:#e9e7e1;border-radius:999px;padding:3px;flex:none}
.uk-seg span{font-size:14px;line-height:28px;padding:0 13px;border-radius:999px;color:#55554f;white-space:nowrap;font-weight:500}
.uk-seg span.on{background:var(--green);color:#fff;font-weight:600}
.uk-seg span b{font-weight:600;margin-left:4px;font-size:12px;opacity:.85}
.uk-pill{display:inline-flex;align-items:center;gap:6px;height:34px;padding:0 13px;border-radius:999px;background:#fffefa;border:1px solid #e6e3dc;font-size:14px;color:var(--ink);white-space:nowrap;flex:none}
.uk-pill.dd::after{content:'';width:6px;height:6px;border-right:1.5px solid #8e8e93;border-bottom:1.5px solid #8e8e93;transform:rotate(45deg) translateY(-2px);margin-left:2px}
.uk-pill.on{background:var(--green);border-color:var(--green);color:#fff;font-weight:600}
.uk-pill i.dot{width:8px;height:8px;border-radius:50%;background:var(--s,#6E726A);display:inline-block}
.uk-pill.store{background:var(--s);border-color:var(--s);color:#fff;font-weight:600}
.uk-pill.store.off{background:#efefea;border-color:#efefea;color:#686863}
.uk-search{display:flex;align-items:center;gap:8px;height:38px;border-radius:12px;background:#e9e7e1;padding:0 12px;color:var(--muted);font-size:16px;margin:0 0 10px}
.uk-search svg{width:17px;height:17px;flex:none}
.uk-filters .uk-search{margin:0;flex:1;min-width:150px;height:34px;border-radius:999px;font-size:14px}

/* 汇总卡 */
.uk-hero{background:#fffefa;border:1px solid #e6e3dc;border-radius:16px;padding:14px 16px;margin:0 0 16px}
.uk-hero .top{display:flex;align-items:center;gap:6px;flex-wrap:wrap}
.uk-hero .top .r{margin-left:auto;display:flex;gap:6px}
.uk-big{font-size:28px;font-weight:700;font-variant-numeric:tabular-nums;letter-spacing:-.01em;margin:8px 0 2px;display:flex;align-items:baseline;gap:8px}
.uk-big small{font-size:13px;font-weight:400;color:var(--muted)}
.uk-stats{display:grid;grid-template-columns:repeat(3,1fr);gap:8px;margin-top:10px}
.uk-stats div{background:#f6f4ef;border-radius:12px;padding:8px 10px}
.uk-stats small{display:block;font-size:12px;color:var(--muted)}
.uk-stats b{font-size:17px;font-variant-numeric:tabular-nums}
.uk-steps{display:flex;align-items:center;gap:6px;margin-top:10px;font-size:12px}
.uk-steps span{padding:1px 9px;border-radius:999px;background:#efefea;color:#686863;font-weight:600;line-height:18px}
.uk-steps span.on{background:var(--green);color:#fff}
.uk-steps i{width:12px;height:1px;background:#cfccc4}
.uk-bar{display:flex;height:20px;border-radius:7px;overflow:hidden;margin-top:10px;font-size:11px;color:#fff;font-weight:600}
.uk-bar span{display:grid;place-items:center;background:var(--s);white-space:nowrap}

/* 分组列表行（os-group 内） */
.uk-sec{margin:0 0 18px}
.uk-sec>h2{display:flex;align-items:center;gap:6px;font-size:13px;font-weight:600;color:var(--muted);margin:0 0 5px 16px;letter-spacing:.04em}
.uk-sec>h2 .r{margin-left:auto;margin-right:4px;font-weight:500;letter-spacing:0}
.uk-sec>h2 .uk-tl{font-size:13px}
.uk-row{display:flex;align-items:center;gap:10px;min-height:56px;padding:8px 14px 8px 16px;position:relative;color:var(--ink);text-decoration:none}
.uk-row+.uk-row::before,.uk-row+.uk-sub::before,.uk-sub+.uk-row::before{content:'';position:absolute;top:0;left:16px;right:0;height:1px;background:#e9e6df}
.uk-row.go::after{content:'';flex:none;width:8px;height:8px;border-right:2px solid #b9b6ae;border-top:2px solid #b9b6ae;transform:rotate(45deg);margin-right:3px}
.uk-row.sel{background:#f1f6f2}
.uk-row.short{min-height:48px}
.uk-main{flex:1;min-width:0;display:flex;flex-direction:column;gap:3px}
.uk-main>b{font-size:16px;font-weight:600;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.uk-main>b.n{font-weight:500}
.uk-meta{display:flex;align-items:center;gap:6px;flex-wrap:wrap;font-size:12px;color:var(--muted)}
.uk-meta .mn-store,.uk-meta .mn-tag,.uk-meta .uk-chip{font-size:11px;line-height:18px;padding:0 8px}
.uk-end{display:flex;flex-direction:column;align-items:flex-end;gap:3px;flex:none;text-align:right}
.uk-end b,.uk-amt{font-size:17px;font-weight:700;font-variant-numeric:tabular-nums}
.uk-end small{font-size:12px;color:var(--muted)}
.uk-chip{display:inline-block;font-size:12px;line-height:20px;padding:0 9px;border-radius:999px;background:#efefea;color:#55554f;font-weight:600;white-space:nowrap;flex:none}
.uk-chip.info{background:#eaf0f7;color:#365b80}.uk-chip.purple{background:#f1eaf5;color:#73508f}.uk-chip.mint{background:#e5eee6;color:#2f5744}.uk-chip.err{background:#fbece5;color:#8b402f}.uk-chip.warn{background:#fff3d6;color:#795821}
.uk-thumb{width:44px;height:44px;border-radius:10px;background:linear-gradient(135deg,#e7e4dc,#d6d3ca);flex:none;display:grid;place-items:center;font-size:11px;color:#8b8a84}
.uk-av{width:36px;height:36px;border-radius:50%;background:var(--s,var(--green));color:#fff;display:grid;place-items:center;flex:none;font-size:15px;font-weight:600}
.uk-ic{width:30px;height:30px;border-radius:8px;display:grid;place-items:center;flex:none;background:var(--c);color:#fff;font-size:14px;font-weight:700}
.uk-sub{display:flex;align-items:center;gap:8px;padding:7px 14px 7px 30px;font-size:14px;background:#faf9f5;position:relative}
.uk-sub .uk-amt{margin-left:auto;font-size:15px}
.uk-ring{width:14px;height:14px;border-radius:50%;border:3px solid var(--s,#2f5744);flex:none}
.uk-check{width:22px;height:22px;border-radius:50%;border:1.5px solid #c9c6be;flex:none;background:#fff}
.uk-check.on{background:var(--green);border-color:var(--green);position:relative}
.uk-check.on::after{content:'';position:absolute;left:7px;top:3px;width:5px;height:10px;border-right:2px solid #fff;border-bottom:2px solid #fff;transform:rotate(45deg)}
.uk-step{display:flex;align-items:center;gap:0;border:1px solid #e6e3dc;border-radius:10px;overflow:hidden;flex:none;background:#fff}
.uk-step span{width:30px;text-align:center;font-size:17px;color:var(--green);line-height:30px}
.uk-step b{min-width:42px;text-align:center;font-size:15px;font-variant-numeric:tabular-nums;border-left:1px solid #eee;border-right:1px solid #eee;line-height:30px}

/* 表单：左字段右内容（分组卡内） */
.uk-field{display:flex;align-items:center;gap:12px;min-height:48px;padding:4px 16px;position:relative;font-size:16px}
.uk-field+.uk-field::before{content:'';position:absolute;top:0;left:16px;right:0;height:1px;background:#e9e6df}
.uk-field>span{flex:none;min-width:88px;color:var(--ink)}
.uk-field>em{margin-left:auto;color:#6b6a65;text-align:right;display:flex;align-items:center;gap:8px;min-width:0}
.uk-field>em.ph{color:#b0aea6}
.uk-field>em.dd::after{content:'';width:7px;height:7px;border-right:2px solid #b9b6ae;border-top:2px solid #b9b6ae;transform:rotate(45deg)}
.uk-field.req>span::after{content:' *';color:#b5362c}
.uk-toggle{width:44px;height:26px;border-radius:999px;background:#d8d6cf;position:relative;flex:none}
.uk-toggle::after{content:'';position:absolute;top:3px;left:3px;width:20px;height:20px;border-radius:50%;background:#fff;box-shadow:0 1px 2px rgba(0,0,0,.2)}
.uk-toggle.on{background:#34a853}.uk-toggle.on::after{left:21px}

/* 按钮与底部条 */
.uk-btn{display:inline-grid;place-items:center;height:44px;padding:0 18px;border-radius:12px;background:#fffefa;border:1px solid #dcd9d1;color:var(--ink);font-size:15px;font-weight:500;white-space:nowrap}
.uk-btn.primary{background:var(--green);border-color:var(--green);color:#fff;font-weight:600}
.uk-btn.wait{background:#a3b1a9;border-color:#a3b1a9;color:#fff}
.uk-btn.block{display:grid;width:100%}
.uk-actions{display:flex;gap:8px;align-items:center;margin-top:12px}
.uk-actions .uk-btn{flex:1}
.uk-savebar{position:relative;display:flex;align-items:center;justify-content:space-between;gap:10px;background:#fffefa;border:1px solid #e6e3dc;border-radius:16px;padding:10px 12px 10px 16px;box-shadow:0 4px 14px rgba(0,0,0,.06);margin:8px 0 0}
.uk-savebar span{font-size:13px;color:#8a4405}
.uk-savebar .r{display:flex;gap:6px;align-items:center}
.uk-savebar .uk-btn{height:38px;padding:0 16px}
.uk-empty{background:#fffefa;border:1px solid #e6e3dc;border-radius:16px;margin:0;padding:22px 16px;color:var(--muted);font-size:14px;text-align:center}
.uk-more{display:block;text-align:center;font-size:14px;color:var(--green);padding:12px 0}
.uk-warnline{display:flex;gap:8px;align-items:center;background:#fff3d6;color:#755919;border-radius:12px;padding:9px 14px;font-size:13px;margin:0 0 12px}
.uk-errline{display:flex;gap:8px;align-items:center;background:#fbece5;color:#8b402f;border-radius:12px;padding:9px 14px;font-size:13px;margin:0 0 12px}

/* 网格类（排班、考勤、矩阵）保留结构，只换外框和配色 */
.uk-grid{background:#fffefa;border:1px solid #e6e3dc;border-radius:16px;overflow:auto}
.uk-grid table{border-collapse:separate;border-spacing:0;width:100%;font-size:13px;background:none}
.uk-grid th,.uk-grid td{padding:8px 10px;border:0;border-bottom:1px solid #eeece6;text-align:left;white-space:nowrap;background:none!important}
.uk-grid thead th{font-size:12px;font-weight:600;color:var(--muted);background:#f6f4ef!important;position:sticky;top:0}
.uk-grid td.num,.uk-grid th.num{text-align:right;font-variant-numeric:tabular-nums}
.uk-grid tr.sel td{background:#f1f6f2!important}

/* 电脑宽度：左列表＋右详情 */
.uk-split{display:grid;grid-template-columns:minmax(0,420px) minmax(0,1fr);gap:20px;align-items:start}
.uk-panel{background:#fffefa;border:1px solid #e6e3dc;border-radius:16px;padding:16px}


/* 交互件：按钮／链接／下拉也能当胶囊用，重置 app.css 的按钮默认样式 */
:is(button,a,label).uk-pill,.uk-seg>:is(button,a,label){font:inherit;cursor:pointer;text-decoration:none;min-height:0;box-shadow:none}
button.uk-pill,a.uk-pill{font-size:14px}
.uk-seg>:is(button,a,label){font-size:14px;line-height:28px;padding:0 13px;border-radius:999px;color:#55554f;white-space:nowrap;font-weight:500;background:none;border:0;height:auto}
.uk-seg>:is(button,a,label)[aria-pressed="true"],.uk-seg>:is(button,a,label).on,.uk-seg>a[aria-current]{background:var(--green);color:#fff;font-weight:600}
.uk-seg>:is(button,a,label) b{font-weight:600;margin-left:4px;font-size:12px;opacity:.85}
.uk-seg>label input{position:absolute;opacity:0;pointer-events:none}
.uk-seg>label:has(input:checked){background:var(--green);color:#fff;font-weight:600}
.uk-pill[aria-pressed="true"]{background:var(--green);border-color:var(--green);color:#fff;font-weight:600}
.uk-pill.store[aria-pressed="false"],.uk-pill.store:not(.on):not([aria-pressed="true"]){background:#fffefa;border-color:#e6e3dc;color:var(--ink);font-weight:400}
.uk-pill.store[aria-pressed="true"],.uk-pill.store.on{background:var(--s);border-color:var(--s);color:#fff;font-weight:600}
.uk-pill.store[aria-pressed="true"] i.dot,.uk-pill.store.on i.dot{background:#fff}
/* 下拉胶囊：原生 select 直接套胶囊外观，原选项和 change 事件不变 */
select.uk-pill{appearance:none;-webkit-appearance:none;height:34px;padding:0 30px 0 13px;border-radius:999px;background:#fffefa url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M1 1l4 4 4-4' fill='none' stroke='%238e8e93' stroke-width='1.5'/%3E%3C/svg%3E") no-repeat right 12px center;border:1px solid #e6e3dc;font:inherit;font-size:14px;color:var(--ink);width:auto;min-width:0;max-width:240px;min-height:0;flex:none;box-shadow:none}
select.uk-pill.on{background-color:var(--green);border-color:var(--green);color:#fff;font-weight:600;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M1 1l4 4 4-4' fill='none' stroke='%23fff' stroke-width='1.5'/%3E%3C/svg%3E")}
input.uk-pill{height:34px;border-radius:999px;border:1px solid #e6e3dc;background:#fffefa;padding:0 12px;font:inherit;font-size:14px;width:auto;min-height:0;flex:none;box-shadow:none}
.uk-search input{flex:1;min-width:0;border:0;background:none;font:inherit;color:var(--ink);height:100%;padding:0;outline:none;box-shadow:none;min-height:0}
.uk-search:focus-within{outline:2px solid var(--green);outline-offset:1px}
.uk-filters :focus-visible{outline:2px solid var(--green);outline-offset:2px}
.uk-head a:focus-visible,.uk-plus:focus-visible{outline:2px solid var(--green);outline-offset:2px}
button.uk-btn,a.uk-btn{font:inherit;font-size:15px;cursor:pointer;text-decoration:none;min-height:0}
button.uk-btn:disabled{background:#efefea;border-color:#efefea;color:#8e8e88;cursor:default}

/* 旧通用页头（app.js header()）套用同一页头 */
.page-title.uk-head{display:flex;align-items:center;flex-wrap:wrap;gap:8px 12px;margin:6px 0 12px}
.page-title.uk-head>div:first-child{min-width:0}
.page-title.uk-head h1,.uk-head h1{font-size:30px;font-weight:600;letter-spacing:-.02em;margin:0;line-height:1.15;white-space:nowrap}
.page-title.uk-head>.r{margin-left:auto;display:flex;align-items:center;gap:10px;flex-wrap:wrap;justify-content:flex-end}
.page-title.uk-head>.r:empty{display:none}
@media (max-width:640px){.page-title.uk-head h1,.uk-head h1{font-size:28px}}

/* G02: page-top install bar removed everywhere; 我的 → 安装到手机桌面 shows the same help. */
#pwa-install{display:none!important}
/* G01: 物品设置各页只留本页标题（master-settings.css 原来给标签行的小标题样式在此覆盖） */
.item-settings-heading.uk-head{gap:12px;min-height:0;margin:6px 0 12px}
.item-settings-heading.uk-head h1{display:block;font-size:30px;font-weight:600;letter-spacing:-.02em;color:var(--ink)}
@media (max-width:640px){.item-settings-heading.uk-head h1{font-size:28px}}

/* 合并各板块反馈（1108-16）：页面里的通用 button/input/select 规则优先级较高，这里用 #app 前缀
   保证共享件外观一致；各页已有的局部覆盖仍然有效。 */
#app select.uk-pill{height:34px;min-height:0;padding:0 30px 0 13px;border-radius:999px;background-repeat:no-repeat;background-position:right 12px center;box-shadow:none;width:auto}
#app input.uk-pill{height:34px;min-height:0;box-shadow:none}
#app .uk-search input{height:100%;min-height:0;padding:0;border:0;background:none;box-shadow:none;border-radius:0}
#app .uk-plus{width:34px;height:34px;min-height:0;padding:0;border-radius:50%;background:var(--green);color:#fff;border:0;box-shadow:none}
#app .uk-seg>button{min-height:0;height:auto;border:0;box-shadow:none}
#app .uk-seg>button:not([aria-pressed="true"]):not(.on){background:none;color:#55554f}
.uk-filters[hidden],.uk-seg[hidden]{display:none}
.uk-sec>h2 .r{display:flex;align-items:center;gap:12px}
:is(button,a).uk-row{width:100%;border:0;border-radius:0;background:none;box-shadow:none;font:inherit;text-align:left;cursor:pointer;min-height:56px;height:auto}
.uk-tl{font:inherit;font-size:15px;color:var(--green);background:none;border:0;padding:0;min-height:0;box-shadow:none;cursor:pointer}
.uk-tl.uk-danger,.uk-danger{color:#b5362c}
/* 贴底保存条：留出底部导航 */
.uk-savebar.sticky{position:sticky;bottom:calc(76px + env(safe-area-inset-bottom));z-index:5}
.uk-sr{position:absolute!important;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
/* 1114-UI-7 门店筛选＝开关：一条灰底槽，选中绿底；未选的保留门店色点 */
.uk-stores{display:inline-flex;align-items:center;gap:2px;background:#e9e7e1;border-radius:999px;padding:3px;flex:none;max-width:100%;overflow-x:auto;scrollbar-width:none;vertical-align:middle}
.uk-stores::-webkit-scrollbar{display:none}
:is(#content,body) .uk-stores.uk-stores>button.uk-pill[data-pill]{height:34px;min-height:34px;padding:0 14px;border:0;border-radius:999px;background:none;color:#55554f;font-weight:500;box-shadow:none;flex:none}
:is(#content,body) .uk-stores.uk-stores>button.uk-pill[data-pill][aria-pressed="true"]{background:var(--green);color:#fff;font-weight:600}
:is(#content,body) .uk-stores.uk-stores>button.uk-pill[data-pill] i.dot{background:var(--s)}
:is(#content,body) .uk-stores.uk-stores>button.uk-pill[data-pill][aria-pressed="true"] i.dot{background:#fff}
