/*
* CAB custom css for Dynamics customer service portal
*/


body {
  min-height:100vh;
  display: flex;
  flex-direction: column;
}

.row.sectionBlockLayout.text-left {
display: none !important;
}



.navbar-static-top.navbar .menu-bar > .navbar-nav > li > a:hover {
  color: #6c6c6c;}

/*divider i navigationen*/
.navbar-static-top.navbar .menu-bar > .navbar-nav > .divider-vertical {
  display: none;
  /*height: 21px;
  margin: 0 4px;
  margin-top: 14.5px;
  border-right: 1px solid #fff;
  border-left: 1px solid #330be4;*/ }


.cab-homelinks {
position: relative;
height: 100vh;
width: 100%;
display: inline;
}
.cab-homepage_tile  {
  width:31.944444444444446%;
  margin: auto;
  float: left;
  margin-left: 2.083333333333333%;
  background-size: cover;
}
.cab-skip-spacer {
margin-left: 0%;
}
.cab-blue-bg {
  background: linear-gradient(180deg,#0069b4 0,#283583 100%);
}




.cab-orange-bg {
  background: linear-gradient(180deg,#ec6608 0,#cd1719 100%);
}
.cab-homepage-title-container {
background-color: transparent;
padding: 9px;
}
.cab-thumbnail {
padding: 4px;
margin-bottom: 40px;
}
h2.cab-tile-title {
  color: white;
  text-align:center;
  font-size: 40px;
}

footer {
  background-color: #ffffff;
  color: rgb(255, 255, 255);
  width: calc(100% - 100px);
  margin-top: 20px !important;
  padding:20px 40px;
  /*z-index: 2;*/
  height: auto;
  margin-left: 80px;
border-radius: 10px;}

footer.active {
  position: relative;
  margin-left: 300px;
  width: calc(100% - 320px);
  
}

.footerbody {
  display: flex;
  justify-content: space-between;
  max-width: 1300px;
  margin: 0 auto;
  align-items: stretch; /* Se till att barnen sträcker sig till samma höjd */
}

.footerbody-right {
  display: flex;
  flex-direction: column;
  justify-content: flex-end; /* Flytta innehåll till botten */
  align-items: flex-end;
}

.footerbody-left {
  color:#000000;
}

footer .footer-copyright {
  /*position: fixed;*/
  text-align: center;
  color: #212121;
  background-color: white;
  width: 100%;
  height: 32px;
  bottom: 0px;
  font-size: 10px;
  padding-top: 10px;
}

footer .footer-copyright p {
  font-size: 10px;
}

.Case-Help {
  margin-left: 30px;
  margin-bottom: 10px;
}

#breadcrumbs {

  display:none;
  
  }

  button#https\:\/\/login\.cabgroup\.net\/ {
    margin-top: 100px;
    margin-left: auto;
    margin-right: auto;
    width: 150px;
}

ul.nav.nav-tabs.nav-account {
  display: none;
}

span.xrm-attribute-value-encoded.xrm-attribute-value {
  display: none;
}

h1#external-login-heading {
  display: none;
}
ul.breadcrumb {
  display: none;
}

.headernavmarginswarning {
  position: relative;
  left: 60px;
  top: 64px;
  width: calc(100% - 60px);
  z-index: 0; /* Lägre än tooltippen */
  overflow: visible; /* Viktigt */
  
}


.headernavmargins {
  position: relative;
  left: 60px;
  top: 64px;
  width: calc(100% - 60px);
  z-index: 0; /* Lägre än tooltippen */
  overflow: visible; /* Viktigt */
  padding-bottom: 40px;
  
}

.headernavmargins.active {
  position: relative;
  left: 280px;
  top: 64px;
  width: calc(100% - 280px);
  
}

.userinfo {
  position: fixed;
  display:none;
  top: 64px;
  right: 20px;
  height: auto;
  padding-top: 15px;
  padding-left: 15px;
  padding-right: 15px;
  padding-bottom: 15px;
  width:auto;
  background-color: rgba(48,56,59,0.95);
  z-index: 5;
  border-radius: 4px;
  font-family: 'Source Sans 3', sans-serif;
}

