:root {
  --bs-primary: #3850A3;
  --bs-primary-rgb: 56, 80, 163;
}

.btn-primary {
  --bs-btn-bg: #3850A3;
  --bs-btn-border-color: #3850A3;
  --bs-btn-hover-bg: #2d3e82;
  --bs-btn-hover-border-color: #2a3a7a;
  --bs-btn-active-bg: #2a3a7a;
  --bs-btn-active-border-color: #263671;
  --bs-btn-disabled-bg: #3850A3;
  --bs-btn-disabled-border-color: #3850A3;
}

.btn-outline-primary {
  --bs-btn-color: #3850A3;
  --bs-btn-border-color: #3850A3;
  --bs-btn-hover-bg: #3850A3;
  --bs-btn-hover-border-color: #3850A3;
  --bs-btn-active-bg: #3850A3;
  --bs-btn-active-border-color: #3850A3;
}

.nav-link {
  --bs-nav-link-color: #3850A3;
}

.text-primary {
  color: #3850A3 !important;
}

.bg-primary {
  background-color: #3850A3 !important;
}

.border-primary {
  border-color: #3850A3 !important;
}

.alert-primary {
  --bs-alert-color: #222f61;
  --bs-alert-bg: #d4daf0;
  --bs-alert-border-color: #c0c9e8;
}

a {
  color: #3850A3;
}
a:hover {
  color: #2d3e82;
}
a:active {
  color: #2a3a7a;
}

.table {
  background-color: #fff;
  border-radius: 0.375rem;
  overflow: hidden;
  margin-top: 1.5rem !important;
}
.table thead {
  background-color: #f8f9fa;
  border-bottom: 2px solid #dee2e6;
}
.table th {
  white-space: nowrap;
}
.table th, .table td {
  padding: 1rem;
  vertical-align: middle;
}
.table tbody tr {
  border-bottom: 1px solid #dee2e6;
}
.table tbody tr:hover {
  background-color: #f8f9fa;
}

.form-label:has(+ input[required])::after,
.form-label:has(+ select[required])::after,
.form-label:has(+ textarea[required])::after {
  content: " *";
  color: #dc3545;
}

form {
  margin-top: 1rem;
  background-color: #fff;
  border-radius: 0.375rem;
  padding: 1.5rem;
}
form .row {
  margin-bottom: 0;
}
form .alert {
  margin-left: -1.5rem;
  margin-right: -1.5rem;
  margin-top: -1.5rem;
  margin-bottom: 1.5rem;
  border-radius: 0.375rem;
}
form .btn-primary {
  margin-top: 1rem !important;
}

.card {
  box-shadow: none !important;
  --bs-card-border-color: rgba(0, 0, 0, 0.115) !important;
}

.auth-page-wrapper {
  background: linear-gradient(to bottom right, rgba(56, 80, 163, 0.1), rgba(33, 173, 228, 0.1));
  min-height: 100vh;
}

.auth-form-container {
  max-width: 650px;
}

.supplier-logo {
  height: 29px;
  border-radius: 0.2rem;
}

@font-face {
  font-family: century gothic;
  font-style: normal;
  font-weight: 400;
  src: local("Century Gothic"), url("../webfonts/GOTHIC.woff") format("woff");
}
@font-face {
  font-family: century gothic;
  font-style: italic;
  font-weight: 400;
  src: local("Century Gothic"), url("../webfonts/GOTHICI.woff") format("woff");
}
@font-face {
  font-family: century gothic;
  font-style: normal;
  font-weight: 700;
  src: local("Century Gothic"), url("../webfonts/GOTHICB.woff") format("woff");
}
@font-face {
  font-family: century gothic;
  font-style: italic;
  font-weight: 700;
  src: local("Century Gothic"), url("../webfonts/GOTHICBI.woff") format("woff");
}
body, h1, h2, h3, h4, h5, h6, .h1, .h2, .h3, .h4, .h5, .h6 {
  font-family: century gothic, sans-serif !important;
}

