#wrapper {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100vh;
  overflow: hidden !important;
}

.logo-admin img {
  max-width: 210px;
  height: auto;
}

.topbar-left .logo img {
  max-width: 210px;
  max-height: 52px;
}

.navbar-custom,
.button-menu-mobile,
.button-menu-mobile-topbar {
  background-color: #74162f !important;
}

.sidebar-logout {
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 18px;
  z-index: 120;
  margin: 0;
}

.sidebar-logout button {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 14px;
  border: 1px solid #e4e7eb;
  border-radius: 4px;
  background: #fff;
  color: #495057;
  cursor: pointer;
}

.sidebar-logout button:hover {
  color: #74162f;
  border-color: #74162f;
}

.sidebar-logout i {
  font-size: 18px;
}

.content-page,
.content-page > .content {
  height: 100vh;
  min-height: 0;
  overflow: hidden;
}

.content-page > .content {
  margin-bottom: 0 !important;
  box-sizing: border-box;
}

.page-content-wrapper {
  height: calc(100vh - 70px);
  overflow-x: hidden;
  overflow-y: auto;
  padding-bottom: 55px;
  box-sizing: border-box;
  overscroll-behavior: contain;
}

/* Pages remain mouse-wheel/touch scrollable, but no vertical scrollbar is shown. */
.page-content-wrapper,
.sidebar-inner,
.slimscrollleft,
.nx-scroll-table {
  scrollbar-width: none !important;
  -ms-overflow-style: none !important;
}

.page-content-wrapper::-webkit-scrollbar,
.sidebar-inner::-webkit-scrollbar,
.slimscrollleft::-webkit-scrollbar,
.nx-scroll-table::-webkit-scrollbar {
  display: none !important;
  width: 0 !important;
  height: 0 !important;
}

.slimScrollBar,
.slimScrollRail,
.nicescroll-rails {
  display: none !important;
  opacity: 0 !important;
  width: 0 !important;
}

.source-flash {
  position: fixed;
  top: 82px;
  right: 22px;
  z-index: 1200;
  box-shadow: 0 4px 18px rgba(0, 0, 0, .12);
}

.nx-form-card label {
  font-size: 13px;
}

.nx-form-card textarea.form-control {
  min-height: 95px;
}

.nx-table td,
.nx-table th {
  font-size: 13px;
  vertical-align: middle;
}

.nx-table thead th {
  border-top: 0;
  font-size: 11px;
  text-transform: uppercase;
}

.nx-status {
  display: inline-block;
  padding: 4px 9px;
  border-radius: 3px;
  background: #d9f2ec;
  color: #2f8573;
  font-size: 11px;
}

.nx-status.pending,
.nx-status.draft {
  background: #fce9c1;
  color: #dd990a;
}

.nx-status.blocked,
.nx-status.rejected {
  background: #f9c6ce;
  color: #e72545;
}

.nx-empty {
  padding: 30px;
  text-align: center;
  color: #707070;
}

.nx-actions {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.nx-actions form {
  margin: 0;
}

.nx-scroll-table {
  max-height: 390px;
  overflow: auto;
}

.nx-image {
  width: 54px;
  height: 42px;
  object-fit: cover;
  border-radius: 3px;
}

.nx-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  flex-wrap: wrap;
  margin: 18px 0 4px;
}

.nx-pagination a,
.nx-pagination span {
  min-width: 36px;
  min-height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 7px 11px;
  border: 1px solid #dfe3e8;
  border-radius: 4px;
  background: #fff;
  color: #495057;
  font-size: 13px;
}

.nx-pagination a:hover,
.nx-pagination .active {
  border-color: #74162f;
  background: #74162f;
  color: #fff;
}

.nx-pagination .disabled,
.nx-pagination .dots {
  opacity: .48;
}

.nx-notification-menu .dropdown-menu {
  width: min(390px, calc(100vw - 24px));
  max-height: 430px;
  overflow: auto;
}

.nx-notification-menu .notify-details {
  white-space: normal;
  line-height: 1.35;
}

.nx-notification-list {
  display: grid;
  gap: 10px;
}

.nx-notification-card {
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr) 24px;
  gap: 13px;
  align-items: center;
  padding: 14px;
  border: 1px solid #e7e9ed;
  border-radius: 5px;
  color: #343a40;
}

.nx-notification-card:hover {
  border-color: #74162f;
  color: #343a40;
  box-shadow: 0 5px 16px rgba(45, 59, 72, .08);
}

.nx-notification-card small,
.nx-notification-card time {
  display: block;
  margin-top: 3px;
  color: #747b83;
}

.nx-notification-card time { font-size: 11px; }

.nx-notification-icon {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #f6e9ed;
  color: #74162f;
  font-size: 20px;
}

.nx-stat-link {
  color: inherit;
  display: block;
  cursor: pointer;
  text-decoration: none !important;
  transition: transform .18s ease, box-shadow .18s ease;
}

.nx-stat-link:hover {
  color: inherit;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(45, 59, 72, .12);
}

.business-colour-picker {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  gap: 14px;
  align-items: stretch;
}

.business-colour-picker input[type="color"] {
  width: 72px;
  height: 88px;
  padding: 3px;
  border: 1px solid #d8dce2;
  border-radius: 5px;
  background: #fff;
}

#theme-preview {
  min-height: 88px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 16px;
  border-radius: 5px;
  color: #fff;
}

#theme-preview span {
  opacity: .8;
  font-size: 11px;
}

#theme-preview b {
  font-size: 17px;
}

.colour-presets {
  display: flex;
  gap: 9px;
  flex-wrap: wrap;
}

.colour-preset {
  width: 29px;
  height: 29px;
  padding: 0;
  border: 2px solid #fff;
  border-radius: 50%;
  box-shadow: 0 0 0 1px #cdd2d8;
  cursor: pointer;
}

.login-captcha {
  height: 42px;
  display: grid;
  place-items: center;
  border: 1px dashed #74162f;
  border-radius: 4px;
  background: repeating-linear-gradient(-35deg, #f5f6fa, #f5f6fa 7px, #e7e9f2 7px, #e7e9f2 9px);
  color: #74162f;
  font-size: 21px;
  font-weight: 700;
  letter-spacing: 5px;
  user-select: none;
}

.referral-notice {
  padding: 10px 12px;
  background: #eef0ff;
  border-left: 3px solid #5b6be8;
}

.form-control-file {
  font-size: 13px;
}

.tox-tinymce {
  border-color: #e2e2e2 !important;
}

@media (max-width: 768px) {
  .page-content-wrapper {
    height: calc(100vh - 60px);
  }

  .page-title-box .breadcrumb {
    display: none;
  }

  .nx-table {
    min-width: 700px;
  }

  .footer {
    left: 0;
  }
}
