/*
* demo.css
* File include item demo only specific css only
******************************************************************************/

.menu .app-brand.demo {
  height: 64px;
}

.app-brand-logo.demo svg {
  width: 34px;
  height: 24px;
}

.app-brand-text.demo {
  font-size: 1.375rem;
}

/* ! For .layout-navbar-fixed added fix padding top to .layout-page */
/* Default navbar */
.layout-navbar-fixed .layout-wrapper:not(.layout-without-menu) .layout-page {
  padding-top: 64px !important;
}
.layout-navbar-fixed .layout-wrapper:not(.layout-horizontal):not(.layout-without-menu) .layout-page {
  padding-top: 72px !important;
}
/* Navbar page z-index issue solution */
.content-wrapper .navbar {
  z-index: auto;
}

/*
* Content
******************************************************************************/

.demo-blocks > * {
  display: block !important;
}

.demo-inline-spacing > * {
  margin: 1rem 0.375rem 0 0 !important;
}

/* ? .demo-vertical-spacing class is used to have vertical margins between elements. To remove margin-top from the first-child, use .demo-only-element class with .demo-vertical-spacing class. For example, we have used this class in forms-input-groups.html file. */
.demo-vertical-spacing > * {
  margin-top: 1rem !important;
  margin-bottom: 0 !important;
}
.demo-vertical-spacing.demo-only-element > :first-child {
  margin-top: 0 !important;
}

.demo-vertical-spacing-lg > * {
  margin-top: 1.875rem !important;
  margin-bottom: 0 !important;
}
.demo-vertical-spacing-lg.demo-only-element > :first-child {
  margin-top: 0 !important;
}

.demo-vertical-spacing-xl > * {
  margin-top: 5rem !important;
  margin-bottom: 0 !important;
}
.demo-vertical-spacing-xl.demo-only-element > :first-child {
  margin-top: 0 !important;
}

/* Dropdown buttons going out of small screens */
@media (max-width: 576px) {
  #dropdown-variation-demo .btn-group .text-truncate {
    width: 254px;
    position: relative;
  }
  #dropdown-variation-demo .btn-group .text-truncate::after {
    position: absolute;
    top: 45%;
    right: 0.65rem;
  }
}

/*
* Layout demo
******************************************************************************/

.layout-demo-wrapper {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
  -ms-flex-direction: column;
  flex-direction: column;
  margin-top: 1rem;
}
.layout-demo-placeholder img {
  width: 900px;
}
.layout-demo-info {
  text-align: center;
  margin-top: 1rem;
}

/*
* DataTables Responsive modal tweaks (wider + internal scroll)
******************************************************************************/

/* Bootstrap modal variant (.dtr-bs-modal) */
.dtr-bs-modal.modal {
  --bs-modal-width: 600px;
}
.dtr-bs-modal .modal-dialog {
  max-width: var(--bs-modal-width) !important;
  width: 90% !important;
  max-width: 600px !important;
  margin: 1.75rem auto !important;
}
.dtr-bs-modal .modal-content {
  max-height: calc(100vh - 3.5rem) !important;
  overflow: hidden !important;
  display: flex !important;
  flex-direction: column !important;
}
.dtr-bs-modal .modal-header {
  position: sticky !important;
  top: 0 !important;
  z-index: 5 !important;
  padding: 0.75rem 1.25rem !important;
}
.dtr-bs-modal .modal-header .btn-close,
.dtr-bs-modal .modal-header [data-bs-dismiss="modal"] {
  position: relative !important;
  z-index: 6 !important;
}
.dtr-bs-modal .modal-body {
  overflow-y: auto !important;
  max-height: calc(100vh - 200px) !important;
  padding: 1rem 1.25rem !important;
}

/* Default modal variant (div.dtr-modal) */
div.dtr-modal {
  padding: 4rem 1rem !important;
}
div.dtr-modal div.dtr-modal-display {
  width: calc(100vw - 2rem) !important;
  max-width: 1200px !important;
  height: calc(100vh - 8rem) !important;
  max-height: calc(100vh - 8rem) !important;
  overflow: hidden !important;
  display: flex !important;
  flex-direction: column !important;
}
div.dtr-modal div.dtr-modal-close {
  z-index: 9999 !important;
  width: 28px !important;
  height: 28px !important;
  line-height: 26px !important;
  border-radius: 6px !important;
  background: rgba(0, 0, 0, 0.25) !important;
  color: #fff !important;
}
div.dtr-modal div.dtr-modal-content {
  padding: 1.25rem 1.5rem !important;
  overflow-y: auto !important;
  flex: 1 1 auto !important;
}

/* Readability */
.dtr-bs-modal .modal-body table.table td,
div.dtr-modal div.dtr-modal-content table.table td {
  vertical-align: top;
}
.dtr-bs-modal .modal-body table.table td:last-child,
div.dtr-modal div.dtr-modal-content table.table td:last-child {
  word-break: break-word;
}
