:root {
  --psims-sidebar-width: 248px;
  --psims-accent: #0b5ed7;
  --psims-surface: #f5f7fa;
  --psims-border: #dfe4ea;
}

body {
  background: var(--psims-surface);
  min-height: 100vh;
}

.skip-link {
  position: absolute;
  left: 0.5rem;
  top: 0.5rem;
  z-index: 1100;
}

.app-shell {
  min-height: 100vh;
  align-items: stretch;
}

.sidebar {
  width: var(--psims-sidebar-width);
  flex: 0 0 var(--psims-sidebar-width);
  position: sticky;
  top: 0;
  height: 100vh;
  background: #fff;
  border-right: 1px solid var(--psims-border);
}

.sidebar-brand {
  display: flex;
  align-items: center;
  border-bottom: 1px solid var(--psims-border);
}

.sidebar-nav {
  padding-bottom: 1rem;
}

.nav-group-label {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #6c757d;
  padding: 0.9rem 1rem 0.3rem;
}

.sidebar .nav-link,
.offcanvas .nav-link {
  color: #334155;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.45rem 1rem;
  border-radius: 0;
}

.sidebar .nav-link:hover,
.offcanvas .nav-link:hover {
  background: #eef4fb;
}

.sidebar .nav-link.active,
.offcanvas .nav-link.active {
  background: #e7f0fd;
  color: var(--psims-accent);
  font-weight: 600;
}

.main-column {
  min-width: 0;
}

.topbar {
  background: #fff;
  border-bottom: 1px solid var(--psims-border);
  min-height: 56px;
  position: sticky;
  top: 0;
  z-index: 1020;
}

.demo-banner {
  background: #fff8e1;
  border-bottom: 1px solid #ffe08a;
  color: #5c4500;
}

.card {
  border-color: var(--psims-border);
}

.stat-card {
  border-left: 4px solid var(--psims-accent);
}

.stat-card.stat-danger {
  border-left-color: #dc3545;
}

.stat-card.stat-warning {
  border-left-color: #fd7e14;
}

.stat-card .card-body {
  position: relative;
}

.stat-card .stat-value {
  font-size: 1.6rem;
  font-weight: 600;
  line-height: 1.2;
}

.stat-icon {
  position: absolute;
  right: 1rem;
  top: 1rem;
  font-size: 1.4rem;
  color: #adb5bd;
}

.chart-box {
  position: relative;
  height: 260px;
}

.login-page {
  background: linear-gradient(135deg, #e7f0fd 0%, #f5f7fa 100%);
}

.login-card {
  max-width: 460px;
}

.table > :not(caption) > * > * {
  vertical-align: middle;
}

.dataTables_wrapper .dt-search input,
.dataTables_wrapper .dt-length select {
  margin-left: 0.25rem;
}
