/* Pulsar: atalhos alinhados e cores por ação. */
.topbar {
  position: sticky;
  top: 0;
  z-index: 30;
  justify-content: center !important;
  flex-wrap: wrap;
  height: auto;
  min-height: 78px;
  padding-block: 12px;
}

.topbar .topbar-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  flex: 0 0 auto;
}
.topbar .top-icon {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  flex: 0 0 44px;
  width: 44px;
  height: 44px;
  min-height: 44px;
  padding: 0 !important;
  border: 1px solid var(--shortcut-border);
  border-radius: 50%;
  background: var(--shortcut-bg);
  color: var(--shortcut-color);
  line-height: 1;
  text-decoration: none;
  cursor: pointer;
  transition: background .18s ease, box-shadow .18s ease;
}
.topbar .top-icon > i {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  margin: 0 !important;
  padding: 0;
  color: inherit;
  font-size: 19px;
  line-height: 1;
}
.topbar .top-icon-home { --shortcut-bg:#eaf2ff; --shortcut-color:#2563eb; --shortcut-border:#bfdbfe; }
.topbar .top-icon-notifications { --shortcut-bg:#fff5d9; --shortcut-color:#a96508; --shortcut-border:#f5d683; }
.topbar .top-icon-account { --shortcut-bg:#e4f9f1; --shortcut-color:#087f5b; --shortcut-border:#a7e6cf; }
.topbar .top-icon-logout { --shortcut-bg:#ffebee; --shortcut-color:#d12f45; --shortcut-border:#f9bdc6; }
.topbar .top-icon:hover { box-shadow:0 0 0 4px color-mix(in srgb, var(--shortcut-bg) 22%, transparent); }
.topbar .top-icon:focus-visible { outline:3px solid #38bdf8; outline-offset:4px; }
.topbar .logout-form { display:flex; align-items:center; justify-content:center; margin:0; padding:0; width:auto; }
@media (max-width:600px) {
  .topbar { min-height:60px; gap:8px; padding:10px; }
  .topbar .topbar-actions { gap:8px; }
  .topbar .top-icon { flex-basis:40px; width:40px; height:40px; min-height:40px; }
  .topbar .top-icon > i { font-size:18px; }
}

.sc-cron-control{position:relative;flex:0 0 auto}
.topbar .sc-cron-button{display:inline-flex;align-items:center;justify-content:center;gap:9px;min-height:44px;border:1px solid #d8e2f1;border-radius:12px;padding:9px 13px;background:#f8fafc;color:#10243a;font:600 14px/1.2 inherit;cursor:pointer;white-space:nowrap}
.sc-cron-lights{display:flex;gap:5px;align-items:center}
.sc-cron-led{display:inline-block;width:9px;height:9px;border-radius:50%;background:#cbd5e1;border:1px solid #94a3b8}
[data-state=green] .sc-cron-led:last-child{background:#16a34a;border-color:#15803d;box-shadow:0 0 5px #22c55e66}
[data-state=orange] .sc-cron-led:first-child{background:#f59e0b;border-color:#b45309;box-shadow:0 0 5px #f59e0b66}
[data-state=red] .sc-cron-led:first-child{background:#ef4444;border-color:#b91c1c;box-shadow:0 0 5px #ef444466}
[data-state=red] .sc-cron-led:first-child{animation:sc-cron-alert 1.6s ease-in-out infinite}
.sc-cron-row-status{display:block;width:fit-content;margin-top:8px;font-size:12px;line-height:1.4;font-weight:600;color:#b91c1c}
.sc-cron-row-status::before{content:'';display:inline-block;width:9px;height:9px;border-radius:50%;margin-right:7px;background:#ef4444;box-shadow:0 0 0 3px #fee2e2;vertical-align:middle}
.sc-cron-row-status[data-state=red]::before{animation:sc-cron-alert 1.6s ease-in-out infinite}
.sc-cron-row-status[data-state=green]{color:#15803d}.sc-cron-row-status[data-state=green]::before{background:#16a34a;box-shadow:0 0 0 3px #dcfce7}
.sc-cron-row-status[data-state=orange]{color:#b45309}.sc-cron-row-status[data-state=orange]::before{background:#f59e0b;box-shadow:0 0 0 3px #fef3c7}
.sc-cron-row-status[data-state=pending]{color:#64748b}.sc-cron-row-status[data-state=pending]::before{background:#94a3b8;box-shadow:0 0 0 3px #e2e8f0}
@keyframes sc-cron-alert{0%,100%{opacity:1}50%{opacity:.35}}
@media(prefers-reduced-motion:reduce){[data-state=red] .sc-cron-led:first-child,.sc-cron-row-status[data-state=red]::before{animation:none}}
.sc-cron-label{font-size:11px;font-weight:500;color:#475569}
.sc-cron-card{position:absolute;top:calc(100% + 10px);left:50%;transform:translateX(-50%);width:min(360px,calc(100vw - 24px));box-sizing:border-box;padding:18px;background:#fff;border:1px solid #dbe3ee;border-radius:16px;box-shadow:0 16px 45px #02061733;color:#172b43;z-index:100;text-align:left;line-height:1.5}
.sc-cron-card[hidden]{display:none!important}
.sc-cron-card h3{font-size:16px;margin:0 0 10px}.sc-cron-card p{font-size:13px;margin:8px 0}.sc-cron-card small{display:block;color:#52657b;font-size:12px}.sc-cron-card .btn{margin-top:12px;min-height:38px}
.sc-cron-button:focus-visible{outline:3px solid #38bdf8;outline-offset:3px}
@media(max-width:600px){.sc-cron-label{display:none}.sc-cron-card{position:fixed;top:140px;left:50%;max-height:65dvh;overflow:auto}.topbar .sc-cron-button{padding:8px;gap:6px}}
