/*
 * Tatros Innovations HMS global Tabler theme
 * Load after tabler.min.css so these styles can enhance the default theme.
 */

:root {
  --hms-blue-50: #eff6ff;
  --hms-blue-100: #dbeafe;
  --hms-blue-500: #2f80ed;
  --hms-blue-600: #206bc4;
  --hms-blue-700: #1959a6;
  --hms-indigo-600: #5f3dc4;
  --hms-cyan-500: #0ca6b7;
  --hms-dark: #182433;
  --hms-dark-soft: #1f2f42;
  --hms-surface: #ffffff;
  --hms-border: rgba(98, 105, 118, 0.16);
  --hms-shadow-sm: 0 0.2rem 0.75rem rgba(24, 36, 51, 0.055);
  --hms-shadow-md: 0 0.75rem 1.75rem rgba(24, 36, 51, 0.1);
  --hms-radius: 0.75rem;
  --hms-gradient: linear-gradient(
    135deg,
    var(--hms-blue-600) 0%,
    var(--hms-blue-500) 48%,
    var(--hms-indigo-600) 100%
  );
  --hms-soft-gradient: linear-gradient(
    135deg,
    rgba(32, 107, 196, 0.09),
    rgba(95, 61, 196, 0.055)
  );
}

html {
  min-height: 100%;
  max-width: 100%;
  overflow-x: hidden;
  background: #f3f5f8;
}

body:not(.hms-login-page) {
  min-height: 100vh;
  max-width: 100%;
  overflow-x: hidden;
  background: #f3f5f8;
}

body:not(.hms-login-page) .page,
body:not(.hms-login-page) .page-wrapper,
body:not(.hms-login-page) .page-body {
  min-width: 0;
  max-width: 100%;
  background: transparent;
}

body:not(.hms-login-page) .page-wrapper {
  overflow-x: clip;
}

