.academy-group-balance{--gb-line:var(--border,#d9e7f0);--gb-ink:var(--text,#193147);--gb-muted:var(--text-muted,#5b7085);color:var(--gb-ink);font-family:inherit;font-size:14px;line-height:1.5}
.academy-group-balance button,.academy-group-balance input,.academy-group-balance select,.gb-dialog button,.gb-dialog input{font:inherit}
.gb-heading,.gb-selection-title,.gb-source,.gb-actions,.gb-dialog-head{display:flex;align-items:center;justify-content:space-between;gap:16px}
.gb-heading{margin:0 0 18px}.gb-heading h2{font-size:23px;margin:0 0 3px;letter-spacing:-.025em}.gb-heading p,.gb-source p{margin:0;color:var(--gb-muted)}
.gb-filters{display:grid;grid-template-columns:1fr 1.2fr 1.1fr 1.3fr 1fr auto;align-items:end;gap:12px;padding:16px;border:1px solid var(--gb-line);border-radius:14px;background:var(--card,#fff);margin-bottom:16px}
.gb-filters label,.gb-login label{display:grid;gap:6px;font-size:12px;font-weight:650}.gb-filters input,.gb-filters select,.gb-login input{width:100%;min-width:0;min-height:40px;border:1px solid var(--gb-line);border-radius:8px;padding:8px 10px;background:var(--card,#fff);color:inherit;box-sizing:border-box;font-size:14px;font-weight:450}
.gb-link{padding:9px 3px;border:0;background:none;color:var(--gb-ink);text-decoration:underline;text-underline-offset:4px;cursor:pointer;font-weight:600}
.gb-source{padding:13px 16px;border:1px solid var(--gb-line);border-radius:12px;background:var(--card,#fff);margin-bottom:14px}.gb-source strong{font-size:14px}.gb-source p{font-size:12px;margin-top:3px}.gb-actions{gap:12px;flex-shrink:0}.gb-source .btn{font-size:12px;min-height:36px}
.gb-global{padding:18px 20px;border:1px solid var(--gb-line);border-radius:14px;background:var(--card,#fff);margin-bottom:23px}.gb-section-label{font-size:11px;letter-spacing:.1em;font-weight:750;margin-bottom:14px;color:var(--gb-muted)}
.gb-metrics,.gb-selection-metrics{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px}.gb-metric{display:flex;flex-direction:column;gap:3px}.gb-metric>span{font-size:12px;font-weight:600;color:var(--gb-muted)}.gb-metric>strong{font-size:27px;letter-spacing:-.025em;line-height:1.25}.gb-metric>small{font-size:11px;color:var(--gb-muted)}.gb-negative>strong{color:#b33644}.gb-positive>strong{color:#13734d}
.gb-footnote{font-size:11px;line-height:1.55;color:var(--gb-muted);margin:13px 0 0}.gb-cost-detail{margin-top:13px;border-top:1px solid var(--gb-line);padding-top:10px}.gb-cost-detail summary,.gb-method summary{cursor:pointer;font-size:12px;font-weight:650}.gb-selection-title{margin-bottom:13px}.gb-selection-title h3{font-size:17px;margin:0}.gb-selection-title>span{font-size:12px;color:var(--gb-muted)}
.gb-selection-metrics{background:var(--card,#fff);border:1px solid var(--gb-line);border-radius:12px;padding:15px 18px;margin-bottom:17px}.gb-selection-metrics .gb-metric>strong{font-size:23px}
.gb-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}.gb-card{display:flex;flex-direction:column;border:1px solid var(--gb-line);border-radius:14px;background:var(--card,#fff);padding:18px;min-width:0;box-shadow:0 3px 12px #14354b03}.gb-card-top{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:7px;font-size:11px;color:var(--gb-muted)}
.gb-status{display:inline-block;padding:3px 7px;border-radius:20px;background:#f0f4f8;color:#52677a;font-size:10px;font-weight:650}.gb-status-warn{background:#fff0da;color:#8d580a}.gb-status-good{background:#e6f6ee;color:#146540}
.gb-card h3{font-size:22px;letter-spacing:-.025em;margin:12px 0 3px;color:var(--gb-ink)}.gb-categories{font-size:11px;color:var(--gb-muted);margin:0 0 14px;min-height:17px}.gb-card-numbers{display:grid;grid-template-columns:1fr 1fr;gap:14px}.gb-card-numbers>div{display:flex;flex-direction:column}.gb-card-numbers strong{font-size:28px;line-height:1.1}.gb-card-numbers strong small{font-size:15px;font-weight:450;color:var(--gb-muted)}.gb-card-numbers span{font-size:11px;margin-top:4px;color:var(--gb-muted)}.gb-progress{background:#eaf1f5;height:5px;border-radius:6px;margin:13px 0 15px;overflow:hidden}.gb-progress i{display:block;height:100%;background:#76bfe8;border-radius:6px}
.gb-card dl{margin:0 0 15px;display:grid;gap:9px}.gb-card dl>div{display:flex;align-items:baseline;justify-content:space-between;gap:8px}.gb-card dt{font-size:12px;color:var(--gb-muted)}.gb-card dd{margin:0;text-align:right;font-weight:650;font-size:13px}.gb-card dd.gb-amount{font-size:22px;color:#3193bd}.gb-group-cost{margin-top:auto;border-top:1px solid var(--gb-line);padding:11px 0;display:flex;flex-direction:column;font-size:11px;color:var(--gb-muted)}.gb-group-cost strong{font-weight:550}.gb-card>.btn{width:100%;font-size:12px;min-height:38px;justify-content:center}
.gb-alert{border:1px solid #edd29a;border-radius:9px;background:#fff9ed;color:#785316;padding:12px 15px;font-size:12px;margin:12px 0}.gb-empty,.gb-loading{padding:28px 0;color:var(--gb-muted)}.gb-method{margin:20px 0;border-top:1px solid var(--gb-line);padding-top:14px}.gb-method p{font-size:12px;color:var(--gb-muted);max-width:1000px}
.gb-schedules{border:1px solid var(--gb-line,#d9e7f0);border-radius:9px;padding:10px 11px;margin:0 0 14px;background:var(--bg,#f6fafc)}.gb-schedule{font-size:12px;line-height:1.4}.gb-schedule+.gb-schedule{border-top:1px solid var(--gb-line,#d9e7f0);margin-top:9px;padding-top:9px}.gb-schedule>div{display:flex;gap:7px;align-items:flex-start;margin-bottom:5px}.gb-schedule svg{width:15px;height:15px;flex:0 0 15px;margin-top:3px;color:#5288a7}.gb-schedule span{min-width:0}.gb-schedule span>small{display:block;font-size:10px;color:var(--gb-muted,#5b7085)}.gb-schedule strong{display:block;font-size:12px;font-weight:650;overflow-wrap:anywhere}.gb-schedule p{font-size:10px;color:var(--gb-muted,#5b7085);margin:5px 0 2px}.gb-schedule>small,.gb-schedules-empty>small{display:block;font-size:10px;color:var(--gb-muted,#5b7085)}.gb-schedules-empty>span{font-weight:600;font-size:11px}.gb-schedules details>summary{cursor:pointer;font-size:11px;font-weight:600;padding:7px 0 0}.gb-schedules details[open]>summary{margin-bottom:8px}.gb-dialog>.gb-schedules{color:var(--text,#193147)}
.gb-dialog{color:var(--text,#193147);background:var(--card,#fff);border:1px solid var(--border,#d9e7f0);border-radius:16px;padding:24px;width:min(880px,calc(100vw - 32px));max-height:85dvh;box-sizing:border-box;font-family:inherit;overflow:auto}.gb-dialog::backdrop{background:#112a3e8a}.gb-dialog-head{margin-bottom:16px}.gb-dialog h2{font-size:21px;margin:0}.gb-dialog>p{font-size:13px;line-height:1.6}.gb-login{display:grid;gap:16px;max-width:440px;margin:20px auto 0}.gb-login input{min-height:44px}.gb-login-status{font-size:13px;margin:0}.gb-table-wrap{overflow:auto;margin-top:12px}.gb-table-wrap table{width:100%;border-collapse:collapse;font-size:12px}.gb-table-wrap th{text-align:left;color:var(--text-muted,#5b7085);font-weight:650;background:var(--bg,#f5f9fc)}.gb-table-wrap td,.gb-table-wrap th{padding:10px;border-bottom:1px solid var(--border,#d9e7f0);vertical-align:middle;white-space:normal}.gb-table-wrap td small{display:block}.gb-table-wrap .btn{font-size:11px;padding:7px 10px;white-space:nowrap}
@media(min-width:1700px){.gb-grid{grid-template-columns:repeat(4,minmax(0,1fr))}}
@media(max-width:1200px){.gb-filters{grid-template-columns:repeat(3,minmax(0,1fr))}.gb-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.gb-card-top{align-items:flex-start}.gb-metric>strong{font-size:24px}}
@media(max-width:700px){.gb-heading,.gb-source,.gb-selection-title{align-items:flex-start;flex-direction:column;gap:10px}.gb-filters{grid-template-columns:repeat(2,minmax(0,1fr));padding:13px}.gb-grid{grid-template-columns:1fr}.gb-metrics,.gb-selection-metrics{grid-template-columns:1fr;gap:14px}.gb-metric+.gb-metric{border-top:1px solid var(--gb-line);padding-top:12px}.gb-global{padding:16px}.gb-heading h2{font-size:21px}.gb-source .gb-actions{flex-wrap:wrap}.gb-dialog{padding:18px}.gb-dialog-head h2{font-size:18px}}
@media(max-width:700px){.gb-filters>label:first-child{grid-column:1/-1}}
/* Keep the report's cards close to the filters on ordinary laptop screens. */
@media(min-width:701px){
 .content:has(#pg_group-balance[style*="block"]) .management-hub>p{display:none}
 .content:has(#pg_group-balance[style*="block"]) .management-hub{margin-bottom:18px}
 .gb-heading{margin-bottom:12px}.gb-heading h2{font-size:21px}.gb-heading p{display:none}
 .gb-source{padding:0 2px 10px;border:0;border-radius:0;background:none;margin-bottom:0}.gb-source p{font-size:11px}
 .gb-global{padding:14px 17px;margin-bottom:17px}.gb-section-label{margin-bottom:8px}.gb-footnote{margin-top:9px;font-size:10px}
 .gb-selection-title{margin-bottom:9px}.gb-selection-metrics{padding:10px 15px;margin-bottom:13px}.gb-selection-metrics .gb-metric>strong{font-size:21px}
 .gb-card{padding:16px}.gb-card h3{margin-top:9px}.gb-categories{margin-bottom:10px}.gb-card dl{gap:7px}.gb-group-cost{padding:9px 0}
}
