/* ============================================================
 * 工单客服 · 前端补丁样式（商户端 / 后台共用）
 * 只作用于本补丁自己注入的节点，不影响系统原有界面
 * ============================================================ */

/* 侧边栏菜单项 */
.ticket-menu-item .ticket-menu-txt,
.ticket-admin-menu-item .ticket-menu-txt {
  display: inline-flex; align-items: center; gap: 6px;
}
.ticket-menu-item .ticket-badge,
.ticket-admin-menu-item .ticket-admin-badge {
  display: inline-block; min-width: 16px; height: 16px; line-height: 16px;
  padding: 0 4px; border-radius: 8px; background: #e5484d; color: #fff;
  font-size: 11px; text-align: center; font-weight: 600;
}

/* 商户端悬浮客服入口 */
.ticket-fab {
  position: fixed; right: 18px; bottom: 22px; z-index: 30;
  display: flex; align-items: center; gap: 7px;
  height: 42px; padding: 0 15px 0 12px; border-radius: 24px;
  background: #0f7d6b; color: #fff; cursor: pointer;
  box-shadow: 0 8px 22px rgba(15,125,107,.34);
  font-size: 13px; font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", sans-serif;
  transition: transform .15s ease, box-shadow .15s ease;
  user-select: none;
}
.ticket-fab:hover { transform: translateY(-2px); box-shadow: 0 12px 26px rgba(15,125,107,.4); }
.ticket-fab svg { width: 17px; height: 17px; fill: #fff; flex: none; }
.ticket-fab .ticket-fab-text { white-space: nowrap; }
.ticket-fab .ticket-fab-dot {
  position: absolute; right: 8px; top: 6px; width: 8px; height: 8px;
  border-radius: 50%; background: #ff5a52; box-shadow: 0 0 0 2px rgba(255,90,82,.25);
}

/* 深色模式兜底 */
html.dark .ticket-fab { background: #12897a; box-shadow: 0 8px 22px rgba(0,0,0,.45); }

@media (max-width: 640px) {
  .ticket-fab { right: 12px; bottom: 14px; height: 40px; padding: 0 13px 0 11px; }
  .ticket-fab .ticket-fab-text { font-size: 12.5px; }
}
