/* ============================================================================
 * EWeb 内容页统一样式基线（2026-09-26）
 * 背景：155 个内容页都是 Layout=null 的独立文档（iframe/弹层加载），
 *       历史上把同一套类名（.ew-msg/.ew-title/.ew-card/table.ew-tbl…）逐页复制，
 *       导致同元素不同页 8px/10px/12px 各行其是。本页=唯一定义处，
 *       各页 <style> 中与之同义的重复定义已由清扫脚本移除（tmp/ew_css_unify.ps1）。
 * 保留策略（页面侧允许覆盖，且覆盖生效——页面 <style> 在本文件之后）：
 *   - 有意变体：display:none 占位、text-align:right 按钮区、flex/float 两种布局、
 *     紧凑表(font-size:12/nowrap)、pre-line 多行提示、含 Razor @表达式/!important 的规则。
 *   - 语义混用的类不做全局定义：.ew-ro .ew-warn .ew-bar .ew-f .ew-fields（两种族并存）。
 * ==========================================================================*/

/* ---- 提示条：info 底 = 留白圆角块；err/ok 为全站统一红/绿 ---- */
.ew-msg { padding: 8px 10px; margin-bottom: 10px; border-radius: 3px; }
.ew-msg.err { background: #fff1f0; color: #c00; border: 1px solid #ffccc7; }
.ew-msg.ok { background: #e6ffed; color: #137a3a; border: 1px solid #b7ebc6; }

/* ---- 灰色小字说明（表单/表格下方补充说明） ---- */
.ew-tip { color: #999; font-size: 12px; margin-top: 8px; line-height: 1.8; }

/* ---- 页面/卡片标题 ---- */
.ew-title { font-size: 15px; font-weight: bold; margin-bottom: 10px; }

/* ---- 白底卡片 ---- */
.ew-card { background: #fff; padding: 14px 16px; border-radius: 3px; box-shadow: 0 1px 4px rgba(0,0,0,.08); }

/* ---- 页面底部按钮区：默认水平居中（右对齐/缩进类页面保留各自定义） ---- */
.ew-btns { margin-top: 14px; text-align: center; }
.ew-btns .layui-btn + .layui-btn { margin-left: 8px; }

/* ---- 统一明细表格：定宽布局 + 细分隔线 + 表头吸顶（页面 th 上的 Width 百分比照常生效） ---- */
table.ew-tbl { width: 100%; border-collapse: collapse; font-size: 13px; table-layout: fixed; }
table.ew-tbl th, table.ew-tbl td { border-bottom: 1px solid #eef1f4; padding: 4px 8px; }
table.ew-tbl thead th { position: sticky; top: 0; background: #f7f9fb; font-weight: 600; }
table.ew-tbl td.c, table.ew-tbl th.c { text-align: center; }
/* 数字/金额列右对齐（2026-09-27 补：各报表页大量用 td.r 但基线只有 .c，
   Bb 系 8 页未自带定义⇒整列左对齐破版；个别页的同义定义照常覆盖无害） */
table.ew-tbl td.r, table.ew-tbl th.r { text-align: right; }
/* ⚠tfoot 合计行底色不做得全局（0927 评估：ScCl/RkAct/HtAct/FpHx/FhAct/CgAct/BjView 等
   既有 ew-tbl+tfoot 页素行是原状，全局黄底=越权改 8 页外观）；需要黄底合计的页自行定义 */

/* ---- 面包屑（2026-09-27 从 Crud.cshtml 页级下沉；⚠负 margin 通栏依赖 body padding:16px，
       非 16px 页（如 MbView 变体）保留自己的页级定义照常覆盖） ---- */
.ew-crumb { margin: -16px -16px 12px; padding: 10px 16px; background: #fff;
            border-bottom: 1px solid #e6e6e6; color: #666; }
.ew-crumb .layui-icon { color: #16baaa; font-size: 16px; margin-right: 6px; vertical-align: -1px; }
.ew-crumb a { color: #666; }
.ew-crumb a:hover { color: #16baaa; }
.ew-crumb .ew-sep { margin: 0 8px; color: #d2d2d2; }
.ew-crumb b { color: #16baaa; font-weight: 600; }
