
html, body {
  height: 100%;
}

#app {
  background-color: $color-cloud;
  min-width: 100%;
  min-height: 100%;

  font-family: "Assistant", sans-serif;
}

a:focus,
button:focus,
input:focus,
textarea:focus {
  outline: none;
}

// ------ Gradients ------
.dark-blue-gradient {
  @include linear-gradient(to bottom right, $color-light-dark-blue, $color-dark-blue);
}

.kview-gradient {
  @include linear-gradient(to bottom right, $color-kview-light, $color-kview);
}

// ------ Cards ------
.card {
  border:none;

  &.large-shadow {
    box-shadow: rgba(0, 0, 0, 0) 0px 0px 0px 0px, rgba(0, 0, 0, 0) 0px 0px 0px 0px, rgba(0, 0, 0, 0.1) 0px 4px 6px -1px, rgba(0, 0, 0, 0.06) 0px 2px 4px -1px;
  }

}

.title-vn{
  color: blue;
  font-size: 30px;
  text-align: center;
}



// ----- Inputs ------

.form-group {
  label {
    text-transform: uppercase;
    font-size: 12px;
    color: $color-sub-title;
    margin-bottom: 0px;
  }
}

.form-control {
  &.invalid {
    border-color: $color-danger;

    &:focus {
      box-shadow: 0 0 0 0.2rem rgba(220, 53, 69, .25);
    }
  }

}

.el-select, .el-date-editor {
  &.invalid {
    input.el-input__inner {
      border-color: $color-danger;

      &:focus {
        box-shadow: 0 0 0 0.2rem rgba(220, 53, 69, .25);
      }
    }
  }
}

.el-date-editor {
  .el-icon-date {
    display: none;
  }

  .el-input__inner {
    padding-left: 10px !important;
  }
}


// ----- Button ------

.btn {

  &.btn-hover-icon {
    /**
      Special button with only an icon that shows the text on hover
    */
    transition: max-width 0.3s ease-in-out;
    max-width: 32px;
    overflow: hidden;

    .btn-text {
      display: none;
      opacity: 0;
      transition: opacity 0.3s ease-in-out;
    }

    &:hover {
      max-width: 300px;

      .btn-text {
        display: inline;
        opacity: 1;
      }
    }
  }
}

.btn-rack {
  display: flex;
  align-items: center;
  .btn {
    flex: 1;
    margin-right: 15px;
    margin-left: 15px;
  }

  .btn:first-child{
    margin-left: 0px;
  }

  .btn:last-child{
    margin-right: 0px;
  }
}

//=======================
//====== Dashboard ======
//=======================

