/* warning: generated by docs/tools/sync_common_ui.py; do not edit.
 * source: projects/common/ui/app-ui.css
 * source sha256: 9471b5d9f15a5265321c352e6edeb444e1c3e72781e8109fb7afb629ca2f1e87
 * sync: python3 docs/tools/sync_common_ui.py
 */
/* ============================================================================
 * app-ui.css —— 应用 UI 轮子（唯一出处）· 2026-12-01ui3
 * ----------------------------------------------------------------------------
 * ⚠️ 规则（用户口径「把当前的风格和习惯固定成一种规则和既有的轮子，拿来即用」）：
 *   1) 改样式**只改本文件**；改完重新复制到各应用 `vendor/app-ui.css` 并升版本串。
 *   2) 业务页**禁止**再定义：header / .brand / header h1 / .slogan(+before/after) / .hspacer /
 *      .hbtn / .who / .ava / .hexit / .tabs / .tabbar / .tabbar button（含 .on/.bdg/.cnt）/ .card /
 *      button(.p/.s/.d/:disabled) / input,select,textarea(+disabled) / table / th,td / thead th /
 *      .err / .empty / .muted / body —— 这些都在这里（2026-11-17ui2 起**连 org_base/index.html 也照此执行**，
 *      页面只留布局与页面专属组件，见 docs/交接/需求验收-轮子唯一化-2026-11-17.md）。
 *   3) 只保留**页面专属**样式（如公共事务的 .tile 网格 / .tipnote / .foot）。
 *   4) 表格三种口径都在这里：默认**左对齐 + nowrap**（文本表，HR/费用/薪酬都靠它）；
 *      数字表加 .tbl-num（右对齐）、长文本表加 .tbl-wrap（允许换行）、
 *      高密度管理列表加 .tbl-compact（只压纵向密度，不改列）——**页面不要再各写一份 th,td**。
 *
 * 抽取来源（**逐字搬运，数值一个字未改**；来源行号为 2026-11-12 master）：
 *   · projects/org_base/frontend/me.html:32（:root）、35-40（header/h1/.grow/.muted）、72-77（.card/.row/input/button/button.s）、
 *     87-88（.empty/.err）、106-127（.brand/header h1/.hbtn/.slogan/.slogan 菱形/.hbtn:hover+:disabled/.who/.ava/.hexit）、
 *     94-104（html[data-app-shell] 顶栏收紧）、135-146（.tabs/.tabbar/.tabbar button 及 ≤640 横滚）、290-292（页签 .cnt 角标）
 *   · projects/org_base/frontend/index.html:13（:root 的 --dang/--ok）、94（body 基础字体）、588-604（与 me 同款的顶栏整段）、
 *     85-88（th/td/thead th/table）
 *   · 未收录：任务书里列到的 --ink-2 / --card / --pri-d / --danger / --danger-bg / --radius —— 在 me.html/index.html 的
 *     `:root` 里**并不存在**，按「逐字抽取、不臆造」原则不写；要新增须先在源里定值再回填本文件。
 *   · 未收录：`.msg` 在 me.html/index.html 无定义（属页面专属），各页需要就自己写。
 * ========================================================================== */

/* ===== 1) 色板 / 变量（唯一色板；业务页不要再定义同名变量） ===== */
:root {
  --ink:#16202c; --fg:#16202c; --muted:#5f6b7a; --line:#e4e9ef; --bd:#e4e9ef;
  --brand:#c05621; --pri:#c05621; --pri-soft:#fdf2ea; --bg:#f4f6f9;
  --dang:#a5281b; --ok:#2f855a;
}

