* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif; font-size: 14px; color: #333; background: #f0f2f5; }
a { color: #1890ff; text-decoration: none; }
a:hover { text-decoration: underline; }

.login-page { display: flex; align-items: center; justify-content: center; min-height: 100vh; background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); }
.login-box { background: #fff; padding: 40px; border-radius: 8px; box-shadow: 0 4px 20px rgba(0,0,0,.15); width: 400px; }
.login-logo { text-align: center; margin-bottom: 24px; }
.login-logo img { width: 56px; height: 56px; border-radius: 12px; margin-bottom: 10px; }
.login-box h2 { text-align: center; color: #333; font-size: 18px; }

.top-header { background: #fff; padding: 12px 24px; display: flex; justify-content: space-between; align-items: center; box-shadow: 0 1px 4px rgba(0,0,0,.08); position: sticky; top: 0; z-index: 100; }
.header-left { display: flex; align-items: center; gap: 16px; }
.site-logo { display: flex; align-items: center; gap: 8px; text-decoration: none; color: #333; font-weight: 600; font-size: 15px; cursor: pointer; }
.site-logo:hover { color: #1890ff; text-decoration: none; }
.site-logo img { width: 32px; height: 32px; border-radius: 6px; }
.site-version { font-size: 12px; font-weight: 500; color: #888; }
.site-logo-icon { display: inline-flex; flex-shrink: 0; line-height: 0; }
.site-logo-text { white-space: nowrap; }
.adder-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }
.adder-tabs-above-table { margin: 0 0 0; padding: 8px 10px; background: #fafafa; border: 1px solid #eee; border-radius: 4px 4px 0 0; }
.adder-tabs-above-table + .table-scroll-wrap { margin-top: 0; border-top-left-radius: 0; border-top-right-radius: 0; box-shadow: 0 1px 4px rgba(0,0,0,.06); }
.adder-tab { padding: 6px 14px; border: 1px solid #d9d9d9; border-radius: 4px; background: #fff; cursor: pointer; font-size: 13px; }
.adder-tab:hover { border-color: #1890ff; color: #1890ff; }
.adder-tab.active { background: #1890ff; border-color: #1890ff; color: #fff; }
.adder-bind-row { display: flex; gap: 8px; margin-bottom: 10px; }
.adder-bind-row input { flex: 1; min-width: 0; padding: 8px 12px; border: 1px solid #d9d9d9; border-radius: 4px; font-size: 14px; }
.adder-bind-row input:focus { border-color: #1890ff; outline: none; box-shadow: 0 0 0 2px rgba(24,144,255,.2); }
.adder-bind-list { list-style: none; margin: 0; padding: 0; border: 1px solid #f0f0f0; border-radius: 4px; max-height: 180px; overflow-y: auto; }
.adder-bind-item { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 8px 12px; border-bottom: 1px solid #f0f0f0; }
.adder-bind-item:last-child { border-bottom: none; }
.adder-bind-name { flex: 1; word-break: break-all; font-size: 14px; }
.adder-bind-empty { padding: 12px; text-align: center; color: #999; font-size: 13px; }
.form-hint { margin: 8px 0 0; font-size: 12px; color: #999; }
.form-hint.warn { color: #fa8c16; }
.page-title { font-size: 16px; font-weight: 500; color: #666; border-left: 1px solid #e8e8e8; padding-left: 16px; }
.period-no { color: #1890ff; font-weight: 600; margin-right: 6px; }
.period-meta { font-size: 13px; font-weight: normal; color: #666; margin-left: 10px; }
.card-title-row h3 { display: flex; align-items: center; flex-wrap: wrap; gap: 4px; }
.customer-avatar { width: 32px; height: 32px; border-radius: 50%; object-fit: cover; vertical-align: middle; }
.avatar-fallback { display: inline-flex; align-items: center; justify-content: center; width: 32px; height: 32px; border-radius: 50%; background: #1890ff; color: #fff; font-size: 14px; font-weight: 600; }
.header-right { display: flex; align-items: center; gap: 10px; }
.user-info { color: #666; margin-right: 8px; }

.main-content { padding: 20px 24px; max-width: 1400px; margin: 0 auto; }
html, body { height: 100%; }
body.admin-body { height: 100vh; overflow: hidden; }
.admin-layout { display: flex; height: 100vh; min-height: 0; overflow: hidden; }
.admin-sidebar { width: 220px; background: #001529; color: #fff; display: flex; flex-direction: column; flex-shrink: 0; position: relative; transition: width .2s ease; min-height: 100%; align-self: stretch; }
.admin-sidebar .site-logo { padding: 16px; border-bottom: none; flex-wrap: wrap; gap: 4px 8px; }
.admin-sidebar-head { position: relative; border-bottom: 1px solid rgba(255,255,255,.08); padding-right: 36px; }
.admin-sidebar .site-logo span { color: #fff; }
.admin-sidebar .site-version { color: rgba(255,255,255,.45); background: none; padding: 0; }
.sidebar-collapse-btn { position: absolute; right: 8px; top: 50%; transform: translateY(-50%); width: 28px; height: 28px; border: 1px solid rgba(255,255,255,.2); border-radius: 4px; background: rgba(255,255,255,.08); color: rgba(255,255,255,.85); cursor: pointer; display: flex; align-items: center; justify-content: center; padding: 0; }
.sidebar-collapse-btn:hover { background: rgba(255,255,255,.16); border-color: rgba(255,255,255,.35); }
.admin-layout.collapsed .admin-sidebar { width: 64px; }
.admin-layout.collapsed .site-logo-text,
.admin-layout.collapsed .site-version,
.admin-layout.collapsed .nav-label { display: none; }
.admin-layout.collapsed .admin-nav-item { padding: 10px 0; text-align: center; }
.admin-layout.collapsed .sidebar-collapse-btn .collapse-icon { transform: rotate(180deg); display: inline-block; }
.admin-header-right { display: flex; align-items: center; gap: 8px; margin-left: auto; flex-shrink: 0; }
.admin-header-right .user-info { color: #666; font-size: 13px; white-space: nowrap; }
.admin-page-header { display: flex; align-items: center; justify-content: space-between; padding: 16px 24px; background: #fff; border-bottom: 1px solid #f0f0f0; gap: 12px; flex-wrap: wrap; }
.admin-nav { flex: 1; padding: 12px 0; }
.admin-nav-item { display: block; padding: 10px 20px; color: rgba(255,255,255,.75); text-decoration: none; }
.admin-nav-item:hover, .admin-nav-item.active { background: #1890ff; color: #fff; text-decoration: none; }
.admin-sidebar-foot { padding: 16px; border-top: 1px solid rgba(255,255,255,.08); }
.admin-sidebar-foot .user-info { display: block; color: rgba(255,255,255,.65); font-size: 12px; margin-bottom: 10px; }
.admin-sidebar-foot .btn-block { display: block; width: 100%; margin-bottom: 8px; text-align: center; }
.admin-main { flex: 1; display: flex; flex-direction: column; min-width: 0; min-height: 0; background: #f0f2f5; overflow: hidden; }
.admin-content { max-width: none; margin: 0; padding: 20px 24px; flex: 1; min-height: 0; overflow-y: auto; }
.admin-page-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.tag-filter-dropdown { position: relative; display: inline-block; margin-right: 8px; margin-bottom: 8px; }
.tag-filter-menu { position: absolute; top: 100%; left: 0; z-index: 20; min-width: 160px; max-height: 220px; overflow-y: auto; background: #fff; border: 1px solid #d9d9d9; border-radius: 4px; box-shadow: 0 2px 8px rgba(0,0,0,.12); padding: 6px 0; margin-top: 4px; }
.tag-filter-menu-item { display: block; padding: 4px 12px; font-size: 12px; white-space: nowrap; cursor: pointer; }
.tag-filter-menu-item:hover { background: #f5f5f5; }
.deal-day-link { border: none; background: none; color: #ff6b00; cursor: pointer; font-weight: 600; padding: 0; white-space: nowrap; }
.deal-day-link:hover { text-decoration: underline; }
.deal-orders-table .deal-cell-nowrap,
.deal-orders-table th:nth-child(3),
.deal-orders-table th:nth-child(6) { white-space: nowrap; }
.deal-orders-table .deal-cell-nowrap { max-width: 280px; overflow: hidden; text-overflow: ellipsis; }
.admin-page-header .page-title { border: none; padding: 0; margin: 0; font-size: 18px; }
.customer-pagination { margin: 16px 0 8px; display: flex; justify-content: center; width: 100%; }
.el-pagination { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 8px; font-size: 13px; color: #606266; }
.el-pagination__total { margin-right: 4px; color: #606266; white-space: nowrap; }
.el-pager-btn { min-width: 32px; height: 32px; padding: 0 6px; border: 1px solid #dcdfe6; border-radius: 2px; background: #f4f4f5; color: #606266; cursor: pointer; font-size: 13px; line-height: 30px; }
.el-pager-btn:hover:not(:disabled):not(.is-active) { color: #409eff; border-color: #c6e2ff; background: #ecf5ff; }
.el-pager-btn.is-active { background: #409eff; border-color: #409eff; color: #fff; }
.el-pager-btn:disabled { color: #c0c4cc; cursor: not-allowed; background: #f4f4f5; }
.el-pager-ellipsis { display: inline-flex; align-items: center; justify-content: center; min-width: 32px; height: 32px; color: #606266; }
.el-pagination__sizes { display: inline-flex; align-items: center; }
.el-page-size-select { height: 32px; border: 1px solid #dcdfe6; border-radius: 2px; padding: 0 8px; background: #fff; color: #606266; font-size: 13px; }
.el-pagination__jump { display: inline-flex; align-items: center; white-space: nowrap; color: #606266; }
.el-page-jump-input { width: 46px; height: 32px; margin: 0 6px; border: 1px solid #dcdfe6; border-radius: 2px; text-align: center; font-size: 13px; color: #606266; }
.link-btn { border: none; background: none; color: #1890ff; cursor: pointer; padding: 0 4px; font-size: 13px; }
.link-btn:hover { text-decoration: underline; }
.admin-sidebar .site-version { color: rgba(255,255,255,.45); background: none; padding: 0; }
.modal-lg { max-width: 760px; width: 92%; }
.upload-section { background: #fff; padding: 16px; border-radius: 8px; margin-bottom: 16px; box-shadow: 0 1px 4px rgba(0,0,0,.06); }
.upload-section + .upload-section { margin-top: 16px; }
.btn-youzan { display: inline-flex; align-items: center; gap: 6px; background: #e7332b; border-color: #e7332b; color: #fff; }
.btn-youzan:hover { background: #cf2f27; border-color: #cf2f27; color: #fff; }
.youzan-logo { display: inline-flex; line-height: 0; flex-shrink: 0; }
.sales-order-filters { margin-bottom: 12px; }
.sales-orders-table .cell-nowrap { white-space: nowrap; max-width: 240px; overflow: hidden; text-overflow: ellipsis; }
.sales-orders-table .row-unmatched { background: #fffbe6; }
.sales-orders-table .row-unmatched:hover { background: #fff1b8; }
.sales-orders-filter-bar { flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 12px; }
.ms-filter { position: relative; display: inline-block; }
.ms-filter-menu { position: absolute; top: 100%; left: 0; z-index: 30; min-width: 180px; max-height: 260px; overflow-y: auto; background: #fff; border: 1px solid #d9d9d9; border-radius: 4px; box-shadow: 0 2px 8px rgba(0,0,0,.12); padding: 6px 0; margin-top: 4px; }
.ms-filter-item { display: block; padding: 4px 12px; font-size: 12px; white-space: nowrap; cursor: pointer; }
.ms-filter-item:hover { background: #f5f5f5; }
.sales-customer-cell { display: flex; align-items: center; gap: 8px; }
.sales-order-avatar { width: 28px; height: 28px; font-size: 12px; }
.sales-tags-cell .tag-chip { display: inline-block; margin: 1px 2px; padding: 1px 6px; background: #f0f5ff; border-radius: 3px; font-size: 11px; color: #1677ff; }

.btn { display: inline-block; padding: 6px 16px; border: 1px solid #d9d9d9; border-radius: 4px; background: #fff; cursor: pointer; font-size: 14px; color: #333; transition: all .2s; }
.btn:hover { border-color: #1890ff; color: #1890ff; }
.btn-primary { background: #1890ff; border-color: #1890ff; color: #fff; }
.btn-primary:hover { background: #40a9ff; border-color: #40a9ff; color: #fff; }
.btn-danger { background: #ff4d4f; border-color: #ff4d4f; color: #fff; }
.btn-danger:hover { background: #ff7875; color: #fff; }
.btn-sm { padding: 4px 10px; font-size: 12px; }
.btn-block { display: block; width: 100%; padding: 10px; }
.btn:disabled { opacity: .5; cursor: not-allowed; }

.form-group { margin-bottom: 16px; }
.form-group label { display: block; margin-bottom: 6px; font-weight: 500; }
.form-group input, .form-group select, .form-group textarea { width: 100%; padding: 8px 12px; border: 1px solid #d9d9d9; border-radius: 4px; font-size: 14px; }
.form-group input:focus, .form-group select:focus { border-color: #1890ff; outline: none; box-shadow: 0 0 0 2px rgba(24,144,255,.2); }
.captcha-group { display: flex; align-items: flex-end; gap: 10px; }
.captcha-group input { flex: 1; }
.captcha-img { height: 38px; cursor: pointer; border-radius: 4px; border: 1px solid #d9d9d9; }

.alert { padding: 10px 16px; border-radius: 4px; margin-bottom: 16px; }
.alert-error { background: #fff2f0; border: 1px solid #ffccc7; color: #ff4d4f; }

.data-table { width: 100%; border-collapse: collapse; background: #fff; border-radius: 4px; overflow: hidden; box-shadow: 0 1px 4px rgba(0,0,0,.06); }
.data-table th, .data-table td { padding: 10px 12px; text-align: left; border-bottom: 1px solid #f0f0f0; }
.data-table th { background: #fafafa; font-weight: 600; white-space: nowrap; }
.data-table tr:hover { background: #fafafa; }
.data-table .actions { white-space: nowrap; }

.period-cards { display: flex; flex-direction: column; gap: 16px; }
.period-card { background: #fff; border-radius: 8px; box-shadow: 0 1px 4px rgba(0,0,0,.08); overflow: hidden; }
.period-card-link { display: block; padding: 20px; color: inherit; text-decoration: none; transition: box-shadow .2s; }
.period-card-link:hover { box-shadow: 0 4px 12px rgba(0,0,0,.12); text-decoration: none; }
.card-header { padding: 16px 20px; cursor: pointer; display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.card-header h3 { flex: 1; min-width: 120px; }
.card-stats { display: flex; gap: 16px; flex-wrap: wrap; }
.card-stats .stat { color: #666; }
.card-stats strong { color: #1890ff; }
.card-body { padding: 0 20px 16px; }
.toggle-icon { color: #999; transition: transform .2s; }
.toggle-icon.open { transform: rotate(180deg); }

.tag { display: inline-block; padding: 2px 8px; border-radius: 4px; font-size: 12px; }
.tag-green { background: #f6ffed; color: #52c41a; border: 1px solid #b7eb8f; }
.tag-gray { background: #f5f5f5; color: #999; border: 1px solid #d9d9d9; }
.tag-orange { background: #fff7e6; color: #fa8c16; border: 1px solid #ffd591; }
.tag-same-ip { background: #e6f7ff; color: #1890ff; border: 1px solid #91d5ff; font-size: 11px; margin-left: 4px; }

.text-green { color: #52c41a; }
.text-orange { color: #fa8c16; }
.text-blue { color: #1677ff; }
.text-red { color: #ff4d4f; }

.toolbar { margin-bottom: 16px; display: flex; gap: 10px; align-items: center; }
.form-inline { display: flex; gap: 8px; align-items: center; }
.form-inline input { width: 150px; }

.pagination { display: flex; gap: 4px; margin-top: 16px; justify-content: center; }
.pagination a { padding: 6px 12px; border: 1px solid #d9d9d9; border-radius: 4px; background: #fff; color: #333; }
.pagination a.active { background: #1890ff; color: #fff; border-color: #1890ff; }

.modal { position: fixed; top: 0; left: 0; right: 0; bottom: 0; background: rgba(0,0,0,.45); display: flex; align-items: center; justify-content: center; z-index: 1000; }
.modal.hidden { display: none; }
.modal-content { background: #fff; padding: 24px; border-radius: 8px; width: 420px; max-height: 80vh; overflow-y: auto; }
.modal-lg { width: 600px; }
.modal-xl { width: 820px; max-width: 95vw; }
.hidden-file-input { position: absolute; width: 0; height: 0; opacity: 0; pointer-events: none; }
.hint-text { font-size: 12px; color: #999; margin: 8px 0; line-height: 1.5; }
.day-ops { white-space: nowrap; }
.day-ops .btn { margin: 2px; }
.import-history-row td { background: #fafafa; padding: 4px 8px !important; }
.import-history { display: flex; flex-direction: column; gap: 2px; }
.import-log { font-size: 11px; color: #666; }
.modal-content h3 { margin-bottom: 16px; }
.modal-actions { margin-top: 20px; display: flex; justify-content: flex-end; gap: 8px; }

.dashboard { display: flex; flex-wrap: wrap; gap: 16px; background: #fff; padding: 16px 20px; border-radius: 8px; margin-bottom: 16px; box-shadow: 0 1px 4px rgba(0,0,0,.06); }
.dash-item { display: flex; flex-direction: column; min-width: 120px; }
.dash-item label { font-size: 12px; color: #999; margin-bottom: 4px; }
.dash-item span { font-size: 16px; font-weight: 600; }

.filter-bar { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; background: #fff; padding: 12px 16px; border-radius: 8px; box-shadow: 0 1px 4px rgba(0,0,0,.06); }
.filter-bar input, .filter-bar select { padding: 6px 10px; border: 1px solid #d9d9d9; border-radius: 4px; font-size: 13px; }

.customer-table { font-size: 13px; }
.customer-table td { vertical-align: middle; }
.remark-input { width: 100%; font-size: 12px; padding: 4px 6px; border: 1px solid #e8e8e8; border-radius: 3px; }
.stars { cursor: pointer; font-size: 16px; color: #d9d9d9; }
.stars .active { color: #faad14; }
.stars.readonly { cursor: default; }
.copy-btn { cursor: pointer; color: #1890ff; margin-right: 4px; font-size: 12px; border: none; background: none; }
.deal-btn { cursor: pointer; border: none; background: none; color: #fa8c16; opacity: 0.45; padding: 0; line-height: 1; }
.deal-btn.active { opacity: 1; color: #ff6b00; }
.deal-btn:hover { opacity: 0.85; }
.deal-mark { color: #ff6b00; vertical-align: middle; }
.deal-btn.readonly { cursor: default; }

.upload-section { background: #fff; padding: 20px; border-radius: 8px; margin-bottom: 16px; box-shadow: 0 1px 4px rgba(0,0,0,.06); }
.upload-section h3 { margin-bottom: 8px; }
.hint { color: #999; font-size: 12px; margin-bottom: 12px; }
.upload-result { background: #f6ffed; border: 1px solid #b7eb8f; padding: 16px; border-radius: 4px; margin-bottom: 16px; }
.upload-result.hidden { display: none; }

.empty-state { text-align: center; padding: 60px; color: #999; background: #fff; border-radius: 8px; }
.empty { text-align: center; color: #999; }

.hidden { display: none !important; }

.site-footer { text-align: center; padding: 16px; color: #999; font-size: 12px; margin-top: 20px; }
.admin-inline-footer { margin-top: 0; flex-shrink: 0; background: #fff; border-top: 1px solid #f0f0f0; }

.user-menu { position: relative; display: inline-block; }
.user-menu-trigger { display: inline-flex; align-items: center; gap: 4px; padding: 6px 12px; border: 1px solid #d9d9d9; border-radius: 4px; background: #fff; cursor: pointer; font-size: 13px; color: #333; white-space: nowrap; }
.user-menu-trigger:hover { border-color: #1890ff; color: #1890ff; }
.user-menu-caret { font-size: 10px; color: #999; }
.user-menu-dropdown { display: none; position: absolute; right: 0; top: calc(100% + 4px); min-width: 140px; background: #fff; border: 1px solid #e8e8e8; border-radius: 4px; box-shadow: 0 4px 12px rgba(0,0,0,.12); z-index: 200; padding: 4px 0; }
.user-menu.open .user-menu-dropdown { display: block; }
.user-menu-item { display: block; width: 100%; padding: 8px 16px; border: none; background: none; text-align: left; font-size: 13px; color: #333; cursor: pointer; text-decoration: none; box-sizing: border-box; }
.user-menu-item:hover { background: #f5f5f5; text-decoration: none; color: #1890ff; }
.user-menu-item.user-menu-danger { color: #ff4d4f; }
.user-menu-item.user-menu-danger:hover { color: #ff7875; }
.admin-header-right .user-menu-trigger { background: #fff; }

/* 客户明细 - 全宽 Excel 风格 */
body.detail-page { overflow-x: hidden; }
body.detail-page .detail-content { max-width: 100%; width: 100%; padding: 8px 12px; }
body.detail-page .dashboard-compact { padding: 8px 12px; gap: 10px; margin-bottom: 8px; }
body.detail-page .dashboard-compact .dash-item { min-width: 90px; }
body.detail-page .dashboard-compact .dash-item label { font-size: 11px; }
body.detail-page .dashboard-compact .dash-item span { font-size: 13px; }
body.detail-page .filter-compact { padding: 8px; margin-bottom: 8px; }
body.detail-page .filter-compact input,
body.detail-page .filter-compact select { padding: 4px 8px; font-size: 12px; }

.room-edit-input { width: 120px; padding: 4px 8px; font-size: 13px; border: 1px solid #d9d9d9; border-radius: 4px; }
.table-scroll-wrap { width: 100%; overflow-x: auto; background: #fff; border-radius: 4px; box-shadow: 0 1px 4px rgba(0,0,0,.06); }
.excel-table { font-size: 12px; border-collapse: collapse; width: max-content; min-width: 100%; }
.excel-table th, .excel-table td { padding: 3px 6px; border: 1px solid #e8e8e8; line-height: 1.3; vertical-align: middle; white-space: nowrap; }
.excel-table th { background: #f5f5f5; font-weight: 600; font-size: 11px; position: sticky; top: 0; z-index: 2; }
.excel-table tbody tr:hover { background: #fafafa; }
.excel-table .empty-row { text-align: center; color: #999; padding: 24px !important; }
.excel-table .col-fixed { min-width: 60px; }
.excel-table .col-seq { min-width: 48px; max-width: 56px; text-align: center; color: #888; }
.excel-table .col-today { min-width: 70px; }
.excel-table .col-deal { width: 40px; text-align: center; }
.excel-table .col-day { width: 32px; text-align: center; padding: 2px 4px; }
.excel-table .customer-avatar { width: 24px; height: 24px; }
.excel-table .avatar-fallback { width: 24px; height: 24px; font-size: 11px; }
.excel-table .remark-input { font-size: 11px; padding: 2px 4px; min-width: 80px; }
.excel-table .stars { font-size: 13px; }
.excel-table .stars .star-item { cursor: pointer; color: #d9d9d9; }
.excel-table .stars .star-item.active { color: #faad14; }
.excel-table .stars.readonly .star-item { cursor: default; }
.name-cell { cursor: pointer; white-space: nowrap; }
.name-cell .name-text:hover { text-decoration: underline; }
.name-cell .status-hint { margin-left: 6px; font-size: 10px; color: #999; font-weight: normal; }
.name-cell .copy-tip { margin-left: 6px; font-size: 10px; color: #52c41a; }
.name-cell .copy-tip.show { display: inline; }
.name-cell .copy-tip:empty { display: none; }
.day-cell { display: inline-block; width: 18px; height: 18px; line-height: 18px; text-align: center; border-radius: 2px; font-size: 10px; font-weight: 600; }
.day-online { background: #f6ffed; color: #52c41a; }
.day-left { background: #fff7e6; color: #fa8c16; }
.day-never { background: #fff2f0; color: #ff4d4f; }

.name-avatar-cell { min-width: 140px; }
.name-avatar-wrap { display: flex; align-items: center; gap: 6px; }
.name-avatar-text { display: flex; flex-direction: column; line-height: 1.25; }
.name-avatar-text .status-hint { margin-left: 0; }
.avatar-click { cursor: pointer; }
.avatar-click:hover { opacity: 0.85; outline: 1px solid #91caff; border-radius: 50%; }

.ip-cell { min-width: 100px; line-height: 1.2; padding: 2px 5px !important; }
.ip-city { display: block; color: #222; font-size: 11px; font-weight: 500; }
.ip-addr { display: block; color: #999; font-size: 10px; }

.col-day-hist { min-width: 52px; text-align: center; padding: 2px 4px !important; font-size: 10px; }
.day-hist-inner { display: flex; flex-direction: column; gap: 1px; line-height: 1.2; }
.day-hist-dur { font-weight: 500; }
.day-hist-cmt { color: #888; font-size: 9px; }
.day-hist-none { color: #ccc; }
.day-hist-on .day-hist-dur { color: #52c41a; }
.day-hist-off .day-hist-dur { color: #1677ff; }
.day-deal-mark { color: #ff6b00; font-weight: 700; font-size: 11px; }
.day-stat { line-height: 1.2; }
.day-cmt { display: block; font-size: 9px; color: #888; }
.text-orphan { color: #999 !important; }
.orphan-row .status-hint { color: #bbb; }
.course-name-cell { max-width: 140px; font-size: 12px; }
.text-gray { color: #999; }
.import-log { display: block; margin: 2px 0; }

.dashboard-summary { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 16px; }
.dash-card { background: #fff; padding: 14px 18px; border-radius: 8px; min-width: 140px; box-shadow: 0 1px 4px rgba(0,0,0,.06); }
.dash-card label { display: block; font-size: 12px; color: #999; margin-bottom: 4px; }
.dash-card span { font-size: 22px; font-weight: 700; }
.dashboard-charts { display: grid; grid-template-columns: 1fr 2fr; gap: 16px; margin-bottom: 20px; }
.chart-panel { background: #fff; padding: 16px; border-radius: 8px; box-shadow: 0 1px 4px rgba(0,0,0,.06); }
.chart-panel h3 { font-size: 14px; margin-bottom: 12px; }
.chart-wide { height: auto; }
.chart-canvas-wrap { height: 220px; position: relative; overflow: hidden; }
.chart-canvas-wrap canvas { display: block; width: 100% !important; height: 100% !important; max-height: 220px; }
.live-course-list { display: flex; flex-direction: column; gap: 10px; max-height: 240px; overflow-y: auto; }
.live-course-item { padding: 10px; border: 1px solid #f0f0f0; border-radius: 6px; font-size: 12px; }
.lc-actions { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 4px; }
.lc-title { margin-bottom: 4px; }
.lc-meta { color: #666; margin-bottom: 4px; }
.lc-stats { color: #888; font-size: 11px; margin-bottom: 6px; }
.status-badge { display: inline-block; padding: 1px 6px; border-radius: 3px; font-size: 10px; }
.badge-live { background: #f6ffed; color: #52c41a; border: 1px solid #b7eb8f; }
.badge-ended { background: #f5f5f5; color: #999; }
.period-card-mini { background: #fff; padding: 14px; border-radius: 8px; margin-bottom: 10px; box-shadow: 0 1px 4px rgba(0,0,0,.06); }
.section-title-row h3 { margin: 12px 0 8px; font-size: 15px; }
.empty-hint { color: #999; font-size: 13px; padding: 12px; }

.importance-filter { display: flex; align-items: center; gap: 2px; padding: 4px 8px; background: #fff; border: 1px solid #d9d9d9; border-radius: 4px; }
.importance-filter .filter-label { font-size: 12px; color: #666; margin-right: 4px; }
.star-filter-item { cursor: pointer; color: #d9d9d9; font-size: 16px; }
.star-filter-item.active { color: #faad14; }
.toggle-orphan { font-size: 12px; display: flex; align-items: center; gap: 4px; }
.filter-tags { padding-top: 0; }
.tag-filter-item { display: flex; align-items: center; gap: 6px; }
.tag-filter-item label { font-size: 12px; color: #666; }
.tag-filter-select { min-width: 100px; max-width: 140px; height: 60px; font-size: 11px; }
.tag-chip { display: inline-block; padding: 1px 6px; margin: 1px 2px; background: #e6f4ff; color: #1677ff; border-radius: 3px; font-size: 10px; }
.th-sort { border: none; background: none; cursor: pointer; font-size: 10px; color: #999; padding: 0 2px; vertical-align: middle; }
.th-sort.active { color: #1890ff; }
.ip-dup-check { font-size: 10px; font-weight: normal; margin-left: 4px; display: inline-flex; align-items: center; gap: 2px; }
.remark-wrap { position: relative; max-width: 100px; }
.remark-wrap .remark-input { width: 100%; }
.remark-pop { position: absolute; left: 0; top: 100%; z-index: 10; min-width: 160px; max-width: 280px; padding: 6px 8px; background: #fff; border: 1px solid #d9d9d9; border-radius: 4px; box-shadow: 0 2px 8px rgba(0,0,0,.12); font-size: 11px; white-space: normal; word-break: break-all; line-height: 1.4; display: none; }
.remark-pop.show { display: block; }
.day-tag { display: inline-block; font-size: 9px; padding: 0 3px; border-radius: 2px; margin-top: 2px; }
.day-tag-deal { background: #fff7e6; color: #fa8c16; }
.day-tag-replay { background: #f9f0ff; color: #722ed1; }
.day-tag-record { background: #e6fffb; color: #13c2c2; }
.replay-yes { color: #722ed1; font-weight: 600; font-size: 11px; }
.col-day-hist { min-width: 72px; }
.extension-summary { display: flex; flex-wrap: wrap; gap: 16px; margin-bottom: 12px; padding: 12px; background: #f6ffed; border: 1px solid #b7eb8f; border-radius: 4px; font-size: 13px; }
.extension-page-head { margin-bottom: 16px; }
.extension-page-head .section-title { font-size: 18px; margin-bottom: 6px; }
.filter-result-count { margin-left: auto; color: #666; font-size: 13px; }
.extension-summary .stat-item label { color: #666; margin-right: 4px; }
.extension-summary .stat-item span { font-weight: 600; }
.extension-table-full { width: 100%; background: #fff; border-radius: 4px; box-shadow: 0 1px 4px rgba(0,0,0,.06); overflow: visible; }
.extension-table-full .data-table { width: 100%; }
.extension-table-wrap { max-height: none; overflow: visible; }
.match-yes { color: #52c41a; font-weight: 600; }
.match-no { color: #ff4d4f; font-weight: 600; }
.status-online { color: #52c41a; }
.status-left { color: #1890ff; }
.status-never { color: #999; }
