:root {
  --primary-300: #182342;
  --primary-200: #58607d;
  --primary-100: #9196a9;
  --secondary-200: #58657d;

  --bg-menus: #f1f1f1;
  --menu-item-header-color: #666666;
  --menu-item-a-color: #a4a5a7;
}

html {
  font-size: 14px;
}

@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
  box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

html {
  position: relative;
  min-height: 100%;
}

body {
  margin-bottom: 10px;
  padding-top: 60px;
  padding-left: 50px;
}

.form-floating > .form-control-plaintext::placeholder, .form-floating > .form-control::placeholder {
  color: var(--bs-secondary-color);
  text-align: end;
}

.form-floating > .form-control-plaintext:focus::placeholder, .form-floating > .form-control:focus::placeholder {
  text-align: start;
}

.layout-top{
  background-color: #3a4354 !important;
}

.page-title {
    color: #182342;
    font-size: 20px;
    padding-bottom: 12px;
    font-weight: 400 !important;
}

.plr-20 {
    padding-right: 10px !important;
    padding-left: 10px !important;
}

.pb-20 {
    padding-bottom: 20px !important;
}

.content-navbar-offsets {
    padding-left: 10px;
    padding-right: 10px;
    padding-top: 24px;
}

.buttonToolbar {
  height: 36px;
}

.fullWidthOnLargeDevice-div {
    width: 50%;
    display: flex;
    flex-direction: column;
}

.divAlignRight {
    align-self: flex-end;
}

/*Top navbar*/
#searchBox {
    background: transparent !important;
    border: 1px solid #999999 !important;
    opacity: 50% !important;
}

.navbar-top {
  height: 55px;
  line-height: 55px;
  width: 100%;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background-color: #3a4354;
  z-index: 9999;
}

.navbar-top-logo {
  /*    position: fixed;*/
  background-color: var(--primary-300) !important;
  height: 55px;
  float: left;
}

#navbar-top-logo-img {
  width: 100%;
  height: 55px;
  vertical-align: top;
}

.navbar-top-close-img {
  float: right;
  width: 46px;
}

#navbar-top-indicator {
  animation: fadeInDelayed 1s;
  float: right;
  margin-right: 20px;
  color: #bbb9d6;
}

#navbar-top-login-details {
  position: relative;
  float: right;
  vertical-align: top;
  padding-right: 10px;
  font-size: 13px;
  font-family: Calibri, Arial, sans-serif;
  text-align: right;
  color: #bbb9d6;
}

#navbar-top-icons {
    /*animation: fadeIn 1s;*/
    position: relative;
    float: right;
    vertical-align: top;
    line-height: 55px;
    padding-top: 12px;
    padding-right: 15px;
}

.navbar-top-language {
  padding-top: 0;
}

.navbar-top-language-picker {
  height: 28px;
  min-width: 110px;
  border: 1px solid #bbb9d6;
  border-radius: 4px;
  background-color: #3a4354;
  color: #f3f4f6;
  font-size: 13px;
  line-height: 28px;
}

.navbar-top-icons-img {
    position: relative;
    float: left;
    padding-top: 3px;
    line-height: 26px;
    margin-bottom: 12px;

    > svg, > a > svg {
        color: #182342 !important;
        fill: #182342 !important;
        height: 24px;
        width: 24px;
    }

    svg {
        color: #182342 !important;
        fill: #182342 !important;
    }
}

.navbar-top-icons-pl {
  padding-left: 45px;
}

#navbar-top-search {
  float: left;
  padding-left: 20px;
  display: flex;
  align-items: center;
  height: 55px;
}

/* Dropdown menu */
.menu-dropdown {
  position: relative;
  display: inline-block;
}


.menu-dropdown-content {
    display: none;
    position: absolute;
    right: 0;
    background-color: #f1f1f1;
    min-width: 200px;
    box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
    z-index: 10001;
    padding: 0px 0;
    font-size: 12px;
    color: #666666;
}

    .menu-dropdown-content a {
        color: #666666;
        padding: 9px 16px;
        text-decoration: none;
        display: flex;
        align-items: center;
        gap: 10px;
    }

        .menu-dropdown-content a:hover {
            background-color: #dddddd;
        }

.menu-dropdown:hover .menu-dropdown-content {
  display: block;
}

.menu-dropdown-content svg {
  width: 20px;
  height: 20px;
  fill: #333;
}

.language-button {
    border: none;
    background: transparent;
    padding: 5px;
    cursor: pointer;
}

@media screen and (max-width: 1280px) {

    #navbar-top-login-details {
        visibility: hidden;
    }

    .fullWidthOnLargeDevice-div {
        width: 100%;
    }
}

@media screen and (max-width: 1024px) {
  .navbar-top {
    Height: 44px;
    line-height: 44px;
  }

  .navbar-top-logo {
    height: 44px !important;
    margin-right: 0px;
  }

  .content-offsets {
    padding-left: 0px;
    padding-top: 50px;

  }

  .content-navbar-offsets {
    padding-left: 0;
    padding-top: 44px;
  }

  #navbar-top-logo-img {
    width: 100%;
    height: 44px;
  }

  #navbar-top-icons {
    position: relative;
    float: right;
    vertical-align: top;
    line-height: 55px;
    padding-top: 8px;
    padding-right: 15px
  }

  #navbar-top-icons {
    visibility: hidden;
  }

}

