:root {
  --bs-body-font-size: clamp(0.75rem, 1vw, 1rem);
  /* Main */
  --c-deeployer-client-logo-background: transparent;
  --c-deeployer-footer-light: #70777d;
  --c-deeployer-footer-dark: #54595e;
  --c-deeployer-sidebar-light: #424242;
  --c-deeployer-sidebar-dark: #212121;
  /* Light */
  --c-deeployer-theme-light: #0b41cd;
  --c-deeployer-theme-light-dark-1: #0834a5;
  --c-deeployer-theme-light-dark-2: #06287e;
  --c-deeployer-theme-light-dark-3: #041b57;
  --c-deeployer-theme-light-dark-4: #020f30;
  --c-deeployer-theme-light-light-1: #215bf3;
  --c-deeployer-theme-light-light-2: #5b86f6;
  --c-deeployer-theme-light-light-3: #94b0f9;
  --c-deeployer-theme-light-light-4: #cedbfc;
  /* Dark */
  --c-deeployer-theme-dark: #06287e;
  --c-deeployer-theme-dark-dark-1: #05216a;
  --c-deeployer-theme-dark-dark-2: #041b57;
  --c-deeployer-theme-dark-dark-3: #031544;
  --c-deeployer-theme-dark-dark-4: #020f30;
  --c-deeployer-theme-dark-light-l: #0940cc;
  --c-deeployer-theme-dark-light-2: #3269f5;
  --c-deeployer-theme-dark-light-3: #80a2f8;
  --c-deeployer-theme-dark-light-4: #cedbfc;
  /* Layout */
  --mobile-navbar-height: 0px;
  --footer-height: 30px;
  --header-height: 50px;
  --fit-content-height: calc(100% - var(--footer-height) - var(--header-height));
  --min-content-height: calc(100svh - var(--footer-height) - var(--header-height));
}

/* Background.Light */
.bg-deeployer-theme-light {
  background-color: var(--c-deeployer-theme-light);
}

.bg-deeployer-theme-light-light-1 {
  background-color: var(--c-deeployer-theme-light-light-1);
}

.bg-deeployer-theme-light-light-2 {
  background-color: var(--c-deeployer-theme-light-light-2);
}

.bg-deeployer-theme-light-light-3 {
  background-color: var(--c-deeployer-theme-light-light-3);
}

.bg-deeployer-theme-light-light-4 {
  background-color: var(--c-deeployer-theme-light-light-4);
}

.bg-deeployer-theme-light-dark-1 {
  background-color: var(--c-deeployer-theme-light-dark-1);
}

.bg-deeployer-theme-light-dark-2 {
  background-color: var(--c-deeployer-theme-light-dark-2);
}

.bg-deeployer-theme-light-dark-3 {
  background-color: var(--c-deeployer-theme-light-dark-3);
}

.bg-deeployer-theme-light-dark-4 {
  background-color: var(--c-deeployer-theme-light-dark-4);
}

/* Background.Dark */
.bg-deeployer-theme-dark {
  background-color: var(--c-deeployer-theme-dark);
}

.bg-deeployer-theme-dark-light-1 {
  background-color: var(--c-deeployer-theme-dark-light-1);
}

.bg-deeployer-theme-dark-light-2 {
  background-color: var(--c-deeployer-theme-dark-light-2);
}

.bg-deeployer-theme-dark-light-3 {
  background-color: var(--c-deeployer-theme-dark-light-3);
}

.bg-deeployer-theme-dark-light-4 {
  background-color: var(--c-deeployer-theme-dark-light-4);
}

.bg-deeployer-theme-dark-dark-1 {
  background-color: var(--c-deeployer-theme-dark-dark-1);
}

.bg-deeployer-theme-dark-dark-2 {
  background-color: var(--c-deeployer-theme-dark-dark-2);
}

.bg-deeployer-theme-dark-dark-3 {
  background-color: var(--c-deeployer-theme-dark-dark-3);
}

.bg-deeployer-theme-dark-dark-4 {
  background-color: var(--c-deeployer-theme-dark-dark-4);
}

