/* v13.19.0: Group activity window (admins and tutors) */
#modal-root .modal.ga-modal { max-width: min(1180px, 96vw); width: 96vw; }
.ga { font-size: 15px; }
.ga h4 { margin: 0 0 8px; font-size: 1rem; }
.ga-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; flex-wrap: wrap; padding-right: 28px; }
.ga-acts { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.ga-sum { display: flex; gap: 8px; flex-wrap: wrap; margin: 12px 0; }
.ga-status { display: inline-block; font-weight: 700; font-size: 12.5px; padding: 4px 10px; border-radius: 99px; white-space: nowrap; }
.ga-ok { background: #E7F7EE; color: #1B6E3F; }
.ga-warn { background: #FFF2D9; color: #8A5A00; }
.ga-bad { background: #FDECEC; color: #A3302C; }
.ga-this { background: var(--soft, #F7F6FC); border-radius: 14px; padding: 12px 14px; margin-bottom: 12px; }
.ga-bar { display: grid; grid-template-columns: minmax(160px, 1.4fr) minmax(80px, 1fr) 54px auto; gap: 10px; align-items: center; padding: 4px 0; }
.ga-bar-l { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 700; }
.ga-bar-t { height: 10px; background: #E6E2F3; border-radius: 99px; overflow: hidden; }
.ga-bar-t i { display: block; height: 100%; background: linear-gradient(90deg, #3F27BD, #D22CB2); border-radius: 99px; }
.ga-bar-n { font-variant-numeric: tabular-nums; text-align: right; }
.ga-oktxt { color: #1B6E3F; font-weight: 700; }
.ga-filters { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; margin: 6px 0 10px; }
.ga-filters input[type="search"] { margin-left: auto; min-width: 180px; padding: 6px 10px; border: 1px solid var(--line, #E3E3E7); border-radius: 10px; font: inherit; }
.ga-list { display: flex; flex-direction: column; gap: 8px; }
.ga-item { border: 1px solid var(--line, #E3E3E7); border-radius: 14px; background: #fff; overflow: hidden; }
.ga-item.open { border-color: #B9AEE6; box-shadow: 0 6px 18px rgba(63, 39, 189, .08); }
.ga-head { display: grid; grid-template-columns: minmax(180px, 2fr) auto minmax(120px, 1.2fr) minmax(110px, 1fr) 80px 18px; gap: 12px; align-items: center;
  width: 100%; text-align: left; background: none; border: 0; padding: 10px 14px; font: inherit; color: inherit; cursor: pointer; }
.ga-head:hover { background: #FAF9FE; }
.ga-head:focus-visible { outline: 3px solid #B9AEE6; outline-offset: -3px; }
.ga-name { display: flex; flex-direction: column; min-width: 0; }
.ga-misstxt { color: #A3302C; }
.ga-week { display: flex; flex-direction: column; gap: 3px; }
.ga-dots { display: flex; gap: 4px; flex-wrap: wrap; }
.ga-dot { width: 12px; height: 12px; border-radius: 50%; display: inline-block; }
.ga-dot.ga-done { background: #2BA765; } .ga-dot.ga-late { background: #E9A825; } .ga-dot.ga-miss { background: #D0453F; } .ga-dot.ga-todo { background: #D8D4E6; }
.ga-avg { display: flex; flex-direction: column; text-align: right; }
.ga-caret { color: #888; }
.ga-body { padding: 4px 14px 14px; border-top: 1px solid var(--line, #EEE); }
.ga-body > .ga-acts { margin: 10px 0; }
.ga table.data.ga-weeks th { width: 150px; border-bottom: 1px solid var(--line, #E3E3E7); vertical-align: top; text-align: left; font-weight: 700; text-transform: none; letter-spacing: normal; font-size: 14px; color: inherit; }
.ga table.data.ga-weeks td { line-height: 2.1; white-space: normal; }
.ga table.data.ga-weeks th { white-space: normal; }
.ga-chip { display: inline-flex; gap: 6px; align-items: center; font-size: 12.5px; padding: 2px 9px; border-radius: 99px; margin: 0 4px 2px 0; border: 1px solid transparent; }
.ga-chip b { font-weight: 700; }
.ga-chip.ga-done { background: #E7F7EE; color: #1B6E3F; } .ga-chip.ga-late { background: #FFF2D9; color: #8A5A00; }
.ga-chip.ga-miss { background: #FDECEC; color: #A3302C; } .ga-chip.ga-todo { background: #F1EFF7; color: #5D5575; }
.ga-topics { margin: 10px 0; }
.ga-topic { display: inline-block; font-size: 12.5px; padding: 2px 9px; border-radius: 99px; margin: 0 4px 4px 0; font-weight: 700; }
.ga-topic.ga-red { background: #FDECEC; color: #A3302C; } .ga-topic.ga-amber { background: #FFF2D9; color: #8A5A00; }
.ga-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 10px; }
.ga-note { background: #FFFBEF; border: 1px solid #F3E3B5; border-radius: 10px; padding: 6px 10px; margin-bottom: 6px; }
.ga-note p { margin: 0 0 2px; white-space: pre-wrap; }
.ga-notes textarea { width: 100%; margin: 4px 0 6px; font: inherit; padding: 6px 8px; border: 1px solid var(--line, #E3E3E7); border-radius: 10px; }
.ga-draft { background: #F6F4FF; border: 1px solid #D9D2F6; border-radius: 14px; padding: 12px 14px; margin: 10px 0; }
.ga-draft textarea, .ga-draft input:not([type="checkbox"]) { width: 100%; }
.ga-items label, .ga-who label { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; cursor: pointer; }
.ga-items input[type="checkbox"], .ga-who input[type="checkbox"] { width: auto; margin: 0; flex: none; }
.ga-items, .ga-who { display: flex; flex-direction: column; gap: 4px; margin: 0 0 8px; max-height: 220px; overflow: auto; }
@media (max-width: 820px) {
  .ga-head { grid-template-columns: 1fr auto; }
  .ga-head .ga-week, .ga-head .ga-cmp, .ga-head .ga-avg { grid-column: 1 / -1; text-align: left; }
  .ga-cols { grid-template-columns: 1fr; }
  .ga-bar { grid-template-columns: 1fr 54px; }
  .ga-bar-t, .ga-bar button { grid-column: 1 / -1; }
  .ga table.data.ga-weeks, .ga table.data.ga-weeks tbody, .ga table.data.ga-weeks tr, .ga table.data.ga-weeks th, .ga table.data.ga-weeks td { display: block; width: auto; overflow: visible; }
  .ga table.data.ga-weeks th { border-bottom: 0; padding-bottom: 2px; }
  .ga table.data.ga-weeks td { padding-top: 0; }
}
/* v13.21.0: Edit user opens over the Group activity window, which stays open behind it */
.modal-scrim.ga-edit-scrim { z-index: 600; }
#ga-edit .modal { max-width: 720px; }
