/* 标准版ERP 管理端样式 */
* { margin:0; padding:0; box-sizing:border-box; }
body { font-family:"Microsoft YaHei","PingFang SC",sans-serif; background:#f0f2f5; font-size:14px; color:#333; }

/* 登录页 */
.login-wrap { min-height:100vh; display:flex; align-items:center; justify-content:center;
  background:linear-gradient(135deg,#1f3b63 0%,#2e5a88 100%); }
.login-box { background:#fff; padding:40px 36px; border-radius:10px; width:360px; box-shadow:0 10px 40px rgba(0,0,0,.25); }
.login-box h1 { text-align:center; color:#1f3b63; font-size:26px; margin-bottom:4px; }
.login-sub { text-align:center; color:#888; margin-bottom:28px; font-size:13px; }
.form-item { margin-bottom:16px; }
.form-item label { display:block; margin-bottom:6px; color:#555; font-size:13px; }
.form-item input { width:100%; padding:10px 12px; border:1px solid #d9d9d9; border-radius:6px; font-size:14px; outline:none; }
.form-item input:focus { border-color:#2e5a88; box-shadow:0 0 0 2px rgba(46,90,136,.15); }
.login-msg { color:#e04f4f; font-size:13px; min-height:20px; margin-bottom:6px; }
.btn { padding:8px 16px; border:none; border-radius:6px; cursor:pointer; font-size:14px; }
.btn-primary { background:#2e5a88; color:#fff; }
.btn-primary:hover { background:#1f3b63; }
.btn-block { width:100%; padding:11px; font-size:15px; }
.btn-sm { padding:5px 10px; font-size:12px; background:#eee; }
.btn-danger { background:#d9534f; color:#fff; }

/* 布局 */
.sidebar { width:200px; background:#1f3b63; color:#fff; position:fixed; top:0; bottom:0; left:0; display:flex; flex-direction:column; }
.logo { padding:18px 16px; font-size:18px; font-weight:bold; border-bottom:1px solid rgba(255,255,255,.12); text-align:center; }
.sidebar nav { flex:1; overflow-y:auto; padding-top:8px; }
.sidebar nav a { display:block; padding:11px 20px; color:#c9d6e8; text-decoration:none; font-size:14px; }
.sidebar nav a:hover { background:rgba(255,255,255,.08); color:#fff; }
.sidebar nav a.active { background:#2e5a88; color:#fff; border-left:3px solid #ffc107; }
/* 菜单分组标题(加粗加大+可折叠) */
.menu-group-title { display:flex; align-items:center; gap:8px; padding:13px 16px 11px; cursor:pointer;
  font-size:15px; font-weight:bold; color:#ffffff; letter-spacing:1px;
  border-bottom:1px solid rgba(255,255,255,.10); background:rgba(255,255,255,.05);
  user-select:none; }
.menu-group-title:hover { background:rgba(255,255,255,.12); }
.menu-arrow { display:inline-block; width:16px; text-align:center; color:#ffc107; font-size:12px; transition:transform .15s; }
.menu-icon { font-size:15px; }
.menu-title-text { flex:1; }
.menu-children { background:rgba(0,0,0,.15); }
.sidebar nav .menu-children a { padding:10px 20px 10px 40px; font-size:13px; color:#b8c7dd; }
.sidebar nav .menu-children a.active { background:#2e5a88; color:#fff; border-left:3px solid #ffc107; }
.menu-subgroup-title { position:relative; display:flex; align-items:center; padding:10px 20px 10px 40px; cursor:pointer; font-size:13px; color:#cfd9e8; }
.menu-subgroup-title:hover { background:rgba(255,255,255,.08); }
.menu-subgroup-title .menu-arrow { position:absolute; left:20px; width:14px; text-align:center; }
.sidebar nav .menu-subchildren a { padding-left:64px; }
.sidebar nav .menu-subchildren a.active { border-left:3px solid #ffc107; }
.sidebar-footer { padding:14px; border-top:1px solid rgba(255,255,255,.12); font-size:13px; color:#c9d6e8; display:flex; justify-content:space-between; align-items:center; }
.main { margin-left:200px; min-height:100vh; }
.topbar { background:#fff; padding:14px 24px; display:flex; justify-content:space-between; align-items:center; border-bottom:1px solid #e8e8e8; }
.topbar h2 { font-size:18px; color:#1f3b63; }
.topbar-company { color:#888; font-size:13px; text-align:right; line-height:1.45; }
.topbar-name { display:inline-block; vertical-align:middle; text-align:left; color:#1f3b63; font-weight:bold; }
.content { padding:20px 24px; }
/* ★ 权限隐藏列（不受「列显示」切换影响） */
.perm-hidden { display:none !important; }
/* ★ 表格滚动容器：只滚动表格本身，不影响上方横幅/工具条 */
.table-scroll { overflow:auto; max-height:calc(100vh - 210px); }
.table-scroll > table.grid th { position:sticky !important; top:0 !important; z-index:3 !important; }

/* 卡片与工具条 */
.card { background:#fff; border-radius:8px; padding:16px 20px; margin-bottom:16px; box-shadow:0 1px 4px rgba(0,0,0,.06); }
.toolbar { display:flex; gap:10px; margin-bottom:14px; flex-wrap:wrap; align-items:center; }
.toolbar input, .toolbar select { padding:7px 10px; border:1px solid #d9d9d9; border-radius:6px; font-size:13px; }
.toolbar .spacer { flex:1; }

/* 表格 */
table.grid { width:100%; border-collapse:collapse; background:#fff; }
table.grid th { background:#f7f9fc; color:#444; padding:10px 10px; text-align:left; font-size:13px; border-bottom:2px solid #e8e8e8; white-space:nowrap; }
table.grid td { padding:9px 10px; border-bottom:1px solid #f0f0f0; font-size:13px; }
table.grid tr:hover td { background:#fafcff; }
/* 标红行：悬停不变色(红底黑字) */
table.grid tr.row-red td { background:rgb(250,0,0); color:#000; }
table.grid tr.row-red:hover td { background:rgb(250,0,0); color:#000; }
/* 修改申请：申请中/已通过 → 整行灰底 */
table.grid tr.row-gray td { background:#eceff1; }
table.grid tr.row-gray:hover td { background:#e4e8eb; }
/* 修改申请通过后：被改动的单元格字体红色 */
.cell-modified { color:#d32f2f; font-weight:bold; }

/* ★ 单元格批注（Excel式）：有批注的单元格右上角红色小三角 */
table.grid td.cell-note { position:relative; }
table.grid td.cell-note::after { content:''; position:absolute; top:0; right:0; width:0; height:0;
  border-top:8px solid #d32f2f; border-left:8px solid transparent; pointer-events:none; }
#cell-note-menu { position:fixed; z-index:10000; background:#fff; border:1px solid #e0e0e0; border-radius:6px;
  box-shadow:0 4px 16px rgba(0,0,0,.18); padding:4px; min-width:130px; }
.cn-item { padding:8px 14px; font-size:13px; color:#333; cursor:pointer; border-radius:4px; }
.cn-item:hover { background:#f0f7ff; }
.cn-del { color:#c62828; }
#cell-note-editor { position:fixed; z-index:10001; background:#fff; border-radius:8px; width:340px;
  box-shadow:0 8px 30px rgba(0,0,0,.28); overflow:hidden; }
#cell-note-editor .cne-head { background:#fff8e1; color:#8d6e00; padding:8px 12px; font-weight:bold; font-size:13px; border-bottom:1px solid #f0e6c0; }
#cell-note-editor textarea { width:100%; box-sizing:border-box; border:0; outline:none; min-height:110px; padding:10px 12px; font-size:13px; resize:vertical; font-family:inherit; }
#cell-note-editor .cne-foot { display:flex; justify-content:flex-end; gap:8px; padding:8px 12px; border-top:1px solid #eee; }

/* ★ 合同链接：文档关联 */
.ct-doc-link { color:#1565c0; text-decoration:none; border-bottom:1px dashed #1565c0; cursor:pointer; white-space:nowrap; }
.ct-doc-link:hover { color:#0d47a1; background:#e3f2fd; }
.ct-doc-add { white-space:nowrap; }
#pc-link-menu { position:fixed; z-index:9999; background:#fff; border:1px solid #e0e0e0; border-radius:6px; box-shadow:0 4px 16px rgba(0,0,0,.15); padding:4px; min-width:160px; }
.pc-menu-item { padding:8px 14px; font-size:13px; color:#333; cursor:pointer; border-radius:4px; }
.pc-menu-item:hover { background:#f0f7ff; }
.pc-menu-danger { color:#c62828; }
.pc-menu-danger:hover { background:#fdecea; }
.pc-cell:focus { outline:none; border-color:#4caf50; box-shadow:0 0 0 2px rgba(76,175,80,.2); }
/* ===== Excel风格表头筛选 ===== */
.th-filter-btn { display:inline-block; margin-left:5px; padding:0 4px; border-radius:3px; cursor:pointer;
  font-size:11px; color:#8a97a8; border:1px solid transparent; user-select:none; }
.th-filter-btn:hover { background:#e8eef7; color:#1f3b63; border-color:#c5d2e3; }
.th-filter-btn.active { background:#2e5a88; color:#fff; }
/* 筛选面板 */
.table-filter-panel { position:absolute; z-index:999; width:230px; background:#fff; border:1px solid #d5dde8;
  border-radius:8px; box-shadow:0 6px 24px rgba(0,0,0,.18); padding:10px; }
.tfp-search input { width:100%; padding:6px 8px; border:1px solid #d5dde8; border-radius:5px; font-size:13px; outline:none; box-sizing:border-box; }
.tfp-search input:focus { border-color:#2e5a88; }
.tfp-list { margin-top:8px; max-height:220px; overflow-y:auto; border:1px solid #eef1f6; border-radius:5px; padding:4px 6px; }
.tfp-item { display:flex; align-items:center; gap:6px; padding:4px 2px; font-size:13px; color:#444; cursor:pointer; }
.tfp-item:hover { background:#f5f8fc; }
.tfp-item input { cursor:pointer; }
.tfp-empty { text-align:center; color:#999; padding:10px 0; font-size:12px; }
.tfp-actions { display:flex; gap:6px; margin-top:8px; }
.tfp-btn { flex:1; padding:5px 0; border:1px solid #d5dde8; background:#fff; border-radius:5px; font-size:12px; cursor:pointer; }
.tfp-btn:hover { background:#f5f8fc; }
.tfp-btn.tfp-ok { background:#2e5a88; color:#fff; border-color:#2e5a88; }
.tfp-title { font-size:13px; font-weight:bold; color:#1f3b63; margin-bottom:6px; }
/* 列显示按钮 */
.table-col-btn-wrap { display:flex; justify-content:flex-end; margin-bottom:6px; }
.table-col-btn { padding:4px 12px; border:1px solid #d5dde8; background:#fff; border-radius:5px; font-size:12px; color:#1f3b63; cursor:pointer; }
.table-col-btn:hover { background:#e8eef7; }
/* 列宽拖拽把手 */
.col-resize-handle { position:absolute; top:0; bottom:0; right:-4px; width:8px; cursor:col-resize; z-index:5; }
.col-resize-handle:hover { background:rgba(46,90,136,.30); }
.col-resize-handle::after { content:''; position:absolute; top:0; bottom:0; left:3px; width:2px; background:transparent; }
/* Excel风格多选高亮 */
td.excel-sel { background:#cfe3ff !important; outline:2px solid #2e5a88; outline-offset:-1px; }
td.excel-sel input { background:transparent; }
.table-col-btn-wrap { margin-bottom:6px; }
.tag { display:inline-block; padding:2px 10px; border-radius:10px; font-size:12px; }
.tag-green { background:#e6f7e6; color:#2e7d32; }
.tag-red { background:#fdecea; color:#c62828; }
.tag-orange { background:#fff3e0; color:#e65100; }
.tag-blue { background:#e3f2fd; color:#1565c0; }
.score-warn { color:#e65100; font-weight:bold; }
.score-ok { color:#2e7d32; font-weight:bold; }
.score-none { color:#999; }

/* 分页 */
.pager { display:flex; gap:8px; align-items:center; justify-content:flex-end; margin-top:14px; font-size:13px; color:#666; }
.pager button { padding:5px 12px; border:1px solid #d9d9d9; background:#fff; border-radius:5px; cursor:pointer; }
.pager button:disabled { opacity:.4; cursor:not-allowed; }

/* 弹窗 */
#modal-mask { position:fixed; top:0; right:0; bottom:0; left:200px; background:rgba(0,0,0,.45); display:flex; align-items:center; justify-content:center; z-index:100; }
.modal { background:#fff; border-radius:10px; width:600px; max-width:92vw; max-height:86vh; display:flex; flex-direction:column; box-shadow:0 8px 40px rgba(0,0,0,.25); }
/* 大尺寸弹窗(审批等,铺满右侧内容区,不覆盖左侧菜单) */
.modal.modal-lg { width:100%; max-width:100%; height:100%; max-height:100%; border-radius:0; }
/* 全屏弹窗：连左侧菜单一起覆盖，空间最大 */
#modal-mask.mask-full { left:0; }
/* 申请修改弹窗：表格可横向滚动、字号放大便于查看 */
.mod-table-wrap { overflow:auto; }
table.grid.mod-table th, table.grid.mod-table td { font-size:14px; padding:10px 12px; white-space:nowrap; }
table.grid.mod-table input.modf { font-size:14px; }
.modal.modal-lg .modal-body { padding:16px 18px; }
.modal-head { padding:14px 20px; border-bottom:1px solid #eee; display:flex; justify-content:space-between; align-items:center; font-weight:bold; color:#1f3b63; }
.modal-body { padding:18px 20px; overflow-y:auto; flex:1; }
.modal-foot { padding:12px 20px; border-top:1px solid #eee; display:flex; justify-content:flex-end; gap:10px; }
.modal .form-grid { display:grid; grid-template-columns:1fr 1fr; gap:12px 16px; }
.modal .form-item { margin-bottom:0; }
.modal .form-item.full { grid-column:1 / -1; }
.modal .form-item label { margin-bottom:4px; }
.modal .form-item input, .modal .form-item select, .modal .form-item textarea {
  width:100%; padding:8px 10px; border:1px solid #d9d9d9; border-radius:6px; font-size:13px; outline:none; }
.modal .form-item textarea { min-height:70px; resize:vertical; }

/* 状态条 */
.banner { padding:10px 16px; border-radius:6px; margin-bottom:14px; font-size:13px; }
.banner-info { background:#e3f2fd; color:#1565c0; }
.banner-warn { background:#fff3e0; color:#e65100; }

.empty { text-align:center; color:#999; padding:40px 0; }
.dash-cards { display:grid; grid-template-columns:repeat(4,1fr); gap:16px; margin-bottom:16px; }
.dash-card { background:#fff; border-radius:8px; padding:20px; box-shadow:0 1px 4px rgba(0,0,0,.06); }
.dash-card .num { font-size:28px; font-weight:bold; color:#1f3b63; margin-top:6px; }
.dash-card .label { color:#888; font-size:13px; }

/* ===== 表格批量录入（2025采购明细表样式） ===== */
.pur-table-page { background:#fff; border-radius:8px; box-shadow:0 1px 6px rgba(0,0,0,.08); overflow:hidden; }
.pur-table-toolbar { display:flex; align-items:center; gap:10px; padding:12px 16px; background:#1f3b63; color:#fff; flex-wrap:wrap; }
.pur-table-title { font-size:15px; font-weight:bold; }
.pur-table-title small { font-weight:normal; color:#b8c7dd; font-size:12px; }
.pur-table-user { background:rgba(255,255,255,.12); padding:4px 12px; border-radius:12px; font-size:13px; }
.pur-table-namebar { display:flex; align-items:center; gap:12px; padding:12px 16px; background:#fffbe6; border-bottom:1px solid #ffe58f; }
.pur-table-namebar label { font-size:14px; font-weight:bold; color:#8a6100; white-space:nowrap; }
.pur-table-namebar .pur-batch-name { flex:1; padding:9px 12px; border:1px solid #ffe58f; border-radius:6px; font-size:14px; outline:none; background:#fff; }
.pur-table-namebar .pur-batch-name:focus { border-color:#faad14; box-shadow:0 0 0 2px rgba(250,173,20,.2); }
.pur-table-wrap { overflow:auto; max-height:calc(100vh - 220px); }
.pur-table { width:max-content; min-width:100%; border-collapse:collapse; table-layout:fixed; }
.pur-table th { background:#eef2f8; color:#1f3b63; font-size:12px; padding:8px 6px; border:1px solid #d5dde8; position:sticky; top:0; z-index:2; text-align:center; white-space:nowrap; }
.pur-table th small { color:#7d93b2; font-weight:normal; }
.pur-table td { border:1px solid #e3e9f1; padding:0; }
.pur-table .pur-table-row:hover td { background:#f7fafd; }
.pur-table .cell { width:100%; border:none; outline:none; padding:7px 8px; font-size:13px; background:transparent; box-sizing:border-box; }
.pur-table .cell:focus { background:#fffbe6; box-shadow:inset 0 0 0 2px #ffc107; }
.pur-table .cell.num { text-align:right; }
.pur-table .c-amount { text-align:right; padding:7px 8px; font-size:13px; color:#1f3b63; font-weight:bold; white-space:nowrap; }
.pur-table .pur-seq { text-align:center; color:#7d93b2; font-size:12px; }
.pur-table .pur-fixed { padding:7px 8px; font-size:13px; color:#555; background:#f4f7fb; text-align:center; white-space:nowrap; }
.pur-table td:last-child { text-align:center; }
/* 制番一览：沿用 pur-table 外观，但列宽自适应 */
.zf-table { table-layout:auto; }
.zf-table .zf-cell { min-width:0; }
.zf-table .zf-seq { text-align:center; color:#7d93b2; font-size:12px; padding:7px 4px; }
/* 制番一览年份(Sheet)页签 */
.zf-sheets { display:flex; gap:4px; flex-wrap:wrap; padding:8px 12px 0; background:#f4f7fb; border-bottom:1px solid #e3e9f1; }
.zf-sheet { padding:5px 14px; border:1px solid #d5dde8; border-bottom:none; border-radius:6px 6px 0 0; background:#e9eef6;
  color:#1f3b63; cursor:pointer; font-size:13px; user-select:none; }
.zf-sheet:hover { background:#dde6f2; }
.zf-sheet.active { background:#fff; font-weight:bold; color:#0b62d6; border-color:#0b62d6; }
.zf-sheet-add { background:#fff; color:#0b62d6; font-weight:bold; padding:5px 12px; }
.zf-ro { color:#b8c7dd; font-size:12px; }
.zf-pct-cell { position:relative; }
.zf-pct-cell .zf-ratio { padding-right:20px; }
.zf-pct { position:absolute; right:7px; top:50%; transform:translateY(-50%); color:#7d93b2; font-size:12px; pointer-events:none; }
.zf-status { color:#a5f0a5; font-size:13px; min-width:64px; text-align:right; }
.zf-legend { padding:8px 16px; background:#fffbe6; border-bottom:1px solid #ffe58f; font-size:13px; color:#8a6100; line-height:2; }
.zf-legend b { margin-right:8px; }
.zf-legend-item { display:inline-block; margin-right:16px; white-space:nowrap; }
.zf-legend-item i { display:inline-block; min-width:16px; height:16px; line-height:16px; text-align:center; background:#faad14; color:#fff; border-radius:3px; font-style:normal; font-size:11px; margin-right:4px; }

/* ★ 全局：隐藏数字输入框的上下加减箭头 */
input[type=number]::-webkit-outer-spin-button,
input[type=number]::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
input[type=number] { -moz-appearance: textfield; appearance: textfield; }

/* ★ 单元格单击选中态：不显示闪烁光标，用黄色框表示选中(与双击编辑区分) */
input.cell-overwrite, textarea.cell-overwrite { caret-color: transparent; outline:2px solid #f0a500; outline-offset:-1px; }

/* ================= 货架管理 ================= */
.rk-wrap { display: flex; gap: 14px; align-items: flex-start; }
.rk-left { flex: 1 1 auto; min-width: 0; }
.rk-right { flex: 0 0 340px; display: flex; flex-direction: column; gap: 14px; }
.rk-toolbar { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.rk-toolbar input { flex: 0 1 260px; padding: 8px 10px; border: 1px solid #ddd; border-radius: 6px; }
.rk-list-title { font-weight: bold; color: #1f3b63; margin: 12px 0 8px; }
.rk-table tr.rk-row { cursor: pointer; }
.rk-table tr.rk-row:hover { background: #f5f8ff; }
.rk-table tr.rk-row-active { background: #e8f0fe !important; }
.rk-panel-title { font-weight: bold; color: #1f3b63; margin-bottom: 10px; }
.rk-form { display: grid; grid-template-columns: 84px 1fr; gap: 8px 10px; align-items: center; }
.rk-form label { color: #555; font-size: 13px; }
.rk-form input, .rk-form select, .rk-form textarea { padding: 7px 9px; border: 1px solid #ddd; border-radius: 6px; width: 100%; box-sizing: border-box; font-family: inherit; }
.rk-form input.rk-ro { background: #f5f7fa; color: #888; }
.rk-form label.rk-inline { grid-column: 1 / -1; display: flex; align-items: center; gap: 6px; }
.rk-form label.rk-inline input { width: auto; }
.rk-req { color: #c62828; }
.rk-actions { display: flex; gap: 8px; align-items: center; margin-top: 12px; flex-wrap: wrap; }
.rk-readonly { color: #999; font-size: 12px; }
.rk-layout { min-height: 140px; border: 1px dashed #ccd; border-radius: 8px; display: flex; align-items: center; justify-content: center; background: repeating-linear-gradient(45deg,#fafbff,#fafbff 10px,#f3f6ff 10px,#f3f6ff 20px); }
.rk-layout-empty { color: #aaa; font-size: 13px; }
.rk-layout-box { text-align: center; }
.rk-layout-code { font-size: 22px; font-weight: bold; color: #1f3b63; letter-spacing: 1px; }
.rk-layout-loc { font-size: 12px; color: #666; margin-top: 4px; }
.rk-layout-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 10px; }
.rk-layout-actions { display: flex; gap: 6px; }
.rk-layout-img { max-width: 100%; max-height: 560px; border-radius: 6px; cursor: zoom-in; display: block; }
.img-fullscreen { position: fixed; inset: 0; background: rgba(0,0,0,.92); z-index: 9999; display: flex; align-items: center; justify-content: center; cursor: zoom-out; }
.img-fullscreen img { max-width: 97vw; max-height: 97vh; border-radius: 4px; box-shadow: 0 8px 40px rgba(0,0,0,.6); }
.img-fullscreen-hint { position: absolute; bottom: 14px; left: 0; right: 0; text-align: center; color: #fff; opacity: .7; font-size: 13px; }
.picker-overlay { position: fixed; inset: 0; background: rgba(0,0,0,.45); z-index: 10000; display: flex; align-items: center; justify-content: center; }
.picker-box { background: #fff; border-radius: 10px; padding: 16px; width: min(560px, 92vw); max-height: 86vh; display: flex; flex-direction: column; box-shadow: 0 10px 40px rgba(0,0,0,.3); }
.picker-title { font-weight: bold; margin-bottom: 8px; color: #1f3b63; }
.picker-search { width: 100%; margin-bottom: 8px; padding: 6px 8px; border: 1px solid #ddd; border-radius: 4px; box-sizing: border-box; }
.picker-tree { overflow: auto; flex: 1; }
.picker-foot { text-align: right; margin-top: 12px; }
.rk-hint { font-weight: normal; font-size: 12px; color: #999; }

/* ================= 手机端适配（企业微信/手机浏览器） ================= */
.menu-toggle { display:none; background:transparent; border:none; font-size:22px; line-height:1; color:#1f3b63; cursor:pointer; margin-right:6px; padding:2px 8px; }
.nav-overlay { display:none; }
@media (max-width: 900px) {
  .sidebar { transform: translateX(-100%); transition: transform .22s ease; z-index:80; width:250px; box-shadow:0 0 24px rgba(0,0,0,.35); }
  body.nav-open .sidebar { transform: translateX(0); }
  .nav-overlay { display:none; position:fixed; top:0; right:0; bottom:0; left:0; background:rgba(0,0,0,.4); z-index:70; }
  body.nav-open .nav-overlay { display:block; }
  .main { margin-left:0; }
  .menu-toggle { display:inline-block; }
  .topbar { padding:10px 12px; gap:6px; }
  .topbar h2 { font-size:16px; }
  .topbar-company { font-size:11px; }
  .content { padding:12px; }
  .card { padding:12px; border-radius:6px; }
  .toolbar { gap:8px; }
  .toolbar input, .toolbar select { flex:1 1 130px; min-width:0; }
  .dash-cards { grid-template-columns:repeat(2,1fr); gap:10px; }
  #modal-mask { left:0; }
  .modal { width:96vw; max-width:96vw; }
  .modal.modal-lg { width:100vw; max-width:100vw; }
  .modal .form-grid { grid-template-columns:1fr; }
  .rk-wrap { flex-direction:column; }
  .rk-right { flex:1 1 auto; width:100%; }
  .table-scroll { max-height:calc(100vh - 170px); }
  .pur-table-wrap { max-height:calc(100vh - 190px); }
  .table-scroll > table.grid { min-width:520px; }
  .pager { justify-content:center; flex-wrap:wrap; }
  .login-box { width:90vw; padding:28px 20px; }
  .modal-foot { padding:10px 14px; }
}

/* （已移除）手机竖屏强制横屏显示 —— 用户反馈横屏不好看，退回竖屏自适应 */

/* ★ 表格底部固定横向滚动条（钉在屏幕底部，不用滚到最下面就能横向拖动） */
.hscroll-bottom { position: fixed; left: 200px; right: 0; bottom: 0; height: 16px; overflow-x: auto; overflow-y: hidden; background: #fff; border-top: 1px solid #e2e2e2; z-index: 60; }
.hscroll-bottom.hidden { display: none; }
.hscroll-inner { height: 1px; }
@media (max-width: 900px) { .hscroll-bottom { left: 0; } }

.table-scroll, .pur-table-wrap { -webkit-overflow-scrolling: touch; }
