:root,
[data-bs-theme="light"],
[data-theme="light"] {
  --apty-primary: #185a60;
  --apty-primary-hover: #12474c;
  --apty-primary-active: #0e393d;
  --apty-primary-soft: #e8f3f2;
  --apty-primary-soft-hover: #dceceb;
  --apty-accent: #e9a008;
  --apty-graphite: #202832;
  --apty-sidebar: #202832;
  --apty-sidebar-deep: #18212a;
  --apty-secondary: #667085;
  --apty-canvas: #f6f7f7;
  --apty-surface: #ffffff;
  --apty-border: #dde3e6;

  --tblr-primary: var(--apty-primary);
  --tblr-primary-rgb: 24, 90, 96;
  --tblr-primary-fg: #ffffff;
  --tblr-primary-darken: var(--apty-primary-hover);
  --tblr-primary-lt: var(--apty-primary-soft);
  --tblr-primary-lt-rgb: 232, 243, 242;
  --tblr-primary-200: #c6dfdd;
  --tblr-primary-text-emphasis: #0e393d;
  --tblr-primary-bg-subtle: var(--apty-primary-soft);
  --tblr-primary-border-subtle: #a9cfcc;
  --tblr-secondary: var(--apty-secondary);
  --tblr-secondary-rgb: 102, 112, 133;
  --tblr-body-color: var(--apty-graphite);
  --tblr-body-color-rgb: 32, 40, 50;
  --tblr-body-bg: var(--apty-canvas);
  --tblr-body-bg-rgb: 246, 247, 247;
  --tblr-secondary-color: rgba(102, 112, 133, .82);
  --tblr-secondary-color-rgb: 102, 112, 133;
  --tblr-tertiary-bg: #f1f3f4;
  --tblr-link-color: var(--apty-primary);
  --tblr-link-color-rgb: 24, 90, 96;
  --tblr-link-hover-color: var(--apty-primary-hover);
  --tblr-link-hover-color-rgb: 18, 71, 76;
  --tblr-border-color: var(--apty-border);
  --tblr-border-color-translucent: rgba(32, 40, 50, .12);
  --tblr-bg-surface: var(--apty-surface);
  --tblr-bg-surface-primary: var(--apty-surface);
  --tblr-bg-surface-secondary: var(--apty-canvas);
  --tblr-bg-surface-tertiary: #f1f3f4;
  --tblr-focus-ring-color: rgba(24, 90, 96, .2);
}

body {
  background: var(--apty-canvas);
  color: var(--apty-graphite);
}

a {
  color: var(--apty-primary);
}

a:hover {
  color: var(--apty-primary-hover);
}

.btn-primary {
  --tblr-btn-bg: var(--apty-primary);
  --tblr-btn-border-color: var(--apty-primary);
  --tblr-btn-hover-bg: var(--apty-primary-hover);
  --tblr-btn-hover-border-color: var(--apty-primary-hover);
  --tblr-btn-active-bg: var(--apty-primary-active);
  --tblr-btn-active-border-color: var(--apty-primary-active);
  --tblr-btn-focus-shadow-rgb: 24, 90, 96;
}

.btn-outline-primary {
  --tblr-btn-color: var(--apty-primary);
  --tblr-btn-border-color: var(--apty-primary);
  --tblr-btn-hover-bg: var(--apty-primary);
  --tblr-btn-active-bg: var(--apty-primary-hover);
  --tblr-btn-active-border-color: var(--apty-primary-hover);
  --tblr-btn-focus-shadow-rgb: 24, 90, 96;
}

.form-control:focus,
.form-select:focus,
.form-check-input:focus {
  border-color: #71aaa7;
  box-shadow: 0 0 0 .2rem rgba(24, 90, 96, .14);
}

.form-check-input:checked {
  border-color: var(--apty-primary);
  background-color: var(--apty-primary);
}

.card {
  border-color: var(--apty-border);
  box-shadow: 0 1px 3px rgba(32, 40, 50, .045);
}

.table > :not(caption) > * > * {
  border-bottom-color: var(--apty-border);
}

.page-pretitle {
  color: var(--apty-primary);
}

.page-title,
.card-title,
h1,
h2,
h3,
h4,
h5,
h6 {
  color: var(--apty-graphite);
}

