/*--------------------------------------------------------------------------------------------------------

# Tema: Kongress

--------------------------------------------------------------------------------------------------------*/
.sv-theme-kongress {
   max-width: 1920px;
   margin: 0 auto !important;
   box-sizing: border-box;
}
.sv-theme-kongress > .sv-layout {
   display: flex;
   flex-direction: column;
   min-height: 100dvh;
}
.sv-theme-kongress > .sv-layout > main {
   flex-grow: 1;
}

.sv-theme-kongress .sv-grid-maxgrid {
   padding: 0 1rem;
   box-sizing: border-box;
}

@media(min-width: 768px)  {
   .sv-theme-kongress > .sv-layout > main {
      min-height: 600px;
   }
}


@media(min-width: 1200px) {
   .sv-theme-kongress .sv-grid-maxgrid {
   	padding: 0 1.5rem;
   }

}

.sv-theme-kongress .sap-logo-menu {
   padding: 1rem 0;
}


@media(max-width: 767px) {
   .sv-theme-kongress .sap-logo-menu .sv-image-portlet {
      flex-grow: 1;
   }
}

/* Typography */

.sv-theme-kongress h1 > span {
   font-size: inherit;
}

@media (max-width: 1000px) {
  .sv-theme-kongress .env-text-heading-01 {
      font-size: calc(var(--env-text-heading-01-font-size) * 0.6);
   }
}


/* Verktygsbar */

.sv-theme-kongress .sap-toolbar {
   display: flex !important; 
   align-items: center;
   height: auto !important;
   min-height: 2.5rem;
}

.sv-theme-kongress .sap-toolbar .env-button {
   font-size: var(--env-font-size-small);
}

.sv-theme-kongress .sap-toolbar__nav {
   display: flex;
   align-items: center;
   justify-content: space-between;
   width: 100%;
}

.sv-theme-kongress .sap-toolbar ul {
   flex-grow: 1;
}

@media(max-width: 768px) {
   .sv-theme-kongress .sap-toolbar ul {
      display: none;
   }
}

.sv-theme-kongress .sap-main-nav__toolbar a.normal, 
.sv-theme-kongress .sap-main-nav__toolbar a:not(.env-button), 
.sv-theme-kongress .sap-toolbar a.normal, 
.sv-theme-kongress .sap-toolbar a:not(.env-button), 
.sv-theme-kongress .sap-toolbar button, 
.sv-theme-kongress .sap-main-nav__toolbar button {
   padding: 0.75rem .25rem;
}

/* Innehållsförteckning */
.sv-marketplace-sitevision-table-of-contents a {
   font-size: 120%;
}

/* Huvudmeny */

.sv-theme-kongress .sv-marketplace-sitevision-main-menu a {
   font-size: 1.125em;
   font-weight: 700;
}

/* Puffmeny */

.sv-theme-kongress .sv-marketplace-sitevision-teaser-menu ul li a svg.env-icon path {
   d: path("M22.4142 12L14 20.4142L12.5858 19L18.5858 13H2V11H18.5858L12.5858 5L14 3.58579L22.4142 12Z") !important;
}

/* Nyhetslista */
.sv-marketplace-sitevision-newslist .sv-newslist__gallery-item > article > div {
   padding: 1em !important;
} 

.sv-marketplace-sitevision-newslist .sv-newslist__gallery-item > article > div header {
   margin-bottom: 0.5em;
}

.sv-marketplace-sitevision-newslist .sv-newslist__gallery-item > article > div footer > ul {
   position: absolute;
   top: 0;
   right: 0;
   margin: 0 !important;
}

.sv-marketplace-sitevision-newslist .sv-newslist__gallery-item > article > div footer .env-badge {
   font-size: 1em;
   padding: var(--env-spacing-x-small) var(--env-spacing-small);
   margin: 0 !important;
}

.sv-marketplace-sitevision-newslist .sv-newslist__gallery-item > article > div footer ul {
   justify-content: flex-end;
}

.sv-marketplace-sitevision-newslist .sv-newslist__gallery-item > article > div footer ul li:nth-child(3n) .env-badge {
   background-color: var(--env-element-secondary-background-color);
}

.sv-marketplace-sitevision-newslist .sv-newslist__gallery-item > article > div footer ul li:nth-child(2n) .env-badge {
   background-color: #AD143D;
}

@media(min-width: 1200px) {
   .sv-marketplace-sitevision-newslist .sv-newslist__gallery-item > article > div {
      padding: 2rem !important;
   }
}

/* Videos - Youtube spellista */

.sv-youtube-playlist-rss {
   margin-left: -1em;
   margin-right: -1em
}

.env-block-primary .sv-youtube-playlist__video:hover {
   background-color: rgba(0,0,0,0.25);
}

/* Poll - Webbfråga */

.sv-poll-portlet > table {
   width: 100%;
   border-spacing: 0 10px;
}

