/* Chart Styling */
@media (max-width: 992px) {
  #instance-balances {
    margin-bottom: 1.5em;
  }
}

#clients-by-instance .card-body {
  display: contents;
}

#clients-by-instance>div.card-body>div>div {
  display: grid;
  height: 100%;
  grid-area: 1 / 1;
  width: inherit;
  max-width: 330px !important;
  max-height: 400px !important;
  margin: auto;
}

#register-container {
  margin: auto;
  max-width: 100%;
  overflow: scroll;
  height: 85vh;
}

#doughnut-label {
  grid-area: 1/1;
  position: relative;
  z-index: 1;
  transform: translateY(110px);
  width: auto;
}

.htmx-indicator {
  opacity: 0;
  /* equivalent to #6d89e9 */
  /* https://codepen.io/sosuke/pen/Pjoqqp */
  filter: invert(73%) sepia(58%) saturate(5627%) hue-rotate(203deg) brightness(97%) contrast(87%);
  grid-area: 1/1;
  position: absolute;
  z-index: 1;
  transition: opacity 500ms ease-in;
}

.htmx-request .htmx-indicator {
  opacity: 1;
}

.htmx-request.htmx-indicator {
  opacity: 1;
}

canvas {
  box-sizing: border-box !important;
}

.user-page-btn:last-of-type {
  margin-right: 0 !important;
}

.users {
  transition: all .3s ease-in-out;
  -moz-transition: all .3s ease-in-out;
  -webkit-transition: all .3s ease-in-out;
  transition: all .3s ease-in-out;
  -moz-transition: all .3s ease-in-out;
  -webkit-transition: all .3s ease-in-out;
  display: inline-table !important;
  visibility: collapse;
  opacity: 0;
}

#home-logo {
  width: 20%;
}

@media (max-width: 450px) {
  #home-logo {
    width: 90% !important;
  }

  #home-link {
    margin: 0;
    text-align: center;
  }
}

@-webkit-keyframes sk-stretchdelay {

  0%,
  40%,
  100% {
    -webkit-transform: scaleY(0.4)
  }

  20% {
    -webkit-transform: scaleY(1.0)
  }
}

@keyframes sk-stretchdelay {

  0%,
  40%,
  100% {
    transform: scaleY(0.4);
    -webkit-transform: scaleY(0.4);
  }

  20% {
    transform: scaleY(1.0);
    -webkit-transform: scaleY(1.0);
  }
}

@media (min-width: 768px) {
  #background-image {
    background-image: url("/static/assets/img/desktop-phones.181e9f9a5432.png");
  }
}

@media (max-width: 767px) {
  #background-image {
    background-image: url("/static/assets/img/desktop-phones-2.8a8886db7b55.png");
  }
}

.bounce {
  -webkit-animation: bounce 2s infinite;
  animation: bounce 2s infinite;
  width: fit-content;
  margin: auto;
}

#get-a-quote-btn {
  display: block;
  width: fit-content;
  margin: auto;
}

@-webkit-keyframes bounce {

  0%,
  20%,
  50%,
  80%,
  100% {
    transform: translateY(0);
  }

  40% {
    transform: translateY(-18px);
  }

  60% {
    transform: translateY(-10px);
  }
}

@keyframes bounce {

  0%,
  20%,
  50%,
  80%,
  100% {
    transform: translateY(0);
  }

  40% {
    transform: translateY(-18px);
  }

  60% {
    transform: translateY(-10px);
  }
}

.cookie {
  width: 420px;
  height: 72px;
  background-color: #ffffffe8;
  position: fixed;
  bottom: 88px;
  border-radius: 10px;
  border: solid 3px #d9d9d9b3;
  right: 6%;
  bottom: 6%;
  padding: 10px 20px;
  z-index: 998;
}

.cookie .txt {
  float: left;
  width: 65%;
}

.txt p {
  color: #1D2D35;
}

