/* /idsahome/ngo/assets/ngo_ui.css — NGO partner panel (CSC-style, separate namespace). */

.idsa-ngo-root {
  margin: 0;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  background: #0c1412;
  color: #e8f5ef;
  overflow-x: clip;
}

.ngo-shell {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  min-height: 100vh;
  max-width: 100vw;
  box-sizing: border-box;
}

.ngo-side {
  background: #102019;
  border-right: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.ngo-brand {
  padding: 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.ngo-nav {
  padding: 8px;
  display: grid;
  gap: 6px;
}

.ngo-nav-link {
  text-decoration: none;
  color: inherit;
  padding: 10px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  font-size: 14px;
}

.ngo-nav-link:hover { background: rgba(255, 255, 255, 0.06); }
.ngo-nav-link.is-active {
  background: rgba(52, 211, 153, 0.18);
  border-color: rgba(52, 211, 153, 0.35);
}

.ngo-side-footer {
  margin-top: auto;
  padding: 12px 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.ngo-user-name { font-weight: 600; }
.ngo-user-meta { opacity: 0.75; font-size: 12px; margin-top: 2px; }
.ngo-logout {
  display: inline-block;
  margin-top: 10px;
  color: #a7f3d0;
  text-decoration: none;
}
.ngo-logout:hover { text-decoration: underline; }

.ngo-main {
  background: #0c1412;
  min-width: 0;
  max-width: 100%;
}

.ngo-top {
  padding: 16px 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  gap: 10px;
  position: sticky;
  top: 0;
  z-index: 2;
  background: #0c1412;
}

.ngo-top-title { font-size: 18px; font-weight: 700; min-width: 0; }

.ngo-mobile-nav-toggle {
  display: none;
  padding: 8px 10px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.06);
  color: #e8f5ef;
  font-size: 13px;
}

.ngo-mobile-overlay { display: none; }

.ngo-content {
  padding: 18px;
  display: grid;
  gap: 14px;
  min-width: 0;
  min-height: 12rem;
  box-sizing: border-box;
}

.ngo-card {
  padding: 16px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.03);
}

.ngo-card h2, .ngo-card h3 { margin: 0 0 10px; font-size: 1.05rem; }
.ngo-muted { color: #94a3b8; font-size: 0.92rem; line-height: 1.5; margin: 0 0 10px; }
.ngo-warn { color: #fde68a; margin: 0 0 8px; }
.ngo-mono { font-family: ui-monospace, monospace; font-size: 12px; color: #94a3b8; }

.ngo-kpi-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 150px), 1fr));
  gap: 10px;
}

.ngo-kpi {
  padding: 12px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(16, 32, 25, 0.8);
}

.ngo-kpi strong {
  display: block;
  font-size: 1.35rem;
  margin-bottom: 4px;
}

