:root {
  --primary-color: #3b6f81;
  --menu-color: #ccc;
  --menu-color-active: #fff;
  --pot-color: transparent;
}

/*--- FONTS ---*/
@font-face {
  font-family: 'Poppins';
  font-style: normal;
  font-weight: 300;
  font-stretch: 100%;
  font-display: swap;
  src: url('../fonts/Poppins/Poppins-Light.ttf') format('woff2');
}

@font-face {
  font-family: 'Poppins';
  font-style: normal;
  font-weight: 400;
  font-stretch: 100%;
  font-display: swap;
  src: url('../fonts/Poppins/Poppins-Regular.ttf') format('woff2');
}

@font-face {
  font-family: 'Poppins';
  font-style: normal;
  font-weight: 500;
  font-stretch: 100%;
  font-display: swap;
  src: url('../fonts/Poppins/Poppins-Medium.ttf') format('woff2');
}

@font-face {
  font-family: 'Poppins';
  font-style: normal;
  font-weight: 700;
  font-stretch: 100%;
  font-display: swap;
  src: url('../fonts/Poppins/Poppins-Bold.ttf') format('woff2');
}

/*--- GLOBAL ---*/
body {
  font-family: 'Poppins', sans-serif;
  font-weight: 300;
}

a[data-ajax] * {
  pointer-events: none;
}

a {
  color: var(--primary-color);
}

strong {
  font-weight: bold;
}

a:not(.btn):not(.nav-link):hover,
a:not(.btn):not(.nav-link):focus,
a:not(.btn):not(.nav-link):active {
  color: var(--primary-color);
  filter: brightness(1.1);
}

.text-primary {
  color: var(--primary-color) !important;
}

.bg-primary {
  background-color: var(--primary-color) !important;
}

.text-bold {
  font-weight: bold;
}

.text-primary:hover,
.text-primary:active,
.text-primary:focus {
  color: var(--primary-color) !important;
}

.badge {
  font-weight: 400;
}

.btn {
  border-radius: 8px;
}

.btn-mini {
  border-radius: 6px;
  --bs-btn-padding-y: 0.05rem;
  --bs-btn-padding-x: 0.25rem;
  --bs-btn-font-size: 0.75rem;
  --bs-btn-border-radius: 0.25rem;
}

.btn-md {
  padding: 4px 8px;
}

.btn-primary {
  background-color: var(--primary-color) !important;
  border-color: var(--primary-color) !important;
}

.btn-primary:hover,
.btn-primary:active,
.btn-primary:focus,
.btn-primary:disabled {
  filter: brightness(1.1);
}

.btn-primary:focus {
  box-shadow: none;
}

.badge:empty {
  display: inline-block;
  width: 10px;
  height: 10px;
  min-width: 0;
  min-height: auto;
  padding: 0;
  border-radius: 100rem;
  vertical-align: baseline;
}

.badge.bg-light {
  background-color: #ccc !important;
}

.note-popover {
  max-width: 500px;
}

joomla-tab button[aria-expanded='true']:after {
  background-color: var(--primary-color);
}

.table > :not(caption) > * > * {
  background-color: #fafafa;
}

.table th {
  font-weight: 400;
}

.table td.fit,
.table th.fit {
  white-space: nowrap;
  width: 1%;
}

th .fa-sort-down {
  transform: translateY(-2px);
}

th .fa-sort-up {
  transform: translateY(5px);
}

.edit-by {
  text-align: center;
  font-size: 0.8rem;
}

.ajax-pending .tooltip {
  display: none;
}

.ajax-mask {
  position: fixed;
  inset: 0;
  z-index: 10000;
  background-color: rgba(0, 0, 0, 0.5);
}

.ajax-mask::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  margin-top: -24px;
  margin-left: -24px;
  width: 48px;
  height: 48px;
  border: 5px solid #fff;
  border-bottom-color: transparent;
  border-radius: 50%;
  display: inline-block;
  box-sizing: border-box;
  animation: rotation 1s linear infinite;
}

