/******************************************************

CSN Pagebar

Styling för pagebar, fixerad innehållsförteckning.

******************************************************/

/******************************************************
Dölj i GUI
******************************************************/
.sv-editing-mode .csn-pagebar {
   display: none;
}

/******************************************************
Grundvariant - Element i toppen
******************************************************/
html .csn-pagebar.csn-pagebar--visible {
   opacity: 1;
}

html .csn-pagebar.csn-pagebar--removed {
   display: none;
}

html .csn-pagebar {
   position: fixed;
   top: 0;
   left: 0;
   right: 0;
   z-index: 15;
   background: #f5f5f5;
   padding: 0;
   box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
   line-height: 1.6;
   height: 60px;
   max-height: 100%;
   overflow: hidden;
   backface-visibility: hidden;
   
   opacity: 0;
   -webkit-transition: height 0.2s ease, opacity 0.3s ease;
   -moz-transition: height 0.2s ease, opacity 0.3s ease;
   -o-transition: height 0.2s ease, opacity 0.3s ease;
   transition: height 0.2s ease, opacity 0.3s ease;
}

.csn-pagebar.open {
   overflow: auto;
}

.csn-pagebar.open .csn-pagebar__top img {
   -o-transform: rotate(-90deg);
   -ms-transform: rotate(-90deg);
   -moz-transform: rotate(-90deg);
   -webkit-transform: rotate(-90deg);
   transform: rotate(-90deg);
}

.csn-pagebar__current {
   position: absolute;
   top: 0;
   left: 0;
   right: 0;
   opacity: 1;
   z-index: 2;

   -webkit-transition: opacity 0.2s linear;
   -moz-transition: opacity 0.2s linear;
   -o-transition:opacity 0.2s linear;
   transition: opacity 0.2s linear;
}

.csn-pagebar__index {
   position: absolute;
   top: 0;
   left: 0;
   right: 0;
   opacity: 0;
   z-index: 1;

   -webkit-transition: opacity 0.2s linear;
   -moz-transition: opacity 0.2s linear;
   -o-transition:opacity 0.2s linear;
   transition: opacity 0.2s linear;
}

.csn-pagebar__index .csn-pagebar__sectioncaption {
   padding: 8px 16px 8px 16px;
   cursor: pointer;
}

.csn-pagebar__index .csn-pagebar__sectioncaption_desktop {
   display: none;
   font-size: 16px;
   font-weight: 600;
   padding: 4px 0 12px 12px;
   border-left: 2px solid #ebebeb;
}

.csn-pagebar__index .csn-pagebar__sectioncaption,
.csn-pagebar__index .csn-pagebar__sectioncaption:hover {
   text-decoration: none !important;
}

.csn-pagebar__index .csn-pagebar__sectionlink {
   padding: 14px 16px 14px 16px;
   border-bottom: 1px solid #e2e2e2;
}

.csn-pagebar__index .csn-pagebar__sectionlink:first-child,
.csn-pagebar__index .csn-pagebar__sectionlink:last-child {
   border-bottom: none;
}

.csn-pagebar__index .csn-pagebar__sectionlink .csn-pagebar__section:before {
   content: '\2193';
   font-weight: normal;
   margin-right: 6px;
   color: #888;
}

.csn-pagebar__index .csn-pagebar__sectionlink.js-pagetop .csn-pagebar__section:before {
   display: inline-block;
   position: relative;
   top: -2px;
   -o-transform: rotate(180deg);
   -ms-transform: rotate(180deg);
   -moz-transform: rotate(180deg);
   -webkit-transform: rotate(180deg);
   transform: rotate(180deg);
}

.csn-pagebar.open .csn-pagebar__current {
   opacity: 0;
   z-index: 1;
}

.csn-pagebar.open .csn-pagebar__index {
   opacity: 1;
   z-index: 2;
}

.csn-pagebar__text {
   display: table-cell;
   vertical-align: top;
}

.csn-pagebar__text a {
   display: block;
   padding: 8px 16px 8px 16px;
}

.csn-pagebar__top {
   display: table-cell;
   width: 38px;
   vertical-align: top;
   text-align:center;
}

