/* Bootstrap 3 compatibility for legacy admin templates on Bootstrap 5. */

.panel,
.panel-default {
  background-color: #fff;
  border: 1px solid var(--bs-border-color, #dee2e6);
  border-radius: 0.5rem;
  margin-bottom: 1rem;
}

.panel-heading {
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--bs-border-color, #dee2e6);
  font-weight: 600;
}

.panel-body {
  padding: 1rem;
}

.panel-footer {
  padding: 0.75rem 1rem;
  border-top: 1px solid var(--bs-border-color, #dee2e6);
  background-color: #f8f9fa;
}

.label {
  display: inline-block;
  padding: 0.35em 0.65em;
  font-size: 0.75em;
  font-weight: 700;
  line-height: 1;
  border-radius: 0.25rem;
}

.label-success {
  background-color: var(--bs-success, #198754);
  color: #fff;
}

.label-info {
  background-color: var(--bs-info, #0dcaf0);
  color: #fff;
}

.label-default {
  background-color: var(--bs-secondary, #6c757d);
  color: #fff;
}

.btn-xs {
  padding: 0.25rem 0.5rem;
  font-size: 0.75rem;
  border-radius: 0.2rem;
}

.btn-block {
  display: block;
  width: 100%;
}

.pull-right {
  float: right;
}

.text-right {
  text-align: right;
}

.input-group-addon {
  display: flex;
  align-items: center;
  padding: 0.375rem 0.75rem;
  margin: 0;
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.5;
  color: #6c757d;
  text-align: center;
  background-color: #e9ecef;
  border: 1px solid var(--bs-border-color, #dee2e6);
  border-radius: 0.375rem;
}

.dropdown-menu-right {
  right: 0;
  left: auto;
}

.app-sidebar {
  height: 100vh;
  overflow: hidden;
}

.app-sidebar .main-sidemenu {
  max-height: calc(100vh - 64px);
  overflow-y: auto;
  overscroll-behavior: contain;
}

.menu-section {
  list-style: none;
  margin: 0;
  padding: 0;
}

.menu-section-toggle {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.6rem 1rem;
  background: transparent;
  border: 0;
  color: inherit;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.menu-section-list {
  margin: 0;
  padding: 0;
}

.menu-section.is-collapsed .menu-section-list {
  display: none;
}

.menu-section.is-collapsed .menu-section-icon {
  transform: rotate(-90deg);
}

.menu-section-icon {
  transition: transform 0.2s ease;
}

.menu-section.is-active .menu-section-toggle {
  color: #0d6efd;
}

.sidenav-menu-item.active {
  background: rgba(13, 110, 253, 0.12);
  color: #0d6efd;
}

.dark-mode .table thead th,
.dark-mode .table thead td {
  color: #e9ecef;
  background-color: #2b2f3a;
  border-color: #3a3f4b;
}

.dark-mode .table thead th a,
.dark-mode .table thead td a {
  color: #e9ecef;
}

.dark-mode .panel,
.dark-mode .panel-default,
.dark-mode .card {
  background-color: #1f232b;
  border-color: #2c313c;
}

.dark-mode .panel-heading,
.dark-mode .card-header {
  background-color: #232834;
  color: #e9ecef;
  border-bottom-color: #2c313c;
}

.dark-mode .panel-body,
.dark-mode .panel-footer,
.dark-mode .card-body,
.dark-mode .card-footer {
  color: #d7dbe1;
  background-color: #1f232b;
  border-top-color: #2c313c;
}

.dark-mode .table {
  color: #d7dbe1;
}

.dark-mode .table-striped > tbody > tr:nth-of-type(odd) > * {
  --bs-table-accent-bg: #20252f;
  color: #d7dbe1;
}

.dark-mode .table > :not(caption) > * > * {
  border-color: #2c313c;
}

.dark-mode .table a,
.dark-mode .tdCellInfo,
.dark-mode .ticketDate {
  color: #c9cfd8;
}

.dark-mode .breadcrumb,
.dark-mode .breadcrumb a {
  color: #c9cfd8;
}

.ticketDate {
  display: block;
  margin-top: 2px;
}

.ticketactionbuttons {
  text-align: right;
  display: none;
}

.ticketactionbuttons .ticket-actions {
  display: inline-flex;
  gap: 6px;
  align-items: center;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.ticketactionbuttons .ticket-actions .btn {
  padding: 0.25rem 0.5rem;
}

.ticketactionbuttons.is-open {
  display: table-cell;
}

.priority-row {
  border-left: 4px solid var(--priority-color);
}

.priority-row > td {
  background-color: transparent !important;
  background-image: linear-gradient(90deg, color-mix(in srgb, var(--priority-color) 18%, transparent), transparent) !important;
  background-attachment: fixed;
  background-clip: padding-box;
}

.priority-row {
  background-image: linear-gradient(90deg, color-mix(in srgb, var(--priority-color) 18%, transparent), transparent);
}

.switcher-wrapper .demo_changer {
  z-index: 100001;
}

.switcher-wrapper .form_holder {
  height: calc(100vh - 120px);
  overflow-y: auto !important;
  overflow-x: hidden;
}

.col-xs-12 {
  flex: 0 0 100%;
  max-width: 100%;
}

.close {
  float: right;
  border: 0;
  background: transparent;
  font-size: 1.25rem;
  line-height: 1;
}

.alert-dismissable,
.alert-dismissible {
  position: relative;
  padding-right: 3rem;
}

.alert-dismissable .close {
  position: absolute;
  top: 0.5rem;
  right: 0.75rem;
}

@media (max-width: 575.98px) {
  .hidden-xs {
    display: none !important;
  }
}

@media (max-width: 767.98px) {
  .hidden-sm {
    display: none !important;
  }
}

@media (min-width: 768px) and (max-width: 991.98px) {
  .hidden-md {
    display: none !important;
  }
}

@media (min-width: 992px) and (max-width: 1199.98px) {
  .hidden-lg {
    display: none !important;
  }
}
