/* Basstil för filter och tabell */
.docuvault-block {
  color: inherit;
  font: inherit;
}
.docuvault-filter {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 36px;
}
.docuvault-filter .dv-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 240px;
}
.docuvault-filter .dv-field-search {
  flex: 1 1 280px;
}
.docuvault-filter .dv-select {
  height: 38px;
  padding: 6px 10px;
  border: 1px solid #b7c9c9;
  border-radius: 6px;
  background: #fff;
  color: #113a3a;
}
.docuvault-filter .dv-search-input::-webkit-search-cancel-button {
  cursor: pointer;
}
.docuvault-filter .dv-select-muted {
  opacity: 0.6;
}
.docuvault-table-container {
  width: 100%;
}
.docuvault-table-container > .dv-section--framed:first-child {
  margin-top: 24px;
}
.dv-section {
  margin-bottom: 40px;
}
.dv-section--framed {
  padding: 14px 14px 18px;
  border: 1px solid #d7dedd;
  border-radius: 14px;
  background: transparent;
}
.dv-feature {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 32px;
  margin-bottom: 8px;
}
.dv-feature-copy {
  flex: 1 1 auto;
  min-width: 0;
}
.docuvault-block h3.dv-feature-title {
  margin: 0 0 4px;
  font-size: 22px;
  font-family: "Asap", sans-serif !important;
  font-weight: 700 !important;
  font-style: normal !important;
  line-height: 1.2;
  color: #248083;
}
.dv-feature-text {
  margin: 0 0 14px;
  color: #3f4b4b;
}
.dv-feature-docs {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin: 4px 0 8px;
}
.dv-feature-doc {
  display: flex;
  align-items: center;
  min-width: 240px;
  padding: 10px 14px;
  border: 1px solid #d6dede;
  border-radius: 10px;
  background: #fff;
  color: #248083;
  text-decoration: none;
  box-shadow: 0 1px 0 rgba(0,0,0,0.03);
}
.dv-feature-doc:hover {
  border-color: #b7c9c9;
}
.dv-feature-doc--disabled {
  opacity: 0.7;
}
.dv-feature-doc-heading {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
}
.dv-feature-doc-icon {
  width: 30px;
  height: 30px;
  flex: 0 0 30px;
  display: inline-block;
  background-position: center;
  background-repeat: no-repeat;
  background-size: contain;
  background-image: url("../img/Icon_pdf.webp");
}
.dv-feature-doc-icon--bruksanvisning {
  background-image: url("../img/icon_bruksanvisning_pdf.png");
}
.dv-feature-doc-icon--produktblad {
  background-image: url("../img/icon_produktblad_pdf.png");
}
.dv-feature-doc-title {
  font-weight: 700;
  line-height: 1.2;
}
.dv-feature-doc-copy {
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.dv-feature-doc-subtitle {
  color: #4c6868;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.2;
}
.dv-feature-media {
  flex: 0 0 320px;
  text-align: right;
}
.dv-feature-image {
  max-width: 100%;
  height: auto;
  display: inline-block;
}
.dv-table {
  width: 100%;
  max-width: 100%;
  border-collapse: collapse;
  font-size: 15px;
  table-layout: fixed;
  line-height: 1.3; /* tätare radavstånd */
  word-break: normal;
  background: #fff;
}
.dv-table--with-product-type col.dv-col-product-name { width: 28%; }
.dv-table--with-product-type col.dv-col-document-type { width: 22%; }
.dv-table--with-product-type col.dv-col-version { width: 10%; }
.dv-table--with-product-type col.dv-col-published { width: 14%; }
.dv-table--with-product-type col.dv-col-product-type { width: 16%; }
.dv-table--with-product-type col.dv-col-file-size { width: 10%; }
.dv-table--without-product-type col.dv-col-product-name { width: 38%; }
.dv-table--without-product-type col.dv-col-document-type { width: 24%; }
.dv-table--without-product-type col.dv-col-version { width: 10%; }
.dv-table--without-product-type col.dv-col-published { width: 18%; }
.dv-table--without-product-type col.dv-col-file-size { width: 10%; }
.dv-section-title {
  margin: 12px 0 12px;
  font-size: 22px;
  font-weight: 700;
  line-height: 1.2;
  color: #248083;
}
.dv-table thead th {
  text-align: left;
  font-weight: 600;
  text-transform: uppercase;
  background: #E5E5E5;
  padding: 10px 8px;
  border-bottom: 2px solid #c8d9d9;
}
.dv-table tbody td {
  vertical-align: top;
  border-bottom: 1px dotted #c8d9d9;
  padding: 6px 8px; /* kompaktare tabell */
  background: #fff !important;
}
.dv-col-document-type,
.dv-col-file-size,
.dv-col-version,
.dv-col-published {
  white-space: nowrap;
}
.dv-col-product-name,
.dv-col-product-type {
  white-space: normal;
  overflow-wrap: anywhere;
}
.docuvault-block .dv-table tbody tr,
.docuvault-block .dv-table tbody tr:nth-child(even),
.docuvault-block .dv-table tbody tr:nth-child(odd) {
  background: #fff !important; /* ta bort zebra-ränder med högre specificitet */
}
.dv-table tbody td:first-child {
  font-weight: 600; /* produktnamn i första kolumnen */
}
.dv-table tbody tr:last-child td {
  border-bottom: 1px solid #c8d9d9;
}
.dv-cell-line + .dv-cell-line {
  margin-top: 3px; /* tätare mellan rader i cell */
}
.dv-empty-value {
  color: #6d8181;
}
.dv-missing-file {
  color: #b42318;
  font-weight: 600;
}
.dv-link {
  color: inherit;
  text-decoration: none;
}
.dv-link:hover {
  text-decoration: underline;
}
.dv-link::before {
  content: "";
  display: inline-block;
  width: 14px;
  height: 14px;
  margin-right: 4px;
  vertical-align: -2px;
  background-repeat: no-repeat;
  background-size: 14px 14px;
  background-image: url("../img/Icon_pdf.webp");
}
.dv-empty {
  padding: 12px;
  background: #fff8e6;
  border: 1px solid #f0d48a;
  border-radius: 6px;
}
.docuvault-block .dv-empty-language,
.docuvault-block .dv-empty-language:visited {
  -webkit-appearance: none;
  appearance: none;
  border: 0 !important;
  padding: 0;
  background: transparent !important;
  background-image: none !important;
  color: #113a3a !important;
  font: inherit !important;
  font-weight: 400 !important;
  line-height: inherit;
  text-decoration: underline !important;
  text-underline-offset: 2px;
  cursor: pointer;
  display: inline;
  box-shadow: none !important;
  border-radius: 0;
  outline: none;
}
.docuvault-block .dv-empty-language:hover,
.docuvault-block .dv-empty-language:focus,
.docuvault-block .dv-empty-language:active {
  background: transparent !important;
  background-image: none !important;
  color: #0066cc !important;
  box-shadow: none !important;
  outline: none;
}
.docuvault-error {
  padding: 12px;
  background: #fde8e8;
  border: 1px solid #f4b4b4;
  border-radius: 6px;
  color: #7a1111;
}

@media (max-width: 900px) {
  .dv-col-file-size {
    display: none;
  }
  .dv-table--with-product-type col.dv-col-product-name { width: 28%; }
  .dv-table--with-product-type col.dv-col-document-type { width: 24%; }
  .dv-table--with-product-type col.dv-col-version { width: 12%; }
  .dv-table--with-product-type col.dv-col-published { width: 16%; }
  .dv-table--with-product-type col.dv-col-product-type { width: 20%; }
  .dv-table--without-product-type col.dv-col-product-name { width: 44%; }
  .dv-table--without-product-type col.dv-col-document-type { width: 28%; }
  .dv-table--without-product-type col.dv-col-version { width: 12%; }
  .dv-table--without-product-type col.dv-col-published { width: 16%; }
  .dv-feature {
    flex-direction: column;
    align-items: flex-start;
  }
  .dv-feature-media {
    flex: 0 0 auto;
    text-align: left;
    max-width: 320px;
  }
}

@media (max-width: 760px) {
  .dv-col-product-type {
    display: none;
  }
  .dv-table col.dv-col-product-name { width: 40%; }
  .dv-table col.dv-col-document-type { width: 30%; }
  .dv-table col.dv-col-version { width: 12%; }
  .dv-table col.dv-col-published { width: 18%; }
}

@media (max-width: 620px) {
  .dv-col-published {
    display: none;
  }
  .dv-table col.dv-col-product-name { width: 58%; }
  .dv-table col.dv-col-document-type { width: 28%; }
  .dv-table col.dv-col-version { width: 14%; }
}

@media (max-width: 520px) {
  .dv-col-version {
    display: none;
  }
  .dv-table col.dv-col-product-name { width: 56%; }
  .dv-table col.dv-col-document-type { width: 44%; }
}