@keyframes rotation {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

.com-users-reset .control-group,
.com-users-reset-confirm .control-group,
.com-users-reset-complete .control-group {
  margin-top: 20px;
}

.com-users-reset .form-control-feedback,
.com-users-reset-confirm .form-control-feedback,
.com-users-reset-complete .form-control-feedback,
.com-users-reset-complete #password-0,
.filepond--credits {
  display: none;
}

.readonly-adresse {
  background: #eaeaea !important;
}

/*--- STRUCTURE ---*/

.main-content {
  padding: 20px 20px 20px 70px;
  background-color: #e9e9e9;
  min-height: 100vh;
}

.component .main-content {
  padding: 20px;
  background-color: #fff;
}

@media (max-width: 767px) {
  .main-content {
    padding: 20px 20px 80px 20px;
  }
}

/*--- MENU DESKTOP ---*/

.position-menu {
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  width: 40px;
  overflow: hidden;
  color: var(--menu-color);
  z-index: 500;
  display: flex;
  flex-direction: column;
  background-color: var(--primary-color);
  transition: width 0.1s ease-out;
}

.position-menu:hover {
  overflow: visible;
  width: 240px;
}

.position-menu ul {
  background-color: var(--primary-color);
  list-style: none;
  padding: 0;
  display: block;
}

.position-menu > ul {
  height: 100%;
}

.position-menu .more {
  transform: translateX(-100%);
  width: 240px;
  text-align: center;
  overflow: hidden;
  padding: 10px;
}

.position-menu:hover div.more {
  transform: translateX(0);
}

.position-menu ul li {
  position: relative;
}

.position-menu > ul > li > a,
.position-menu > ul > li > ul > li > a,
.offcanvas ul.mod-menu > li > a,
.offcanvas ul.mod-menu > li > ul > li > a {
  color: var(--menu-color) !important;
  display: flex;
  align-items: center;
  text-decoration: none;
  padding: 2px 5px 2px 40px;
  position: relative;
  z-index: 1000;
  min-height: 40px;
  background: var(--primary-color);
  white-space: nowrap;
  transition: 0.1s filter ease-out;
  font-size: 1rem;
}

.position-menu > ul > li > a > span,
.position-menu > ul > li > ul > li > a > span,
.offcanvas ul.mod-menu > li > a > span,
.offcanvas ul.mod-menu > li > ul > li > a > span {
  font-size: 1rem;
  width: 40px;
  text-align: center;
  margin-left: -40px;
  flex-shrink: 0;
}

.position-menu > ul > li > ul > li > a,
.offcanvas ul.mod-menu > li > ul > li > a {
  font-size: 16px;
}

.position-menu .nav li.current > a,
.offcanvas .nav li.current > a {
  color: var(--menu-color-active) !important;
}

.position-menu ul li:hover > a,
.position-menu ul li a:hover {
  filter: brightness(0.8);
}

.position-menu > ul > li > ul {
  position: absolute;
  top: 0;
  right: 0;
  min-width: 240px;
  transform: translateX(0);
  transition: transform 0.2s ease-out;
  z-index: 999;
  width: auto !important;
}

.position-menu > ul > li > ul a {
  background: var(--primary-color);
  display: flex;
  align-items: center;
}

.position-menu > ul > li > a:hover + ul,
.position-menu > ul > li > a + ul:hover {
  transform: translateX(99%);
}

.connecte {
  color: #fff;
}

.mobile-menu-access {
  display: none;
}

@media (max-width: 767px) {
  .desktop-menu {
    display: none;
  }

  .offcanvas {
    width: 280px;
    background-color: var(--primary-color);
    display: flex;
    flex-direction: column;
  }

  .mobile-menu-access,
  .mobile-menu-access:focus {
    display: block;
    position: fixed;
    bottom: 10px;
    right: 10px;
    border-radius: 50%;
    font-size: 2rem;
    width: 60px;
    height: 60px;
    background-color: var(--primary-color) !important;
    border-color: var(--primary-color) !important;
    color: #fff !important;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.75);
    z-index: 2;
  }

  .offcanvas {
    max-width: 80%;
    border-left: none !important;
  }

  .offcanvas-body {
    padding: 0;
  }

  .offcanvas ul.mod-menu {
    display: block;
  }

  .offcanvas ul.mod-menu__sub {
    box-shadow: inset 0 0 5px rgba(0, 0, 0, 0.5), inset 0 0 30px rgba(0, 0, 0, 0.25);
  }
  .offcanvas ul.mod-menu > li > ul > li > a {
    background: none;
  }

  .offcanvas .more {
    text-align: center;
    padding: 10px;
    transition: 0.8s opacity ease-out;
  }
}

/*--- CONNEXION ---*/
body.public {
  background: var(--primary-color);
}

.home-login {
  background-color: #fafafa;
  padding: 20px 40px;
  border-radius: 8px;
  box-shadow: 0 0 2px rgba(0, 0, 0, 0.5), 0 0 20px rgba(0, 0, 0, 0.25);
}

.position-login .btn {
  border-radius: 8px;
}

/*--- LISTES ---*/
.adminloc-list-toolbar,
.adminloc-edit-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.adminloc-list-toolbar h1,
.adminloc-edit-toolbar h1 {
  font-size: 1.75rem;
  margin: 0;
}

h1 .badge {
  border-radius: 20px;
}

.adminloc-list-toolbar .buttons,
.adminloc-edit-toolbar .buttons {
  display: flex;
}

.adminloc-list-toolbar .buttons .btn-search {
  border-radius: 8px;
}

.adminloc-list-toolbar #list_limit {
  display: none;
}

