@font-face {
  font-family: "Titillium_Web";
  src: url("../fonts/Titillium_Web/TitilliumWeb-Regular.ttf") format("truetype");
}

* {
  font-family: "Titillium_Web";
}

html,
body {
  margin: 0px;
  padding: 0px;
  height: 100%;
  width: 100%;
  position: absolute;
  overflow: hidden;
}

.sticky-footer {
  position: fixed;
  bottom: 0;
  width: 100%;
  line-height: 60px;
  z-index: 9999999999 !important;
}

.page {
  width: 100vw;
  padding: 0;
}

.width-10 {
  width: 10%;
}

.bg-primary-custom {
  background-color: var(--bs-primary);
  color: var(--color-high-contrast-primary);
}

/*+++++++++++++++++++++++++++++++++++++++++++++++++++++*/
/* topbar */

.top-bar {
  position: fixed;
  left: 0;
  top: 0;
  background-color: var(--bs-primary);
  color: var(--color-high-contrast-primary);
  max-height: 70px;
  display: flex;
  align-items: center;
  width: 100%;
  font-size: 1.1em;
  justify-content: space-between;
  z-index: 9999999;
}

.top-bar-container-logo {
  height: 60px;
  min-width: 150px;
  max-width: 250px;
  background-color: var(--color-high-contrast-primary);
  border-top-right-radius: var(--bs-border-radius);
  border-bottom-right-radius: var(--bs-border-radius);
}

.top-bar-container-logo .logo {
  width: auto;
  min-width: 100px;
  height: 80%;
  max-height: 70px;
  object-fit: contain;
}

.top-bar-container-exit {
  height: 86px;
  background-color: var(--bs-danger);
  color: var(--color-high-contrast-danger);
  border-top-left-radius: var(--bs-border-radius);
  border-bottom-left-radius: var(--bs-border-radius);
}

.top-bar-container-menu {
  height: 70px;
  color: var(--color-high-contrast-primary);
  display: flex;
  align-items: center;
  position: relative;
}

.menu-items {
  display: flex;
}

.item-menu {
  min-width: 110px;
  max-width: 120px;
  height: 70px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.item-menu.active {
  color: var(--color-item-menu-active);
}

.burger-menu-icon {
  display: none;
  color: var(--color-high-contrast-primary);
  font-size: 2em;
  padding-right: 10px;
}

#badgeUnreadMessage {
  left: 308px;
}

@media (max-width: 576px) {
  .menu-items {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 70px;
    right: 0;
    background-color: var(--bs-primary);
    z-index: 999;
    width: 120px;
    padding: 0;
    border-bottom-left-radius: var(--bs-border-radius);
  }

  .menu-items.show {
    display: flex;
  }

  .burger-menu-icon {
    display: flex;
  }

  .top-bar-container-menu {
    justify-content: space-between;
    width: 100%;
  }

  .item-menu {
    width: 100% !important;
    padding: 15px !important;
    text-align: left !important;
    white-space: nowrap;
  }

  #badgeUnreadMessage {
    left: 92px;
  }
}

/* fine topbar */

/*+++++++++++++++++++++++++++++++++++++++++++++++++++++*/
/* modal */

.modal-dialog.modal-xl {
  max-height: 70vh;
  margin: 0 auto;
}

.modal-content {
  max-height: 70vh;
  display: flex;
  flex-direction: column;
}

.modal-body {
  overflow-y: auto;
  max-height: calc(70vh - 134px);
}

#qr-report-modal .modal-body {
  max-height: unset !important;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

#qrcode-image {
  /* max-width: 100%; */
  width: 70%;
  height: 70%;
}

/* fine modal */

/*+++++++++++++++++++++++++++++++++++++++++++++++++++++*/
/* tabelle */

.pagination {
  --bs-pagination-color: var(--bs-primary);
  --bs-pagination-active-bg: var(--bs-primary);
  --bs-pagination-active-border-color: var(--bs-primary);
}

.bootstrap-table .fixed-table-pagination > .pagination,
.bootstrap-table .fixed-table-pagination > .pagination-detail {
  margin-top: 5px;
  margin-bottom: 5px;
}

.btn-group.dropdown.dropup .btn.btn-secondary.dropdown-toggle {
  background-color: var(--bs-light);
  border: 1px solid var(--color-high-contrast-light);
  color: var(--color-high-contrast-light);
  padding: 5px;
  border-radius: 5px;
}

.no-lista {
  background-color: var(--bg-no-lista);
}

.no-lista-text {
  font-size: 0.6em;
}

.bootstrap-table .search input[type="search"]::-webkit-search-cancel-button {
  -webkit-appearance: none;
  appearance: none;
}

.table-border-all {
  border: 1px solid var(--bs-border-color) !important;
}

/* fine tabelle */

