/*
* demo.css
* File include item demo only specific css only
******************************************************************************/

.menu .app-brand.demo {
  height: 64px;
}

.app-brand-logo.demo svg {
  width: 34px;
  height: 24px;
}

.app-brand-text.demo {
  font-size: 1.375rem;
}

/* ! For .layout-navbar-fixed added fix padding top to .layout-page */
/* Default navbar */
.layout-navbar-fixed .layout-wrapper:not(.layout-without-menu) .layout-page {
  padding-top: 64px !important;
}
.layout-navbar-fixed .layout-wrapper:not(.layout-horizontal):not(.layout-without-menu) .layout-page {
  padding-top: 72px !important;
}
/* Navbar page z-index issue solution */
.content-wrapper .navbar {
  z-index: auto;
}

/*
* Content
******************************************************************************/

.demo-blocks > * {
  display: block !important;
}

.demo-inline-spacing > * {
  margin: 1rem 0.375rem 0 0 !important;
}

/* ? .demo-vertical-spacing class is used to have vertical margins between elements. To remove margin-top from the first-child, use .demo-only-element class with .demo-vertical-spacing class. For example, we have used this class in forms-input-groups.html file. */
.demo-vertical-spacing > * {
  margin-top: 1rem !important;
  margin-bottom: 0 !important;
}
.demo-vertical-spacing.demo-only-element > :first-child {
  margin-top: 0 !important;
}

.demo-vertical-spacing-lg > * {
  margin-top: 1.875rem !important;
  margin-bottom: 0 !important;
}
.demo-vertical-spacing-lg.demo-only-element > :first-child {
  margin-top: 0 !important;
}

.demo-vertical-spacing-xl > * {
  margin-top: 5rem !important;
  margin-bottom: 0 !important;
}
.demo-vertical-spacing-xl.demo-only-element > :first-child {
  margin-top: 0 !important;
}

/* Dropdown buttons going out of small screens */
@media (max-width: 576px) {
  #dropdown-variation-demo .btn-group .text-truncate {
    width: 254px;
    position: relative;
  }
  #dropdown-variation-demo .btn-group .text-truncate::after {
    position: absolute;
    top: 45%;
    right: 0.65rem;
  }
}

/*
* Layout demo
******************************************************************************/

.layout-demo-wrapper {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
  -ms-flex-direction: column;
  flex-direction: column;
  margin-top: 1rem;
}
.layout-demo-placeholder img {
  width: 900px;
}
.layout-demo-info {
  text-align: center;
  margin-top: 1rem;
}

/*
* App tables — Vuexy / Core.css alignment
******************************************************************************/

.content-wrapper .card > .table-responsive,
.content-wrapper .card-body > .table-responsive {
  margin-inline: 0;
}

.content-wrapper .table-responsive.text-nowrap {
  overflow-x: auto;
}

.content-wrapper table.table {
  margin-bottom: 0;
  vertical-align: middle;
}

.content-wrapper table.table thead,
.content-wrapper table.table .thead-light {
  --bs-table-color: var(--bs-heading-color);
  --bs-table-bg: var(--bs-paper-bg);
  --bs-table-border-color: var(--bs-border-color);
}

.content-wrapper table.table thead tr th,
.content-wrapper table.table .thead-light tr th {
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.2px;
  text-transform: uppercase;
  color: var(--bs-heading-color);
  background-color: var(--bs-paper-bg);
  border-bottom-width: var(--bs-border-width);
  white-space: nowrap;
}

.content-wrapper table.table tbody tr td {
  color: var(--bs-body-color);
}

.content-wrapper table.table.table-bordered {
  border: var(--bs-border-width) solid var(--bs-border-color);
}

.content-wrapper table.table.table-bordered > :not(caption) > * > * {
  border-width: 0 var(--bs-border-width);
}

.content-wrapper .card .table-responsive + nav,
.content-wrapper .card .table-responsive + .card-footer,
.content-wrapper .card-body .table-responsive + nav {
  padding: 1rem 1.5rem;
  border-top: var(--bs-border-width) solid var(--bs-border-color);
}

/* Legacy Argon badge classes → Vuexy label badges */
.badge.bg-primary-light,
.badge.badge-primary-light {
  background-color: color-mix(in sRGB, var(--bs-paper-bg) var(--bs-bg-label-tint-amount), var(--bs-primary)) !important;
  color: var(--bs-primary) !important;
}