.csn-pagebar__top__column {
   position: absolute;
   width: 38px;
   top: 0;
   right: 0;
   background: #f0f0f0; /* Old browsers */
   background: -moz-linear-gradient(left,  #ededed 0%, #f4f4f4 26%, #f4f4f4 100%); /* FF3.6-15 */
   background: -webkit-linear-gradient(left,  #ededed 0%,#f4f4f4 26%,#f4f4f4 100%); /* Chrome10-25,Safari5.1-6 */
   background: linear-gradient(to right,  #ededed 0%,#f4f4f4 26%,#f4f4f4 100%); /* W3C, IE10+, FF16+, Chrome26+, Opera12+, Safari7+ */
   filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#ededed', endColorstr='#f4f4f4',GradientType=1 ); /* IE6-9 */
   z-index: 3;
}

.csn-pagebar__top a {
   display: block;
   position: absolute;
   width: 100%;
   height: 100%;
   opacity: 0.85;
}

.csn-pagebar__top img {
   margin-top: 16px;
   -o-transform: rotate(90deg);
   -ms-transform: rotate(90deg);
   -moz-transform: rotate(90deg);
   -webkit-transform: rotate(90deg);
   transform: rotate(90deg);

   -webkit-transition: transform 0.2s ease;
   -moz-transition: transform 0.2s ease;
   -o-transition: transform 0.2s ease;
   transition: transform 0.2s ease;
}

.csn-pagebar__table {
   display: table;
   width: 100%;
   table-layout: fixed;
}

.csn-pagebar__section.csn-formatmall-rubrik-2 {
   font-size: 15px;
   color: #333;
   margin: 4px 0 0 0 !important;
}

.csn-pagebar__page.csn-formatmall-brodtext {
   font-size: 14px;
   color: #666;
   margin-bottom: 5px;
}

.csn-pagebar__sectionlink {
   text-decoration: none !important;
}

.csn-pagebar__sectionlink.current {
   background: #fff;
   position: relative;
}

.csn-pagebar__sectionlink:before {
   content: '';
   background: transparent;
   width: 4px;
   display: block;
   position: absolute;
   left: 0;
   top: 0;
   bottom: 0;
}

.csn-pagebar__sectionlink.current:before {
   background: #75c5c9;
}

.csn-pagebar__page,
.csn-pagebar__section {
   overflow: hidden;
   text-overflow: ellipsis;
   white-space: nowrap;
   padding-right: 30px;
}

/******************************************************
Desktopvariant - Fixerad till höger om sidinnehållet
******************************************************/
@media (min-width: 900px) {
   html .csn-pagebar {
      top: 2rem !important;
      height: auto !important;
      overflow: visible !important;
      left: auto !important;
      right: auto !important;
      margin-left: 651px;
   }

   html .csn-pagebar__index .csn-pagebar__sectioncaption,
   html .csn-pagebar__index .csn-pagebar__sectionlink.js-pagetop,
   html .csn-pagebar__index .csn-pagebar__sectionlink .csn-pagebar__section:before,
   html .csn-pagebar__index .csn-pagebar__sectionlink:before,
   html .csn-pagebar__top,
   html .csn-pagebar__page,
   html .csn-pagebar__current {
      display: none;
   }

   html .csn-pagebar__index .csn-pagebar__sectioncaption_desktop {
      display: block;
      color: #000;
   }

   html .csn-pagebar__index .csn-pagebar__sectionlink {
      border-left: 3px solid #EBE8EF;
      border-bottom: 0px;
      padding: 8px 10px;
      color: #3C1E5F;
   }

   html .csn-pagebar__index .csn-pagebar__sectionlink:hover {
      text-decoration: underline;
      background-color: #F9F9F9;
      opacity: 1;
   }
   
   html .csn-pagebar__index .csn-pagebar__sectionlink.current {
      border-color: #3C1E5F;
      background-color: #F9F9F9;
   }

   html .csn-pagebar__index .csn-pagebar__sectionlink.current .csn-pagebar__section {
      font-weight: bold;
   }

   html .csn-pagebar__index .csn-pagebar__section {
      font-family: -apple-system,"san francisco","segoe ui",roboto,"helvetica neue",system,arial,sans-serif;
      font-weight: normal;
      font-size: 16px;
      line-height: 1.4;
      color: inherit;
      margin: 0 !important;
      padding-right: 0;
   }   

   html .csn-pagebar__current {
      opacity: 0;
      z-index: 1;
   }

   html .csn-pagebar__index {
      opacity: 1;
      z-index: 2;
      background: #fff;
      max-width: 300px;
   }

   .csn-modal-fader[data-initiator="pagebar"] {
      display: none !important;
   }
}

/* För inzoomat */
.csn-pagebar.min-height-bound .csn-pagebar__top img {
   margin-top: 2px !important;
}

.csn-pagebar.min-height-bound .csn-pagebar__current .csn-pagebar__page.csn-formatmall-brodtext { 
   display: none !important;
}

.csn-pagebar.min-height-bound .csn-pagebar__sectionlink {
   margin-top: -7px;
}


/******************************************************
Puffmeny
******************************************************/
nav > .env-cardholder-grid > li > a > svg {
   display: none;
}

nav > .env-cardholder-grid > li > a > h2 {
   font-size: 26px;
   font-weight: 700;
}

nav > .env-cardholder-grid > li > a > p {
	font-size: 20px;
   font-weight: 400;
}

nav > .env-cardholder-grid > li > a {
   padding-bottom: calc(var(--sv-subpagenav-padding) * calc(4/3));
}

nav > .env-cardholder-grid {
   --ch-col-w: none;
}

