
/* ---------------------------------- */
/* Dashboard Elements
------------------------------------- */

/* Dashboard Headline
------------------------------------- */

.dashboard-headline {
  display: block;
  position: relative;
  margin-bottom: 50px;
  h3 {
    display: block;
    font-size: 26px;
    color: $body-heading-color;
  }
  span {
    display: block;
    font-size: 18px;
    color: #888;
    line-height: 30px;
    margin-top: 5px;
  }
  #breadcrumbs {
    right: 0;
  }
}

/* Fun Facts
------------------------------------- */

.fun-facts-container {
  display: flex;
  flex-wrap: wrap;
  width: calc(100% + 30px);
  margin-bottom: -30px;
}

.fun-fact {
  background-color: #fff;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
  border-radius: $global-border-radius;
  padding: 25px;
  margin-right: 30px;
  margin-bottom: 30px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  flex: 1 1 calc(25% - 30px);
  height: auto;
  cursor: default;
  transition: 0.3s;
}

/* IE 11 Fixes */
@media screen and (-ms-high-contrast: active), screen and (-ms-high-contrast: none) {
  .fun-fact {
    flex: 1;
  }
}

/* IE 11 Fixes - End */

.fun-fact-icon {
  border-radius: $global-border-radius;
  background-color: rgba(0, 0, 0, 0.04);
  flex: 0 0 100px;
  height: 100px;
  display: flex;
  text-align: center;
  i {
    font-size: 48px;
    align-self: center;
    margin: 0 auto;
    color: $body-font-color;
    &.icon-material-outline-gavel {
      transform: scale(0.91);
    }
  }
}

.fun-fact-text {
  flex: 1;
  margin-right: 20px;
}

.fun-fact {
  span {
    font-size: 18px;
    color: #888;
    line-height: 22px;
  }
  h4 {
    font-size: 38px;
    color: $body-heading-color;
    line-height: 38px;
    margin-top: 5px;
  }
}

/* Dashboard Box
------------------------------------- */

.dashboard-box {
  display: block;
  border-radius: $global-border-radius;
  background-color: #fff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  margin-top: 30px;
  position: relative;
  .headline {
    display: block;
    padding: 20px 30px;
    border-bottom: 1px solid #e4e4e4;
    position: relative;
    h3 {
      font-size: $body-font-size;
      font-weight: 600;
      color: $body-heading-color;
      line-height: $body-sub-line-height;
      i {
        color: $primary-color;
        font-size: 21px;
        line-height: 0;
        position: relative;
        top: 2px;
        margin-right: 4px;
        &.icon-material-outline-gavel {
          font-size: 20px;
        }
        &.icon-material-outline-supervisor-account {
          font-size: 24px;
          top: 3px;
        }
        &.icon-feather-folder-plus {
          font-size: 20px;
          top: 2px;
          margin-right: 5px;
        }
      }
    }
  }
}

/* Pixel Perfect Adjustment */

.button.big i.icon-feather-plus {
  font-size: 20px;
  top: 2px;
  margin-left: -4px;
  margin-right: 5px;
}

/* Pixel Perfect Adjustment - End */

.dashboard-box {
  .content.with-padding {
    padding: 30px;
  }
  .chart {
    padding: 30px 20px 17px 18px;
  }
  .headline {
    .sort-by {
      float: none;
      display: inline-block;
      position: absolute;
      top: calc(50% + 3px);
      transform: translateY(-50%);
      right: 30px;
      z-index: 100;
      height: 33px;
    }
    .bootstrap-select.btn-group .dropdown-toggle .filter-option {
      font-weight: 500;
      color: $body-font-color;
    }
  }
}

/* Note
------------------------------------- */

.dashboard-note {
  border-radius: $global-border-radius;
  background-color: #f8f8f8;
  padding: 25px;
  padding-top: 20px;
  margin-bottom: 20px;
  position: relative;
  &:last-child {
    margin-bottom: 65px;
  }
  &:before {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    border-width: 0 20px 20px 0;
    border-style: solid;
    border-color: rgba(0, 0, 0, 0.15) #fff;
    transition: 0.3s;
    border-radius: 0 0 0 4px;
  }
  p {
    line-height: 24px;
    margin-bottom: 20px;
    color: #777;
    font-size: 14.7px;
  }
}

.note-priority {
  background-color: #333;
  border-radius: $global-border-radius;
  color: #fff;
  font-size: 14px;
  padding: 5px 9px;
  display: inline-block;
  line-height: 20px;
  &.high {
    background-color: #dc3139;
  }
  &.medium {
    background-color: #f59110;
  }
  &.low {
    background-color: #3fb660;
  }
}