/* Background.Standard */
.bg-deeployer-client-logo {
  background-color: var(--c-deeployer-client-logo-background);
}

.bg-sidebar-light {
  background: var(--c-deeployer-theme-light-light-4);
  border-right: 1px solid var(--c-deeployer-theme-light-dark-3);
}

.bg-sidebar-dark {
  background: linear-gradient(100deg, var(--c-deeployer-theme-dark-dark-4) -100%, var(--c-deeployer-theme-dark-dark-3) 40%, var(--bs-body-bg) 80%);
}

.bg-navbar-light {
  background:
    linear-gradient(217deg, var(--c-deeployer-theme-light-dark-3), rgba(255, 0, 0, 0) 70.71%),
    linear-gradient(127deg, var(--c-deeployer-theme-light-dark-2), rgba(0, 255, 0, 0) 70.71%),
    linear-gradient(336deg, var(--c-deeployer-theme-light), rgba(0, 0, 255, 0) 70.71%);
}

.bg-navbar-dark {
  background:
    linear-gradient(217deg, var(--c-deeployer-theme-dark-dark-4), rgba(255, 0, 0, 0) 70.71%),
    linear-gradient(127deg, var(--c-deeployer-theme-dark-dark-2), rgba(0, 255, 0, 0) 70.71%),
    linear-gradient(336deg, var(--c-deeployer-theme-dark), rgba(0, 0, 255, 0) 70.71%);
}

@media screen and (max-width: 991px) {
  .bg-navbar-collapse-light {
    background: var(--c-deeployer-theme-light-dark-1)
  }

  .bg-navbar-collapse-dark {
    background: var(--c-deeployer-theme-dark-dark-2)
  }
}

.bg-entrance-light {
  background:
    linear-gradient(217deg, var(--c-deeployer-theme-light-dark-4), rgba(255, 0, 0, 0) 70.71%),
    linear-gradient(127deg, var(--c-deeployer-theme-light-dark-2), rgba(0, 255, 0, 0) 70.71%),
    linear-gradient(336deg, var(--c-deeployer-theme-light), rgba(0, 0, 255, 0) 70.71%);
}

.bg-entrance-dark {
  background:
    linear-gradient(217deg, var(--c-deeployer-theme-dark-dark-4), rgba(255, 0, 0, 0) 70.71%),
    linear-gradient(127deg, var(--c-deeployer-theme-dark-dark-2), rgba(0, 255, 0, 0) 70.71%),
    linear-gradient(336deg, var(--c-deeployer-theme-dark), rgba(0, 0, 255, 0) 70.71%);
}

/* Text */
/* Text.Light */
.text-theme-light {
  color: var(--c-deeployer-theme-light);
}

.text-theme-dark {
  color: var(--c-deeployer-theme-dark-light-4);
}

.title-light {
  color: var(--c-deeployer-theme-light);
}

.title-dark {
  color: var(--c-deeployer-theme-dark-light-4);
}

/* Layout */
.offcanvas-zindex-fix {
  --bs-offcanvas-zindex: 999 !important;
}

.non-mobile-table-view {
  display: inherit;
}

.mobile-table-view {
  display: none;
}

#company_logo_mobile {
  display: none;
}

.img-client-logo {
  max-width: 100%;
  height: 50px;
}

#pagination {
  position: absolute !important;
  bottom: calc(var(--footer-height) + var(--mobile-navbar-height) + 10px);
  width: 100%;
  display: flex;
  justify-content: start;
}

@media screen and (max-width: 576px) {
  :root {
    --mobile-navbar-height: 50px;
  }

  #side-bar {
    display: none;
  }

  #pagination {
    width: 93%;
    justify-content: center;
  }

  .mobile-table-view {
    display: inherit;
  }

  .non-mobile-table-view {
    display: none;
  }

  #company_logo_mobile {
    display: inherit;
  }

  #company_logo {
    display: none;
  }
}

.nav-bar-icon {
  width: var(--bs-body-font-size);
  height: var(--bs-body-font-size);
}

/* Border */
.border-deeployer {
  border-style: solid;
  border-color: var(--c-deeployer) !important;
  color: var(--c-deeployer);
}


