/* Demo-only additions on top of the real base.css */
.demo-banner {
  background: #0A1C2B; color: #99F6E4; font-size: 12px; font-weight: 500;
  text-align: center; padding: 7px 16px; letter-spacing: .01em;
}
.demo-credit { padding: 16px; font-size: 11px; color: var(--sidebar-sub); border-top: 1px solid rgba(255,255,255,.06); line-height: 1.5; }
.demo-credit a { color: #99F6E4; text-decoration: none; }
.demo-credit a:hover { text-decoration: underline; }

.row-link { cursor: pointer; }
.row-link:hover td { background: var(--thead-bg); }
.row-link a { color: inherit; text-decoration: none; }

.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; max-width: 100%; }
.kpi-table th, .kpi-table td { white-space: nowrap; }
.kpi-table td:first-child { white-space: normal; min-width: 200px; }
.grid-2 > *, .card, .stat-grid > * { min-width: 0; }

.demo-toast {
  position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 20px);
  background: #0A1C2B; color: #fff; font-size: 13px; padding: 12px 18px; border-radius: 10px;
  box-shadow: 0 10px 30px rgba(10,28,43,.3); opacity: 0; pointer-events: none;
  transition: opacity .2s, transform .2s; z-index: 1000; max-width: calc(100vw - 32px);
}
.demo-toast.show { opacity: 1; transform: translate(-50%, 0); }

.demo-login-note { font-size: 12px; color: var(--text-muted); background: var(--accent-bg); border-radius: 8px; padding: 10px 12px; margin-bottom: 16px; }

/* Phones and small tablets: sidebar becomes a top bar */
@media (max-width: 800px) {
  .app-shell { flex-direction: column; }
  .sidebar { width: 100%; min-height: 0; position: static; }
  .sidebar-logo { padding: 14px 16px; }
  .sidebar-nav { flex-direction: row; overflow-x: auto; padding: 8px 10px; gap: 4px; }
  .nav-item { white-space: nowrap; padding: 8px 10px; }
  .demo-credit { display: none; }
  .topbar { padding-left: 16px; padding-right: 16px; }
  .topbar-right > span:not(.role-chip) { display: none; }
  .page-content { padding: 20px 16px 48px; }
  .page-content h1 { font-size: 26px !important; }
}

/* Dashboard: give Department Performance room so the table never scrolls */
.grid-dash { grid-template-columns: minmax(0, 1.75fr) minmax(0, 1fr); }
.grid-dash table th, .grid-dash table td { padding-left: 10px; padding-right: 10px; }
.grid-dash .mix-bar { width: 64px; margin-left: 8px; }
@media (max-width: 1200px) { .grid-dash { grid-template-columns: 1fr; } }