.note-footer {
  display: flex;
}

.note-buttons {
  align-self: center;
  margin-left: auto;
  a {
    font-size: $body-font-size;
    padding-left: 3px;
    margin-top: 2px;
    display: inline-block;
    color: #888;
    &:hover {
      color: #444;
    }
  }
}

.add-note-button {
  position: absolute;
  bottom: 0;
  width: 100%;
  left: 0;
  right: 0;
  padding: 30px;
  padding-top: 10px;
  background: #fff;
  border-radius: $global-border-radius;
  width: calc(100% - 15px);
  a.button {
    width: calc(100% + 15px) !important;
    max-width: calc(100% + 15px) !important;
  }
}

/* Dashboard Box List
------------------------------------- */

ul.dashboard-box-list {
  list-style: none;
  padding: 0;
  margin: 0;
  > li {
    border-bottom: 1px solid #e4e4e4;
    padding: 0;
    line-height: $body-sub-line-height;
    padding: 22px 30px;
    display: flex;
    align-items: center;
    position: relative;
    width: 100%;
    flex-flow: row wrap;
    transition: 0.3s;
    &:last-child {
      border-bottom: none;
    }
    &:hover {
      background-color: #fcfcfc;
    }
  }
}

.dashboard-box-list {
  .notification-text {
    font-size: 14.7px;
    flex: 1;
  }
  .notification-icon {
    flex: 0 0 40px;
  }
  .notification-text .star-rating {
    position: relative;
    top: -18px;
    line-height: 0;
    height: 0;
    display: inline-block;
    margin: 0 3px;
    transform: scale(0.93);
  }
}

/* Dashboard Box List Buttons
------------------------------------- */

.buttons-to-right {
  position: absolute;
  right: 30px;
  top: 50%;
  transform: translateY(-50%);
  opacity: 0;
  transition: 0.3s;
  box-shadow: 0px 0px 10px 15px #fff;
  background-color: #fff;
}

.dashboard-box-list {
  .button.to-right {
    position: absolute;
    right: 30px;
    top: 50%;
    transform: translateY(-50%);
    opacity: 0;
    transition: 0.3s;
    box-shadow: 0px 0px 10px 15px #fff;
    background-color: #fff;
  }
  .buttons-to-right.always-visible, li:hover .buttons-to-right {
    opacity: 1;
  }
  .buttons-to-right.always-visible:not(.single-right-button) {
    position: relative;
    transform: none;
    top: 0;
    margin: 5px 0 10px -2px;
    opacity: 1;
    right: auto;
    display: inline-block;
    box-shadow: none;
    width: 100%;
    background-color: transparent;
    box-shadow: none;
  }
  .button {
    padding: 6px 15px;
    line-height: 20px;
    font-size: 13px;
    font-weight: 600;
    margin: 0;
    display: inline-block;
    box-shadow: 0 3px 8px rgba($primary-color, 0.15);
    i[class*="icon-material"] {
      font-size: 18px;
      top: 3px;
      margin-right: 2px;
      margin-left: -2px;
    }
  }
  .buttons-to-right {
    .button {
      margin: 0 0 -6px 2px;
    }
    &.always-visible .button {
      margin: 0 3px 0 0;
    }
  }
}

.dashboard-box {
  .button {
    &.red {
      background-color: #dc3139;
      box-shadow: 0 3px 8px rgba(234, 65, 81, 0.15);
    }
    &.green {
      background-color: #40b660;
      box-shadow: 0 3px 8px rgba(64, 182, 96, 0.15);
    }
    &.dark {
      background-color: #333333;
      box-shadow: 0 3px 8px rgba(0, 0, 0, 0.1);
    }
    &.gray {
      background-color: #eee;
      color: $body-font-color;
      box-shadow: none;
    }
  }
  .dashboard-box-list .button:not(.ico):hover {
    color: #fff;
    background-color: #333333;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.1);
  }
  .button {
    &.red:not(.ico):hover, &.green:not(.ico):hover, &.gray:not(.ico):hover {
      color: #fff;
      background-color: #333333;
      box-shadow: 0 3px 8px rgba(0, 0, 0, 0.1);
    }
    &.dark:not(.ico):hover {
      background-color: $primary-color;
      box-shadow: 0 3px 8px rgba($primary-color, 0.15);
    }
    &.ico {
      width: 32px;
      text-align: center;
      i {
        font-size: 15px;
        margin-left: -7px;
        top: 2px;
        position: relative;
      }
    }
    i.icon-material-outline-check {
      margin-left: -5px;
    }
    &.ico i[class*="icon-material"] {
      font-size: 18px;
      margin-left: -8px;
      top: 3px;
      position: relative;
    }
  }
}

