* { box-sizing: border-box; margin: 0; padding: 0; }

html, body {
  overflow-x: hidden;
  max-width: 100%;
}

body {
  font-family: "Microsoft YaHei", "微软雅黑", sans-serif;
  background: #f0f2f5;
  color: #333;
  min-height: 100vh;
}

.topbar {
  background: linear-gradient(135deg, #4CAF50, #2196F3);
  color: #fff;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: 0 2px 8px rgba(0,0,0,.1);
  gap: 12px;
  flex-wrap: wrap;
}

.topbar-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.user-label {
  font-size: 13px;
  opacity: .95;
  margin-right: 4px;
}

.login-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #e8f5e9, #e3f2fd);
}

.login-card {
  background: #fff;
  border-radius: 12px;
  padding: 32px 36px;
  width: min(400px, 92vw);
  box-shadow: 0 8px 32px rgba(0,0,0,.1);
}

.login-card h1 {
  font-size: 22px;
  margin-bottom: 6px;
  color: #333;
}

.login-card .sub {
  color: #888;
  font-size: 13px;
  margin-bottom: 20px;
}

.login-tip {
  margin-top: 16px;
  font-size: 12px;
  color: #999;
  line-height: 1.5;
}

.stats-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}

@media (max-width: 700px) {
  .stats-row { grid-template-columns: repeat(2, 1fr); }
}

.stat-card {
  background: #fff;
  border-radius: 10px;
  padding: 16px 18px;
  box-shadow: 0 1px 4px rgba(0,0,0,.06);
  text-align: center;
}

.stat-card .num {
  font-size: 28px;
  font-weight: 700;
  color: #2196F3;
}

.stat-card .label {
  font-size: 12px;
  color: #888;
  margin-top: 4px;
}

.role-tag, .status-tag {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 10px;
  font-size: 11px;
  font-weight: 600;
}