/* Layout */
body {
  font-family: -apple-system, BlinkMacSystemFont, "Roboto", "Segoe UI", "Helvetica Neue", "Lucida Grande", Arial, sans-serif !important;
  min-height: calc(100svh);
  min-width: calc(100vw);
  margin: 0;
  position: relative;
  overflow-x: hidden;
}

body::after {
  content: '';
  display: block;
  height: var(--footer-height);
}

/* Header */
header {
  height: var(--header-height);
}

/* Bottom */
#bottom-bar {
  height: var(--mobile-navbar-height);
  position: fixed;
  bottom: var(--footer-height);
  min-width: 100%;
}

/* Main Content */

.scrollbar-gutter {
  overflow-y: hidden;
  scrollbar-gutter: stable both-edges;
}

.scrollbar-gutter:hover {
  overflow-y: overlay;
  scrollbar-gutter: stable both-edges;
}

.main-content-overflow {
  overflow-y: hidden;
  overflow-x: hidden;
  height: calc(var(--min-content-height) - var(--mobile-navbar-height));
  scrollbar-gutter: stable both-edges;
}

.main-content-overflow:hover {
  overflow-y: overlay;
  height: calc(var(--min-content-height) - var(--mobile-navbar-height));
  scrollbar-gutter: stable both-edges;
}

@media screen and (max-width: 576px) {
  .main-content-overflow {
    overflow-y: inherit;
    height: inherit;
    scrollbar-gutter: inherit;
    padding-bottom: var(--mobile-navbar-height);
  }

  .main-content-overflow:hover {
    overflow-y: inherit;
    height: inherit;
    scrollbar-gutter: inherit;
  }
}

/* Footer */
.footer-light {
  background-color: var(--c-deeployer-footer-light);
  text-align: center;
  position: fixed;
  bottom: 0;
  min-width: 100%;
  height: var(--footer-height);
}

.footer-dark {
  background-color: var(--c-deeployer-footer-dark);
  text-align: center;
  position: fixed;
  bottom: 0;
  min-width: 100%;
  height: var(--footer-height);
}

.footer-light>a {
  color: white;
  margin: 0.0em;
  padding-left: calc(var(--bs-body-font-size) * 0.25);
  padding-right: calc(var(--bs-body-font-size) * 0.25);
  font-size: medium;
}

.footer-dark>a {
  color: white;
  margin: 0.0em;
  padding-left: calc(var(--bs-body-font-size) * 0.25);
  padding-right: calc(var(--bs-body-font-size) * 0.25);
  font-size: medium;
}

.copyright-light {
  background-color: var(--c-deeployer-footer-light);
  font-size: small;
  color: lightgray;
  padding-bottom: calc(var(--bs-body-font-size) * 0.25);
}

.copyright-dark {
  background-color: var(--c-deeployer-footer-dark);
  font-size: small;
  color: lightgray;
  padding-bottom: calc(var(--bs-body-font-size) * 0.25);
}

.copyright-light>a {
  font-size: small;
  color: lightgray;
  padding-bottom: calc(var(--bs-body-font-size) * 0.25);
}

.copyright-dark>a {
  font-size: small;
  color: lightgray;
  padding-bottom: calc(var(--bs-body-font-size) * 0.25);
}

/* Support Tile */

#support_tile {
  position: absolute;
  bottom: 25px;
}

/* Wrapper */
.wrapper {
  min-height: calc(100svh - var(--header-height));
}

.fit-content-height {
  min-height: var(--fit-content-height);
  overflow: auto
}

.min-content-height {
  min-height: var(--min-content-height);
}

.sidebar-min-content-height {
  min-height: calc(var(--min-content-height) - var(--footer-height) - 5px);
}

/* Sidebar */
.sidebar-width {
  max-width: 300px !important;
}

@media only screen and (min-width: 768px) {
  .sidebar-width {
    min-width: 200px !important;
  }
}

#side-bar li:hover {
  border-radius: 10px;
  background-color: var(--c-deeployer-theme-dark);
}

