.link.link_document {
  display: inline-flex;
  align-items: start;
  overflow: hidden;
}
.link.link_document::before {
  content: "";
  display: inline-flex;
  align-items: flex-start;
  width: 36px;
  height: 36px;
  min-width: 36px;
  background-image: url("images/document-default.svg");
  background-repeat: no-repeat;
  background-position: center -4px;
  background-size: contain;
  background-size: 40px;
  margin-right: 12px;
}
.link.link_document[href$=".pdf"]::before {
  background-image: url("images/document-pdf.svg");
}
.link.link_document[href$=".doc"]::before, .link.link_document[href$=".docx"]::before, .link.link_document[href$=".docx?"]::before {
  background-image: url("images/document-doc.svg");
}
.link.link_document[href$=".adoc"]::before {
  background-image: url("images/document-adoc.svg");
}
.link.link_document[href$=".xls"]::before, .link.link_document[href$=".xlsx"]::before {
  background-image: url("images/document-xls.svg");
}
.link.link_document[href$=".jpg"]::before, .link.link_document[href$=".jpeg"]::before, .link.link_document[href$=".png"]::before, .link.link_document[href$=".webp"]::before {
  background-image: url("images/document-img.svg");
}
.link.link_document[href$=".txt"]::before {
  background-image: url("images/document-txt.svg");
}
.link.link_document.link_document_sm::before {
  background-image: url("images/document-default-sm.svg");
  background-position: center -8px;
  background-size: 46px;
}
.link.link_document.link_document_sm[href$=".pdf"]::before {
  background-image: url("images/document-pdf-sm.svg");
  background-position: center -8px;
  background-size: 46px;
}
.link.link_document.link_document_sm[href$=".doc"]::before, .link.link_document.link_document_sm[href$=".docx"]::before {
  background-image: url("images/document-doc-sm.svg");
  background-position: center -8px;
  background-size: 46px;
}
.link.link_document.link_document_sm[href$=".adoc"]::before {
  background-image: url("images/document-adoc-sm.svg");
  background-position: center -8px;
  background-size: 46px;
}
.link.link_document.link_document_sm[href$=".xls"]::before, .link.link_document.link_document_sm[href$=".xlsx"]::before {
  background-image: url("images/document-xls-sm.svg");
  background-position: center -8px;
  background-size: 46px;
}
.link.link_document.link_document_sm[href$=".jpg"]::before, .link.link_document.link_document_sm[href$=".jpeg"]::before, .link.link_document.link_document_sm[href$=".png"]::before, .link.link_document.link_document_sm[href$=".webp"]::before {
  background-image: url("images/document-img-sm.svg");
  background-position: center -8px;
  background-size: 46px;
}
.link.link_document.link_document_sm[href$=".txt"]::before {
  background-image: url("images/document-txt-sm.svg");
  background-position: center -8px;
  background-size: 46px;
}