.userinfo.active {
  display:block;
}

.clickable-hover:hover {
  text-decoration: underline !important;
  font-weight: 700 !important;
}

.clickable-hover:hover p {
  text-decoration: underline !important;
  font-weight: 700 !important;
}


.sidenav {
  position: fixed;
  left: 0;
  top: 64px;
  height: 100vh;
  width: 60px;
  background-color: #ffffff;
  padding-top: 30px;
  z-index: 1000;
}

.sidenav.active{
  width: 280px;
}


.sidenav .menu-item{
  opacity: 0;
  font-size: 15px;
}

.sidenav.active .menu-item{
  opacity: 1;
}

.sidenav ul li{
  position: relative;
  list-style-type: none;
  height: 40px;
  width: 100%;
  margin:0;
  line-height: 40px;
}

.sidenav ul li:hover{
  background-color:rgb(0, 0, 0, 0.06);
}

.sidenav ul li a{
  color: rgba(48,56,59);
  text-decoration: none;
}

.sidenav.active ul li a{
  display:flex;
  align-items: center;
}

.sidenav ul li a i{
  min-width: 50px;
  text-align: center;
  height: 40px;
  line-height: 40px;
}

.sidenav .top{
 margin-left: 15px;
 
}

.sidenav .top i{
  text-align: center;
  height: 40px;
  line-height: 40px;
  padding-left: 2px;
  padding-right: 2px;
  border-radius: 40px;
}


.sidenav .top i:hover{
  background-color:rgb(0, 0, 0, 0.06);
}

.sidenav ul li.active-menu::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 3px;
  height: 100%;
  background-color: #D93518;
}

.sidenav ul li.active-menu {
  background-color: #eeeeee;
}

.sidenav ul li.active-menu a {
  color: #220087  !important; /* Ändrar text och ikonfärg */
}

.sidenav ul li.active-menu a i {
  color: #220087 !important; /* Även ikonfärg om intevs ärv */
}


/* När menyn är stängd, visa "tooltip" vid hover */
.sidenav:not(.active) ul li {
  position: relative;
}

.sidenav:not(.active) ul li:hover .menu-item {
  opacity: 1;
  visibility: visible;
  position: absolute;
  left: 60px; /* utanför den smala menyn */
  top: 0;
  height: 40px; /* Matchar .sidenav ul li */
  line-height: 40px; /* Vertikal centrering av text */
  padding-left: 5px;
  padding-right: 10px;
  background-color: #eeeeee;
  white-space: nowrap;
  font-weight: 500;
  border-top-right-radius: 4px;
  border-bottom-right-radius: 4px;
  /*box-shadow: 0 2px 4px rgba(0,0,0,0.2);*/
  z-index: 9999;
  color: #333;
}

/* Dölj menytexten i stängt läge (tills hover sker) */
.sidenav:not(.active) .menu-item {
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s ease;
  pointer-events: none;
}

.iframeinfo {
 border: none;
 width: 100%;
 border-radius: 10px;
 height:2000px;
}


.articlecontainerheader{
  width:100%;
  border-radius: 5px;
  padding: 10px;
  background-color:  #eeeeee;
 }

 .articlecontainerheader h3{
  font-weight: bold;
 }


 .articlecontainer{
  min-width: 250px;
  width:49%;
  word-break: break-word;
  border-radius: 5px;
  background-color: white;
 }
 
 .articlecontainer ul{
   margin-top: 10px;
 }


 .articlecontainer:hover{
  border-style: solid;
  border-width: 2px;
  border-color: #ec6608;
}

.articlecontainerautomotive{
  min-width: 250px;
  width:49%;
  word-break: break-word;
  border-radius: 5px;
  background-color: white;
 }
 
 .articlecontainerautomotive ul{
   margin-top: 10px;
 }

.articlecontainerautomotive:hover{
  border-style: solid;
  border-width: 2px;
  border-color: #00218d;
}

.articlelistitem #articlearrow{
  color:#000000;
  position:absolute;
  right: 20px;
  top:7px;
  fill:1;
}


.articlelistitem #articlebook{
  color:#000000;
  margin-top: 5px;
  padding-left: 10px;
  padding-right: 10px;
}