.badge.bg-secondary-light,
.badge.badge-secondary-light {
  background-color: color-mix(in sRGB, var(--bs-paper-bg) var(--bs-bg-label-tint-amount), var(--bs-secondary)) !important;
  color: var(--bs-secondary) !important;
}

.badge.bg-success-light,
.badge.badge-success-light {
  background-color: color-mix(in sRGB, var(--bs-paper-bg) var(--bs-bg-label-tint-amount), var(--bs-success)) !important;
  color: var(--bs-success) !important;
}

.badge.bg-info-light,
.badge.badge-info-light {
  background-color: color-mix(in sRGB, var(--bs-paper-bg) var(--bs-bg-label-tint-amount), var(--bs-info)) !important;
  color: var(--bs-info) !important;
}

.badge.bg-warning-light,
.badge.badge-warning-light {
  background-color: color-mix(in sRGB, var(--bs-paper-bg) var(--bs-bg-label-tint-amount), var(--bs-warning)) !important;
  color: var(--bs-warning) !important;
}

.badge.bg-danger-light,
.badge.badge-danger-light {
  background-color: color-mix(in sRGB, var(--bs-paper-bg) var(--bs-bg-label-tint-amount), var(--bs-danger)) !important;
  color: var(--bs-danger) !important;
}

.badge.bg-dark-light,
.badge.badge-dark-light {
  background-color: color-mix(in sRGB, var(--bs-paper-bg) var(--bs-bg-label-tint-amount), var(--bs-dark)) !important;
  color: var(--bs-dark) !important;
}

