.fu-panel {
  display: grid;
  gap: 18px;
  min-width: 0;
}
.fu-panel > .page-intro {
  margin-bottom: 0;
}
.fu-plan-summary {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
}
.fu-plan-title {
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 20px 22px;
  flex-wrap: wrap;
}
.fu-plan-title h3 {
  font-size: 1rem;
  font-weight: 600;
}
.fu-plan-icon {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  background: var(--blue-soft);
  border-radius: 11px;
  color: var(--blue);
}
.fu-plan-icon > .icon {
  width: 23px;
  height: 23px;
}
.fu-plan-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 6px;
  font-size: 0.75rem;
  color: var(--muted);
}
.fu-plan-outcome {
  padding: 0 22px 19px;
  font-size: 0.875rem;
  line-height: 1.8;
  overflow-wrap: anywhere;
}
.fu-plan-outcome strong {
  font-weight: 550;
}
.fu-plan-outcome p {
  color: var(--muted);
  white-space: pre-wrap;
  margin-top: 5px;
}
.fu-statistics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 1px solid var(--line);
  background: #fcfdff;
}
.fu-statistics > div {
  display: flex;
  align-items: baseline;
  gap: 10px;
  padding: 15px 22px;
}
.fu-statistics > div + div {
  border-left: 1px solid var(--line);
}
.fu-statistics strong {
  font-size: 1.5rem;
  font-weight: 550;
  color: #3f5d84;
}
.fu-statistics span {
  font-size: 0.8125rem;
  color: var(--muted);
}
.fu-statistics .overdue strong {
  color: var(--red);
}
.fu-tasks {
  overflow: hidden;
}
.fu-task-toolbar {
  padding: 13px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border-bottom: 1px solid var(--line);
}
.fu-filters {
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
}
.fu-filters button {
  padding: 7px 12px;
  border-radius: 6px;
  font-size: 0.8125rem;
  color: #7c8da4;
}
.fu-filters button:hover {
  background: #f5f8fe;
}
.fu-filters button.active {
  color: var(--blue);
  background: var(--blue-soft);
}
.fu-task-table {
  min-width: 850px;
}
.fu-task-table th:first-child {
  width: 25%;
}
.fu-task-table td {
  padding-top: 16px;
  padding-bottom: 16px;
}
.fu-task-name {
  display: block;
  text-align: left;
  padding: 0;
  max-width: 270px;
  overflow-wrap: anywhere;
  font-size: 0.875rem;
  font-weight: 550;
  color: #375984;
  line-height: 1.65;
}
.fu-task-name:hover {
  color: var(--blue);
}
.fu-task-kind {
  display: block;
  color: #8a99ae;
  font-size: 0.75rem;
  margin-top: 5px;
  max-width: 280px;
  overflow-wrap: anywhere;
}
.fu-visit-link {
  display: block;
  padding: 0;
  text-align: left;
  font-size: 0.75rem;
  line-height: 1.8;
  color: #7186a4;
  white-space: nowrap;
}
.fu-visit-link:hover,
.fu-return-link:hover {
  color: var(--blue);
  text-decoration: underline;
}
.fu-return-link {
  display: block;
  padding: 0;
  text-align: left;
  font-size: 0.75rem;
  color: var(--blue);
  margin-top: 5px;
}
.fu-row-actions {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  min-width: 150px;
  max-width: 245px;
}
.data-table .fu-overdue {
  color: var(--red);
}
.fu-overdue-label {
  display: block;
  font-size: 0.6875rem;
  margin-top: 3px;
}
.fu-form .fu-transfer-fields[hidden],
.fu-form .fu-reschedule-fields[hidden],
.fu-form .fu-feedback-destination[hidden] {
  display: none;
}
.fu-reschedule-fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}
.fu-form-reference {
  display: grid;
  grid-template-columns: 85px minmax(0, 1fr);
  gap: 7px 13px;
  padding: 14px 16px;
  border: 1px solid #e1e9f4;
  background: #f7faff;
  border-radius: 8px;
  font-size: 0.8125rem;
  overflow-wrap: anywhere;
  white-space: pre-wrap;
}
.fu-form-reference > span {
  color: var(--muted);
}
.fu-form-reference strong {
  font-weight: 500;
}
.fu-dialog-task {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 21px;
}
.fu-dialog-task > strong {
  font-size: 0.9375rem;
  overflow-wrap: anywhere;
}
.fu-dialog-task > span:last-child:not(.badge) {
  color: var(--muted);
  font-size: 0.8125rem;
  flex-basis: 100%;
}
.fu-detail-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 17px 20px;
  padding: 17px 19px;
  border: 1px solid var(--line);
  border-radius: 9px;
  margin: 0;
  background: #fbfcfe;
  font-size: 0.875rem;
}
.fu-detail-grid > div {
  min-width: 0;
}
.fu-detail-grid dt {
  font-size: 0.75rem;
  color: var(--muted);
  margin-bottom: 6px;
}
.fu-detail-grid dd {
  margin: 0;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.fu-history-title {
  font-size: 0.875rem;
  font-weight: 550;
  margin: 24px 0 15px;
}
.fu-event-list {
  list-style: none;
  margin: 0;
  padding: 0 0 0 8px;
}
.fu-event-list > li {
  position: relative;
  padding: 0 0 23px 24px;
  border-left: 1px solid #dce5f1;
}
.fu-event-list > li:last-child {
  padding-bottom: 0;
  border-color: transparent;
}
.fu-event-list > li:before {
  content: "";
  position: absolute;
  left: -5px;
  top: 5px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #b7cbea;
  box-shadow: 0 0 0 3px #f4f8ff;
}
.fu-event-list > li > div {
  display: flex;
  align-items: baseline;
  gap: 10px;
  flex-wrap: wrap;
  font-size: 0.75rem;
  color: var(--muted);
}
.fu-event-list strong {
  font-size: 0.8125rem;
  color: #526f96;
  font-weight: 550;
}
.fu-event-list p {
  margin-top: 6px;
  font-size: 0.8125rem;
  line-height: 1.8;
  color: #718096;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.fu-case-blockers {
  background: #fff8ef;
  border: 1px solid #f0dfc5;
  border-radius: 8px;
  padding: 14px 17px;
  margin-bottom: 20px;
  font-size: 0.8125rem;
  color: #996b31;
}
.fu-case-blockers strong {
  font-weight: 550;
}
.fu-case-blockers ul {
  padding-left: 19px;
  margin: 9px 0 0;
  line-height: 1.9;
}
@media (max-width: 1000px) {
  .fu-plan-title {
    padding: 18px;
  }
  .fu-statistics > div {
    padding: 13px 18px;
    gap: 7px;
  }
  .fu-plan-title .actions {
    gap: 6px;
  }
}
@media (max-width: 760px) {
  .fu-panel {
    gap: 15px;
  }
  .fu-plan-title {
    padding: 16px;
    gap: 10px;
  }
  .fu-plan-title > .actions {
    flex-basis: 100%;
    margin-left: 0;
    margin-top: 4px;
    justify-content: flex-end;
  }
  .fu-plan-icon {
    width: 37px;
    height: 37px;
  }
  .fu-plan-meta {
    gap: 7px;
  }
  .fu-statistics > div {
    padding: 11px 9px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0;
  }
  .fu-statistics strong {
    font-size: 1.25rem;
  }
  .fu-statistics span {
    font-size: 0.75rem;
  }
  .fu-task-toolbar {
    padding: 10px 12px;
    gap: 8px;
  }
  .fu-filters {
    gap: 2px;
  }
  .fu-filters button {
    padding: 7px 8px;
    font-size: 0.75rem;
  }
  .fu-task-toolbar > .small {
    font-size: 0.75rem;
    white-space: nowrap;
  }
  .fu-plan-outcome {
    padding: 0 16px 16px;
  }
  .fu-form {
    grid-template-columns: minmax(0, 1fr) !important;
  }
  .fu-reschedule-fields {
    grid-template-columns: minmax(0, 1fr);
  }
  .fu-detail-grid {
    gap: 14px;
    padding: 14px;
  }
  .fu-form-reference {
    grid-template-columns: 75px minmax(0, 1fr);
    padding: 12px;
  }
  .fu-event-list > li {
    padding-left: 18px;
  }
  .fu-event-list > li > div {
    gap: 6px;
  }
}
