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

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

* {
  font-family: "neue haas grotesk text" !important;
}

html {
  font-size: 8pt !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-header {
  border-bottom: 1px solid var(--lp-border-color);
  margin-bottom: 0;
}

.lp-logo img {
  height: 1cm !important; /* Ändra till halva bildbredden om logotyp för retinaskärm används */
  margin: 0;
  filter: brightness(0) saturate(100%) !important;
  -webkit-filter: brightness(0) saturate(100%) !important;
  print-color-adjust: exact;
  -webkit-print-color-adjust: exact;
}

.lp-header {
   background: none;
   margin-bottom: 0.5cm;
}


.lp-main-grid.sv-fluid-grid,
.lp-main-grid.sv-fixed-fluid-grid {
  padding: 0 !important;
}

/*
---------------------------------------------------------
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,
.lp-hero,
.lp-header > div:last-child {
  display: none !important;
}

.lp-byline .sv-script-portlet {
  display: block !important;
}

.lp-byline .lp-feedback-link {
  display: none !important;
}

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

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

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


h1 {
  font-size: 22pt !important;
  color: var(--lp-font-color) !important;
}

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

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

h4 {
  font-size: 11pt !important;
}

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

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

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

/*
---------------------------------------------------------
SOK-specifikt
--------------------------------------------------------- */




.lp-search--list > .sv-text-portlet:after, 
.lp-search--list .pagecontent > .sv-text-portlet:after, 
.lp-search--list .lp-filters--container:after, 
.lp-search--list .lp-search--message:after {
  display: none;
}


.lp-search--list > .sv-text-portlet, 
.lp-search--list .pagecontent > .sv-text-portlet, 
.lp-search--list .lp-filters--container, 
.lp-search--list .lp-search--message {
   background: none;
}

:where(.pagecontent,.env-button) a:where([href^='http' i]):after, 
:where(.pagecontent) a:where([href^='mailto:' i],
[href^='tel:' i]):after, 
:where(.pagecontent,.lp-search .sv-search-result) a:where([href*='.jpg' i],
[href*='.jpeg' i],[href*='.png' i],[href*='.webp' i]):after, 
:where(.pagecontent,.lp-search .sv-search-result) a:where([href*='.pdf' i],
[href*='.txt' i],[href*='.doc' i],[href*='.docx' i]):after, 
:where(.pagecontent,.lp-search .sv-search-result) a:where([href*='.xls' i],
[href*='.xlsx' i],[href*='.ppt' i],[href*='.pptx' i]):after, 
:where(.pagecontent,.lp-search .sv-search-result) a:where([href*='.css' i],
[href*='.js' i],[href*='.vm' i]):after, 
:where(.lp-search .sv-search-result) a[href^='/edit-fileresource/' i]:after, 
:where(.lp-related) a:after, 
:where(.sv-related-portlet) a[href^="http" i]:after
 {
    display: none;
}


.sv-video-portlet {
   display: none;
}

.lp-box-list.sv-text-portlet .sv-text-portlet-content, 
.lp-box-list.sv-layout {
	grid-template-columns: 1fr;
}

.lp-box-list.sv-text-portlet .sv-text-portlet-content > h2:first-child, .lp-box-list.sv-layout > .sv-text-portlet:first-child {
   grid-column: initial;
}


.lp-search--game-guide .lp-filters,
.lp-search--game-guide .lp-schedule__edit-program-item__actions,
.lp-search--game-guide .lp-schedule__program-item__actions,
.lp-search--game-guide .lp-schedule__admin-actions{
  display: none !important;
}


.lp-schedule__program-item {
    margin: 0 0 15px !important;
    padding: 10px 0 !important;
}

.lp-search--game-guide .lp-schedule__program-item-time {
   color: inherit;
}

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

p {
  orphans: 3;
  widows: 3;
}


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

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

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

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

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

.lp-header > .sv-layout:nth-child(1) {
  padding: 0;
}

.pagecontent a[href^='http' i]:not(.env-button):after {
  content: none;
}