#side-bar li .sidebar-option:hover {
  background-color: var(--c-deeployer-theme-light);
}

#side-bar div a:hover {
  border-radius: 10px;
  background-color: var(--c-deeployer-theme-dark);
}

#side-bar .nav-link-light {
  color: var(--c-deeployer-theme-light-dark-4)
}

#side-bar .nav-link-dark {
  color: var(--c-deeployer-theme-dark-light-4)
}

#side-bar .nav-link:hover {
  color: var(--c-deeployer-theme-light-light-4);
  border-radius: 10px;
  background-color: var(--c-deeployer-theme-dark);
}

/* Bottom Bar */
#bottom-bar li a:hover {
  border-radius: 10px;
  background-color: var(--c-deeployer-theme-dark);
  color: white !important;
  width: 100%;
  justify-content: center;
}

/* Privacy Policy */
.height-80-percent {
  height: 80%;
}


/* Client */
.client-details-height {
  min-height: 170px;
  ;
}

/* Tenant Switch */
.tenant-switch-max-height {
  max-height: 500px;
}

/* User Profile */
.user-profile-size {
  min-height: 320px;
}

/* Account */
.confirm-email {
  color: whitesmoke;
  font-weight: bold;
}

.email-h1 {
  font-size: medium;
}

.email-deeployer-title {
  color: slateblue;
  font-size: medium;
}

.email-p {
  font-size: x-small;
}

.account_container {
  border-radius: 10px;
  padding: calc(var(--bs-body-font-size) * 0.5);
  min-width: 250px;
  max-width: 350px;
}

#account-manage {
  margin-bottom: 1em;
}

#account-entrance {
  padding: 2em;
  width: 400px;
  margin-top: var(--footer-height);
  margin-bottom: calc(var(--header-height) + var(--footer-height));
}

#account-entrance .bg-body-secondary {
  background-color: "transparent" !important;
}

#account-entrance .list-group-item {
  background-color: transparent !important;
}

#account-entrance a {
  color: white !important;
}

#account-entrance a:hover {
  color: white !important;
  font-weight: bolder;
}

#account-entrance a.btn:hover {
  color: black !important;
  font-weight: bolder;
}

#account-entrance #social-account-provider-list a {
  color: inherit !important;
}

#account-entrance #social-account-provider-list a:hover {
  color: inherit !important;
}

#account-entrance #social-account-provider-list a:hover {
  color: inherit !important;
}

#account-entrance li {
  color: white !important;
}

#account-entrance #password-hint {
  color: white !important;
}

#account-entrance .form-check-label {
  color: white !important;
}

/* Account */
.avatar-large {
  width: 5rem;
  height: 5rem;
  font-size: 5rem;
}

.avatar {
  width: 2rem;
  height: 2rem;
  font-size: 2rem;
}

.avatar-small {
  width: 1.25rem;
  height: 1.25rem;
  font-size: 1.25rem;
}

/* Badges */
.Invited,
.Viewer,
.Contributor {
  background-color: #dfe7f6;
  color: #2c58a0 !important;
}

.Granted,
.Admin {
  background-color: #d6f0e0;
  color: #0d6832 !important;
}

.Owner {
  background-color: #fbf0da;
  color: #73510d !important;
}

.False {
  color: #fff !important;
  background-color: #343a40;
}

.True {
  color: #fff !important;
  background-color: #28a745;
}

/* Tables */
.table-sm>:not(caption)>*>* {
  padding: 0.1rem .30rem;
}

.table-div-overflow {
  overflow: hidden;
  scrollbar-gutter: stable both-edges;
  padding-right: 1px;
}

.table-div-overflow:hover {
  overflow-y: overlay;
  scrollbar-gutter: stable both-edges;
  padding-right: 1px;
}

.table-max-height {
  height: calc(100svh - 324px - var(--mobile-navbar-height));
}

.nlp-table-max-height {
  height: calc(100svh - 215px - var(--mobile-navbar-height) - var(--header-height) - var(--footer-height));
}

.admin-report-table-max-height {
  height: calc(100svh - 130px - var(--mobile-navbar-height) - var(--header-height) - var(--footer-height));
}

