// ============================
//   6. Common layout css start
// ============================

.pc-container {
  $temp: $header-height + 66;
  position: relative;
  top: $header-height;
  margin-left: $sidebar-width;
  min-height: calc(100vh - #{$temp});

  .pc-content {
    padding-left: 40px;
    padding-right: 40px;
    padding-top: 20px;
    @include media-breakpoint-down(xl) {
      &.container {
        max-width: 100%;
      }
    }
  }

  .page-header + .row {
    padding-top: 24px;
  }

  .page-header + .pc-content {
    padding-top: calc(30px + 55px);
  }
}

.page-header {
  display: flex;
  align-items: center;
  top: $header-height;
  left: $sidebar-width;
  right: 0;
  z-index: 1023;
  min-height: 55px;
  padding: 0px;
  background: transparent;
  border-radius: $border-radius;

  .page-block {
    width: 100%;
  }

  .page-header-title {
    display: inline-block;
  }

  h5 {
    margin-bottom: 0;
    font-weight: 500;
  }

  .breadcrumb {
    padding: 0;
    display: inline-flex;
    background: transparent;
    font-size: 13px;

    a {
      color: var(--bs-body-color);
    }

    .breadcrumb-item {
      a:hover {
        color: $primary;
      }

      + .breadcrumb-item::before {
        position: relative;
        top: 2px;
      }

      &:last-child {
        opacity: 0.75;
      }
    }

    svg {
      width: 14px;
      height: 14px;
      vertical-align: baseline;
    }
  }
}

@media (max-width: 1024px) {
  .pc-container {
    margin-left: 0px;
    margin-right: 0px;

    .page-header + .row,
    .page-header + .pc-content,
    .pc-content {
      padding-top: 20px;
      padding-left: 15px;
      padding-right: 15px;
    }
  }

  .page-header {
    position: relative;
    left: 0;
    top: 0;
    margin-left: 10px;
    margin-right: 10px;
  }
}

@include media-breakpoint-down(sm) {
  .col-form-label {
    padding-top: 0;
    padding-bottom: 5px;
  }
  .pc-container {
    .pc-content {
      padding: 15px;
    }

    .container {
      padding-left: 0;
      padding-right: 0;
    }

    .page-header + .row,
    .page-header + .pc-content {
      padding-left: 0;
      padding-right: 0;
    }
  }

  .page-header {
    h5 {
      padding-bottom: 5px;
      margin-bottom: 0;
      border-right: none;
      font-size: 14px;
    }

    .breadcrumb {
      display: flex;
      margin-bottom: 0;
      font-size: 11px;
    }

    .text-md-right {
      margin-top: 5px;
    }
  }
}

.navbar-content {
  position: relative;
}

.simplebar-scrollbar {
  position: absolute;
  left: 0;
  right: 0;
  min-height: 10px;

  &:before {
    position: absolute;
    content: '';
    background: darken($body-bg, 25%);
    border-radius: 7px;
    left: 2px;
    right: 2px;
    opacity: 0;
    transition: opacity 0.2s linear;
  }

  &.simplebar-visible:before {
    opacity: 0.5;
    transition: opacity 0s linear;
  }
}

// ============================
//   6. Common layout css end
// ============================
