h1, h2, h3, h4, h5, h6, th, td, label, li, a, p, div{
  color: var(--textColor) !important
}
a {
  outline: 0;
  background-color: transparent !important;
}
form:not([role='search'])::before{
  content: '';
  height:5%;
  width:100%;
  position:relative;
  top:0%;
}
body, div>select.form-control, input.form-control, .dropdown-menu, .message>.alert, .validation-summary.alert.alert-error{
  background-color: var(--secondaryColor) !important;
  color:var(--textColor) !important;
  &::placeholder{
    color:var(--textColor) !important;  
  }
}
input[type="file"]{
  background-color: transparent !important;
}

/*Hide the Chat in the bottom right corner*/
div[name='webChat']{
  display:none;
}

/*There are some Tooltips you can style this way, but not all, e.g. input-field descriptions => Hide them to have consistent design*/
.tooltip{
  display: none !important;
  /* Originale style-idea, falls wir doch noch eine Möglichkeit finden ALLE Tooltips zu stylen*/
  color: var(--textColor) !important;
  .tooltip-inner{
    background-color: var(--secondaryColor);
    border: 1px var(--textColor) solid;
    border-radius: 10px;
    box-shadow: 0px 0px 5px 1px rgba(255,255,255,0.75) inset;
    -webkit-box-shadow: 0px 0px 5px 1px rgba(255,255,255,0.75) inset;
    -moz-box-shadow: 0px 0px 5px 1px rgba(255,255,255,0.75) inset;
  }
}

.crmEntityFormView{
  border: none !important;
  background-color: transparent !important;
  /*Style locked fields*/
  select.form-control.readonly, .form-control[readonly], .form-control[disabled], #DateFormatterComponent .ms-TextField-fieldGroup:has(input[readonly]) {
    padding-left: 12px !important;
    border: 1px solid #f2f2f2 !important;
    border-radius: 25px;
    background-color: #ffffff33 !important;
    color:var(--textColor);
    input{
      color:var(--textColor);
    }
  }
}

.text-muted{
  color: var(--textColor);
  padding-left: 15px;
  font-weight: 700;
  top: 6px !important;

  .control select + & {
    display:none;
  }
  
  .control input.integer + & {
    top: 18px !important;
  }
}

.form-control{
  border-radius: 20px;
}
.control{
  padding-top: 12px;
  .input-group:has(.input-group-btn .launchentitylookup):first-child{
    border-top-right-radius: 0px !important;
    border-bottom-right-radius: 0px !important;
  }
}
.info{
  padding-bottom: 0px !important;
}
.container:first-of-type{
  width: 90%;
}

.wrapper-body {
  min-height: calc(100% - 210px) !important;
  padding-top: 80px !important;
}

.xrm-attribute-value > .row.sectionBlockLayout.sectionPrimaryColor.text-left{
  background-color: transparent !important;
}

body:not([data-sitemap-state="/page-not-found/:/"]) {
  overflow-x: hidden !important;

  &::before {
    content: "";
    clip-path: polygon(20% 0, 80% 0, 100% 50%, 80% 100%, 20% 100%, 0% 50%); 
    background: var(--brand-gradient);/*linear-gradient(135deg, #c71f91, #6c14cf);*/
    background-size: 400% 400%;
    animation: gradient 60s ease infinite;
    height: 100%;
    width: 75%;
    position: fixed;
    top: 0px;
    right: -20%;
    z-index: 0;
  }
  &::after{
    content: '';
    background: var(--logoUrl);
    /*height: 13%; Viewport-specific -> see below */
    width: 15%;
    position: absolute;
    top: 3%;
    left: 7%;
    z-index: 0;
    background-size: 100%;
    background-repeat: no-repeat;
    min-width: 200px;
    min-height: 80px;
  }
}

@media (min-width: 2000px) {
  body::after{
    height: 16%;
  }
}
@media (max-width: 1999px) {
  body::after{
    height: 13%;
  }
}
.textarea.form-control{
  background-color: var(--secondaryColor) !important;
  color: var(--textColor) !important;
} 
.button2, .btn-default{
  color: var(--textColor) !important;
  border-color: var(--textColor) !important;
}
/*Entity-List old mode*/
div.entitylist{
  background-color: var(--secondaryColor) !important;
  border-radius: 25px;
  border: 2px solid #ffffff !important;
  .entity-grid{
    background-color: var(--secondaryColor);
    border-radius: 25px;
    border: none !important;
  }
  div.panel-body{
    background-color: var(--secondaryColor);
    .entitylist-filter{
      border:none;
      border-top-left-radius: 25px;
      border-top-right-radius: 25px;
      >.panel-body{
        border-top-left-radius: 25px;
        border-top-right-radius: 25px;
      }
    }
  }
}
/*Entity-List new mode*/
#mainContent .page-copy .container pages-native-container{
  width: fit-content;

  [class*="body-"]{
    border-radius: 25px;
    border: 2px solid white;
    [dir="ltr"]{
      border-radius: 25px;
      .ms-Stack[class*="root-"]{
        border-radius: 25px;
      }
    }
  }
}