th,
td {
  vertical-align: middle;
  text-align: left;
  border: None;
  border-color: var(--c-deeployer);
}

.td-align-center {
  vertical-align: middle;
  text-align: center;
}

.td-align-end {
  vertical-align: middle;
  text-align: right;
}

table th:first-child {
  border-radius: 5px 0 0 5px;
}

table th:last-child {
  border-radius: 0 5px 5px 0;
}

@media only screen and (max-width: 768px) {
  .mobile-table-view {
    display: inherit;
    padding-bottom: var(--footer-height);
  }

  .non-mobile-table-view {
    display: none;
  }
}

/* Mandatory Fields */
.asteriskField {
  display: none;
}

#id_description {
  height: 100px;
}

/* Scrollbar */

/* width */
::-webkit-scrollbar {
  width: 5px;
  height: 5px;
}

/* Track */
::-webkit-scrollbar-track {
  box-shadow: none;
}

/* Handle */
::-webkit-scrollbar-thumb {
  background: var(--c-deeployer-theme-light);
  border-radius: 5px;
}

/* Handle on hover */
::-webkit-scrollbar-thumb:hover {
  background: gray;
}

/* invalid-feedback */
.invalid-feedback {
  width: 100%;
  margin-top: calc(var(--bs-body-font-size) * 0.25);
  font-size: medium;
  color: #dc3545;
  border-radius: 5px;
}

/* Alerts */

.message-placement {
  position: fixed;
  bottom: var(--footer-height);
  right: 0;
  padding-right: 1rem;
  padding-left: 1rem;
  width: 500px;
  z-index: 9999 !important;
}

.alert {
  height: inherit;
}

@media screen and (max-width: 576px) {
  .message-placement {
    bottom: calc(var(--footer-height) + var(--mobile-navbar-height) - 16px);
    right: inherit;
    width: 100vw;
    padding: 0;
  }

  .alert {
    min-height: var(--mobile-navbar-height);
    border-radius: 0px;
    border: 0px;
  }
}

@media screen and (max-width: 768px) {
  .message-placement {
    right: inherit;
    left: 50%;
    transform: translateX(-50%);
  }
}

.alert-info,
.alert-deeployer {
  color: #643bc4 !important;
  background: var(--c-deeployer-theme-light-light-4) !important;
  border-color: #b6d4fe !important;
}

.alert-fixed {
  position: fixed !important;
  z-index: 9999 !important;
}

.errorlist {
  list-style-type: none;
  padding: calc(var(--bs-body-font-size) * 0.25) calc(var(--bs-body-font-size) * 0.5);
  ;
  font-size: medium;
  color: #fff;
  background-color: rgba(220, 53, 69, .9);
  border-radius: calc(var(--bs-body-font-size) * 0.25);
  margin-top: -10px;
}

/* Terms and Conditions */
.clause {
  margin-left: 25px;
  margin-right: 25px;
  text-align: justify;
}

.paragraph {
  margin-left: 50px;
  margin-right: 25px;
  text-align: justify;
}

.legal_title {
  text-align: center;
  font-weight: bolder;
}

.legal_session {
  margin-left: 15px;
  margin-right: 15px;
  margin-top: calc(var(--bs-body-font-size) * 0.25);
  margin-bottom: calc(var(--bs-body-font-size) * 0.25);
  font-weight: bold;
}

.legal_sub_session {
  margin-left: 20px;
  margin-right: 20px;
  margin-top: calc(var(--bs-body-font-size) * 0.25);
  margin-bottom: calc(var(--bs-body-font-size) * 0.25);
  font-weight: bold;
}

/* Chat */
.chat_textarea {
  overflow: hidden;
  padding: 10px;
  width: 250px;
  font-size: medium;
  margin: 50px auto;
  display: block;
  border: 1px solid #ced4da;
  border-radius: calc(var(--bs-body-font-size) * 0.25);
  transition: border-color .15s ease-in-out, box-shadow .15s ease-in-out;
  resize: none
}

