:root {
  --sidebar-bg: #0f172a;
  --sidebar-width: 240px;
  --accent: #f59e0b;
  --accent-hover: #d97706;
  --body-bg: #f1f5f9;
}

body {
  background: var(--body-bg);
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
}

#sidebar {
  width: var(--sidebar-width);
  min-height: 100vh;
  background: var(--sidebar-bg);
  color: #e2e8f0;
  position: sticky;
  top: 0;
  height: 100vh;
  overflow-y: auto;
  z-index: 1000;
}

#sidebar .brand-link { color: #e2e8f0; }

#sidebar .nav-link {
  color: #94a3b8;
  border-radius: 8px;
  padding: .5rem .75rem;
  font-size: .9rem;
}

#sidebar .nav-link:hover,
#sidebar .nav-link.active {
  background: rgba(245,158,11,.12);
  color: #f59e0b;
}

.text-accent { color: var(--accent) !important; }

#content {
  min-height: 100vh;
  max-width: 1280px;
  min-width: 0; /* flex items default to min-width:auto — see site5's own app.css for the full writeup */
}

#wrapper { min-height: 100vh; }

.card { border: 0; border-radius: 12px; box-shadow: 0 1px 3px rgba(0,0,0,.08), 0 4px 12px rgba(0,0,0,.04); }
.card-header { background: #fff; border-bottom: 1px solid #e2e8f0; border-radius: 12px 12px 0 0 !important; padding: 1rem 1.25rem; }

.btn-accent { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn-accent:hover { background: var(--accent-hover); border-color: var(--accent-hover); color: #fff; }

.sidebar-toggle {
  position: fixed;
  top: .75rem;
  left: .75rem;
  z-index: 1100;
  background: var(--sidebar-bg);
  color: #e2e8f0;
  border: 0;
}

@media (max-width: 991px) {
  #sidebar { position: fixed; left: -260px; top: 0; }
  #sidebar.open { left: 0; box-shadow: 4px 0 24px rgba(0,0,0,.3); }
  #content { padding-top: 3.5rem !important; }
}

@media (max-width: 575.98px) {
  .d-flex.justify-content-between.align-items-center { flex-wrap: wrap; row-gap: .75rem; }
}

.row > * { min-width: 0; }

.pcr-section { border-left: 4px solid var(--accent); padding-left: 1rem; margin-bottom: 1.5rem; }
.pcr-section-title { font-size: .75rem; text-transform: uppercase; letter-spacing: .08em; color: #64748b; font-weight: 600; margin-bottom: .75rem; }

.table th { font-size: .8rem; text-transform: uppercase; letter-spacing: .05em; color: #64748b; font-weight: 600; background: #f8fafc; border-bottom: 2px solid #e2e8f0; }
.table td { vertical-align: middle; }
