:root {
  --primary: #4F46E5;
  --primary-light: #818CF8;
  --success: #10B981;
  --warning: #F59E0B;
  --danger: #EF4444;
  --info: #3B82F6;
  --bg: #F1F5F9;
  --card: #FFFFFF;
  --sidebar: #1E293B;
  --sidebar-hover: #334155;
  --text: #1E293B;
  --text-light: #64748B;
  --text-white: #F8FAFC;
  --border: #E2E8F0;
  --shadow: 0 1px 3px rgba(0,0,0,0.1);
  --shadow-lg: 0 4px 12px rgba(0,0,0,0.1);
  --radius: 8px;
  --radius-lg: 12px;
}

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

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Microsoft YaHei', sans-serif;
  background: var(--bg); color: var(--text); display: flex; height: 100vh; overflow: hidden;
}

/* Sidebar */
.sidebar {
  width: 240px; background: var(--sidebar); color: var(--text-white);
  display: flex; flex-direction: column; flex-shrink: 0; transition: transform 0.3s;
}
.sidebar-brand { padding: 20px; border-bottom: 1px solid rgba(255,255,255,0.1); display: flex; align-items: center; gap: 12px; }
.sidebar-brand .logo { width: 36px; height: 36px; background: var(--primary); border-radius: 8px; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 16px; }
.sidebar-brand h2 { font-size: 15px; font-weight: 600; line-height: 1.3; }
.sidebar-brand small { font-size: 11px; color: rgba(255,255,255,0.5); }
.sidebar-nav { flex: 1; overflow-y: auto; padding: 8px; }
.nav-group-title { font-size: 11px; color: rgba(255,255,255,0.4); padding: 12px 12px 4px; text-transform: uppercase; letter-spacing: 0.5px; }
.nav-item { padding: 10px 12px; border-radius: 6px; cursor: pointer; display: flex; align-items: center; gap: 10px; font-size: 14px; transition: all 0.2s; margin: 2px 0; }
.nav-item:hover { background: var(--sidebar-hover); }
.nav-item.active { background: var(--primary); font-weight: 500; }
.nav-item .icon { font-size: 16px; }
.sidebar-footer { padding: 12px; border-top: 1px solid rgba(255,255,255,0.1); }
.user-info { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.avatar-small { width: 32px; height: 32px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 600; color: #fff; }
.user-name { font-size: 13px; font-weight: 500; }
.user-role { font-size: 11px; color: rgba(255,255,255,0.5); }
.btn-logout { width: 100%; padding: 6px; background: rgba(255,255,255,0.1); border: none; color: rgba(255,255,255,0.7); border-radius: 4px; cursor: pointer; font-size: 12px; }
.btn-logout:hover { background: rgba(255,255,255,0.2); }

/* Main */
.main { flex: 1; display: flex; flex-direction: column; overflow: hidden; }
.header { background: var(--card); padding: 16px 24px; display: flex; justify-content: space-between; align-items: center; border-bottom: 1px solid var(--border); flex-shrink: 0; }
.header-left { display: flex; align-items: center; gap: 12px; }
.header-left h1 { font-size: 20px; font-weight: 600; }
.header-left p { font-size: 13px; color: var(--text-light); margin-top: 2px; }
.header-right { display: flex; align-items: center; gap: 16px; }
.avatar { width: 36px; height: 36px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 14px; font-weight: 600; color: #fff; }
.mobile-menu-btn { display: none; background: none; border: none; font-size: 20px; cursor: pointer; }

.content { flex: 1; overflow-y: auto; padding: 24px; }

/* Cards */
.card { background: var(--card); border-radius: var(--radius-lg); box-shadow: var(--shadow); padding: 20px; margin-bottom: 20px; }
.dashboard-card { background: var(--card); border-radius: var(--radius-lg); box-shadow: var(--shadow); padding: 20px; }
.card-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; }
.card-header h3 { font-size: 15px; font-weight: 600; }

/* KPI */
.kpi-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 24px; }
.kpi-card { background: var(--card); border-radius: var(--radius-lg); box-shadow: var(--shadow); padding: 20px; display: flex; align-items: center; gap: 16px; }
.kpi-icon { width: 48px; height: 48px; border-radius: 12px; display: flex; align-items: center; justify-content: center; font-size: 20px; }
.kpi-value { font-size: 24px; font-weight: 700; }
.kpi-label { font-size: 13px; color: var(--text-light); margin-top: 2px; }

/* Dashboard */
.dashboard-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-bottom: 20px; }
.kanban-dashboard { display: grid; grid-template-columns: repeat(7, 1fr); gap: 8px; }
.kanban-col-mini { text-align: center; }
.kanban-col-mini .kanban-header { padding: 8px; border-radius: 6px; font-size: 12px; font-weight: 600; color: #fff; }
.kanban-col-mini .kanban-count { font-size: 20px; font-weight: 700; margin-top: 8px; }

/* Page toolbar */
.page-toolbar { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; }
.page-toolbar h3 { font-size: 16px; font-weight: 600; }
.view-toggle { display: flex; gap: 4px; }

/* Buttons */
.btn { padding: 8px 16px; border-radius: 6px; border: none; cursor: pointer; font-size: 13px; font-weight: 500; transition: all 0.2s; display: inline-flex; align-items: center; gap: 6px; }
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: #4338CA; }
.btn-ghost { background: transparent; color: var(--text-light); border: 1px solid var(--border); }
.btn-ghost:hover { background: var(--bg); }
.btn-danger { background: var(--danger); color: #fff; }
.btn-sm { padding: 4px 10px; font-size: 12px; }
.btn-block { width: 100%; justify-content: center; padding: 12px; }

/* Tables */
.data-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.data-table th { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--border); color: var(--text-light); font-weight: 500; font-size: 12px; white-space: nowrap; }
.data-table td { padding: 12px; border-bottom: 1px solid var(--border); }
.data-table tr:hover { background: #F8FAFC; }

/* Tags */
.tag { display: inline-block; padding: 2px 8px; border-radius: 4px; font-size: 12px; background: #F1F5F9; color: var(--text-light); }
.badge-grade { display: inline-block; width: 24px; height: 24px; line-height: 24px; text-align: center; border-radius: 50%; font-size: 12px; font-weight: 600; }
.badge-grade.A { background: #D1FAE5; color: #065F46; }
.badge-grade.B { background: #DBEAFE; color: #1D4ED8; }
.badge-grade.C { background: #F3F4F6; color: #4B5563; }
.badge-priority { display: inline-block; padding: 2px 8px; border-radius: 4px; font-size: 11px; font-weight: 500; }
.badge-priority.紧急 { background: #FEE2E2; color: #991B1B; }
.badge-priority.高 { background: #FFEDD5; color: #9A3412; }
.badge-priority.中 { background: #FEF3C7; color: #92400E; }
.badge-priority.低 { background: #E0E7FF; color: #3730A3; }
.tag-success { background: #D1FAE5; color: #065F46; }
.tag-warning { background: #FEF3C7; color: #92400E; }
.tag-info { background: #DBEAFE; color: #1D4ED8; }

/* Kanban */
.kanban { display: grid; grid-template-columns: repeat(7, 1fr); gap: 12px; overflow-x: auto; }
.kanban-col { min-width: 200px; }
.kanban-header { padding: 10px 12px; border-radius: 8px; color: #fff; font-size: 13px; font-weight: 600; display: flex; justify-content: space-between; align-items: center; }
.kanban-header .count { background: rgba(255,255,255,0.25); padding: 2px 8px; border-radius: 10px; font-size: 11px; }
.kanban-body { margin-top: 8px; display: flex; flex-direction: column; gap: 8px; }
.kanban-card { background: var(--card); border-radius: 8px; padding: 12px; box-shadow: var(--shadow); cursor: pointer; transition: transform 0.15s; border: 1px solid var(--border); }
.kanban-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.kanban-card-title { font-size: 13px; font-weight: 600; margin-bottom: 4px; }
.kanban-card-meta { font-size: 12px; color: var(--text-light); margin-bottom: 8px; }
.kanban-card-footer { display: flex; justify-content: space-between; font-size: 12px; color: var(--text-light); margin-bottom: 6px; }
.progress-bar { height: 4px; background: #E2E8F0; border-radius: 2px; overflow: hidden; }
.progress-fill { height: 100%; background: var(--primary); border-radius: 2px; transition: width 0.3s; }
.progress-inline { width: 60px; height: 4px; background: #E2E8F0; border-radius: 2px; overflow: hidden; display: inline-block; vertical-align: middle; margin-right: 4px; }

/* Forms */
.form-group { margin-bottom: 14px; }
.form-group label { display: block; font-size: 13px; font-weight: 500; margin-bottom: 5px; }
.form-group input, .form-group select, .form-group textarea {
  width: 100%; padding: 8px 12px; border: 1px solid var(--border); border-radius: 6px; font-size: 13px; background: var(--card); color: var(--text);
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus { outline: none; border-color: var(--primary); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.search-input { padding: 8px 14px; border: 1px solid var(--border); border-radius: 6px; font-size: 13px; width: 280px; background: var(--card); }
.filter-group { display: flex; gap: 8px; }
.filter-group select { padding: 6px 10px; border: 1px solid var(--border); border-radius: 6px; font-size: 13px; background: var(--card); }

/* Modal */
.modal-overlay { position: fixed; inset: 0; background: rgba(0,0,0,0.5); z-index: 1000; display: none; align-items: center; justify-content: center; padding: 20px; }
.modal { background: var(--card); border-radius: var(--radius-lg); width: 100%; max-width: 600px; max-height: 90vh; overflow-y: auto; box-shadow: 0 20px 60px rgba(0,0,0,0.2); }
.modal-header { padding: 16px 20px; border-bottom: 1px solid var(--border); display: flex; justify-content: space-between; align-items: center; }
.modal-header h3 { font-size: 15px; font-weight: 600; }
.modal-close { background: none; border: none; font-size: 18px; cursor: pointer; color: var(--text-light); }
.modal-body { padding: 20px; }
.modal-footer { padding: 12px 20px; border-top: 1px solid var(--border); display: flex; justify-content: flex-end; gap: 8px; }

/* Detail */
.detail-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 20px; }
.detail-item.full { grid-column: 1 / -1; }
.detail-item label { font-size: 12px; color: var(--text-light); display: block; margin-bottom: 2px; }
.detail-item div { font-size: 14px; font-weight: 500; }

/* Tasks */
.task-list-mini { display: flex; flex-direction: column; gap: 8px; }
.task-item-mini { padding: 10px 12px; background: #F8FAFC; border-radius: 6px; font-size: 13px; display: flex; flex-direction: column; gap: 2px; }
.task-item-mini.overdue { background: #FEF2F2; }
.line-through { text-decoration: line-through; color: var(--text-light); }
.text-danger { color: var(--danger); }

/* Communication */
.comm-timeline { display: flex; flex-direction: column; gap: 16px; }
.comm-item { display: flex; gap: 12px; }
.comm-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--primary); margin-top: 4px; flex-shrink: 0; }
.comm-body { flex: 1; padding-bottom: 12px; border-bottom: 1px solid var(--border); }
.comm-header { display: flex; align-items: center; gap: 8px; margin-bottom: 4px; flex-wrap: wrap; }

/* Documents */
.doc-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; }
.doc-card { background: var(--card); border-radius: var(--radius); padding: 16px; box-shadow: var(--shadow); display: flex; align-items: center; gap: 12px; cursor: pointer; transition: all 0.2s; }
.doc-card:hover { box-shadow: var(--shadow-lg); }
.doc-icon { font-size: 32px; }
.doc-name { font-size: 13px; font-weight: 500; margin-bottom: 2px; }
.doc-meta { font-size: 12px; color: var(--text-light); }

/* Document Folder View */
.doc-folders-container { display: flex; flex-direction: column; gap: 10px; }
.doc-folder { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; transition: box-shadow .2s; }
.doc-folder:hover { box-shadow: var(--shadow-lg); }
.doc-folder-header { display: flex; align-items: center; padding: 14px 18px; cursor: pointer; user-select: none; transition: background .15s; border-left: 4px solid transparent; }
.doc-folder-header:hover { background: #F8FAFC; border-left-color: #3B82F6; }
.doc-folder-icon { width: 40px; height: 40px; border-radius: 10px; display: flex; align-items: center; justify-content: center; color: #fff; font-size: 18px; font-weight: 700; flex-shrink: 0; }
.doc-folder-name { font-size: 15px; font-weight: 600; color: #1E293B; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.doc-folder-meta { font-size: 12px; color: #94A3B8; margin-top: 2px; }
.doc-folder-count { background: #EFF6FF; color: #3B82F6; font-size: 12px; font-weight: 600; padding: 2px 10px; border-radius: 20px; min-width: 28px; text-align: center; }
.doc-folder-content { padding: 0 18px 16px 72px; animation: slideDown .2s ease; }
@keyframes slideDown { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: translateY(0); } }
@keyframes spin { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }
.spin { animation: spin 1s linear infinite; }

/* File list inside folder */
.doc-file-list { display: flex; flex-direction: column; gap: 2px; margin-top: 4px; }
.doc-file-item { display: flex; align-items: center; gap: 12px; padding: 8px 12px; border-radius: 8px; cursor: pointer; transition: background .15s; }
.doc-file-item:hover { background: #F1F5F9; }
.doc-file-icon-wrap { width: 36px; height: 36px; border-radius: 8px; border: 1.5px dashed; display: flex; align-items: center; justify-content: center; font-size: 17px; flex-shrink: 0; }
.doc-file-detail { flex: 1; min-width: 0; }
.doc-file-name { font-size: 13px; font-weight: 500; color: #334155; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.doc-file-meta { font-size: 11px; color: #94A3B8; margin-top: 1px; }
.doc-file-actions { display: none; gap: 4px; flex-shrink: 0; }
.doc-file-item:hover .doc-file-actions { display: flex; }
.doc-action-btn {
  padding: 4px 12px;
  border: 1px solid #E2E8F0;
  border-radius: 6px;
  background: #fff;
  font-size: 12px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 3px;
  transition: all .15s;
  white-space: nowrap;
  flex-shrink: 0;
}
.doc-preview-btn { color: #059669; border-color: #A7F3D0; background: #ECFDF5; }
.doc-preview-btn:hover { background: #059669; border-color: #059669; color: #fff; }
.doc-upload-btn { color: #DC2626; border-color: #FECACA; background: #FEF2F2; }
.doc-upload-btn:hover { background: #DC2626; border-color: #DC2626; color: #fff; }

/* Document Checklist (资料清单) */
.doc-checklist { display: flex; flex-direction: column; gap: 6px; margin-top: 8px; }
.doc-check-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  border-radius: 10px;
  cursor: pointer;
  transition: all .2s;
  border: 1px solid transparent;
  background: #FAFBFC;
}
.doc-check-item:hover {
  background: #F1F5F9;
  border-color: #E2E8F0;
  transform: translateX(2px);
}
.doc-check-item[data-status="submitted"] {
  background: linear-gradient(135deg, #F0FDF4 0%, #ECFDF5 100%);
  border-color: #BBF7D040;
}
.doc-check-item[data-status="pending"] {
  background: linear-gradient(135deg, #FFFBEB 0%, #FEF3C7 100%);
  border-color: #FDE68A40;
}
.doc-check-item[data-status="missing"] {
  background: linear-gradient(135deg, #FEF2F2 0%, #FEE2E2 100%);
  border-color: #FECACA40;
}

.doc-check-status {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  flex-shrink: 0;
  font-weight: 700;
  transition: all .2s;
}
.doc-check-info { flex: 1; min-width: 0; }
.doc-check-name {
  font-size: 14px;
  font-weight: 600;
  color: #1E293B;
  display: flex;
  align-items: center;
  gap: 6px;
}
.doc-check-desc {
  font-size: 12px;
  color: #94A3B8;
  margin-top: 2px;
}
.doc-required-tag {
  background: #EF4444;
  color: #fff;
  font-size: 10px;
  padding: 1px 6px;
  border-radius: 4px;
  font-weight: 500;
  vertical-align: middle;
}
.doc-check-right {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}
.doc-file-meta {
  font-size: 11px;
  color: #94A3B8;
}
.doc-status-label {
  font-size: 11px;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 20px;
  white-space: nowrap;
}

/* Folder action buttons */
.doc-folder-actions {
  display: flex;
  gap: 8px;
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid #F1F5F9;
}

/* Cost Management */
.cost-customers-list { display: flex; flex-direction: column; gap: 10px; }
.cost-customer-card { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; transition: box-shadow .2s; }
.cost-customer-card:hover { box-shadow: var(--shadow-lg); }
.cost-customer-header {
  display: flex; align-items: center; padding: 14px 18px;
  cursor: pointer; user-select: none; transition: background .15s;
  border-left: 4px solid transparent;
}
.cost-customer-header:hover { background: #F8FAFC; border-left-color: #EF4444; }
.cost-customer-avatar {
  width: 38px; height: 38px; border-radius: 10px;
  background: linear-gradient(135deg, #FEF2F0, #FEE2E2);
  color: #DC2626; display: flex; align-items: center; justify-content: center;
  font-size: 16px; font-weight: 700; flex-shrink: 0;
}
.cost-customer-name { font-size: 15px; font-weight: 600; color: #1E293B; }
.cost-customer-meta { font-size: 12px; color: #94A3B8; margin-top: 2px; }
.cost-customer-total {
  font-size: 16px; font-weight: 700; color: #DC2626;
  background: #FEF2F2; padding: 4px 12px; border-radius: 20px;
}
.cost-customer-body { animation: slideDown .2s ease; }
.cost-detail-table { border: none !important; }
.cost-detail-table thead th { background: #F8FAFC; font-size: 12px; }
.cost-bar-chart { position: relative; }
.cost-bar { transition: height .4s cubic-bezier(.34,1.56,.64,1); }

/* Reports */
.report-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }

/* Settings */
.settings-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }

/* Login */
.login-page { width: 100%; height: 100vh; display: flex; align-items: center; justify-content: center; background: linear-gradient(135deg, #4F46E5 0%, #7C3AED 100%); }
.login-box { background: var(--card); border-radius: var(--radius-lg); padding: 40px; width: 100%; max-width: 400px; box-shadow: 0 20px 60px rgba(0,0,0,0.2); }
.login-brand { text-align: center; margin-bottom: 32px; }
.login-brand .logo { width: 56px; height: 56px; background: var(--primary); border-radius: 14px; display: flex; align-items: center; justify-content: center; font-size: 24px; font-weight: 700; color: #fff; margin: 0 auto 16px; }
.login-brand h1 { font-size: 22px; font-weight: 700; margin-bottom: 4px; }
.login-brand p { font-size: 13px; color: var(--text-light); }
.login-hint { margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--border); text-align: center; }
.login-hint p { font-size: 12px; color: var(--text-light); margin: 2px 0; }

/* Mobile Nav */
.mobile-nav { display: none; position: fixed; bottom: 0; left: 0; right: 0; background: var(--card); border-top: 1px solid var(--border); z-index: 100; padding: 6px 0; }
.mobile-nav-item { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 2px; font-size: 11px; color: var(--text-light); cursor: pointer; padding: 4px; }
.mobile-nav-item.active { color: var(--primary); }

/* Funnel */
.funnel-bar { display: flex; gap: 2px; margin-bottom: 24px; border-radius: 8px; overflow: hidden; }
.funnel-seg { padding: 16px; text-align: center; color: #fff; min-width: 100px; cursor: pointer; transition: transform 0.15s, filter 0.15s; position: relative; }
.funnel-seg:hover { transform: translateY(-2px); filter: brightness(1.1); }
.funnel-seg.active { box-shadow: inset 0 0 0 3px rgba(255,255,255,0.5); }
.funnel-seg.active::after { content: '✓ 已筛选'; position: absolute; bottom: 4px; left: 50%; transform: translateX(-50%); font-size: 10px; opacity: 0.9; }
.funnel-label { font-size: 13px; font-weight: 600; margin-bottom: 4px; }
.funnel-num { font-size: 18px; font-weight: 700; }
.funnel-amt { font-size: 12px; opacity: 0.8; }
.filter-bar { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; padding: 10px 14px; background: #EFF6FF; border-radius: 8px; font-size: 13px; color: #1D4ED8; }
.filter-bar button { background: #fff; border: 1px solid #BFDBFE; color: #1D4ED8; padding: 4px 12px; border-radius: 4px; font-size: 12px; cursor: pointer; }
.filter-bar button:hover { background: #DBEAFE; }
.opp-row { cursor: pointer; }
.opp-row:hover { background: #F0F9FF !important; }

/* ==================== 移动端适配 ==================== */
@media (max-width: 768px) {
  body { flex-direction: column; }
  .sidebar { position: fixed; left: 0; top: 0; bottom: 0; z-index: 200; transform: translateX(-100%); }
  .sidebar.show { transform: translateX(0); }
  .main { width: 100%; }
  .mobile-menu-btn { display: block; }
  .header { padding: 12px 16px; }
  .header-left h1 { font-size: 16px; }
  .header-right { display: none; }
  .content { padding: 16px; padding-bottom: 80px; }
  .kpi-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .kpi-card { padding: 14px; }
  .kpi-value { font-size: 18px; }
  .dashboard-row { grid-template-columns: 1fr; }
  .kanban { grid-template-columns: repeat(3, 1fr); }
  .kanban-col { min-width: 150px; }
  .kanban-dashboard { grid-template-columns: repeat(4, 1fr); }
  .page-toolbar { flex-wrap: wrap; gap: 8px; }
  .search-input { width: 100%; }
  .data-table { font-size: 12px; }
  .data-table th, .data-table td { padding: 8px; }
  .form-row { grid-template-columns: 1fr; }
  .report-grid { grid-template-columns: 1fr; }
  .settings-grid { grid-template-columns: 1fr; }
  .mobile-nav { display: flex; }
  .modal { max-width: calc(100vw - 32px); }
  .doc-grid { grid-template-columns: 1fr; }
  .doc-folder-header { padding: 12px 14px; }
  .doc-folder-icon { width: 34px; height: 34px; font-size: 15px; }
  .doc-folder-name { font-size: 13px; }
  .doc-folder-content { padding-left: 0; }
  .doc-check-item { padding: 8px 10px; gap: 8px; }
  .doc-check-status { width: 28px; height: 28px; font-size: 13px; }
  .doc-check-name { font-size: 13px; }
  .doc-folder-actions { flex-wrap: wrap; }
  .doc-file-meta { display: none; }
  .cost-customer-header { padding: 12px 14px; }
  .cost-customer-avatar { width: 32px; height: 32px; font-size: 13px; }
  .cost-customer-name { font-size: 13px; }
  .cost-customer-total { font-size: 13px; padding: 2px 8px; }
  .detail-grid { grid-template-columns: 1fr; }
  .funnel-bar { flex-wrap: wrap; }
  .funnel-seg { flex: 1; min-width: 80px; padding: 10px; }
}

@media (max-width: 480px) {
  .kpi-grid { grid-template-columns: 1fr 1fr; }
  .kanban { grid-template-columns: repeat(2, 1fr); }
  .kanban-dashboard { grid-template-columns: repeat(3, 1fr); }
}

/* 角色权限配置表 */
.perm-table th,
.perm-table td {
  padding: 8px 6px;
  border-bottom: 1px solid #e5e7eb;
  font-size: 12px;
}
.perm-table thead th {
  background: #f8fafc;
  font-weight: 600;
  color: #374151;
}
.perm-table tbody tr:hover td {
  background: #fafbfc;
}
.perm-table input[type="checkbox"] {
  width: 16px;
  height: 16px;
  cursor: pointer;
  accent-color: #3b82f6;
}
.perm-table input[type="checkbox"]:disabled {
  cursor: not-allowed;
  opacity: 0.5;
}
