/* AT-365: varningstriangeln i admins profilruta och modalen med felen (Renderer/modules/system-health-alert.js).
   Husreglerna: ingen ram, ruta eller bakgrund runt ikonen (regel 3); bara temats tokens (--status-warning för triangeln,
   som Systeminfo-ringens orange), så alla tio teman får samma betydelse. Triangeln tar logga-ut-knappens plats längst
   till höger (margin-left:auto) och knappen står kvar direkt efter. */
#user-profile-container .atlas-health-alert-btn {
  margin-left: auto !important;
  padding: 6px !important;
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  color: var(--status-warning, #ff9f0a) !important;
  display: flex !important;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex: 0 0 auto;
}
#user-profile-container .atlas-health-alert-btn[hidden] { display: none !important; }
#user-profile-container .atlas-health-alert-btn svg { width: 18px; height: 18px; display: block; }
#user-profile-container .atlas-health-alert-btn:hover,
#user-profile-container .atlas-health-alert-btn:focus-visible { filter: brightness(1.15); outline: none; }
#user-profile-container .atlas-health-alert-btn + .logout-icon-btn { margin-left: 0 !important; }

#atlas-health-modal { z-index: 99998; }
#atlas-health-modal .atlas-health-box { position: relative !important; width: 520px !important; max-width: 92vw !important; max-height: 86vh; overflow-y: auto; padding: 26px 26px 20px !important; }
#atlas-health-modal .atlas-health-close { position: absolute; top: 12px; right: 12px; }
#atlas-health-modal .atlas-health-icon { display: flex; justify-content: center; color: var(--status-warning, #ff9f0a); margin-bottom: 8px; }
#atlas-health-modal .atlas-health-icon svg { width: 30px; height: 30px; }
#atlas-health-modal .atlas-health-title { text-align: center; font-size: 16px; font-weight: 700; color: var(--text-primary); margin-bottom: 4px; }
#atlas-health-modal .atlas-health-meta { text-align: center; font-size: var(--text-micro-size, 12px); color: var(--text-secondary); margin-bottom: 16px; }
#atlas-health-modal .atlas-health-sub { font-size: 12px; font-weight: 600; color: var(--text-secondary); margin: 16px 0 8px; }
#atlas-health-modal .atlas-health-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
#atlas-health-modal .atlas-health-item {
  border: 1px solid var(--border-color);
  border-left: 3px solid var(--status-warning, #ff9f0a);
  border-radius: 10px;
  padding: 12px 14px;
  background: color-mix(in srgb, var(--text-primary) 4%, transparent);
  color: var(--text-primary);
}
#atlas-health-modal .atlas-health-item.is-info { border-left-color: var(--text-secondary); }
#atlas-health-modal .atlas-health-item-title { font-weight: 700; font-size: 14px; margin-bottom: 4px; }
#atlas-health-modal .atlas-health-item-text { font-size: 13px; line-height: 1.55; }
#atlas-health-modal .atlas-health-steps { margin: 8px 0 0; padding-left: 20px; font-size: 13px; line-height: 1.55; color: var(--text-secondary); }
#atlas-health-modal .atlas-health-actions { display: flex; gap: 16px; margin-top: 8px; }
#atlas-health-modal .atlas-health-actions:empty { display: none; }
/* Länkstil, inga nya textknappar med ruta (L-247). */
#atlas-health-modal .atlas-health-go,
#atlas-health-modal .atlas-health-ack {
  background: none !important; border: 0 !important; box-shadow: none !important; padding: 0 !important;
  color: var(--accent-primary) !important; font-size: 13px; font-weight: 600; cursor: pointer; text-decoration: none;
}
#atlas-health-modal .atlas-health-go:hover,
#atlas-health-modal .atlas-health-ack:hover { text-decoration: underline; }
#atlas-health-modal .atlas-health-empty { text-align: center; color: var(--text-secondary); font-size: 13px; }