/* ===== 2) 顶栏（品牌标 → 应用名 → 口号 → 弹性占位 → 铃铛 → 工具 → 身份 → 退出） ===== */
header { background:#fff; border-bottom:1px solid var(--line); padding:12px 16px; display:flex; align-items:center; gap:10px; flex-wrap:wrap; position:sticky; top:0; z-index:5; }
header h1 { font-size:16px; margin:0; }
.grow { flex:1; }
.hspacer { flex:1; min-width:8px; }
.muted { color:var(--muted); font-size:13px; }

/* ⭐ 2026-10-20：壳内顶栏不再重复品牌/页面名/用户名；底部导航已表达当前入口。 */
html[data-app-shell] header{padding-right:12px;justify-content:flex-end}
html[data-app-shell] header>.brand,
html[data-app-shell] header>h1,
html[data-app-shell] header>.who,
html[data-app-shell] header>.grow{display:none!important}
@media (max-width:1100px){
  /* ⭐ 2026-10-15（统一风格）：App 壳内身份只显姓名 —— 工号已在 JS 里包成 `span.who-no`，这里隐藏它 */
  html[data-app-shell] header{gap:6px}
  html[data-app-shell] header .who-no{display:none}
  html[data-app-shell] header .who{font-size:12px;overflow:hidden;text-overflow:ellipsis;max-width:38vw}
  html[data-app-shell] header .hbtn,html[data-app-shell] header .hexit{padding:4px 8px;font-size:12px}
}
header{min-height:56px;padding:8px 18px}
/* 公司标志（BillDa 字标）：页面里用 <img class="brand" src="data:image/png;base64,…"> 内联，零外链 */
.brand{height:20px;width:auto;display:block;flex:none}
header h1{font-size:16px;font-weight:600;color:var(--ink);margin:0;white-space:nowrap}
.hbtn{border:0;background:none;color:var(--muted);font-size:13px;padding:5px 8px;border-radius:6px;cursor:pointer;font-family:inherit;white-space:nowrap}
/* ⭐ 2026-10-31（领导口径 · 选样 B＋菱形）：口号**居中**，楷体 + 大字距，两侧橙色小菱形；窄屏隐藏 */
header{position:relative}
.slogan{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);display:flex;align-items:center;
  font-family:"Kaiti SC","STKaiti","KaiTi",楷体,"Songti SC",serif;font-size:19px;letter-spacing:.14em;color:#3b4652;
  white-space:nowrap;pointer-events:none}
