/* 文件功能作用：侧栏服务状态入口与本机服务恢复操作面板。 */
.case_service_health {
  width: 100%;
}
.case_service_health[hidden],
.case_service_health_dialog[hidden] { display: none !important; }
.case_service_health_summary {
  width: 100%;
  min-height: 44px;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 12px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: var(--sidebar-text);
  font: inherit;
  cursor: pointer;
  text-align: left;
}
.case_service_health_summary:hover { background: var(--sidebar-hover-bg); color: var(--sidebar-text-active); }
.case_service_health_icon {
  position: relative;
  width: 22px;
  height: 22px;
  flex: 0 0 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: currentColor;
}
.case_service_health_icon > .material-symbols-rounded {
  font-size: 22px;
  line-height: 1;
}
.case_service_health_dot {
  width: 7px;
  height: 7px;
  flex: 0 0 7px;
  border-radius: 50%;
  background: #e15b45;
}
.case_service_health_icon .case_service_health_dot {
  position: absolute;
  right: -2px;
  bottom: -1px;
  box-shadow: 0 0 0 2px var(--sidebar-bg);
}
.case_service_health.is-neutral .case_service_health_dot,
.case_service_health.is-success .case_service_health_dot,
.case_service_health_dialog.is-neutral .case_service_health_dot,
.case_service_health_dialog.is-success .case_service_health_dot { background: #39b879; }
.case_service_health.is-progress .case_service_health_dot,
.case_service_health_dialog.is-progress .case_service_health_dot { background: #4f8ff5; }
.case_service_health.is-warning .case_service_health_dot,
.case_service_health_dialog.is-warning .case_service_health_dot { background: #e8a23b; }
.case_service_health_summary_text { min-width: 0; display: grid; gap: 1px; }
.case_service_health_summary_text strong { overflow: hidden; font-size: 12px; line-height: 1.25; text-overflow: ellipsis; white-space: nowrap; }
.case_service_health_summary_text span { overflow: hidden; color: var(--sidebar-text); font-size: 11px; line-height: 1.2; opacity: .78; text-overflow: ellipsis; white-space: nowrap; }
.sidebar.collapsed .case_service_health_summary { width: 100%; justify-content: center; padding: 0; }
.sidebar.collapsed .case_service_health_summary_text { display: none; }

.case_service_health_dialog {
  position: fixed;
  z-index: 12000;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 24px;
  box-sizing: border-box;
  background: rgba(17, 25, 39, .42);
  backdrop-filter: blur(6px);
}
.case_service_health_panel {
  width: min(680px, calc(100vw - 32px));
  max-height: min(720px, calc(100vh - 48px));
  overflow: auto;
  box-sizing: border-box;
  border: 1px solid #d7dfeb;
  border-radius: 16px;
  background: #fff;
  color: #16243a;
  box-shadow: 0 24px 72px rgba(25, 42, 70, .24);
}
.case_service_health_panel_head { display: flex; align-items: center; gap: 12px; padding: 18px 20px; border-bottom: 1px solid #e5eaf2; }
.case_service_health_panel_head > div { min-width: 0; display: grid; gap: 3px; }
.case_service_health_panel_head strong { font-size: 18px; }
.case_service_health_panel_head span { color: #647189; font-size: 13px; }
.case_service_health_close { margin-left: auto; width: 36px; height: 36px; border: 1px solid #d7dfeb; border-radius: 9px; background: #fff; color: #3a4c66; font-size: 21px; cursor: pointer; }
.case_service_health_body { display: grid; gap: 14px; padding: 20px; }
.case_service_health_description { margin: 0; color: #526179; font-size: 14px; line-height: 1.65; }
.case_service_health_details { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 10px; }
.case_service_health_item { display: flex; align-items: center; gap: 8px; padding: 11px 12px; border: 1px solid #efd5ce; border-radius: 10px; background: #fff8f6; color: #8b3d2d; font-size: 13px; }
.case_service_health_item i { width: 8px; height: 8px; flex: 0 0 8px; border-radius: 50%; background: #d85f49; }
.case_service_health_item.is-ok { border-color: #cfe9dc; background: #f5fbf8; color: #28704b; }
.case_service_health_item.is-ok i { background: #35a46d; }
.case_service_health_actions { display: flex; justify-content: flex-end; gap: 9px; padding-top: 4px; }
.case_service_health_actions button { min-height: 38px; padding: 0 15px; border: 1px solid #c9d4e5; border-radius: 9px; background: #fff; color: #263a57; font: inherit; font-size: 13px; font-weight: 700; cursor: pointer; }
.case_service_health_actions button.is-primary { border-color: #156cf7; background: #156cf7; color: #fff; }
.case_service_health_actions button:disabled { opacity: .55; cursor: wait; }
@media (max-width: 620px) {
  .case_service_health_dialog { padding: 12px; }
  .case_service_health_details { grid-template-columns: 1fr; }
  .case_service_health_actions { flex-direction: column; }
}
@media (prefers-reduced-motion: no-preference) {
  .case_service_health.is-progress .case_service_health_dot { animation: case-service-pulse 1.2s ease-in-out infinite; }
  @keyframes case-service-pulse { 50% { opacity: .5; transform: scale(.82); } }
}