body:not(.hms-login-page) .page-body {
  padding-top: 1.25rem;
  padding-bottom: 2rem;
  animation: hms-page-enter 420ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

/* Top navigation */
body:not(.hms-login-page) > .page > header:first-child,
body:not(.hms-login-page) .navbar.navbar-dark,
body:not(.hms-login-page) .hms-main-header {
  color: #ffffff;
  background: var(--hms-dark) !important;
  background-image: none !important;
  border: 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 0.25rem 0.8rem rgba(15, 23, 42, 0.18);
}

body:not(.hms-login-page) .hms-main-header::before {
  display: none !important;
}

body:not(.hms-login-page) > .page > header:nth-child(2) {
  position: relative;
  z-index: 1020;
  border-bottom: 1px solid rgba(98, 105, 118, 0.14);
  background: #ffffff;
  box-shadow: 0 0.15rem 0.55rem rgba(24, 36, 51, 0.05);
}

body:not(.hms-login-page) .navbar-nav .nav-link {
  border-radius: 0.65rem;
  transition:
    color 160ms ease,
    background-color 160ms ease,
    transform 160ms ease;
}

body:not(.hms-login-page) .navbar-nav .nav-link:hover {
  color: var(--hms-blue-700);
  background: rgba(32, 107, 196, 0.07);
  transform: translateY(-1px);
}

body:not(.hms-login-page) .navbar-nav .nav-item.active > .nav-link {
  color: var(--hms-blue-700);
  background: rgba(32, 107, 196, 0.1);
  box-shadow: inset 0 0 0 1px rgba(32, 107, 196, 0.09);
}

body:not(.hms-login-page) .navbar-nav .nav-item.active > .nav-link::after {
  border-color: currentColor;
}

body:not(.hms-login-page) .hms-main-header .nav-link {
  color: rgba(255, 255, 255, 0.82) !important;
}

body:not(.hms-login-page) .hms-main-header .nav-link:hover,
body:not(.hms-login-page) .hms-main-header .nav-link:focus,
body:not(.hms-login-page) .hms-main-header .nav-link.show {
  color: #ffffff !important;
  background: rgba(255, 255, 255, 0.08);
}



body:not(.hms-login-page) .page-title,
body:not(.hms-login-page) h1,
body:not(.hms-login-page) h2 {
  color: #182433;
}

body:not(.hms-login-page) .page-pretitle {
  color: var(--hms-blue-600);
  font-weight: 700;
  letter-spacing: 0.055em;
}

/* Cards */
body:not(.hms-login-page) .card {
  border: 1px solid var(--hms-border);
  border-radius: var(--hms-radius);
  background: var(--hms-surface);
  box-shadow: var(--hms-shadow-sm);
  transition:
    box-shadow 180ms ease,
    transform 180ms ease,
    border-color 180ms ease;
}

body:not(.hms-login-page) .card:hover {
  border-color: rgba(32, 107, 196, 0.18);
  box-shadow: var(--hms-shadow-md);
  transform: translateY(-2px);
}

body:not(.hms-login-page) .card-header {
  min-height: 3.65rem;
  border-bottom-color: rgba(32, 107, 196, 0.1);
  border-radius: var(--hms-radius) var(--hms-radius) 0 0;
  background: #ffffff;
}

body:not(.hms-login-page) .card-footer {
  border-top-color: rgba(32, 107, 196, 0.1);
  border-radius: 0 0 var(--hms-radius) var(--hms-radius);
  background: #fbfcfe;
}

body:not(.hms-login-page) .card-title {
  color: #1d3557;
  font-weight: 700;
}

body:not(.hms-login-page) .row-cards > [class*="col"] > .card {
  height: 100%;
}

body:not(.hms-login-page) .row-cards > [class*="col"],
body:not(.hms-login-page) .page-body > .container-xl > .row > [class*="col"] {
  animation: hms-card-enter 440ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

body:not(.hms-login-page) .row-cards > [class*="col"]:nth-child(2),
body:not(.hms-login-page) .page-body > .container-xl > .row > [class*="col"]:nth-child(2) {
  animation-delay: 45ms;
}

body:not(.hms-login-page) .row-cards > [class*="col"]:nth-child(3),
body:not(.hms-login-page) .page-body > .container-xl > .row > [class*="col"]:nth-child(3) {
  animation-delay: 90ms;
}

body:not(.hms-login-page) .row-cards > [class*="col"]:nth-child(4),
body:not(.hms-login-page) .page-body > .container-xl > .row > [class*="col"]:nth-child(4) {
  animation-delay: 135ms;
}

/* Buttons */
body:not(.hms-login-page) .btn-primary {
  border-color: transparent;
  background: var(--hms-gradient);
  box-shadow: 0 0.35rem 0.9rem rgba(32, 107, 196, 0.2);
}

body:not(.hms-login-page) .btn-primary:hover,
body:not(.hms-login-page) .btn-primary:focus {
  border-color: transparent;
  background: linear-gradient(135deg, #1959a6, #4e2fa8);
  box-shadow: 0 0.5rem 1.1rem rgba(32, 107, 196, 0.27);
  transform: translateY(-1px);
}

body:not(.hms-login-page) .btn-outline-primary {
  border-color: rgba(32, 107, 196, 0.45);
  color: var(--hms-blue-600);
}

body:not(.hms-login-page) .btn-outline-primary:hover {
  border-color: transparent;
  background: var(--hms-gradient);
  color: #fff;
}

body:not(.hms-login-page) .btn {
  border-radius: 0.6rem;
  transition:
    transform 150ms ease,
    box-shadow 150ms ease,
    background-color 150ms ease;
}

body:not(.hms-login-page) .btn:hover {
  transform: translateY(-1px);
}

body:not(.hms-login-page) .btn:active {
  transform: translateY(0) scale(0.985);
}

body:not(.hms-login-page) a,
body:not(.hms-login-page) button,
body:not(.hms-login-page) input,
body:not(.hms-login-page) select {
  -webkit-tap-highlight-color: transparent;
}

/* Forms */
body:not(.hms-login-page) .form-control,
body:not(.hms-login-page) .form-select,
body:not(.hms-login-page) .input-group-text {
  border-color: rgba(98, 113, 133, 0.22);
  border-radius: 0.6rem;
  background-color: rgba(255, 255, 255, 0.9);
}

body:not(.hms-login-page) .form-control:focus,
body:not(.hms-login-page) .form-select:focus {
  border-color: rgba(32, 107, 196, 0.7);
  box-shadow: 0 0 0 0.22rem rgba(32, 107, 196, 0.12);
}

body:not(.hms-login-page) .form-label {
  color: #344563;
  font-weight: 600;
}

body:not(.hms-login-page) .input-group > :not(:first-child) {
  border-top-left-radius: 0;
  border-bottom-left-radius: 0;
}

body:not(.hms-login-page) .input-group > :not(:last-child) {
  border-top-right-radius: 0;
  border-bottom-right-radius: 0;
}

/* Tables */
body:not(.hms-login-page) .table-responsive {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  overflow-x: auto;
  overscroll-behavior-inline: contain;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: rgba(32, 107, 196, 0.36) transparent;
  border-radius: inherit;
}

body:not(.hms-login-page) .table-responsive::-webkit-scrollbar {
  height: 7px;
}

body:not(.hms-login-page) .table-responsive::-webkit-scrollbar-thumb {
  background: rgba(32, 107, 196, 0.34);
  border-radius: 999px;
}

body:not(.hms-login-page) .table {
  --tblr-table-hover-bg: rgba(32, 107, 196, 0.045);
  margin-bottom: 0;
}

body:not(.hms-login-page) .table thead th {
  border-bottom-color: rgba(32, 107, 196, 0.14);
  background: rgba(239, 246, 255, 0.85);
  color: #3e5876;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.045em;
  text-transform: uppercase;
}

body:not(.hms-login-page) .table tbody td {
  border-bottom-color: rgba(98, 113, 133, 0.1);
}

body:not(.hms-login-page) .table tbody tr:last-child td {
  border-bottom: 0;
}

body:not(.hms-login-page) .table tbody tr {
  transition:
    background-color 140ms ease,
    box-shadow 140ms ease;
}

/* Menus, alerts and badges */
body:not(.hms-login-page) .dropdown-menu {
  overflow: hidden;
  border: 1px solid rgba(32, 107, 196, 0.12);
  border-radius: 0.75rem;
  box-shadow: var(--hms-shadow-md);
}

body:not(.hms-login-page) .dropdown-item {
  border-radius: 0.45rem;
  margin: 0.12rem 0.35rem;
  width: auto;
}

body:not(.hms-login-page) .dropdown-item.active,
body:not(.hms-login-page) .dropdown-item:active {
  background: var(--hms-gradient);
  color: #fff;
}

body:not(.hms-login-page) .alert {
  border: 0;
  border-radius: 0.75rem;
  box-shadow: var(--hms-shadow-sm);
}

body:not(.hms-login-page) .badge {
  border-radius: 999px;
  font-weight: 600;
}

body:not(.hms-login-page) .avatar.bg-primary-lt {
  background: var(--hms-soft-gradient) !important;
  color: var(--hms-blue-600) !important;
}

/* Modal */
body:not(.hms-login-page) .modal-content {
  border: 1px solid rgba(32, 107, 196, 0.12);
  border-radius: 1rem;
  box-shadow: 0 2rem 5rem rgba(31, 45, 61, 0.2);
}

/* Global page loader */
html.hms-loading,
html.hms-loading body {
  overflow: hidden;
}

html.hms-loading body::before {
  position: fixed;
  z-index: 20000;
  inset: 0;
  content: "";
  background:
    radial-gradient(
      circle at 50% 42%,
      rgba(255, 255, 255, 0.98),
      rgba(239, 246, 255, 0.95) 42%,
      rgba(226, 236, 255, 0.93) 100%
    );
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

html.hms-loading body::after {
  position: fixed;
  z-index: 20001;
  top: 50%;
  left: 50%;
  width: 3.6rem;
  height: 3.6rem;
  margin: -1.8rem 0 0 -1.8rem;
  content: "";
  border: 0.34rem solid rgba(32, 107, 196, 0.14);
  border-top-color: var(--hms-blue-600);
  border-right-color: var(--hms-indigo-600);
  border-radius: 50%;
  box-shadow: 0 0 2rem rgba(32, 107, 196, 0.15);
  animation: hms-loader-spin 750ms linear infinite;
}

html.hms-loading body > * {
  pointer-events: none;
}

@keyframes hms-loader-spin {
  to {
    transform: rotate(360deg);
  }
}

@keyframes hms-page-enter {
  from {
    opacity: 0;
    transform: translateY(8px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes hms-card-enter {
  from {
    opacity: 0;
    transform: translateY(12px) scale(0.985);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* Dark mode */
[data-bs-theme="dark"] {
  --hms-surface: rgba(24, 36, 51, 0.93);
  --hms-border: rgba(120, 170, 255, 0.13);
}

[data-bs-theme="dark"] body:not(.hms-login-page) {
  background: #111827;
}

[data-bs-theme="dark"] body:not(.hms-login-page) .page-header,
[data-bs-theme="dark"] body:not(.hms-login-page) .card-header,
[data-bs-theme="dark"] body:not(.hms-login-page) .card-footer,
[data-bs-theme="dark"] body:not(.hms-login-page) > .page > header:nth-child(2) {
  background: rgba(24, 36, 51, 0.9);
}

[data-bs-theme="dark"] body:not(.hms-login-page) .page-title,
[data-bs-theme="dark"] body:not(.hms-login-page) h1,
[data-bs-theme="dark"] body:not(.hms-login-page) h2,
[data-bs-theme="dark"] body:not(.hms-login-page) .card-title,
[data-bs-theme="dark"] body:not(.hms-login-page) .form-label {
  color: #e7eef8;
}

[data-bs-theme="dark"] body:not(.hms-login-page) .table thead th {
  background: rgba(32, 107, 196, 0.13);
  color: #b9c9dd;
}

@media (max-width: 767.98px) {
  body:not(.hms-login-page) .page-body {
    padding-top: 0.85rem;
  }

  body:not(.hms-login-page) .page-header {
    padding: 1rem;
  }

  body:not(.hms-login-page) .card {
    border-radius: 0.75rem;
  }

  body:not(.hms-login-page) .card:hover {
    transform: none;
  }

  body:not(.hms-login-page) .btn-list {
    gap: 0.5rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}