.apty-sidebar.navbar-vertical {
  border-right: 0;
  background: var(--apty-sidebar);
  box-shadow: 1px 0 0 rgba(14, 25, 34, .18);
}

.apty-sidebar .navbar-nav {
  gap: .125rem;
}

.apty-sidebar .nav-link {
  position: relative;
  min-height: 2.65rem;
  margin: 0 .5rem;
  border-radius: 6px;
  color: rgba(255, 255, 255, .72);
  transition: background-color .15s ease, color .15s ease;
}

.apty-sidebar .nav-link-icon {
  color: rgba(193, 210, 212, .68);
  transition: color .15s ease;
}

.apty-sidebar .nav-link:hover,
.apty-sidebar .nav-link:focus-visible {
  background: rgba(255, 255, 255, .07);
  color: #ffffff;
}

.apty-sidebar .nav-link:hover .nav-link-icon,
.apty-sidebar .nav-link:focus-visible .nav-link-icon {
  color: #dceceb;
}

.apty-sidebar .nav-link.active,
.apty-sidebar .nav-link[aria-current="page"] {
  background: rgba(102, 179, 176, .16);
  color: #ffffff;
  font-weight: 600;
}

.apty-sidebar .nav-link.active::before,
.apty-sidebar .nav-link[aria-current="page"]::before {
  position: absolute;
  top: .45rem;
  bottom: .45rem;
  left: -.5rem;
  width: 3px;
  border-radius: 0 3px 3px 0;
  background: #69b3af;
  content: "";
}

.apty-sidebar .nav-link.active .nav-link-icon,
.apty-sidebar .nav-link[aria-current="page"] .nav-link-icon {
  color: #8bc8c5;
}

.apty-sidebar .dropdown-menu .dropdown-item.active {
  background: var(--apty-primary-soft);
  color: var(--apty-primary-hover);
}

.apty-topbar {
  border-bottom-color: var(--apty-border);
  background: var(--apty-surface);
  box-shadow: 0 1px 3px rgba(32, 40, 50, .035);
}

.apty-topbar .avatar {
  background: var(--apty-primary-soft);
  color: var(--apty-primary);
}

.page-wrapper {
  background: var(--apty-canvas);
}

.platform-footer {
  background: rgba(255, 255, 255, .98);
}

.platform-footer-name {
  color: var(--apty-graphite);
}

.platform-footer-support,
.platform-footer-credit a {
  color: var(--apty-primary);
}

.apty-auth-page {
  min-height: 100%;
  background: var(--apty-canvas);
}

.apty-auth-page::before {
  position: fixed;
  top: 0;
  right: 0;
  left: 0;
  z-index: 1;
  height: 4px;
  background: var(--apty-primary);
  content: "";
}

.apty-auth-brand {
  display: inline-flex;
  align-items: center;
  gap: .625rem;
  color: var(--apty-graphite);
  font-size: 1.65rem;
  font-weight: 700;
  text-decoration: none;
}

.apty-auth-brand:hover {
  color: var(--apty-graphite);
  text-decoration: none;
}

.apty-auth-brand::before {
  display: inline-grid;
  width: 2rem;
  height: 2rem;
  place-items: center;
  border-radius: 50%;
  background: var(--apty-primary-soft);
  color: var(--apty-primary);
  content: "\2713";
  font-size: 1.15rem;
  font-weight: 700;
}

.apty-auth-page .card {
  box-shadow: 0 8px 24px rgba(32, 40, 50, .08);
}

.apty-auth-page .hr-text::before,
.apty-auth-page .hr-text::after {
  border-top-color: var(--apty-border);
}

.apty-password-field {
  position: relative;
}

.apty-password-field .form-control {
  padding-right: 3rem;
}

.apty-password-toggle {
  position: absolute;
  z-index: 2;
  top: 50%;
  right: .35rem;
  display: grid;
  width: 2.25rem;
  height: 2.25rem;
  place-items: center;
  border: 0;
  border-radius: 4px;
  background: transparent;
  color: var(--apty-secondary);
  padding: 0;
  transform: translateY(-50%);
}

.apty-password-toggle:hover {
  background: var(--apty-primary-soft);
  color: var(--apty-primary);
}

.apty-password-toggle:focus-visible {
  outline: 2px solid var(--apty-primary);
  outline-offset: 1px;
}

.apty-password-toggle span {
  display: grid;
  place-items: center;
}

