/* SharkAdmin · KPI 统计卡片（CPS 虚拟账户对账式） */
.sk-stat-summary {
  display: grid;
  grid-template-columns: repeat(var(--sk-stat-cols, 3), minmax(0, 1fr));
  gap: 12px;
  padding: 12px;
  box-sizing: border-box;
}
.sk-stat-card {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  background: #fff;
  border-radius: 8px;
  padding: 20px 22px;
  border: 1px solid #edf0f5;
  box-shadow: 0 8px 22px rgba(28, 40, 56, 0.04);
  min-width: 0;
}
.sk-stat-card__left { min-width: 0; flex: 1; }
.sk-stat-card__label { font-size: 13px; color: #8c8c8c; margin-bottom: 8px; font-weight: 500; }
.sk-stat-card__value {
  font-size: 26px;
  font-weight: 800;
  line-height: 1.1;
  color: #1a1a1a;
  letter-spacing: -0.02em;
}
.sk-stat-card__value.is-success { color: #059669; }
.sk-stat-card__value.is-warning { color: #d97706; }
.sk-stat-card__value.is-primary { color: #2563eb; }
.sk-stat-card__value.is-danger { color: #dc2626; }
.sk-stat-card__hint { margin-top: 6px; font-size: 12px; color: #94a3b8; }
.sk-stat-card__icon {
  width: 48px;
  height: 48px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
@media (max-width: 1100px) {
  .sk-stat-summary { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .sk-stat-summary { grid-template-columns: 1fr; }
}

/* SharkAdmin 业务页补充样式（外账壳内） */
.sk-outbound-page { display: flex; flex-direction: column; gap: 10px; padding: 0 0 12px; box-sizing: border-box; max-width: 100%; }
.sk-outbound-kpi { padding-left: 0; padding-right: 0; }
.sk-kpi-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.sk-kpi-card { background: #fff; border-radius: 8px; padding: 14px 16px; box-shadow: 0 8px 22px rgba(28, 40, 56, 0.04); }
.sk-kpi-card span { display: block; font-size: 12px; color: #8c8c8c; margin-bottom: 6px; }
.sk-kpi-card strong { font-size: 20px; color: #1a1a1a; font-weight: 600; }
.sk-chart-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.sk-chart-card { background: #fff; border-radius: 8px; padding: 12px 14px 10px; min-height: 220px; box-shadow: 0 8px 22px rgba(28, 40, 56, 0.04); }
.sk-chart-card h4 { margin: 0 0 10px; font-size: 14px; font-weight: 700; color: #1a1a1a; }
.sk-chart-card .sk-chart-body { height: 170px; border-radius: 6px; background: linear-gradient(180deg, #f8fbff 0%, #eef4ff 100%); border: 1px dashed #c8d9f0; }

.sk-person-page { display: grid; grid-template-columns: minmax(240px, 1fr) minmax(0, 2.2fr); gap: 10px; padding: 4px 4px 16px; align-items: start; min-height: min(100%, 720px); box-sizing: border-box; }
.sk-person-card { background: #fff; border-radius: 8px; box-shadow: 0 8px 22px rgba(28, 40, 56, 0.04); padding: 28px 20px; box-sizing: border-box; }
.sk-person-avatar { width: 140px; height: 140px; margin: 0 auto; border-radius: 4px; border: 1px dashed #d1d5db; background: #1890ff; color: #fff; font-size: 42px; font-weight: 600; display: flex; align-items: center; justify-content: center; }
.sk-person-name { margin: 20px 0 0; text-align: center; font-size: 22px; font-weight: 700; color: #1a1a1a; }
.sk-person-sign { margin: 8px 0 0; text-align: center; color: #64748b; font-size: 13px; }
.sk-person-meta { margin: 20px 0 0; padding: 0 20px; list-style: none; color: #303846; font-size: 13px; }
.sk-person-tabs { border-bottom: 1px solid #edf0f5; margin-bottom: 8px; }
.sk-person-tab { border: 0; background: transparent; padding: 10px 4px; margin-right: 16px; font: inherit; font-size: 14px; color: #64748b; border-bottom: 2px solid transparent; cursor: pointer; }
.sk-person-tab.is-on { color: #1890ff; border-bottom-color: #1890ff; font-weight: 600; }
.sk-bind-list { list-style: none; margin: 0; padding: 0; }
.sk-bind-list li { padding: 14px 0; border-bottom: 1px solid #edf0f5; }
.sk-bind-title { margin: 0 0 8px; font-size: 15px; font-weight: 600; color: #303846; }
.sk-bind-desc { margin: 0; font-size: 13px; color: #8a93a3; display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.sk-bind-link { border: 0; background: none; padding: 0; color: #1890ff; font: inherit; cursor: pointer; }
.sk-bind-link:hover { text-decoration: underline; }

.sk-dash-root { padding: 0 0 12px; box-sizing: border-box; max-width: 100%; }
.sk-dash-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 10px; }
.sk-dash-card { grid-column: span 3; background: #fff; border-radius: 8px; box-shadow: 0 8px 22px rgba(28, 40, 56, 0.04); padding: 16px; box-sizing: border-box; color: #303846; }
.sk-dash-metric { height: 128px; }
.sk-dash-title { font-weight: 700; font-size: 15px; color: #1f2733; }
.sk-dash-metric__head { margin-bottom: 8px; }
.sk-dash-metric__body { position: relative; min-height: 80px; }
.sk-dash-metric__text { position: relative; z-index: 1; padding-top: 4px; }
.sk-dash-number { font-size: 28px; font-weight: 700; line-height: 1; color: #384250; }
.sk-dash-delta { margin-top: 8px; font-size: 13px; font-weight: 700; color: #8a93a3; }
.sk-dash-delta.is-up { color: #16a34a; }
.sk-dash-spark { position: absolute; top: 0; right: 0; width: 50%; height: 80px; opacity: 0.95; }
.sk-dash-spark-svg { width: 100%; height: 100%; display: block; }
.sk-dash-chart { min-height: 280px; }
.sk-dash-legend { display: flex; flex-wrap: wrap; gap: 12px 16px; margin-top: 10px; font-size: 12px; color: #606266; }
.sk-dash-legend-item { display: inline-flex; align-items: center; gap: 6px; }
.sk-dash-legend-item::before { content: ""; width: 12px; height: 3px; border-radius: 2px; background: #1890ff; }
.sk-dash-legend-item--1::before { background: #79bbff; opacity: 0.85; }
.sk-dash-legend-item--2::before { background: #67c23a; }
.sk-dash-legend-item--3::before { background: #e6a23c; }
.sk-dash-plot-inner { display: flex; gap: 8px; margin-top: 12px; height: 224px; }
.sk-dash-y-axis { display: flex; flex-direction: column; justify-content: space-between; font-size: 11px; color: #909399; padding: 4px 0 20px; width: 20px; flex: none; }
.sk-dash-plot-area { flex: 1; position: relative; min-width: 0; }
.sk-dash-grid-lines { position: absolute; inset: 0 0 20px; background: repeating-linear-gradient(to bottom, transparent, transparent calc(50% - 1px), #ebeef5 calc(50% - 1px), #ebeef5 50%); }
.sk-dash-line-svg { position: absolute; left: 0; right: 0; top: 8px; bottom: 28px; width: 100%; height: calc(100% - 36px); }
.sk-dash-x-labels { position: absolute; left: 0; right: 0; bottom: 0; display: flex; justify-content: space-between; font-size: 11px; color: #909399; }
.sk-dash-empty { margin-top: 12px; height: 224px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; color: #909399; font-size: 13px; }
.sk-dash-empty small { color: #c0c4cc; font-size: 12px; }
@media (max-width: 1024px) {
  .sk-dash-grid { grid-template-columns: 1fr; }
  .sk-dash-card { grid-column: auto; }
}
@media (max-width: 900px) { .sk-person-page { grid-template-columns: 1fr; } .sk-kpi-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .sk-chart-grid { grid-template-columns: 1fr; } }

/* 聚合客服工作台（与 page-list-shell 列表页同高：flex 链撑满） */
.sk-cs-wb { box-sizing: border-box; flex: 1; min-height: 0; height: 100%; max-width: 100%; display: flex; flex-direction: column; padding: 0; }
.page-list-shell > .sk-cs-wb .sk-cs-layout { border-radius: 0; box-shadow: none; }
.sk-cs-layout { display: flex; flex: 1; min-height: 0; height: 100%; background: #fff; border-radius: 8px; box-shadow: 0 8px 22px rgba(28, 40, 56, 0.04); overflow: hidden; }
.sk-cs-rail { width: 64px; flex: none; display: flex; flex-direction: column; align-items: stretch; padding: 12px 0; background: #e9edf3; gap: 8px; }
.sk-cs-agent { padding: 4px 0 8px; align-self: center; }
.sk-cs-agent__btn { position: relative; border: 0; background: none; padding: 0; cursor: pointer; border-radius: 50%; }
.sk-cs-agent__avatar { width: 40px; height: 40px; border-radius: 50%; background: #1890ff; color: #fff; display: flex; align-items: center; justify-content: center; font-size: 14px; font-weight: 600; }
.sk-cs-agent__dot { position: absolute; right: 0; bottom: 0; width: 10px; height: 10px; border-radius: 50%; border: 2px solid #e9edf3; background: #909399; }
.sk-cs-rail__divider { width: 36px; height: 1px; background: #dcdfe6; margin: 4px auto 0; }
.sk-cs-rail__bottom { margin-top: auto; padding-bottom: 8px; align-self: center; }
.sk-cs-channel { display: flex; flex-direction: column; align-items: center; justify-content: center; align-self: center; width: 48px; min-height: 56px; border: 0; background: transparent; border-radius: 8px 0 0 8px; color: #666; font: inherit; font-size: 11px; cursor: pointer; gap: 4px; }
.sk-cs-channel:hover { background: #e8e8e8; color: #333; }
.sk-cs-channel.is-on {
  align-self: stretch;
  width: auto;
  min-height: 64px;
  margin-left: 8px;
  margin-right: 0;
  background: #fff;
  color: #1890ff;
  z-index: 1;
}
.sk-cs-channel__icon { width: 22px; height: 22px; }
.sk-cs-list { width: 320px; flex: none; display: flex; flex-direction: column; border-right: 1px solid #ebeef5; background: #fff; min-height: 0; }
.sk-cs-list__head { padding: 12px 16px; border-bottom: 1px solid #ebeef5; }
.sk-cs-online { display: flex; align-items: center; gap: 6px; font-size: 12px; color: #606266; margin-bottom: 8px; flex-wrap: wrap; }
.sk-cs-online__dot { width: 6px; height: 6px; border-radius: 50%; background: #10b981; animation: sk-cs-pulse 2s ease-in-out infinite; flex: none; }
@keyframes sk-cs-pulse { 0%, 100% { transform: scale(1); opacity: 1; } 50% { transform: scale(1.3); opacity: 0.6; } }
.tag-online { color: #10b981; background: rgba(16,185,129,.1); padding: 0 3px; border-radius: 3px; }
.tag-break { color: #f59e0b; background: rgba(245,158,11,.1); padding: 0 3px; border-radius: 3px; }
.tag-offline { color: #9ca3af; background: rgba(156,163,175,.1); padding: 0 3px; border-radius: 3px; }
.sk-cs-refresh { border: 0; background: none; padding: 2px; color: #909399; cursor: pointer; display: inline-flex; }
.sk-cs-refresh:hover { color: #1890ff; }
.sk-cs-refresh svg { width: 14px; height: 14px; }
.sk-cs-search { position: relative; }
.sk-cs-search__icon { position: absolute; left: 10px; top: 50%; transform: translateY(-50%); width: 16px; height: 16px; color: #909399; pointer-events: none; }
.sk-cs-search input { width: 100%; height: 32px; padding: 0 10px 0 32px; border: 1px solid #dcdfe6; border-radius: 4px; font: inherit; font-size: 13px; box-sizing: border-box; }
.sk-cs-search input:focus { outline: none; border-color: #1890ff; box-shadow: 0 0 0 2px rgba(24,144,255,.12); }
.sk-cs-list__body { position: relative; flex: 1; min-height: 200px; }
.sk-cs-list-empty { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; color: #c0c4cc; font-size: 13px; }
.sk-cs-list-empty__icon { width: 28px; height: 28px; }
.sk-cs-chat { flex: 1; min-width: 0; display: flex; flex-direction: column; background: #f5f7fa; }
.sk-cs-chat__head { background: #fff; border-bottom: 1px solid #ebeef5; padding: 16px 20px; min-height: 56px; display: flex; align-items: center; justify-content: center; }
.sk-cs-chat__empty { margin: 0; color: #909399; font-size: 14px; }
.sk-cs-chat__messages { flex: 1; min-height: 120px; overflow: auto; padding: 16px 20px; }
.sk-cs-chat__composer { background: #fff; border-top: 1px solid #ebeef5; padding: 12px 16px; display: flex; flex-direction: column; gap: 10px; }
.sk-cs-chat__tools { display: flex; flex-wrap: wrap; gap: 8px; }
.sk-cs-tool { opacity: 1; }
.sk-cs-tool--success { background: #f0fdf4; border-color: #86efac; color: #16a34a; }
.sk-cs-tool--warning { background: #fffbeb; border-color: #fcd34d; color: #d97706; }
.sk-cs-tool--danger { background: #fef2f2; border-color: #fca5a5; color: #dc2626; }
.sk-cs-tool--primary { background: #eff6ff; border-color: #93c5fd; color: #1890ff; }
.sk-cs-chat__composer textarea { width: 100%; min-height: 88px; padding: 10px 12px; border: 1px solid #dcdfe6; border-radius: 4px; resize: none; font: inherit; font-size: 13px; box-sizing: border-box; }
.sk-cs-chat__composer textarea:focus { border-color: #1890ff; outline: none; box-shadow: 0 0 0 2px rgba(24,144,255,.12); }
.sk-cs-chat__bar { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.sk-cs-chat__bar-right { display: flex; align-items: center; gap: 12px; margin-left: auto; }
.sk-cs-chat__hint { font-size: 12px; color: #909399; }
.sk-cs-dialog { position: fixed; inset: 0; z-index: 1200; display: flex; align-items: center; justify-content: center; padding: 24px; }
.sk-cs-dialog[hidden] { display: none !important; }
.sk-cs-dialog__mask { position: absolute; inset: 0; background: rgba(0,0,0,.45); }
.sk-cs-dialog__panel { position: relative; width: min(1100px, 100%); max-height: 90vh; background: #fff; border-radius: 8px; display: flex; flex-direction: column; box-shadow: 0 12px 40px rgba(0,0,0,.15); }
.sk-cs-dialog__head { display: flex; align-items: center; justify-content: space-between; padding: 16px 20px; border-bottom: 1px solid #edf0f5; }
.sk-cs-dialog__head h2 { margin: 0; font-size: 16px; font-weight: 600; }
.sk-cs-dialog__close { flex-shrink: 0; }
.sk-cs-dialog__body { flex: 1; min-height: 0; overflow: auto; }
.sk-cs-dialog__foot { padding: 12px 20px; border-top: 1px solid #edf0f5; display: flex; justify-content: flex-end; }

/* 快捷回复管理页 */
.sk-qr-page { padding: 0 0 12px; box-sizing: border-box; max-width: 100%; }
.sk-qr-search-head { background: #fff; border-radius: 8px 8px 0 0; padding: 14px 16px; border: 1px solid #ebeef5; border-bottom: 0; }
.sk-qr-search-head h3 { margin: 0; font-size: 15px; font-weight: 600; color: #303133; }
.sk-qr-manage { display: flex; min-height: min(560px, calc(100vh - 220px)); background: #fff; border: 1px solid #ebeef5; border-radius: 0 0 8px 8px; overflow: hidden; box-shadow: 0 8px 22px rgba(28, 40, 56, 0.04); }
.sk-qr-cat-panel { width: 320px; flex: none; border-right: 1px solid #ebeef5; display: flex; flex-direction: column; }
.sk-qr-item-panel { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.sk-qr-panel-head { padding: 16px; border-bottom: 1px solid #ebeef5; flex-shrink: 0; }
.sk-qr-panel-head--split { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.sk-qr-item-title { font-weight: 600; color: #303133; }
.sk-qr-head-actions { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-left: auto; }
.sk-qr-search-input { width: 220px; max-width: 100%; height: 32px; padding: 0 11px; border: 1px solid #dcdfe6; border-radius: 4px; font-size: 13px; box-sizing: border-box; }
.sk-qr-search-input:focus { outline: none; border-color: #409eff; }
.sk-qr-panel-body { flex: 1; overflow-y: auto; padding: 12px; min-height: 0; }
.sk-qr-cat-row { display: flex; align-items: center; padding: 10px 12px; border-radius: 4px; cursor: pointer; margin-bottom: 4px; color: #606266; }
.sk-qr-cat-row:hover { background: #f5f7fa; }
.sk-qr-cat-row.is-active { background: #ecf5ff; color: #409eff; }
.sk-qr-cat-name { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sk-qr-cat-count { color: #909399; font-size: 12px; flex-shrink: 0; }
.sk-qr-empty-wrap { display: flex; align-items: center; justify-content: center; }
.sk-qr-empty { text-align: center; color: #909399; font-size: 13px; }
.sk-qr-empty__icon { width: 48px; height: 48px; margin: 0 auto 8px; display: block; opacity: 0.45; }
.sk-qr-modal { position: fixed; inset: 0; z-index: 1300; display: flex; align-items: center; justify-content: center; padding: 24px; }
.sk-qr-modal__mask { position: absolute; inset: 0; background: rgba(0,0,0,.45); }
.sk-qr-modal__panel { position: relative; width: min(520px, 100%); background: #fff; border-radius: 8px; box-shadow: 0 12px 40px rgba(0,0,0,.15); display: flex; flex-direction: column; max-height: 90vh; }
.sk-qr-modal__head { display: flex; align-items: center; justify-content: space-between; padding: 16px 20px; border-bottom: 1px solid #edf0f5; }
.sk-qr-modal__head h3 { margin: 0; font-size: 16px; font-weight: 600; }
.sk-qr-modal__close { flex-shrink: 0; }
.sk-qr-modal__body { padding: 20px; overflow: auto; }
.sk-qr-modal__foot { padding: 12px 20px; border-top: 1px solid #edf0f5; display: flex; justify-content: flex-end; gap: 8px; }
.sk-qr-form { display: flex; flex-direction: column; gap: 16px; }
.sk-qr-form__label { display: grid; grid-template-columns: 88px 1fr; gap: 12px; align-items: start; font-size: 13px; color: #606266; }
.sk-qr-form__label > span { padding-top: 7px; text-align: right; }
.sk-qr-input { width: 100%; box-sizing: border-box; border: 1px solid #dcdfe6; border-radius: 4px; padding: 7px 11px; font: inherit; font-size: 13px; color: #606266; }
.sk-qr-input:focus { outline: none; border-color: #409eff; }
.sk-qr-textarea { resize: vertical; min-height: 120px; line-height: 1.5; }
.sk-cs-settings { display: flex; min-height: 500px; }
.sk-cs-settings__menu { width: 140px; flex: none; border-right: 1px solid #edf0f5; padding: 8px 0; }
.sk-cs-settings__menu button { display: block; width: 100%; border: 0; background: none; text-align: left; padding: 10px 16px; font: inherit; font-size: 13px; cursor: pointer; color: #606266; }
.sk-cs-settings__menu button.is-on { color: #1890ff; background: #eff6ff; font-weight: 600; }
.sk-cs-settings__content { flex: 1; padding: 16px 20px; min-width: 0; }
.sk-cs-settings-tip { font-size: 12px; color: #909399; margin: 0 0 12px; }
.sk-cs-member-grid { display: grid; grid-template-columns: 200px 1fr; gap: 16px; }
.sk-cs-section-title { font-weight: 600; margin-bottom: 8px; font-size: 13px; }
.sk-cs-member-tags { display: flex; flex-direction: column; gap: 6px; }
.sk-cs-member-tags span { padding: 8px 10px; background: #f5f7fa; border-radius: 4px; font-size: 13px; }
.sk-cs-groups { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.sk-cs-group-card { border: 1px solid #edf0f5; border-radius: 6px; padding: 10px; }
.sk-cs-group-name { font-weight: 600; margin-bottom: 8px; font-size: 13px; }
.sk-cs-slot { margin-bottom: 8px; font-size: 12px; color: #909399; }
.sk-cs-slot-area { min-height: 36px; margin-top: 4px; border: 1px dashed #dcdfe6; border-radius: 4px; background: #fafafa; }
.sk-cs-qr-toolbar { display: flex; gap: 8px; margin-bottom: 16px; flex-wrap: wrap; align-items: center; }
.sk-cs-qr-toolbar__spacer { flex: 1; min-width: 8px; }
.sk-cs-channel__badge { width: 28px; height: 28px; border-radius: 6px; display: flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 700; color: #fff; line-height: 1; }
.sk-cs-channel__badge--all { background: #409eff; }
.sk-cs-channel__badge--qw { background: linear-gradient(135deg, #fb6500, #0082ef); font-size: 11px; }
.sk-cs-channel__badge--mt { background: #ffc300; color: #1a1a1a; }
.sk-cs-channel__badge--dy { background: #170b1a; }
.sk-cs-agent__wrap { position: relative; }
.sk-cs-status-menu { position: absolute; left: 52px; top: 0; z-index: 20; list-style: none; margin: 0; padding: 6px 0; min-width: 120px; background: #fff; border: 1px solid #ebeef5; border-radius: 6px; box-shadow: 0 8px 24px rgba(0,0,0,.12); }
.sk-cs-status-menu[hidden] { display: none !important; }
.sk-cs-status-menu li { display: flex; align-items: center; gap: 8px; padding: 8px 14px; font-size: 13px; cursor: pointer; color: #606266; }
.sk-cs-status-menu li:hover { background: #f5f7fa; }
.sk-cs-status-dot { width: 8px; height: 8px; border-radius: 50%; flex: none; }
.sk-cs-status-dot.is-online { background: #67c23a; }
.sk-cs-status-dot.is-break { background: #e6a23c; }
.sk-cs-status-dot.is-offline { background: #909399; }
.sk-cs-agent__dot.is-online { background: #67c23a; }
.sk-cs-agent__dot.is-break { background: #e6a23c; }
.sk-cs-agent__dot.is-offline { background: #909399; }
.sk-cs-chat__tools .d-btn.compact { font-size: 13px; min-height: 28px; padding: 4px 10px; line-height: 1.3; }
.sk-cs-chat__bar .d-btn { font-size: 13px; min-height: 28px; }
.sk-cs-chat__bar .sk-cs-chat__hint { font-size: 12px; }

.sk-chart-body { height: 170px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; }
.sk-chart-placeholder { display: none; }
.sk-chart-funnel { width: 100%; height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; padding: 8px; box-sizing: border-box; }
.sk-chart-funnel__step { background: linear-gradient(90deg, #409eff, #79bbff); color: #fff; border-radius: 4px; padding: 6px 10px; display: flex; justify-content: space-between; font-size: 12px; min-width: 40%; max-width: 100%; }
.sk-chart-bars { display: flex; align-items: flex-end; justify-content: space-around; width: 100%; height: 140px; padding: 0 8px 20px; box-sizing: border-box; gap: 4px; }
.sk-chart-bars__item { flex: 1; display: flex; flex-direction: column; align-items: center; height: 100%; justify-content: flex-end; gap: 4px; }
.sk-chart-bars__item > span { font-size: 10px; color: #909399; }
.sk-chart-bars__bar { width: 100%; max-width: 28px; border-radius: 3px 3px 0 0; min-height: 4px; transition: height .2s; }
.sk-chart-stack { width: 100%; max-width: 28px; display: flex; flex-direction: column-reverse; border-radius: 3px; overflow: hidden; }
.sk-chart-stack i { display: block; min-height: 4px; }
.sk-chart-pie { width: 100px; height: 100px; }
.sk-chart-legend { display: flex; flex-wrap: wrap; gap: 6px 10px; font-size: 11px; color: #606266; justify-content: center; }
.sk-chart-line { width: 100%; height: 100px; }

.sk-fin-toolbar-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 16px 0;
  box-sizing: border-box;
}
.sk-fin-toolbar-row__tabcol { flex: 1; min-width: 0; }
/* 与侧开抽屉 drawer-nav-wrap + drawer-nav + brand-tab 一致 */
.sk-fin-toolbar-row .drawer-nav-wrap {
  padding: 0;
  background: transparent;
}
.sk-fin-toolbar-row .drawer-nav .brand-tab {
  justify-content: center;
}
.sk-fin-recharge-btn {
  flex-shrink: 0;
  align-self: flex-start;
  margin-top: calc((35px - var(--ui-button-height, 32px)) / 2);
}
.sk-fin-panes { min-height: 0; }
.sk-fin-tab-pane[hidden] { display: none !important; }
.sk-fin-summary {
  font-size: 13px;
  color: #64748b;
  margin: 0 0 8px;
  padding-top: 4px;
}
.sk-fin-balance__label { font-size: 13px; color: #64748b; }
.sk-fin-balance__value { font-size: 32px; font-weight: 700; margin: 8px 0; font-family: ui-monospace, Menlo, monospace; }
.sk-fin-tag { display: inline-block; padding: 2px 8px; background: #f0f2f5; border-radius: 4px; font-size: 12px; color: #606266; }
.sk-fin-balance__metrics { display: grid; grid-template-columns: repeat(4, minmax(100px, 1fr)); gap: 16px; flex: 1; min-width: 280px; }
.sk-fin-balance__metrics div { display: flex; flex-direction: column; gap: 6px; font-size: 13px; color: #64748b; }
.sk-fin-balance__metrics strong { font-size: 18px; color: #334155; }
.sk-fin-balance__metrics .is-green { color: #22c55e !important; }
.sk-fin-balance__metrics .is-red { color: #ef4444 !important; }
.sk-fin-balance__metrics .is-blue { color: #3b82f6 !important; }
.sk-fin-panel { background: #fff; border-radius: 8px; padding: 16px; box-shadow: 0 8px 22px rgba(28,40,56,.04); }
.sk-fin-empty-cell { text-align: center; color: #909399; padding: 32px !important; }
.sk-fin-kpi-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.sk-fin-kpi-card { background: #fff; border-radius: 6px; padding: 14px 16px; border: 1px solid #edf0f5; }
.sk-fin-kpi-card__val { font-size: 22px; font-weight: 700; font-family: ui-monospace, Menlo, monospace; }
.sk-fin-kpi-card__label { margin-top: 6px; font-size: 12px; color: #64748b; }
.sk-fin-kpi-card__val.is-blue { color: #3b82f6; }
.sk-fin-kpi-card__val.is-red { color: #ef4444; }
.sk-fin-kpi-card__val.is-green { color: #22c55e; }
.sk-fin-kpi-card__val.is-orange { color: #f59e0b; }
.sk-fin-kpi-card__val.is-dark { color: #334155; }
.sk-wx-stat__text { font-size: 13px; color: #64748b; }
.sk-wx-stat__text strong { color: #334155; }

.sk-sh-alert { padding: 10px 12px; background: #ecf5ff; border-radius: 8px; font-size: 13px; color: #409eff; margin-bottom: 12px; border: 1px solid #d6e8ff; }
.sk-sh-corp-list { list-style: none; margin: 0; padding: 0; }
.sk-sh-corp-list li { padding: 12px 0; border-bottom: 1px solid #ebeef5; }
.sk-sh-corp-row { display: flex; justify-content: space-between; align-items: center; font-size: 13px; color: #667282; }
.sk-sh-corp-val { font-size: 14px; color: #364150; margin-top: 4px; line-height: 1.5; word-break: break-all; }
.sk-sh-muted { font-size: 13px; color: #909399; margin: 0 0 12px; }
.sk-sh-inline-control { display: flex; gap: 8px; align-items: center; width: 100%; }
.sk-sh-inline-control .d-input { flex: 1; min-width: 0; }
.live-dialog.is-wide { width: min(920px, 100%); }
.overlay[data-sk-sh-modal],
.overlay[data-sk-qr-modal] { z-index: 1600; }

/* 居中弹窗顶/底栏 · 对齐侧开抽屉 office 色 */
.overlay[data-sk-sh-modal] .live-dialog > header,
.overlay[data-sk-qr-modal] .live-dialog > header {
  background: #f4f6f9;
  border-bottom: 1px solid var(--office-border, #edf0f5);
  color: #1d2633;
}
.overlay[data-sk-sh-modal] .live-dialog > footer,
.overlay[data-sk-qr-modal] .live-dialog > footer {
  background: #f4f6f9;
  border-top: 1px solid var(--office-border, #edf0f5);
  padding: 14px 28px;
}

.live-body > .d-field + .d-field,
.live-body > .sk-sh-muted + .d-field { margin-top: 14px; }

/* 弹窗表单控件宽度：与渠道下拉一致（半宽）；多行描述仍全宽 */
.overlay[data-sk-sh-modal] .d-field .d-control > select.d-input,
.overlay[data-sk-sh-modal] .d-field .d-control > input.d-input,
.overlay[data-sk-qr-modal] .d-field .d-control > select.d-input,
.overlay[data-sk-qr-modal] .d-field .d-control > input.d-input {
  width: 50%;
  max-width: 100%;
}
.overlay[data-sk-sh-modal] .d-field .d-control > textarea.d-input,
.overlay[data-sk-qr-modal] .d-field .d-control > textarea.d-input {
  width: 100%;
}
.overlay[data-sk-sh-modal] .d-field .d-control > .sk-sh-inline-control,
.overlay[data-sk-qr-modal] .d-field .d-control > .sk-sh-inline-control {
  width: 50%;
  max-width: 100%;
}

.sk-tpl-selector { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.sk-tpl-selector__search { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.sk-tpl-selector__search .sk-tpl-name { width: 200px; max-width: 100%; }
.sk-tpl-selector__search .sk-tpl-cat { width: 150px; max-width: 100%; }
.sk-tpl-selector__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; font-size: 13px; color: #667282; }
.sk-tpl-select-all { display: inline-flex; align-items: center; gap: 6px; cursor: pointer; user-select: none; }
.sk-tpl-count { margin-right: auto; }
.sk-tpl-table-wrap { max-height: 400px; overflow: auto; border: 1px solid var(--line, #edf0f5); border-radius: 8px; }
.sk-tpl-table { width: 100%; margin: 0; }
.sk-tpl-thumb { display: block; width: 64px; height: 64px; border-radius: 4px; background: linear-gradient(135deg, #e8eef5, #dce6f0); border: 1px solid #dce3ee; }
.sk-tpl-pager { margin: 0; font-size: 12px; color: #909399; text-align: right; }

.sk-cs-empty-block { padding: 24px; text-align: center; color: #909399; background: #fafafa; border-radius: 6px; margin-bottom: 12px; font-size: 13px; }
@media (max-width: 900px) {
  .sk-cs-layout { flex-direction: column; min-height: auto; }
  .sk-cs-list { width: 100%; max-height: 240px; }
  .sk-cs-rail { width: 100%; flex-direction: row; flex-wrap: wrap; justify-content: center; }
}

/* 页面说明 FAB · 视觉尺寸 70% */
.system-sharkadmin .page-help-fab {
  width: calc(44px * 0.7);
  height: calc(44px * 0.7);
  box-shadow: 0 7px 18px rgba(24, 144, 255, 0.32);
}
.system-sharkadmin .page-help-fab:hover {
  box-shadow: 0 8px 21px rgba(24, 144, 255, 0.38);
}
.system-sharkadmin .page-help-fab svg {
  width: calc(21px * 0.7);
  height: calc(21px * 0.7);
}
