/* BACKEND — FILE LISTING */

li.field-entry.rd-attachments {
  margin-top: 2em;
}

li.field-entry.rd-attachments > span.field-label {
  font-weight: bolder;
}

ul.rdattachments {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 1em;
}

ul.rdattachments > li.file-attached {
  display: flex;
  gap: 1.75em;
  align-items: center;
}

ul.rdattachments > li.file-attached > .file-link {
  display: flex;
  gap: 1em;
  align-items: center;
}

ul.rdattachments > li.file-attached > .file-info {
  display: flex;
  gap: 1em;
  align-items: center;
  flex-shrink: 0;
}

ul.rdattachments > li.file-attached > .file-info > .file-size {
  padding: 2px 4px 2px 4px;
  background-color: #f5f5f5;
  border-radius: 8px;
  flex-shrink: 0;
}

ul.rdattachments > li.file-attached > .file-info > a.download-count {
  color: inherit;
  text-decoration: inherit;
  padding: 2px 20px 2px 4px;
  background-image: url('../images/icon-download.svg');
  background-size: 16px 16px;
  background-position: center right 2px;
  background-repeat: no-repeat;
  background-color: #f5f5f5;
  border-radius: 8px;
}

/* FRONTEND */

ul.rdattachments > li.file-attached > .file-link > .file-item.not-found {
  font-style: italic;
}

/*! fileicon.css v0.1.1 | MIT License | github.com/picturepan2/fileicon.css */

.file-icon {
  font-weight: 600;
  display: inline-block;
  width: 31px;
  height: 32px;
  background: #018fef;
  position: relative;
  border-radius: 2px;
  text-align: left;
  vertical-align: middle;
  -webkit-font-smoothing: antialiased;
  flex-shrink: 0;
}

.file-icon::before {
  display: block;
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 0;
  height: 0;
  border-bottom-left-radius: 2px;
  border-width: 5px;
  border-style: solid;
  border-color: #fff #fff rgba(255,255,255,.35) rgba(255,255,255,.35);
}

.file-icon::after {
  display: block;
  content: attr(data-type);
  position: absolute;
  bottom: 0;
  left: 0;
  font-family: 'Courier New', Courier, monospace;
  font-size: 10px;
  color: #fff;
  text-transform: lowercase;
  width: 100%;
  padding: 3px;
  white-space: nowrap;
  overflow: hidden;
}
/* fileicons */

.file-icon-xs {
  width: 12px;
  height: 16px;
  border-radius: 2px;
}

.file-icon-xs::before {
  border-bottom-left-radius: 1px;
  border-width: 3px;
}

.file-icon-xs::after {
  content: "";
  border-bottom: 2px solid rgba(255,255,255,.45);
  width: auto;
  left: 2px;
  right: 2px;
  bottom: 3px;
}

.file-icon-sm {
  width: 18px;
  height: 24px;
  border-radius: 2px;
}

.file-icon-sm::before {
  border-bottom-left-radius: 2px;
  border-width: 4px;
}

.file-icon-sm::after {
  font-size: 7px;
  padding: 2px;
}

.file-icon-lg {
  width: 48px;
  height: 64px;
  border-radius: 3px;
}

.file-icon-lg::before {
  border-bottom-left-radius: 2px;
  border-width: 8px;
}

.file-icon-lg::after {
  font-size: 16px;
  padding: 4px 6px;
}

.file-icon-xl {
  width: 96px;
  height: 128px;
  border-radius: 4px;
}

.file-icon-xl::before {
  border-bottom-left-radius: 4px;
  border-width: 16px;
}

.file-icon-xl::after {
  font-size: 24px;
  padding: 4px 10px;
}
/* fileicon.types */

.file-icon[data-type=zip],
.file-icon[data-type=rar] {
  background: #acacac;
}

.file-icon[data-type^=doc] {
  background: #2980b9;
}

.file-icon[data-type^=xls] {
  background: #16a085;
}

.file-icon[data-type^=ppt] {
  background: #d24726;
}

.file-icon[data-type=pdf] {
  background: #c0392b;
}

.file-icon[data-type=txt] {
  background: #5eb533;
}

.file-icon[data-type=mp3],
.file-icon[data-type=wma],
.file-icon[data-type=m4a],
.file-icon[data-type=flac] {
  background: #8e44ad;
}

.file-icon[data-type=mp4],
.file-icon[data-type=wmv],
.file-icon[data-type=mov],
.file-icon[data-type=avi],
.file-icon[data-type=mkv] {
  background: #7a3ce7;
}

.file-icon[data-type=bmp],
.file-icon[data-type=jpg],
.file-icon[data-type=jpeg],
.file-icon[data-type=gif],
.file-icon[data-type=png] {
  background: #f4b400;
}