/* GEMA Super Admin — desktop dashboard */
:root {
  --ga-sidebar: 260px;
  --ga-primary: #15803d;
  --ga-bg: #f1f5f9;
  --ga-surface: #ffffff;
  --ga-text: #0f172a;
  --ga-muted: #64748b;
  --ga-border: #e2e8f0;
  --ga-font: 'DM Sans', system-ui, sans-serif;
}

body.gema-admin {
  margin: 0;
  font-family: var(--ga-font);
  background: var(--ga-bg);
  color: var(--ga-text);
  font-size: 14px;
}

.ga-layout { display: flex; min-height: 100vh; }
.ga-sidebar {
  width: var(--ga-sidebar);
  background: #14532d;
  color: #fff;
  flex-shrink: 0;
  position: fixed;
  top: 0; left: 0; bottom: 0;
  overflow-y: auto;
  padding: 20px 0;
}
.ga-sidebar-brand {
  padding: 0 20px 20px;
  border-bottom: 1px solid rgba(255,255,255,0.12);
  margin-bottom: 12px;
}
.ga-sidebar-brand strong { display: block; font-size: 1.1rem; }
.ga-sidebar-brand span { font-size: 0.72rem; opacity: 0.8; }
.ga-sidebar nav a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 20px;
  color: rgba(255,255,255,0.75);
  font-weight: 600;
  font-size: 0.88rem;
  text-decoration: none;
}
.ga-sidebar nav a:hover, .ga-sidebar nav a.active {
  background: rgba(255,255,255,0.1);
  color: #fff;
}
.ga-main {
  margin-left: var(--ga-sidebar);
  flex: 1;
  padding: 24px 28px;
  min-width: 0;
}
.ga-topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
}
.ga-topbar h1 { margin: 0; font-size: 1.35rem; font-weight: 800; }
.ga-kpi-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 24px;
}
.ga-kpi {
  background: var(--ga-surface);
  border-radius: 14px;
  padding: 18px;
  border: 1px solid var(--ga-border);
  box-shadow: 0 1px 4px rgba(0,0,0,0.04);
}
.ga-kpi-num { font-size: 1.5rem; font-weight: 800; color: var(--ga-primary); }
.ga-kpi-lbl { font-size: 0.75rem; color: var(--ga-muted); font-weight: 600; margin-top: 4px; }
.ga-panel {
  background: var(--ga-surface);
  border-radius: 14px;
  border: 1px solid var(--ga-border);
  padding: 20px;
  margin-bottom: 20px;
}
.ga-panel h2 { margin: 0 0 16px; font-size: 1rem; font-weight: 800; }
.ga-table { width: 100%; border-collapse: collapse; font-size: 0.85rem; }
.ga-table th, .ga-table td { padding: 10px 12px; text-align: left; border-bottom: 1px solid var(--ga-border); }
.ga-table th { background: #f8fafc; font-size: 0.72rem; text-transform: uppercase; color: var(--ga-muted); }
.ga-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border-radius: 10px;
  font-weight: 700;
  font-size: 0.82rem;
  border: none;
  cursor: pointer;
  text-decoration: none;
  font-family: inherit;
}
.ga-btn-primary { background: var(--ga-primary); color: #fff; }
.ga-btn-outline { background: #fff; border: 1px solid var(--ga-border); color: var(--ga-text); }
.ga-btn-danger { background: #fef2f2; color: #dc2626; border: 1px solid #fecaca; }
.ga-btn-sm { padding: 5px 10px; font-size: 0.75rem; }
.ga-form-row { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; margin-bottom: 14px; }
.ga-field label { display: block; font-size: 0.78rem; font-weight: 700; margin-bottom: 5px; }
.ga-field input, .ga-field select, .ga-field textarea {
  width: 100%;
  padding: 9px 12px;
  border: 1px solid var(--ga-border);
  border-radius: 10px;
  font-family: inherit;
  font-size: 0.9rem;
}
.ga-alert { padding: 10px 14px; border-radius: 10px; margin-bottom: 14px; font-weight: 600; font-size: 0.85rem; }
.ga-alert-ok { background: #dcfce7; color: #166534; }
.ga-alert-err { background: #fef2f2; color: #dc2626; }
.ga-chart-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.ga-badge { display: inline-block; padding: 3px 8px; border-radius: 999px; font-size: 0.68rem; font-weight: 800; }
.ga-badge-ok { background: #dcfce7; color: #166534; }
.ga-badge-off { background: #f1f5f9; color: var(--ga-muted); }
.ga-actions { display: flex; gap: 6px; flex-wrap: wrap; }

body.gema-admin-mobile-notice {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: #f0fdf4;
  font-family: var(--ga-font);
  text-align: center;
}

@media (max-width: 1023px) {
  .ga-kpi-grid { grid-template-columns: repeat(2, 1fr); }
  .ga-chart-row { grid-template-columns: 1fr; }
}