/* UL Headers */
#side-bar ul:before {
  content: attr(data-header);
  font-size: 105%;
  font-weight: bold;
  margin-right: calc(var(--bs-body-font-size) * 2);
}

@media (max-width: 768px) {
  ul:before {
    display: none;
  }

  .mobile-table-view {
    display: inherit;
  }

  .non-mobile-table-view {
    display: none;
  }
}

/* Modal */

.modal-backdrop {
  display: block;
  width: calc(100vw) !important;
  height: calc(100svh) !important;
}

.list-group {
  max-height: calc(100svh - 440px);
  margin-bottom: 1rem;
  overflow: auto;
  -webkit-overflow-scrolling: touch;
}

.list-group-sm {
  max-height: calc(100svh - 620px);
  margin-bottom: 1rem;
  overflow: auto;
  -webkit-overflow-scrolling: touch;
}

.min-width-140px {
  min-width: 140px !important;
}

.cookie-position {
  position: fixed;
  bottom: calc(var(--footer-height) + 15px);
  left: 50%;
  transform: translateX(-50%);
  z-index: 0;
  border: 1px solid var(--c-deeployer-footer-dark);
  border-radius: 5px;
  min-height: var(--mobile-navbar-height);
}

@media screen and (max-width: 768px) {
  .cookie-position {
    bottom: calc(var(--footer-height));
    border-radius: 0px;
    border: 0px;
    width: 100%;
  }
}

/* icon tag */
i.no-italics {
  font-style: normal;
}

/* navbar */
@media screen and (max-width: 576px) {
  #navbar-content {
    margin-bottom: 1rem;
  }
}

.nav-bar-header {
  box-sizing: border-box;
  border: solid transparent 0px;
  border-top: 0px;
  border-left: 0px;
  border-right: 0px;
  font-size: medium;
}

.nav-bar-header:hover {
  border-radius: 10px;
  background-color: var(--c-deeployer-theme-light-dark-3);
}

/* Messages */
.message-width {
  min-width: 400px;
  max-width: 85vw;
}

@media screen and (max-width: 576px) {
  .message-width {
    width: 90%;
    min-width: 90%;
    max-width: 90%;
    padding: 0.5rem;
  }
}

/* For mobile devices */
@media screen and (max-width: 768px) {
  .mobile-table-view {
    display: inherit;
  }

  .non-mobile-table-view {
    display: none;
  }
}

/* For tablet devices */
@media screen and (min-width: 769px) and (max-width: 1200px) {
  .mobile-table-view {
    display: inherit;
  }

  .non-mobile-table-view {
    display: none;
  }
}

/* Home Screen Features Selection */
.home-card-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: start;
  gap: 1rem;
}

.home-card-custom {
  flex: 1 1 calc(24.1% - 1rem);
  min-width: 250px;
  max-width: 24.1%;
}

@media (max-width: 992px) {

  /* md breakpoint */
  .home-card-custom {
    flex: 1 1 calc(50% - 1rem);
    max-width: 50%;
  }
}

@media (max-width: 630px) {

  /* sm breakpoint */
  .home-card-custom {
    flex: 1 1 100%;
    max-width: 100%;
  }
}

.home-card-custom .card {
  height: 100%;
  display: flex;
  flex-direction: column;
}

.home-card-custom .card-body {
  flex-grow: 1;
  text-align: center;
}

.home-card-custom .card-footer {
  text-align: center;
  margin-top: auto;
}

/* Button Ripple Effect for Material Design */
.btn {
  position: relative;
  overflow: hidden;
  transition: transform 0.1s ease;
}

.btn:active {
  transform: scale(0.98);
}

.btn .ripple {
  position: absolute;
  border-radius: 50%;
  background: color-mix(in srgb, var(--c-deeployer-theme-light) 80%, transparent);
  transform: scale(0);
  animation: ripple-animation 1s ease-out;
  pointer-events: none;
}

@keyframes ripple-animation {
  to {
    transform: scale(4);
    opacity: 0;
  }
}

/* HTMX Indicator */
.htmx-indicator {
  display: none;
  position: absolute;
}

.htmx-request .htmx-indicator {
  display: inline;
  position: unset;
}