dialog.attach_pdf_modal .modal-body textarea {
  width: 515px;
}

.modal .modal_message  {
  background: #dff0d8;
  padding: 10px 20px;
  border-radius: 5px;
  margin-bottom: 15px;
}

.modal .pdf-modal-message.failed p {
  margin: 0;
}

.modal .pdf-modal-message.failed ul {
  font-size: 16px;
  line-height: 22px;
  margin: 4px 0 0 8px;
  padding: 0;
  list-style: disc inside;
}

.modal .pdf-modal-message.failed li {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.modal .pdf-modal-message.failed,
.simulated_modal .pdf-modal-message.failed {
  background: #f6c3c3;
  color: red;
  padding: 10px 20px;
  border-radius: 5px;
  margin-bottom: 15px;
}

dialog.attach_pdf_modal input[type='file'] {
  display: block;
  height: 130px;
  opacity: 0;
  position: absolute;
  right: 0; left: 0;
  z-index: 999;
  width: 100%;
}

.drag-and-drop-file {
  box-sizing: border-box;
  border: 3px dashed #EEE;
  border-radius: 6px;
  text-align: center;
  padding: 0px;
  margin: 0 auto 15px auto;
  min-height: 155px;
}

.drag-and-drop-file h3 {
  margin: 20px 0 10px 0;
}

.drag-and-drop-file h3.upload-modal li {
  font-size: 16px;
}

/* !important to beat h3.upload-modal's color on the claim file page */
.drag-and-drop-file .file-error {
  color: red !important;
  font-weight: bold;
}

.drag-and-drop-file .filenames-summary {
  position: relative;
  z-index: 1000;
  width: fit-content;
  margin: 10px auto 6px;
  padding: 1px 10px;
  border-radius: 999px;
  background: #f5f5f5;
  color: #777;
  font-size: 12px;
}

.drag-and-drop-file .filenames-summary:empty {
  display: none;
}

.drag-and-drop-file ul.filenames {
  position: relative;
  z-index: 1000;
  max-height: 150px;
  overflow-y: auto;
  margin: 0 0 15px;
  padding: 0 10px;
  font-size: 16px;
  line-height: 25px;
}

.drag-and-drop-file ul.filenames::-webkit-scrollbar {
  width: 8px;
}

.drag-and-drop-file ul.filenames::-webkit-scrollbar-track {
  background-color: transparent;
}

.drag-and-drop-file ul.filenames::-webkit-scrollbar-thumb {
  border-radius: 4px;
  background-color: #cccccc;
}

.drag-and-drop-file li {
  list-style: none;
}

.drag-and-drop-file li.file {
  border-radius: 3px;
  display: flex;
  justify-content: center;
  align-items: baseline;
  gap: 8px;
}

.drag-and-drop-file li.file .file-name {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.drag-and-drop-file li.file .file-size {
  flex-shrink: 0;
  white-space: nowrap;
  font-size: 13px;
  opacity: 0.7;
}

.drag-and-drop-file li.file .file-message:empty {
  display: none;
}

.drag-and-drop-file li.file .remove {
  padding: 0 4px;
  border: 0;
  background: none;
  color: #999;
  font-size: 18px;
  line-height: 1;
}

.drag-and-drop-file li.file .remove:hover,
.drag-and-drop-file li.file .remove:focus-visible {
  color: red;
}

.drag-and-drop-file ul.uploading .remove {
  visibility: hidden;
}

.drag-and-drop-file li.file:hover {
  background: #f5f5f5;
}

.drag-and-drop-file .skipped {
  color: #a00;
}

.drag-and-drop-file li.skipped .file-name {
  text-decoration: line-through;
}

.drag-and-drop-file li.pending {
  color: #999;
}

@property --file-progress {
  syntax: "<percentage>";
  inherits: true;
  initial-value: 0%;
}

.drag-and-drop-file li.uploading {
  transition: --file-progress .2s;
}

.drag-and-drop-file li.uploading .file-name {
  border-radius: 3px;
  background: linear-gradient(to right, #dff0d8 var(--file-progress), transparent var(--file-progress));
}

.drag-and-drop-file li.file::before {
  content: "\2713";
  color: transparent;
}

.drag-and-drop-file li.done::before {
  color: #63c6ae;
}

h3.upload-modal {
  margin: 0 0 10px 0 !important;
  color: #333 !important;
  font-size: 20px !important;
  font-weight: bold !important;
}

ul.ticket-document-list {
  font-size: 15px;
}

ul.ticket-document-list button.document-action {
  margin: 0 0 0 -4px;
}

ul.ticket-document-list button.document-action img {
  vertical-align: middle;
}

.attach_pdf_modal ul.document-list li > a {
  display: inline-block;
  max-width: 400px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  vertical-align: middle;
}

