/* ── Admin Panel (Slide-in) ── */
.admin-overlay {
  position: fixed; top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.3);
  z-index: 400;
  opacity: 0; pointer-events: none; transition: opacity 0.2s;
}
.admin-overlay.open { opacity: 1; pointer-events: all; }
.admin-panel {
  position: fixed; top: 0; right: -600px; bottom: 0;
  width: 600px;
  background: var(--panel-bg);
  border-left: 1px solid var(--border);
  box-shadow: -4px 0 24px rgba(0,0,0,0.1);
  z-index: 401;
  display: flex; flex-direction: column;
  transition: right 0.25s ease;
  overflow: hidden;
}
.admin-panel.open { right: 0; }
.admin-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
}
.admin-title { font-size: 16px; font-weight: 600; color: var(--text-primary); }
.admin-close {
  background: none; border: none; font-size: 22px; cursor: pointer;
  color: var(--text-muted); padding: 0 4px; line-height: 1;
}
.admin-close:hover { color: var(--text-primary); }
.admin-body {
  display: flex; flex: 1; overflow: hidden; min-height: 0;
}
.admin-sidebar {
  width: 160px; flex-shrink: 0;
  background: var(--bg-secondary);
  border-right: 1px solid var(--border);
  padding: 8px 0;
  display: flex; flex-direction: column; gap: 2px;
}
.admin-nav {
  background: none; border: none; border-left: 3px solid transparent;
  text-align: left; padding: 10px 16px;
  font-size: 13px; color: var(--text-secondary);
  cursor: pointer; transition: background 0.15s;
}
.admin-nav:hover { background: var(--bg-tertiary); color: var(--text-primary); }
.admin-nav.active {
  border-left-color: var(--accent);
  background: var(--accent-light);
  color: var(--accent);
  font-weight: 600;
}
.admin-content {
  flex: 1; padding: 20px;
  overflow-y: auto; min-height: 0;
}
.admin-section-title {
  font-size: 15px; font-weight: 600; color: var(--text-primary);
  margin-bottom: 16px;
}
.admin-field-group {
  margin-bottom: 16px;
}
.admin-label {
  display: block; font-size: 12px; font-weight: 500;
  color: var(--text-secondary); margin-bottom: 4px;
}
.admin-content > .admin-field-group select,
.admin-content > .admin-field-group input[type="text"] {
  width: 100%;
}
.admin-add-row select, .admin-add-row input[type="text"] {
  flex: 1; width: auto; min-width: 0;
}
.admin-consultant-list {
  display: flex; flex-direction: column; gap: 4px;
  margin-bottom: 16px; min-height: 32px;
}
.admin-add-row {
  display: flex; gap: 8px; align-items: center; margin-bottom: 20px;
}
.admin-actions {
  display: flex; gap: 8px; align-items: center;
}
.admin-unsaved {
  font-size: 11px; color: #f39c12; font-style: italic;
}

/* ── Hours Allocation Admin ── */
.admin-alloc-row {
  display: flex; align-items: center; gap: 10px; margin-bottom: 12px;
}
.admin-alloc-row label {
  flex: 1; font-size: 13px; color: var(--text-primary);
}
.admin-alloc-row input[type="number"] {
  width: 70px; text-align: center;
}
.admin-alloc-remainder {
  font-size: 12px; color: var(--text-muted); padding: 8px 0;
  border-top: 1px solid var(--border-light); margin-top: 4px;
}
