body {
  margin: 0;
  padding: 0;
  font-family: "Poppins", sans-serif;
  background-color: #313031;
}

.mobile-view {
  display: none;
}

.top-bar {
  display: none;
}

.top-bar {
  background: #181c18;
  border: 1px solid #181c18;
  align-items: center;
  justify-content: flex-end;
  padding: 20px;
  font-size: 20px;
  color: #fff;
  font-family: "Poppins", sans-serif;
  margin-bottom: 10px;
}

.layout-auth .top-bar,
.layout-app .top-bar {
  display: flex;
}

.layout-auth .top-bar,
.layout-app .top-bar {
  flex-direction: row-reverse;
  justify-content: space-between;
}

.top-bar .theme-icon {
  width: 24px;
  height: 24px;
  cursor: pointer;
}

/* Bascule jour/nuit dans la top-bar : NUIT (defaut) = soleil seul (pour revenir au jour) ; JOUR (.light-theme) = lune seule (pour passer en nuit).
   La regle "defaut" globale (.light-icon/.dark-icon) vit dans desktop_sidebar.css, NON charge par le layout de login
   -> on la pose ici (scopee .top-bar), valeurs identiques au global donc aucune regression cote espace connecte. */
.top-bar .light-icon { display: block; }
.top-bar .dark-icon { display: none; }
.light-theme .top-bar .light-icon { display: none; }
.light-theme .top-bar .dark-icon { display: block; }

/* Autofill background fix */
input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus,
textarea:-webkit-autofill,
select:-webkit-autofill {
  -webkit-box-shadow: 0 0 0 1000px #32323b inset !important;
  -webkit-text-fill-color: #ffffff !important;
  caret-color: #ffffff;
  transition: background-color 5000s ease-in-out 0s;
}

@media (max-width: 768px) {
  html {
    scrollbar-width: none;
  }

  html::-webkit-scrollbar {
    display: none;
  }

  .desktop-view {
    display: none;
  }

  .mobile-view {
    display: block;
  }

  .app-sidebar {
    display: none;
  }

  .app-header {
    display: none;
  }

  .app-layout {
    display: block;
    width: 100%;
    max-width: none;
    min-height: auto;
  }

  /* Mobile Back to Menu Bar */
  .mobile-back-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 5px 6px 0px;
    background: #181C18;
    border: 1px solid #181C18;
    border-radius: 5px;
    padding: 2px;
    padding-left: 5px;
    padding-right: 8px;
  }

  .mobile-back-bar .back-to-menu {
    background: transparent;
    border: none;
    padding: 0;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 5px;
    color: #fff;
    font-family: "Poppins", sans-serif;
    font-size: 8px;
    line-height: 140%;
    font-weight: 400;
  }

  .mobile-back-bar .back-to-menu img {
    width: 6px;
    height: auto;
    object-fit: contain;
  }

  .mobile-back-bar .close-page {
    background: transparent;
    border: none;
    padding: 0;
    cursor: pointer;
    font-size: 12px;
    font-weight: 400;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    /* width: 20px;
        height: 20px; */
  }

  .mobile-back-bar .close-page img {
    width: 14px;
    height: 14px;
  }

  /* top header */
  .top-bar {
    position: relative;
    display: block !important;
    margin: 6px 6px 0px;
    border-radius: 5px;
    padding: 8px 11px;
    padding-right: 46px;
  }

  .top-bar .theme-icon {
    position: absolute;
    width: 21px;
    height: 21px;
    top: 11px;
    right: 18px;
  }

  .top-bar .mobile-view {
    display: flex;
    justify-content: space-between;
    align-items: center;
  }

  .top-bar .mobile-logo {
    width: 100%;
    max-width: 96px;
    height: 26px;
    object-fit: contain;
  }

  .top-bar .top-title {
    display: none;
  }

  .top-bar .name_date p {
    margin-bottom: 0px;
    font-family: "Poppins", sans-serif;
    font-size: 8px;
    font-weight: 400;
    display: flex;
    align-items: center;
    color: #B4B4B4;
  }

  .top-bar .name_date p img {
    width: 10px;
    height: auto;
    margin-left: 5px;
  }

  .top-bar .name_date p span {
    color: #fff;
    font-family: "Poppins", sans-serif;
    font-size: 11px;
    font-weight: 400;
    line-height: 0;
  }

  .top-bar .name_date p.bottom-text {
    display: block;
    padding-top: 1px;
  }

  .layout-auth .top-bar .top-title {
    display: block !important;
    font-size: 8px;
    line-height: 125%;
  }

  .layout-auth .name_date {
    display: none !important;
  }

}

@media (max-width: 768px) and (min-width: 581px) {
  .layout-auth .top-bar .top-title {
    font-size: 12px;
  }
}