/*+++++++++++++++++++++++++++++++++++++++++++++++++++++*/
/* accredito */

#edit-guest-modal .modal-dialog {
  margin: 0 auto;
  max-width: 90%;
}

@media (max-width: 1200px) {
  #edit-guest-modal .modal-dialog {
    width: 90% !important;
  }
}

#container-accredito {
  overflow-y: hidden;
  height: calc(100vh - 140px);
}

#container-result-accredito .fixed-table-container {
  border: none;
  height: calc(100vh - 310px - 100px) !important;
}

#container-result-accredito {
  overflow-x: auto;
}

#tableAccredito thead th,
#tableAccredito tbody td {
  white-space: nowrap;
}

#tableAccredito thead tr th {
  padding-top: 4px;
  padding-bottom: 4px;
}

/* Blocca la prima colonna */

#tableAccredito thead th:first-child,
#tableAccredito tbody td:first-child {
  position: -webkit-sticky;
  position: sticky;
  left: 0;
  z-index: 1;
}

#tableAccredito thead th:first-child {
  background-color: var(--bs-primary);
  color: var(--color-high-contrast-primary);
  border-color: transparent !important;
}

#tableAccredito tbody td:first-child:nth-of-type(odd) {
  background-color: var(--bg-striped-odd);
}

#tableAccredito tbody td:first-child:nth-of-type(even) {
  background-color: var(--bg-striped-even);
}

#tableAccredito tbody tr.no-lista td:first-child:nth-of-type(odd) {
  background-color: var(--bg-no-lista);
}

#tableAccredito tbody tr.no-lista td:first-child:nth-of-type(even) {
  background-color: var(--bg-no-lista);
}

/* Blocca l'ultima colonna */

#tableAccredito thead th:last-child,
#tableAccredito tbody td:last-child {
  position: -webkit-sticky;
  position: sticky;
  right: 0;
  z-index: 1;
}

#tableAccredito thead th:last-child {
  background-color: var(--bs-primary);
  color: var(--color-high-contrast-primary);
  border-color: transparent !important;
}

#tableAccredito tbody td:last-child:nth-of-type(odd) {
  background-color: var(--bg-striped-odd);
}

#tableAccredito tbody td:last-child:nth-of-type(even) {
  background-color: var(--bg-striped-even);
}

#tableAccredito tbody tr.no-lista td:last-child:nth-of-type(odd) {
  background-color: var(--bg-no-lista);
}

#tableAccredito tbody tr.no-lista td:last-child:nth-of-type(even) {
  background-color: var(--bg-no-lista);
}

/* Modalità scansione interna */

#content-page-main {
  height: 100vh;
  padding-top: 70px;
}

.logo-go-scan-mode {
  max-height: 30px;
}
#footer-page-logo {
  display: none;
  justify-content: center;
}

.ipadScanningMode #topbar-app {
  display: none !important;
}

.ipadScanningMode #btn-add-guest {
  display: none !important;
}

.ipadScanningMode #content-page-main {
  height: 100vh;
  overflow: hidden;
  padding-top: 0px;
}

.ipadScanningMode #footer-page-logo {
  display: flex;
  background-color: var(--bg-logo-go);
}

.ipadScanningMode #container-accredito {
  height: calc(55vh - 30px);
  overflow: auto;
}

.ipadScanningMode #container-result-accredito .fixed-table-container {
  height: calc(55vh - 130px - 145px) !important;
}

.ipadScanningMode #bar-itsplanet {
  display: none;
}

#container-scanner {
  display: none;
}

.ipadScanningMode #container-scanner {
  display: block;
  overflow: hidden;
  height: calc(45vh - 30px);
  width: 100%;
  background: var(--bg-container-scanner);
}

#container-scanner video {
  height: 100%;
}

.ipadScanningMode #btn-qr-report {
  display: none !important;
}

/* app-mode */
.app-mode #btn-qrcode {
  display: none !important;
}

.app-mode #bar-itsplanet {
  display: none !important;
}

/* modalita scansione esterna */

.ipadScanningMode-embedded #content-page-main {
  padding-top: 5px !important;
}

.ipadScanningMode-embedded #container-result-accredito .fixed-table-container {
  height: calc(55vh - 100px) !important;
}

.ipadScanningMode-embedded #container-accredito {
  height: calc(55vh);
  overflow: auto;
}

.ipadScanningMode-embedded #topbar-app {
  display: none !important;
}

.ipadScanningMode-embedded #btn-add-guest {
  display: none !important;
}

.ipadScanningMode-embedded #btn-qrcode {
  display: none !important;
}

.ipadScanningMode-embedded #btn-qr-report {
  display: none !important;
}

.ipadScanningMode-embedded #tableAccredito thead th:first-child {
  display: none;
}

.ipadScanningMode-embedded #tableAccredito tbody td:first-child {
  display: none;
}

