/* V4.5 字段引擎样式：彩色下拉、拖拽附件、预设色板、停用行 */
.v45-dot { display:inline-block; width:11px; height:11px; border-radius:50%; vertical-align:-1px; margin-right:6px; flex:0 0 auto; }
.v45-cdrop { position:relative; }
.v45-cdrop-btn { width:100%; text-align:left; display:flex; align-items:center; gap:2px; cursor:pointer; min-height:36px; }
.v45-caret { margin-left:auto; color:#909399; }
.v45-cdrop-panel {
  position:absolute; z-index:60; left:0; right:0; top:calc(100% + 4px);
  background:#fff; border:1px solid var(--border, #e5e7eb); border-radius:8px;
  box-shadow:0 8px 24px rgba(0,0,0,.12); padding:5px; max-height:260px; overflow:auto;
}
.v45-cdrop-panel[hidden] { display:none; }
.v45-cdrop-opt {
  display:flex; align-items:center; gap:6px; padding:8px 10px; border-radius:6px;
  cursor:pointer; font-size:13px; line-height:1.4;
}
.v45-cdrop-opt:hover { background:#f5f7fa; }
.v45-cdrop-opt.on { background:#eef5ff; }
.v45-cdrop-opt small { margin-left:4px; font-size:11px; }
.v45-check { margin-left:auto; color:var(--primary, #2f6bff); width:14px; }

.v45-drop {
  border:1.5px dashed var(--border, #cfd6e4); border-radius:8px; padding:14px;
  background:#fafbfe; transition:background .15s, border-color .15s;
}
.v45-drop.over { border-color:var(--primary, #2f6bff); background:#eef5ff; }
.v45-drop-hint { font-size:13px; color:#5b6478; }
.v45-drop-hint a { color:var(--primary, #2f6bff); text-decoration:none; }
.v45-drop-list { margin-top:8px; }
.v45-file { display:flex; align-items:center; gap:8px; padding:5px 8px; background:#fff; border:1px solid var(--border, #e5e7eb); border-radius:6px; margin-top:5px; font-size:13px; }
.v45-file a { flex:1; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; color:var(--primary, #2f6bff); text-decoration:none; }

.v45-num { display:flex; align-items:center; gap:0; }
.v45-num input { flex:1; min-width:0; }
.v45-affix { padding:0 9px; background:#f2f4f8; border:1px solid var(--border, #e5e7eb); color:#6b7280; font-size:13px; line-height:34px; border-radius:0 6px 6px 0; }
.v45-num > .v45-affix:first-child { border-radius:6px 0 0 6px; border-right:0; }
.v45-num > input:not(:first-child) { border-radius:0 6px 6px 0; }

.v45-readonly { background:#f5f7fa; color:#6b7280; padding:9px 10px; border-radius:6px; font-size:13px; }
.v45-checkline { display:inline-flex; align-items:center; gap:7px; font-size:13px; padding:8px 0; cursor:pointer; }

.v45-palette { display:grid; grid-template-columns:repeat(5, 1fr); gap:10px; }
.v45-swatch { height:42px; border-radius:7px; border:2px solid transparent; cursor:pointer; box-shadow:inset 0 0 0 1px rgba(0,0,0,.08); }
.v45-swatch:hover { transform:scale(1.05); }
.v45-swatch.on { border-color:#1f2937; box-shadow:0 0 0 2px #fff inset; }
.v45-color-btn { display:inline-flex; align-items:center; gap:4px; border:1px solid var(--border, #e5e7eb); background:#fff; border-radius:6px; padding:5px 9px; cursor:pointer; font-size:12px; color:#4b5563; }
.v45-color-btn:hover { border-color:var(--primary, #2f6bff); }

/* V4.5.3：颜色选择独立浮层，层级高于全局 modal 的 mask，且不占用 #modal-root */
.v45-color-pop { position:fixed; inset:0; z-index:400; display:flex; align-items:center; justify-content:center; }
.v45-color-mask { position:absolute; inset:0; background:rgba(15,23,42,.45); }
.v45-color-box { position:relative; width:400px; max-width:calc(100vw - 32px); background:#fff; border-radius:12px;
  box-shadow:0 18px 60px rgba(15,23,42,.28); overflow:hidden; }
.v45-color-hd { display:flex; align-items:center; justify-content:space-between; padding:14px 18px;
  border-bottom:1px solid var(--border, #e5e7eb); font-size:15px; }
.v45-color-x { border:0; background:transparent; font-size:21px; line-height:1; color:var(--muted, #64748b); cursor:pointer; }
.v45-color-bd { padding:18px; max-height:60vh; overflow:auto; }
.v45-color-ft { display:flex; justify-content:flex-end; gap:8px; padding:12px 18px; border-top:1px solid var(--border, #e5e7eb); }

tr.v45-off { opacity:.62; background:#fafafa; }
tr.v45-off td b { color:#8a93a5; }
.sortable-table .pin { padding:1px 5px; }
