html,
body {
  height: 100%;
}
.toast-container {
    z-index: 2000 !important;
    top: 20px;
    right: 20px;
}
.toast i {
    color: white !important;
}

#sidebar {
  width: 220px;
  min-width: 220px;
   border-right: 1px solid #e9ecef33;
  display: flex;
  flex-direction: column;
  height: 100vh;
  position: fixed;
  top: 0;
  left: 0;
  z-index: 1045;
  transition: transform 0.25s ease;
}

/* Mobile: hidden off-screen */
@media (max-width: 991.98px) {
  #sidebar {
    transform: translateX(-100%);
  }
  #sidebar.sidebar-open {
    transform: translateX(0);
  }
  .main-wrap {
    margin-left: 0 !important;
  }
}
/* Desktop: always visible */
@media (min-width: 992px) {
  #sidebar {
    transform: translateX(0) !important;
  }
  #sidebar-backdrop {
    display: none !important;
  }
}

/* Backdrop */
#sidebar-backdrop {
  display: none;
  position: fixed;
  inset: 0;
 
  z-index: 1044;
}
#sidebar-backdrop.show {
  display: block;
}

.main-wrap {
  margin-left: 220px;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* ── Sidebar internals ── */
.sidebar-brand {
  padding: 14px 20px;
  
  flex-shrink: 0;
}
.sidebar-brand .brand-name {
  font-size: 15px;
  font-weight: 600;
  margin: 0;
}
.sidebar-brand .brand-sub {
  font-size: 11px;
  color: #adb5bd;
  margin: 0;
}
.sidebar-nav {
  flex: 1;
  overflow-y: auto;
  padding: 10px 8px;
}
.nav-section-label {
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #adb5bd;
  padding: 10px 12px 4px;
}
.sidebar-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  border-radius: 8px;
  font-size: 13.5px;
  color: #495057;
  text-decoration: none;
  transition: background 0.15s, color 0.15s;
}
.sidebar-link:hover {
  background: #f1f3f5;
  color: #212529;
}
.sidebar-link.active {
  background: #e7f1ff;
  color: #0d6efd;
  font-weight: 500;
}
.sidebar-link svg {
  flex-shrink: 0;
}
.sidebar-footer {
  
  padding: 10px 12px;
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}
.avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #dbeafe;
  color: #1d4ed8;
  font-size: 11px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

/* ── Top header ── */
.top-header {
 
  border-bottom: 1px solid #e9ecef33;
  padding: 10px 20px;
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}
.top-header h1 {
  font-size: 14px;
  font-weight: 600;
  margin: 0;
}
.hamburger {
  display: none;
}
@media (max-width: 991.98px) {
  .hamburger {
    display: inline-flex;
  }
}

.pagination svg {
  width: 14px;
  height: 14px;
}

.pagination {
  margin-bottom: 0;
}

.pagination .page-link {
  padding: 4px 8px;
  font-size: 12px;
}

.small-xxx {
  font-size: 10px;
}


.small-xx {
  font-size: 11px;
}

 .bd-placeholder-img {
        font-size: 1.125rem;
        text-anchor: middle;
        -webkit-user-select: none;
        -moz-user-select: none;
        user-select: none;
      }
      @media (min-width: 768px) {
        .bd-placeholder-img-lg {
          font-size: 3.5rem;
        }
      }
      .b-example-divider {
        width: 100%;
        height: 3rem;
        background-color: #0000001a;
        border: solid rgba(0, 0, 0, 0.15);
        border-width: 1px 0;
        box-shadow:
          inset 0 0.5em 1.5em #0000001a,
          inset 0 0.125em 0.5em #00000026;
      }
      .b-example-vr {
        flex-shrink: 0;
        width: 1.5rem;
        height: 100vh;
      }
      .bi {
        vertical-align: -0.125em;
        fill: currentColor;
      }
      .nav-scroller {
        position: relative;
        z-index: 2;
        height: 2.75rem;
        overflow-y: hidden;
      }
      .nav-scroller .nav {
        display: flex;
        flex-wrap: nowrap;
        padding-bottom: 1rem;
        margin-top: -1px;
        overflow-x: auto;
        text-align: center;
        white-space: nowrap;
        -webkit-overflow-scrolling: touch;
      }
      .btn-bd-primary {
        --bd-violet-bg: #712cf9;
        --bd-violet-rgb: 112.520718, 44.062154, 249.437846;
        --bs-btn-font-weight: 600;
        --bs-btn-color: var(--bs-white);
        --bs-btn-bg: var(--bd-violet-bg);
        --bs-btn-border-color: var(--bd-violet-bg);
        --bs-btn-hover-color: var(--bs-white);
        --bs-btn-hover-bg: #6528e0;
        --bs-btn-hover-border-color: #6528e0;
        --bs-btn-focus-shadow-rgb: var(--bd-violet-rgb);
        --bs-btn-active-color: var(--bs-btn-hover-color);
        --bs-btn-active-bg: #5a23c8;
        --bs-btn-active-border-color: #5a23c8;
      }
      .bd-mode-toggle {
        z-index: 1500;
      }
      .bd-mode-toggle .bi {
        width: 1em;
        height: 1em;
      }
      .bd-mode-toggle .dropdown-menu .active .bi {
        display: block !important;
      }