#dashboard {

  min-height: 100vh;

  & > .row {
    min-height: 100vh;
  }

  .main-row {
    flex-wrap: nowrap;
  }

  #left-menu {
    .sticky-content {
      position: sticky;
      top: 0;
      height: 100vh;
    }

    background-color: $color-kview-light;
    width: 250px;


    .logo-sidebar {
      width: 100%;
      max-width: 50%;
      display: block;
      margin: 5% 25%;
    }

    .logo-client-sidebar {
      width: 100%;
      max-width: 50%;
      display: block;
      margin: 25%;
      position: absolute;
      bottom: 72px;
    }

    .nav-bar-title {
      font-weight: 600;
      color: white;
      text-align: center;
      letter-spacing: 2px;
      border-bottom: 1px solid;
      border-top: 1px solid;
      padding: 5%;
      margin: 5%;
      font-family: serif;
    }

    #menu-list {
      list-style: none;
      padding: 0px 20px;

      li {
        padding: 10px;

        a {

          width: 100%;
          display: block;

          .icon {
            display: inline-block;
            padding: 10px;
            color: rgba(white, 0.7);
            border-radius: 100%;
            border: 1px solid rgba(white, 0.2);
            width: 45px;
            height: 45px;
            text-align: center;

            transition: border 0.3s, background-color 0.3s;
          }

          .menu-text {
            color: rgba(white, 0.7);
            text-transform: uppercase;
            margin-left: 15px;
            text-decoration: none;

            transition: color 0.3s;
          }

          &:hover {
            text-decoration: none;

            .menu-text {
              color: white;
            }

            .icon {
              color: white;
              border: 1px solid rgba(white, 0.5);
              background-color: rgba(white, 0.2);
            }
          }

          &.active {
            .menu-text {
              color: white;
              text-shadow: 0px 5px 15px rgba(0,0,0,0.5);
            }

            .icon {
              color: white;
              border: 1px solid rgba(white, 0.5);
              background-color: rgba(white, 0.2);
            }
          }
        }
      }
    }
    .user-roles {
      font-size: 10px;
      position: absolute;
      bottom: 42px;
      text-align: center;
      width: 100%;
      color: rgba(255, 255, 255, 0.7);
    }

    .version {
      font-size: 10px;
      position: absolute;
      bottom: 28px;
      text-align: center;
      width: 100%;
      color: rgba(255, 255, 255, 0.7);
    }

    .admin {
      position: absolute;
      bottom: 20px;
      text-align: center;
      width: 100%;
      color: rgba(white, 0.7);

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

    /** Small screens */
    @include media-breakpoint-down(lg) {
      width: 50px;

      .nav-bar-title {
        font-size: 0.5em;
        padding-bottom: 10%;
        padding-top: 10%;
      }

      #menu-list {
        list-style: none;
        padding: 0px;

        li {
          padding: 7px;

          a {
            .icon {
              width: 35px;
              height: 35px;
              padding: 5px;
            }
            .menu-text {
              display: none !important;
            }
          }
        }
      }

      a.admin {
        font-size: 10px;
      }
    }
  }

  #content {
    @include media-breakpoint-down(lg) {
      max-width: calc(100% - 50px);
    }
  }

  #top-menu {
    height: 50px;
    background-color: white;
    border:none;
    box-shadow: rgba(0, 0, 0, 0) 0px 0px 0px 0px, rgba(0, 0, 0, 0) 0px 0px 0px 0px, rgba(0, 0, 0, 0.1) 0px 4px 6px -1px, rgba(0, 0, 0, 0.06) 0px 2px 4px -1px;

    .dashboard-search {
      .icon {
        padding: 13px;
        padding-left: 0px;
        padding-right: 0px;
      }

      .general-search {
        margin-top: 6px;
        border: none;
        width: 100%;

        input {
          border: none;

          &:focus {
            outline: none;
            border: none;
            box-shadow: none;
          }
        }

      }
    }

    .actions {
      padding: 10px;

      a {
        color: $color-kview;
        font-size: 20px;
        margin-left: 5px;
        margin-right: 5px;

        &:hover {
          color: $color-kview-light;
        }
      }
    }
  }

  .main-card {
    width: 100%;

    .card-body {
      padding: 40px;

      .card-title {

        .card-back {
          margin-top: 5px;
          color: black;
          &:hover {
            text-decoration: none;
            color: $color-kview-light;
          }
        }
      }

      .card-table, .card-tabs {
        margin-right: -40px;
        margin-left: -40px;

        .smart-table {
          margin-bottom: -40px;
        }

        .table {
          margin-bottom: 0px;

          thead {
            text-transform: uppercase;
            font-size: 14px;
          }
        }

        .el-tabs__header {
          margin-bottom: 0px;
        }
      }
    }

    .card-fixed-top {
      margin-top: -40px;
      padding-top: 40px;
      position: sticky;
      top: 0px;
      z-index: 1;
      background-color: white;

      &.shadow {
        box-shadow: rgba(0, 0, 0, 0) 0px 0px 0px 0px, rgba(0, 0, 0, 0) 0px 0px 0px 0px, rgba(0, 0, 0, 0.1) 0px 4px 6px -1px, rgba(0, 0, 0, 0.06) 0px 2px 4px -1px;
      }
    }


  }
}

// ----- Poppers elem ---

.general-search-popper {
  .item {
    .name {
      font-weight: 500;
      color: black;
    }
  }
}


// ------ Main Row Card ----
.responsive-row {
  padding: 1rem;

  @include media-breakpoint-down(sm) {
    padding: 0px !important;

    .card.large-shadow {
      box-shadow: none;
      border-top: 1px solid $color-border;
      border-radius: 0px;
    }
  }
}

