﻿
.panel {
  background-color: var(--bs-component-bg);
  border: none;
  margin-bottom: 1.246875rem;
  box-shadow: none;
  border-radius: 4px;
  display: flex;
  flex-direction: column
}

  .panel .panel-body, .panel .panel-footer, .panel .panel-toolbar {
    flex: 1 1 auto
  }

  .panel .panel-heading {
    padding: .75rem .9375rem;
    border: none;
    display: flex;
    align-items: center;
    flex-wrap: nowrap;
    border-top-left-radius: 4px;
    border-top-right-radius: 4px
  }

    .panel .panel-heading .panel-title {
      font-size: .75rem;
      margin: 0;
      line-height: 1.35;
      flex: 1
    }

      .panel .panel-heading .panel-title > a {
        color: inherit;
        display: block
      }

        .panel .panel-heading .panel-title > a:focus, .panel .panel-heading .panel-title > a:hover {
          text-decoration: none
        }

    .panel .panel-heading .panel-heading-btn {
      display: flex;
      align-items: center
    }

      .panel .panel-heading .panel-heading-btn > a + a {
        margin-left: 5px
      }

      .panel .panel-heading .panel-heading-btn .btn-icon {
        display: inline-flex;
        align-items: center;
        justify-content: center
      }

    .panel .panel-heading .tab-overflow {
      flex: 1
    }

  .panel .panel-body {
    padding: .9375rem .9375rem
  }

    .panel .panel-body:after, .panel .panel-body:before {
      content: "";
      display: table;
      clear: both
    }

  .panel .panel-toolbar {
    padding: .75rem .9375rem
  }

  .panel .panel-footer {
    border-top: 1px solid rgba(var(--bs-component-border-color-rgb),.75);
    padding: .75rem .9375rem
  }

  .panel [class^=col-].ui-sortable {
    min-height: 0
  }

  .panel.panel-default > .panel-heading {
    background: var(--bs-light);
    color: var(--bs-component-color)
  }

  .panel.panel-inverse > .panel-heading {
    background: var(--bs-gray-900);
    color: var(--bs-white)
  }

.dark-mode .panel.panel-inverse > .panel-heading {
  background: rgba(255,255,255,.1)
}

.panel.panel-loading .panel-body {
  position: relative;
  z-index: 0;
  overflow: hidden
}

  .panel.panel-loading .panel-body .panel-loader {
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    bottom: 0;
    background: var(--bs-component-bg);
    opacity: .9;
    z-index: 1030;
    animation: fadeIn .2s;
    border-radius: 0 0 4px 4px;
    display: flex;
    justify-content: center;
    align-items: center
  }

.panel.panel-expand {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  margin: 0;
  overflow: hidden;
  z-index: 1080;
  display: flex;
  flex: 1;
  flex-direction: column;
  border-radius: 0
}

  .panel.panel-expand > .panel-body, .panel.panel-expand > .panel-footer, .panel.panel-expand > .panel-heading {
    border-radius: 0
  }

  .panel.panel-expand > .panel-body {
    overflow-x: scroll;
    flex: 1
  }

    .panel.panel-expand > .panel-body > .slimScrollDiv {
      height: 100% !important
    }

      .panel.panel-expand > .panel-body > .slimScrollDiv > div:not(.slimScrollBar):not(.slimScrollRail) {
        height: 100% !important
      }

  .panel.panel-expand > .panel-heading {
    flex: 0
  }

    .panel.panel-expand > .panel-heading .fa-expand:before {
      content: "\f066"
    }

  .panel.panel-expand > .hljs-wrapper {
    max-height: 50%;
    overflow: scroll
  }

.panel.panel-hover-icon .panel-heading .panel-heading-btn .btn i {
  visibility: hidden
}

.panel.panel-hover-icon .panel-heading:focus .panel-heading-btn .btn i, .panel.panel-hover-icon .panel-heading:hover .panel-heading-btn .btn i {
  visibility: visible
}

.panel.panel-with-tabs .panel-heading > .nav-tabs {
  margin-top: -.375rem;
  margin-bottom: -.75rem;
  border-bottom: none
}

  .panel.panel-with-tabs .panel-heading > .nav-tabs .nav-item .nav-link {
    border: none;
    margin: 0
  }

.panel-expand .app-content {
  z-index: 9999
}

  .panel-expand .app-content .panel.panel-expand {
    background: var(--bs-component-bg)
  }
