html {
  box-sizing: border-box;
  font-size: 16px;
}

*,
*::before,
*::after {
  box-sizing: inherit;
}

body {
  margin: 0;
  min-height: 100vh;
  background: #f4f7fb;
  color: #1f2937;
  font-family: "Source Sans Pro", Arial, sans-serif;
  font-size: 14px;
  line-height: 1.45;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  height: auto;
}

.apex-wrapper {
  min-height: 100vh;
  position: relative;
}

.apex-topbar {
  min-height: 48px;
  border-bottom: 1px solid rgba(15, 23, 42, .08);
  box-shadow: 0 10px 25px rgba(15, 23, 42, .06);
  z-index: 1034;
}

.navbar {
  align-items: center;
  display: flex;
  flex-wrap: nowrap;
  padding: .35rem .75rem;
}

.navbar-nav {
  align-items: center;
  display: flex;
  flex-direction: row;
  list-style: none;
  margin: 0;
  padding-left: 0;
}

.nav-link {
  align-items: center;
  display: inline-flex;
  min-height: 38px;
  padding: .45rem .65rem;
}

.apex-sidebar {
  bottom: 0;
  left: 0;
  min-height: 100vh;
  position: fixed;
  top: 0;
  width: 250px;
  z-index: 1038;
}

.apex-sidebar-collapsed .apex-sidebar {
  width: 4.6rem;
}

.apex-content {
  min-height: 100vh;
  padding: 1rem;
  transition: margin-left .18s ease;
}

.apex-layout:not(.apex-sidebar-collapsed) .apex-content,
.apex-layout:not(.apex-sidebar-collapsed) .apex-footer,
.apex-layout:not(.apex-sidebar-collapsed) .apex-topbar {
  margin-left: 250px;
}

.apex-sidebar-collapsed .apex-content,
.apex-sidebar-collapsed .apex-footer,
.apex-sidebar-collapsed .apex-topbar {
  margin-left: 4.6rem;
}

.apex-layout-topnav .apex-content,
.apex-layout-topnav .apex-footer,
.apex-layout-topnav .apex-topbar,
.apex-login-page .apex-content,
.apex-login-page .apex-footer,
.apex-login-page .apex-topbar {
  margin-left: 0;
}

.container-fluid {
  margin-left: auto;
  margin-right: auto;
  padding-left: 12px;
  padding-right: 12px;
  width: 100%;
}

.row,
.form-row {
  display: flex;
  flex-wrap: wrap;
  margin-left: -7.5px;
  margin-right: -7.5px;
}

[class*="col-"],
.row > *,
.form-row > * {
  min-width: 0;
  padding-left: 7.5px;
  padding-right: 7.5px;
}

.card {
  background: #fff;
  border: 1px solid rgba(148, 163, 184, .24);
  border-radius: 8px;
  box-shadow: 0 12px 28px rgba(15, 23, 42, .06);
  margin-bottom: 1rem;
}

.card-header,
.card-body,
.card-footer {
  padding: .85rem 1rem;
}

.btn {
  align-items: center;
  border: 1px solid transparent;
  border-radius: 6px;
  cursor: pointer;
  display: inline-flex;
  font-size: .875rem;
  font-weight: 700;
  gap: .35rem;
  justify-content: center;
  min-height: 34px;
  padding: .35rem .75rem;
  transition: background-color .15s ease, border-color .15s ease, box-shadow .15s ease;
}

.btn-primary {
  background: #2563eb;
  border-color: #2563eb;
  color: #fff;
}

.form-control,
.custom-select,
select,
input,
textarea {
  border: 1px solid #d7e0ea;
  border-radius: 6px;
  min-height: 34px;
}

.table-responsive,
.dataTables_wrapper {
  overflow-x: auto;
  width: 100%;
}

.alert {
  border: 1px solid transparent;
  border-radius: 8px;
  margin-bottom: 1rem;
  padding: .65rem 2.25rem .65rem .85rem;
  position: relative;
}

.alert-danger {
  background: #fef2f2;
  border-color: #fecaca;
  color: #991b1b;
}

.alert-success {
  background: #ecfdf5;
  border-color: #bbf7d0;
  color: #166534;
}

.alert-dismissible .close {
  background: transparent;
  border: 0;
  color: inherit;
  cursor: pointer;
  font-size: 1.25rem;
  line-height: 1;
  opacity: .7;
  padding: .65rem .85rem;
  position: absolute;
  right: 0;
  top: 0;
}

.apex-footer {
  background: #fff;
  border-top: 1px solid rgba(148, 163, 184, .22);
  color: #64748b;
  padding: .75rem 1rem;
}

.apex-preloader {
  align-items: center;
  background: #f8fbff;
  bottom: 0;
  display: flex;
  justify-content: center;
  left: 0;
  position: fixed;
  right: 0;
  top: 0;
  z-index: 9999;
}

.ios-preloader {
  align-items: center;
  color: #334155;
  display: flex;
  flex-direction: column;
  gap: 12px;
  justify-content: center;
}

.ios-transfer-loader {
  height: 92px;
  position: relative;
  width: 92px;
}

.ios-dot-ring {
  animation: fp-critical-spin 1.2s linear infinite;
  border: 4px solid rgba(37, 99, 235, .16);
  border-top-color: #2563eb;
  border-radius: 999px;
  inset: 0;
  position: absolute;
}

.ios-dot-ring span {
  display: none;
}

.ios-loader-center,
.ios-cloud-badge {
  align-items: center;
  background: #fff;
  border-radius: 999px;
  box-shadow: 0 10px 25px rgba(37, 99, 235, .18);
  color: #2563eb;
  display: flex;
  justify-content: center;
  position: absolute;
}

.ios-loader-center {
  font-size: 24px;
  height: 54px;
  left: 19px;
  top: 19px;
  width: 54px;
}

.ios-cloud-badge {
  bottom: -2px;
  font-size: 13px;
  height: 28px;
  right: -2px;
  width: 28px;
}

.ios-preloader-text {
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.apex-login-page {
  align-items: center;
  background: linear-gradient(135deg, #eef8ff 0%, #f7fbff 52%, #eefcf7 100%);
  display: flex;
  min-height: 100vh;
}

.login-box,
.fp-login-shell {
  margin: auto;
  max-width: 440px;
  width: min(92vw, 440px);
}

.fp-login-card,
.login-card-body {
  background: rgba(255, 255, 255, .96);
  border-radius: 18px;
  box-shadow: 0 24px 70px rgba(15, 23, 42, .14);
}

@keyframes fp-critical-spin {
  to {
    transform: rotate(360deg);
  }
}

@media (max-width: 991.98px) {
  .apex-sidebar {
    transform: translateX(-100%);
  }

  .apex-sidebar-open .apex-sidebar {
    transform: translateX(0);
  }

  .apex-layout:not(.apex-sidebar-collapsed) .apex-content,
  .apex-layout:not(.apex-sidebar-collapsed) .apex-footer,
  .apex-layout:not(.apex-sidebar-collapsed) .apex-topbar,
  .apex-sidebar-collapsed .apex-content,
  .apex-sidebar-collapsed .apex-footer,
  .apex-sidebar-collapsed .apex-topbar {
    margin-left: 0;
  }

  .apex-content {
    padding: .75rem;
  }
}

@media (max-width: 575.98px) {
  body {
    font-size: 13px;
  }

  .apex-content {
    padding: .55rem;
  }

  .card-header,
  .card-body,
  .card-footer {
    padding: .7rem;
  }

  .btn {
    min-height: 31px;
    padding: .3rem .5rem;
  }
}
