body {
  background-color: #f5f7fb;
  overflow-x: hidden;
}

#globalToastContainer {
  pointer-events: none;
}

#globalToastContainer > * {
  pointer-events: auto;
}

.app-block-heading {
  min-width: 0;
  transition: margin-left var(--erp-sidebar-transition, 220ms ease);
}

.app-block-title {
  font-size: 2rem;
  font-weight: 700;
  line-height: 1.15;
}

@media (min-width: 992px) {
  .app-shell[data-sidebar-state="closed"] .app-block-heading {
    margin-left: 3.25rem;
  }
}

.page-main-registry {
  display: flex;
  flex-direction: column;
  min-height: 0;
}

.page-main-registry > * {
  min-height: 0;
}

.registry-shell {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  height: 100%;
  min-height: 0;
  overflow: hidden;
}

.registry-shell > .card-header,
.registry-shell > .card-footer {
  position: relative;
  z-index: 2;
  background: var(--bs-card-cap-bg);
}

.registry-shell > .card-header {
  position: sticky;
  top: 0;
}

.registry-shell > .card-footer {
  position: sticky;
  bottom: 0;
  border-top: 1px solid var(--bs-border-color);
}

.registry-shell__body,
.registry-table {
  position: relative;
  flex: 1 1 auto;
  min-height: 0;
}

.registry-table {
  overflow: auto;
}

.registry-table table {
  width: 100%;
}

.registry-table thead th {
  position: sticky;
  top: 0;
  z-index: 1;
  white-space: nowrap;
  background: var(--bs-light);
}

.registry-table th,
.registry-table td {
  border-right: 1px solid var(--bs-border-color);
  vertical-align: middle;
}

.registry-table th:last-child,
.registry-table td:last-child {
  border-right: 0;
}

.registry-empty-state {
  display: flex;
  min-height: 240px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}

.registry-loading-state {
  position: absolute;
  inset: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(1px);
}

.app-shell__main.col-12.ps-md-4.py-4 {
  padding-right: 1rem;
  min-height: 100vh;
}

@media (max-width: 991.98px) {
  .app-shell__main.col-12.ps-md-4.py-4 {
    min-height: calc(100vh - var(--erp-mobile-topbar-height, 56px));
  }
}

@media (max-width: 767.98px) {
  .app-shell__main.col-12.ps-md-4.py-4 {
    padding-left: 1rem !important;
    padding-right: 1rem;
  }
}
