/* poppins-300 - latin */
@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: 'Poppins';
  font-style: normal;
  font-weight: 300;
  src: url('../fonts/poppins-v23-latin-300.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}
/* poppins-500 - latin */
@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: 'Poppins';
  font-style: normal;
  font-weight: 500;
  src: url('../fonts/poppins-v23-latin-500.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}
/* poppins-700 - latin */
@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: 'Poppins';
  font-style: normal;
  font-weight: 700;
  src: url('../fonts/poppins-v23-latin-700.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}
/* poppins-900 - latin */
@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: 'Poppins';
  font-style: normal;
  font-weight: 900;
  src: url('../fonts/poppins-v23-latin-900.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}

/* Accent var color */
:root {
  --accent-color: #eee1cf;
}

html,
body {
  font-size: .96rem;
  min-height: 100dvh;
}

.nav-link {
  border-radius: var(--bs-border-radius) !important;
}

.nav-link.active {
  background-color: var(--accent-color);
  color: #000 !important;
}

body {
  background:
  radial-gradient(
    circle at 8% 8%,
    rgba(175, 140, 90, 0.14),
    transparent 10%
  ),
  linear-gradient(
    135deg,
    #faf6ef 0%,
    #e8d7bf 60%
  );
  background-attachment: fixed;
}

html {
  scrollbar-gutter: stable;
}

.container {
  max-width: 1600px;
}

header.navbar {
  height: 50px;
  z-index: 1041;
}

.logo {
  max-width: 120px;
  max-height: 45px;
}

.logged-user {
  width: 40px;
  height: 40px;
  font-size: .9rem;
  border-radius: 50%;
  background-color: var(--bs-primary) !important;
  color: var(--accent-color) !important;
  transition: all .18s ease-in-out;
}

.logged-user:hover, .logged-user:focus {
  box-shadow: var(--bs-box-shadow);
  background-color: rgba(255, 255, 255, 1);
}

.logged-user::after {
  display: none !important;
}

.offcanvas-backdrop {
  z-index: 1041;
}

[data-bs-theme=light] {
  .offcanvas-header {
    background-color: #ffffff;
  }
  .offcanvas-header .btn-close {
    filter: invert(0);
  }
}

.mobile-nav .nav-item .nav-link:not(.active) {
  color: #464646;
}

.side-nav .nav-item, */.mobile-nav .nav-item {
  transition: all 0.2s ease-in-out;
  /* border-bottom: 1px solid #e6e6e6e6; */
}

.mobile-nav .nav-item .nav-link:hover.nav-link:not(.active) {
  background-color: #eeeeee;
  border-radius: 0;
  /* border-bottom: 1px solid transparent; */
}

.mobile-nav .nav-item .nav-link.active {
  border-radius: 0;
}

main {
  font-size: 0.9rem;
}

.auth-form {
  min-height: 87dvh;
}

.text-shadow {
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
}

.cursor-pointer, .form-select {
  cursor: pointer;
}

.table:not(.specs-table) {
  border-collapse: separate;
  border-spacing: 0;
  min-width: 576px;
}

.table-actions {
  font-size: 0.9rem;
  padding: 0.2rem 0.5rem;
  font-weight: bolder;
}

.table thead tr:first-child th:first-child {
  border-top-left-radius: 0.5rem;
}
.table thead tr:first-child th:last-child {
  border-top-right-radius: 0.5rem;
}
.table tbody tr:last-child td:first-child,
.table tbody:last-child tr:last-child td:first-child {
  border-bottom-left-radius: 0.5rem;
}
.table tbody tr:last-child td:last-child,
.table tbody:last-child tr:last-child td:last-child {
  border-bottom-right-radius: 0.5rem;
}

.table th {
  padding: .5rem 1rem !important;
}
.table td {
  padding: .2rem 1rem !important;
}

.specs-table td {
  align-content: center;
  background-color: var(--bs-light);
}

.table-responsive {
  overflow-x: auto;
  position: relative;
}
.sticky-col {
  position: sticky;
  left: 0;
  z-index: 2;
  border-right: 1px solid #BFBFBF !important;
}

.sticky-col-end {
  position: sticky;
  right: 0;
  z-index: 2;
  border-left: 1px solid #BFBFBF !important;
}

.suggestions-block {
  z-index: 1000;
  max-height: 200px;
  overflow-y: auto;
}

.suggestion-item {
  cursor: pointer;
  padding: .2rem .5rem;
  border-radius: var(--bs-border-radius);
}

.suggestion-item:hover {
  background-color: var(--bs-light);
}

.suggestion-item.active {
    background-color: var(--bs-primary);
    color: #ffffff;
}

/* App parameters page */
.tile-card {
  transition: transform .15s ease, box-shadow .15s ease; border: 0;
}

.tile-card:hover {
  box-shadow: 0 .5rem 1rem rgba(0,0,0,.15) !important;
}

.nav-icon-pill {
  width: 2rem; height: 2rem;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: .65rem;
}

.nav-icon-circle {
  width: 1.5rem; height: 1.5rem;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 50%;
}

.active .tone-green {
  background: linear-gradient(135deg, rgb(255, 255, 255), rgb(233, 233, 233));
}

.nav-link-label {
  margin-left: 0.5rem;
}

.icon-pill {
  width: 3.25rem; height: 3.25rem;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: .85rem;
}

.tone-blue {
  background: linear-gradient(135deg, rgba(13,110,253,.08), rgba(13,110,253,.18)); color: #0d6efd;
}

.tone-yellow {
  background: linear-gradient(135deg, rgba(255,193,7,.10), rgba(255,193,7,.22)); color: #b58100;
}

.tone-red {
  background: linear-gradient(135deg, rgba(220,53,69,.10), rgba(220,53,69,.22)); color: #dc3545;
}

.tone-orange {
  background: linear-gradient(135deg, rgba(255, 87, 34,.10), rgba(255, 87, 34,.22)); color: #ff5722;
}

.tone-green {
  background: rgba(var(--bs-success-rgb), .12); color: rgb(var(--bs-success-rgb));
}

.tone-purple {
  background: linear-gradient(135deg, rgba(111,66,193,.10), rgba(111,66,193,.22)); color: #6f42c1;
}

.tone-neutral {
  background: linear-gradient(135deg, rgba(108,117,125,.10), rgba(108,117,125,.22)); color: #6c757d;
}

.tone-neutral-solid {
  background-color: var(--bs-secondary); color: #ffffff;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: .1rem 0.3rem;
  border: 1px solid currentColor;
  border-radius: 10px;
  font-size: 0.75rem;
  font-weight: 500;
  cursor: default;
}

.meta-kpi {
  font-variant-numeric: tabular-nums;
}

code {
  color: unset;
  font-size: unset;
}

.modal {
  backdrop-filter: blur(5px);
}

input:disabled, textarea:disabled, select:disabled {
  cursor: not-allowed;
}

.form-label.required::after,
.form-label:has(+ input[required])::after,
.form-label:has(+ select[required])::after,
.form-label:has(+ textarea[required])::after,
.form-label:has(+ .input-group input[required])::after,
.form-label:has(+ .input-group select[required])::after,
.form-label:has(+ .input-group textarea[required])::after {
  content: ' *';
  color: var(--bs-danger, #dc3545);
  font-weight: 600;
}

.textarea {
  white-space: pre-wrap;
  word-wrap: break-word;
}

.opacity-70 {
  opacity: 0.70 !important;
}

.opacity-30 {
  opacity: 0.30 !important;
}

.product-card {
  font-size: .8rem;
}

.product-card .btn {
  font-size: .75rem !important;
  padding: .2rem !important;
}

.border-limit {
  border-color: #e0b311;
}

.text-limit {
  color: #e0b311;
}

.bg-limit {
  background-color: #e0b311;
}

.folder-item.active {
  background-color: var(--bs-primary);
}

.folder-item.active .h6 {
  color: #ffffff !important;
}

.folder-dropzone {
  min-height: 52px; /* hauteur fixe */
  display: flex;
  align-items: center;
  transition: all .15s ease-in-out;
}

/* Empêche Sortable de réserver de l’espace */
.sortable-ghost,
.sortable-fallback {
  display: none !important;
}

.folder-dropzone.folder-hover {
  background-color: rgba(120, 185, 40, 0.122);
  box-shadow: inset 0 0 0 2px rgba(120, 185, 40, 0.24);
}

.cursor-grab {
  cursor: grab;
}

.folder-dropzone:hover:not(.active) {
  background-color: rgba(120, 185, 40, 0.122);
  box-shadow: inset 0 0 0 2px rgba(120, 185, 40, 0.24);
}


@media screen and (max-width: 576px) {
  .searchform {
    width: 100%;
  }

  .brand .h5 {
    font-size: 1rem;
  }

  .brand .h6 {
    font-size:.75rem;
    font-weight: normal;
  }

  .nav-menu-btn {
    font-size: 1rem !important;
    padding-top: .15rem !important;
  }
}

@media screen and (min-width: 577px) {
  .searchform #query {
    min-width: 270px;
  }
}

a {
  text-decoration: none;;
}

@keyframes fadeInBlur {
  0% {
    opacity: 0;
  }
  100% {
    opacity: 1;
  }
}

.table-responsive {
  animation: fadeInBlur .3s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.fade-in {
  animation: fadeInBlur 1s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}