.articlelistitem{
  position: relative;
  list-style-type: none;
  min-height: 40px;
  width: 100%;
  margin:0;
  padding-right: 50px;
  line-height: 1.4; /* Gör texten lite mer läsbar */
  min-height: 40px; /* Behåll minst 40px höjd */
  display: flex;
  align-items: center;
  color:#000000;
}

.articlelistitem a{
  display: flex;
  text-decoration: none;
  font-family: 'Source Sans 3', sans-serif; 
  font-size: 16px;
  color:#30383b;
}


.articlelistitem:hover a{
  background-color: #eeeeee;
  text-decoration: none !important;
  border-radius: 5px;
  font-weight: 600;
  color:#000000;
}

.articlelistitem:hover{
  background-color: #eeeeee;
  text-decoration: none !important;
  border-radius: 5px;
  font-weight: 600;
}

.articlelistitemcategory:hover{
  background-color: #eeeeee;
  text-decoration: none !important;
  border-radius: 5px;
  font-weight: 600;
}

.articleSeeMore:hover{
  font-weight: bold;
  border-radius: 10px;
  text-decoration: none !important;
  
}

.cab-breadcrumb{
  display: flex;
  align-items: center;
}

.cab-breadcrumb i{
  color: rgb(255, 255, 255);
}


.cab-breadcrumb a{
  font-size: 14px;
  color: rgb(255, 255, 255);
  text-decoration: none;
}

.cab-breadcrumb a:hover{
color: #0d0d0d;
text-decoration: none;
}

.cab-breadcrumb p{
  display: inline-block;
  margin:0;
  font-size: 14px;
  font-weight: bold;
}

.fullarticleheader p{
  font-size: 14px;

}

.fullarticleheader .line{
  width: 100%;
  background-color: rgba(48,56,59,0.5);
  height: 1px;}

  .cab_articlefooter a:hover{
    font-weight: bold;
  }


.searchContainer {
  width: auto;
  height: 40px;
  background-color:rgba(48,56,59);
  display: flex;
  align-items: center;
  justify-content: center;
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  margin-top: 12px;
}

.SearchBar {
  height: 40px;
  display: flex;
  background-color: white;
  align-items: center;
  border-radius: 10px; 
  border-color: #000000;
  border-width: 1px;
  border-style: solid;
  width: 500px;
}

.kbarticlesContainer {
  position: absolute;
  top: 45px;
  left: 50%;
  text-align: left;
  transform: translateX(-50%);
  border: 1px solid black;
  background-color: white;
  width: 500px;
  border-radius: 10px;
  display: none;
  padding: 5px;
  z-index: 10;
}

.kbfilterDiv {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px;
  border-bottom: 1px solid #eeeeee;
  border-radius: 10px;
}

.kbfilterTitle {
  color:#30383b;
}

.hiddenContent {
  display: none;
}

.kbfilterDiv:hover{
  background-color: #eeeeee;
}

.kbfilterLink{
  text-decoration: none I !important;
  font-size: 14px;
}

.kbfilterLink:hover{
  font-weight: bold;
  text-decoration: none !important;
}

.invoicerow:hover {
  background-color:rgb(0, 0, 0, 0.06);
}

#greencircle {
  background-color: green;
  border-radius: 0px;
  border-style: none;
  border-radius: 40px;
  width: 10px;
  height: 10px;
  margin-right: 5px;

}

#redcircle {
  background-color: rgb(192, 0, 0);
  border-radius: 0px;
  border-style: none;
  border-radius: 40px;
  width: 10px;
  height: 10px;
  margin-right: 5px;
}

.invoice th {
  text-align: center;
}

.invoice td {
  text-align: center;
}

.entity-form textarea {
  border: 2px solid #ccc;
  border-radius: 8px;
  padding: 10px;
  font-size: 16px;
}

.entity-form input[type="text"] {
  border: 2px solid #ccc;
  border-radius: 8px;
  padding: 10px;
  font-size: 16px;
}

.entity-form input[type="email"] {
  border: 2px solid #ccc;
  border-radius: 8px;
  padding: 10px;
  font-size: 16px;
}


