html {
  scroll-behavior: smooth;
}

:root {
  --app-header-height: 78px;
  --app-sidebar-width: 255px;
}

body {
  background: #f4f6fb;
  color: #273142;
  font-family: "Be Vietnam Pro", "Segoe UI", sans-serif;
  font-size: 14px;
  line-height: 1.5;
  min-height: 100vh;
}

button,
input,
select,
textarea {
  font-family: inherit;
}

.btn,
.form-control,
.m-input,
.swal2-popup {
  font-family: inherit;
}

.app-login__logo {
  margin-bottom: -19px;
}

.app-login__subtitle {
  color: #7b7e8a;
  font-size: 14px;
  margin-top: 8px;
}

.app-header {
  height: auto;
  min-height: var(--app-header-height);
}

.app-brand {
  align-items: center;
  background: linear-gradient(180deg, #ffffff 0%, #f5f7fb 100%);
  border-bottom: 1px solid #e3e9f6;
  display: flex;
  justify-content: flex-start;
  min-height: 92px;
  padding: 14px 18px;
  width: var(--app-sidebar-width);
}

.app-brand__link {
  align-items: center;
  display: grid;
  gap: 12px;
  grid-template-columns: 48px minmax(0, 1fr);
  min-width: 0;
  text-decoration: none;
  width: 100%;
}

.app-brand__logo {
  border-radius: 14px;
  box-shadow: 0 12px 24px rgba(33, 52, 94, 0.16);
  height: 48px;
  object-fit: contain;
  width: 48px;
}

.app-brand__meta {
  min-width: 0;
}

.app-brand__name {
  color: #1f2a44;
  font-size: 21px;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.1;
}

.app-brand__tagline {
  color: #7080a0;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  margin-top: 2px;
  text-transform: uppercase;
}

.app-topbar {
  align-items: center;
  display: flex;
  gap: 14px;
  justify-content: space-between;
  min-height: var(--app-header-height);
  padding: 0 24px;
}

.app-topbar__menu-toggle {
  align-items: center;
  background: linear-gradient(180deg, #f6f8fc 0%, #edf2fb 100%);
  border: 1px solid #d9e2f3;
  border-radius: 12px;
  color: #42506c;
  cursor: pointer;
  display: inline-flex;
  flex: 0 0 42px;
  height: 42px;
  justify-content: center;
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease,
    background-color 0.2s ease;
  width: 42px;
}

.app-topbar__menu-toggle:hover,
.app-topbar__menu-toggle:focus {
  box-shadow: 0 12px 24px rgba(64, 92, 153, 0.16);
  outline: none;
  transform: translateY(-1px);
}

.app-topbar__menu-icon {
  align-items: center;
  display: inline-flex;
  justify-content: center;
}

.app-topbar__menu-icon svg {
  fill: none;
  height: 18px;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2.25;
  width: 18px;
}

.app-topbar__menu-icon--close {
  display: none;
}

.app-topbar__heading {
  color: #3f4047;
  font-size: 26px;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.2;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.app-topbar__title {
  flex: 1 1 auto;
  min-width: 0;
}

.app-topbar__subtitle {
  color: #8d8fa7;
  font-size: 14px;
  font-weight: 500;
  margin-top: 4px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.app-topbar__shop {
  align-items: flex-end;
  color: #33405d;
  display: flex;
  flex-direction: column;
  font-weight: 700;
  line-height: 1.25;
  max-width: 320px;
  min-width: 0;
}

.app-topbar__shop strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  width: 100%;
}

.app-topbar__role {
  color: #7784a1;
  font-size: 12px;
  font-weight: 600;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  width: 100%;
}

.app-subheader__subtitle {
  color: #8d8fa7;
  margin-top: 6px;
}

.app-topbar__actions {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: flex-end;
}

.app-topbar__online {
  background: #eef4ff;
  border: 1px solid #d8e3fb;
  border-radius: 999px;
  color: #41506d;
  display: inline-flex;
  font-size: 13px;
  gap: 6px;
  line-height: 1;
  padding: 10px 14px;
  white-space: nowrap;
}

.app-topbar__online b {
  color: #1f4b99;
}

.app-topbar__shop-switch {
  margin: 0;
}

.app-topbar__shop-select {
  min-width: 220px;
}

.m-wrapper {
  min-width: 0;
}

.app-context {
  align-items: center;
  background: linear-gradient(180deg, #ffffff 0%, #fafcff 100%);
  border-bottom: 1px solid #e7edf8;
  color: #374662;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: space-between;
  margin: 0 24px;
  min-height: 46px;
  padding: 10px 2px 9px;
}

.app-context > div:first-child {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.app-context strong {
  color: #1f2d4a;
  font-weight: 800;
}

.app-context .text-muted {
  color: #7b89a4 !important;
}

.app-sidebar .m-menu__link {
  min-height: 58px;
}

.app-sidebar {
  background:
    radial-gradient(circle at top left, rgba(98, 119, 255, 0.18), transparent 28%),
    linear-gradient(180deg, #23263a 0%, #1d2031 100%);
  border-right: 1px solid rgba(255, 255, 255, 0.05);
  display: flex;
  flex-direction: column;
  width: var(--app-sidebar-width);
}

.app-sidebar .m-menu__nav {
  padding: 12px 10px 18px;
}

.app-sidebar .m-aside-menu-wrapper {
  display: flex;
  flex: 1 1 auto;
  min-height: 0;
}

@media (min-width: 993px) {
  .app-sidebar {
    height: calc(100vh - var(--app-header-height)) !important;
    overflow-y: auto !important;
    overscroll-behavior: contain;
    position: sticky !important;
    top: var(--app-header-height) !important;
    align-self: flex-start;
  }

  .app-sidebar .m-aside-menu-wrapper {
    overflow-y: auto !important;
    min-height: 0;
  }
}

.app-sidebar .m-menu__item {
  margin-bottom: 6px;
}

.app-sidebar__row {
  align-items: center;
  display: grid;
  gap: 8px;
  grid-template-columns: minmax(0, 1fr) auto;
}

.app-sidebar__link {
  align-items: center;
  border: 1px solid transparent;
  border-radius: 14px;
  display: flex;
  gap: 12px;
  padding: 10px 12px !important;
  transition:
    background-color 0.22s ease,
    border-color 0.22s ease,
    transform 0.22s ease,
    box-shadow 0.22s ease;
}

.app-sidebar .m-menu__item > .app-sidebar__row > .app-sidebar__link:hover,
.app-sidebar .m-menu__item > .app-sidebar__row > .app-sidebar__link:focus {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.06);
  box-shadow: 0 10px 18px rgba(0, 0, 0, 0.18);
  transform: translateX(2px);
}

.app-sidebar .m-menu__item--active > .app-sidebar__row > .app-sidebar__link,
.app-sidebar .app-sidebar__item--open > .app-sidebar__row > .app-sidebar__link {
  background: linear-gradient(135deg, rgba(116, 106, 202, 0.28), rgba(45, 154, 255, 0.18));
  border-color: rgba(152, 183, 255, 0.18);
  box-shadow: 0 14px 24px rgba(0, 0, 0, 0.2);
}

.app-sidebar .m-menu__item--active .app-sidebar__text,
.app-sidebar .app-sidebar__item--open .app-sidebar__text {
  color: #ffffff;
}

.app-sidebar .m-menu__item--active .app-sidebar__svg-stroke,
.app-sidebar .app-sidebar__item--open .app-sidebar__svg-stroke {
  stroke: #41abff;
}

.app-sidebar .m-menu__item--active .app-sidebar__svg-duotone,
.app-sidebar .app-sidebar__item--open .app-sidebar__svg-duotone {
  fill: rgba(255, 255, 255, 0.32);
}

.app-sidebar__item--installment .app-sidebar__icon-wrap {
  color: #4aa3ff;
  background: rgba(74, 163, 255, 0.16);
  border-color: rgba(74, 163, 255, 0.18);
}

.app-sidebar__item--shop .app-sidebar__icon-wrap {
  color: #ffb357;
  background: rgba(255, 179, 87, 0.14);
  border-color: rgba(255, 179, 87, 0.18);
}

.app-sidebar__item--staff .app-sidebar__icon-wrap {
  color: #5dd9ad;
  background: rgba(93, 217, 173, 0.14);
  border-color: rgba(93, 217, 173, 0.18);
}

.app-sidebar__item--permission .app-sidebar__icon-wrap {
  color: #bb8cff;
  background: rgba(187, 140, 255, 0.14);
  border-color: rgba(187, 140, 255, 0.18);
}

.app-sidebar__item--history .app-sidebar__icon-wrap {
  color: #ff7d9d;
  background: rgba(255, 125, 157, 0.14);
  border-color: rgba(255, 125, 157, 0.18);
}

.app-sidebar__item--trash .app-sidebar__icon-wrap {
  color: #ff8a4b;
  background: rgba(255, 138, 75, 0.14);
  border-color: rgba(255, 138, 75, 0.2);
}

.app-sidebar__item--default .app-sidebar__icon-wrap {
  color: #8ea0c6;
}

.app-sidebar__icon-wrap {
  align-items: center;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 12px;
  display: inline-flex;
  flex: 0 0 34px;
  height: 34px;
  justify-content: center;
  transition: background-color 0.22s ease, transform 0.22s ease;
  width: 34px;
}

.app-sidebar .m-menu__item > .app-sidebar__row > .app-sidebar__link:hover .app-sidebar__icon-wrap,
.app-sidebar .m-menu__item--active > .app-sidebar__row > .app-sidebar__link .app-sidebar__icon-wrap,
.app-sidebar .app-sidebar__item--open > .app-sidebar__row > .app-sidebar__link .app-sidebar__icon-wrap {
  background: rgba(255, 255, 255, 0.14);
  transform: scale(1.04);
}

.app-sidebar .m-menu__link-icon {
  color: #d8def2;
  font-size: 16px;
  width: auto;
}

.app-sidebar__svg {
  height: 18px;
  width: 18px;
}

.app-sidebar__svg-duotone {
  fill: rgba(255, 255, 255, 0.22);
}

.app-sidebar__svg-stroke {
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.app-sidebar__text {
  color: #eff2ff;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.app-sidebar__dropdown {
  align-items: center;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  color: #c8d0ec;
  cursor: pointer;
  display: inline-flex;
  flex: 0 0 36px;
  height: 36px;
  justify-content: center;
  margin-right: 4px;
  transition:
    background-color 0.22s ease,
    color 0.22s ease,
    transform 0.22s ease,
    border-color 0.22s ease;
  width: 36px;
}

.app-sidebar__dropdown:hover,
.app-sidebar__dropdown:focus {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.12);
  color: #ffffff;
  outline: none;
}

.app-sidebar__dropdown-icon {
  fill: none;
  height: 16px;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2.4;
  transform: rotate(0deg);
  transition: transform 0.22s ease;
  width: 16px;
}

.app-sidebar__item--open .app-sidebar__dropdown-icon {
  transform: rotate(180deg);
}

.app-sidebar__submenu {
  display: grid;
  gap: 6px;
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  padding: 0 10px 0 58px;
  transform: translateY(-6px);
  transition:
    max-height 0.24s ease,
    opacity 0.2s ease,
    transform 0.2s ease,
    padding 0.2s ease;
}

.app-sidebar__submenu--installment {
  --submenu-accent: #4aa3ff;
  --submenu-accent-soft: rgba(74, 163, 255, 0.15);
}

.app-sidebar__submenu--shop {
  --submenu-accent: #ffb357;
  --submenu-accent-soft: rgba(255, 179, 87, 0.15);
}

.app-sidebar__submenu--staff {
  --submenu-accent: #5dd9ad;
  --submenu-accent-soft: rgba(93, 217, 173, 0.15);
}

.app-sidebar__submenu--permission {
  --submenu-accent: #bb8cff;
  --submenu-accent-soft: rgba(187, 140, 255, 0.15);
}

.app-sidebar__submenu--history {
  --submenu-accent: #ff7d9d;
  --submenu-accent-soft: rgba(255, 125, 157, 0.15);
}

.app-sidebar__submenu--trash {
  --submenu-accent: #ff8a4b;
  --submenu-accent-soft: rgba(255, 138, 75, 0.15);
}

.app-sidebar__item--open .app-sidebar__submenu {
  max-height: 320px;
  opacity: 1;
  padding-bottom: 10px;
  padding-top: 6px;
  transform: translateY(0);
}

.app-sidebar__submenu-link {
  align-items: center;
  border: 1px solid transparent;
  border-radius: 12px;
  color: #b7c0dc;
  display: flex;
  font-size: 13px;
  font-weight: 600;
  gap: 10px;
  overflow: hidden;
  min-height: 40px;
  padding: 8px 12px;
  position: relative;
  transition:
    background-color 0.2s ease,
    color 0.2s ease,
    border-color 0.2s ease,
    transform 0.2s ease;
}

.app-sidebar__submenu-link::before {
  content: "";
  height: 100%;
  left: 0;
  position: absolute;
  top: 0;
  width: 3px;
  background: transparent;
  transition: background-color 0.2s ease;
}

.app-sidebar__submenu-link:hover,
.app-sidebar__submenu-link.is-active {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.08);
  color: #ffffff;
  text-decoration: none;
  transform: translateX(2px);
}

.app-sidebar__submenu-link--installment:hover::before,
.app-sidebar__submenu-link--installment.is-active::before {
  background: #4aa3ff;
}

.app-sidebar__submenu-link--shop:hover::before,
.app-sidebar__submenu-link--shop.is-active::before {
  background: #ffb357;
}

.app-sidebar__submenu-link--staff:hover::before,
.app-sidebar__submenu-link--staff.is-active::before {
  background: #5dd9ad;
}

.app-sidebar__submenu-link--permission:hover::before,
.app-sidebar__submenu-link--permission.is-active::before {
  background: #bb8cff;
}

.app-sidebar__submenu-link--history:hover::before,
.app-sidebar__submenu-link--history.is-active::before {
  background: #ff7d9d;
}

.app-sidebar__submenu-link--trash:hover::before,
.app-sidebar__submenu-link--trash.is-active::before {
  background: #ff8a4b;
}

.app-sidebar__submenu-link--installment:hover,
.app-sidebar__submenu-link--installment.is-active,
.app-sidebar__submenu-link--shop:hover,
.app-sidebar__submenu-link--shop.is-active,
.app-sidebar__submenu-link--staff:hover,
.app-sidebar__submenu-link--staff.is-active,
.app-sidebar__submenu-link--permission:hover,
.app-sidebar__submenu-link--permission.is-active,
.app-sidebar__submenu-link--history:hover,
.app-sidebar__submenu-link--history.is-active {
  background: var(--submenu-accent-soft);
  border-color: rgba(255, 255, 255, 0.06);
  color: #ffffff;
}

.app-sidebar__submenu-link--trash:hover,
.app-sidebar__submenu-link--trash.is-active {
  background: var(--submenu-accent-soft);
  border-color: rgba(255, 255, 255, 0.06);
  color: #ffffff;
}

.app-sidebar__submenu-icon {
  align-items: center;
  border-radius: 10px;
  display: inline-flex;
  flex: 0 0 24px;
  height: 24px;
  justify-content: center;
  transition:
    background-color 0.2s ease,
    transform 0.2s ease,
    box-shadow 0.2s ease;
  width: 24px;
}

.app-sidebar__submenu-link--installment .app-sidebar__submenu-icon {
  color: #4aa3ff;
  background: rgba(74, 163, 255, 0.12);
}

.app-sidebar__submenu-link--shop .app-sidebar__submenu-icon {
  color: #ffb357;
  background: rgba(255, 179, 87, 0.12);
}

.app-sidebar__submenu-link--staff .app-sidebar__submenu-icon {
  color: #5dd9ad;
  background: rgba(93, 217, 173, 0.12);
}

.app-sidebar__submenu-link--permission .app-sidebar__submenu-icon {
  color: #bb8cff;
  background: rgba(187, 140, 255, 0.12);
}

.app-sidebar__submenu-link--history .app-sidebar__submenu-icon {
  color: #ff7d9d;
  background: rgba(255, 125, 157, 0.12);
}

.app-sidebar__submenu-link--trash .app-sidebar__submenu-icon {
  color: #ff8a4b;
  background: rgba(255, 138, 75, 0.12);
}

.app-sidebar__submenu-link:hover .app-sidebar__submenu-icon,
.app-sidebar__submenu-link.is-active .app-sidebar__submenu-icon {
  transform: scale(1.08);
  box-shadow: 0 10px 16px rgba(0, 0, 0, 0.16);
}

.app-sidebar__submenu-text {
  flex: 1;
  color: inherit;
}

.app-sidebar__submenu-svg {
  height: 14px;
  width: 14px;
}

.swal2-popup.app-swal-login-success__popup {
  animation: appSwalEnter 180ms ease-out;
}

.app-swal-login-success__badge {
  animation: appSwalBadgePulse 1.8s ease-in-out infinite;
}

.app-swal-login-success__badge svg {
  animation: appSwalBadgeCheck 520ms ease-out 120ms both;
}

.app-sidebar__footer {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  margin-top: 10px;
  padding: 14px 12px 18px;
}

.app-sidebar__logout {
  align-items: center;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  color: #eff2ff;
  cursor: pointer;
  display: flex;
  gap: 12px;
  padding: 10px 12px;
  transition:
    background-color 0.22s ease,
    border-color 0.22s ease,
    transform 0.22s ease;
  width: 100%;
}

.app-sidebar__logout:hover,
.app-sidebar__logout:focus {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.14);
  outline: none;
  transform: translateX(2px);
}

.app-stat__label {
  color: #8d8fa7;
  font-size: 14px;
  margin-bottom: 8px;
}

.app-stat__value {
  color: #212125;
  font-size: 28px;
  font-weight: 700;
  line-height: 1.25;
}

.app-timeline__empty {
  color: #8d8fa7;
}

.app-scroll-top {
  align-items: center;
  background: linear-gradient(135deg, #716aca 0%, #4e88ff 100%);
  border: 0;
  border-radius: 999px;
  bottom: 24px;
  box-shadow: 0 16px 30px rgba(66, 93, 171, 0.28);
  color: #ffffff;
  cursor: pointer;
  display: inline-flex;
  font-size: 20px;
  height: 48px;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  position: fixed;
  right: 24px;
  transform: translateY(14px) scale(0.95);
  transition:
    opacity 0.22s ease,
    transform 0.22s ease,
    box-shadow 0.22s ease;
  width: 48px;
  z-index: 1200;
}

.app-scroll-top__icon {
  display: inline-flex;
}

.app-scroll-top__icon svg {
  fill: currentColor;
  height: 18px;
  width: 18px;
}

.app-sidebar-overlay {
  background: rgba(14, 19, 33, 0.46);
  inset: 0;
  opacity: 0;
  pointer-events: none;
  position: fixed;
  transition: opacity 0.22s ease;
  z-index: 1090;
}

.app-sidebar-overlay.is-visible {
  opacity: 1;
  pointer-events: auto;
}

.app-scroll-top.is-visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0) scale(1);
}

.app-scroll-top:hover,
.app-scroll-top:focus {
  box-shadow: 0 20px 36px rgba(66, 93, 171, 0.34);
  outline: none;
  transform: translateY(-2px);
}

.app-scroll-top > i {
  display: none;
}

.swal2-popup.app-swal-login-success__popup {
  background:
    radial-gradient(circle at top left, rgba(74, 163, 255, 0.14), transparent 34%),
    linear-gradient(180deg, #ffffff 0%, #f7faff 100%);
  border: 1px solid rgba(92, 123, 255, 0.12);
  border-radius: 24px;
  box-shadow: 0 30px 70px rgba(27, 45, 93, 0.22);
  padding: 28px 26px 22px;
}

.swal2-popup.app-swal-login-success__popup .swal2-title {
  display: none;
}

.swal2-popup.app-swal-login-success__popup .swal2-html-container {
  margin: 0;
  padding: 0;
}

.swal2-popup.app-swal-login-success__popup .swal2-actions {
  margin: 22px 0 0;
  padding: 0;
}

.swal2-popup.app-swal-login-success__popup .swal2-confirm {
  background: linear-gradient(135deg, #4a8cff 0%, #56c6ff 100%);
  border: 0;
  border-radius: 999px;
  box-shadow: 0 16px 28px rgba(74, 140, 255, 0.26);
  min-width: 150px;
  padding: 12px 22px;
}

.swal2-popup.app-swal-login-success__popup .swal2-confirm:hover,
.swal2-popup.app-swal-login-success__popup .swal2-confirm:focus {
  box-shadow: 0 18px 34px rgba(74, 140, 255, 0.32);
  transform: translateY(-1px);
}

.app-swal-login-success {
  align-items: center;
  display: flex;
  flex-direction: column;
  gap: 10px;
  text-align: center;
}

.app-swal-login-success__badge {
  align-items: center;
  background: linear-gradient(135deg, #4a8cff 0%, #56c6ff 100%);
  border-radius: 999px;
  box-shadow: 0 16px 30px rgba(74, 140, 255, 0.24);
  color: #ffffff;
  display: inline-flex;
  height: 68px;
  justify-content: center;
  margin-bottom: 4px;
  width: 68px;
}

.app-swal-login-success__badge svg {
  fill: currentColor;
  height: 30px;
  width: 30px;
}

.app-swal-login-success__eyebrow {
  color: #6f7c96;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.app-swal-login-success__title {
  color: #25324f;
  font-size: 24px;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.app-swal-login-success__text {
  color: #5f6d89;
  font-size: 15px;
  line-height: 1.6;
  max-width: 320px;
}

.app-swal-login-success__hint {
  background: rgba(74, 140, 255, 0.08);
  border: 1px solid rgba(74, 140, 255, 0.12);
  border-radius: 999px;
  color: #3f5582;
  font-size: 12px;
  font-weight: 600;
  padding: 8px 14px;
}

@keyframes appSwalEnter {
  from {
    opacity: 0;
    transform: translateY(12px) scale(0.98);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes appSwalBadgePulse {
  0%,
  100% {
    box-shadow: 0 16px 30px rgba(74, 140, 255, 0.24);
    transform: translateY(0) scale(1);
  }

  50% {
    box-shadow: 0 20px 36px rgba(74, 140, 255, 0.32);
    transform: translateY(-1px) scale(1.03);
  }
}

@keyframes appSwalBadgeCheck {
  from {
    opacity: 0;
    transform: scale(0.7);
  }

  to {
    opacity: 1;
    transform: scale(1);
  }
}

.app-table__select-head,
.app-table__select-cell {
  text-align: center;
  width: 46px;
}

.app-table__checkbox {
  accent-color: #716aca;
  cursor: pointer;
  height: 16px;
  width: 16px;
}

.app-table__selection {
  color: #5d6882;
  font-size: 13px;
  font-weight: 600;
}

.app-bulk-actions {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: space-between;
  margin: 18px 0 12px;
}

.app-bulk-actions__buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

body.app-dialog-open {
  overflow: hidden;
}

.app-dialog-root {
  inset: 0;
  position: fixed;
  z-index: 2300;
  display: grid;
  place-items: center;
  pointer-events: none;
  padding: 16px;
}

.app-dialog-root.is-open {
  pointer-events: auto;
}

.app-dialog-backdrop {
  background: rgba(10, 16, 28, 0.52);
  inset: 0;
  opacity: 0;
  position: absolute;
  transition: opacity 0.2s ease;
}

.app-dialog-root.is-open .app-dialog-backdrop {
  opacity: 1;
}

.app-dialog-panel {
  position: relative;
  width: min(540px, calc(100vw - 24px));
  max-height: calc(100vh - 24px);
  overflow: auto;
  border-radius: 20px;
  border: 1px solid rgba(114, 128, 156, 0.18);
  background:
    radial-gradient(circle at top right, rgba(107, 157, 255, 0.14), transparent 34%),
    linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
  box-shadow: 0 30px 60px rgba(15, 27, 52, 0.28);
  padding: 20px 20px 16px;
  opacity: 0;
  transform: translateY(10px) scale(0.985);
  transition:
    opacity 0.2s ease,
    transform 0.2s ease;
}

.app-dialog-root.is-open .app-dialog-panel {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.app-dialog-header {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.app-dialog-icon {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
}

.app-dialog-icon svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2.2;
}

.app-dialog-root--info .app-dialog-icon {
  background: rgba(45, 125, 255, 0.12);
  color: #1f6dff;
}

.app-dialog-root--success .app-dialog-icon {
  background: rgba(15, 157, 88, 0.14);
  color: #0f9d58;
}

.app-dialog-root--warning .app-dialog-icon {
  background: rgba(242, 153, 0, 0.15);
  color: #d98000;
}

.app-dialog-root--error .app-dialog-icon {
  background: rgba(217, 48, 37, 0.14);
  color: #d93025;
}

.app-dialog-heading {
  min-width: 0;
}

.app-dialog-title {
  margin: 1px 0 0;
  color: #1f2b46;
  font-size: 21px;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.25;
}

.app-dialog-message {
  margin: 6px 0 0;
  color: #556483;
  font-size: 14px;
  line-height: 1.55;
  white-space: pre-line;
}

.app-dialog-body {
  margin-top: 14px;
}

.app-dialog-field {
  display: block;
}

.app-dialog-field__label {
  display: block;
  margin-bottom: 6px;
  color: #43506d;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.app-dialog-field__control {
  min-height: 42px;
}

.app-dialog-error {
  margin: 10px 0 0;
  color: #b42318;
  font-size: 13px;
  font-weight: 600;
}

.app-dialog-actions {
  margin-top: 16px;
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}

.app-dialog-btn {
  min-width: 106px;
}

table tbody tr.is-selected > td {
  background: rgba(113, 106, 202, 0.08);
}

@media (min-width: 993px) {
  body.m-aside-left--minimize .app-brand {
    justify-content: center;
    padding: 14px 10px;
    width: 80px;
  }

  body.m-aside-left--minimize .app-brand__link {
    grid-template-columns: 1fr;
    justify-items: center;
  }

  body.m-aside-left--minimize .app-brand__logo {
    height: 40px;
    width: 40px;
  }

  body.m-aside-left--minimize .app-brand__meta {
    display: none;
  }

  body.m-aside-left--minimize .app-sidebar .m-menu__nav {
    padding-left: 8px;
    padding-right: 8px;
  }

  body.m-aside-left--minimize .app-sidebar__row {
    grid-template-columns: 1fr;
  }

  body.m-aside-left--minimize .app-sidebar__link {
    justify-content: center;
    padding-left: 10px !important;
    padding-right: 10px !important;
  }

  body.m-aside-left--minimize .app-sidebar__text,
  body.m-aside-left--minimize .app-sidebar__dropdown,
  body.m-aside-left--minimize .app-sidebar__submenu {
    display: none !important;
  }

  body.m-aside-left--minimize .app-topbar__menu-icon--menu {
    display: none;
  }

  body.m-aside-left--minimize .app-topbar__menu-icon--close {
    display: inline-flex;
  }
}

@media (max-width: 992px) {
  .app-topbar {
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    padding: 14px 18px;
  }

  .app-topbar__title {
    width: calc(100% - 56px);
  }

  .app-topbar__shop {
    align-items: flex-start;
    max-width: 100%;
  }

  .app-topbar__actions {
    justify-content: flex-start;
    width: 100%;
  }

  .app-context {
    margin: 0 18px;
  }

  .app-topbar__shop-select {
    min-width: 180px;
  }

  .app-scroll-top {
    bottom: 18px;
    height: 44px;
    right: 18px;
    width: 44px;
  }

  .app-bulk-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .app-bulk-actions__buttons {
    width: 100%;
  }

  .app-bulk-actions__buttons .btn {
    flex: 1 1 160px;
  }

  .app-sidebar {
    box-shadow: 16px 0 36px rgba(7, 10, 18, 0.28);
    left: 0;
    max-width: 288px;
    overflow-y: auto;
    position: fixed;
    top: 0;
    transform: translateX(-108%);
    transition: transform 0.24s ease;
    z-index: 1100;
  }

  .app-brand {
    width: 100%;
  }

  .app-topbar__menu-icon--menu {
    display: inline-flex;
  }

  .app-topbar__menu-icon--close {
    display: none;
  }

  body.app-sidebar-mobile-open .app-sidebar {
    transform: translateX(0);
  }

  body.app-sidebar-mobile-open .app-topbar__menu-icon--menu {
    display: none;
  }

  body.app-sidebar-mobile-open .app-topbar__menu-icon--close {
    display: inline-flex;
  }

  body.app-sidebar-mobile-open {
    overflow: hidden;
  }
}