.apty-password-toggle span[hidden] {
  display: none;
}

.apty-password-toggle .icon {
  width: 1.15rem;
  height: 1.15rem;
}

@media (max-width: 991.98px) {
  .apty-sidebar.navbar-vertical {
    background: var(--apty-sidebar);
  }
}

@media (prefers-reduced-motion: reduce) {
  .apty-sidebar .nav-link,
  .apty-sidebar .nav-link-icon {
    transition: none;
  }
}
.whatsapp-qr-image {
  display: block;
  width: min(100%, 320px);
  aspect-ratio: 1;
  object-fit: contain;
  margin-inline: auto;
}

.apty-global-loader {
  position: fixed;
  inset: 0;
  z-index: 1090;
  pointer-events: none;
  opacity: 0;
  transition: opacity .22s ease;
}

.apty-global-loader[hidden] {
  display: none;
}

.apty-global-loader.is-visible {
  opacity: 1;
}

.apty-global-loader::before {
  position: absolute;
  inset: 0;
  background: transparent;
  content: "";
  transition: background-color .22s ease, backdrop-filter .22s ease;
}

.apty-global-loader[data-mode="blocking"] {
  pointer-events: auto;
}

.apty-global-loader[data-mode="blocking"]::before {
  background: rgba(246, 247, 247, .82);
  backdrop-filter: blur(5px);
}

.apty-global-loader-progress {
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  height: 4px;
  overflow: hidden;
  background: rgba(232, 243, 242, .75);
}

.apty-global-loader-progress::after {
  display: block;
  width: 32%;
  height: 100%;
  background: var(--apty-primary);
  content: "";
  box-shadow: 14px 0 0 var(--apty-accent);
  animation: apty-loader-progress 1.2s cubic-bezier(.4, 0, .2, 1) infinite;
}

.apty-global-loader-status {
  position: absolute;
  top: 1rem;
  right: 1rem;
  display: grid;
  width: min(90vw, 22rem);
  min-height: 4rem;
  grid-template-columns: 2.75rem minmax(0, 1fr) auto;
  align-items: center;
  gap: .8rem;
  padding: .65rem .85rem;
  border: 1px solid var(--apty-border);
  border-radius: 8px;
  background: rgba(255, 255, 255, .97);
  box-shadow: 0 12px 30px rgba(32, 40, 50, .14);
  color: var(--apty-graphite);
  animation: apty-loader-enter .28s ease-out both;
}

.apty-global-loader[data-mode="blocking"] .apty-global-loader-status {
  top: 50%;
  right: auto;
  left: 50%;
  width: min(calc(100vw - 2rem), 21rem);
  min-height: 0;
  aspect-ratio: 1;
  grid-template-columns: 1fr;
  grid-template-rows: auto auto auto;
  justify-items: center;
  gap: 1.1rem;
  padding: 1.6rem 2rem 1.35rem;
  border-color: rgba(24, 90, 96, .16);
  border-radius: 50%;
  box-shadow:
    0 24px 60px rgba(32, 40, 50, .18),
    0 0 0 1px rgba(255, 255, 255, .7) inset;
  text-align: center;
  transform: translate(-50%, -50%);
}

.apty-global-loader-brand {
  position: relative;
  display: grid;
  width: 2.75rem;
  height: 2.75rem;
  flex: 0 0 auto;
  place-items: center;
  perspective: 28rem;
}

.apty-global-loader[data-mode="blocking"] .apty-global-loader-brand {
  width: 9rem;
  height: 9rem;
}

.apty-global-loader-logo {
  position: relative;
  z-index: 2;
  display: block;
  width: 2.25rem;
  height: 2.25rem;
  border: 2px solid #fff;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 4px 12px rgba(24, 90, 96, .18);
  transform-style: preserve-3d;
  will-change: transform;
  animation: apty-loader-coin 2.25s cubic-bezier(.45, 0, .2, 1) infinite;
}