/* Hovers */

.dashboard-box-list {
  box-shadow: none;
  a.button i {
    margin: 0;
    padding: 0;
    position: relative;
    top: 1px;
    font-size: 14px;
    line-height: 0;
    margin-left: -2px;
  }
}

.dashboard-box .mark-as-read {
  float: none;
  background-color: #f4f4f4;
  position: absolute;
  right: 30px;
  top: 18px;
}

.button-info {
  background: rgba(255, 255, 255, 0.25);
  color: #fff;
  width: 19px;
  height: 19px;
  display: inline-block;
  text-align: center;
  line-height: 19px;
  border-radius: 50%;
  font-size: 11px;
  font-weight: 700;
  margin-left: 3px;
  margin-right: -2px;
}

/* Listing Status*/

.dashboard-status-button {
  color: #fff;
  border-radius: $global-border-radius;
  font-size: 14px;
  line-height: 21px;
  padding: 2px 8px;
  display: inline-block;
  position: relative;
  top: -2px;
  margin: 0 0 4px 4px;
  &.green {
    background: #e0f5d7;
    color: #449626;
  }
  &.yellow {
    background-color: #fbf6dd;
    color: #a18d29;
  }
  &.red {
    background-color: #ffe6e6;
    color: #ea5252;
  }
}

/* Dashboard Invoices List
------------------------------------- */

.invoice-list-item {
  ul {
    line-height: 22px;
    padding-bottom: 2px;
    color: #909090;
    list-style: none;
    padding: 0;
    margin: 0;
    li {
      padding: 0;
      display: inline-block;
      font-size: 14.7px;
      margin-bottom: 5px;
      &:after {
        content: "";
        display: inline-block;
        width: 1px;
        height: 11px;
        background-color: #e0e0e0;
        position: relative;
        margin: 0 10px;
      }
      &:last-child:after {
        display: none;
      }
    }
  }
  strong {
    font-weight: 600;
    color: $body-heading-color;
    margin-bottom: 5px;
    margin-top: -2px;
    display: block;
  }
}

.paid, .unpaid {
  background-color: #333;
  color: #fff;
  border-radius: $global-border-radius;
  line-height: 20px;
  padding: 4px 8px;
  font-size: 13px;
  position: relative;
  top: -1px;
}

.paid {
  background-color: #40b660;
}

.unpaid {
  background-color: #dc3139;
}

/* Listings in Dashboard
------------------------------------- */
/* Freelancers */

.dashboard-box {
  .job-listing-details {
    box-shadow: none;
    padding: 10px 0;
    align-items: center;
    flex: auto;
  }
  .job-listing {
    box-shadow: none;
    padding: 0;
    margin: 0;
    background-color: transparent;
    display: flex;
    flex-direction: row;
    width: 100%;
    &.width-adjustment {
      max-width: 60%;
    }
    h3 a {
      color: $body-heading-color;
      font-size: 18px;
    }
    .job-listing-company-logo {
      max-width: 50px;
    }
    .job-listing-description {
      padding-top: 0;
    }
    &:hover {
      transform: none;
    }
    .job-listing-footer {
      background-color: transparent;
      padding: 0;
      border-radius: none;
    }
  }
  .freelancer-overview {
    padding: 15px 0;
  }
  .freelancer-overview-inner {
    flex: auto;
    display: flex;
    align-items: center;
  }
  .freelancer-overview {
    .freelancer-name {
      text-align: left;
      margin: 0 0 0 30px;
      width: 100%;
    }
    .freelancer-avatar {
      margin: 0;
      width: 90px;
    }
    &.manage-candidates .freelancer-avatar {
      align-self: flex-start;
    }
  }
}

/* Jobs */

/* Dashboard Task Info */

.dashboard-task-info {
  list-style: none;
  padding: 0;
  margin: 0;
  background-color: #f4f4f4;
  text-align: center;
  border-radius: $global-border-radius;
  padding: 14px 25px;
  display: flex;
  flex-direction: row;
  align-items: stretch;
  align-self: flex-end;
  position: absolute;
  right: 30px;
  top: 50%;
  transform: translateY(-50%);
  transition: 0.3s;
  justify-content: center;
}

.dashboard-box li:hover .dashboard-task-info {
  background-color: #f0f0f0;
}

