@keyframes diagnoses-highlight-animation {
  0% { background-color: var(--color-bg-warning-secondary); }
  100% { background-color: var(--color-bg-secondary); }
}

.diagnoses {
  .diagnoses-wrapper {
    display: flex;
    flex-direction: column;
    gap: 32px;
  }

  .list {
    .item {
      .item-main {
        .item-header {
          .item-header-left {
            .pill {
              &.identification-certainty {
                color: #28A76E;
                background-color: #28A76E1A;
              }
            }
          }

          .item-header-right {
            select {
              height: 24px;
              border-radius: 999px;
              padding: 0 32px 0 12px;
              font-size: 12px;
              font-weight: var(--weight-semi-bold);
              background: white url('data:image/svg+xml;utf8,<svg width="12" height="8" viewBox="0 0 12 8" fill="none" xmlns="http://www.w3.org/2000/svg"><g clip-path="url(%23clip0_246_5)"><path d="M6.52253 7.70265C6.23347 7.99171 5.76403 7.99171 5.47497 7.70265L1.03497 3.26265C0.745906 2.97359 0.745906 2.50415 1.03497 2.21509C1.32403 1.92603 1.79347 1.92603 2.08253 2.21509L5.99991 6.13246L9.91728 2.2174C10.2063 1.92834 10.6758 1.92834 10.9648 2.2174C11.2539 2.50646 11.2539 2.9759 10.9648 3.26496L6.52484 7.70496L6.52253 7.70265Z" fill="%23047A8A"/></g><defs><clipPath id="clip0_246_5"><rect width="7.4" height="11.84" fill="white" transform="matrix(0 1 -1 0 11.9199 0.52002)"/></clipPath></defs></svg>') no-repeat;
              background-position-x: calc(100% - 12px);
              background-position-y: 7px;
            }
          }
        }

        .references {
          display: flex;
          flex-direction: column;
          gap: 8px;

          .reference {
            display: flex;
            flex-direction: column;
            gap: 4px;
            border: 0 none;
            border-left: 1px solid #066B7A;
            padding-left: 12px;
            font-weight: 400;
            font-size: 12px;

            a {
              font-style: italic;
              color: #5193D5;
            }
          }
        }

        .categorization-diagnosis {
          background-color: var(--color-bg-secondary);
          display: flex;
          flex-direction: column;
          align-items: normal;
          gap: 24px;
          padding: 24px;

          .category-row {
            display: flex;
            flex-direction: row;
            align-items: normal;
            gap: 32px;

            .category {
              flex: 1;
              display: flex;
              flex-direction: column;
              gap: 2px;

              .label {
                font-size: 12px;
                font-weight: var(--weight-regular);
                opacity: 0.7;
              }

              .value {
                font-size: 14px;
                font-weight: var(--weight-medium);
              }
            }
          }
        }
      }

      .item-right {
        .item-actions {
          .flat-button {
            img.down {
              transform: rotate(180deg);
            }
          }
        }

        .item-status {
          color: #28A76E;
        }
      }
    }
  }

  .documents-link {
    color: #5193D5;
    font-weight: 700;
  }
}

form.diagnoses-feedback {
  gap: 24px;

  h3 {
    margin: 0;
    font-size: 20px;
    font-weight: var(--weight-semi-bold);
    color: #1D1E1E;
  }

  h4 {
    margin: 0;
    margin-bottom: 8px;
    font-size: 18px;
    font-weight: var(--weight-medium);
    color: #141515;

    span {
      margin-left: 8px;
    }
  }

  .box.old {
    opacity: 0.6;
  }

  .categorization {
    display: flex;
    flex-direction: row;
    gap: 0;
    border: 1px solid #E0E1E1;
    border-radius: 4px;

    .category {
      flex: 1;
      display: flex;
      flex-direction: column;
      gap: 2px;
      padding: 16px;

      &.old-value {
        background-color: #F443360D;
      }

      &.new-value {
        background-color: #2E7D320D;
      }

      .label {
        font-size: 12px;
        font-weight: var(--weight-regular);
        color: #919797;
      }

      .value {
        font-size: 14px;
        font-weight: var(--weight-medium);
        color: #1D1E1E;

        i {
          margin-left: 4px;
        }
      }
    }
  }

  .green-text {
    color: #2E7D32;
  }

  .red-text {
    color: #F44336;
  }

  .diff-line-added {
    .categorization {
      background-color: #2E7D320D
    }
  }

  .diff-line-deleted {
    .categorization {
      background-color: #F443360D
    }
  }

  hr {
    width: 100%;
    border: 0;
    border-top: 1px solid #D9D9D9;
    margin: 0;
  }

  .section {
    .box {
      textarea {
        min-height: 240px;

        &::placeholder {
          color: rgba(0, 0, 0, 0.3);
        }
      }
    }
  }
}