.entity-form{
  background-color: #ffffff;
  border:none !important;

}

.entity-form .actions,
.entity-form .form-actions,
.entity-form .entity-form-actions {
  background-color: #ffffff !important; /* Ljusgul */
}


.entity-form input.form-control,
.entity-form textarea.form-control {
  background-color: #ffffff !important;
}

input.submit-btn.btn.btn-primary {
background-color: #0072bc !important;;
  color: white !important;
  border: none;
  padding: 10px 20px;
  border-radius: 5px;
  font-weight: bold;
  cursor: pointer;
}

input.submit-btn.btn.btn-primary:hover {
  background-color: #c62828 !important;
}

.entity-form label {
  font-family: 'Source Sans 3', sans-serif;
  font-size: 16px;
  color: #000000;
  font-weight: 500;
}

.actions{
  background-color: #ffffff !important;
  display: flow-root !important;
  overflow: hidden !important;
  margin-top: 0;
  margin-bottom: 0;
}

.form-action-container-left::after {
  background-color: #ffffff !important;

}

.crmEntityFormView{
  background-color: white;
}

.crmEntityFormView, .entitylist, .modal-content, .popover-content {
  background-color: white !important;
  border:none !important;
}

#EntityFormControl_d9fb572d6f6044ebadf9f5213b2ef75f .crmEntityFormView .actions {
  padding: 0px !important;
  border-top: none !important;
}

#EntityFormControl_d9fb572d6f6044ebadf9f5213b2ef75f fieldset {
  margin-bottom: 0px !important;
}

#EntityFormControl_d9fb572d6f6044ebadf9f5213b2ef75f .cell {
  padding: 5px !important;
}

#EntityFormControl_85ba1710a7934c46895084c3cd8370e2 .form-control {
  background-color: rgb(255, 255, 255) !important;
  border-radius: 8px;
  border: 2px solid #ccc;
}

#EntityFormControl_3e08a723abb3450e9c9937cbc4a561bc .form-control {
  background-color: rgb(255, 255, 255) !important;
  border-radius: 8px;
  border: 2px solid #ccc;
}

#EntityFormControl_b11a267f57894aabbeca25909a56f405 .form-control {
  background-color: rgb(255, 255, 255) !important;
  border-radius: 8px;
  border: 2px solid #ccc;
}

table[data-name="hide_section"] {
    display: none !important;
}


.articlestyling p {
  margin: 0;
  padding: 0;
  font-family: 'Source Sans 3', sans-serif;
  font-size: 14px;
  line-height: 1.5;
  color: #000000; 
}

.articlestyling a {
  margin: 0;
  padding: 0;
  font-family: 'Source Sans 3', sans-serif;
  font-size: 16px;
  line-height: 1.5;
   color: #006680; 
}

.articlestyling h1 {
  margin: 0;
  padding: 0;
  font-family: 'Source Sans 3', sans-serif;
  font-size: 24px;
  font-weight: 400;
  line-height: 1.5;
  color: #000000; 
}

.articlestyling h2 {
  margin: 0;
  padding: 0;
  font-family: 'Source Sans 3', sans-serif;
  font-size: 20px;
  line-height: 1.5;
  color: #000000; 
}

.articlestyling figure {
  max-width: 100%;
  text-align: left !important;
  margin-left: 0 !important;
  margin-right: auto !important;
}



table.ck-table-resized td, 
table.ck-table-resized th {
    border-width: 1px !important;
    padding: 4px !important;
    width: auto !important;
}

table.ck-table-resized {
    border-width: 1px !important;
}

table td, 
table th {
    padding: 4px !important;
}

.table {
  width: auto !important;
}

.articlestyling img {
  max-width: 100%;
  height: auto !important;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.35);
}

.articlestyling li p {
    display: inline; /* Gör att texten ligger på samma rad som listpunkten */
    margin: 0;        /* Tar bort extra marginaler */
}


.articlestyling [data-wrapper="true"],
.articlestyling [data-wrapper="true"] > div {
  width: auto !important;   /* neutralisera inline width */
  max-width: 100% !important;
  box-sizing: border-box;
}