.content-wrapper .table .dropdown .btn.btn-icon-only,
.content-wrapper .table .dropdown .btn.p-0 {
  box-shadow: none;
  color: var(--bs-secondary-color);
  min-width: 1.5rem;
  min-height: 1.5rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.content-wrapper .table .dropdown .btn.p-0:hover,
.content-wrapper .table .dropdown .btn.p-0:focus,
.content-wrapper .table .dropdown .btn.p-0.show {
  color: var(--bs-heading-color);
}

.content-wrapper .table .dropdown-menu .dropdown-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.content-wrapper .table .dropdown-menu .dropdown-item > i,
.content-wrapper .table .dropdown-menu .dropdown-item > .icon-base {
  width: 1.25rem;
  font-size: 1rem;
  text-align: center;
  opacity: 0.9;
}

.content-wrapper .table .dropdown-menu .dropdown-item > i:not([class*='me-']) {
  margin-inline-end: 0.25rem;
}

.content-wrapper .table .form-check-input,
.content-wrapper .table input[type='checkbox'] {
  width: 1.125rem;
  height: 1.125rem;
  margin-top: 0;
  vertical-align: middle;
}

/* Keep Vuexy switches as pills inside tables (do not square them). */
.content-wrapper .table .form-switch .form-check-input {
  width: 2em;
  height: 1.2em;
  border-radius: 2em;
  margin-top: 0;
}
.nav-pills .nav-link{
  height: 46px;

}
.nav-pills .nav-link.active, .nav-pills .show > .nav-link {
  background-color: rgba(var(--bs-primary-rgb), 0.1);
  box-shadow: none !important;
  color: var(--bs-primary);
}
[data-bs-theme="dark"] .nav-pills .nav-link.active, [data-bs-theme="dark"] .nav-pills .show > .nav-link  , [data-bs-theme="dark"] .nav-pills .nav-link:hover {
  background-color: rgba(255, 255, 255);
}

/*
* Mobile dual-column navigation (main rail + sub-menu panel)
******************************************************************************/
@media (max-width: 1199.98px) {
  .layout-horizontal #layout-sub-menu:not(.mobile-sub-menu-panel) {
    display: none;
  }

  #layout-sub-menu.mobile-sub-menu-panel {
    display: none;
  }

  html.layout-menu-expanded #layout-sub-menu.mobile-sub-menu-panel {
    display: flex;
    flex-direction: column;
    position: fixed;
    inset-block: 0;
    inset-inline-start: 4.375rem;
    inset-inline-end: 0;
    z-index: 1100;
    margin: 0;
    background-color: var(--bs-paper-bg);
    border-inline-start: 1px solid var(--bs-border-color);
    transform: translate3d(0, 0, 0);
    transition: transform 0.3s ease;
    will-change: transform;
    visibility: visible;
    pointer-events: auto;
    width: calc(100% - 70px)!important;

  }

  html.layout-menu-expanded #layout-sub-menu.mobile-sub-menu-panel .mobile-sub-menu-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    min-block-size: 3.5rem;
    padding-block: 0.75rem;
    padding-inline: 1rem;
    border-bottom: 1px solid var(--bs-border-color);
    flex-shrink: 0;
    order: 0;
  }

  html.layout-menu-expanded #layout-sub-menu.mobile-sub-menu-panel .mobile-sub-menu-shell {
    flex: 1 1 auto;
    min-block-size: 0;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    order: 1;
  }

  html.layout-menu-expanded #layout-sub-menu.mobile-sub-menu-panel .menu-horizontal-wrapper,
  html.layout-menu-expanded #layout-sub-menu.mobile-sub-menu-panel .menu-horizontal-prev,
  html.layout-menu-expanded #layout-sub-menu.mobile-sub-menu-panel .menu-horizontal-next {
    display: none !important;
  }

  html.layout-menu-expanded #layout-sub-menu.mobile-sub-menu-panel .menu-inner {
    display: flex;
    flex-direction: column;
    inline-size: 100% !important;
    overflow: visible;
    flex: 1 1 auto;
    min-block-size: 0;
    margin-inline: 0 !important;
    padding-block: 0.5rem;
  }

  html.layout-menu-expanded #layout-sub-menu.mobile-sub-menu-panel .menu-inner > .menu-item {
    inline-size: 100%;

  }

  html.layout-menu-expanded #layout-sub-menu.mobile-sub-menu-panel .menu-sub {
    position: static !important;
    inline-size: 100% !important;
    box-shadow: none !important;
    display: none;
  }

  html.layout-menu-expanded #layout-sub-menu.mobile-sub-menu-panel .menu-item.open > .menu-sub {
    display: block;
  }

  html.layout-menu-expanded #layout-menu.mobile-main-menu-rail .mobile-menu-brand .app-brand-link {
    justify-content: center;
  }

  html.layout-menu-expanded #layout-menu.mobile-main-menu-rail .mobile-menu-brand .app-brand-logo img {
    max-inline-size: 1.75rem;
    block-size: auto;
  }

  html.layout-menu-expanded #layout-menu.layout-menu.mobile-main-menu-rail {
    inline-size: 4.375rem;
    max-inline-size: 4.375rem;
    background-color: var(--bs-gray-50);
    border-inline-end: 1px solid var(--bs-border-color);
    box-shadow: none;
    display: flex;
    flex-direction: column;
  }

  html.layout-menu-expanded #layout-menu.mobile-main-menu-rail > div {
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    min-block-size: 0;
    overflow: hidden;
  }

  html.layout-menu-expanded #layout-menu.mobile-main-menu-rail .menu-inner {
    flex: 1 1 auto;
    min-block-size: 0;
    overflow-y: auto !important;
    display: flex;
    flex-direction: column;
    inline-size: 100% !important;
    margin-inline: 0 !important;
  }

  html.layout-menu-expanded #layout-menu.mobile-main-menu-rail .menu-inner > .menu-item > .menu-link .menu-icon {
    color: var(--bs-heading-color);
  }

  html.layout-menu-expanded #layout-menu.mobile-main-menu-rail .menu-inner > .menu-item.active > .menu-link .menu-icon,
  html.layout-menu-expanded #layout-menu.mobile-main-menu-rail .menu-inner > .menu-item > .menu-link:hover .menu-icon {
    color: var(--bs-primary);
  }

  html.layout-menu-expanded #layout-menu.mobile-main-menu-rail .menu-horizontal-wrapper {
    display: none !important;
  }

  [data-bs-theme="dark"] html.layout-menu-expanded #layout-menu.layout-menu.mobile-main-menu-rail {
    background-color: color-mix(in sRGB, var(--bs-paper-bg) 92%, var(--bs-base-color));
  }

  html.layout-menu-expanded #layout-menu.mobile-main-menu-rail .mobile-menu-brand {
    justify-content: center;
    padding-block: 1rem;
    padding-inline: 0.75rem;
    border-bottom: 1px solid var(--bs-border-color);
  }

  html.layout-menu-expanded #layout-menu.mobile-main-menu-rail .mobile-menu-brand .layout-menu-toggle {
    display: none !important;
  }

  html.layout-menu-expanded #layout-menu.mobile-main-menu-rail .menu-inner > .menu-item {
   border-radius: 0;
  }
  html.layout-menu-expanded #layout-menu.mobile-main-menu-rail .menu-inner > .menu-item > .menu-link  {
    margin: 0.5rem ;
    border-radius: 0;
  }

  html.layout-menu-expanded #layout-menu.mobile-main-menu-rail .menu-inner > .menu-item > .menu-link > i {
    margin: 0.5rem ;
  }
  html.layout-menu-expanded #layout-menu.mobile-main-menu-rail .menu-inner > .menu-item > .menu-link {
    justify-content: start;
    padding-inline: 0.75rem;
    border-radius: 0.5rem;
    block-size: 2.75rem;
  }



  html.layout-menu-expanded #layout-menu.mobile-main-menu-rail .menu-inner > .menu-item.active > .menu-link,
  html.layout-menu-expanded #layout-menu.mobile-main-menu-rail .menu-inner > .menu-item > .menu-link:hover {
    background-color: rgba(var(--bs-primary-rgb));
    color: #fff!important;
    border-radius: 0;
  }
  html.layout-menu-expanded #layout-menu.mobile-main-menu-rail .menu-inner > .menu-item.active > .menu-link > i
{
  color: #fff!important;
}
html.layout-menu-expanded #layout-menu.mobile-main-menu-rail .menu-item.active > .menu-link:not(.menu-toggle)
{
  background-color: rgba(var(--bs-primary-rgb)) !important;

}

  html.layout-menu-expanded #layout-sub-menu.mobile-sub-menu-panel .menu-inner {
    overflow-y: auto !important;
  }

  html.layout-menu-expanded #layout-sub-menu .mobile-sub-menu-title {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--bs-heading-color);
  }

  html.layout-menu-expanded #layout-sub-menu.mobile-sub-menu-panel .menu-inner > .menu-item > .menu-link {
    padding-block: 0.625rem;
    padding-inline: 1rem;
  }

  html.layout-menu-expanded #layout-sub-menu .menu-inner > .menu-item.active > .menu-link {
    color: var(--bs-primary);
  }

  html.layout-menu-expanded #layout-sub-menu.mobile-sub-menu-panel .menu-sub .menu-link {
    padding-inline-start: 2rem;
  }

  html.layout-menu-expanded #layout-sub-menu.mobile-sub-menu-panel .menu-sub .menu-link::before {
    display: inline-block;
  }

  html.layout-menu-expanded #layout-sub-menu.mobile-sub-menu-panel .menu-item.border-end {
    width: auto !important;
    border: 0 !important;
    padding-inline-end: 0 !important;
    margin-inline: 1rem;
  }

  html.layout-menu-expanded:not(.has-mobile-sub-menu) #layout-menu.layout-menu.mobile-main-menu-rail {
    inline-size: min(18rem, 88vw);
    max-inline-size: min(18rem, 88vw);
  }

  html.layout-menu-expanded:not(.has-mobile-sub-menu) #layout-menu.mobile-main-menu-rail .menu-inner > .menu-item > .menu-link > div {
    display: block;
  }

  html.layout-menu-expanded:not(.has-mobile-sub-menu) #layout-menu.mobile-main-menu-rail .menu-inner > .menu-item > .menu-link {
    justify-content: flex-start;
    gap: 0.75rem;
    block-size: auto;
    min-block-size: 2.75rem;
  }
  html.layout-menu-expanded #layout-sub-menu.mobile-sub-menu-panel .menu-item.active > .menu-link:not(.menu-toggle){
    background-color: rgba(var(--bs-primary-rgb), 0.4)!important;
    color: #fff!important;
   }
   html.layout-menu-expanded #layout-sub-menu.mobile-sub-menu-panel .menu-item.active > .menu-link:not(.menu-toggle) > i{
    color: #fff!important;
   }
}