.adminloc-list-filter {
  display: flex;
  gap: 10px;
}

.adminloc-list-filter .form-control {
  min-height: calc(1.5em + 0.5rem + 2px);
  padding: 0.25rem 0.5rem;
  font-size: 0.875rem;
  border-radius: 0.25rem;
}

.adminloc-list table tr > th:first-child {
  border-top-left-radius: 8px;
}

.adminloc-list table tr > th:last-child {
  border-top-right-radius: 8px;
}

.adminloc-list table tr > th:first-child,
.adminloc-list table tr > td:first-child {
  padding-left: 8px;
}

.adminloc-list th {
  background: var(--primary-color);
  color: #fff;
}

.adminloc-list th a {
  color: #fff !important;
}

.adminloc-list a {
  text-decoration: none;
}

.adminloc-list-element-title {
  font-size: 1.25rem;
  font-weight: 400;
}

.adminloc-list .col-id,
.adminloc-list .col-actions {
  text-align: center;
  white-space: nowrap;
  width: 0;
  padding-left: 10px;
  padding-right: 10px;
}

.adminloc-list .col-actions .btn {
  box-shadow: inset 0 0 20px #dee2e6;
}

.adminloc-list-pagination {
  display: flex;
  justify-content: center;
  align-items: end;
  gap: 10px;
}

.adminloc-list-pagination ul {
  margin: 0;
}

.adminloc-list-pagination .active > .page-link {
  background-color: var(--primary-color);
  border-color: var(--primary-color);
  color: #fff;
}

.adminloc-list-pagination .page-link {
  color: var(--primary-color);
  box-shadow: none !important;
}

.ctc-item,
.ctc-item a {
  font-size: 0.9rem;
}

.pot-color {
  overflow: hidden;
  padding-left: 16px !important;
}

.pot-color::before {
  content: '';
  display: block;
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  width: 10px;
  background-color: var(--pot-color);
  pointer-events: none;
}