.slogan:before,.slogan:after{content:"";display:block;width:9px;height:9px;background:#c05621;opacity:.85;transform:rotate(45deg);border-radius:1px;flex:none}
.slogan:before{margin-right:14px}
.slogan:after{margin-left:14px}
@media (max-width:900px){.slogan{display:none}}
.hbtn:hover{background:#eef2f7;color:var(--ink)}
.hbtn:disabled{opacity:.5;cursor:default}
.who{display:inline-flex;align-items:center;gap:6px;font-size:13px;color:var(--muted);white-space:nowrap}
.ava{width:22px;height:22px;border-radius:50%;background:var(--pri-soft,#fdf2ea);color:var(--pri);font-size:12px;font-weight:600;display:inline-flex;align-items:center;justify-content:center;flex:none}
.hexit{border:1px solid var(--bd);background:#fff;color:var(--ink);font-size:13px;padding:5px 12px;border-radius:6px;cursor:pointer;font-family:inherit;white-space:nowrap;margin-left:2px}
.hexit:hover{background:#eef2f7}

/* ===== 3) 页签（.tabs 只做定位/横滚容器，.tabbar 才是按钮行） ===== */
/* ⭐ 2026-10-31（用户口径）：与「人事维护」统一 —— 顶部页签栏，点页签下方展开详情。
   结构照人事维护：.tabs 只当定位/横向滚动容器，.tabbar 才是按钮行（避免卡片混进去把栏撑高）。 */
.tabs{position:relative;margin:2px 0 12px}
.tabbar{display:flex;flex-wrap:wrap;gap:6px;align-items:center}
.tabbar button{flex:0 0 auto;white-space:nowrap;line-height:1.5;border:1px solid var(--line);background:#fff;padding:5px 12px;border-radius:6px;cursor:pointer;color:var(--ink);font:inherit}
.tabbar button:hover:not(.on){border-color:var(--pri);color:var(--pri)}
.tabbar button.on{background:var(--pri);border-color:var(--pri);color:#fff}
.tabbar button .bdg{font-weight:700}
/* 页签角标（红点） */
.tabbar button.on .cnt{background:#fff;color:var(--pri)}
.tabbar button .cnt{display:inline-block;min-width:16px;height:16px;line-height:16px;padding:0 4px;margin-left:5px;border-radius:999px;
  background:#c53030;color:#fff;font-size:11px;font-weight:700;text-align:center;vertical-align:1px}
@media (max-width:640px){
  .tabs{overflow-x:auto;-webkit-overflow-scrolling:touch;overflow-y:hidden;padding-bottom:2px}
  .tabbar{flex-wrap:nowrap;width:max-content}
  .tabbar button{min-height:36px;padding:6px 12px}
}

/* ===== 4) 基础控件（卡片/表单/按钮/表格/空态/错误） ===== */
body { margin:0; font:14px/1.6 -apple-system,"PingFang SC","Microsoft YaHei",sans-serif; background:var(--bg); color:#1a202c; }
.card { background:#fff; border:1px solid var(--line); border-radius:8px; padding:14px; }
.row { display:flex; align-items:center; gap:8px; flex-wrap:wrap; }
/* ⭐ 2026-11-17ui2（轮子唯一化）：表单控件只在本文件定义一次 —— 页面（含 org_base/index.html）不许再各写一份 */
input, select, textarea { padding:7px 10px; border:1px solid var(--line); border-radius:6px; font:inherit; font-size:14px; background:#fff; max-width:100%; }
input:disabled, select:disabled, textarea:disabled { background:#f1f3f6; color:#8a94a6; cursor:not-allowed; }
button { padding:7px 14px; border:0; border-radius:6px; background:var(--brand); color:#fff; font-size:14px; font-family:inherit; cursor:pointer; }
button:disabled { opacity:.6; cursor:default; }
button.p { background:var(--pri); color:#fff; }
button.s { background:#fff; color:var(--fg); border:1px solid var(--line); }
button.d { background:#fff; color:var(--dang); border:1px solid var(--dang); }
/* 表格：默认**左对齐 + nowrap**（文本表是绝对多数；与改造前 org_base 完全一致 ⇒ 零视觉回退）。
   数字表加 .tbl-num（右对齐），长文本表加 .tbl-wrap（允许换行），高密度管理列表加
   .tbl-compact（只压缩纵向行高）——三种口径也只在这里声明一次。 */
table { width:100%; border-collapse:collapse; margin-top:12px; font-size:13px; font-variant-numeric:tabular-nums; }
th, td { border-bottom:1px solid var(--line); padding:6px 8px; text-align:left; vertical-align:top; white-space:nowrap; }
.tbl-num th, .tbl-num td { text-align:right; vertical-align:middle; }
/* 长文本表：显式开启换行（业务页给 <table class="… tbl-wrap"> 即可，不要再各写 #id 规则）
   ⚠️ 上面 th,td 的**默认 nowrap 保留不动**（数字表单行对齐靠它）；只有长文本/多行内容的表才加 .tbl-wrap。 */
.tbl-wrap th, .tbl-wrap td { white-space: normal; overflow-wrap: anywhere; }
/* 高密度管理列表：只压纵向密度，不改列数/列宽/对齐；默认表格行高完全不受影响。
   适用于需要一屏扫描较多记录的台账，不用于普通表单或需要舒展阅读的详情表。 */
.tbl-compact th { padding-top:3px; padding-bottom:3px; }
.tbl-compact td { height:24px; padding-top:1px; padding-bottom:1px; line-height:1.2; vertical-align:middle; }
.tbl-compact button.s { height:20px; padding:0 7px; line-height:18px; vertical-align:middle; }
th:first-child, td:first-child { text-align:left; }
thead th { background:#fafafa; font-weight:600; }
.scroll { overflow-x:auto; }
.empty { color:var(--muted); padding:12px 0; }
.err { background:#fef2f2; color:#b91c1c; border:1px solid #fecaca; border-radius:6px; padding:8px 10px; margin-top:10px; }
a { color:var(--brand); }

/* ===== 5) 页面专属（不要抄进轮子；示例：公共事务页的卡片网格） =====
   .tile/.grid/.tipnote/.foot 属 public.html 的页面样式，各页自留。 */
