/* Monthly Gat report — loaded directly so it works even when SCSS build is stale */

.monthly-gat-reports-page .monthly-gat-report-month.dashboard-panel {
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid rgba(122, 130, 64, 0.1);
  border-radius: 0.75rem;
  box-shadow: 0 10px 28px rgba(111, 208, 221, 0.08);
  overflow: visible;
}

.monthly-gat-report-month-header {
  background: rgba(122, 130, 64, 0.05);
}

.monthly-gat-report-month-header.border-bottom {
  border-bottom: 1px solid rgba(122, 130, 64, 0.1) !important;
}

.monthly-gat-report-table {
  width: 100%;
  margin-bottom: 0;
  font-size: 0.875rem;
  border-collapse: collapse;
}

.monthly-gat-report-table th,
.monthly-gat-report-table td {
  vertical-align: top;
  word-wrap: break-word;
}

.monthly-gat-report-date,
.monthly-gat-report-day,
.monthly-gat-report-facilitator {
  white-space: nowrap;
  background: rgba(111, 208, 221, 0.06);
}

.monthly-gat-report-subject {
  white-space: nowrap;
  min-width: 7rem;
}

.monthly-gat-report-activity {
  position: relative;
  min-width: 18rem;
  line-height: 1.35;
  white-space: normal;
}

.monthly-gat-report-field-trips .monthly-gat-report-field-trip-meta {
  margin-bottom: 0;
}

.monthly-gat-report-field-trips .monthly-gat-report-field-trip-meta dt {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  color: rgba(122, 130, 64, 0.85);
  margin-bottom: 0.15rem;
}

.monthly-gat-report-field-trips .monthly-gat-report-field-trip-meta dd {
  margin-bottom: 0.75rem;
}

.monthly-gat-report-field-trip-label {
  font-size: 0.8125rem;
  font-weight: 600;
  margin-bottom: 0.35rem;
  color: rgba(40, 50, 30, 0.85);
}

.monthly-gat-report-field-trips .facilitator-report-rich-text {
  font-size: 0.875rem;
  line-height: 1.4;
}

.monthly-gat-report-table--facilitator-subject .monthly-gat-report-facilitator {
  min-width: 8rem;
}

.monthly-gat-report-table--facilitator-subject .monthly-gat-report-subject {
  min-width: 9rem;
}

.monthly-gat-activity-edit {
  position: relative;
  max-width: 100%;
}

.monthly-gat-activity-display,
.monthly-gat-activity-text {
  display: block;
  max-height: 5.5rem;
  overflow-y: auto;
}

.monthly-gat-activity-display {
  cursor: pointer;
  border-radius: 0.25rem;
  padding: 0.125rem 0.25rem;
  margin: -0.125rem -0.25rem;
}

.monthly-gat-activity-display:hover,
.monthly-gat-activity-display:focus-visible {
  background: rgba(111, 208, 221, 0.12);
  outline: none;
}

.monthly-gat-activity-editor {
  position: absolute;
  left: 0;
  top: 0;
  z-index: 20;
  width: min(28rem, 90vw);
  min-width: 20rem;
  background: #fff;
  border: 1px solid rgba(122, 130, 64, 0.25);
  border-radius: 0.375rem;
  padding: 0.5rem;
  box-shadow: 0 0.5rem 1rem rgba(31, 41, 51, 0.12);
}

.monthly-gat-activity-textarea {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  resize: vertical;
}

.monthly-gat-activity-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem;
  align-items: center;
}

.monthly-gat-activity-actions .btn-link {
  text-decoration: none;
}

.monthly-gat-reports-page .table-responsive {
  overflow-x: auto;
  overflow-y: visible;
}

.monthly-gat-report-table--my-report {
  table-layout: fixed;
}

.monthly-gat-report-table--my-report th:nth-child(1),
.monthly-gat-report-table--my-report td.monthly-gat-report-date {
  width: 9%;
}

.monthly-gat-report-table--my-report th:nth-child(2),
.monthly-gat-report-table--my-report td.monthly-gat-report-day {
  width: 8%;
}

.monthly-gat-report-table--my-report th:nth-child(3),
.monthly-gat-report-table--my-report td.monthly-gat-report-subject {
  width: 11%;
}

.monthly-gat-report-table--my-report th:nth-child(4),
.monthly-gat-report-table--my-report td.facilitator-report-update {
  width: 38%;
}

.monthly-gat-report-table--my-report th:nth-child(5),
.monthly-gat-report-table--my-report td.facilitator-report-mentions {
  width: 17%;
}

.monthly-gat-report-table--my-report th:nth-child(6),
.monthly-gat-report-table--my-report td.facilitator-report-references {
  width: 17%;
}

.monthly-gat-report-table--my-report .facilitator-report-update,
.monthly-gat-report-table--my-report .facilitator-report-mentions,
.monthly-gat-report-table--my-report .facilitator-report-references {
  line-height: 1.35;
  white-space: normal;
}

.monthly-gat-report-table--my-report .facilitator-report-update {
  min-width: 20rem;
}

.monthly-gat-report-table--my-report .facilitator-report-mentions,
.monthly-gat-report-table--my-report .facilitator-report-references {
  min-width: 11rem;
}

