
.card-content > .row:last-child {
  margin-bottom: 0;
}

ul.browser-default {
  list-style-type: disc;
  li {
    margin-left: 20px;
    list-style-type: disc;
  }
}

nav {
  background-color: @theme-color-header-background !important;

  .brand-logo {
    font-size: 30px;
  }

  .activateLeftMenu {
    float: left;
  }

  .activateTopMenu {
    float: right;
  }

  .icon-more-verti,
  .icon-menu-hamburger {
    // nav{line-height:56px} - {padding:10+10px}
    font-size: 36px;
    padding: 8px 10px 10px;
    display: inline-block;
    cursor: pointer;
    color: @theme-color-header-text;
  }

  @media only screen and (min-width: 601px) {
    .icon-more-verti,
    .icon-menu-hamburger {
      // nav{line-height:64px} - {padding:10+10px}
      font-size: 48px;
    }
  }

  .side-nav {
    .languageSelection {
      display: block !important;
      color: #444;
      padding: 0 30px;
      .items {
        margin-left: 0 !important;
        .item {
          height: auto;
        }
      }
    }
  }

  ul.right.hide-on-med-and-down {
    margin-right: 4px;
  }

  .languageSelection {
    &:hover {
      background-color: rgba(0,0,0,0.1);
    }
  }

  ul:not(#mobile-top-menu) {
    .languageSelection {
      .title {
        color: @theme-color-header-text;
      }
    }
  }

  ul a {
    color: @theme-color-header-text;

    &:hover {
      text-decoration: none;
    }
  }
}

 .navbar {
   a {
     text-decoration: none;
     &:hover, &:focus {
       text-decoration: none;
     }
   }
 }

 // start #secondNavBar fadeInLeft animation
 @-webkit-keyframes fadeInLeft {
   0% {
     opacity: 0;
     -webkit-transform: translateX(-20px);
   }
   100% {
     opacity: 1;
     -webkit-transform: translateX(0);
   }
 }
 @keyframes fadeInLeft {
   0% {
     opacity: 0;
     transform: translateX(-20px);
   }
   100% {
     opacity: 1;
     transform: translateX(0);
   }
 }
 // end #secondNavBar fadeInLeft animation

#root {

  .pageWrap {
    padding-left: 18px;
    padding-right: 18px;
  }

  #secondNavBar {
    box-shadow: none !important;
  }

  #secondNavBar + .pageWrap {
    margin-left: 224px;
  }

    &>.top_controls {
      .icon-arrowup:before, .icon-arrowdown:before {
      padding: 17px 0 0 0px;
      display: inline-block;
      cursor: pointer;

      @media screen and (max-width: 600px) {
        display: none;
      }
    }
  }

  @media only screen and (min-width: 993px) {
    ~ .drag-target {
      display: none !important;
    }
  }

  @media all and (max-width: 992px) {
    .pageWrap {
      margin-left: 0 !important;
    }
  }

  @media all and (max-width: 600px) {

    .top_controls {
      height: auto;

      .piwikTopControl {
        position: static !important;
        float: none;
        margin: 0 23px 10px 17px !important;
        display: block !important;
      }

      .piwikSelector {
        > a.title {
            max-width: none;
        }

        display: block;
      }

      .quick-access {
        width: auto !important;

        .icon-search {
          left: 30px;
        }
      }
    }
  }

  #ajaxLoadingDiv {
    margin-top: 10px;
  }

  #secondNavBar {
    width: 224px;
    float:left;
    background-color: @theme-color-menu-contrast-background;

    .navbar {
      padding-top: 16px;
      padding-bottom: 20px;

      .menu-icon {
        padding-right: 13px;
      }

      > li {
        display: block;
        width: 100%;
        .border-radius(0px);
        border: 0;
        background: none;
        position: relative;

        .item {
          width: 100%;
          padding: 12px 21px 12px 19px;
          word-wrap: break-word;
          word-break: break-word;
        }

        .item,.item-help-icon {
          display: inline-block;
          .font-default(13px, 21px);
          color: @theme-color-menu-contrast-text;
        }

        .item-help-icon {
          display:none;
          opacity: 0.2;
          position: absolute;
          right: 21px;
          top: 0px;
          line-height: 13px;
          padding-left: 16px;
          padding-right: 16px;
          height: calc(100%);

          > span {
            position: relative;
            top: 12px;
          }
        }

        &.menuTab li:hover {
          .item-help-icon:not(.active) {
            display:inline-block;
            color: @color-black-piwik;

            &:hover {
              color: @theme-color-help-background-color;
              opacity: 0.75;
            }
          }
        }

        .item-help-icon.active {
          display: inline-block;
          color: @theme-color-help-background-color;
          opacity: 0.75;
        }

        > .item {
          cursor: default;
          font-weight: bold;
          &:hover, &:focus {
            text-decoration: none;
          }
        }

        > ul {
          position: relative;

          li {
            position: relative;
            .item {
              .font-default(13px, 16px);
              padding: 11px 22px 11px 45px;
              text-decoration: none;
              transition: background-color 200ms linear;
              &:hover, &:focus {
                text-decoration: none;
                color: @theme-color-menu-contrast-textActive;
                background-color: @theme-color-background-base;
              }
            }

            &.active {
              > .menuDropdown,
              > .item {
                color: @theme-color-menu-contrast-textSelected;
                background-color: @theme-color-background-base;
                text-decoration: none;
              }
            }
          }
        }
      }

      .menuTab > .item-help-icon {
        top: 14px;
      }

      .menuDropdown {
        width: 100%;

        .items {
          width: 224px;
          box-shadow: 0 1px 2px 0 rgba(0,0,0,.14),0 3px 1px -2px rgba(0,0,0,.2),0 1px 5px 0 rgba(0,0,0,.12);

          .search {
            margin: 15px 16px 10px 17px;
          }

          .item {
            padding: 10px 16px 10px !important;
            min-height: 25px;
            height: auto;
          }
        }

        .title {
          color: @theme-color-menu-contrast-text;
          display: block;
          padding: 15px 22px 11px 45px;
          font-size: 13px;
          font-weight: normal;
          word-wrap: break-word;
          word-break: break-all;

          &:hover, &:focus {
            color: @theme-color-menu-contrast-textActive;
          }

          &:after {
            color: @theme-color-menu-contrast-text;
            border-top: 5px solid @theme-color-menu-contrast-text;
            top: 20px;
            right: 3px;
          }
        }
      }
    }

    &.Menu--dashboard .navbar > li {
      > ul {
        display: none;

        @media all and (max-width: 749px) {
          display: block;
        }
      }

      > .item {
        cursor: pointer;
        &:hover, &:focus {
          color: @theme-color-menu-contrast-textActive;
        }
      }

      &.active {
        ul {
          display: block;
        }

        .icon-arrow-right:before {
          content: "\e63b";
        }
      }
    }

    &.Menu--admin .navbar > li {
      > .item {
        padding: 14px 21px 6px 19px;
      }
      .item .icon-arrow-right:before {
        content: "\e63b";
      }
      .menu-icon {
        padding-right: 13px;
      }
    }

    .collapsible {
      margin: 0;
      border: 0;
    }

    .collapsible-header {
      border-bottom: 0;
      cursor: pointer!important;
      color: @theme-color-header-text;
      & when (@theme-color-header-text = #ffffff) {
        color: unset;
      }
    }

    .collapsible-body {
      border-bottom: 0;
      padding: 0;
    }
  }
}

