.documents {
  margin-top: 20px;

  .split-columns {
    align-items: flex-start;
  }

  .documents-list {
    flex: 1 1 560px;
    padding: 10px 20px 20px;
    min-height: 300px;

    h2 {
      text-align: center;
    }
  }

  .documents-table {
    width: 100%;
    margin-right: 0;

    & tr:not(.header) td {
      font-size: 13px;
      padding: 6px 10px;
    }

    & tr:not(.header) td a {
      display: inline;
      width: auto;
      padding: 0;
      color: #4183C4;
    }

    & tr:not(.header) td a:hover {
      color: #000;
    }

    .document-title {
      word-break: break-word;

      .fa-file {
        margin-right: 4px;
        color: var(--color-grey-light);
      }
    }

    .document-uploaded {
      color: #999;
      font-size: 12px;
    }

    .document-actions {
      text-align: right;
    }

    & tr:not(.header) .document-actions a {
      color: var(--color-grey-light);

      &:hover {
        color: var(--color-error);
      }
    }
  }

  .documents-empty {
    text-align: center;
    margin: 60px 0;
  }

  .documents-upload-area {
    flex: 0 1 280px;
    position: sticky;
    top: 20px;
  }

  .document-dropzone {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    /*min-height: 220px;*/
    padding: 20px;
    box-sizing: border-box;
    border: dashed 2px #b8c9d6;
    border-radius: 6px;
    background-color: #f8fbfd;
    color: var(--color-grey-medium);
    font-size: 14px;
    line-height: 1.5em;
    text-align: center;
    cursor: pointer;

    &:hover,
    &:focus-within,
    &.dragging {
      border-color: #4183C4;
      background-color: #eef5fb;
    }

    &.dragging {
      border-style: solid;
    }
  }

  .document-dropzone-icon {
    font-size: 40px;
    color: #9fb5c6;
  }

  .document-dropzone-busy {
    display: none;
  }

  .uploading .document-dropzone {
    cursor: progress;
    opacity: 0.7;

    .document-dropzone-idle {
      display: none;
    }

    .document-dropzone-busy {
      display: inline;
    }
  }

  .document-file-input {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
  }

  .documents-usage {
    text-align: center;
    font-size: 12px;
  }
}

@media (max-width: 767px) {
  .documents {
    .documents-upload-area {
      position: static;
      order: -1;
      flex-basis: 100%;
    }

    .document-dropzone {
      min-height: 120px;
    }

    .document-uploaded {
      display: none;
    }
  }
}
