/*$box-shadow: (*/
/**/ /*"sm": 0 0 0.375rem 0 rgba(46, 38, 61, 0.18), //*/
/**/ /*"md": 0 0 0.625rem 0 rgba(46, 38, 61, 0.2), //*/
/**/ /*"lg": 0 0 1rem 0 rgba(46, 38, 61, 0.22) //
);*/
/*
1 colore bottone
2 bordo/hover
3 testo
*/
.attachmentsViewer {
  container-type: inline-size;
  container-name: attachments-list;
  display: flex;
  flex-direction: column;
  border-radius: 0.5rem;
  border: 1px solid var(--bg-dark);
}
.attachmentsViewer:has(.attachmentsViewer__empty) {
  border: 0;
}
.attachmentsViewer .attachment {
  position: relative;
  display: grid;
  grid-template-columns: min-content 1fr min-content;
  align-items: center;
  transition: all 0.2s;
}
.attachmentsViewer .attachment__icon {
  display: flex;
  aspect-ratio: 1;
  height: 100%;
  align-items: center;
  justify-content: center;
  font-size: x-large;
  border-right: 1px solid var(--bg-dark);
  color: inherit;
  text-decoration: none;
  transition: all 0.5s;
}
.attachmentsViewer .attachment__icon i {
  transition: inherit;
}
.attachmentsViewer .attachment__icon:hover {
  color: var(--primary);
  cursor: pointer;
}
.attachmentsViewer .attachment__icon:hover i {
  transform: scale(1.1);
  --fa: "\f56d";
}
.attachmentsViewer .attachment__bio {
  padding: 0.5rem;
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.attachmentsViewer .attachment__bio__name {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  display: block;
}
.attachmentsViewer .attachment__bio__size {
  font-size: small;
  color: var(--fg-light);
}
.attachmentsViewer .attachment__commands {
  height: 100%;
  display: flex;
  gap: 0.5rem;
  align-items: center;
  padding: 0.5rem;
}
.attachmentsViewer .attachment__delete-x {
  position: absolute;
  right: -11px;
  display: none;
  font-size: medium;
  background: var(--fg-light);
  color: var(--bg);
  border-radius: 50%;
  text-decoration: none;
  cursor: pointer;
  transition: color 0.2s;
  justify-content: center;
  align-items: center;
  aspect-ratio: 1;
  padding: 2px;
  transition: all 0.2s;
}
.attachmentsViewer .attachment__delete-x:hover {
  background: var(--error);
}
.attachmentsViewer .attachment + .attachment {
  border-top: 1px solid var(--bg-dark);
}
@container attachments-list (max-width: 600px) {
  .attachmentsViewer .attachment {
    grid-template-columns: min-content 1fr;
  }
  .attachmentsViewer .attachment__commands {
    display: none;
  }
  .attachmentsViewer .attachment__delete-x {
    display: flex;
  }
  .attachmentsViewer .attachment__bio {
    padding-right: 1.25rem;
  }
}
@container attachments-list (max-width: 200px) {
  .attachmentsViewer .attachment {
    grid-template-columns: min-content;
  }
  .attachmentsViewer .attachment__icon {
    border-right: 0;
  }
  .attachmentsViewer .attachment__bio {
    display: none;
  }
  .attachmentsViewer .attachment__commands {
    display: none;
  }
  .attachmentsViewer .attachment__delete-x {
    display: flex;
    top: 2px;
    right: 2px;
  }
}

.form[data-form-mode=View] .attachment__commands .btn[action=Btn_Delete] {
  display: none;
}

/*# sourceMappingURL=attachmentsViewer.css.map */