.cookie .accept {
  background: linear-gradient(138deg, #21d4fd 0%, #6a13cc 100%);
  color: #fff !important;
  border-radius: 32px;
  padding: 3px 23px;
  font-size: 19px;
  margin-top: 2.5%;
  margin-left: 3%;

}

.cookie .accept:hover {
  background-color: #30b867;
}

.fade-in {
  display: none;
}

.loader-mask {
  position: absolute;
  top: 0;
  width: 100%;
  height: 10000px;
  background-image: linear-gradient(91deg, #6a13cc 0%, #21d4fd 100%);
  z-index: 999;
}

.spinner {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 100px;
  height: 70px;
  text-align: center;
  font-size: 10px;
  z-index: 1000;
}

.spinner>div {
  background-color: white;
  height: 100%;
  width: 10px;
  display: inline-block;

  -webkit-animation: sk-stretchdelay 1.2s infinite ease-in-out;
  animation: sk-stretchdelay 1.2s infinite ease-in-out;
}

.spinner .rect2 {
  -webkit-animation-delay: -1.1s;
  animation-delay: -1.1s;
}

.spinner .rect3 {
  -webkit-animation-delay: -1s;
  animation-delay: -1s;
}

.spinner .rect4 {
  -webkit-animation-delay: -0.9s;
  animation-delay: -0.9s;
}

.spinner .rect5 {
  -webkit-animation-delay: -0.8s;
  animation-delay: -0.8s;
}

@-webkit-keyframes sk-stretchdelay {

  0%,
  40%,
  100% {
    -webkit-transform: scaleY(0.4);
  }

  20% {
    -webkit-transform: scaleY(1);
  }
}

@keyframes sk-stretchdelay {

  0%,
  40%,
  100% {
    transform: scaleY(0.4);
    -webkit-transform: scaleY(0.4);
  }

  20% {
    transform: scaleY(1);
    -webkit-transform: scaleY(1);
  }
}

.icon {
  color: white;
}

.icon svg:not(:host).svg-inline--fa,
.icon svg:not(:root).svg-inline--fa {
  transform: translateY(10px);
}

.fa-wifi,
.fa-phone,
.fa-phone-alt {
  /* homepage icon */
  transform: translateY(12px) !important;
}

.fa-check {
  /* homepage icon */
  transform: translateY(0px) !important;
}

#message {
  opacity: 0;
  width: auto;
  position: absolute;
  max-width: 222px;
  top: 2rem;
  right: 2.7rem;
  text-align: center;
}

#message div {
  margin: 10px auto;
}

.alert {
  position: relative;
  opacity: 0.87;
  padding: 0.75rem 1.25rem;
  margin-bottom: 1rem;
  border: 1px solid transparent;
  border-radius: 0.35rem;
}

.alert>strong,
p {
  color: black;
}

.alert-heading {
  color: inherit;
}

.alert-link {
  font-weight: 700;
}

.alert-dismissible {
  padding-right: 4rem;
}

.alert-dismissible .close {
  position: absolute;
  top: 0;
  right: 0;
  z-index: 2;
  padding: 0.75rem 1.25rem;
  color: inherit;
}

.alert-primary {
  color: #293c74;
  background-color: #dce3f9;
  border-color: #cdd8f6;
}

.alert-primary hr {
  border-top-color: #b7c7f2;
}

.alert-primary .alert-link {
  color: #1c294e;
}

.alert-secondary {
  color: #45464e;
  background-color: #e7e7ea;
  border-color: #dddde2;
}

.alert-secondary hr {
  border-top-color: #cfcfd6;
}

.alert-secondary .alert-link {
  color: #2d2e33;
}

.alert-success {
  color: #0f6848;
  background-color: #d2f4e8;
  border-color: #bff0de;
}

.alert-success hr {
  border-top-color: #aaebd3;
}

.alert-success .alert-link {
  color: #093b29;
}

.alert-info {
  color: #1c606a;
  background-color: #d7f1f5;
  border-color: #c7ebf1;
}

.alert-info hr {
  border-top-color: #b3e4ec;
}

.alert-info .alert-link {
  color: #113b42;
}

.alert-warning {
  color: #806520;
  background-color: #fdf3d8;
  border-color: #fceec9;
}

.alert-warning hr {
  border-top-color: #fbe6b1;
}

.alert-warning .alert-link {
  color: #574516;
}

.alert-danger {
  color: #78261f;
  background-color: #fadbd8;
  border-color: #f8ccc8;
}

.alert-danger hr {
  border-top-color: #f5b7b1;
}

.alert-danger .alert-link {
  color: #4f1915;
}

.alert-light {
  color: #818183;
  background-color: #fefefe;
  border-color: #fdfdfe;
}

.alert-light hr {
  border-top-color: #ececf6;
}

.alert-light .alert-link {
  color: #686869;
}

.alert-dark {
  color: #2f3037;
  background-color: #dedee1;
  border-color: #d1d1d5;
}

.alert-dark hr {
  border-top-color: #c4c4c9;
}

.alert-dark .alert-link {
  color: #18181c;
}

/* CSS for Credit Card Payment form */
.credit-card {
  width: 84%;
  height: 400px;
  margin: 0 auto 0;
  border-radius: 6px;
  background-color: #fff;
}

.form-header {
  height: 60px;
  padding: 20px 30px 0;
  border-bottom: 1px solid #e1e8ee;
}

.form-body {
  height: 340px;
  padding-top: 1em;
}

/* Title */

.title {
  margin: 0;
  color: #5e6977;
  font-size: 18px;
}

/* Common */

.visible {
  transition: all .3s ease-in-out;
  -moz-transition: all .3s ease-in-out;
  -webkit-transition: all .3s ease-in-out;
  transition: all .3s ease-in-out;
  -moz-transition: all .3s ease-in-out;
  -webkit-transition: all .3s ease-in-out;
  visibility: visible;
  opacity: 1;
  pointer-events: auto;
  display: block;
}

.hidden {
  -moz-transition: all .3s ease-in-out;
  -webkit-transition: all .3s ease-in-out;
  transition: all .3s ease-in-out;
  -moz-transition: all .3s ease-in-out;
  -webkit-transition: all .3s ease-in-out;
  visibility: collapse;
  overflow: hidden;
  opacity: 0;
  display: none;
}