@media (max-width: 404px) and (max-height: 799px) {
  #logo-its-footer {
    height: 22px !important;
  }
}

/* fine accredito */

/* sign */

#container-sign-document {
  padding-bottom: 60px;
}

#container-contratto,
#container-contratto-guest {
  height: 200px;
  background: var(--bg-contratto);
  overflow: auto;
  border-radius: var(--bs-border-radius);
}

#container-sign {
  background-color: var(--bg-firma);
  border-radius: var(--bs-border-radius);
  margin-top: 20px;
  padding-top: 0px;
  margin-bottom: 0px;
  padding-bottom: 0px;
}

#container-sign-guest {
  background-color: var(--bg-firma);
  border-radius: var(--bs-border-radius);
  margin-top: 0px;
  padding-top: 0px;
  margin-bottom: 0px;
  padding-bottom: 0px;
  width: 100% !important;
}

#container-sign > canvas {
  height: 100% !important;
}

#container-sign-guest > canvas {
  height: 200px !important;
  width: 85vw !important;
}

#btn-repeat-sign-guest {
  right: 0px;
  border-top-width: 0px;
  border-right-width: 0px;
  border-radius: 0px;
  cursor: pointer;
  position: absolute;
  border-top-right-radius: 12px;
}

#pdf-signed-modal .modal-dialog {
  margin: 0 auto;
  max-width: 90%;
}

@media (max-width: 1200px) {
  #pdf-signed-modal .modal-dialog {
    width: 90% !important;
  }
}

#pdf-signed-modal .modal-body {
  height: calc(70vh - 134px) !important;
  overflow: hidden !important;
}

#pdf-viewer-container {
  width: 100%;
  height: 100%;
  position: relative;
  overflow: auto;
}

/* fine sign */

/*+++++++++++++++++++++++++++++++++++++++++++++++++++++*/
/* report */

#container-fluid-report {
  height: calc(100vh - 70px);
  overflow-x: hidden;
}

@media (max-width: 576px) {
  #container-fluid-report {
    overflow-y: auto !important;
    padding-bottom: 100px !important;
  }

  #container-result-report .fixed-table-container {
    height: 400px !important;
  }
}

@media (min-width: 577px) and (max-width: 768px) {
  #container-fluid-report {
    overflow-y: auto !important;
    /* padding-bottom: 100px !important; */
  }

  #container-result-report .fixed-table-container {
    height: calc(100vh - 70px - 440px) !important;
  }
}

@media (min-width: 769px) {
  #container-result-report .fixed-table-container {
    height: calc(100vh - 70px - 280px - 170px);
  }
}

#tableReport thead tr th {
  padding-top: 4px;
  padding-bottom: 4px;
  padding-left: 4px;
  padding-right: 4px;
}

/* fine report */

/*+++++++++++++++++++++++++++++++++++++++++++++++++++++*/
/* report cliente */

#tableReportCli thead tr th {
  padding-top: 4px;
  padding-bottom: 4px;
  padding-left: 4px;
  padding-right: 4px;
}

#container-result-report-cli .fixed-table-container {
  height: 450px !important;
}

/* fine report cliente */

/*+++++++++++++++++++++++++++++++++++++++++++++++++++++*/
/* chat */

#container-fluid-chat {
  display: flex;
  flex-direction: column;
  height: calc(100vh - 70px);
  overflow: hidden;
}

#chat-header {
  flex-shrink: 0;
  background-color: var(--bg-header);
  padding-bottom: 10px;
}

.chat-wrapper {
  flex-grow: 1;
  overflow-y: auto;
  padding: 10px;
  border: 1px solid var(--border-chat-container);
  background: var(--bg-chat-container) url(../img/bg-chat.svg) center center
    repeat;
  padding-bottom: 40px;
  margin-bottom: 130px;
  box-sizing: border-box;
}

#input-bar-chat {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background-color: var(--bg-logo-go);
  z-index: 1000;
}

.message {
  display: flex;
  flex-direction: column;
  margin-bottom: 10px;
}

.message-left {
  justify-content: flex-start;
}

.message-right {
  justify-content: flex-end;
}

.bubble {
  max-width: 60%;
  padding: 10px;
  border-radius: 10px;
  word-wrap: break-word;
  position: relative;
}

.bubble-right {
  align-self: flex-end;
  border-bottom-right-radius: 0px;
  border-color: var(--bs-primary);
  margin: 0px;
  color: var(--color-chat-bubble-right);
  background-color: var(--bg-chat-bubble-right);
}

.bubble-right::after {
  content: "";
  position: absolute;
  top: 100%;
  right: 0px;
  border-width: 3px;
  border-style: solid;
  border-color: var(--bg-chat-bubble-right) var(--bg-chat-bubble-right)
    transparent transparent;
}

