// This file is part of Indico.
// Copyright (C) 2002 - 2026 CERN
//
// Indico is free software; you can redistribute it and/or
// modify it under the terms of the MIT License; see the
// LICENSE file for more details.

@use 'base/palette' as *;

.dropzone-area {
  :global(.ui.segment) {
    border: 2px dashed #007cac !important;
  }

  .file-card {
    .action {
      position: absolute;
      top: 3px;
      right: 2px;
      cursor: pointer;
    }

    :global(.content) :global(.header) {
      text-overflow: ellipsis;
      overflow: hidden;
      white-space: nowrap;

      .filename {
        text-overflow: ellipsis;
        overflow: hidden;
        max-width: 350px;
      }
    }

    :global(.ui.progress) {
      margin: 0;
    }
  }

  .file-selection-btn {
    margin-top: 10px;
    max-width: none !important;
  }
}

:global(.field.error) .dropzone-area :global(.ui.segment) {
  border-color: $red !important;
}