.content-wrapper table.table thead tr th, .content-wrapper table.table .thead-light tr th

 {
    font-size: 0.8125rem;
    font-weight: 500;
    letter-spacing: 0.2px;
    text-transform: uppercase;
    color: #ffffff;
    background-color: #233446;
    border-bottom-width: var(--bs-border-width);
    white-space: nowrap;
}
.btn-text-secondary,.btn.dropdown-toggle{
 background-color:rgba(162, 162, 162, 0.14) !important;
 padding:  0.5rem !important;
}

/* Offcanvas form panels */
.offcanvas.offcanvas-form {
  --bs-offcanvas-width: min(720px, 100vw);
}

.offcanvas.offcanvas-form-wide {
  --bs-offcanvas-width: min(960px, 100vw);
}

.offcanvas.offcanvas-form-sm {
  --bs-offcanvas-width: min(420px, 100vw);
}

.offcanvas.offcanvas-form .offcanvas-header {
  border-bottom: 1px solid var(--bs-border-color);
  padding-block: 1.25rem;
}

.offcanvas.offcanvas-form > form {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  min-height: 0;
  height: 100%;
}

.offcanvas.offcanvas-form > form .offcanvas-body {
  flex: 1 1 auto;
  overflow-y: auto;
}

.offcanvas.offcanvas-form .offcanvas-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  flex-shrink: 0;
  padding: 1rem 1.5rem;
  border-top: 1px solid var(--bs-border-color);
  background-color: var(--bs-paper-bg, var(--bs-body-bg));
}
/* Overlay must live on a wrapper — ::after never paints on <img> */
.img-display-box {
  position: relative;
  display: inline-block;
  overflow: hidden;
  border-radius: 0.5rem;
  cursor: pointer;
}