.bubble-left {
  align-self: flex-start;
  border-top-left-radius: 0px;
  color: var(--color-chat-bubble-left);
  background-color: var(--bg-chat-bubble-left);
}

.bubble-left::after {
  content: "";
  position: absolute;
  top: -6px;
  left: 0px;
  border-width: 3px;
  border-style: solid;
  border-color: transparent transparent var(--bg-chat-bubble-left)
    var(--bg-chat-bubble-left);
}

.message-details {
  font-size: 0.8em;
  color: var(--color-chat-msg-detail);
  margin-top: 2px;
  margin-left: 10px;
  text-align: left;
}

.message-right .message-details {
  text-align: right;
  margin-right: 10px;
}

.new-message-indicator {
  position: absolute;
  top: 200px;
  left: 50%;
  transform: translateX(-50%);
  background-color: var(--bs-secondary);
  color: var(--color-high-contrast-secondary);
  padding: 5px 10px;
  border-radius: 5px;
  text-align: center;
  cursor: pointer;
  z-index: 8989898;
  max-width: 200px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

/* fine chat */

/*+++++++++++++++++++++++++++++++++++++++++++++++++++++*/
/* loader */

.loader {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: var(--bg-loader);
  z-index: 9999;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
}

.loader .spinner {
  border: 20px solid rgba(0, 0, 0, 0.1);
  border-left-color: var(--bs-primary);
  border-radius: 50%;
  width: 100px;
  height: 100px;
  animation: spin 1.5s linear infinite;
}

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

.dots::after {
  content: "";
  display: inline-block;
  width: 1em;
  text-align: left;
  animation: dots 1.5s steps(4, end) infinite;
}

@keyframes dots {
  0%,
  20% {
    content: "";
  }
  40% {
    content: ".";
  }
  60% {
    content: "..";
  }
  80%,
  100% {
    content: "...";
  }
}

/* fine loader */

/*+++++++++++++++++++++++++++++++++++++++++++++++++++++*/
/* alert */

.alert-full-msg {
  background-color: var(--bg-alert-full-msg);
  padding: 40px 20px;
  border-radius: var(--bs-border-radius);
  color: var(--color-alert-full-msg);
}

.alert-success-custom {
  background-color: var(--bg-success);
  color: var(--color-high-contrast-success);
}

.alert-error-custom {
  background-color: var(--bg-error);
  color: var(--color-high-contrast-error);
}

.alert-warning-custom {
  background-color: var(--bg-warning);
  color: var(--color-high-contrast-warning);
}
/* fine alert */

/*+++++++++++++++++++++++++++++++++++++++++++++++++++++*/
/* toast */

.toast {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 99999999999;
  width: 50%;
}

/* fine toast */

/*+++++++++++++++++++++++++++++++++++++++++++++++++++++*/
/* form */

.form-control::placeholder,
.form-control:-ms-input-placeholder,
.form-control::-ms-input-placeholder {
  color: var(--color-form-control-placeholder) !important;
  opacity: 1;
}

.form-control {
  color: var(--color-form-control);
  background-color: var(--bg-form-control);
  /* padding-left: 20px;
  padding-right: 20px; */
  font-size: 15px;
}

.form-control:focus {
  -webkit-box-shadow: none;
  -moz-box-shadow: none;
  box-shadow: none;
  border-color: var(--bs-primary);
}

/* toggle-password */

.toggle-password {
  display: inline-flex;
  align-items: center;
}

.toggle-password:focus {
  -webkit-box-shadow: none;
  -moz-box-shadow: none;
  box-shadow: none;
}

.toggle-password:hover {
  color: var(--color-toggle-password-hover);
}

.toggle-password .eye-off {
  display: none;
}

.toggle-password.active .eye-off {
  display: block;
}

.toggle-password.active .eye-on {
  display: none;
}

/* custom clear input */

.form-group .input-wrapper.not-empty .clear-input {
  display: flex;
}

.form-group.boxed .clear-input {
  right: 7px;
}

.form-group.boxed .clear-input {
  right: 0;
  width: 40px;
}

.form-group .clear-input {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-clear-input);
  height: 38px;
  font-size: 22px;
  position: absolute;
  z-index: 2;
  right: -10px;
  bottom: 0;
  width: 32px;
  opacity: 0.5;
  display: none;
}

.form-group .input-wrapper {
  position: relative;
}

.form-group .clear-input:hover,
.form-group .clear-input:active {
  opacity: 0.8;
}

/* fine form */

#report-table-container .bootstrap-table .fixed-table-toolbar .columns,
#report-table-container .bootstrap-table .fixed-table-toolbar .search {
  margin-top: 2px;
}

#report-cli-table-container .bootstrap-table .fixed-table-toolbar .columns,
#report-cli-table-container .bootstrap-table .fixed-table-toolbar .search {
  margin-top: 2px;
}