/*Platzhalter-Spalte farblich angleichen*/
.row.sectionBlockLayout.sectionPrimaryColor:not(:has(*)){
  background-color: var(--secondaryColor);
}

/*TimeSheet-PCF*/
@media (max-width: 1919px) {
  #TimeSheetEntriesComponent {
    zoom: 0.75; /*Damit der gesamte Content auch auf kleinen Bildschirmen direkt dargestellt wird*/
  }
}
@media (max-width: 1500px) {
  #TimeSheetEntriesComponent {
    zoom: 0.6; /*Damit der gesamte Content auch auf kleinen Bildschirmen direkt dargestellt wird*/
  }
}
#TimeSheetEntriesComponent {
  .ms-SelectionZone{
    background-color: var(--secondaryColor);
  }
  &>.ms-Stack{
    margin:auto;    

    &>.ms-Stack .ms-TextField-fieldGroup{    
      border-radius: 25px;
      margin-bottom: 10px;
    }

    .ms-DetailsList-contentWrapper .ms-List .ms-List-surface .ms-List-page .ms-FocusZone.ms-DetailsRow{
      width: 100% !important;
    }
  }
  .ms-DetailsList.is-fixed.is-horizontalConstrained{
    border-radius: 25px;
    border: 1px solid #fff;
    div[role="gridcell"] {
      button[type="button"]{
        color: var(--textColor);
        background: transparent;
      }
      .ms-BasePicker-text{
        background-color:var(--secondaryColor);
        border: none;
        input {
          color: var(--textColor);
        }
        .ms-TagItem{
          background-color: transparent;
          border:1px solid #fff;
        }
        &::after{
          background-color: transparent;
        }
      }
      .ms-TextField-fieldGroup{
        color: var(--textColor);
        &::before{
          color: var(--textColor);
        }
      }
      .ms-BasePicker-input{
        border: 1px solid #fff;
      }
    }
  }
}

/*PCF: RichTextEditorDark*/
.ql-editor {
  ul li{
    list-style-type: disc;
  }
  ol li{
    list-style-type: decimal;
  }
}
/*
td div.info.required > label::before{
  content: " ";
  color:#fff;
  background: url("/padlock-white.png");
}
*/
td div.info.required > label::after{
  color: var(--textColor) !important;
}
.alert-warning {
  background-color: #fff !important;
  border-color: #fff !important;
  border-radius: 25px;
}
.modal-dialog{
  .modal-content{
    border-radius: 25px;
    background-color: var(--secondaryColor) !important;
    color: var(--textColor) !important;
    textarea{
      color: #000;
      border-radius: 25px;
      padding: 10px;
    }
  }
}
/*Remove wannabe-NavBar */
.breadcrumb{
  display: none !important;
}
/*Padlock for readonly & disabled Fields*/
td.cell:has(div.control input[readonly]), td.cell:has(div.control input[disabled]), td.cell:has(select.form-control.readonly), td.cell:has(.form-control[readonly]), td.cell:has(.form-control[disabled]), td.cell:has(#DateFormatterComponent .ms-TextField-fieldGroup input[readonly]) {
  div.info:has(label)::before{/*
    content: "";
    color: var(--textColor);
    background: url(/padlock-white.png);
    height: 1em;
    display: inline-block;
    background-size: contain;
    background-repeat: no-repeat;
    position: relative;
    left: 5px;
    font-size: 1em;
    width: 1em;
    top: 1px;*/
    content: "";
    display: inline-block;
    width: 1em;
    height: 1em;

    /* deine Positionierung */
    position: relative;
    left: 5px;
    top: 1px;

    /* Dynamische Farbe */
    color: var(--textColor);
    background-color: currentColor;

    /* SVG als Maske per Data-URI */
    -webkit-mask: url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2024%2024'%3E%3Cpath%20d='M12%202a5%205%200%200%200-5%205v3H6a2%202%200%200%200-2%202v8a2%202%200%200%200%202%202h12a2%202%200%200%200%202-2v-8a2%202%200%200%200-2-2h-1V7a5%205%200%200%200-5-5Zm-3%208V7a3%203%200%200%201%206%200v3H9z'%2F%3E%3C%2Fsvg%3E") no-repeat center / contain;
            mask: url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2024%2024'%3E%3Cpath%20d='M12%202a5%205%200%200%200-5%205v3H6a2%202%200%200%200-2%202v8a2%202%200%200%200%202%202h12a2%202%200%200%200%202-2v-8a2%202%200%200%200-2-2h-1V7a5%205%200%200%200-5-5Zm-3%208V7a3%203%200%200%201%206%200v3H9z'%2F%3E%3C%2Fsvg%3E") no-repeat center / contain;

  }
}
div.info:has(div label)::before {
  content: "";
  display: inline-block;
  width: 1em;
  height: 1em;

  /* deine Positionierung */
  position: relative;
  left: 5px;
  top: 1px;

  /* Dynamische Farbe */
  color: var(--textColor);
  background-color: currentColor;

  /* SVG als Maske per Data-URI */
  -webkit-mask: url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2024%2024'%3E%3Cpath%20d='M12%202a5%205%200%200%200-5%205v3H6a2%202%200%200%200-2%202v8a2%202%200%200%200%202%202h12a2%202%200%200%200%202-2v-8a2%202%200%200%200-2-2h-1V7a5%205%200%200%200-5-5Zm-3%208V7a3%203%200%200%201%206%200v3H9z'%2F%3E%3C%2Fsvg%3E") no-repeat center / contain;
          mask: url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2024%2024'%3E%3Cpath%20d='M12%202a5%205%200%200%200-5%205v3H6a2%202%200%200%200-2%202v8a2%202%200%200%200%202%202h12a2%202%200%200%200%202-2v-8a2%202%200%200%200-2-2h-1V7a5%205%200%200%200-5-5Zm-3%208V7a3%203%200%200%201%206%200v3H9z'%2F%3E%3C%2Fsvg%3E") no-repeat center / contain;
}


