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

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

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

.app-brand-logo.demo {
  -ms-flex-align: center;
  align-items: center;
  -ms-flex-pack: center;
  justify-content: center;
  display: -ms-flexbox;
  display: flex;
  width: 34px;
  height: 24px;
}

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

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

/* ! For .layout-navbar-fixed added fix padding top tpo .layout-page */
.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: 78px !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;
}

/* Econique app logo */
.app-brand-link .app-brand-banner {
  display: block;
  width: auto;
  margin: 0 auto;
  object-fit: contain;
  object-position: center center;
}

.app-brand-banner--sidebar {
  height: 42px;
  max-width: calc(100% - 2.5rem);
}

.app-brand-banner--navbar {
  height: 44px;
  max-width: 240px;
}

.app-brand-banner--auth {
  height: 54px;
  max-width: 300px;
}

.menu-vertical .app-brand.demo {
  justify-content: center;
  position: relative;
  margin: 0 1rem !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
}

.menu-vertical .app-brand.demo .app-brand-link {
  flex: 1 1 auto;
  width: 100%;
  justify-content: center;
  padding-right: 2.25rem; /* room for collapse toggle (right: 1rem) */
  box-sizing: border-box;
}

.menu-vertical .app-brand.demo .layout-menu-toggle {
  position: absolute;
  right: 1rem;
}

.layout-navbar .app-brand.demo {
  align-items: center;
  justify-content: center;
}

.layout-navbar .app-brand.demo .app-brand-link {
  justify-content: center;
}

.authentication-wrapper .app-brand {
  display: flex;
  justify-content: center;
}

.authentication-wrapper .app-brand .app-brand-link {
  justify-content: center;
}

.app-brand-icon {
  height: 38px;
  width: 38px;
  margin: 0 auto;
  object-fit: contain;
  object-position: center center;
}

.layout-menu-collapsed:not(.layout-menu-hover) .layout-menu .app-brand.demo {
  justify-content: center;
  padding-left: 0;
  padding-right: 0;
  margin-left: 0 !important;
  margin-right: 0 !important;
}

.layout-menu-collapsed:not(.layout-menu-hover) .layout-menu .app-brand.demo .app-brand-link {
  width: 100%;
  justify-content: center;
  margin-left: 0 !important;
  margin-right: 0 !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
}

.layout-menu-collapsed:not(.layout-menu-hover) .layout-menu .app-brand.demo .app-brand-icon {
  display: block;
  margin-left: auto;
  margin-right: auto;
}

.layout-menu-collapsed:not(.layout-menu-hover) .layout-menu .app-brand.demo .layout-menu-toggle {
  display: none;
}

/* Sidebar / horizontal menu profile card */
.menu-vertical {
  display: flex;
  flex-direction: column;
}

.menu-vertical .menu-inner {
  flex: 1 1 auto;
  min-height: 0;
}

.menu-profile-card {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  margin: 0.75rem 1rem 1rem;
  padding: 0.625rem 0.75rem;
  border-radius: 0.75rem;
  background: rgba(105, 108, 255, 0.12);
  flex-shrink: 0;
}

.menu-profile-card__main {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  min-width: 0;
  flex: 1 1 auto;
  text-decoration: none;
  color: inherit;
}

.menu-profile-card__main:hover {
  color: inherit;
}

.menu-profile-card__avatar {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
  background: rgba(105, 108, 255, 0.16);
  display: flex;
  align-items: center;
  justify-content: center;
}

.menu-profile-card__avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.menu-profile-card__initials {
  font-size: 0.875rem;
  font-weight: 600;
  color: #696cff;
}

.menu-profile-card__meta {
  display: flex;
  flex-direction: column;
  min-width: 0;
  line-height: 1.25;
}

.menu-profile-card__name {
  font-size: 0.9375rem;
  font-weight: 600;
  color: #566a7f;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.menu-profile-card__username {
  font-size: 0.8125rem;
  color: #a1acb8;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.menu-profile-card__logout-form {
  margin: 0;
  flex-shrink: 0;
}

.menu-profile-card__logout {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  padding: 0;
  border: 0;
  background: transparent;
  color: #696cff;
  border-radius: 0.5rem;
  cursor: pointer;
}

.menu-profile-card__logout:hover {
  background: rgba(105, 108, 255, 0.16);
  color: #5f61e6;
}

.menu-profile-card__logout i {
  font-size: 1.25rem;
}

.layout-menu-collapsed:not(.layout-menu-hover) .menu-profile-card {
  margin-left: 0.5rem;
  margin-right: 0.5rem;
  padding: 0.5rem;
  justify-content: center;
}

.layout-menu-collapsed:not(.layout-menu-hover) .menu-profile-card__meta,
.layout-menu-collapsed:not(.layout-menu-hover) .menu-profile-card__logout-form {
  display: none;
}

.layout-menu-collapsed:not(.layout-menu-hover) .menu-profile-card__main {
  justify-content: center;
}

.menu-horizontal .menu-profile-card {
  margin: 0;
  min-width: 14rem;
  max-width: 18rem;
}

.menu-horizontal .menu-profile-card-wrap {
  align-items: center;
}

