/* Monix Admin — only what Bootstrap utilities don't cover */
[x-cloak] { display: none !important; }

body { background-color: #f5f6f8; }

/* Layout: side menu + content */
:root { --sidebar-width: 250px; --sidebar-bg: #1e2530; }

.admin-shell { display: flex; min-height: 100vh; }
.admin-main { flex: 1 1 auto; min-width: 0; }

.sidebar { --bs-offcanvas-width: var(--sidebar-width); background-color: var(--sidebar-bg) !important; color: #fff; }
.sidebar .offcanvas-header { border-bottom: 1px solid rgba(255, 255, 255, .1); }
.sidebar-brand { font-size: 1.15rem; font-weight: 600; color: #fff; }
.sidebar-logo { width: 30px; height: 30px; border-radius: .4rem; box-shadow: 0 0 0 1px rgba(255, 255, 255, .15); }
.sidebar-section { font-size: .7rem; text-transform: uppercase; letter-spacing: .06em; color: rgba(255, 255, 255, .4); }
.sidebar .nav-link { color: rgba(255, 255, 255, .7); border-radius: .375rem; padding: .5rem .75rem; }
.sidebar .nav-link:hover { color: #fff; background-color: rgba(255, 255, 255, .08); }
.sidebar .nav-link.active { color: #fff; background-color: var(--bs-primary); }
.sidebar-user { border-top: 1px solid rgba(255, 255, 255, .1); }
.topbar { background-color: var(--sidebar-bg); }

@media (min-width: 992px) {
  /* Bootstrap's offcanvas-lg sets the body to flex-grow: 0 on desktop: make it fill the
     sidebar so the session block (mt-auto) sits at the bottom */
  .sidebar { width: var(--sidebar-width); flex-shrink: 0; position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; }
  .sidebar .offcanvas-body { flex-grow: 1; overflow-y: auto; }
}

.min-w-0 { min-width: 0; }
.status-dot { width: .45rem; height: .45rem; display: inline-block; }

.kpi-card .kpi-icon {
  width: 2.5rem; height: 2.5rem;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: .5rem; font-size: 1.15rem;
}
.kpi-card .kpi-value { font-size: 1.35rem; font-weight: 600; line-height: 1.2; }

.chart-box { position: relative; height: 300px; }
.chart-box.chart-box-sm { height: 260px; }
.chart-overlay {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  background-color: var(--bs-body-bg);
}

.table > :not(caption) > * > * { vertical-align: middle; }
.text-truncate-200 { max-width: 200px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