@media (max-width: 767px) {
  .adminloc-list-toolbar,
  .adminloc-edit-toolbar {
    display: block;
  }

  .adminloc-list-toolbar .buttons,
  .adminloc-edit-toolbar .buttons {
    margin-top: 1rem;
    display: block;
  }
}

/*--- VUE DETAIL ---*/
.adminloc-detail-tabs {
  transform: translateY(10px);
  margin-top: 10px;
}

.adminloc-detail-tabs ul {
  border-bottom-color: var(--primary-color) !important;
}

.adminloc-detail-tabs li {
  margin-right: 10px;
}

.adminloc-detail-tabs li a {
  color: var(--primary-color) !important;
  background-color: #dcdcdc !important;
  border-bottom-color: var(--primary-color) !important;
}

.adminloc-detail-tabs li a:hover {
  background-color: #ccc !important;
}

.adminloc-detail-tabs li a.active {
  color: #fff !important;
  background-color: var(--primary-color) !important;
}

.produits-services-separator {
  color: #dc3545 !important;
  padding-top: 10px !important;
  padding-bottom: 8px !important;
  font-weight: bold;
}

/*--- FORMULAIRES ---*/
.adminloc-card {
  margin-top: 20px;
  box-shadow: 0 0 1px var(--primary-color), 0 0 10px rgba(0, 0, 0, 0.125);
  padding: 20px;
  background-color: #fff;
  border-radius: 8px;
}

joomla-tab-element .adminloc-card {
  box-shadow: 0px 0px 2px 0px rgba(0, 0, 0, 0.5);
}

joomla-field-fancy-select .choices__button_joomla {
  display: none;
}

.choices__list--dropdown .choices__item--selectable {
  padding-right: 10px;
}

.choices__list--dropdown .choices__item--selectable::after {
  display: none;
}

.adminloc-card-title {
  text-transform: uppercase;
  font-weight: 700;
  font-size: 18px;
  margin: 0 0 1rem;
}

.adminloc-edit-fields label {
  font-weight: 500;
}

.adminloc-edit-fields .form-control,
.adminloc-edit-fields .form-select {
  border: none;
  background-color: #fafafa;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.25);
}

.priorite-1 {
  color: #0d6efd;
}

.bg-priorite-1 {
  background-color: #0d6efd;
  color: #fff;
}

.priorite-2 {
  color: #ffc107;
}

.bg-priorite-2 {
  background-color: #ffc107;
}

.pastille-potentiel {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  display: inline-block;
  transform: translateY(2px);
}

.potentiel-1 {
  color: #0d6efd;
}

.bg-potentiel-1 {
  background-color: #0d6efd;
}

.potentiel-2 {
  color: #ffc107;
}

.bg-potentiel-2 {
  background-color: #ffc107;
}

.potentiel-3 {
  color: red;
}

.bg-potentiel-3 {
  background-color: red;
}

.badge-statut {
  color: #fff !important;
}

.badge-statut- {
  background-color: #bbb !important;
}

.badge-statut-reserve {
  background-color: #084298 !important;
}

.badge-statut-disponible,
.badge-statut-termine {
  background-color: #198754 !important;
}

.badge-statut-location,
.badge-statut-encours {
  background-color: #dc3545 !important;
}

.badge-statut-maintenance,
.badge-statut-livraison_confirmee,
.badge-statut-retour_confirme {
  color: #383838 !important;
  background-color: #ffc107 !important;
}

.badge-statut-hs,
.badge-statut-annule {
  background-color: #000 !important;
}

.dropdown-item.badge-statut:hover {
  transform: scale(1.05);
}

.googleaddress-full {
  background: rgba(255, 245, 159, 0.2) !important;
  border: none;
  border-bottom: 1px solid #ccc !important;
  box-shadow: none !important;
  border-radius: 0;
}

/*--- HISTORIQUE ---*/
.historique-line {
  padding: 2px 4px 2px 8px;
  border-left: 2px solid #ccc;
  font-size: 0.85rem;
  margin-top: 0.5rem;
  background: #fafafa;
}