.articlestyling div {
  width: auto !important;   /* neutralisera inline width */
  max-width: 100% !important;
  box-sizing: border-box;
}


#craba_articleid{
  display: none;
}


#craba_articleid_label{
  display: none;
}

#new_contactid{
  display: none;
}


#new_contactid_label{
  display: none;
}

.helpfeedbackbtn:hover{
  font-weight: bold;
}

.forum-text p {
  font-size: 18px;
  font-family: 'Source Sans 3', sans-serif;
}

.forum-text img {
  max-width: 100% !important;
   text-align: left !important;
    margin-left: 0 !important;
    height: auto !important;
}

.ck-content figure.image {
    text-align: left !important;
    margin-left: 0 !important;
    max-width: 100% !important;
}


  .filter-btn {
    padding: 8px 16px;
    border: 1px solid #aaa;
    border-radius: 6px;
    background-color: #f0f0f0;
    cursor: pointer;
  }

    .filter-btn:hover {
    background-color: white;
    font-weight: bold;
  }

  .filter-btn.active {
    background-color: #2154A0;
    color: white;
  }

.clickable-card:hover p {
  text-decoration: underline;
}


/* Gör varje radio-knapp + etikett till ett block med mellanrum */
.picklist.horizontal input[type="radio"],
.picklist.horizontal label {
display: inline-block;
margin-right: 15px; /* Justera detta för mer eller mindre mellanrum */
vertical-align: middle;
}


  .select-wrapper {
    position: relative;
    width: 100%;
  }

  #sort-select {
    width: 100%;
    padding: 10px 40px 10px 16px; /* plats för ikonen */
    border: 1px solid #2C2C2C;
    border-radius: 10px;
    background-color: #f0f0f0;
    font-size: 16px;
    font-family: 'Source Sans 3', sans-serif;
    color: #000;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    cursor: pointer;
  }

  .select-wrapper .material-symbols-outlined {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none; /* så klick går till select */
    color: #333;
    font-size: 20px;
  }

  .idealink:hover {
    text-decoration: underline;
    font-weight: bold;
  }

  .commentlink:hover div{
    color:black !important;
    font-weight: bold !important;
  }


  .hoverVote:hover .material-symbols-outlined {
  font-variation-settings: 'FILL' 1, 'wght' 700, 'GRAD' 0, 'opsz' 48;
}

.hoverVote:hover span:not(.material-symbols-outlined) {
  font-weight: bold;
}

.CABWidth {
  max-width: 1300px;
  margin: 0 auto;
  text-align: left;
margin-left: auto; 
margin-right: auto;
 width:100%; 
}

.tileLink:hover {
  font-weight: 800 !important;
  color: #006680 !important;
}

.homepagefirstbuttons a {
  flex: 1; 
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.35); 
  background-color: rgba(48,56,59); 
  color: #ffffff; 
  height: 70px; 
  font-family: 'Source Sans 3', sans-serif; 
  font-weight: 400; 
  border-radius: 5px; 
  font-size: 16px; 
  display: flex; align-items: center; 
  justify-content: center; 
  text-decoration: none !important;
}

.homepagefirstbuttons a:hover {
  color:white !important;
  font-weight: bold;
  text-decoration: none !important;
}

.button a:hover {
  color:white !important;
  font-weight: bold;
  text-decoration: none !important;
}

.articlelisttitle {
  background-color: #eeeeee; 
  font-size: 16px;
  font-family: 'Source Sans 3', sans-serif;  
  padding: 10px; 
  border-radius: 5px; 
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.35);
}

.toggle-btn {
  padding: 10px 15px;
  margin-right: 5px;
  cursor: pointer;
  background-color: #eee;
  border: 1px solid #ccc;
  border-radius: 4px;
}

.toggle-btn.active {
  background-color:  rgba(48,56,59); 
  color: white;
  border-color:  rgba(48,56,59); }


    /* Overlay design */
.mobile-search-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background-color: white;
  z-index: 999;
  padding: 20px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

.mobile-search-header {
  display: flex;
  align-items: center;
}

