:root {
  --erp-primary: #1f3a5f;
  --erp-primary-dark: #142943;
  --erp-accent: #2f7d5f;
  --erp-bg: #f4f6f8;
  --erp-sidebar-width: 240px;
}

body {
  background: var(--erp-bg);
  font-family: -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}

.app-topbar {
  background: var(--erp-primary-dark);
  height: 56px;
  position: sticky;
  top: 0;
  z-index: 1030;
}

.app-shell {
  display: flex;
  min-height: calc(100vh - 56px);
}

.app-sidebar {
  width: var(--erp-sidebar-width);
  background: var(--erp-primary);
  flex-shrink: 0;
  padding: 12px 0 40px;
  overflow-y: auto;
}

.app-sidebar .nav-link {
  color: rgba(255,255,255,0.85);
  padding: 9px 18px;
  font-size: 0.92rem;
  border-left: 3px solid transparent;
}

.app-sidebar .nav-link:hover {
  background: rgba(255,255,255,0.08);
  color: #fff;
}

.app-sidebar .nav-link.active {
  background: rgba(255,255,255,0.14);
  border-left-color: var(--erp-accent);
  color: #fff;
  font-weight: 600;
}

.app-sidebar .nav-link.disabled {
  color: rgba(255,255,255,0.35);
  cursor: default;
}

.app-sidebar .nav-section-title {
  color: rgba(255,255,255,0.5);
  text-transform: uppercase;
  font-size: 0.7rem;
  letter-spacing: 0.05em;
  padding: 16px 18px 4px;
}

.app-content {
  flex: 1;
  padding: 22px 26px 60px;
  min-width: 0;
}

.card-stat {
  border: none;
  border-radius: 10px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.08);
}

.card-stat .stat-value {
  font-size: 1.6rem;
  font-weight: 700;
}

.table thead th {
  background: #eef1f4;
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  color: #55606b;
  border-bottom: none;
}

.login-wrapper {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(160deg, var(--erp-primary-dark), var(--erp-primary));
}

.login-card {
  width: 380px;
  border: none;
  border-radius: 12px;
}

@media (max-width: 991px) {
  .app-sidebar {
    position: fixed;
    left: -260px;
    top: 56px;
    bottom: 0;
    transition: left 0.2s ease;
    z-index: 1020;
  }
  body.sidebar-open .app-sidebar {
    left: 0;
  }
}
