/*
=========================================================
PRINT CSS
=========================================================
 * Innehåller styling för utskrift
 *
 * Copyright (C) Limepark AB.
 * https://limepark.se/licensvillkor
=========================================================*/


/*
---------------------------------------------------------
FIXAR/FÖRBÄTTRINGAR
---------------------------------------------------------*/

* {
  font-family: 'open sans', Arial, sans-serif !important;
}

html {
  font-size: 7pt !important;
}

/* Sidmarginal vid utskrift - se rad 23 i base.css */

.pagecontent .sv-portlet {
  margin-bottom: 0.4cm;
}


/* Fixar bug att push/pull inte nollställts i utskrift */
[class*='sv-push'],
[class*='sv-pull'] {
  left: 0 !important;
}

.lp-logo img {
  height: 80px !important;
  margin: 0 0 0.8cm;
  width: auto !important;
}

body .lp-page-wrapper {
  display: block;
}

body .lp-content-wrapper .lp-content,
body .lp-content-wrapper {
  margin: 0;
  max-width: 100%;
  padding-right: 0;
  width: 100%;
}

body .lp-submenu {
  padding: 0;
}

/* Fix av länkar */

.pagecontent a[href^='http']:after,
.lp-search .sv-search-result a[href*='.pdf']:after,
.lp-search .sv-search-result a[href*='.jpg']:after,
.lp-search .sv-search-result a[href*='.jpeg']:after,
.lp-search .sv-search-result a[href*='.png']:after,
.lp-search .sv-search-result a[href*='.txt']:after,
.lp-search .sv-search-result a[href*='.doc']:after,
.lp-search .sv-search-result a[href*='.docx']:after,
.lp-search .sv-search-result a[href*='.xls']:after,
.lp-search .sv-search-result a[href*='.xlsx']:after,
.lp-search .sv-search-result a[href*='.ppt']:after,
.lp-search .sv-search-result a[href*='.pptx']:after,
.lp-search .sv-search-result a[href*='.css']:after,
.lp-search .sv-search-result a[href*='.js']:after,
.lp-search .sv-search-result a[href*='.vm']:after,
.lp-search .sv-search-result a[href^='/edit-fileresource/']:after,
.lp-related--links a:after,
.lp-related--links a[href^='http']:after,
.lp-related--links a[href*='.pdf']:after,
.lp-related--links a[href*='.jpg']:after,
.lp-related--links a[href*='.jpeg']:after,
.lp-related--links a[href*='.png']:after,
.lp-related--links a[href*='.txt']:after,
.lp-related--links a[href*='.doc']:after,
.lp-related--links a[href*='.docx']:after,
.lp-related--links a[href*='.xls']:after,
.lp-related--links a[href*='.xlsx']:after,
.lp-related--links a[href*='.ppt']:after,
.lp-related--links a[href*='.pptx']:after,
.lp-related--links a[href*='.css']:after,
.lp-related--links a[href*='.js']:after,
.lp-related--links a[href*='.vm']:after,
.lp-related--links a[href^='/edit-fileresource/']:after {
  background-image: none;
  display: inline;
  height: auto;
  margin-bottom: 0;
  margin-left: 0;
  width: auto;
}

/*
---------------------------------------------------------
DÖLJ / VISA VID UTSKRIFT
--------------------------------------------------------- */

.lp-logo {
  display: none !important;
}

.lp-logo.lp-logo--print {
  display: block !important;
}


body .lp-show-on-print,
body .lp-show-on-print div,
.pagecontent .sv-template-portlet {
  display: block !important;
}

body .lp-hide-on-print {
  display: none !important;
}

/*
.sv-text-portlet a[href^='http']:after,
.sv-text-portlet a[rel='external']:after,
.sv-related-portlet a[href^='http']:after,
.sv-related-portlet a[rel='external']:after {
  content: ' (' attr(href) ')';
}*/

.lp-boxes .sv-text-portlet a[href^='http']:after {
  content: none;
}

.sv-layout.sv-template-portlet {
  display: block;
}

.sv-cookie-consent-banner,
.sv-cookie-consent-modal {
  display: none;
}

/*
---------------------------------------------------------
SIDBRYT
--------------------------------------------------------- */

p,
li,
tr td,
tr th {
  break-inside: avoid !important;
}

/*
---------------------------------------------------------
FONTSTORLEKAR
--------------------------------------------------------- */


h1 {
  font-size: 20pt !important;
}

h2 {
  font-size: 16pt !important;
}

h3,
caption {
  font-size: 14pt !important;
}

.preamble {
  font-size: 14pt !important;
}

.normal,
li,
th,
th p,
td,
td p {
  font-size: 12pt !important;
}

.small {
  font-size: 10pt !important;
}


/*
---------------------------------------------------------
UNDVIKER ENSAMRADER
--------------------------------------------------------- */

p {
  orphans: 3;
  widows: 3;
}


/*
---------------------------------------------------------
TABELLER
--------------------------------------------------------- */

table {
  border-collapse: collapse !important;
  border-spacing: 0 !important;
}

td,
th {
  border: 1px solid #e8e8e8;
}

.sv-text-portlet-content table[class*='sv-standard'] td,
.sv-text-portlet-content table[class*='sv-standard'] th {
  font-size: 10pt !important;
  padding: 0.4cm;
}

.sv-text-portlet-content table[class*='sv-standard'] td p,
.sv-text-portlet-content table[class*='sv-standard'] th p {
  font-size: 10pt !important;
}

.sv-text-portlet-content .sv-responsiveTable * {
  white-space: initial !important;
}

/*
---------------------------------------------------------
VISA DOLD INFO VID UTSKRIFT
--------------------------------------------------------- */

.pagecontent [aria-hidden='true'] {
  display: block !important;
}

/*
---------------------------------------------------------
FIXAR
--------------------------------------------------------- */

.lp-boxes > .sv-layout > .sv-text-portlet,
.lp-boxes > .sv-layout > .sv-layout {
  border: 1px solid #ccc;
}

.lp-boxes .sv-image-portlet {
  margin-bottom: 0;
}

.lp-footer,
.lp-pagetools,
.lp-header .sv-limepark-webapp-overlay-button button,
.lp-expandable-content .lp-toggler-icon {
  display: none !important;
}