.background-logo {
  z-index: -1 !important;
  background-color: rgba(56, 80, 163, 0.1);
}
.background-logo img {
  max-width: 80%;
  max-height: 80%;
  opacity: 0.1;
}

.construction-site-card {
  background-size: cover;
  height: 250px;
}
.construction-site-card .card-label {
  background-color: rgba(255, 255, 255, 0.8);
}

.table {
  border: none !important;
}
.table .col-icon {
  width: 1px;
  white-space: nowrap;
}
.table .row-disabled .col-data {
  opacity: 0.5;
}
.table .row-disabled .col-title {
  text-decoration: line-through;
}

.main-container {
  margin-top: 35px;
}

.main-header {
  background-color: #3850A3 !important;
  border-bottom-width: 4px;
  border-bottom-color: #2a3a7a !important;
}
.main-header .nav .nav-item {
  position: relative;
}
.main-header .nav .nav-link {
  color: rgba(255, 255, 255, 0.8) !important;
}
.main-header .nav .nav-link:hover {
  color: #ffffff !important;
}
.main-header .nav .nav-link.active {
  color: #ffffff !important;
}
.main-header .nav .nav-link.active:before {
  content: "";
}
.main-header .nav .nav-link:before {
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 0px 8px 12px 8px;
  border-color: transparent transparent #ffffff transparent;
  position: absolute;
  left: 50%;
  -webkit-transform: translateX(-50%);
  transform: translateX(-50%);
  bottom: -9px;
}
.main-header .fs-4, .main-header span, .main-header a:not(.dropdown-menu a) {
  color: #ffffff !important;
}
.main-header .dropdown-toggle {
  color: #ffffff !important;
}
.main-header .dropdown-menu a {
  color: #212529 !important;
}
.main-header .dropdown-menu a:hover {
  color: #ffffff !important;
  background-color: #3850A3 !important;
}

.swal-icon--success {
  border-color: #a5dc86;
}

.swal-icon--success:after, .swal-icon--success:before {
  content: "";
  border-radius: 50%;
  position: absolute;
  width: 60px;
  height: 120px;
  background: #fff;
  -webkit-transform: rotate(45deg);
  transform: rotate(45deg);
}

.swal-icon--success:before {
  border-radius: 120px 0 0 120px;
  top: -7px;
  left: -33px;
  -webkit-transform: rotate(-45deg);
  transform: rotate(-45deg);
  -webkit-transform-origin: 60px 60px;
  transform-origin: 60px 60px;
}

.swal-icon--success:after {
  border-radius: 0 120px 120px 0;
  top: -11px;
  left: 30px;
  -webkit-transform: rotate(-45deg);
  transform: rotate(-45deg);
  -webkit-transform-origin: 0 60px;
  transform-origin: 0 60px;
  -webkit-animation: rotatePlaceholder 4.25s ease-in;
  animation: rotatePlaceholder 4.25s ease-in;
}

.swal-icon--success__ring {
  width: 80px;
  height: 80px;
  border: 4px solid hsla(98, 55%, 69%, 0.2);
  border-radius: 50%;
  box-sizing: content-box;
  position: absolute;
  left: -4px;
  top: -4px;
  z-index: 2;
}

.swal-icon--success__hide-corners {
  width: 5px;
  height: 90px;
  background-color: #fff;
  padding: 1px;
  position: absolute;
  left: 28px;
  top: 8px;
  z-index: 1;
  -webkit-transform: rotate(-45deg);
  transform: rotate(-45deg);
}

.swal-icon--success__line {
  height: 5px;
  background-color: #a5dc86;
  display: block;
  border-radius: 2px;
  position: absolute;
  z-index: 2;
}

.swal-icon--success__line--tip {
  width: 25px;
  left: 14px;
  top: 46px;
  -webkit-transform: rotate(45deg);
  transform: rotate(45deg);
  -webkit-animation: animateSuccessTip 0.75s;
  animation: animateSuccessTip 0.75s;
}

.swal-icon--success__line--long {
  width: 47px;
  right: 8px;
  top: 38px;
  -webkit-transform: rotate(-45deg);
  transform: rotate(-45deg);
  -webkit-animation: animateSuccessLong 0.75s;
  animation: animateSuccessLong 0.75s;
}