.dashboard-task-info li {
  display: inline-block;
  border-right: 1px solid #d0d0d0;
  padding-right: 22px;
  margin-right: 22px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  &:last-child {
    margin-right: 0;
    padding-right: 0;
    border: none;
  }
  strong {
    display: block;
    font-size: $body-font-size;
    font-weight: 600;
    color: $body-heading-color;
    line-height: 22px;
  }
  span {
    display: block;
    font-size: 14px;
    color: #888;
    line-height: 20px;
  }
}

/* Bid Acceptance */

.bid-acceptance {
  display: flex;
  color: #289c41;
  background-color: #e4f6e9;
  font-size: 18px;
  font-weight: 600;
  text-align: center;
  border-radius: $global-border-radius;
  padding: 12px 18px;
  display: inline-block;
  margin: 0 auto;
  line-height: 20px;
  span {
    font-size: 14px;
    opacity: 0.86;
    line-height: 20px;
  }
}

/* Media Queries */
@media (max-width: 1366px) {
  .dashboard-box .job-listing.width-adjustment {
    max-width: 100%;
  }
  .dashboard-task-info {
    position: relative;
    right: 0;
    top: 0;
    transform: none;
    margin: 10px 0 20px 0;
    &.bid-info {
      margin-bottom: 0;
      margin-top: 20px;
    }
  }
}

@media (max-width: 768px) {
  .dashboard-box {
    .freelancer-overview {
      .freelancer-avatar {
        width: 60px;
        .verified-badge {
          transform: scale(0.8);
          bottom: -5px;
          right: -5px;
        }
      }
      .freelancer-name {
        margin: 0 0 0 25px;
      }
    }
    .job-listing .job-listing-company-logo {
      display: none;
    }
  }
  .dashboard-task-info {
    &.bid-info, &:not(.bid-info) {
      flex-direction: column;
      width: 100%;
    }
    li {
      border-right: none;
      border-bottom: 1px solid #d0d0d0;
      padding: 0 0 10px 0;
      margin: 0 0 10px 0;
      width: 100%;
      &:last-child {
        border-right: none;
        border-bottom: none;
        padding: 0;
        margin: 0;
      }
    }
  }
}

/* Reviews
------------------------------------- */

.dashboard-box .boxed-list-item {
  padding: 10px 0;
  width: 100%;
}

/* Submit Forms
------------------------------------- */

.submit-field {
  margin-bottom: 28px;
  display: block;
  .pac-container {
    box-shadow: none;
    border: 1px solid #e0e0e0;
    border-top: 1px solid #fff;
    padding-top: 0;
    z-index: 9;
    left: 0 !important;
    top: 47px !important;
    border-radius: 0 0 $global-border-radius $global-border-radius;
  }
  h5 {
    font-size: $body-font-size;
    font-weight: 600;
    color: $body-heading-color;
    margin-bottom: 12px;
    span {
      color: #888;
      font-weight: 500;
    }
  }
}

.help-icon {
  color: $primary-color;
  display: inline-block;
  font-size: 19px;
  font-weight: 400;
  line-height: 18px;
  height: 16px;
  position: relative;
  top: 3px;
  margin: 0 3px;
  font-style: normal;
  cursor: help;
  &:before {
    content: "\e97c";
    font-family: "Feather-Icons";
  }
}

/* Avatar Switcher */

.avatar-wrapper {
  position: relative;
  width: 150px;
  height: 150px;
  border-radius: $global-border-radius;
  overflow: hidden;
  box-shadow: none;
  margin: 0 10px 30px 0;
  transition: all .3s ease;
  &:hover {
    transform: scale(1.05);
    cursor: pointer;
  }
  .profile-pic {
    height: 100%;
    width: 100%;
    transition: all .3s ease;
    object-fit: cover;
    &:after {
      font-family: Feather-Icons;
      content: "\e9f1";
      top: 0;
      left: 0;
      width: 100%;
      height: 100%;
      line-height: 120px;
      position: absolute;
      font-size: 60px;
      background: #f0f0f0;
      color: #aaa;
      text-align: center;
    }
  }
  .upload-button {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 100%;
  }
  .file-upload {
    opacity: 0;
    pointer-events: none;
    position: absolute;
  }
}

/* Small Footer Styles
------------------------------------- */

.dashboard-content-inner .small-footer {
  width: 100%;
  left: 0px;
  padding: 25px 50px;
  position: absolute;
  bottom: 0;
}

.dashboard-footer-spacer {
  padding-top: 125px;
}

/* Dashbaord Media Queries 
------------------------------------- */
@media (min-width: 1365px) and (max-width: 1600px) {
  .fun-fact:last-child {
    display: none;
  }
}