.card-number,
.cvv-input input,
.month select,
.cc select,
.paypal-btn,
.proceed-btn,
.year select {
  height: 42px;
}

.credit-card .form-body input[type="text"],
.credit-card .form-body .cvv-input input,
.credit-card .form-body .month select,
.credit-card .form-body .year select {
  font-size: 14px;
  font-weight: 600 !important;
  line-height: 14px;
  color: #222 !important;
  opacity: 1 !important;
}

/* Card Number */

.card-number {
  width: 100%;
  margin-bottom: 20px;
  padding-left: 20px;
  border: 2px solid #e1e8ee;
  border-radius: 6px;
}

/* Date Field */

.month select,
.cc select,
.year select {
  -moz-appearance: none;
  -webkit-appearance: none;
  width: 170px;
  margin-bottom: 20px;
  padding-left: 20px;
  border: 2px solid #e1e8ee;
  border-radius: 6px;
}

.month select {
  float: left;
}

.year select {
  float: right;
}

/* Card Verification Field */

.cvv-input input {
  width: 145px;
  float: left;
  padding-left: 20px;
  border: 2px solid #e1e8ee;
  border-radius: 6px;
  background: #fff;
}

.cvv-details {
  float: right;
  margin-bottom: 0px;
  font-size: 12px;
  font-weight: 300;
  line-height: 16px;
}

.cvv-details p {
  margin-top: 6px;
}

/* Buttons Section */

.paypal-btn,
.proceed-btn {
  cursor: pointer;
  width: 100%;
  border-color: transparent;
  border-radius: 6px;
  font-size: 16px;
}

.proceed-btn {
  margin-bottom: 10px;
  background: #7dc855;
}

.paypal-btn a,
.proceed-btn a {
  text-decoration: none;
  cursor: pointer;
}

.proceed-btn a {
  color: #fff;
}

.paypal-btn a {
  color: rgba(242, 242, 242, 0.7);
}

.paypal-btn {
  padding-right: 95px;
}

#main-logo {
  filter: invert(38%) sepia(66%) saturate(908%) hue-rotate(196deg) brightness(96%) contrast(94%);
}

.cross {
  font-size: 11px;
  color: #b0aeb7;
}

.pin {
  font-size: 14px;
  color: #b0aeb7;
}

.first {
  border-radius: 8px;
  border: 1.5px solid #78b9ff;
  color: #000;
  background-color: #eaf4ff;
}

.second {
  border-radius: 8px;
  border: 1px solid #acacb0;
  color: #000;
  background-color: #fff;
}

.head {
  color: #137ff3;
  font-size: 12px;
}

.dollar {
  font-size: 18px;
  color: #097bf7;
}

.amount {
  color: #007bff;
  font-weight: bold;
  font-size: 18px;
}

#pay-form.form-control {
  font-size: 18px;
  font-weight: bold;
  width: 95px;
  height: 28px;
}

#top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 50px;
  height: 50px;
  display: none;
  z-index: 997;
  opacity: 0.93;
  background-image: linear-gradient(138deg, #21d4fd 0%, #6a13cc 100%);
  text-decoration: none;
  -webkit-border-radius: 35px;
  -moz-border-radius: 35px;
  border-radius: 35px;
  -webkit-transition: all 0.3s linear;
  -moz-transition: all 0.3s ease;
  -ms-transition: all 0.3s ease;
  -o-transition: all 0.3s ease;
  transition: all 0.3s ease;
}

#top i {
  color: #fff;
  margin: 0;
  position: relative;
  left: 20px;
  top: 3px;
}

#top:hover {
  background: linear-gradient(310deg, #7928ca 0%, #ff0080 100%);
}

#top:hover>i {
  color: #fff;
  transform: translate(-3px, 8px);
}

#top>i {
  width: 100%;
  transform: translate(-3px, 11px);
  color: #ebebeb;
  height: 50%;
  -webkit-transition: all 0.3s linear;
  -moz-transition: all 0.3s ease;
  -ms-transition: all 0.3s ease;
  -o-transition: all 0.3s ease;
  transition: all 0.3s ease;
}

#top svg {
  color: white;
  transform: translate(17px, 13px);
}

#sidenav-collapse-main {
  height: calc(100vh - 350px);
}

@media screen and (max-width: 450px) {
  #sidenav-collapse-main {
    height: calc(100vh - 410px);
  }
}

nav#sidenav-main {
  background-color: transparent !important;
}
/* Empty-state placeholder for HTMX partials that render zero rows. */
.empty-state {
  padding: 2rem 1rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  color: #8392ab;
}
.empty-state > i {
  font-size: 1.55rem;
  margin-bottom: 0.5rem;
  opacity: 0.55;
}
.empty-state .empty-title {
  font-weight: 600;
  color: #344767;
  margin-bottom: 0.15rem;
}
.empty-state .empty-sub {
  font-size: 0.78rem;
}

.grecaptcha-badge { visibility: hidden !important; }