.historique-user {
  color: var(--primary-color);
}

.reservation-line + .reservation-line {
  margin-top: 1rem;
}

/*--- DOCUMENTS ---*/
.document-item {
  padding: 10px 20px;
  background: #fafafa;
  border: 1px solid #eee;
  margin-top: 10px;
}

.document-detail a {
  text-decoration: none;
}

.document-user {
  font-size: 0.9rem;
}

/*--- CONTRATS ---*/
.photos-item {
  box-shadow: 0 0 150px rgba(0, 0, 0, 0.15) inset;
  border-radius: 8px;
}

.photos img {
  max-width: 100%;
  border-radius: 8px;
}

.photo-preview {
  padding: 10px;
}

.photo-user {
  background: #888;
  color: #fff;
  padding: 5px 10px;
  border-bottom-left-radius: 10px;
  border-bottom-right-radius: 10px;
}

.photo-user .author {
  font-size: 0.9rem;
}

.photos .fa-undo {
  transform: scaleX(-1);
}

/*--- CHIFFRAGE ---*/
#ChiffrageTable th {
  background: #bbb;
}

.chiffrage-input-sm {
  width: 100px;
  display: inline-block;
}

.line-input-prix-unit-ht,
.line-input-total-ht {
  width: 100px;
  display: inline-block;
  border: none;
}

#ChiffrageTable .col-actions {
  text-align: center;
  vertical-align: middle;
  white-space: nowrap;
  width: 0;
  padding-left: 10px;
  padding-right: 10px;
}

#ChiffrageTable .col-actions i {
  cursor: pointer;
}

#ChiffrageTable .col-actions i.fa-sort {
  cursor: move;
}

#ChiffrageTable .sortable-chosen td {
  background: #ffa;
}

/*--- PLANNING ---*/
table.planning {
  height: 1px;
}

table.planning tr {
  height: 100%;
}

table.planning td {
  width: 14.2857142857%;
  vertical-align: top;
}

table.planning th .dropdown-menu {
  background-color: #444;
}

table.planning th .dropdown-menu a {
  color: #fff !important;
}

table.planning th .dropdown-menu a:hover {
  background: #888 !important;
}

table.planning .cards {
  height: 100%;
}

.adl-card-team {
  border-radius: 8px;
  position: relative;
  box-shadow: 0 0 10px #bbb inset;
}

.team-header {
  background: #ccc;
  padding: 4px 8px;
  border-top-left-radius: 8px;
  border-top-right-radius: 8px;
  display: flex;
}

.without-team.without-team .team-header {
  background: #414141;
  color: #fff;
}

#PlanningTeams .team-header {
  cursor: move;
}

.team-header-inner {
  flex-grow: 1;
}

.team-header-actions {
  margin-left: 10px;
}

.team-actions,
.pending-actions {
  padding: 0 4px 4px;
  min-height: 30px;
}

.adl-card-action {
  padding: 10px;
  border-radius: 4px;
  position: relative;
  min-height: 50px;
  box-shadow: 0 0 10px #ddd inset;
}

.adl-card-action.pending {
  border: 2px dashed #ccc;
  opacity: 0.8;
}

.adl-card-action.pending.livraison {
  background: #efe;
}

.adl-card-action.pending.retour {
  background: #fee;
}

[data-sortable-actions-team-id] .adl-card-action {
  cursor: move;
}

.adl-card-action.sortable-chosen {
  background: #ffc;
}

.adl-card-action + .adl-card-action {
  margin-top: 10px;
}

.adl-card-action {
  display: flex;
}

.adl-card-action .inner {
  flex-grow: 1;
}

.adl-card-action .actions {
  margin-left: 10px;
}

.img-preview {
  background-size: cover;
  aspect-ratio: 1;
  display: inline-block;
  border-radius: 8px;
  overflow: hidden;
}