.img-display {
  display: block;
  object-fit: cover;
  border-radius: 0.5rem;
  border: 1px solid var(--bs-border-color);
  background-color: var(--bs-paper-bg, var(--bs-body-bg));
}

.img-display-box:has(.rounded-circle) {
  border-radius: 50%;
}

.img-display-box:has(.imgInput)::after {
  content: "✎ Modifier l'image";
  position: absolute;
  inset: 0;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem;
  color: #fff;
  font-size: 0.75rem;
  font-weight: 500;
  line-height: 1.25;
  text-align: center;
  background-color: rgba(5, 10, 67, 0.55);
  opacity: 0;
  transition: opacity 0.2s ease;
  pointer-events: none;
  border-radius: 0.5rem;
}

.img-display-box:has(.imgInput):hover::after {
  opacity: 1;
}
.navbar-brand-img{
  height: 20px !important;
}

.sms-badge{
  padding-block-start: 1.25rem !important;
  padding-block-end: 1.25rem !important;
  padding-inline-end: 2rem !important;
  padding-inline-start: 2rem !important;
}

/* Dropzone */
.dropzone-container {
    border: 2px dashed #ccc;
    border-radius: 5px;
    padding: 20px;
    text-align: center;
    cursor: pointer;
    transition: background-color 0.2s, border-color 0.2s;
    position: relative;
}

.dropzone-container:hover,
.dropzone-container.dragover {
    background-color: #f8f9fa;
    border-color: #007bff;
}

.dropzone-content {
    pointer-events: none;
}

#layout-menu .menu-inner > .menu-item > .menu-link 
{
  font-family: 'Space Grotesk', sans-serif !important;
  letter-spacing: 0.05em !important;
}

tr:has(input[type="checkbox"]:checked) {
  background-color: rgba(var(--bs-primary-rgb), 0.1);
}
tr:hover {
  background-color: rgba(var(--bs-success-rgb), 0.1) !important;
}

.day-item:hover, .day-item.active {
  border: 1px solid rgba(var(--bs-primary-rgb));

  background: rgba(var(--bs-primary-rgb), 0.4);
}
 .day-item.active {
  background: rgba(var(--bs-primary-rgb), 1);
  color: #fff;
}

.day-item {
  height: 35px !important;
  width: 45px !important;
  padding: 5px;
  border: 1px solid #5a5e62;
  color: #5a5e62;
  font-size: 12px;
  border-radius: 50px;
  cursor: pointer;
  margin-right: 5px;
  margin-bottom: 3px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
}
.day-item input[type="checkbox"]{
  display: none;
}

.layout-navbar .navbar-dropdown .badge-notifications {
  inset-block-start: 1px !important;
  inset-inline-end: -6px !important;
}

.dropdown-item:has(i.tabler-trash) {
  color: var(--bs-danger) !important;
}