.swal-icon {
  width: 80px;
  height: 80px;
  border-width: 4px;
  border-style: solid;
  border-radius: 50%;
  padding: 0;
  position: relative;
  box-sizing: content-box;
  margin: 0 auto;
}

.swal-icon-overlay {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
  background-color: rgb(255, 255, 255);
  z-index: 100;
}

.swal-icon:first-child {
  margin-top: 32px;
}

@keyframes animateSuccessLong {
  0% {
    width: 0;
    right: 46px;
    top: 54px;
  }
  65% {
    width: 0;
    right: 46px;
    top: 54px;
  }
  84% {
    width: 55px;
    right: 0;
    top: 35px;
  }
  to {
    width: 47px;
    right: 8px;
    top: 38px;
  }
}
@keyframes rotatePlaceholder {
  0% {
    -webkit-transform: rotate(-45deg);
    transform: rotate(-45deg);
  }
  5% {
    -webkit-transform: rotate(-45deg);
    transform: rotate(-45deg);
  }
  12% {
    -webkit-transform: rotate(-405deg);
    transform: rotate(-405deg);
  }
  to {
    -webkit-transform: rotate(-405deg);
    transform: rotate(-405deg);
  }
}
@keyframes animateSuccessTip {
  0% {
    width: 0;
    left: 1px;
    top: 19px;
  }
  54% {
    width: 0;
    left: 1px;
    top: 19px;
  }
  70% {
    width: 50px;
    left: -8px;
    top: 37px;
  }
  84% {
    width: 17px;
    left: 21px;
    top: 48px;
  }
  to {
    width: 25px;
    left: 14px;
    top: 45px;
  }
}
.product-img {
  height: 120px;
  background-size: cover;
}

.product-thumbnail {
  width: 112px;
  min-width: 112px;
  height: 112px;
  background-position: center;
  background-size: cover;
}

.order-element {
  width: 140px;
}

#shopping-cart-container {
  position: sticky;
  top: 70px;
}

#shopping-cart-container, #shopping-cart li {
  opacity: 1;
  -webkit-transition: opacity 350ms linear;
  transition: opacity 350ms linear;
}

@keyframes highlight {
  0% {
    background: var(--bs-secondary);
  }
  100% {
    background: none;
  }
}
.highlight {
  animation: highlight 1s;
}

.flag {
  width: 24px;
  height: 18px;
  border: 1px rgb(33, 37, 41) solid;
  object-fit: cover;
}

.camera {
  position: relative;
  width: 100%;
}
.camera video {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
}
.camera canvas {
  display: none;
}
.camera > div {
  position: absolute;
  top: 10px;
  left: 10px;
}

#camera-uploads > div {
  position: relative;
}
#camera-uploads > div > div {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 100%;
  text-align: center;
}
#camera-uploads > div > div .spinner-border {
  width: 42px;
  height: 42px;
}
#camera-uploads .done > div {
  display: none;
}

.input-group-spinner {
  position: absolute;
  top: 24px;
  left: 70px;
  display: flex;
  flex-direction: column;
  width: fit-content;
  transform: translateY(-50%);
}
.input-group-spinner button {
  height: 22px !important;
  border-width: 0;
  border-radius: 0;
  padding: 0px 6px;
}

@media (max-width: 991.98px) {
  #shopping-cart-container {
    --bs-bg-opacity: 1;
    background-color: rgba(var(--bs-white-rgb), var(--bs-bg-opacity));
    border-top: var(--bs-border-width) var(--bs-border-style) var(--bs-border-color);
    position: fixed;
    z-index: 100;
    padding: 16px 16px 0 16px;
    bottom: 0;
    left: 0;
    right: 0;
    top: auto;
  }
  #shopping-cart {
    display: none;
    overflow: auto;
    max-height: 500px;
  }
}
.ql-container {
  font-family: century gothic, sans-serif !important;
  font-size: 1rem !important;
}

.user-html p {
  margin-bottom: 0;
}