.monthly-gat-report-table--my-report .facilitator-report-rich-text {
  max-height: 10rem;
  overflow-y: auto;
}

.monthly-gat-report-table--my-report .facilitator-report-update .facilitator-report-rich-text {
  max-height: 12rem;
}

.monthly-gat-report-table--my-report .facilitator-report-rich-text .attachment--preview,
.monthly-gat-report-table--my-report .facilitator-report-rich-text figure.attachment {
  margin: 0.35rem 0;
  max-width: 100%;
}

.monthly-gat-report-table--my-report .facilitator-report-rich-text .attachment--preview img,
.monthly-gat-report-table--my-report .facilitator-report-rich-text figure img {
  display: block;
  max-width: 100%;
  height: auto;
}

.monthly-gat-report-table--my-report .facilitator-report-reference-icon--image {
  width: 2.5rem;
  height: 2.5rem;
  padding: 0;
  overflow: hidden;
}

.monthly-gat-report-table--my-report .facilitator-report-reference-thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.monthly-gat-report-table--my-report .facilitator-report-mention-badges .badge {
  font-weight: 500;
}

.monthly-gat-report-table--my-report .facilitator-report-reference-icons {
  align-items: center;
}

.monthly-gat-report-table--my-report .facilitator-report-reference-icon {
  width: 2rem;
  height: 2rem;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #1f2933;
  background: rgba(111, 208, 221, 0.12);
}

.monthly-gat-report-table--my-report .facilitator-report-reference-icon:hover,
.monthly-gat-report-table--my-report .facilitator-report-reference-icon:focus-visible {
  background: rgba(111, 208, 221, 0.24);
  color: #1f2933;
}

.monthly-gat-report-table--my-report .facilitator-report-reference-icon .bi {
  font-size: 1rem;
  line-height: 1;
}

.facilitator-reports-page .facilitator-report-document-modal-body {
  min-height: 12rem;
  background: #f8fafc;
}

.facilitator-reports-page .facilitator-report-document-image {
  display: block;
  max-height: 75vh;
  object-fit: contain;
  background: #fff;
}

.facilitator-reports-page .facilitator-report-document-iframe {
  display: block;
  min-height: 75vh;
  border: 0;
  background: #fff;
}

.facilitator-reports-page .facilitator-report-document-fallback-icon {
  font-size: 2.5rem;
  color: #6c757d;
}

.monthly-gat-report-table td.monthly-gat-report-activity {
  padding-top: 0.35rem;
  padding-bottom: 0.35rem;
}

.monthly-gat-report-activity .trix-content,
.monthly-gat-report-activity .rich-text-display {
  line-height: 1.45;
  overflow-wrap: break-word;
  word-break: break-word;
}

.monthly-gat-report-activity .trix-content * {
  box-sizing: border-box;
}

.monthly-gat-report-activity .trix-content strong,
.monthly-gat-report-activity .trix-content b {
  font-weight: 700;
}

.monthly-gat-report-activity .trix-content em,
.monthly-gat-report-activity .trix-content i {
  font-style: italic;
}

.monthly-gat-report-activity .trix-content h1 {
  font-size: 1.2em;
  line-height: 1.2;
  font-weight: 600;
  margin-bottom: 0.35em;
}

.monthly-gat-report-activity .trix-content blockquote {
  border: 0 solid #ccc;
  border-left-width: 0.3em;
  margin: 0.35em 0 0.35em 0.3em;
  padding-left: 0.6em;
  color: #4b5563;
}

.monthly-gat-report-activity .trix-content ul,
.monthly-gat-report-activity .trix-content ol {
  margin: 0.35em 0;
  padding-left: 1.25em;
}

.monthly-gat-report-activity .trix-content ul {
  list-style-type: disc;
}

.monthly-gat-report-activity .trix-content ol {
  list-style-type: decimal;
}

.monthly-gat-report-activity .trix-content li {
  display: list-item;
  margin: 0.15em 0;
}

.monthly-gat-report-activity .trix-content pre {
  display: block;
  font-family: monospace;
  font-size: 0.9em;
  padding: 0.5em;
  white-space: pre-wrap;
  background-color: #eee;
  margin: 0.35em 0;
}

.monthly-gat-report-activity .trix-content a {
  color: #1d4ed8;
  text-decoration: underline;
}

.monthly-gat-report-visibility,
.monthly-gat-report-visibility-header {
  white-space: nowrap;
  width: 1%;
  vertical-align: middle;
}

.monthly-gat-row-visibility .btn {
  min-width: 3.25rem;
}

.monthly-gat-report-row--hidden td:not(.monthly-gat-report-visibility) {
  background: rgba(108, 117, 125, 0.08);
  color: #6c757d;
}

.monthly-gat-report-row--hidden .monthly-gat-activity-display,
.monthly-gat-report-row--hidden .monthly-gat-activity-text {
  pointer-events: none;
  cursor: default;
}

.monthly-gat-report-row--hidden .monthly-gat-activity-display:hover,
.monthly-gat-report-row--hidden .monthly-gat-activity-display:focus-visible {
  background: transparent;
}