.ngo-kpi span { font-size: 0.82rem; color: #94a3b8; }

.ngo-chip {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
}

.ngo-chip--success { background: rgba(34, 197, 94, 0.2); color: #86efac; }
.ngo-chip--warning { background: rgba(245, 158, 11, 0.2); color: #fcd34d; }
.ngo-chip--danger { background: rgba(239, 68, 68, 0.2); color: #fca5a5; }
.ngo-chip--neutral { background: rgba(148, 163, 184, 0.2); color: #cbd5e1; }

.ngo-form-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

.ngo-label {
  display: block;
  font-size: 0.86rem;
  font-weight: 600;
  margin-bottom: 6px;
}

.ngo-input,
.ngo-select,
.ngo-textarea {
  width: 100%;
  box-sizing: border-box;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(0, 0, 0, 0.25);
  color: #e8f5ef;
  font: inherit;
  min-height: 44px;
}

.ngo-textarea { min-height: 96px; resize: vertical; }

.ngo-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 16px;
  border-radius: 10px;
  border: 1px solid transparent;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  font: inherit;
}

.ngo-btn-primary {
  background: #059669;
  color: #fff;
  border-color: #10b981;
}

.ngo-btn-secondary {
  background: transparent;
  color: #a7f3d0;
  border-color: rgba(167, 243, 208, 0.35);
}

.ngo-btn:disabled { opacity: 0.6; cursor: not-allowed; }

.ngo-table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.ngo-table {
  width: 100%;
  min-width: 520px;
  border-collapse: collapse;
  font-size: 0.9rem;
}
.ngo-table th, .ngo-table td {
  padding: 10px 8px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  text-align: left;
}

.ngo-flash {
  padding: 10px 12px;
  border-radius: 10px;
  margin-bottom: 12px;
  font-weight: 600;
}
.ngo-flash--success { background: rgba(34, 197, 94, 0.15); color: #86efac; }
.ngo-flash--error { background: rgba(239, 68, 68, 0.15); color: #fca5a5; }

.ngo-warn-banner { border-color: rgba(251, 191, 36, 0.45); }

.ngo-auth-shell {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 20px;
  box-sizing: border-box;
}
.ngo-auth-card {
  width: min(100%, 420px);
  padding: 22px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.04);
}
.ngo-auth-card h1 { margin: 0 0 8px; font-size: 1.35rem; }
.ngo-auth-form { display: grid; gap: 12px; margin-top: 14px; }
.ngo-auth-error { color: #fca5a5; margin: 0 0 8px; }
.ngo-auth-foot { margin-top: 14px; font-size: 0.82rem; color: #94a3b8; }

@media (min-width: 640px) {
  .ngo-form-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ngo-form-full { grid-column: 1 / -1; }
}

@media (max-width: 900px) {
  .ngo-shell { grid-template-columns: 1fr; }
  .ngo-side {
    position: fixed;
    inset: 0 auto 0 0;
    width: min(86vw, 280px);
    z-index: 30;
    transform: translateX(-105%);
    transition: transform 0.2s ease;
  }
  body.ngo-mobile-nav-open .ngo-side { transform: translateX(0); }
  .ngo-mobile-nav-toggle { display: inline-flex; }
  .ngo-mobile-overlay {
    display: block;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
    z-index: 20;
  }
  .ngo-btn { width: 100%; }
  .ngo-membership-card__meta { grid-template-columns: 1fr; }
}

.ngo-kpi-grid--wide {
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 130px), 1fr));
}

.ngo-membership-card {
  max-width: 420px;
  margin: 0 auto;
  padding: 18px;
  border-radius: 16px;
  border: 1px solid rgba(52, 211, 153, 0.35);
  background: linear-gradient(165deg, rgba(16, 32, 25, 0.95), rgba(12, 20, 18, 0.98));
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.25);
}

.ngo-membership-card__head { margin-bottom: 12px; }
.ngo-membership-card__org {
  margin: 0 0 4px;
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #86efac;
}
.ngo-membership-card__name {
  margin: 0;
  font-size: 1.25rem;
  font-weight: 800;
}

.ngo-membership-card__meta {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 0 0 14px;
}
.ngo-membership-card__meta div { min-width: 0; }
.ngo-membership-card__meta dt {
  margin: 0 0 2px;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #94a3b8;
}
.ngo-membership-card__meta dd { margin: 0; font-weight: 600; }

.ngo-membership-card__qr {
  text-align: center;
  padding-top: 8px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}
.ngo-membership-card__qr img {
  border-radius: 10px;
  background: #fff;
  padding: 6px;
}

.ngo-member-shell {
  max-width: 720px;
  margin: 0 auto;
  padding: 16px;
  display: grid;
  gap: 14px;
}
.ngo-member-top {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}
.ngo-member-top h1 { margin: 0 0 4px; font-size: 1.25rem; }

.ngo-verify-card { max-width: 440px; }
.ngo-verify-state {
  font-size: 1.1rem;
  font-weight: 800;
  margin: 0 0 12px;
}
.ngo-verify-state--valid { color: #86efac; }
.ngo-verify-state--inactive { color: #fcd34d; }
.ngo-verify-state--expired { color: #fca5a5; }
.ngo-verify-state--unknown { color: #94a3b8; }

.ngo-verify-list {
  display: grid;
  gap: 10px;
  margin: 0 0 12px;
}
.ngo-verify-list div {
  padding: 10px 12px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
}
.ngo-verify-list dt {
  margin: 0 0 2px;
  font-size: 0.72rem;
  text-transform: uppercase;
  color: #94a3b8;
}
.ngo-verify-list dd { margin: 0; font-weight: 600; }

.idsa-ngo-verify { background: #eef2f7; color: #1a2332; }
.idsa-ngo-verify .ngo-auth-card {
  background: #fff;
  border-color: #cdd5e0;
  color: #1a2332;
}
.idsa-ngo-verify .ngo-muted { color: #4a5568; }

.idsa-ngo-member-auth .ngo-auth-foot a { color: #059669; }

.ngo-avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
  background: rgba(52, 211, 153, 0.2);
  border: 2px solid rgba(52, 211, 153, 0.45);
  font-weight: 800;
  color: #86efac;
  overflow: hidden;
}
img.ngo-avatar { padding: 0; }
.ngo-avatar--card { width: 72px; height: 72px; }
.ngo-avatar--lg { width: 88px; height: 88px; font-size: 1.5rem; }
.ngo-avatar--xl { width: 104px; height: 104px; font-size: 1.75rem; }
.ngo-avatar--verify { width: 96px; height: 96px; margin: 0 auto 12px; }

.ngo-membership-card__layout {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}
.ngo-membership-card__body { flex: 1; min-width: 0; }
.ngo-membership-card__photo { flex-shrink: 0; }

.ngo-profile-hero {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
}
.ngo-profile-hero__photo { flex-shrink: 0; }
.ngo-profile-hero__meta { flex: 1; min-width: 0; }
.ngo-profile-hero__meta h2 { margin: 0 0 6px; }

.ngo-member-top__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
@media (max-width: 640px) {
  .ngo-member-top__actions .ngo-btn { width: auto; min-width: 7rem; }
}

.ngo-photo-preview {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin: 12px 0 16px;
}

.ngo-simple-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
}
.ngo-simple-list li {
  padding: 10px 12px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
}
.ngo-simple-list span { display: block; margin-top: 4px; font-size: 0.85rem; }

.ngo-table--attendance-v2 { min-width: 640px; }
.ngo-time-input { min-width: 6.5rem; max-width: 100%; }

.ngo-card__head-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}
.ngo-card__head-row h2,
.ngo-card__head-row h4 { margin: 0; }

.ngo-kpi-grid--compact {
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 100px), 1fr));
  gap: 10px;
}

.ngo-filter-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}
.ngo-filter-row .ngo-btn.is-active {
  background: rgba(52, 211, 153, 0.22);
  border-color: rgba(52, 211, 153, 0.45);
}

.ngo-inline-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.ngo-work-log-review {
  margin-bottom: 14px;
  background: rgba(255, 255, 255, 0.03);
}

@media (max-width: 900px) {
  .ngo-membership-card__layout { flex-direction: column; align-items: center; text-align: center; }
  .ngo-membership-card__meta { grid-template-columns: 1fr; }
  .ngo-filter-row .ngo-btn { width: auto; min-width: 7rem; }
  .ngo-inline-actions .ngo-btn { flex: 1 1 auto; min-width: 9rem; }
}