#root {
  .top_controls {
    visibility: hidden;
    opacity: 0;
    z-index: 45;
    padding-left: 16px;

    @media screen and (max-width: 600px){
      visibility: hidden;
      opacity: 0;
      z-index: 45;
      padding-left: 0;
    }

    .quick-access {
      z-index: 1000;
      position: absolute;
      width: 208px;
      margin-left: 0;

      @media screen and (max-width: 600px){
        z-index: 1000;
        position: absolute;
        width: 208px;
        margin-left: 16px;
      }

      .dropdown {
        width: 209px;
        padding: 0;
      }

      input {
        height: 33px;
        font-size: 11px;
        padding: 10px 12px 10px 30px;
        border: 0;
        margin: 0;
        box-sizing: border-box;
        border-radius: 2px !important;
        box-shadow: none!important;
      }

      input::placeholder {
        color: #a9a9a9;
      }
    }

    .piwikTopControl {
      margin-top: 10px;
      margin-bottom: 10px;
    }
  }
}

#root, #standalone {
  .top_controls {
    min-height: 51px;
    position: relative;
    background-color: @theme-color-background-base;
    height: auto;
    margin-bottom: 8px;
    margin-top: 8px;

    .piwikTopControl {
      display: inline-block;
      float: none;
      position: relative;
      margin-right: 14px;
      vertical-align: top;
      font-size: 11px;
    }
  }
}

#root, #standalone, .ui-dialog, .ngdialog {
  .borderedControl {
    background-color: @theme-color-background-base;
    border: 0;
    transition: box-shadow 150ms linear;
    box-shadow: 0 1px 4px rgba(0,0,0,0.3);
    border-radius: 2px;
    &.expanded,
    &:hover, &:focus {
      background-color: @theme-color-background-contrast;
    }
  }
}

.widgetize {
  width: auto;
}

@media print {

  #secondNavBar{
    display: none;
  }

  nav .icon-menu-hamburger, nav .icon-more-verti{
    display: none;
  }

  nav ul a{
    display: none;
  }

  #root, #standalone {
    .dashboard-manager{
      display: none !important;
      visibility: hidden !important;
    }
  }

  #root{
    #secondNavBar + .pageWrap {
      margin-left: 0px;
    }

    .top_controls{
      .quick-access {
      display: none !important;
      }
    }
  }

  .dataTableAction{
    display: none !important;
  }

  .select-dropdown, .caret{
    display: none !important;
  }

  .dataTable td .ratio{
    margin-right: 4px;
    visibility: visible;
  }
  .dataTableFooterNavigation > .row{
    margin-bottom: -20px !important;
  }
}

.z-depth-1, nav, .card-panel, .card, .toast, .btn, .btn-large, .btn-floating, .dropdown-content, .collapsible, .side-nav {
  box-shadow: @default-box-shade;
}
#root .borderedControl, #standalone .borderedControl, .ui-dialog .borderedControl, .ngdialog .borderedControl {
  box-shadow: @default-box-shade;
}