/*Hide empty stuff*/
div.info:not(:has(label)){
  display: none;
}
tr:not(:has(*:not(:empty))){
  display: none;
}
div.row.sectionBlockLayout:not(:has(*:not(:empty))){
  display: none;
}
div.validators:has(span[id*="MaximumLengthValidator"][style="visibility:hidden;"]){
  display:none;
}

/*Multiselect PCF rounded*/
div.customControl.MscrmControls.MultiSelectPicklist\.UpdMSPicklistControl{
  > :first-child{
    border-radius: 25px;
  } 
  .msos-caret-container{
    border-bottom-right-radius: 100%;
    border-top-right-radius: 100%;
    margin-right: 10px;
  }
  .msos-selection-container{
    border-radius: 25px;
    >.msos-action-buttons:first-child{
      border-radius: 25px;
    }

  }
  .msos-option:hover{
    border-radius: 25px;
  }
}

/*Modals*/
section.modal.modal-form {
    .modal-header {
      /*Damit der Titel und der Schließen-Button in derselben Zeile sind, folgende Displays:*/
      h1.modal-title{
        display: contents; /* => Rendert den Inhalt des Tags ohne den Platz, den er einnimmt, in der DOM zu reservieren/blockieren */
      }
      button.form-close {
        display: block !important;
        color: var(--textColor, #ffffff);
        opacity: 1;
      } 
  }
    .modal-header button.form-close span {
        color: inherit !important;
    }

    .modal-header button.form-close:hover {
        opacity: 0.8 !important;
    }

    .modal-header button.form-close:focus,
    .modal-header button.form-close:active {
        color: var(--textColor, #ffffff);
        opacity: 1;
        outline: none;
    }
}

/*Navbar*/
.navbar-static-top {
  background-color:transparent !important;
  box-shadow: none !important;
  /*Blende den Seitentitel und das kleine Logo oben links aus*/
  img:has(+ .siteTitle), .siteTitle{
    display: none !important;
  }

@media (max-width: 1199px) {
  .menu-bar > .navbar-nav {
    background-color: var(--secondaryColor);
    border: 2px solid var(--textColor);
    border-radius: 25px;
    width: 350px;
    float: right;
  }
}
  .menu-bar > .navbar-nav {
    > li {
      .dropdown-menu.dropdown-search .input-group{
        input.form-control{
          border-top-left-radius: 25px;
          border-bottom-left-radius: 25px;
          border: 2px solid white;
      
        }
        .input-group-btn button{
          border-top-right-radius: 25px;
          border-bottom-right-radius: 25px;
          border: 2px solid white;
        }
      }
      &.divider-vertical{
      display: none;
      }
      > a{
        border-radius: 25px;
        &:focus{
          outline:none;
        }
      }
      &:not(.divider-verticalcs){
        margin-right: 2px;
      } 
    }
    
  ul.dropdown-menu {
    border: 2px solid var(--textColor);
    border-radius: 15px !important;
    a {
      margin-left: 3px;
      margin-right: 3px;
      border-radius: 15px;
    }
  } 
 }
}
footer .footer-bottom {
  display: none !important;
  background-color: color-mix(in srgb, var(--secondaryColor) 70%, black) !important;
  padding: 0px !important;
  margin-top: 10px !important;
  .row{
    display:inline-flex;
    }
}
/*.btn.btn-default{
  border-radius: 50px !important;
}*/
.btn.btn-primary:not([title='Search']), .btn.btn-default.button.previous.previous-btn, .button1 {
  color: var(--textColor) !important;
  background: var(--brand-gradient) !important;
  border-radius: 50px !important;
  font-size: 18px !important;
  border: 1px solid #fff !important;
  padding: 10px 25px !important;
  margin-left: 15px !important;
  div.entity-lookup &{
    font-size: 14px !important;
    padding: 7px 20px !important;
  }
}
.btn-primary[title='Search']:hover{
  border-color: rgba(255,255,255, 255);
}
/*Forgot Password-Button should fit the previous LogIn-Button*/
button.btn.btn-primary + a.btn[title="Forgot your password?"]{
  border-radius: 50px !important;
  font-size: 14px !important;
  border: 1px solid #fff !important;
  padding: 10px 25px !important;
  margin-left: 15px !important;
}
.dropdown.action{
.btn-default:hover, .btn-default:active, .btn-default:focus, .btn-default:target, .btn-default:focus-visible, .button2:hover, .button2:active, .button2:focus, .button2:target, .button2:focus-visible {
  background-color: var(--primaryColor) !important;
  color: var(--textColor);
  border-color: var(--textColor);
}
}


@media (min-width: 768px) {
  .col-sm-offset-4:has(button.btn.btn-primary + a.btn[title="Forgot your password?"]) {
    margin-left: 16.66%;
    width: 83.33%;
  }
  button.btn.btn-primary + a.btn[title="Forgot your password?"]{
    font-size: 18px !important;
  }
}

.nav-tabs.nav-account>li>a {
border-radius: 25px;
margin-bottom: 5px;
margin-right: 5px;
}

button:disabled{
  border:unset !important;
}

.entitylist .btn.btn-default {
 border-radius: 25px; 
}

.btn-group>.btn.btn-primary:first-child {
  margin-left: 0px;
}
.bootstrap-datetimepicker-widget tr td button{
  background-color: transparent;
  color:var(--textColor);
}

input.decimal.form-control{
  animation: decimalFieldLoaded 1s;
}

@keyframes gradient {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
}
}

@keyframes decimalFieldIsCreated {  
  from {  
    opacity: 1; 
  }
  to {  
    opacity: 1;
  }  
}

/*Swap "." & "," in static & dynamically generated decimal fields*/
input.text.decimal.form-control {
  animation-duration: 1s;
  animation-name: decimalFieldIsCreated;
}
input.text.money.form-control {
  animation-duration: 1s;
  animation-name: decimalFieldIsCreated;
}


.progress.top {
  height: 20px !important;
  position: relative;
  background: var(--secondaryColor);
  overflow: hidden;
  /* height: 15px; */
  border-radius: 20px;
  padding: 3.5px;
  border: 1px solid #ffffff;    
}

.bar.progress-bar{
  min-width: 20px;
  background: linear-gradient(135deg, #ffffff, #cccccc);
  background-size: 400% 400%;
  animation: gradient 6s ease infinite;
  height: 12px;
  margin: auto;
  border-radius: 20px;
}
.bar.progress-bar>span{
  display: none;
}

/* Scroll bar css settings in global css file like styles.css */
/*IE*/
@media screen and (-ms-high-contrast: active), (-ms-high-contrast: none) {
  html,
  body,
  div {
    scrollbar-face-color: #d1d8da;
    scrollbar-track-color: #dcd5d5;
    scrollbar-3dlight-color: #dcd5d5;
    scrollbar-darkshadow-color: #dcd5d5;
    scrollbar-arrow-color: #dcd5d5;
    -ms-overflow-style: -ms-autohiding-scrollbar; /* this one will hide scroll-bars after sometime */
    scrollbar-width: thin;
  }
}

/* for chrome */
@media screen and (-webkit-min-device-pixel-ratio: 0) {
  *::-webkit-scrollbar {
    width: 12px;
    height: 5px;
    border-radius: 10px;
    display:block;
    background-color: transparent;
  }
  *::-webkit-scrollbar-button {
    display: none;
  }
  *::-webkit-scrollbar-track {
    border-radius: 10px;
  }
  *::-webkit-scrollbar-track-piece {
    background-color: #ffffffaa;
  }
  *::-webkit-scrollbar-thumb {
    border-radius: 10px;
    box-shadow: inset 0 0 6px rgba(0, 0, 0, 0.3);
    background-color: #ffffff;
  }
  *::-webkit-scrollbar-thumb:hover {
    
    background-color: rgb(from #ffffff r g b / 0.8);
  }
}

/* for firefox */
@-moz-document url-prefix() {
  html,
  body,
  div {
    scrollbar-width: auto;
    scroll-behavior: smooth;
    scrollbar-color: #292929 rgba(255,255,255, 0.2);
  }
}