/* Navbar width */
.layout-content-navbar .layout-page > #layout-navbar.layout-navbar {
  width: 98% !important;
  max-width: 98% !important;
  margin-left: auto !important;
  margin-right: auto !important;
}

/* Content width (layout-page-inner) */
.layout-content-navbar .layout-page .content-wrapper > .layout-page-inner,
.layout-content-navbar .layout-page .content-wrapper > #layout-page-inner {
  width: 98% !important;
  max-width: 98% !important;
  margin-left: auto !important;
  margin-right: auto !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
  padding-bottom: 16px !important;
  box-sizing: border-box !important;
}

.layout-content-navbar .layout-page .content-wrapper {
  width: 100%;
}

/* Full-height content card (direct child of layout-page-inner only,
   so nested dashboard grid cards are unaffected) */
.layout-content-navbar .layout-page .content-wrapper > .layout-page-inner.container-p-y,
.layout-content-navbar .layout-page .content-wrapper > #layout-page-inner.container-p-y {
  display: flex;
  flex-direction: column;
}

.layout-content-navbar .layout-page .content-wrapper > .layout-page-inner.container-p-y > .card,
.layout-content-navbar .layout-page .content-wrapper > #layout-page-inner.container-p-y > .card {
  height: 100%;
  flex-grow: 1;
}

@media (max-width: 991.98px) {
  .layout-content-navbar .layout-page .content-wrapper > .layout-page-inner,
  .layout-content-navbar .layout-page .content-wrapper > #layout-page-inner {
    padding-left: 0 !important;
    padding-right: 0 !important;
  }
}

/* DataTables: scroll body fills viewport height, rows scroll inside */
:root {
  --dt-scroll-body-offset: 20rem;
}

.dataTables_scroll {
  width: 100%;
}

.dataTables_scrollBody {
  height: calc(100vh - var(--dt-scroll-body-offset)) !important;
  max-height: calc(100vh - var(--dt-scroll-body-offset)) !important;
  overflow-y: auto !important;
}

@media (max-width: 991.98px) {
  :root {
    --dt-scroll-body-offset: 18rem;
  }
}

/*
 * Brand palette — laravel_eparking
 * primary #597bdc | secondary #5f93df | accent #749ae5
 ******************************************************************************/
:root {
  --bs-primary: #597bdc;
  --bs-primary-rgb: 89, 123, 220;
  --bs-secondary: #5f93df;
  --bs-secondary-rgb: 95, 147, 223;
  --brand-accent: #749ae5;
  --brand-accent-rgb: 116, 154, 229;
}

.btn-secondary {
  background-color: #5f93df !important;
  border-color: #5f93df !important;
  color: #fff !important;
  box-shadow: 0 0.125rem 0.25rem rgba(95, 147, 223, 0.4) !important;
}

.btn-secondary:hover,
.btn-secondary:focus,
.btn-secondary:active,
.btn-secondary.active,
.show > .btn-secondary.dropdown-toggle {
  background-color: #597bdc !important;
  border-color: #597bdc !important;
  color: #fff !important;
}

.btn-secondary.disabled,
.btn-secondary:disabled {
  background-color: #5f93df !important;
  border-color: #5f93df !important;
}

.btn-label-secondary {
  background-color: rgba(95, 147, 223, 0.16) !important;
  color: #5f93df !important;
  border-color: transparent !important;
}

.bg-label-secondary {
  background-color: rgba(95, 147, 223, 0.16) !important;
  color: #5f93df !important;
}

.badge.bg-secondary {
  background-color: #5f93df !important;
}

.menu-item.active > .menu-link:not(.menu-toggle),
.menu-item.active > .menu-link.menu-toggle,
.menu-vertical .menu-item.active > .menu-link:not(.menu-toggle)::before {
  color: #597bdc !important;
}

.form-check-input:checked {
  background-color: #597bdc !important;
  border-color: #597bdc !important;
}

.form-check-input:focus {
  border-color: #749ae5 !important;
  box-shadow: 0 0 0 0.15rem rgba(116, 154, 229, 0.35) !important;
}

.page-item.active .page-link,
.pagination .page-item.active .page-link {
  background-color: #597bdc !important;
  border-color: #597bdc !important;
}

.nav-pills .nav-link.active,
.nav-pills .show > .nav-link {
  background-color: #597bdc !important;
}

a {
  --bs-link-color-rgb: 89, 123, 220;
  --bs-link-hover-color-rgb: 74, 106, 200;
}

.bg-label-primary {
  background-color: rgba(89, 123, 220, 0.16) !important;
  color: #597bdc !important;
}

.btn-label-primary {
  background-color: rgba(89, 123, 220, 0.16) !important;
  color: #597bdc !important;
}

.progress-bar.bg-primary,
.bg-primary {
  background-color: #597bdc !important;
}

.text-primary {
  color: #597bdc !important;
}

.border-primary {
  border-color: #597bdc !important;
}

/* Soft accent utility */
.text-brand-accent {
  color: #749ae5 !important;
}

.bg-brand-accent {
  background-color: #749ae5 !important;
}

.bg-label-brand-accent {
  background-color: rgba(116, 154, 229, 0.16) !important;
  color: #749ae5 !important;
}

