/* hddzjxc - 进销存管理系统 样式 */
* { box-sizing: border-box; }
html, body {
  margin: 0; padding: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei",
               Roboto, Arial, sans-serif;
  background: #f5f6fa; color: #2c3e50;
  font-size: 14px;
}
a { color: #2d6cdf; text-decoration: none; }
a:hover { text-decoration: underline; }

/* 顶栏 */
.topbar {
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 24px; background: #2d3748; color: #fff;
  position: sticky; top: 0; z-index: 50;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}
.topbar .brand { font-weight: 700; font-size: 18px; color: #fff; white-space: nowrap; }
.topbar .brand-edit {
  color: #a0aec0; font-size: 13px; cursor: pointer; margin-left: 8px;
  padding: 2px 5px; border-radius: 3px; transition: all 0.12s;
}
.topbar .brand-edit:hover { color: #fff; background: rgba(255,255,255,0.15); }
.nav-links {
  display: flex; align-items: center; flex-wrap: nowrap; gap: 4px;
}
.nav-links a {
  color: #cbd5e0; margin-left: 10px; font-size: 14px; white-space: nowrap;
}
.nav-links a:hover { color: #fff; text-decoration: none; }

/* 导航下拉菜单 - click 触发（避免 hover 经过间隙时菜单消失） */
.nav-dropdown {
  position: relative; display: inline-block; margin-left: 10px;
}
.nav-dropdown > .nav-drop-toggle {
  color: #cbd5e0; font-size: 14px; cursor: pointer; white-space: nowrap;
  display: inline-flex; align-items: center; gap: 3px;
  user-select: none;
}
.nav-dropdown > .nav-drop-toggle:hover { color: #fff; }
.nav-dropdown.open > .nav-drop-toggle { color: #fff; }
.nav-dropdown > .nav-drop-toggle::after {
  content: "▾"; font-size: 11px; opacity: 0.8;
  transition: transform 0.15s;
}
.nav-dropdown.open > .nav-drop-toggle::after {
  transform: rotate(180deg);
}
.nav-dropdown-menu {
  position: absolute; top: calc(100% + 2px); left: 50%; transform: translateX(-50%);
  min-width: 140px; background: #fff; border-radius: 6px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.15);
  padding: 4px 0; z-index: 100; display: none;
  border-top: 2px solid transparent;   /* 视觉上保持一点距离，实际不产生 hover 空隙 */
  margin-top: -2px;                     /* 紧贴按钮下方（无空隙）→ hover 绝不会丢 */
}
/* 仅通过 .open class 控制显示，不再依赖 :hover（避免鼠标经间隙时菜单闪烁消失） */
.nav-dropdown.open .nav-dropdown-menu { display: block; }
.nav-dropdown-menu a {
  display: block; padding: 8px 14px; color: #2d3748 !important;
  margin: 0 !important; font-size: 13px !important;
}
.nav-dropdown-menu a:hover {
  background: #edf2f7; color: #2b6cb0 !important; text-decoration: none;
}

.db-banner {
  background: #fff8e1; padding: 10px 24px;
  border-bottom: 1px solid #ffeeba;
  color: #856404; font-size: 13px;
}
.db-banner code { background: rgba(0,0,0,0.06); padding: 1px 4px; border-radius: 3px; }

.main { max-width: 1180px; margin: 0 auto; padding: 24px; }

/* 主菜单 */
.menu-card {
  background: #fff; padding: 36px 24px; border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
  max-width: 600px; margin: 40px auto;
}
.menu-card h1 { margin-top: 0; text-align: center; color: #2d3748; }
.menu-list { list-style: none; padding: 0; }
.menu-list li {
  padding: 18px 24px; margin: 12px 0;
  background: #f8fafc; border: 1px solid #e2e8f0;
  border-radius: 6px; text-align: center; font-size: 16px;
  transition: all 0.15s;
}
.menu-list li:hover {
  background: #2d6cdf; border-color: #2d6cdf;
}
.menu-list li:hover a { color: #fff; text-decoration: none; }
.db-info { margin-top: 24px; text-align: center; color: #718096; font-size: 13px; }

/* 通用页面 */
.page-head {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 16px;
}
.page-head h2 { margin: 0; font-size: 20px; }
.page-head .actions { display: flex; gap: 8px; align-items: center; }
.page-head .actions input, .page-head .actions select {
  padding: 6px 10px; border: 1px solid #cbd5e0; border-radius: 4px;
  font-size: 13px;
}
.page-head .actions label { font-size: 13px; color: #4a5568; }

.btn {
  display: inline-block; padding: 6px 14px;
  border: 1px solid #cbd5e0; background: #fff;
  color: #4a5568; border-radius: 4px;
  cursor: pointer; font-size: 13px;
  transition: all 0.12s;
}
.btn:hover { background: #edf2f7; }
.btn-primary { background: #2d6cdf; color: #fff; border-color: #2d6cdf; }
.btn-primary:hover { background: #1f5fcc; }
.btn-danger { background: #e53e3e; color: #fff; border-color: #e53e3e; }
.btn-danger:hover { background: #c53030; }
.btn-sm { padding: 3px 10px; font-size: 12px; }
/* 角色管理表：固定列宽，所有列自动换行 */
.roles-table { table-layout: fixed; }
.roles-table th, .roles-table td { padding: 4px 6px; }
.roles-table td { overflow: hidden; word-break: break-word; }

/* 操作列：一行两按钮，缩窄列宽 */
.ops-cell { padding-left: 4px; padding-right: 4px; }
.ops-cell .btn-sm { padding: 3px 4px; }
.ops-wrap { display: flex; flex-wrap: wrap; gap: 4px; justify-content: center; max-width: 78px; margin: 0 auto; font-size: 0; }

/* 表格 */
.data-table {
  width: 100%; border-collapse: collapse;
  background: #fff; border-radius: 6px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.04);
  overflow: hidden;
}
.data-table th, .data-table td {
  padding: 10px 12px; text-align: center;
  border-bottom: 1px solid #edf2f7; font-size: 13px;
}
.data-table th {
  background: #f7fafc; color: #4a5568; font-weight: 600;
}
.data-table tr:hover td { background: #f7fafc; }
.data-table .empty { color: #a0aec0; padding: 30px 0; }
.data-table .hl { color: #e53e3e; font-weight: 400; font-size: 15px; }
.data-table .hl.zero-value { color: #999 !important; font-weight: 400; }
.data-table td.name-cell { text-align: left; }

/* 表单 */
.form-card, .export-card {
  background: #fff; padding: 24px; border-radius: 8px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.04);
  margin-bottom: 18px;
}
.export-card h3, .form-row h4 { margin-top: 20px; }
.form-row { margin: 12px 0; display: flex; flex-direction: column; max-width: 480px; }
.form-row.inline { flex-direction: row; align-items: center; max-width: none; gap: 8px; }
.form-row.inline label { margin-bottom: 0; white-space: nowrap; }
.form-row label { font-size: 13px; color: #4a5568; margin-bottom: 4px; font-weight: 500; }
.form-row input, .form-row select, .form-row textarea {
  padding: 8px 10px; border: 1px solid #cbd5e0; border-radius: 4px;
  font-size: 14px;
}
.form-row input[type="checkbox"] { width: auto; }
.form-row input[type="radio"] { width: auto; padding: 0; border: none; margin: 0; }
.form-row select[multiple] {
  min-height: 38px; height: auto; overflow: auto;
  background: #fff;
}
.form-row select[multiple] option { padding: 6px 10px; }
.form-row select[multiple] option:checked { background: #2d6cdf linear-gradient(0deg, #2d6cdf 0%, #2d6cdf 100%); color: #fff; }
.form-row label.radio {
  display: inline-flex; align-items: center; gap: 4px;
  font-weight: normal; margin-bottom: 0; cursor: pointer;
  margin-right: 16px;
}
.form-row label.radio input { margin: 0; }
.selected-toggle { color: #e53e3e; font-weight: 500; }
.form-row input:focus, .form-row select:focus, .form-row textarea:focus {
  outline: none; border-color: #2d6cdf; box-shadow: 0 0 0 2px rgba(45,108,223,0.15);
}
.hint { color: #718096; font-size: 12px; }

/* fselect - 可搜索下拉框（模拟 el-select filterable） */
.fselect { position: relative; width: 100%; }
.fselect-input-wrap {
  position: relative; display: flex; align-items: center;
  border: 1px solid #dcdfe6; border-radius: 4px;
  background: #fff; transition: border-color .2s;
}
.fselect-input-wrap:focus-within {
  border-color: #e53e3e;
}
.fselect-input-wrap input[type="text"] {
  flex: 1; border: none; outline: none; background: transparent;
  padding: 6px 32px 6px 8px; font-size: 13px; color: #606266;
  min-width: 0;
}
.fselect-arrow {
  position: absolute; right: 10px; top: 50%; transform: translateY(-50%);
  width: 0; height: 0; pointer-events: none;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 5px solid #c0c4cc;
  transition: transform .2s;
}
.fselect-dropdown {
  position: absolute; top: calc(100% + 4px); left: 0; right: 0; z-index: 60;
  max-height: 280px; overflow-y: auto;
  background: #fff; border: 1px solid #e4e7ed;
  border-radius: 4px; box-shadow: 0 2px 12px rgba(0,0,0,0.1);
  display: none;
}
.fselect-item {
  padding: 0 10px; height: 34px; line-height: 34px;
  font-size: 14px; color: #606266; cursor: pointer;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  transition: color .15s, background-color .15s;
}
.fselect-item:hover { background: #f5f7fa; color: #606266; }
.fselect-item.is-active { color: #e53e3e; font-weight: 600; background: #fef0f0; }
.fselect-empty {
  padding: 14px; text-align: center; color: #909399; font-size: 14px;
}
.summary {
  margin-top: 16px; padding: 14px; background: #f7fafc;
  border-radius: 6px; font-size: 14px;
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
}
.summary b { color: #e53e3e; font-size: 18px; }
.summary span { color: #4a5568; }
.summary span.sep { margin-left: 18px; }
.summary .btn-primary { margin-left: auto; }
/* 操作按钮组：宽度不够时整组换到第二行并靠右对齐 */
.summary-actions { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.summary-actions .btn-primary { margin-left: 0; }

/* 模态框 */
.modal-mask {
  position: fixed; inset: 0; background: rgba(0,0,0,0.45);
  display: none; align-items: center; justify-content: center;
  z-index: 100;
}
.modal {
  background: #fff; border-radius: 8px; min-width: 480px; max-width: 96vw;
  max-height: 88vh; overflow: hidden; display: flex; flex-direction: column;
}
.modal.big { min-width: 760px; }
.modal.huge { min-width: 1520px; }
/* 单价/数量输入框更窄 */
.data-table input.qty, .data-table input.price {
  max-width: 80px;
}
.data-table input.price-narrow {
  max-width: 80px; /* 约为原来的 1/3 */
}
/* 销售制单整张卡片加宽，商品列表更舒展 */
.wide-card {
  max-width: 1520px;
  margin-left: auto;
  margin-right: auto;
}
.modal-head {
  padding: 12px 20px; border-bottom: 1px solid #edf2f7;
  display: flex; align-items: center; justify-content: space-between;
}
.modal-head h3 { margin: 0; font-size: 16px; }
.modal-close {
  cursor: pointer; font-size: 22px; color: #a0aec0;
}
.modal-close:hover { color: #2d3748; }
.modal-body { padding: 18px 20px; overflow: auto; }
.modal-foot {
  padding: 12px 20px; border-top: 1px solid #edf2f7;
  text-align: right;
}
.modal-foot .btn { margin-left: 8px; }

/* 自动补全下拉 */
.autocomplete { position: relative; }
.autocomplete input { width: 100%; }
.autocomplete-list {
  position: absolute; top: 100%; left: 0; right: 0;
  background: #fff; border: 1px solid #cbd5e0; border-radius: 4px;
  max-height: 180px; overflow: auto; z-index: 200;
  display: none; box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}
.autocomplete-list.show { display: block; }
.autocomplete-item {
  padding: 8px 12px; cursor: pointer; font-size: 14px;
  border-bottom: 1px solid #f0f0f0;
}
.autocomplete-item:last-child { border-bottom: none; }
.autocomplete-item:hover { background: #ebf4ff; }

/* 标签 */
.tag {
  padding: 2px 8px; border-radius: 10px; font-size: 12px;
}
.tag-ok    { background: #c6f6d5; color: #22543d; }
.tag-warn  { background: #fefcbf; color: #744210; }
.tag-muted { background: #e2e8f0; color: #4a5568; }
.low-stock { color: #e53e3e; font-weight: 700; }

/* 统计卡片 */
.stat-cards {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px;
  margin: 16px 0;
}
.stat {
  background: #fff; padding: 16px 20px; border-radius: 8px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.04);
  display: flex; justify-content: space-between; align-items: center;
}
.stat span { color: #718096; font-size: 13px; }
.stat b { font-size: 22px; color: #2d3748; }
.stat.warning b { color: #e53e3e; }

.qty {
  width: 70px; text-align: center;
  padding: 4px 6px; font-size: 14px;
  margin: 0 6px; border: 1px solid #cbd5e0; border-radius: 4px;
}

.data-table.selectable .qty { width: 80px; }

/* 登录页面 */
.login-wrap {
  display: flex; align-items: center; justify-content: center;
  min-height: 100vh; background: #f5f6fa;
}
.login-card {
  background: #fff; padding: 40px 36px; border-radius: 10px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.08);
  max-width: 400px; width: 90%;
}
.login-card h1 { margin: 0 0 8px; font-size: 22px; text-align: center; color: #2d3748; }
.login-sub { text-align: center; color: #718096; font-size: 14px; margin: 0 0 24px; }
.login-form .form-row { max-width: none; }
.login-btn { width: 100%; padding: 10px; font-size: 15px; margin-top: 8px; }
.login-msg { color: #e53e3e; font-size: 13px; min-height: 18px; margin-top: 4px; }

/* 顶栏用户信息 */
.nav-user {
  color: #a0aec0; font-size: 14px; margin-left: 10px;
  display: inline-flex; align-items: center; gap: 4px; white-space: nowrap;
}
.nav-links .logout-link {
  color: #fc8181; cursor: pointer; text-decoration: none;
}
.nav-links .logout-link:hover { color: #f56565; text-decoration: underline; }

/* 开关滑块 */
.switch { position: relative; display: inline-block; width: 42px; height: 22px; }
.switch input { opacity: 0; width: 0; height: 0; }
.slider { position: absolute; cursor: pointer; inset: 0; background-color: #ccc; transition: .3s; border-radius: 22px; }
.slider:before { position: absolute; content: ""; height: 18px; width: 18px; left: 2px; bottom: 2px; background-color: #fff; transition: .3s; border-radius: 50%; box-shadow: 0 1px 3px rgba(0,0,0,0.2); }
input:checked + .slider { background-color: #2d6cdf; }
input:checked + .slider:before { transform: translateX(20px); }

/* 打印样式 */
@media print {
  .topbar, .db-banner, .nav-links, .brand-edit, .nav-user, .logout-link,
  .modal-mask, .page-head .actions, .stat-cards, .btn, .modal-foot,
  #companyNameModal, #rechargeModal, .noprint {
    display: none !important;
  }
  .main { padding: 0 !important; }
  .page-head { display: flex; }
  .page-head .actions { display: none !important; }
  body { background: #fff !important; }
  .data-table { width: 100%; border-collapse: collapse; }
  .data-table th, .data-table td { border: 1px solid #333 !important; padding: 4px 8px; }
  .data-table th { background: #f0f0f0 !important; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}

/* ============================================================
   制单页面补充样式（基于 src/style.css 基准）
   所有页面表格使用完整网格边框样式
   ============================================================ */

/* 所有页面表格：统一行高（不压缩），完整网格边框 */
.data-table th,
.data-table td {
  border: 1px solid #d4dde6;
  padding: 10px 12px;
  vertical-align: middle;
}

/* ========== 制单功能样式（仅保留功能/布局必要的控制，完全复用默认.data-table外观） ========== */
/* 隐藏制单表格中数量/价格/件数输入框的浏览器内置 spinner（三角形增减） */
.data-table input.qty::-webkit-inner-spin-button,
.data-table input.qty::-webkit-outer-spin-button,
.data-table input.price::-webkit-inner-spin-button,
.data-table input.price::-webkit-outer-spin-button,
.data-table input.pieces-input::-webkit-inner-spin-button,
.data-table input.pieces-input::-webkit-outer-spin-button {
  -webkit-appearance: none;
  margin: 0;
}
.data-table input.qty,
.data-table input.price,
.data-table input.pieces-input {
  -moz-appearance: textfield; /* Firefox 隐藏 spinner */
}

/* ========== 设置模态框 Tab 样式 ========== */
.settings-tabs {
  display: flex;
  border-bottom: 2px solid #edf2f7;
  margin-bottom: 16px;
}
.settings-tab {
  padding: 10px 20px;
  cursor: pointer;
  font-size: 14px;
  color: #718096;
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
  transition: all 0.2s;
  user-select: none;
}
.settings-tab:hover {
  color: #2d3748;
}
.settings-tab.active {
  color: #3182ce;
  border-bottom-color: #3182ce;
  font-weight: 600;
}
.settings-tab-content {
  display: none;
  min-height: 340px;
}
.settings-tab-content.active {
  display: block;
  min-height: 340px;
}

/* ========== 开关样式 ========== */
.toggle-switch {
  position: relative;
  display: inline-block;
  width: 44px;
  height: 24px;
}
.toggle-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}
.toggle-slider {
  position: absolute;
  cursor: pointer;
  top: 0; left: 0; right: 0; bottom: 0;
  background-color: #cbd5e0;
  border-radius: 24px;
  transition: 0.3s;
}
.toggle-slider:before {
  position: absolute;
  content: "";
  height: 18px;
  width: 18px;
  left: 3px;
  bottom: 3px;
  background-color: #fff;
  border-radius: 50%;
  transition: 0.3s;
  box-shadow: 0 1px 3px rgba(0,0,0,0.2);
}
input:checked + .toggle-slider {
  background-color: #3182ce;
}
input:checked + .toggle-slider:before {
  transform: translateX(20px);
}
.toggle-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
  border-bottom: 1px solid #edf2f7;
}
.toggle-row:last-child {
  border-bottom: none;
}
.toggle-info {
  flex: 1;
  margin-right: 16px;
}
.toggle-title {
  font-weight: 600;
  font-size: 14px;
  color: #2d3748;
}
.toggle-desc {
  font-size: 12px;
  color: #718096;
  margin-top: 4px;
}

/* ============================================================
   手机端适配（仅对声明了 viewport 并被标记 html.mobile-clock 的页面生效：
   项目考勤、现场影像等；其它页面不加标记，完全不受影响）
   ============================================================ */
html.mobile-clock { -webkit-text-size-adjust: 100%; }
html.mobile-clock .topbar { position: static; flex-wrap: wrap; padding: 8px 12px; }
html.mobile-clock .topbar .brand { font-size: 15px; white-space: normal; }
html.mobile-clock .nav-links { width: 100%; flex-wrap: wrap; }
html.mobile-clock .nav-links a { margin-left: 8px; font-size: 13px; }
html.mobile-clock .nav-dropdown { margin-left: 8px; }
html.mobile-clock .nav-dropdown > .nav-drop-toggle { font-size: 13px; }
/* 最右侧下拉菜单改为左向展开，避免手机上超出屏幕导致横向滚动 */
html.mobile-clock .nav-dropdown:nth-last-child(-n+3) .nav-dropdown-menu { left: auto; right: 0; transform: none; }
html.mobile-clock .main { max-width: 100%; padding: 12px; }
html.mobile-clock .page-head { flex-wrap: wrap; gap: 8px; }
html.mobile-clock .page-head h2 { font-size: 18px; }
html.mobile-clock .page-head .actions { flex-wrap: wrap; width: 100%; }
/* 弹窗：手机上一律按屏宽 96% 显示（.modal/.big/.huge 的 min-width 必须清零，否则大于屏宽） */
html.mobile-clock .modal,
html.mobile-clock .modal.big,
html.mobile-clock .modal.huge {
  width: 96% !important; max-width: 96% !important; min-width: 0 !important;
}
html.mobile-clock .modal-body { padding: 12px !important; }
html.mobile-clock .form-row { max-width: none; }
html.mobile-clock .btn { padding: 8px 12px; }

/* 页头工具栏：搜索框/下拉/筛选器改为可伸缩，铺满一行（含内联固定宽度的也一并放开） */
html.mobile-clock .page-head .actions > input,
html.mobile-clock .page-head .actions > select,
html.mobile-clock .page-head .actions > .fselect {
  width: auto !important; min-width: 0 !important; max-width: none !important;
  flex: 1 1 130px;
}

/* 宽表格：手机上允许横向滑动（单元格单行显示，避免中文逐字折行把表格撑得很高） */
html.mobile-clock table {
  display: block; width: 100%; overflow-x: auto;
  -webkit-overflow-scrolling: touch; white-space: nowrap;
}
/* 固定列宽的表格（含 table-layout:fixed 写在标签内联样式里的），手机上改为按内容自适应 */
html.mobile-clock table[style*="table-layout"] { table-layout: auto !important; }
html.mobile-clock table.so-table { table-layout: auto; }
html.mobile-clock .data-table th,
html.mobile-clock .data-table td { padding: 8px 10px; }

/* 统计卡片：手机上自动折行 */
html.mobile-clock .stat-cards { grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 8px; }
html.mobile-clock .stat { padding: 12px 14px; }
html.mobile-clock .stat b { font-size: 18px; }

/* 卡片内边距收紧，给内容留出更多宽度 */
html.mobile-clock .form-card,
html.mobile-clock .export-card { padding: 14px; }

/* 导航下拉：手机上触点大一点，菜单按按钮起始位置铺宽 */
html.mobile-clock .nav-dropdown { position: static; }
html.mobile-clock .nav-dropdown > .nav-drop-toggle {
  display: inline-block; padding: 8px 14px; border-radius: 20px;
  background: #edf2f7; color: #2d3748; margin: 2px;
  font-size: 14px; font-weight: 600;
}
html.mobile-clock .nav-dropdown-menu {
  position: static !important; transform: none !important;
  box-shadow: 0 2px 6px rgba(0,0,0,.08); border-radius: 8px;
  margin: 4px 0; padding: 4px 0;
}
html.mobile-clock .nav-dropdown-menu a {
  display: block; padding: 10px 18px; font-size: 14px;
  border-bottom: 1px solid #edf2f7; margin: 0;
}
html.mobile-clock .nav-dropdown-menu a:last-child { border-bottom: none; }

/* 功能菜单页（index.html）：大按钮列表 */
html.mobile-clock .menu-card { max-width: 100%; padding: 14px; }
html.mobile-clock .menu-card h1 { font-size: 22px; margin: 4px 0 12px; }
html.mobile-clock .menu-list li { margin: 6px 0; }
html.mobile-clock .menu-list li a {
  display: block; padding: 14px 18px; font-size: 16px; font-weight: 600;
  border-radius: 10px;
}

/* 审核弹窗：form-row label 与 input 分行占满 */
html.mobile-clock .modal .form-row {
  flex-direction: column; align-items: stretch; gap: 4px;
}
html.mobile-clock .modal .form-row label {
  width: auto !important; min-width: 0; font-size: 13px;
}
html.mobile-clock .modal .form-row input,
html.mobile-clock .modal .form-row select,
html.mobile-clock .modal .form-row textarea {
  width: 100%; font-size: 15px; padding: 10px 12px;
}

/* 审核详情弹窗里的商品/明细表：改卡片式（避免横向滚动） */
html.mobile-clock .modal .data-table {
  display: block; overflow-x: visible; white-space: normal;
}
html.mobile-clock .modal .data-table thead { display: none; }
html.mobile-clock .modal .data-table tbody tr {
  display: block; border: 1px solid #e2e8f0; border-radius: 8px;
  padding: 10px 12px; margin-bottom: 8px; background: #fafbfc;
}
html.mobile-clock .modal .data-table td {
  display: block; padding: 2px 0; white-space: normal;
  text-align: left !important; border: none; font-size: 14px;
}

/* 审计弹窗：金额/操作按钮区（底部 foot）折行铺满 */
html.mobile-clock .modal .modal-foot {
  flex-wrap: wrap; gap: 6px;
}
html.mobile-clock .modal .modal-foot .btn {
  flex: 1 1 80px; min-width: 0; padding: 10px 12px;
}