.role-tag.admin { background: #fff3e0; color: #e65100; }
.role-tag.user { background: #e3f2fd; color: #1565c0; }
.status-tag.on { background: #e8f5e9; color: #2e7d32; }
.status-tag.off { background: #ffebee; color: #c62828; }

.modal-sm { width: min(420px, 100%); }

.import-progress-modal .modal-body { padding-top: 8px; }

.import-file-name {
  font-size: 13px;
  color: #555;
  margin-bottom: 12px;
  word-break: break-all;
}

.import-progress-track {
  height: 14px;
  background: #e8e8e8;
  border-radius: 7px;
  overflow: hidden;
  margin-bottom: 10px;
}

.import-progress-bar {
  height: 100%;
  background: linear-gradient(90deg, #4CAF50, #66bb6a);
  border-radius: 7px;
  transition: width 0.25s ease;
  min-width: 0;
}

.import-progress-bar.indeterminate {
  width: 40% !important;
  animation: import-indeterminate 1.2s ease-in-out infinite;
}

@keyframes import-indeterminate {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(350%); }
}

.import-progress-text {
  font-size: 14px;
  font-weight: 600;
  color: #333;
  margin-bottom: 6px;
}

.import-progress-stats {
  font-size: 12px;
  color: #777;
  line-height: 1.6;
  min-height: 36px;
}

.import-progress-modal.done .import-progress-bar {
  background: #388e3c;
}

.import-progress-modal.error .import-progress-bar {
  background: #e53935;
}

.edit-record-modal .modal-body {
  max-height: min(70vh, 640px);
  overflow-y: auto;
}

.edit-id-label {
  font-size: 12px;
  font-weight: normal;
  color: #888;
}

.edit-record-fields {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.edit-field-row {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 10px;
  align-items: start;
}

.edit-field-row label {
  font-size: 13px;
  font-weight: 600;
  color: #555;
  padding-top: 8px;
  line-height: 1.3;
}

.edit-field-row input,
.edit-field-row textarea {
  width: 100%;
  border: 1px solid #ddd;
  border-radius: 6px;
  padding: 8px 10px;
  font-size: 13px;
  font-family: inherit;
  background: #fafafa;
}

.edit-field-row textarea {
  min-height: 72px;
  resize: vertical;
  line-height: 1.5;
}

.edit-field-row input:focus,
.edit-field-row textarea:focus {
  outline: none;
  border-color: #4CAF50;
  background: #fff;
}

.edit-field-row.focused label {
  color: #2e7d32;
}

.edit-field-row.focused input,
.edit-field-row.focused textarea {
  border-color: #4CAF50;
  box-shadow: 0 0 0 2px rgba(76, 175, 80, 0.15);
}

table.record-tree tbody td.editable-cell {
  cursor: pointer;
}

table.record-tree tbody td.editable-cell:hover {
  background: #fff8e1;
}

.req { color: #d32f2f; }

.admin-layout {
  max-width: 1200px;
  margin: 16px auto;
  padding: 0 20px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.admin-form-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

@media (max-width: 700px) {
  .admin-form-grid { grid-template-columns: 1fr; }
}

.admin-acts {
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
}

.accounts-toolbar {
  display: flex;
  gap: 8px;
  margin-bottom: 12px;
}

.accounts-summary {
  font-size: 13px;
  color: #666;
  margin-bottom: 10px;
}

.upload-btn {
  cursor: pointer;
  display: inline-block;
}

.upload-btn input { display: none; }

.topbar .btn { color: #fff; text-decoration: none; }
.topbar a.btn { display: inline-block; }

#btnAdminLink[hidden] {
  display: none !important;
}

.impersonate-bar {
  background: #fff3e0;
  color: #e65100;
  padding: 8px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: 13px;
  border-bottom: 1px solid #ffe0b2;
}

.impersonate-bar[hidden] { display: none; }


.topbar h1 { font-size: 20px; font-weight: 700; }
.topbar .sub { font-size: 12px; opacity: .85; }

.layout {
  display: grid;
  grid-template-columns: 550px minmax(0, 1fr);
  gap: 12px;
  padding: 12px 16px;
  width: 100%;
  max-width: 100vw;
  margin: 0;
  align-items: start;
  min-height: calc(100vh - 64px);
  overflow: hidden;
}

.layout > * {
  min-width: 0;
}

@media (max-width: 1100px) {
  .layout {
    grid-template-columns: 1fr;
    overflow-x: hidden;
  }
}

.record-list-card {
  display: flex;
  flex-direction: column;
  min-height: calc(100vh - 88px);
  min-width: 0;
  max-width: 100%;
  overflow: hidden;
  padding-bottom: 12px;
}

.layout > .record-list-card {
  width: 100%;
}

.card {
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 1px 4px rgba(0,0,0,.06);
  padding: 16px 18px;
}

.card h2 {
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 10px;
  color: #333;
}

.hint {
  font-size: 12px;
  color: #888;
  margin-bottom: 8px;
  line-height: 1.5;
}

textarea {
  width: 100%;
  min-height: 120px;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  padding: 10px;
  font-family: Consolas, monospace;
  font-size: 13px;
  resize: vertical;
  background: #fafafa;
}

textarea:focus {
  outline: none;
  border-color: #4CAF50;
}

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.btn {
  border: none;
  border-radius: 6px;
  padding: 8px 16px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  color: #fff;
  transition: opacity .15s;
}

.btn:hover { opacity: .88; }
.btn:disabled { opacity: .45; cursor: not-allowed; }
.btn-primary { background: #4CAF50; }
.btn-blue { background: #2196F3; }
.btn-orange { background: #FF9800; }
.btn-gray { background: #757575; }
.btn-orange { background: #FF9800; }
.btn-sm { padding: 6px 12px; font-size: 12px; }

.form-tip {
  font-weight: normal;
  color: #999;
  font-size: 11px;
}

.modal-list-title {
  font-size: 12px;
  color: #666;
  font-weight: 600;
  margin-bottom: 6px;
}

.cfg-item .badge {
  display: inline-block;
  font-size: 10px;
  background: #e8f5e9;
  color: #2e7d32;
  padding: 1px 6px;
  border-radius: 8px;
  margin-left: 6px;
  font-weight: normal;
}

.cfg-item .acts button.copy { color: #1976D2; }
.cfg-item .acts button.edit { color: #FF9800; }

.parse-template-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
  flex-wrap: wrap;
}

.parse-template-bar label {
  font-size: 12px;
  color: #666;
  font-weight: 600;
}

.parse-template-bar select {
  flex: 1;
  min-width: 160px;
  padding: 6px 10px;
  border: 1px solid #ddd;
  border-radius: 6px;
  font-size: 13px;
}

.modal-mask {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.45);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 20px;
}

.modal-mask[hidden] { display: none; }

.modal {
  background: #fff;
  border-radius: 12px;
  width: min(640px, 100%);
  max-height: 90vh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 12px 40px rgba(0,0,0,.2);
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 18px;
  border-bottom: 1px solid #eee;
}

.modal-header h3 { font-size: 16px; }
.modal-close {
  border: none;
  background: none;
  font-size: 24px;
  cursor: pointer;
  color: #888;
  line-height: 1;
}

.modal-body {
  padding: 16px 18px;
  overflow-y: auto;
}

.modal-footer {
  padding: 12px 18px;
  border-top: 1px solid #eee;
  display: flex;
  gap: 8px;
  justify-content: flex-end;
}

.form-row {
  margin-bottom: 12px;
}

.form-row label {
  display: block;
  font-size: 12px;
  color: #666;
  margin-bottom: 4px;
  font-weight: 600;
}

.form-row input {
  width: 100%;
  padding: 8px 10px;
  border: 1px solid #ddd;
  border-radius: 6px;
  font-size: 13px;
}

.label-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 12px;
}

.tag-btn {
  border: 1px solid #d0e8ff;
  background: #f0f7ff;
  color: #1976D2;
  border-radius: 14px;
  padding: 4px 10px;
  font-size: 12px;
  cursor: pointer;
}

.tag-btn:hover { background: #e3f2fd; }

.modal-list {
  border: 1px solid #eee;
  border-radius: 8px;
  max-height: 180px;
  overflow-y: auto;
}

.cfg-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 10px 12px;
  border-bottom: 1px solid #f5f5f5;
  font-size: 12px;
}

.cfg-item:last-child { border-bottom: none; }
.cfg-item.active { background: #e8f5e9; }
.cfg-item.editing { outline: 2px solid #2196F3; outline-offset: -2px; }
.cfg-item .cfg-info { flex: 1; min-width: 0; }
.cfg-item .name { font-weight: 700; color: #333; }
.cfg-item .fmt { color: #888; margin-top: 2px; word-break: break-all; }
.cfg-item .acts { display: flex; gap: 6px; flex-shrink: 0; }
.cfg-item .acts button {
  border: none;
  background: #f5f5f5;
  border-radius: 4px;
  padding: 4px 8px;
  font-size: 11px;
  cursor: pointer;
}
.cfg-item .acts button:hover { background: #e0e0e0; }
.cfg-item .acts button.del { color: #d32f2f; }

code {
  background: #f5f5f5;
  padding: 1px 5px;
  border-radius: 4px;
  font-size: 12px;
}

.fields {
  display: flex;
  flex-direction: column;
  gap: 6px;
  max-height: 420px;
  overflow-y: auto;
}

.field-row {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 8px;
  align-items: start;
  padding: 6px 8px;
  border-radius: 6px;
  background: #fafafa;
  font-size: 12px;
}

.field-row label {
  color: #666;
  font-weight: 600;
  padding-top: 2px;
}

.field-row .val {
  color: #222;
  word-break: break-all;
  line-height: 1.4;
}

.field-row .val.empty { color: #bbb; }

.search-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin-bottom: 10px;
}

.search-bar input {
  flex: 1;
  min-width: 180px;
  padding: 8px 12px;
  border: 1px solid #ddd;
  border-radius: 6px;
  font-size: 13px;
}

.search-by-select {
  padding: 7px 8px;
  border: 1px solid #ddd;
  border-radius: 6px;
  font-size: 13px;
  background: #fff;
  color: #333;
  min-width: 108px;
}

.search-by-select[hidden] {
  display: none !important;
}

.search-bar input:focus {
  outline: none;
  border-color: #4CAF50;
}

.search-count {
  font-size: 12px;
  color: #666;
  margin-left: 4px;
}

.btn-load {
  padding: 2px 8px;
  font-size: 12px;
  border: 1px solid #2196F3;
  background: #e3f2fd;
  color: #1565c0;
  border-radius: 4px;
  cursor: pointer;
}

.btn-load:hover {
  background: #bbdefb;
}

.list-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin-bottom: 12px;
}

/* 记录操作栏：单行不换行，按视图切换按钮组 */
.record-actions {
  display: flex;
  align-items: center;
  margin-bottom: 8px;
  min-height: 34px;
  overflow-x: auto;
  overflow-y: hidden;
}

.record-actions-group {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 6px;
  flex: 1 1 auto;
  min-width: min-content;
}

.record-actions-group.is-hidden {
  display: none !important;
}

.record-actions .btn {
  white-space: nowrap;
  flex-shrink: 0;
}

.record-actions .action-select {
  padding: 6px 8px;
  border: 1px solid #ddd;
  border-radius: 6px;
  font-size: 12px;
  min-width: 108px;
  max-width: 140px;
  flex-shrink: 0;
}

.action-divider {
  width: 1px;
  height: 22px;
  background: #e0e0e0;
  margin: 0 4px;
  flex-shrink: 0;
}

.record-actions-export {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

.browse-hint {
  background: #fff8e1;
  border: 1px solid #ffe082;
  color: #8d6e00;
}

.setting-toggle {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  cursor: pointer;
  margin-bottom: 14px;
}

.setting-toggle input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.setting-toggle-box {
  width: 44px;
  height: 24px;
  border-radius: 12px;
  background: #ccc;
  position: relative;
  flex-shrink: 0;
  margin-top: 2px;
  transition: background 0.2s;
}

.setting-toggle-box::after {
  content: '';
  position: absolute;
  top: 3px;
  left: 3px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #fff;
  transition: transform 0.2s;
}

.setting-toggle input:checked + .setting-toggle-box {
  background: #4CAF50;
}

.setting-toggle input:checked + .setting-toggle-box::after {
  transform: translateX(20px);
}

.setting-toggle-text {
  display: flex;
  flex-direction: column;
  gap: 4px;
  line-height: 1.5;
}

.setting-toggle-text small {
  color: #666;
  font-size: 12px;
}

.setting-toggle-compact {
  margin-top: 8px;
  margin-bottom: 0;
}

.form-row-check {
  display: flex;
  align-items: center;
}

.inline-check {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: #555;
  cursor: pointer;
}

.list-toolbar select {
  padding: 7px 10px;
  border: 1px solid #ddd;
  border-radius: 6px;
  font-size: 13px;
  min-width: 160px;
}

.record-list-card h2 { margin: 0; }

/* 记录表格独立容器：只在此区域内滚动，不带动整页 */
.record-table-box {
  flex: 1 1 auto;
  min-width: 0;
  max-width: 100%;
  width: 100%;
  overflow: hidden;
  margin-top: 8px;
}

.record-table-wrap {
  flex: 1 1 auto;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  min-height: 360px;
  height: calc(100vh - 320px);
  overflow: auto;
  border: 1px solid #e0e0e0;
  border-radius: 4px;
  background: #fafafa;
  margin-top: 0;
  position: relative;
  isolation: isolate;
  overscroll-behavior: contain;
}

table.record-tree {
  width: max-content;
  border-collapse: collapse;
  font-size: 12px;
  font-family: "Microsoft YaHei", "微软雅黑", sans-serif;
  table-layout: fixed;
}

table.record-tree thead th {
  background: #4CAF50;
  color: #fff;
  padding: 6px 8px;
  text-align: left;
  position: sticky;
  top: 0;
  z-index: 2;
  white-space: nowrap;
  font-weight: 700;
  border-right: 1px solid rgba(255,255,255,.15);
}

table.record-tree tbody td {
  padding: 4px 8px;
  border-bottom: 1px solid #eee;
  background: #fafafa;
  color: #333;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  height: 25px;
  line-height: 25px;
  border-right: 1px solid #f0f0f0;
}

table.record-tree tbody tr:hover td {
  background: #e8f5e9;
}

table.record-tree tbody tr.selected td {
  background: #2196F3;
  color: #fff;
}

table.record-tree tbody tr.selected:hover td {
  background: #1e88e5;
}

table.record-tree .col-check {
  width: 36px;
  min-width: 36px;
  max-width: 36px;
  text-align: center;
}

.record-pager {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 10px;
  padding: 8px 4px 0;
  border-top: 1px solid #eee;
  font-size: 13px;
}

.page-info { color: #555; }

.page-btns {
  display: flex;
  align-items: center;
  gap: 8px;
}

.page-jump {
  font-size: 13px;
  color: #666;
}

.page-jump input {
  width: 52px;
  padding: 4px 6px;
  border: 1px solid #ddd;
  border-radius: 4px;
  text-align: center;
}

.record-list-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 10px;
  max-width: 100%;
}

.record-pool-tabs {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.pool-tab {
  border: 1px solid #c8e6c9;
  background: #f1f8f1;
  color: #2e7d32;
  padding: 6px 14px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}

.pool-tab:hover { background: #e8f5e9; }

.pool-tab.active {
  background: #4CAF50;
  border-color: #4CAF50;
  color: #fff;
}

.record-list-header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.record-list-header-actions label {
  font-size: 13px;
  color: #666;
}

.record-list-header-actions select {
  padding: 6px 10px;
  border: 1px solid #ddd;
  border-radius: 6px;
  font-size: 13px;
  min-width: 160px;
}

.modal-wide { width: min(720px, 96vw); }

.col-editor {
  border: 1px solid #e8e8e8;
  border-radius: 8px;
  background: #fafafa;
  max-height: 240px;
  overflow: auto;
}

.col-editor-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  border-bottom: 1px solid #eee;
  background: #fff;
}

.col-editor-item:last-child { border-bottom: none; }

.col-editor-item .name {
  flex: 1;
  font-size: 13px;
}

.col-editor-item .acts button {
  border: 1px solid #ddd;
  background: #fff;
  border-radius: 4px;
  padding: 2px 8px;
  cursor: pointer;
  font-size: 12px;
}

.col-editor-item .acts button:hover { background: #f0f0f0; }
.col-editor-item .acts button.del { color: #c62828; border-color: #ffcdd2; }

.toast {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background: #323232;
  color: #fff;
  padding: 10px 18px;
  border-radius: 8px;
  font-size: 13px;
  opacity: 0;
  transform: translateY(10px);
  transition: all .25s;
  z-index: 999;
  pointer-events: none;
}

.toast.show {
  opacity: 1;
  transform: translateY(0);
}

.toast.error { background: #d32f2f; }
.toast.warn { background: #f57c00; }
.toast.success { background: #388e3c; }

.empty-tip {
  text-align: center;
  color: #aaa;
  padding: 40px 20px;
  font-size: 14px;
}

.print-hint {
  margin-top: 8px;
  font-size: 12px;
  color: #888;
  line-height: 1.6;
}

/* 表头排序 / 筛选 */
.record-tree th.col-sortable {
  padding: 0;
  vertical-align: middle;
}

.th-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 4px;
  padding: 8px 6px;
  min-height: 36px;
}

.th-label {
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 12px;
}


.th-menu {
  border: none;
  background: rgba(255, 255, 255, 0.15);
  color: rgba(255, 255, 255, 0.85);
  line-height: 0;
  padding: 4px 5px;
  border-radius: 3px;
  cursor: pointer;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.th-menu:hover {
  background: rgba(255, 255, 255, 0.35);
}

.th-menu.active {
  background: #fff;
  color: #2e7d32;
}

.th-menu.sort-desc.active {
  color: #1565c0;
}

.th-menu.filtered.active {
  color: #e65100;
}

.col-filter-sort {
  display: flex;
  flex-direction: column;
  padding: 4px 0;
}

.col-sort-btn {
  display: block;
  width: 100%;
  border: none;
  background: none;
  text-align: left;
  padding: 7px 14px;
  font-size: 12px;
  color: #333;
  cursor: pointer;
}

.col-sort-btn:hover {
  background: #f1f8e9;
}

.col-sort-btn.active {
  background: #e8f5e9;
  color: #2e7d32;
  font-weight: 600;
}

.col-filter-divider {
  height: 1px;
  background: #eee;
  margin: 0 10px;
}

.col-filter-popup {
  position: fixed;
  z-index: 200;
  width: 260px;
  max-height: 360px;
  background: #fff;
  border: 1px solid #c8e6c9;
  border-radius: 8px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.col-filter-popup[hidden] {
  display: none !important;
}

.col-filter-title {
  padding: 10px 12px 6px;
  font-size: 13px;
  font-weight: 600;
  color: #333;
  border-bottom: 1px solid #eee;
}

.col-filter-search {
  margin: 8px 10px 4px;
  padding: 6px 8px;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 12px;
}

.col-filter-all {
  display: block;
  padding: 4px 12px;
  font-size: 12px;
  color: #555;
}

.col-filter-list {
  flex: 1;
  overflow-y: auto;
  padding: 4px 8px;
  max-height: 220px;
}

.col-filter-item {
  display: block;
  padding: 4px 6px;
  font-size: 12px;
  color: #333;
  cursor: pointer;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.col-filter-item:hover {
  background: #f1f8f1;
}

.col-filter-item input {
  margin-right: 6px;
}

.col-filter-actions {
  display: flex;
  gap: 8px;
  padding: 8px 10px;
  border-top: 1px solid #eee;
}
