// com_cpanel

.com_cpanel {

  .content {
    margin-top: 2rem;
  }

  .card {
    p:last-child {
      margin-bottom: 0;
    }

    .list-group,
    .table {
      padding: 0;
      margin-bottom: unset;
      border-top: 1px solid var(--border-color);
    }

  }

  .card-header {
    --card-bg: hsla(0, 0%, 100%, .7);

    .btn {
      margin-top: .25em;
      margin-bottom: .25em;
    }
  }

  .card-body {
    padding: 0;
    overflow: hidden;
    border-bottom-right-radius: $border-radius;
    border-bottom-left-radius: $border-radius;
  }

  .module-actions {
    order: 1;
    margin-inline-start: auto;

    > * {
      padding: 0;
      color: var(--template-bg-dark-70);
    }

    @if $enable-dark-mode {
      @include color-mode(dark) {
        > * {
          color: var(--body-color);
        }
      }
    }
  }

  .cpanel-add-module {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-end;
    width: 100%;
    min-height: 130px;
    padding: 0 1rem;
    font-size: .875rem;
    font-weight: 700;
    line-height: 1;
    color: var(--template-quickicon-color);
    background-color: var(--body-bg);
    border: 1px solid var(--body-bg);
    border-radius: $border-radius;
    transition: all .15s ease-in;

    &:hover,
    &:focus,
    &:active {
      color: #fff;
      text-decoration: none;
      background: var(--template-bg-dark);
    }

    > span {
      padding: .25rem 0 1rem;
    }

    .cpanel-add-module-icon {
      font-size: 2rem;
      color: var(--template-quickicon-color);
      margin-inline-end: .5rem;
    }
  }
}

.cpanel-modules {
  .list-group {
    border-top: 1px solid $list-group-border-color;
  }

  .list-group-item {
    a {
      font-weight: 500;
      text-decoration: underline;
    }

    .btn {
      text-decoration: none;
    }

    .list-group-item a > span {
      &[class^="#{$jicon-css-prefix}-"],
      &[class*=" #{$jicon-css-prefix}-"],
      &[class^="#{$fa-css-prefix}-"],
      &[class*=" #{$fa-css-prefix}-"] {
        display: block;
        padding: .5rem;
        color: rgba(255, 255, 255, .9);
        background: var(--#{$prefix}link-color);
        box-shadow: $atum-box-shadow;

        &:hover {
          background: var(--#{$prefix}link-hover-color);
        }
      }
    }
  }

  .list-group-item span.home-image {
    &[class^="#{$jicon-css-prefix}-"],
    &[class*=" #{$jicon-css-prefix}-"],
    &[class^="#{$fa-css-prefix}-"],
    &[class*=" #{$fa-css-prefix}-"] {
      display: inline-block;
      padding: 0;
      margin: 0 .85rem;
      font-size: .9rem;
      color: var(--body-color);
      box-shadow: none;
      transform: scale(1.2);
    }
  }

  h2 {
    margin-bottom: 0;
    font-size: $h4-font-size;
  }

  .mod-custom {
    padding: 1rem;
  }
}

.sample-data {
  .list-group-item {
    padding: 1rem;
  }
}

.sample-data__title {
  font-weight: bold;
  color: var(--heading-color);
}

.sample-data__icon {
  width: 1.3rem;
  text-align: center;
}

.sample-data__desc {
  border-inline-start: 4px solid hsl(var(--hue),50%,93%);
  padding-inline-start: 1rem;
  margin-inline-start: 8px;
}