@media (max-width: 1365px) {
  .fun-fact {
    flex: 1 1 calc(50% - 30px);
    max-width: calc(50% - 30px);
  }
}

@media (max-width: 992px) {
  .dashboard-content-inner {
    min-height: auto !important;
  }
  /* Dashboard Mobile Basis */
  .dashboard-sidebar .dashboard-nav-container, .dashboard-content-inner {
    padding: 15px;
  }
  .dashboard-sidebar-inner {
    padding-bottom: 30px;
  }
  .dashboard-sidebar .simplebar-content {
    overflow-x: hidden;
  }
  .dashboard-nav-inner {
    padding: 30px 0;
    margin-bottom: 0;
  }
  .dashboard-sidebar {
    flex: 1;
    width: 100%;
    background-color: transparent;
    box-shadow: none;
    height: auto !important;
  }
  .full-page-sidebar .simplebar-track, .dashboard-sidebar .simplebar-track {
    display: none;
  }
  .full-page-sidebar-inner, .dashboard-sidebar-inner {
    height: auto !important;
  }
  .dashboard-container {
    display: block;
    width: 100%;
    flex-wrap: wrap;
    height: auto !important;
  }
  .dashboard-content-container {
    height: auto !important;
    .simplebar-scrollbar {
      display: none;
    }
  }
  /* Dashboard Mobile Basis - End */
  /* Dashboard Nav */
  .dashboard-nav {
    width: 100%;
    margin: 0;
    border-radius: 0 0 $global-border-radius $global-border-radius;
    position: relative;
    min-height: auto;
    opacity: 1;
    visibility: hidden;
    max-height: 0;
    padding: 0;
    transition: all 0.3s;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    background: #fff;
    ul {
      &:first-child {
        margin: 0;
      }
      margin-top: 15px;
    }
    &.active {
      ul {
        opacity: 1;
        visibility: visible;
        max-height: 900px;
      }
      opacity: 1;
      visibility: visible;
      max-height: 900px;
    }
    ul {
      &:before {
        padding: 0 29px;
      }
      li a {
        padding: 10px 25px;
      }
      visibility: hidden;
      opacity: 0;
      max-height: 0;
      transition: all 0.3s;
    }
    &.active ul li ul, ul li ul {
      visibility: hidden;
      opacity: 0;
      max-height: 0;
      transition: all 0.3s;
    }
    &.active ul li.active-submenu ul {
      visibility: visible;
      opacity: 1;
      max-height: 300px;
    }
  }
  /* Trigger */
  a.dashboard-responsive-nav-trigger {
    width: 100%;
    margin: 0;
    margin-top: 15px;
    background-color: #333;
    border-radius: 5px;
    color: #fff;
    padding: 16px 30px;
    font-weight: 600;
    transition: 0.2s;
    display: block;
    line-height: $body-sub-line-height;
    span.trigger-title {
      padding-left: 33px;
    }
    .hamburger-inner {
      background-color: #fff;
      &::before, &::after {
        background-color: #fff;
      }
    }
    .hamburger {
      top: 2px;
      left: 0;
      transform: scale(0.66);
    }
    i {
      margin-right: 8px;
      margin-left: -2px;
      font-size: 28px;
      line-height: 0;
      position: relative;
      top: 6px;
    }
    &.active {
      border-radius: $global-border-radius $global-border-radius 0 0;
    }
  }
  /* Dashboard Nav - End */
  .buttons-to-right:not(.single-right-button) {
    opacity: 1;
  }
  .fun-facts-container {
    width: calc(100% + 15px);
    margin-bottom: -15px;
  }
  .fun-fact {
    flex: 1 1 calc(50% - 15px);
    max-width: calc(50% - 15px);
    margin: 0 15px 15px 0;
  }
}

@media (max-width: 768px) {
  .fun-fact {
    flex: 1 1 100%;
    max-width: 100%;
  }
  #titlebar #breadcrumbs, .dashboard-headline #breadcrumbs {
    right: 0;
    position: relative;
    top: 0;
    transform: none;
    margin-top: 30px;
    max-width: 100%;
  }
  .buttons-to-right:not(.single-right-button) {
    position: relative;
    transform: none;
    top: 0;
    margin: 10px 0 0 0;
    opacity: 1;
    right: auto;
    display: inline-block;
    box-shadow: none;
    width: 100%;
  }
  .dashboard-box .headline .sort-by {
    float: none;
    display: inline-block;
    position: relative;
    top: 0;
    transform: none;
    right: 0px;
    top: 5px;
    left: -8px;
    .bootstrap-select .dropdown-menu {
      left: 0;
      right: auto;
    }
  }
}