@media screen and (max-width: 765px) {
  #DivLoginDetails {
    display: none;
  }
}

/*Sidebar*/

#navbar-side > ul > li > button {
  background-color: transparent;
  border-width: 0;
  font-family: inherit;
  font-size: inherit;
  font-style: inherit;
  font-weight: inherit;
  line-height: inherit;
  padding: 0;
}

#navbar-side {
  > .sm-trigger {
    visibility: hidden;
    position: fixed;
    right: 15px;
    top: 0;
    width: 40px;
    height: 44px;
    z-index: 10000;

    button {
      background: transparent;
      padding: 10px;
      width: 40px;
      height: 46px;

      svg {
        margin: auto;
      }
    }
  }

  > ul {
    background-color: #3a4354;
    width: 50px;
    position: fixed;
    top: 0;
    left: 0;
    padding-top: 55px;
    padding-left: 0;
    min-height: 100%;
    z-index: 1000;

    > li {
      /*animation: fadeIn 200ms;*/

      > button {
        padding: 10px;
        width: 100%;
        height: 46px;

        > svg {
          margin: auto;
          color: rgb(243 244 246);
        }
      }

      > ul { /* Menu containing level 2 and up */
        font-size: 16px;
        font-family: Calibri, Arial, sans-serif;
        visibility: hidden;
        position: fixed;
        overflow-scrolling: auto;
        overflow-y: auto;
        top: 55px;
        left: 50px;
        bottom: 50px;
        right: 0;
        padding-bottom: 50px;
        padding-left: 0;
        padding-right: 10px;
        background-color: #ffffff;
        box-shadow: 9px 9px 26px 3px rgba(212, 212, 212, 0.48);
        width: 82%;
        /*                min-width: 30%;*/
        /*                max-width: 80%;*/
        z-index: 9999;
        display: flex;
        flex-direction: row;
        flex-wrap: wrap;
        gap: 42px;
        > .htmx-indicator {
          margin-left: 30px;
          margin-top: 30px;
        }

        > li { /* Level 2 items */
          display: flex;
          flex-direction: row;

          > ul { /* Level 3 container */
            display: flex;
            flex-direction: row;
            flex-wrap: wrap;
            gap: 20px;

            > li { /* Level 3 items */
              margin-left: 20px;
              margin-top: 20px;
              display: flex;
              flex-direction: row;

              > div {
                width: 25px;
                height: 25px;
                background-color: var(--secondary-200);

                > img {
                  margin: auto;
                }
              }

              > ul { /* Level 4 container */
                margin-top: 16px;
                margin-left: 10px;
                padding-left: 0;
                display: flex;
                flex-direction: column;
                flex-wrap: wrap;
                gap: 3px;

                > li { /* */
                  margin-left: 15px;

                  > a {
                    text-decoration: none;
                    color: var(--menu-item-a-color);
                    line-height: 22px;
                  }

                  > details {
                    > summary { /* Level 4 title when it has level 5 sub items */
                      text-decoration: none;
                      color: var(--menu-item-a-color);
                      line-height: 27px;
                      margin-left: -14px;
                    }

                    > ul { /* Level 5 container */
                      padding-left: 0;
                      margin-left: 10px;

                      > li > a {
                        text-decoration: none;
                        color: var(--menu-item-a-color);
                        line-height: 27px;
                      }
                    }
                  }
                }

                > span {

                  color: var(--menu-item-header-color);
                }

                > a {

                  text-decoration: none;
                  color: var(--menu-item-header-color);
                }
              }
            }
          }

        }
      }

      &:open, &:focus-within {
        background-color: var(--primary-300);

        > ul {
          visibility: visible;
        }
      }
    }
  }
}
@media screen and (max-width: 1024px) {
  #navbar-side > .sm-trigger {
    visibility: visible;
  }

  #navbar-side > .sm-trigger:hover + ul {
    visibility: visible;
  }
}

/* level 1 start */
#navbar-side > .sm-trigger:hover,
#navbar-side:hover > .sm-trigger,
#navbar-side:focus-within > .sm-trigger,
#navbar-side > ul > li:hover,
#navbar-side > ul > li:focus-within {
  background-color: var(--primary-100);
}

#navbar-side > ul > li:hover ~ li {
  background-color: transparent !important;
}

@media screen and (max-width: 1024px) {
  #navbar-side:hover > ul, #navbar-side:focus-within > ul {
    visibility: visible;
  }

  #navbar-side > ul {
    background-color: var(--primary-300);
    min-height: 50px;
    width: 100%;
    visibility: hidden;
  }

  #navbar-side > ul {
    padding-right: 15px;
    padding-left: 5px;
    display: flex;
    flex-direction: row;
    justify-content: flex-end;
  }

  #navbar-side > ul > li > ul {
    top: 90px;
    left: 0;
    bottom: 0;
    right: 0;
  }

  #navbar-side > ul {
    padding-top: 44px;
  }
}
