:root {
    --background-color: #090A0F;
    --offset-top: 0px;
  }
  
  .ccm-toolbar-visible {
    --offset-top: 48px;
  }
  
  .ego_invoices_theme {
    background: var(--background-color);
  }
  
  #sidenav-main {
    margin-top: calc(1rem + var(--offset-top)) !important;
  }
  
  .navbar-vertical.navbar-expand-xs .navbar-collapse {
    height: calc(100vh - 127px - var(--offset-top));
  }
  
  .navbar-main .navbar-brand-img {
    max-width: 150px;
    max-height: 48px;
    width: 100%;
    filter: invert(1) saturate(0);
  }
  
  .ccm-toolbar-visible .max-height-vh-100 {
    max-height: calc(100vh - var(--offset-top)) !important;
  }
  
  .main-content {
    min-height: calc(100vh - var(--offset-top));
  }
  
  .form-control:placeholder-shown {
    text-overflow: ellipsis;
  }
  
  /* Tabs component */
  .tabs .moving-tab .nav-link.active {
    color: #344767;
    font-weight: 400;
  }
  
  .tabs .nav.nav-pills .nav-link {
    cursor: pointer;
  }
  
  /* Animations */
  .fade-enter-active,
  .fade-leave-active {
    transition: opacity 0.2s;
  }
  
  .fade-enter, .fade-leave-to {
    opacity: 0;
  }
  
  .slide-enter-active {
    -moz-transition-duration: 0.3s;
    -webkit-transition-duration: 0.3s;
    -o-transition-duration: 0.3s;
    transition-duration: 0.3s;
    -moz-transition-timing-function: ease-in;
    -webkit-transition-timing-function: ease-in;
    -o-transition-timing-function: ease-in;
    transition-timing-function: ease-in;
  }
  
  .slide-leave-active {
    -moz-transition-duration: 0.3s;
    -webkit-transition-duration: 0.3s;
    -o-transition-duration: 0.3s;
    transition-duration: 0.3s;
    -moz-transition-timing-function: cubic-bezier(0, 1, 0.5, 1);
    -webkit-transition-timing-function: cubic-bezier(0, 1, 0.5, 1);
    -o-transition-timing-function: cubic-bezier(0, 1, 0.5, 1);
    transition-timing-function: cubic-bezier(0, 1, 0.5, 1);
  }
  
  .slide-enter-to, .slide-leave {
    max-height: var(--slide-height, 100px);
    overflow: hidden;
  }
  
  .slide-enter, .slide-leave-to {
    overflow: hidden;
    max-height: 0;
  }
  
  /* Preloader */
  #ego-invoices-loader {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 9999;
    width: 100%;
    height: 100%;
    min-width: 100vw;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #090A0F;
    flex-direction: column;
    transition: opacity 0.5s ease-in-out;
  }
  
  #ego-invoices-loader img {
    max-width: 150px !important;
    margin-bottom: 30px;
    filter: invert(1) saturate(0);
  }
  
  #ego-invoices-loader h1 {
    font-weight: 400;
    font-size: 1.7em;
    margin: 20px 0;
  }
  
  #ego-invoices-loader .line-wobble {
    --uib-color: var(--bs-primary);
    --uib-size: 140px;
  }
  
  #ego-invoices-loader.ego-invoices-loader-fade-out {
    display: none;
  }
  
  #ego-invoices-loader.ego-invoices-loader-hidden {
    opacity: 0;
  }
  
  .line-wobble {
    --uib-size: 80px;
    --uib-speed: 1.75s;
    --uib-color: black;
    --uib-line-weight: 5px;
  
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    height: var(--uib-line-weight);
    width: var(--uib-size);
    border-radius: calc(var(--uib-line-weight) / 2);
    overflow: hidden;
    transform: translate3d(0, 0, 0);
  }
  
  .line-wobble::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 100%;
    background-color: var(--uib-color);
    opacity: 0.1;
  }
  
  .line-wobble::after {
    content: "";
    height: 100%;
    width: 100%;
    border-radius: calc(var(--uib-line-weight) / 2);
    animation: wobble var(--uib-speed) ease-in-out infinite;
    transform: translateX(-95%);
    background-color: var(--uib-color);
  }
  
  @keyframes wobble {
    0%, 100% {
      transform: translateX(-95%);
    }
  
    50% {
      transform: translateX(95%);
    }
  }
  
  /* Spinner */
  .spinner {
    --size: 40px;
    width: var(--size);
    height: var(--size);
    border-radius: 50%;
    border: calc(var(--size) * 0.16) solid var(--bs-primary);
    animation: spinner-bulqg1 0.8s infinite linear alternate,
      spinner-oaa3wk 1.6s infinite linear;
  }
  
  @keyframes spinner-bulqg1 {
    0% {
      clip-path: polygon(50% 50%, 0 0, 50% 0%, 50% 0%, 50% 0%, 50% 0%, 50% 0%);
    }
  
    12.5% {
      clip-path: polygon(50% 50%, 0 0, 50% 0%, 100% 0%, 100% 0%, 100% 0%, 100% 0%);
    }
  
    25% {
      clip-path: polygon(50% 50%, 0 0, 50% 0%, 100% 0%, 100% 100%, 100% 100%, 100% 100%);
    }
  
    50% {
      clip-path: polygon(50% 50%, 0 0, 50% 0%, 100% 0%, 100% 100%, 50% 100%, 0% 100%);
    }
  
    62.5% {
      clip-path: polygon(50% 50%, 100% 0, 100% 0%, 100% 0%, 100% 100%, 50% 100%, 0% 100%);
    }
  
    75% {
      clip-path: polygon(50% 50%, 100% 100%, 100% 100%, 100% 100%, 100% 100%, 50% 100%, 0% 100%);
    }
  
    100% {
      clip-path: polygon(50% 50%, 50% 100%, 50% 100%, 50% 100%, 50% 100%, 50% 100%, 0% 100%);
    }
  }
  
  @keyframes spinner-oaa3wk {
    0% {
      transform: scaleY(1) rotate(0deg);
    }
  
    49.99% {
      transform: scaleY(1) rotate(135deg);
    }
  
    50% {
      transform: scaleY(-1) rotate(0deg);
    }
  
    100% {
      transform: scaleY(-1) rotate(-135deg);
    }
  }
  
  .modal-spinner {
    position: absolute;
    top: 0;
    left: 0;
    background: rgba(255, 255, 255, 0.5);
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 5;
  }
  
  /* Notifications */
  body .vue-notification-group {
    margin-top: 53px;
    margin-right: 5px;
    font-size: 0.9em;
    z-index: 10000;
  }
  
  body .vue-notification-wrapper {
    overflow: visible;
  }
  
  .vue-notification-template.notification {
    background-color: #38b6ff;
    color: white;
    padding: 8px 15px;
    border-radius: 6px;
    box-shadow: 0 15px 20px rgba(0, 0, 0, 0.25);
    margin-bottom: 5px;
    margin-left: auto;
    width: 300px;
    font-size: 1.1em;
  }
  
  .colored-toast.swal2-icon-info {
    background-color: #38b6ff !important;
  }
  
  .vue-notification-template.notification.error,
  .colored-toast.swal2-icon-error {
    background-color: #e54d42;
    width: 400px;
  }
  
  .vue-notification-template.notification.warn,
  .colored-toast.swal2-icon-warning {
    background: #ffb648;
  }
  
  .vue-notification-template.notification.success,
  .colored-toast.swal2-icon-success {
    background-color: #68cd86 !important;
  }
  
  /* Tabella */
  .ag-root-wrapper.no-overflow {
    overflow: visible;
  }
  
  .ag-theme-alpine.data-table {
    font-family: "Open Sans", sans-serif;
    font-size: 0.7em;
    height: 100%;
  }
  
  .ag-theme-alpine.data-table * {
    -webkit-font-smoothing: antialiased !important;
  }
  
  .ag-theme-alpine.data-table .ag-root-wrapper {
    border: none;
  }
  
  .ag-theme-alpine.data-table .ag-header {
    background: none;
  }
  
  .ag-theme-alpine.data-table .ag-header-row {
    color: #8392ab;
    text-transform: uppercase;
    height: 43px;
  }
  
  .ag-theme-alpine.data-table .ag-header-row>* {
    border: none !important;
  }
  
  .ag-theme-alpine.data-table .ag-header-row:not(:last-child) {
    display: none;
  }
  
  .ag-theme-alpine.data-table .ag-row {
    font-size: 1.2em;
    color: #67748e;
    font-weight: 600;
  }
  
  
  /* Popup */
  #app .modal>.modal-dialog {
    position: fixed;
    margin: 0 !important;
    width: 100%;
    min-width: 100vw;
    min-height: 100vh;
    top: 0;
    left: 0;
    border: none;
    border-radius: 0;
    display: block;
  }
  
  #app .modal .registro-eventi {
    --slide-height: 150px;
  }
  
  #app .modal .mx-datepicker {
    width: 100%;
  }
  
  #app .modal .form-visita textarea {
    resize: none;
  }
  
  #app .modal .timeline {
    height: var(--height, 550px);
    max-height: var(--height, 550px);
    overflow: auto;
  }
  
  #app .modal .timeline-container {
    position: relative;
  }
  
  #app .modal .spinner-timeline {
    position: absolute;
    top: 0;
    left: 0;
    background: rgba(255, 255, 255, 0.6);
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
  }
  
  #app .modal .timeline-tables table {
    width: calc(100% - 15px);
    margin-left: 15px;
    margin-top: 5px;
    margin-bottom: 8px;
  }
  
  #app .modal .timeline-tables td,
  #app .modal .timeline-tables th {
    border: 1px solid black;
    text-align: center;
    text-transform: capitalize;
  }
  
  #app .modal .timeline-tables details:first-child {
    margin-top: 8px;
  }
  
  #app .modal .btn-icon {
    font-size: 0.6rem;
  }
  
  #app .modal .modal-dialog {
    --bs-modal-width: 800px;
  }
  
  #app .modal .modal-dialog[editing] {
    --bs-modal-width: 1300px;
  }
  
  #app .modal .modal-content {
    border: none;
    border-radius: 0;
    padding-top: 48px;
  }
  
  #app .modal .modal-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: var(--bs-modal-bg);
    z-index: 1;
  }
  
  #app .modal .modal-body {
    margin: 0;
    height: 100%;
    min-height: calc(100vh - 47px - 57.8px);
    max-height: calc(100vh - 47px - 57.8px);
    overflow: auto;
  }
  
  #app .modal .modal-body > div {
    min-height: calc(100vh - 47px - 57.8px - 1rem);
  }
  
  #app .modal .modal-dialog:not([data-editing]) .modal-body > div:not(.modal-spinner) {
    max-width: 800px;
    margin: 0 auto;
  }
  
  #app .modal .modal-footer {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    z-index: 11;
    background: var(--bs-modal-bg);
    border-radius: 0;
  }
  
  #app .modal .autocomplete ul {
    width: 100%;
    z-index: 8;
  }
  
  #app .modal .ui.selection.dropdown {
    border-radius: 0.5rem;
  }
  
  #app .modal .ui.selection.dropdown,
  #app .modal .ui.selection.dropdown:hover {
    border-color: #d2d6da;
  }
  
  #app .modal .ui.selection.dropdown:focus,
  #app .modal .ui.selection.dropdown:focus .menu,
  #app .modal .ui.selection.active.dropdown,
  #app .modal .ui.selection.active.dropdown .menu {
    border-color: #0095D7;
    box-shadow: 0 2px 3px 0 #81DCFC;
  }
  
  /* InvoicesItems */
  .form-control:disabled ~ .input-group-text,
  #app .modal .ui.selection.dropdown[disabled] {
    background-color: #e9ecef !important;
  }
  
  #app .modal .ui.selection.dropdown[disabled] {
    pointer-events: none;
  }
  
  /* Floating label */
  .floating-label {
    position: relative;
  }
  
  .floating-label label {
    font-size: 0.875rem;
    font-weight: 400;
    position: absolute;
    pointer-events: none;
    left: 0.75rem;
    top: 11px;
    background: #fff;
    margin: 0;
    padding: 0 5px;
    color: #adb5bd;
    line-height: 1.4;
    font-style: italic;
    z-index: 7;
    white-space: nowrap;
    text-overflow: ellipsis;
    overflow: hidden;
    display: block;
    max-width: calc(100% - 1.5rem);
    transition: 0.2s ease all;
    -moz-transition: 0.2s ease all;
    -webkit-transition: 0.2s ease all;
  }
  
  .floating-label input[disabled]~label,
  .floating-label select[disabled]~label,
  .floating-label textarea[disabled]~label,
  .floating-label[disabled] label {
    background: #e9ecef;
  }
  
  .floating-label label {
    max-width: calc(100% - 1.5rem - var(--padding-right, 0px));
  }
  
  .floating-label input:focus,
  .floating-label select:focus,
  .floating-label textarea:focus {
    outline: none;
  }
  
  .floating-label select~label {
    top: 11px;
  }
  
  .floating-label .floating-focus~label,
  .floating-label input:focus~label,
  .floating-label select:focus~label,
  .floating-label textarea:focus~label,
  .floating-label input:not(:placeholder-shown)~label,
  .floating-label textarea:not(:placeholder-shown)~label,
  .floating-label select:has(option:not([value=""]):checked)~label {
    top: -7px;
    font-size: 0.7rem;
    z-index: 10;
  }
  
  .floating-label *::placeholder {
    opacity: 0 !important;
  }
  
  .floating-label:focus,
  .floating-label:active,
  .floating-label:focus-within {
    z-index: 11;
  }
  
  /* Vue Select */
  .v-select {
    --vs-border-radius: 0.5rem;
    --vs-actions-padding: 0;
    --vs-disabled-bg: #e9ecef;
    font-size: 0.875rem;
  }
  
  .v-select .vs__dropdown-toggle {
    padding: 0.5rem 0.75rem;
    width: 100%;
    max-width: 100%;
    overflow: hidden;
    flex-wrap: nowrap;
  }
  
  .v-select input {
    margin: 0 !important;
    border: 0 !important;
    min-width: 0;
    padding: 0 !important;
  }
  
  .v-select .vs__selected {
    border: none;
    padding: 0;
    margin: 0;
    display: block;
    white-space: nowrap;
    text-overflow: ellipsis;
    overflow: hidden;
  }
  
  .v-select .vs__selected-options {
    line-height: 1;
    overflow: hidden;
    flex-wrap: nowrap;
  }
  
  .v-select .vs__actions {
    flex: 1;
  }
  
  .v-select .vs__actions button {
    display: flex;
    align-items: center;
    justify-content: center;
  }