.sv-poll-portlet > table caption {
   text-align: center !important; 
}

.sv-poll-portlet > table tbody tr {
   position: relative;
   border-radius: 8px;
   overflow: hidden;
}

.sv-poll-portlet > table > tbody > tr:before {
   content: "";
   height: 40px;
   width: 100%;
   border-radius: 8px;
   display: block;
}

.sv-poll-portlet > table > tbody > tr > th,
.sv-poll-portlet > table > tbody > tr > td:last-child {
   position: absolute;
   top: calc(50% + 2px);
   transform: translateY(-50%);
   z-index: 2;
}
.sv-poll-portlet > table > tbody > tr > th {
   left: 12px;
}
.sv-poll-portlet > table > tbody > tr > td:last-child {
   right: 12px;
}

.sv-poll-portlet td:has(table) {
   position: absolute;
   left: 0;
   right: 0;
   top: 0;
   bottom: 0;
}

.sv-poll-portlet td > table {
   width: 100%;
   border-spacing: 0;
}

.sv-poll-portlet td > table tr {
   display: flex;
}

.sv-poll-portlet td > table th {
	height: 40px;
}

.sv-poll-portlet > table tbody tr:has(td a) {
   display: none !important; 
}

/* Beige bakgrund */
.sv-poll-portlet > table tbody tr:before,
.sv-poll-portlet td > table tr {
	background-color: #DDCABE;
}

.sv-poll-portlet td > table th:first-of-type {
   background-color: #AD143D;
   border-radius: 8px;
}

.sv-poll-portlet td > table th:last-of-type {
   background-color: transparent;
}

/* Mörkröd bakgrund */
.env-block-primary .sv-poll-portlet > table tbody tr:before,
.env-block-primary .sv-poll-portlet td > table tr {
	background-color: #8E082B;
}

.env-block-primary .sv-poll-portlet td > table th:first-of-type {
   background-color: #ED1B34;
   border-radius: 8px;
}

.env-block-primary .sv-poll-portlet td > table th:last-of-type {
   background-color: transparent;
}

/* Vit bakgrund */
.env-block .sv-poll-portlet > table tbody tr:before,
.env-block .sv-poll-portlet td > table tr {
	background-color: #FBF6F3;
}

.env-block .sv-poll-portlet td > table th:first-of-type {
   background-color: #ED1B34;
   border-radius: 8px;
}

.env-block .sv-poll-portlet td > table th:last-of-type {
   background-color: transparent;
}

.env-block .sv-poll-portlet td > table th:only-of-type {
   background-color: #ED1B34;
} 

/* Poll - Egen mall */

.soc-poll {
   --poll-option-color: rgb(221,202,190);
	--poll-filled-bar-text-color: #fff;
	--poll-bar-color: #AD143D;
   display: flex;
   flex-direction: column;
   gap: 1.5em;
   margin-bottom: 1.5em;
}

.soc-poll__question {
   text-align: center;
}

.soc-poll__options {
   display: flex;
   flex-direction: column;
   gap: 10px;
   
}

.soc-poll__option {
   position: relative;
   background-color: var(--poll-option-color);
   border-radius: 8px;
   display: flex;
   width: 100%;
   height: 40px;
   overflow: hidden;
}

a.soc-poll__option:hover {
   background-color: var(--env-color-brand);
   color: #fff;
}

.soc-poll__option span {
   position: absolute;
   top: 50%;
   transform: translateY(-50%);
   color: var(--env-font-color);
}
.soc-poll__option-title {
   left: 1em;
}

.soc-poll__option-votes {
   right: 1em;
}

.soc-poll__bar {
   background-color: var(--poll-bar-color);
}

.soc-poll__option span.soc-poll__filled {
   color: var(--poll-filled-bar-text-color);
}

.soc-poll__bar.soc-poll__bar-empty {
   background-color: transparent;
}

/* Vit bakgrund */
.env-block .soc-poll {
   --poll-option-color: rgba(245,233,225, 0.4);
	--poll-filled-bar-text-color: #fff;
	--poll-bar-color: #ED1B34;
}

/* Mörkröd bakgrund */
.env-block-primary .soc-poll {
   --poll-option-color: rgba(237,27,52, 0.3);
	--poll-filled-bar-text-color: #fff;
	--poll-bar-color: rgba(237,27,52, 1);;
}

/* Agenda */

.sv-agenda {
   font-size: 1.25em;
}
.sv-agenda__happpening-ongoing.env-badge {
      background-color: var(--env-ui-color-brand);
   }

.sv-agenda__happpening-ongoing.env-badge:before {
   top: 3px;
}

.sv-agenda__happening-body:before {
   min-width: 1em;
}
.sv-agenda a {
   text-decoration: none;
}
.sv-agenda__happening-body {
	--env-font-color: #42001c;
	text-decoration: none;
}

   .env-badge--large {
      font-size: 1em;
   }






