/* Progress report dialog. Builds on the dialog styles in account-security.css. */
.report-dialog { width: min(100% - 2rem, 36rem); }
.report-dialog h2:focus { outline: none; }
.report-body { display: grid; gap: 1rem; padding: 1.1rem 1.25rem 1.25rem; }
.report-body > p { margin: 0; }
.report-section h3 { margin: 0 0 .5rem; font-size: .95rem; color: #0f2f5c; }
.report-segmented { display: flex; flex-wrap: wrap; gap: .4rem; }
.report-dialog .report-segmented button { flex: 1 1 7rem; min-height: 40px; padding: .45rem .7rem; font-weight: 600; }
.report-dialog .report-segmented button[aria-checked="true"] { background: #1f5aa6; border-color: #1f5aa6; color: #fff; }
.report-dates { display: grid; grid-template-columns: 1fr 1fr; gap: .6rem; margin-top: .6rem; }
.report-dialog .report-date { display: grid; gap: .25rem; font-size: .85rem; font-weight: 700; color: #45607e; }
.report-dialog .report-date input { box-sizing: border-box; width: 100%; padding: .5rem .6rem; min-height: 42px; }
.report-hint { margin: .45rem 0 0; color: #45607e; font-size: .85rem; }
.report-actions { display: grid; grid-template-columns: 1fr 1fr; gap: .55rem; }
.report-dialog .report-action { display: grid; gap: .15rem; align-content: center; text-align: start; padding: .6rem .8rem; }
.report-dialog .report-action strong { font-size: .95rem; }
.report-dialog .report-action small { color: #45607e; font-weight: 500; font-size: .78rem; }
.report-dialog .report-primary { background: #ffbd38; border-color: #f8ad18; }
.report-dialog .report-primary small { color: #4d3a0b; }
.report-dialog .session-status { margin: .6rem 0 0; }
.report-result { margin-top: .6rem; padding: .7rem .8rem; border-radius: 12px; background: #e6f6ee; color: #135f3b; overflow-wrap: anywhere; }
.report-result p { margin: 0 0 .5rem; font-weight: 700; }
.report-result-actions { display: flex; flex-wrap: wrap; gap: .5rem; }
.report-result-actions button { flex: 1 1 8rem; }
.report-comments { border: 1px solid #d6e1ee; border-radius: 12px; background: #f7faff; padding: .2rem .9rem; }
.report-comments summary { min-height: 44px; display: flex; align-items: center; font-weight: 700; cursor: pointer; }
.report-comments[open] { padding-bottom: .9rem; }
.report-students { display: grid; gap: .65rem; margin: .8rem 0; padding: 0; list-style: none; }
.report-student-head { display: flex; align-items: center; justify-content: space-between; gap: .6rem; margin-bottom: .3rem; }
.report-student-head strong { overflow-wrap: anywhere; }
.report-dialog .report-mini { min-height: 36px; padding: .3rem .7rem; font-size: .82rem; flex: none; }
.report-dialog textarea {
  box-sizing: border-box; width: 100%; min-height: 3.2rem; padding: .5rem .65rem; resize: vertical;
  font: inherit; font-size: .92rem; border: 1px solid #b6c5da; border-radius: 10px; background: #fff; color: #102441;
}
.report-dialog .report-link { min-height: 36px; border: 0; padding: .2rem 0; background: none; color: #1d58b9; text-decoration: underline; }
.report-privacy { padding: .65rem .8rem; border-radius: 10px; background: #eef5fd; font-size: .88rem; }
@media (max-width: 30rem) {
  .report-actions, .report-dates { grid-template-columns: 1fr; }
}

:root[data-climb-theme="dark"] .report-dialog .report-section h3 { color: var(--theme-ink); }
:root[data-climb-theme="dark"] .report-dialog :is(.report-hint, .report-date, .report-action small) { color: var(--theme-muted, #b9c6d8); }
:root[data-climb-theme="dark"] .report-dialog :is(.report-comments, .report-privacy) {
  color: var(--theme-ink); background: var(--theme-surface); border-color: var(--theme-line);
}
:root[data-climb-theme="dark"] .report-dialog :is(button:not(.report-primary, .report-link, [aria-checked="true"]), input, textarea) {
  color: var(--theme-ink); background: var(--theme-surface); border-color: var(--theme-line);
}
:root[data-climb-theme="dark"] .report-dialog .report-primary { color: #1b1400; }
:root[data-climb-theme="dark"] .report-dialog .report-link { color: #9cc3ff; }
:root[data-climb-theme="dark"] .report-result { background: #12392a; color: #bff0d6; }

/* Menu icon, matching the other Class menu actions. */
.signed-in-dashboard #classMenuPanel #classReportBtn {--action-icon:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2034%2034%22%3E%3Crect%20width%3D%2234%22%20height%3D%2234%22%20rx%3D%228%22%20fill%3D%22%23fff2d6%22%2F%3E%3Cg%20transform%3D%22translate%287%207%29%20scale%28.84%29%22%20stroke%3D%22%23a35f00%22%20fill%3D%22none%22%20stroke-width%3D%221.8%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22M6%203h9l4%204v14H6z%22%2F%3E%3Cpath%20d%3D%22M9.5%2017v-3M12.5%2017v-6M15.5%2017v-4%22%2F%3E%3C%2Fg%3E%3C%2Fsvg%3E")}
.signed-in-dashboard #classMenuPanel #classReportBtn::before {
  content:"";flex:none;width:28px;height:28px;margin-inline-end:3px;border-radius:7px;
  background:var(--action-icon) center / contain no-repeat;padding:0;
}