.apty-global-loader-logo-face {
  position: absolute;
  inset: 0;
  display: block;
  overflow: hidden;
  border-radius: 50%;
  background: #fff;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}

.apty-global-loader-logo-back {
  transform: rotateY(180deg);
}

.apty-global-loader-logo img {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: inherit;
  object-fit: cover;
}

.apty-global-loader[data-mode="blocking"] .apty-global-loader-logo {
  width: 7.25rem;
  height: 7.25rem;
  border-width: 3px;
  box-shadow:
    0 12px 30px rgba(24, 90, 96, .2),
    0 0 0 8px rgba(232, 243, 242, .72);
}

.apty-global-loader-orbit {
  position: absolute;
  inset: 0;
  z-index: 1;
  border: 1px solid rgba(24, 90, 96, .3);
  border-radius: 50%;
  animation: apty-loader-orbit 1.8s linear infinite;
}

.apty-global-loader[data-mode="blocking"] .apty-global-loader-orbit {
  border-width: 2px;
  border-color: rgba(24, 90, 96, .35);
  box-shadow: 0 0 0 5px rgba(232, 243, 242, .45);
}

.apty-global-loader-orbit-dot {
  position: absolute;
  top: 50%;
  right: -.22rem;
  width: .45rem;
  height: .45rem;
  border: 2px solid #fff;
  border-radius: 50%;
  background: var(--apty-accent);
  box-shadow: 0 2px 8px rgba(233, 160, 8, .35);
  transform: translateY(-50%);
}

.apty-global-loader[data-mode="blocking"] .apty-global-loader-orbit-dot {
  right: -.45rem;
  width: .9rem;
  height: .9rem;
  border-width: 3px;
}

.apty-global-loader-copy {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: .15rem;
}

.apty-global-loader-message {
  overflow: hidden;
  color: var(--apty-graphite);
  font-size: .875rem;
  font-weight: 700;
  line-height: 1.35;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.apty-global-loader-caption {
  display: none;
  color: var(--apty-secondary);
  font-size: .8rem;
  line-height: 1.4;
}

.apty-global-loader[data-mode="blocking"] .apty-global-loader-copy {
  align-items: center;
  gap: .4rem;
}

.apty-global-loader[data-mode="blocking"] .apty-global-loader-message {
  max-width: 17rem;
  overflow: visible;
  font-size: 1rem;
  text-overflow: clip;
  white-space: normal;
}

.apty-global-loader[data-mode="blocking"] .apty-global-loader-caption {
  display: block;
}

.apty-global-loader-dots {
  display: inline-flex;
  align-items: center;
  gap: .22rem;
}

.apty-global-loader-dots i {
  display: block;
  width: .3rem;
  height: .3rem;
  border-radius: 50%;
  background: var(--apty-primary);
  animation: apty-loader-dot 1.1s ease-in-out infinite;
}

.apty-global-loader-dots i:nth-child(2) {
  animation-delay: .14s;
}

.apty-global-loader-dots i:nth-child(3) {
  background: var(--apty-accent);
  animation-delay: .28s;
}

body.apty-is-blocked {
  cursor: progress;
}

@keyframes apty-loader-orbit {
  to {
    transform: rotate(360deg);
  }
}

@keyframes apty-loader-coin {
  0%,
  16% {
    transform: rotateY(0deg);
  }
  46%,
  62% {
    transform: rotateY(180deg);
  }
  92%,
  100% {
    transform: rotateY(360deg);
  }
}

@keyframes apty-loader-dot {
  0%,
  60%,
  100% {
    opacity: .35;
    transform: translateY(0);
  }
  30% {
    opacity: 1;
    transform: translateY(-3px);
  }
}

@keyframes apty-loader-enter {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes apty-loader-progress {
  from {
    transform: translateX(-110%);
  }
  to {
    transform: translateX(365%);
  }
}

@media (max-width: 575.98px) {
  .apty-global-loader-status {
    top: max(1rem, env(safe-area-inset-top));
    right: 1rem;
    left: 1rem;
    width: auto;
  }

  .apty-global-loader[data-mode="blocking"] .apty-global-loader-status {
    top: 50%;
    right: auto;
    left: 50%;
    width: min(calc(100vw - 2rem), 20rem);
    transform: translate(-50%, -50%);
  }
}

@media (prefers-reduced-motion: reduce) {
  .apty-global-loader,
  .apty-global-loader::before {
    transition: none;
  }

  .apty-global-loader-status {
    animation: none;
  }

  .apty-global-loader-orbit,
  .apty-global-loader-logo,
  .apty-global-loader-dots i {
    animation: none;
  }

  .apty-global-loader-progress::after {
    animation-duration: 2.2s;
  }
}
