/* CharityGlow Membership — admin screens */
.cgm-admin { --a-navy: #123B72; --a-green: #218A4A; --a-border: #dcdcde; --a-soft: #f6f7f7; }
.cgm-a-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin: 6px 0 16px; }
.cgm-a-head h1 { margin: 0; padding: 0; }
.cgm-a-actions { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
.cgm-a-stats { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 12px; margin: 0 0 18px; }
.cgm-a-stat { display: flex; flex-direction: column; gap: 3px; background: #fff; border: 1px solid var(--a-border); border-left: 4px solid var(--a-navy); border-radius: 6px; padding: 14px 16px; text-decoration: none; color: #1d2327; }
a.cgm-a-stat:hover { box-shadow: 0 2px 8px rgba(0,0,0,.08); color: #1d2327; }
.cgm-a-stat span { font-size: 12.5px; color: #646970; }
.cgm-a-stat strong { font-size: 22px; line-height: 1.2; color: var(--a-navy); }
.cgm-a-stat em { font-style: normal; font-size: 12px; color: #646970; }
.cgm-a-stat.warn { border-left-color: #dba617; }
.cgm-a-stat.warn strong { color: #996800; }
.cgm-a-stat.ok { border-left-color: var(--a-green); }
.cgm-a-stat.ok strong { color: var(--a-green); }
.cgm-a-stat.bad { border-left-color: #d63638; }
.cgm-a-stat.bad strong { color: #b32d2e; }
.cgm-a-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; align-items: start; }
.cgm-a-cols-wide { grid-template-columns: minmax(0, 2fr) minmax(280px, 1fr); }
.cgm-a-box { background: #fff; border: 1px solid var(--a-border); border-radius: 6px; padding: 16px 18px; margin: 0 0 16px; }
.cgm-a-box h2 { font-size: 15px; margin: 0 0 12px; color: var(--a-navy); }
.cgm-a-box h3 { font-size: 13px; margin: 16px 0 8px; }
.cgm-a-sticky { position: sticky; top: 46px; }
.cgm-a-empty { color: #646970; text-align: center; padding: 14px; }
.cgm-a-feed { margin: 0; }
.cgm-a-feed li { display: flex; justify-content: space-between; gap: 10px; border-bottom: 1px solid #f0f0f1; padding: 7px 0; margin: 0; }
.cgm-a-feed li:last-child { border-bottom: 0; }
.cgm-a-feed time, .cgm-a-feed small { color: #8c8f94; white-space: nowrap; font-size: 12px; }
.cgm-a-search { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin: 10px 0; }
.cgm-a-search input[type=search] { min-width: 260px; }
.cgm-a-sum { font-weight: 600; color: var(--a-navy); }
.cgm-a-table td { vertical-align: middle; }
.cgm-a-table small { display: block; color: #646970; }
.cgm-a-actions-cell { white-space: nowrap; }
.cgm-a-actions-cell form, .cgm-inline { display: inline-block; margin: 0 2px 2px 0; }
.cgm-a-person { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.cgm-a-person strong { display: block; }
.cgm-a-av { width: 36px; height: 36px; border-radius: 50%; background: #e6eef8; color: var(--a-navy); display: inline-flex; align-items: center; justify-content: center; font-weight: 700; overflow: hidden; flex: 0 0 auto; }
.cgm-a-av img { width: 100%; height: 100%; object-fit: cover; }
.cgm-a-av-lg { width: 72px; height: 72px; font-size: 28px; }
.cgm-a-profile { display: flex; gap: 16px; align-items: center; background: #fff; border: 1px solid var(--a-border); border-radius: 6px; padding: 16px 18px; margin-bottom: 16px; }
.cgm-a-profile h2 { margin: 0 0 4px; font-size: 18px; }
.cgm-a-profile code { font-size: 13px; background: #e6eef8; color: var(--a-navy); }
.cgm-a-profile p { margin: 2px 0; color: #50575e; }
.cgm-pill { display: inline-block; padding: 2px 9px; border-radius: 999px; font-size: 12px; font-weight: 600; background: #f0f0f1; color: #50575e; white-space: nowrap; vertical-align: middle; }
.cgm-pill-active, .cgm-pill-approved, .cgm-pill-paid, .cgm-pill-completed { background: #e7f5ec; color: #14632f; }
.cgm-pill-pending, .cgm-pill-submitted, .cgm-pill-pending_review { background: #fcf3dc; color: #8a5a00; }
.cgm-pill-under_review, .cgm-pill-more_info { background: #e6eef8; color: var(--a-navy); }
.cgm-pill-rejected, .cgm-pill-suspended, .cgm-pill-failed { background: #fcebea; color: #a3201f; }
.cgm-pill-inactive { background: #f0f0f1; color: #646970; }
.cgm-a-red { color: #b32d2e; }
.cgm-a-green { color: var(--a-green); font-weight: 700; }
.cgm-count { display: inline-block; background: #d63638; color: #fff; border-radius: 9px; font-size: 11px; padding: 0 6px; margin-left: 4px; line-height: 17px; }
.cgm-a-dl { width: 100%; border-collapse: collapse; }
.cgm-a-dl th { text-align: left; width: 36%; color: #50575e; font-weight: 600; padding: 7px 10px 7px 0; vertical-align: top; border-bottom: 1px solid #f0f0f1; }
.cgm-a-dl td { padding: 7px 0; border-bottom: 1px solid #f0f0f1; word-break: break-word; }
.cgm-a-thumb { max-width: 120px; max-height: 140px; border-radius: 6px; border: 1px solid var(--a-border); }
.cgm-a-approve { border: 1px solid #c3e6cd; background: #f3fbf5; padding: 10px 12px; border-radius: 6px; margin: 10px 0; }
.cgm-a-approve legend { font-weight: 600; padding: 0 4px; }
.cgm-a-history { background: var(--a-soft); border-radius: 6px; padding: 10px; font-size: 12.5px; max-height: 240px; overflow: auto; }
.cgm-a-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 0 18px; }
.cgm-a-form .widefat, .cgm-a-record .widefat { max-width: 100%; }
.cgm-a-ledger { display: flex; flex-direction: column; gap: 8px; }
.cgm-a-year { display: flex; align-items: center; gap: 10px; }
.cgm-a-year > strong { width: 44px; color: var(--a-navy); }
.cgm-a-yrow { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 4px; flex: 1; }
.cgm-a-m { display: inline-block; text-align: center; padding: 6px 2px; border-radius: 4px; font-size: 11.5px; font-weight: 600; background: #f0f0f1; color: #8c8f94; cursor: default; }
.cgm-a-m-paid { background: #d8f0e0; color: #14632f; }
.cgm-a-m-pending { background: #dbe8fa; color: #1e4f99; }
.cgm-a-m-due { background: #fcefc7; color: #8a5a00; }
.cgm-a-m-overdue { background: #fbd9d8; color: #a3201f; }
.cgm-a-m-upcoming { background: #f6f7f7; color: #a7aaad; }
.cgm-a-legend { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.cgm-a-legend .cgm-a-m { padding: 3px 10px; }
.cgm-a-bar { height: 10px; background: #f0f0f1; border-radius: 6px; overflow: hidden; margin: -6px 0 18px; }
.cgm-a-bar span { display: block; height: 100%; background: var(--a-green); }
.cgm-a-settings .form-table th { width: 240px; }
.cgm-a-email { margin-bottom: 10px; }
.cgm-a-email summary { cursor: pointer; }
.cgm-a-email textarea { width: 100%; min-height: 140px; font-family: monospace; }
@media (max-width: 960px) {
	.cgm-a-cols, .cgm-a-cols-wide { grid-template-columns: 1fr; }
	.cgm-a-sticky { position: static; }
	.cgm-a-yrow { grid-template-columns: repeat(6, minmax(0, 1fr)); }
}
