/* opt/mw-panel/frontend/src/components/teacher/recovery-follow-ups.css */
.mw-recovery {
  --recovery-green:#3f7559;
  --recovery-ink:#26372e;
  --recovery-muted:#65726a;
  color: var(--recovery-ink);
  max-width: 100%;
  min-width: 0;
  display: grid;
  gap: 16px;
}
.mw-recovery-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}
.mw-recovery-eyebrow {
  font-size: 11px;
  letter-spacing: .09em;
  font-weight: 700;
  color: var(--recovery-green);
}
.mw-recovery-header h2 {
  font-size: 22px;
  line-height: 1.35;
  margin: 4px 0 6px;
}
.mw-recovery-header p {
  color: var(--recovery-muted);
  margin: 0;
  max-width: 760px;
}
.mw-recovery-year {
  border: 1px solid #dce5df;
  border-radius: 20px;
  padding: 5px 12px;
  font-size: 12px;
  white-space: nowrap;
  background: #f8faf8;
}
.mw-recovery-filters {
  display: grid;
  grid-template-columns: minmax(220px, 1.6fr) minmax(150px, 1fr) minmax(170px, 1fr);
  gap: 12px;
}
.mw-recovery label,
.mw-recovery-form label {
  display: grid;
  gap: 6px;
  min-width: 0;
  font-weight: 600;
  font-size: 13px;
}
.mw-recovery select,
.mw-recovery input:not([type=checkbox]),
.mw-recovery textarea,
.mw-recovery-form select,
.mw-recovery-form input,
.mw-recovery-form textarea {
  display: block;
  box-sizing: border-box;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  min-height: 42px;
  border: 1px solid #d7e0da;
  border-radius: 8px;
  background: #fff;
  color: #26372e;
  padding: 8px 10px;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.5;
  font-family: inherit;
}
.mw-recovery-form textarea {
  resize: vertical;
}
.mw-recovery select:disabled,
.mw-recovery-form select:disabled,
.mw-recovery-form input:disabled,
.mw-recovery-form textarea:disabled {
  background: #f4f6f4;
  color: #758078;
  cursor: not-allowed;
}
.mw-recovery button:focus-visible,
.mw-recovery input:focus-visible,
.mw-recovery select:focus-visible,
.mw-recovery summary:focus-visible,
.mw-recovery-form input:focus-visible,
.mw-recovery-form select:focus-visible,
.mw-recovery-form textarea:focus-visible {
  outline: 2px solid #1877b9;
  outline-offset: 3px;
}
.mw-recovery-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}
.mw-recovery-summary button {
  font: inherit;
  cursor: pointer;
  text-align: left;
  background: #f7faf7;
  border: 1px solid #dfe7e1;
  border-radius: 12px;
  padding: 16px;
  display: grid;
  gap: 6px;
  min-width: 0;
}
.mw-recovery-summary button:hover {
  border-color: #7ba48b;
  background: #f0f7f1;
}
.mw-recovery-summary span {
  font-size: 13px;
  font-weight: 600;
}
.mw-recovery-summary strong {
  font-size: 30px;
  line-height: 1.15;
  color: var(--recovery-green);
  font-variant-numeric: tabular-nums;
}
.mw-recovery-summary small {
  font-size: 12px;
  line-height: 1.4;
  color: var(--recovery-muted);
}
.mw-recovery-loading,
.mw-recovery-empty {
  border: 1px dashed #d5e0d8;
  border-radius: 12px;
  text-align: center;
  padding: 28px 18px;
  background: #fbfcfb;
}
.mw-recovery-loading {
  color: var(--recovery-muted);
}
.mw-recovery-empty p {
  color: var(--recovery-muted);
  margin: 8px 0 14px;
}
.mw-recovery-list-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}
.mw-recovery-tabs {
  display: inline-flex;
  border: 1px solid #dce4de;
  padding: 3px;
  border-radius: 10px;
  background: #f5f7f5;
}
.mw-recovery-tabs button {
  font: inherit;
  font-size: 13px;
  cursor: pointer;
  border: 0;
  border-radius: 7px;
  padding: 8px 14px;
  background: transparent;
  color: #5b695f;
  min-height: 36px;
}
.mw-recovery-tabs button[aria-selected=true] {
  background: #fff;
  color: #2f684a;
  font-weight: 700;
  box-shadow: 0 1px 3px #24332c14;
}
.mw-recovery-history-filter {
  grid-template-columns: auto minmax(180px, 1fr);
  align-items: center;
}
.mw-recovery-history-filter select {
  min-height: 36px;
  padding-block: 5px;
}
.mw-recovery-selection {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  border: 1px solid #bcd3c2;
  border-radius: 10px;
  padding: 12px;
  background: #f0f8f2;
}
.mw-recovery-selection > div {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.mw-recovery-selection small {
  flex-basis: 100%;
  color: #5d6d62;
  line-height: 1.5;
}
.mw-recovery-items {
  display: grid;
  gap: 14px;
  min-width: 0;
}
.mw-recovery-item {
  border: 1px solid #dfe6e1;
  border-radius: 12px;
  padding: 18px;
  background: #fff;
  min-width: 0;
}
.mw-recovery-item-heading {
  display: flex;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 10px;
}
.mw-recovery-item-heading > input[type=checkbox] {
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
  margin-top: 4px;
  accent-color: var(--recovery-green);
  cursor: pointer;
}
.mw-recovery-item-title {
  flex: 1 1 200px;
  min-width: 0;
}
.mw-recovery-item-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 5px 12px;
  font-size: 12px;
  color: var(--recovery-muted);
}
.mw-recovery-item-meta > span:first-child {
  font-weight: 600;
  color: #4d6f5a;
}
.mw-recovery-item h3 {
  font-size: 16px;
  line-height: 1.45;
  margin: 4px 0;
  overflow-wrap: anywhere;
}
.mw-recovery-item-heading > .mw-recovery-chip {
  margin-left: auto;
}
.mw-recovery-muted {
  font-size: 12px;
  color: var(--recovery-muted);
  line-height: 1.55;
  margin: 4px 0;
  overflow-wrap: anywhere;
}
.mw-recovery-chip {
  display: inline-flex;
  align-items: center;
  width: max-content;
  max-width: 100%;
  font-size: 11px;
  line-height: 1.5;
  border: 1px solid #e1e6e2;
  border-radius: 20px;
  padding: 3px 8px;
  background: #f5f7f5;
  color: #5f6d63;
  white-space: normal;
  overflow-wrap: anywhere;
}
.mw-recovery-chip--pending {
  color: #895511;
  background: #fff4e3;
  border-color: #f1dec0;
}
.mw-recovery-chip--recovered,
.mw-recovery-chip--passed {
  color: #28613e;
  background: #edf7ee;
  border-color: #d0e7d6;
}
.mw-recovery-chip--requires_review {
  color: #796000;
  background: #fff9df;
  border-color: #e8dda7;
}
.mw-recovery-original {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr);
  gap: 12px;
  margin: 14px 0;
  padding: 12px 14px;
  background: #f8faf8;
  border-radius: 8px;
}
.mw-recovery-original > div {
  display: grid;
  align-content: start;
  gap: 3px;
  min-width: 0;
}
.mw-recovery-original span {
  color: var(--recovery-muted);
  font-size: 11px;
}
.mw-recovery-original strong {
  font-size: 14px;
  font-variant-numeric: tabular-nums;
  overflow-wrap: anywhere;
}
.mw-recovery-original small {
  font-size: 12px;
  color: var(--recovery-muted);
  line-height: 1.5;
}
.mw-recovery-item-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.mw-recovery-item-counts,
.mw-recovery-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}
.mw-recovery-item-counts {
  font-size: 12px;
  color: var(--recovery-muted);
}
.mw-recovery-actions .ant-btn {
  min-height: 36px;
}
.mw-recovery-warning {
  font-size: 12px;
  line-height: 1.6;
  color: #805b0d;
  overflow-wrap: anywhere;
}
.mw-recovery-details {
  border-top: 1px solid #edf0ed;
  margin-top: 14px;
  padding-top: 10px;
}
.mw-recovery-details > summary {
  font-size: 12px;
  font-weight: 600;
  color: #436d51;
  cursor: pointer;
  width: max-content;
  max-width: 100%;
  padding: 4px 0;
}
.mw-recovery-history {
  margin-top: 12px;
}
.mw-recovery-history h4 {
  font-size: 13px;
  margin: 16px 0 8px;
}
.mw-recovery-plan {
  padding: 12px;
  border: 1px solid #e5eae6;
  border-radius: 8px;
  margin-top: 8px;
}
.mw-recovery-plan-heading {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 6px 10px;
  font-size: 13px;
}
.mw-recovery-plan-heading > strong {
  min-width: 0;
  overflow-wrap: anywhere;
}
.mw-recovery-plan-heading time {
  font-size: 12px;
  color: var(--recovery-muted);
}
.mw-recovery-notes {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  font-size: 13px;
  line-height: 1.65;
  margin: 8px 0 0;
}
.mw-recovery-timeline {
  list-style: none;
  padding: 0 0 0 16px;
  border-left: 2px solid #dce6de;
  margin: 10px 0 0 5px;
}
.mw-recovery-timeline > li {
  position: relative;
  margin: 0;
  padding: 0 0 18px 0;
}
.mw-recovery-timeline > li:before {
  content: "";
  position: absolute;
  left: -21px;
  top: 6px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #90a297;
  border: 2px solid #fff;
}
.mw-recovery-timeline > li:last-child {
  padding-bottom: 0;
}
.mw-recovery-modal.ant-modal {
  top: 16px;
  padding-bottom: 0;
}
.mw-recovery-modal .ant-modal-content {
  display: flex;
  flex-direction: column;
  max-height: calc(100dvh - 32px);
}
.mw-recovery-modal .ant-modal-header,
.mw-recovery-modal .ant-modal-footer {
  flex: 0 0 auto;
}
.mw-recovery-modal .ant-modal-body {
  min-height: 0;
  overflow-y: auto;
  overflow-x: hidden;
}
.mw-recovery-form {
  display: grid;
  gap: 16px;
  min-width: 0;
}
.mw-recovery-form label small {
  font-weight: 400;
  color: #65726a;
  font-size: 12px;
}
.mw-recovery-form-help {
  margin: 0;
  font-size: 12px;
  line-height: 1.6;
  color: #637168;
}
.mw-recovery-targets {
  padding: 12px 14px;
  border-radius: 10px;
  background: #f3f8f4;
  border: 1px solid #dce7de;
  min-width: 0;
}
.mw-recovery-targets > strong {
  font-size: 13px;
}
.mw-recovery-targets ul {
  margin: 8px 0 0;
  padding-left: 16px;
}
.mw-recovery-targets li {
  font-size: 12px;
  line-height: 1.6;
  padding: 4px 0;
  overflow-wrap: anywhere;
}
.mw-recovery-targets li > strong {
  display: block;
  font-size: 12px;
}
.mw-recovery-modal-actions {
  display: flex;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 8px;
}
.mw-recovery-modal-actions .ant-btn {
  margin: 0 !important;
  min-height: 38px;
}
@media (max-width:767px) {
  .mw-recovery-header {
    display: block;
  }
  .mw-recovery-header h2 {
    font-size: 19px;
  }
  .mw-recovery-header p {
    font-size: 13px;
  }
  .mw-recovery-year {
    display: inline-block;
    margin-top: 10px;
  }
  .mw-recovery-filters {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .mw-recovery-filters > label:first-child {
    grid-column: 1/-1;
  }
  .mw-recovery-summary {
    gap: 7px;
  }
  .mw-recovery-summary button {
    padding: 12px 9px;
    gap: 5px;
  }
  .mw-recovery-summary span {
    font-size: 11px;
  }
  .mw-recovery-summary strong {
    font-size: 26px;
  }
  .mw-recovery-summary small {
    font-size: 10px;
  }
  .mw-recovery-item {
    padding: 14px;
  }
  .mw-recovery-item-title {
    flex-basis: 180px;
  }
  .mw-recovery-original {
    grid-template-columns: 1fr;
    padding: 11px;
  }
  .mw-recovery-actions {
    width: 100%;
  }
  .mw-recovery-actions .ant-btn {
    flex: 1;
    min-width: 120px;
    min-height: 42px;
    white-space: normal;
    height: auto;
  }
  .mw-recovery-history-filter {
    width: 100%;
    grid-template-columns: 70px minmax(0, 1fr);
  }
  .mw-recovery-selection > div {
    width: 100%;
  }
  .mw-recovery-selection .ant-btn {
    flex: 1;
    white-space: normal;
    min-height: 42px;
    height: auto;
  }
  .mw-recovery-modal .ant-modal-header {
    padding-right: 36px;
  }
  .mw-recovery-modal-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .mw-recovery-modal-actions .ant-btn-primary {
    grid-column: 1/-1;
    min-height: 44px;
  }
  .mw-recovery-modal-actions .ant-btn {
    min-height: 42px;
    white-space: normal;
    height: auto;
  }
  .mw-recovery-form select,
  .mw-recovery-form input,
  .mw-recovery-form textarea,
  .mw-recovery select {
    font-size: 16px;
  }
}
.mw-recovery-pagination {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 12px;
  color: #65726a;
}
.mw-recovery-work-title {
  font-size: 12px;
  color: #526b5b;
  margin: 2px 0 4px;
  overflow-wrap: anywhere;
}
.mw-recovery-knowledge {
  margin: 0 0 14px;
  border: 1px solid #e1e8e3;
  background: #fbfcfb;
  border-radius: 9px;
  padding: 10px 12px;
}
.mw-recovery-knowledge > summary {
  font-size: 13px;
  font-weight: 600;
  color: #426b50;
  cursor: pointer;
  min-height: 24px;
}
.mw-recovery-knowledge ul {
  list-style: none;
  margin: 10px 0 0;
  padding: 0;
  display: grid;
  gap: 8px;
}
.mw-recovery-knowledge li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 10px;
  background: #fff;
  border-radius: 7px;
  min-width: 0;
}
.mw-recovery-knowledge li > div {
  min-width: 0;
}
.mw-recovery-knowledge li strong {
  font-size: 13px;
  overflow-wrap: anywhere;
}
.mw-recovery-knowledge li p {
  font-size: 12px;
  margin: 5px 0 0;
  color: #65726a;
  overflow-wrap: anywhere;
}
.mw-recovery-knowledge-code {
  font-size: 11px;
  color: #506f59;
  background: #edf4ef;
  border-radius: 4px;
  padding: 3px 5px;
  flex-shrink: 0;
  max-width: 80px;
  overflow-wrap: anywhere;
}
.mw-recovery-knowledge-status {
  display: block;
  font-size: 11px;
  margin-top: 5px;
  color: #50715c;
}
.mw-recovery-outcome {
  display: grid;
  gap: 14px;
}
.mw-recovery-outcome fieldset {
  margin: 0;
  padding: 0;
  border: 0;
  min-width: 0;
}
.mw-recovery-outcome legend {
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 8px;
}
.mw-recovery-outcome-options {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}
.mw-recovery-form .mw-recovery-outcome-choice {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  padding: 12px;
  background: #f8faf8;
  border: 1px solid #dce5df;
  border-radius: 10px;
  cursor: pointer;
}
.mw-recovery-form .mw-recovery-outcome-choice.is-selected {
  border-color: #57846a;
  background: #eff7f1;
}
.mw-recovery-form .mw-recovery-outcome-choice input,
.mw-recovery-form .mw-recovery-check input {
  width: 18px;
  height: 18px;
  min-height: 18px;
  margin: 2px 0 0;
  padding: 0;
  accent-color: #3f7559;
  flex-shrink: 0;
}
.mw-recovery-outcome-choice span {
  display: grid;
  gap: 5px;
  min-width: 0;
}
.mw-recovery-outcome-choice small {
  font-size: 11px;
  font-weight: 400;
  color: #65726a;
  line-height: 1.5;
}
.mw-recovery-form .mw-recovery-check {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  font-weight: 500;
  line-height: 1.5;
}
.mw-recovery-form input[readonly] {
  background: #f4f7f4;
  color: #42634e;
  font-weight: 600;
}
@media (max-width:460px) {
  .mw-recovery-outcome-options {
    grid-template-columns: 1fr;
  }
  .mw-recovery-knowledge li {
    gap: 7px;
    padding: 9px;
  }
}
.mw-recovery-caption {
  display: grid;
  gap: 3px;
  margin-top: 7px;
  max-width: 100%;
  font-size: 11px;
  font-weight: 400;
  line-height: 1.5;
  color: #607568;
  overflow-wrap: anywhere;
}
.mw-recovery-caption strong {
  font-size: 11px;
  font-weight: 600;
  color: #426d51;
}
.mw-recovery-notebook-cell {
  display: grid;
  justify-items: center;
  gap: 4px;
  max-width: 100%;
  min-width: 0;
}
.mw-recovery-cell-original-label {
  font-size: 10px;
  color: #6b756e;
  line-height: 1.4;
}
.mw-recovery-cell-effective {
  font-size: 11px;
  line-height: 1.5;
  color: #356b49;
  white-space: normal;
  overflow-wrap: anywhere;
}
.mw-recovery-notebook-cell .mw-recovery-caption {
  margin-top: 2px;
  font-size: 10px;
  line-height: 1.4;
}
.mw-recovery-notebook-cell .mw-recovery-caption strong {
  font-size: 10px;
}
.mw-recovery-select-all {
  display: grid;
  gap: 5px;
  border: 1px solid #dce5df;
  background: #f7faf7;
  border-radius: 9px;
  padding: 11px 13px;
}
.mw-recovery .mw-recovery-select-all .mw-recovery-check {
  display: flex;
  align-items: center;
  gap: 9px;
  line-height: 1.5;
}
.mw-recovery-select-all input {
  width: 18px;
  height: 18px;
  accent-color: #3f7559;
}
.mw-recovery-select-all small {
  font-size: 11px;
  color: #65726a;
  line-height: 1.5;
}
.mw-recovery-targets ul {
  max-height: 240px;
  overflow-y: auto;
  padding-right: 6px;
}
.mw-recovery-teacher-grade {
  display: grid;
  justify-items: start;
  gap: 6px;
  min-width: 0;
  max-width: 100%;
  margin: 7px 0;
}
.mw-recovery-teacher-grade .ant-btn {
  white-space: normal;
  height: auto;
  min-height: 30px;
  max-width: 100%;
}
.mw-recovery-grade-plans {
  margin: 8px 0;
  padding-left: 16px;
  font-size: 12px;
  line-height: 1.7;
  overflow-wrap: anywhere;
}
.mw-recovery-cell-effective--pending {
  color: #875f29;
}
