/* SGP side panel (portable, no external dependencies) */
#sgpPanel {
  position: fixed;
  top: 10px;
  right: 10px;
  width: 380px;
  max-width: calc(100vw - 20px);
  height: calc(100vh - 20px);
  max-height: calc(100vh - 20px);
  background: #ffffff;
  border: 1px solid #d0d0d0;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.2);
  z-index: 99997;
  display: none;
  overflow: hidden;
  font-family: Arial, sans-serif;
}

#sgpPanel.sgp-open { display: block; }

#sgpPanelHeader {
  display:flex;
  align-items:center;
  justify-content: space-between;
  padding: 10px 12px;
  background: #111;
  color: #fff;
}

#sgpPanelHeader .title {
  font-weight: 700;
  font-size: 13px;
}

#sgpPanelHeader .sub {
  font-weight: 400;
  font-size: 11px;
  opacity: 0.85;
}

.sgp-btn {
  border: 0;
  background: #fff;
  color: #111;
  padding: 6px 8px;
  border-radius: 8px;
  cursor:pointer;
  font-size: 12px;
}
.sgp-btn.dark { background:#111; color:#fff; }
.sgp-btn.gray { background:#e9e9e9; color:#111; }
.sgp-btn:disabled { opacity: 0.6; cursor:not-allowed; }

#sgpPanelBody {
  padding: 12px;
  overflow:auto;
  height: calc(100% - 46px);
}

.sgp-row { display:flex; gap:8px; align-items:center; }
.sgp-row + .sgp-row { margin-top: 8px; }
.sgp-label { font-size: 11px; color:#444; margin-bottom:4px; }
.sgp-field { width: 100%; padding: 8px 10px; border:1px solid #ccc; border-radius: 8px; font-size: 12px; }
.sgp-card { border:1px solid #e0e0e0; border-radius: 10px; padding: 10px; background:#fafafa; }
.sgp-kv { font-size: 12px; line-height: 1.35; }
.sgp-kv b { font-weight: 700; }
.sgp-muted { font-size: 11px; color:#666; }
.sgp-error { font-size: 12px; color: #b00020; white-space: pre-wrap; }
.sgp-ok { font-size: 12px; color: #0b7a2a; }

/* Pills (small status badges) */
.sgp-pill{
  display:inline-block;
  font-size: 11px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 999px;
  background: #e9e9e9;
  color: #111;
  border: 1px solid #d7d7d7;
}
.sgp-pill.ok{ background:#e7f6ed; color:#0b7a2a; border-color:#bfe8cd; }
.sgp-pill.bad{ background:#fde7ea; color:#b00020; border-color:#f3b7c1; }
.sgp-pill.gray{ background:#efefef; color:#111; border-color:#d7d7d7; }

/* Status banners */
.sgp-banner{
  border-radius: 10px;
  padding: 10px;
  font-size: 12px;
  font-weight: 700;
  margin-bottom: 10px;
  border: 1px solid #e0e0e0;
}

.sgp-banner.suspenso{
  background: #b00020;
  color: #fff;
  border-color: #8e001a;
}

.sgp-banner.atencao{
  background: #fff4cc;
  color: #111;
  border-color: #f3d56b;
}

#sgpFab {
  position: fixed;
  right: 12px;
  bottom: 12px;
  width: 48px;
  height: 48px;
  border-radius: 14px;
  border: 0;
  background: #111;
  color: #fff;
  cursor: pointer;
  z-index: 99996;
  box-shadow: 0 10px 30px rgba(0,0,0,0.25);
  display: none;
}

#sgpFab.sgp-show { display: block; }


.sgp-check{display:flex;gap:8px;align-items:center;font-size:13px;color:#cfcfcf;}
.sgp-check input{width:16px;height:16px;}
