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

.alert-info {
  background-color: #d7f5fc;
  border-color: #b3edf9;
  color: #03c3ec;
  padding: 1.5em 1em 1em 2em;
}

.alert-dismissible .btn-close {
  position: absolute;
  top: .4em;
  right: 1em;
}

.alert-content {
  width: 91%;
}

.apexcharts-canvas,
.apexcharts-canvas *,
.apexcharts-tooltip,
.apexcharts-tooltip *,
.apexcharts-xaxistooltip,
.apexcharts-yaxistooltip {
  font-family: 'Public Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif !important;
}

.menu .app-brand.demo {
  margin-top: -0.8em;
}

.app-brand-logo.demo svg {
  width: 160px;
}

.app-brand-text.demo {
  font-size: 1.75rem;
  letter-spacing: -0.5px;
  text-transform: lowercase;
}

/* ! For .layout-navbar-fixed added fix padding top tpo .layout-page */
/* Detached navbar */
.layout-navbar-fixed .layout-wrapper:not(.layout-horizontal):not(.layout-without-menu) .layout-page {
  padding-top: 76px !important;
}

/* Default navbar */
.layout-navbar-fixed .layout-wrapper:not(.layout-without-menu) .layout-page {
  padding-top: 64px !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;
}

.rtl-only {
  display: none !important;
  text-align: left !important;
  direction: ltr !important;
}

[dir='rtl'] .rtl-only {
  display: block !important;
}

/*
* 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;
}


/* =========================
   TOPBAR PREMIUM UNIFIÉE
   ========================= */

.app-topbar {
  background: rgba(255, 255, 255, 0.78) !important;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 22px;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.07);
  padding: 0.75rem 1rem;
  min-height: 88px;
}

.app-topbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem 1.25rem;
  width: 100%;
}

.app-topbar__left {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  min-width: 0;
  flex: 1 1 auto;
}

.app-topbar__toggle {
  flex: 0 0 auto;
}

.app-topbar__toggle .nav-link {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #4b5563;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(15, 23, 42, 0.08);
  transition: background-color .18s ease, border-color .18s ease, color .18s ease, transform .18s ease;
}

.app-topbar__toggle .nav-link:hover {
  background: rgba(255, 255, 255, 0.96);
  border-color: rgba(15, 23, 42, 0.14);
  color: #111827;
}

.app-topbar__heading {
  min-width: 0;
}

.app-topbar__eyebrow {
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: #8a94a6;
  margin-bottom: .18rem;
  line-height: 1.1;
}

.app-topbar__title {
  margin: 0;
  font-size: 1.45rem;
  font-weight: 700;
  letter-spacing: -.03em;
  color: #383f48;
  line-height: 1.1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.app-topbar__right {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex: 0 0 auto;
}

.app-topbar__actions,
.app-topbar__mobile-actions {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.app-topbar__btn {
  min-height: 44px;
  padding: .68rem 1rem;
  border-radius: 14px !important;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .35rem;
  font-weight: 600;
  line-height: 1.1;
  white-space: nowrap;
  transition:
    transform .18s ease,
    box-shadow .18s ease,
    background-color .18s ease,
    border-color .18s ease,
    color .18s ease;
}

.app-topbar__btn i,
.app-topbar__btn .material-symbols-outlined {
  font-size: 1.05rem;
  line-height: 1;
}

.app-topbar__btn.btn-outline-secondary {
  background: rgba(255, 255, 255, 0.82) !important;
  border-color: rgba(15, 23, 42, 0.10) !important;
  color: #4b5563 !important;
}

.app-topbar__btn.btn-outline-secondary:hover,
.app-topbar__btn.btn-outline-secondary:focus {
  background: #fff !important;
  border-color: rgba(15, 23, 42, 0.16) !important;
  color: #111827 !important;
}

.app-topbar__btn.btn-primary,
.app-topbar__btn--primary {
  background: #383f48 !important;
  border-color: #383f48 !important;
  color: #fff !important;
  box-shadow: 0 10px 22px rgba(37, 50, 70, 0.16);
  padding-top: 0.6em;
}

.app-topbar__btn.btn-primary:hover,
.app-topbar__btn.btn-primary:focus,
.app-topbar__btn--primary:hover,
.app-topbar__btn--primary:focus {
  background: #1f2937 !important;
  border-color: #1f2937 !important;
  color: #fff !important;
}

.app-topbar__btn--icon {
  width: 44px;
  min-width: 44px;
  padding-left: 0;
  padding-right: 0;
}

.app-topbar__menu {
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 16px;
  box-shadow: 0 18px 48px rgba(15, 23, 42, 0.10);
  padding: .45rem;
}

.app-topbar__menu .dropdown-item {
  border-radius: 0;
  padding: .7rem .85rem;
  font-weight: 500;
  border: none !important;
}

.app-topbar__menu .dropdown-item:hover {
  background: rgba(15, 23, 42, 0.05);
  border-radius: 0.5rem;
}

/* Desktop large */
@media (min-width: 1200px) {
  .app-topbar {
    padding: 0.9rem 1.25rem;
  }
}

/* Tablette */
@media (max-width: 991.98px) {
  .app-topbar {
    min-height: 82px;
  }

  .app-topbar__title {
    font-size: 1.28rem;
  }

  .app-topbar__actions {
    gap: 0.5rem;
  }

  .app-topbar__btn {
    padding: .64rem .9rem;
  }
}

/* Mobile */
@media (max-width: 767.98px) {
  .app-topbar {
    padding: 0.8rem;
    min-height: auto;
  }

  .app-topbar__inner {
    align-items: flex-start;
  }

  .app-topbar__left {
    align-items: flex-start;
    gap: 0.75rem;
    min-width: 0;
  }

  .app-topbar__heading {
    padding-top: 0.1rem;
    min-width: 0;
  }

  .app-topbar__eyebrow {
    font-size: .66rem;
  }

  .app-topbar__title {
    font-size: 1.12rem;
    white-space: normal;
    line-height: 1.15;
  }

  .app-topbar__right {
    margin-left: auto;
  }

  .app-topbar__mobile-actions {
    gap: 0.45rem;
  }

  .app-topbar__toggle .nav-link,
  .app-topbar__btn,
  .app-topbar__btn--icon {
    height: 42px;
    min-height: 42px;
  }
}

/* Très petits écrans */
@media (max-width: 420px) {
  .app-topbar {
    border-radius: 18px;
    padding: 0.7rem;
  }

  .app-topbar__inner {
    gap: 0.75rem;
  }

  .app-topbar__left {
    gap: 0.6rem;
  }

  .app-topbar__title {
    font-size: 1rem;
  }
}

/* Les dropdown-item.btn-label-danger sont stylés dans perso.css (alignement, icônes) */