body.legacy-body {
  padding-top: 40px;
  padding-bottom: 40px;
}

.form-signin,
.oneclickactionform {
  max-width: 600px;
  margin: 0 auto;
}

.form-signin {
  max-width: 360px;
}

body.landing-shell,
body.login-shell,
body.admin-shell {
  min-height: 100dvh;
  background: var(--bs-tertiary-bg);
}

body.admin-shell {
  --admin-sidebar-width: 280px;
  --admin-sidebar-bg: #1f2933;
  --admin-sidebar-bg-strong: #17212b;
  --admin-sidebar-fg: rgba(255, 255, 255, .76);
  --admin-sidebar-fg-strong: #fff;
  --admin-accent: #3c8dbc;
  --admin-content-bg: #f4f6f9;
  background: var(--admin-content-bg);
}

.landing-card-simple,
.login-card {
  max-width: 560px;
}

.admin-topbar {
  min-height: 57px;
  z-index: 1020;
}

.admin-user-avatar {
  width: 2rem;
  height: 2rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: var(--bs-tertiary-bg);
  color: var(--bs-primary);
}

.admin-layout,
.admin-layout-row {
  min-height: calc(100dvh - 57px);
}

.admin-layout-row {
  display: flex;
  align-items: stretch;
}

.admin-sidebar-column {
  flex: 0 0 var(--admin-sidebar-width);
  width: var(--admin-sidebar-width);
  min-height: calc(100dvh - 57px);
  background: var(--admin-sidebar-bg);
}

.admin-sidebar-shell {
  width: 100%;
  min-height: 100%;
  flex-direction: column;
  background: linear-gradient(180deg, var(--admin-sidebar-bg-strong), var(--admin-sidebar-bg));
  box-shadow: inset -1px 0 0 rgba(255, 255, 255, .08);
}

.admin-brand {
  padding: 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, .1);
}

.admin-brand-link {
  display: flex;
  align-items: center;
  gap: .75rem;
  color: var(--admin-sidebar-fg-strong);
  text-decoration: none;
}

.admin-brand-mark {
  width: 2.5rem;
  height: 2.5rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: .75rem;
  background: var(--admin-accent);
  color: #fff;
  font-weight: 800;
  letter-spacing: .04em;
}

.admin-brand-title,
.admin-brand-subtitle {
  display: block;
  line-height: 1.1;
}

.admin-brand-title {
  font-weight: 700;
}

.admin-brand-subtitle {
  color: var(--admin-sidebar-fg);
  font-size: .825rem;
}

.admin-sidebar-nav {
  display: flex;
  flex-direction: column;
  gap: .25rem;
  padding: .875rem;
}

.admin-nav-link {
  display: flex;
  align-items: center;
  gap: .75rem;
  min-height: 2.75rem;
  padding: .625rem .75rem;
  border-radius: .5rem;
  color: var(--admin-sidebar-fg);
  text-decoration: none;
  transition: background-color .15s ease, color .15s ease, transform .15s ease;
}

.admin-nav-link i {
  width: 1.25rem;
  text-align: center;
  font-size: 1.05rem;
}

.admin-nav-link:hover,
.admin-nav-link:focus {
  color: var(--admin-sidebar-fg-strong);
  background: rgba(255, 255, 255, .08);
}

.admin-nav-link.active {
  color: #fff;
  background: var(--admin-accent);
  box-shadow: 0 .45rem 1rem rgba(0, 0, 0, .18);
}

.admin-nav-toggle {
  width: 100%;
  border: 0;
  background: transparent;
  font: inherit;
  text-align: left;
}

.admin-nav-chevron {
  margin-left: auto;
  transition: transform .15s ease;
}

.admin-nav-toggle[aria-expanded="true"] .admin-nav-chevron {
  transform: rotate(180deg);
}

.admin-nav-submenu {
  padding: .25rem 0 .35rem 2.75rem;
}

.admin-nav-sublink {
  display: block;
  padding: .45rem .75rem;
  border-radius: .45rem;
  color: var(--admin-sidebar-fg);
  font-size: .925rem;
  text-decoration: none;
}

.admin-nav-sublink:hover,
.admin-nav-sublink:focus {
  color: var(--admin-sidebar-fg-strong);
  background: rgba(255, 255, 255, .08);
}

.admin-nav-sublink.active {
  color: #fff;
  background: rgba(255, 255, 255, .14);
}

.admin-main-column {
  flex: 1 1 auto;
  min-width: 0;
  background: var(--admin-content-bg);
}

.admin-content {
  max-width: 1760px;
  margin: 0 auto;
}

.admin-page-card,
.admin-shortcut-card,
.admin-kpi-panel {
  border: 0;
  box-shadow: 0 .125rem .45rem rgba(31, 41, 51, .08);
}

.admin-page-card > .card-body {
  background: var(--bs-body-bg);
}

.admin-kpi-panel > .card-header {
  background: linear-gradient(90deg, #367fa9, var(--admin-accent));
  color: #fff;
  border: 0;
}

.admin-shortcut-card {
  transition: transform .15s ease, box-shadow .15s ease;
}

.admin-shortcut-card:hover,
.admin-shortcut-card:focus-within {
  transform: translateY(-2px);
  box-shadow: 0 .45rem 1.15rem rgba(31, 41, 51, .12);
}

.admin-content-panel table,
.admin-content-panel .table {
  width: 100%;
}

.admin-content-panel table table {
  width: auto;
}

.admin-content-panel .control-group {
  margin-bottom: 1rem;
}

.admin-content-panel .control-label {
  display: block;
  margin-bottom: .5rem;
  font-weight: 600;
}

.admin-content-panel .controls input[type="text"],
.admin-content-panel .controls input[type="password"],
.admin-content-panel .controls input[type="file"],
.admin-content-panel .controls select,
.admin-content-panel input[type="text"],
.admin-content-panel input[type="password"],
.admin-content-panel select {
  max-width: 32rem;
}

.tabulator-host .tabulator {
  border-color: var(--bs-border-color);
  font-size: .95rem;
  background: var(--bs-body-bg);
}

.tabulator-host .tabulator-toolbar .form-control {
  max-width: 28rem;
}

.tabulator-host-details .tabulator .tabulator-row {
  cursor: pointer;
}

.tabulator-host .tabulator .tabulator-cell.tabulator-actions-cell {
  overflow: visible;
}

.license-actions-dropdown .dropdown-menu {
  min-width: 14rem;
}

.license-actions-toggle {
  align-items: center;
  display: inline-flex;
  height: 2rem;
  justify-content: center;
  padding: 0;
  width: 2rem;
}

.license-actions-dropdown .dropdown-item i {
  width: 1.15rem;
  text-align: center;
}

@media (max-width: 991.98px) {
  .admin-layout,
  .admin-layout-row,
  .admin-sidebar-column {
    min-height: auto;
  }

  .admin-layout-row {
    display: block;
  }

  .admin-sidebar-column {
    width: 100%;
    background: var(--admin-sidebar-bg);
  }

  .admin-sidebar-shell {
    min-height: auto;
  }
}

.admin-chart-card {
  border: 0;
  box-shadow: 0 .125rem .45rem rgba(31, 41, 51, .08);
}

.admin-chart-box {
  position: relative;
  min-height: 220px;
}

.admin-chart-box-lg {
  min-height: 260px;
}

.admin-chart-box canvas {
  width: 100% !important;
  height: 100% !important;
}