.mobile-search-header input {
  flex: 1;
  height: 40px;
  font-size: 16px;
  padding: 0 10px;
  margin-left: 10px;
  border: 1px solid #ccc;
  border-radius: 4px;
}

.close-icon {
  cursor: pointer;
  font-size: 28px;
}

.mobile-search-icon {
  margin-left: 20px;
  margin-right: 20px;
  height: 100%;
  display: flex; /* För att kunna centrera innehåll vertikalt */
  align-items: center; /* Vertikal centrering av ikonen */
  padding-right: 12px; /* Utrymme till höger om ikonen */
  border-right: 1px solid #ffffff;
}

.mobile-search-icon i {
  color: #ffffff;
}



  /*Här kommer mobillayout-styling*/

   @media (max-width: 768px) {
      footer {
      margin-left: 10px;
      padding: 20px;
      width: calc(100% - 20px)
    }
  }


 @media (max-width: 768px) {
      .footer_teamviewer {
      display: none !important;
    }
  }

  
       @media (max-width: 1230px) {
    .searchContainer {
      display: none;
    }
  }

@media (min-width: 1230px) {
  .mobile-search-icon,
  .mobile-search-overlay {
    display: none;
  }
}

 

       @media (max-width: 768px) {
    .sidenav {
      display: none;
    }
  }

       @media (max-width: 768px) {
    .pagetitle {
      font-size: 26px !important;
    }
  }

     @media (max-width: 768px) {
    .pagestyle {
      padding-left: 20px !important;
      padding-right: 20px !important;
      margin: 10px !important;
      width: calc(100% - 20px) !important;
    }
  }

     @media (max-width: 768px) {
    .headernavmargins {
        position: relative;
        left: 0px;
        width: 100%;
        padding-bottom: 40px;
    }
  }

       @media (max-width: 768px) {
    .mepssitename {
        display:none !important;
    }
  }

         @media (max-width: 768px) {
    .autositename {
        display:none !important;
    }
  }



    @media (max-width: 768px) {
    .homepageinfobox {
      flex-direction: column !important;
    }
  }

      @media (max-width: 768px) {
    .supportsection {
      flex-direction: column !important;
    }
  }

      @media (max-width: 768px) {
    .contactform {
      width: 100% !important;
    }
  }

       @media (max-width: 768px) {
    .contactinfo {
      width: 100% !important;
      margin-left: 0px !important;
    }
  }

      @media (max-width: 768px) {
    .homepagearticles {
      flex-direction: column !important;
    }
  }

        @media (max-width: 768px) {
    .mepsimg {
      width: 90px !important;
    }
  }

        @media (max-width: 768px) {
    .autoimg {
      width: 50px !important;
    }
  }

          @media (max-width: 768px) {
    .articleframe {
      padding: 20px !important;
    }
  }

@media print {
  body * {
    visibility: hidden; /* Dölj allt först */
  }

  .print-only, .print-only * {
    visibility: visible; /* Visa bara det som ska skrivas ut */
  }

   /* Ta bort layout-styling som stör */
   .print-only {
    all: unset;               /* Nollställ alla stilar */
    display: block;
    margin: 0 !important;
    padding: 0 !important;
    width: 100%;
    font-family: serif;       /* Eller vad du vill använda för utskrift */
    font-size: 12pt;
    color: black;
    line-height: 1.5;
  }

  div[style*="display: flex"] {
    padding-left: 0 !important;
    padding-right: 0 !important;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
    margin: 0 !important;
  }

  /* Ta bort färger, bakgrunder, boxar etc. */
  .print-only * {
    margin: 0 !important;
    padding: 0 !important;
    color: black !important;
    box-shadow: none !important;
    border: none !important;
    text-shadow: none !important;
  }

  .no-print {
    display: none !important;
  }

    body::before {
      content: "Printout from CAB Support Portal";
      position: fixed;
      top: 10px;
      left: 50%;
      transform: translateX(-50%);
      height: auto;
    }
  
    body::after {
      content: "@ Copyright 2025 CAB Group AB";
      position: fixed;
      bottom: 10px;
      left: 50%;
      transform: translateX(-50%);
      font-size: 12px;
      text-align: center;
    }

}