:root {
  --sidebar-width: 250px;
}

body {
  background-color: #f5f6f8;
}

/* --- Sidebar / layout --- */
#sidebar {
  width: var(--sidebar-width);
}

@media (min-width: 992px) {
  #sidebar {
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
    width: var(--sidebar-width);
    transform: none !important;
    visibility: visible !important;
    border-right: 1px solid #e3e6ea;
  }
  #sidebar .offcanvas-body {
    overflow-y: auto;
  }
  .main-content {
    margin-left: var(--sidebar-width);
  }
}

#sidebar .nav-link {
  color: #495057;
  border-radius: 0.375rem;
  padding: 0.55rem 0.85rem;
  font-size: 0.925rem;
}

#sidebar .nav-link:hover {
  background-color: #eef1f5;
}

#sidebar .nav-link.active {
  background-color: #0d6efd;
  color: #fff;
}

#sidebar .nav-section {
  color: #6c757d;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 1rem 0.85rem 0.3rem;
}

/* --- Cards / dashboard --- */
.stat-card .stat-icon {
  width: 48px;
  height: 48px;
  border-radius: 0.6rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
}
.stat-card .stat-value {
  font-size: 1.35rem;
  font-weight: 600;
}

.alert-fixed {
  z-index: 1050;
}

/* --- Tables --- */
.table thead th {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #6c757d;
  white-space: nowrap;
}
.table td {
  vertical-align: middle;
}

/* --- Forms --- */
.form-label {
  font-size: 0.875rem;
  font-weight: 500;
}

/* --- Print --- */
@media print {
  #sidebar,
  .no-print,
  .topbar {
    display: none !important;
  }
  .main-content {
    margin-left: 0 !important;
  }
  body {
    background-color: #fff;
  }
  .card {
    border: none !important;
    box-shadow: none !important;
  }
}