@screenwidth-small: ~"only screen and (max-width: 420px)";
@screenwidth-medium: ~"only screen and (max-width: 758px)";

@bezier_transition:all 550ms cubic-bezier(0.23, 1, 0.32, 1) 0ms;
@reactBoxShadowDepth1:0 3px 6px rgba(0,0,0,.16),0 3px 6px rgba(0,0,0,.23);
@keyframes fadein {
    from { opacity: 0; }
    to   { opacity: 1; }
}

.home-top-logo{
  height: 110px;
  @media @screenwidth-medium{
    height: 55px;
    float: right;
    margin-right: 16px;
  }
}

div.user-dashboard-main{

  .admin-helper-panel {

    position: absolute;
    top: 55px;
    bottom: 0;
    padding-top: 0;
    right: 260px;
    z-index: 1400;
    width: 316px;
    background-color: rgba(255, 255, 255, 0.89);

    .mui-paper-container {
      height: 100%;
      overflow-y: auto;
    }
    h3 {
      background-color: #FF6E40;
      color: white;
      text-align: left;
      padding: 12px 12px 11px;
      font-size: 17px;
    }
    .pydio-form-panel {
      .pydio-form-group {
        margin-top: 0;
      }
    }
    .legend {
      padding: 0 17px;
      color: #878787;
      font-size: 12px;
      line-height: 17px;
    }
    .widget-type-selector {
      border: 1px solid #E0E0E0;
      margin-left: 16px;
      border-radius: 3px;
      margin-top: 8px;
      width: 280px;
    }
  }


  .home-dashboard {
    position: static;
    width: auto;
    height: 100%;
    padding: 0;
    overflow: auto;
    background-color: transparent;
  }

  .home-center-paper{
    @media @screenwidth-medium{
      left: 10px !important;
      right: 10px !important;
    }
  }

  div.react-grid-layout.dashboard-layout{

    @media @screenwidth-medium{
      display: none;
    }

    .video-card {
      .tutorial_legend {
        display:flex;
        flex-direction:column;
        height: 100%;
      }
      .tutorial_content{
        flex: 1;
        padding: 16px;
        position: relative;
        overflow-y: auto;
        font-size: 16px;
        line-height: 1.6em;
        h2{
          display:none;
        }
        ul{
          padding-left: 20px;
        }
      }
      div.tutorial_video_thumb{
        height: 170px;
        min-height: 170px;
        background-color: black;
        background-position: center center;
        background-size: cover;
        background-repeat: no-repeat;
        border-radius: 2px;
        position: relative;
        .tutorial_prev, .tutorial_next, .tutorial_play{
          opacity: 0;
          position: absolute;
          z-index: 100;
          color: rgba(255,255,255,0.83);
          font-size: 30px;
          background-color: rgba(0,0,0,0.43);
          border-radius: 50%;
          padding: 8px;
          top: 41px;
          left: 5px;
          cursor: pointer;
          transition: @bezier_transition;
          &.tutorial_next{
            left: initial;
            right: 5px;
          }
          &.tutorial_play{
            left: 94px;
            opacity: 1;
            background-color: rgba(255, 255, 255, 0.78);
            color: rgba(0, 0, 0, 0.4);
            font-size: 40px;
            top: 36px;
          }
        }
        &:hover{
          .tutorial_prev, .tutorial_next{
            opacity: 1;
          }
        }
        .tutorial_title > span{
          color: rgba(0,0,0,0);
          h2{
            letter-spacing: 0;
            display: block;
            white-space: nowrap;
            text-overflow: ellipsis;
            overflow: hidden;
            font-weight: 400;
            font-size: 16px;
            color: white;
            position:absolute;
            bottom: 0;
            left: 0;
            right: 52px;
            background-color: rgba(0,0,0,0.43);
            padding: 16px 0 16px 12px;
            line-height: 20px;
            margin: 0;
            border-radius: 0 0 0 2px;
          }
        }
      }
      div.tutorial_load_button {
        display: block;
        padding: 5px 18px 16px;
        cursor: pointer;
        text-align: right;
        text-transform: uppercase;
        font-weight: 500;
        font-size: 15px;
        color: #009688;
      }
    }

    div.recently-accessed-list{
      &.table-mode{
        div.toolbarTableHeader.mui-toolbar{
          border-radius: 2px 2px 0 0;
          border-bottom: 0 !important;
          .mui-toolbar-group{
            font-size: 16px !important;
            font-weight: 400 !important;
            color: rgb(255, 255, 255) !important;
          }
        }
      }
      &.files-list{
        .material-list-entry{
          border-bottom: 1px solid rgba(255, 255, 255, 0.1);
          .material-list-icon {
            width: 64px;
            .covering-bg-preview, .mimefont-container{
              height: 30px;
              width: 30px;
              margin: 14px;
            }
            .mimefont-container{
              background-color: transparent;
              border: 1px solid white;
              .mimefont{
                color: #ffffff;
                font-size:17px;
              }
            }
          }
          .material-list-text{
            color: white;
            padding: 10px 0;
            .material-list-line-2{
              color: rgba(255,255,255,0.53);
            }
          }
        }
      }
    }

  }
}

