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


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

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 {
  margin: 0 0 0.8cm;
  width: 220px !important; /* Ändra till halva bildbredden om logotyp för retinaskärm används */
}

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

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

div .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,
td,
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 #e5e5e5;
}

.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;
}
