/* Staff system documentation — dashboard manual */

.staff-manual {
  --manual-accent: #2563eb;
  --manual-accent-soft: #eff6ff;
  --manual-accent-warm: #ea580c;
  --manual-border: #e2e8f0;
  --manual-text: #1e293b;
  --manual-muted: #64748b;
  position: relative;
}

.staff-manual__hero {
  background: linear-gradient(135deg, #1e3a8a 0%, #2563eb 52%, #ea580c 100%);
  border-radius: 1.125rem;
  padding: 1.5rem 1.75rem 1.25rem;
  color: #fff;
  margin-bottom: 1.25rem;
  box-shadow: 0 16px 48px rgba(37, 99, 235, 0.22);
}

.staff-manual__hero-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 1rem;
}

.staff-manual__hero-copy {
  flex: 1 1 16rem;
  min-width: 0;
}

.staff-manual__hero-eyebrow {
  margin: 0 0 0.35rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  opacity: 0.88;
}

.staff-manual__hero-title {
  margin: 0 0 0.5rem;
  font-size: 1.55rem;
  font-weight: 800;
  line-height: 1.2;
}

.staff-manual__hero-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(5.5rem, 1fr));
  gap: 0.65rem;
  flex: 0 1 auto;
}

@media (max-width: 640px) {
  .staff-manual__hero-grid {
    grid-template-columns: 1fr;
  }
}

.staff-manual__hero-stat {
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(8px);
  border-radius: 0.75rem;
  padding: 1rem;
  text-align: center;
}

.staff-manual__hero-stat-value {
  display: block;
  font-size: 1.35rem;
  font-weight: 700;
  line-height: 1.2;
}

.staff-manual__hero-stat-label {
  display: block;
  font-size: 0.75rem;
  opacity: 0.85;
  margin-top: 0.25rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.staff-manual__hero-note {
  margin: 0;
  font-size: 0.9rem;
  opacity: 0.92;
  line-height: 1.5;
}

.staff-manual__hero-stat-value--date {
  font-size: 0.95rem;
}

.staff-manual__hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  padding-top: 0.85rem;
  border-top: 1px solid rgba(255, 255, 255, 0.18);
}

.staff-manual__hero-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.55rem 1rem;
  border-radius: 0.65rem;
  font-size: 0.875rem;
  font-weight: 600;
  text-decoration: none;
  transition: transform 0.15s, background 0.15s, border-color 0.15s;
}

.staff-manual__hero-btn--primary {
  background: #fff;
  color: #1d4ed8;
}

.staff-manual__hero-btn--primary:hover {
  transform: translateY(-1px);
  background: #f8fafc;
  color: #1e40af;
}

.staff-manual__hero-btn--ghost {
  background: transparent;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.45);
}

.staff-manual__hero-btn--ghost:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
}

.staff-manual__toolbar {
  position: sticky;
  top: 0;
  z-index: 20;
  margin: -0.25rem 0 1rem;
  opacity: 0;
  pointer-events: none;
  transform: translateY(-0.35rem);
  transition: opacity 0.2s, transform 0.2s;
}

.staff-manual__toolbar--visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.staff-manual__toolbar-inner {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.55rem 0.85rem;
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid var(--manual-border);
  border-radius: 999px;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.08);
  backdrop-filter: blur(8px);
}

.staff-manual__toolbar-label {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--manual-muted);
  white-space: nowrap;
}

.staff-manual__progress {
  flex: 1;
  height: 0.35rem;
  background: #e2e8f0;
  border-radius: 999px;
  overflow: hidden;
  min-width: 4rem;
}

.staff-manual__progress-bar {
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, #2563eb, #ea580c);
  border-radius: inherit;
  transition: width 0.15s linear;
}

.staff-manual__toolbar-pdf {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--manual-accent);
  text-decoration: none;
  padding: 0.25rem 0.55rem;
  border-radius: 999px;
  background: var(--manual-accent-soft);
}

.staff-manual__layout {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 1.75rem;
  align-items: start;
}

@media (max-width: 1024px) {
  .staff-manual__layout {
    grid-template-columns: 1fr;
  }
}

.staff-manual__toc {
  position: sticky;
  top: 1rem;
  background: #fff;
  border: 1px solid var(--manual-border);
  border-radius: 0.875rem;
  padding: 1.25rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
  max-height: calc(100vh - 6rem);
  overflow-y: auto;
}

@media (max-width: 1024px) {
  .staff-manual__toc {
    position: static;
    max-height: none;
  }
}

.staff-manual__toc-title {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--manual-muted);
  margin: 0 0 0.75rem;
}

.staff-manual__toc-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.staff-manual__toc-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
}

.staff-manual__toc-count {
  font-size: 0.68rem;
  color: var(--manual-muted);
  white-space: nowrap;
}

.staff-manual__toc-search {
  width: 100%;
  margin-bottom: 0.75rem;
  padding: 0.5rem 0.65rem;
  border: 1px solid var(--manual-border);
  border-radius: 0.55rem;
  font-size: 0.8125rem;
  background: #f8fafc;
}

.staff-manual__toc-search:focus {
  outline: 2px solid rgba(37, 99, 235, 0.25);
  border-color: var(--manual-accent);
  background: #fff;
}

.staff-manual__toc-link {
  display: flex;
  align-items: flex-start;
  gap: 0.55rem;
  padding: 0.45rem 0.55rem;
  border-radius: 0.55rem;
  font-size: 0.8125rem;
  color: var(--manual-text);
  text-decoration: none;
  transition: background 0.15s, color 0.15s;
  line-height: 1.35;
}

.staff-manual__toc-num {
  flex-shrink: 0;
  width: 1.35rem;
  height: 1.35rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: #f1f5f9;
  color: #64748b;
  font-size: 0.68rem;
  font-weight: 700;
}

.staff-manual__toc-link--active .staff-manual__toc-num,
.staff-manual__toc-link:hover .staff-manual__toc-num {
  background: rgba(255, 255, 255, 0.22);
  color: inherit;
}

.staff-manual__toc-text {
  flex: 1;
  min-width: 0;
}

.staff-manual__toc-link:hover {
  background: var(--manual-accent-soft);
  color: var(--manual-accent);
}

.staff-manual__toc-link--active {
  background: var(--manual-accent);
  color: #fff;
  font-weight: 600;
}

.staff-manual__content {
  min-width: 0;
}

.staff-manual__section {
  background: #fff;
  border: 1px solid var(--manual-border);
  border-radius: 1rem;
  padding: 0;
  margin-bottom: 1.35rem;
  box-shadow: 0 4px 20px rgba(15, 23, 42, 0.05);
  scroll-margin-top: 5rem;
  overflow: hidden;
}

.staff-manual__section-header {
  display: block;
  margin-bottom: 0;
  padding: 1.25rem 1.5rem 1rem;
  border-bottom: 1px solid var(--manual-border);
  background: linear-gradient(180deg, #fafbfc 0%, #fff 100%);
}

.staff-manual__section-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.75rem;
  height: 1.75rem;
  padding: 0 0.45rem;
  margin-bottom: 0.65rem;
  border-radius: 999px;
  background: linear-gradient(135deg, #2563eb, #ea580c);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 800;
}

.staff-manual__section-heading {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}

.staff-manual__section-body {
  padding: 1.25rem 1.5rem 1.5rem;
}

.staff-manual__section-icon {
  flex-shrink: 0;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 0.75rem;
  background: var(--manual-accent-soft);
  position: relative;
}

.staff-manual__section-icon::after {
  content: '';
  position: absolute;
  inset: 0.65rem;
  background: var(--manual-accent);
  mask-size: contain;
  mask-repeat: no-repeat;
  mask-position: center;
  -webkit-mask-size: contain;
  -webkit-mask-repeat: no-repeat;
  -webkit-mask-position: center;
}

.staff-manual__section-icon--overview::after {
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='white'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M12 6.253v13m0-13C10.832 5.477 9.246 5 7.5 5S4.168 5.477 3 6.253v13C4.168 18.477 5.754 18 7.5 18s3.332.477 4.5 1.253m0-13C13.168 5.477 14.754 5 16.5 5c1.747 0 3.332.477 4.5 1.253v13C19.832 18.477 18.247 18 16.5 18c-1.746 0-3.332.477-4.5 1.253'/%3E%3C/svg%3E");
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='white'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M12 6.253v13m0-13C10.832 5.477 9.246 5 7.5 5S4.168 5.477 3 6.253v13C4.168 18.477 5.754 18 7.5 18s3.332.477 4.5 1.253m0-13C13.168 5.477 14.754 5 16.5 5c1.747 0 3.332.477 4.5 1.253v13C19.832 18.477 18.247 18 16.5 18c-1.746 0-3.332.477-4.5 1.253'/%3E%3C/svg%3E");
}

.staff-manual__section-icon--roles::after,
.staff-manual__section-icon--users::after {
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='white'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M15 19.128a9.38 9.38 0 002.625.372 9.337 9.337 0 004.121-.952 4.125 4.125 0 00-7.533-2.493M15 19.128v-.003c0-1.113-.285-2.16-.786-3.07M15 19.128v.106A12.318 12.318 0 018.624 21c-2.331 0-4.512-.645-6.374-1.766l-.001-.109a6.375 6.375 0 0111.964-3.07M12 6.375a3.375 3.375 0 11-6.75 0 3.375 3.375 0 016.75 0zm8.25 2.25a2.625 2.625 0 11-5.25 0 2.625 2.625 0 015.25 0z'/%3E%3C/svg%3E");
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='white'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M15 19.128a9.38 9.38 0 002.625.372 9.337 9.337 0 004.121-.952 4.125 4.125 0 00-7.533-2.493M15 19.128v-.003c0-1.113-.285-2.16-.786-3.07M15 19.128v.106A12.318 12.318 0 018.624 21c-2.331 0-4.512-.645-6.374-1.766l-.001-.109a6.375 6.375 0 0111.964-3.07M12 6.375a3.375 3.375 0 11-6.75 0 3.375 3.375 0 016.75 0zm8.25 2.25a2.625 2.625 0 11-5.25 0 2.625 2.625 0 015.25 0z'/%3E%3C/svg%3E");
}

.staff-manual__section-icon--navigation::after {
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='white'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M9 20l-5.447-2.724A1 1 0 013 16.382V5.618a1 1 0 011.447-.894L9 7m0 13l6-3m-6 3V7m6 10l4.553 2.276A1 1 0 0021 18.382V7.618a1 1 0 00-.553-.894L15 4m0 13V4m0 0L9 7'/%3E%3C/svg%3E");
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='white'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M9 20l-5.447-2.724A1 1 0 013 16.382V5.618a1 1 0 011.447-.894L9 7m0 13l6-3m-6 3V7m6 10l4.553 2.276A1 1 0 0021 18.382V7.618a1 1 0 00-.553-.894L15 4m0 13V4m0 0L9 7'/%3E%3C/svg%3E");
}

.staff-manual__section-icon--create::after,
.staff-manual__section-icon--manage::after {
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='white'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M12 4.5v15m7.5-7.5h-15'/%3E%3C/svg%3E");
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='white'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M12 4.5v15m7.5-7.5h-15'/%3E%3C/svg%3E");
}

.staff-manual__section-icon--bulk::after {
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='white'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M3.375 19.5h17.25m-17.25 0a1.125 1.125 0 01-1.125-1.125M3.375 19.5h7.5c.621 0 1.125-.504 1.125-1.125m-9.75 0V5.625m0 0A1.125 1.125 0 015.625 4.5h12.75a1.125 1.125 0 011.125 1.125m-18.75 0V9.375m0 0A1.125 1.125 0 015.625 8.25h12.75'/%3E%3C/svg%3E");
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='white'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M3.375 19.5h17.25m-17.25 0a1.125 1.125 0 01-1.125-1.125M3.375 19.5h7.5c.621 0 1.125-.504 1.125-1.125m-9.75 0V5.625m0 0A1.125 1.125 0 015.625 4.5h12.75a1.125 1.125 0 011.125 1.125m-18.75 0V9.375m0 0A1.125 1.125 0 015.625 8.25h12.75'/%3E%3C/svg%3E");
}

.staff-manual__section-icon--qa::after {
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='white'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M9 12.75L11.25 15 15 9.75m-3-7.036A11.959 11.959 0 013.598 6 11.99 11.99 0 003 9.749c0 5.592 3.824 10.29 9 11.623 5.176-1.332 9-6.03 9-11.622 0-1.31-.21-2.571-.598-3.751h-.152c-3.196 0-6.1-1.248-8.25-3.285z'/%3E%3C/svg%3E");
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='white'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M9 12.75L11.25 15 15 9.75m-3-7.036A11.959 11.959 0 013.598 6 11.99 11.99 0 003 9.749c0 5.592 3.824 10.29 9 11.623 5.176-1.332 9-6.03 9-11.622 0-1.31-.21-2.571-.598-3.751h-.152c-3.196 0-6.1-1.248-8.25-3.285z'/%3E%3C/svg%3E");
}

.staff-manual__section-icon--reports::after {
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='white'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M3 13.125C3 12.504 3.504 12 4.125 12h2.25c.621 0 1.125.504 1.125 1.125v6.75C7.5 20.496 6.996 21 6.375 21h-2.25A1.125 1.125 0 013 19.875v-6.75zM9.75 8.625c0-.621.504-1.125 1.125-1.125h2.25c.621 0 1.125.504 1.125 1.125v11.25c0 .621-.504 1.125-1.125 1.125h-2.25a1.125 1.125 0 01-1.125-1.125V8.625zM16.5 4.125c0-.621.504-1.125 1.125-1.125h2.25C20.496 3 21 3.504 21 4.125v15.75c0 .621-.504 1.125-1.125 1.125h-2.25a1.125 1.125 0 01-1.125-1.125V4.125z'/%3E%3C/svg%3E");
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='white'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M3 13.125C3 12.504 3.504 12 4.125 12h2.25c.621 0 1.125.504 1.125 1.125v6.75C7.5 20.496 6.996 21 6.375 21h-2.25A1.125 1.125 0 013 19.875v-6.75zM9.75 8.625c0-.621.504-1.125 1.125-1.125h2.25c.621 0 1.125.504 1.125 1.125v11.25c0 .621-.504 1.125-1.125 1.125h-2.25a1.125 1.125 0 01-1.125-1.125V8.625zM16.5 4.125c0-.621.504-1.125 1.125-1.125h2.25C20.496 3 21 3.504 21 4.125v15.75c0 .621-.504 1.125-1.125 1.125h-2.25a1.125 1.125 0 01-1.125-1.125V4.125z'/%3E%3C/svg%3E");
}

.staff-manual__section-icon--feedback::after,
.staff-manual__section-icon--notifications::after {
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='white'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M7.5 8.25h9m-9 3H12m-9.75 1.51c0 1.6 1.123 2.994 2.707 3.227 1.129.166 2.27.293 3.423.379.35.026.67.21.865.501L12 21l2.755-4.133a1.14 1.14 0 01.865-.501 48.172 48.172 0 003.423-.379c1.584-.233 2.707-1.626 2.707-3.228V6.741c0-1.602-1.123-2.995-2.707-3.228A48.394 48.394 0 0012 3c-2.392 0-4.744.175-7.043.513C3.373 3.746 2.25 5.14 2.25 6.741v6.018Z'/%3E%3C/svg%3E");
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='white'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M7.5 8.25h9m-9 3H12m-9.75 1.51c0 1.6 1.123 2.994 2.707 3.227 1.129.166 2.27.293 3.423.379.35.026.67.21.865.501L12 21l2.755-4.133a1.14 1.14 0 01.865-.501 48.172 48.172 0 003.423-.379c1.584-.233 2.707-1.626 2.707-3.228V6.741c0-1.602-1.123-2.995-2.707-3.228A48.394 48.394 0 0012 3c-2.392 0-4.744.175-7.043.513C3.373 3.746 2.25 5.14 2.25 6.741v6.018Z'/%3E%3C/svg%3E");
}

.staff-manual__section-icon--resources::after,
.staff-manual__section-icon--public::after,
.staff-manual__section-icon--workflows::after,
.staff-manual__section-icon--faq::after,
.staff-manual__section-icon--support::after {
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='white'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M13.19 8.688a4.5 4.5 0 011.242 7.244l-4.5 4.5a4.5 4.5 0 01-6.364-6.364l1.757-1.757m13.35-.622l1.757-1.757a4.5 4.5 0 00-6.364-6.364l-4.5 4.5a4.5 4.5 0 001.242 7.244'/%3E%3C/svg%3E");
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='white'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M13.19 8.688a4.5 4.5 0 011.242 7.244l-4.5 4.5a4.5 4.5 0 01-6.364-6.364l1.757-1.757m13.35-.622l1.757-1.757a4.5 4.5 0 00-6.364-6.364l-4.5 4.5a4.5 4.5 0 001.242 7.244'/%3E%3C/svg%3E");
}

.staff-manual__section-title {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--manual-text);
  margin: 0 0 0.25rem;
  line-height: 1.25;
}

.staff-manual__section-summary {
  margin: 0;
  font-size: 0.875rem;
  color: var(--manual-muted);
}

.staff-manual__lead {
  font-size: 1.05rem;
  color: #334155;
  line-height: 1.65;
  margin: 0 0 1rem;
}

.staff-manual__h3 {
  font-size: 1rem;
  font-weight: 700;
  color: #0f172a;
  margin: 1.25rem 0 0.5rem;
}

.staff-manual__p {
  margin: 0 0 0.75rem;
  color: #475569;
  line-height: 1.65;
}

.staff-manual__list {
  margin: 0 0 1rem;
  padding-left: 1.25rem;
  color: #475569;
}

.staff-manual__list li {
  margin: 0.35rem 0;
  line-height: 1.55;
}

.staff-manual__steps {
  list-style: none;
  margin: 0 0 1rem;
  padding: 0;
}

.staff-manual__step {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  padding: 1rem;
  background: #f8fafc;
  border-radius: 0.75rem;
  margin-bottom: 0.65rem;
  border: 1px solid var(--manual-border);
}

.staff-manual__step-num {
  flex-shrink: 0;
  width: 2rem;
  height: 2rem;
  background: var(--manual-accent);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.875rem;
}

.staff-manual__step-title {
  display: block;
  font-weight: 600;
  color: var(--manual-text);
  margin-bottom: 0.2rem;
}

.staff-manual__step-text {
  margin: 0;
  font-size: 0.875rem;
  color: var(--manual-muted);
  line-height: 1.55;
}

.staff-manual__workflow {
  background: linear-gradient(180deg, #f8fafc 0%, #fff 100%);
  border: 1px solid var(--manual-border);
  border-radius: 0.875rem;
  padding: 1.25rem;
  margin: 0.75rem 0 1rem;
}

.staff-manual__workflow-step {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.staff-manual__workflow-badge {
  flex-shrink: 0;
  width: 1.75rem;
  height: 1.75rem;
  background: var(--manual-accent);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 700;
}

.staff-manual__workflow-label {
  font-size: 0.9rem;
  color: var(--manual-text);
  font-weight: 500;
}

.staff-manual__workflow-arrow {
  text-align: center;
  color: #94a3b8;
  font-size: 1.1rem;
  padding: 0.25rem 0 0.25rem 0.5rem;
}

.staff-manual__table-wrap {
  overflow-x: auto;
  margin: 0.75rem 0 1rem;
  border-radius: 0.75rem;
  border: 1px solid var(--manual-border);
}

.staff-manual__table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.8125rem;
}

.staff-manual__table th {
  background: linear-gradient(180deg, #1e40af, #2563eb);
  color: #fff;
  text-align: left;
  padding: 0.65rem 0.85rem;
  font-weight: 600;
  white-space: nowrap;
}

.staff-manual__table td {
  padding: 0.6rem 0.85rem;
  border-top: 1px solid var(--manual-border);
  color: #475569;
  vertical-align: top;
}

.staff-manual__table tbody tr:hover {
  background: #fafafa;
}

.staff-manual__callout {
  border-radius: 0.75rem;
  padding: 1rem 1.15rem;
  margin: 1rem 0;
  border-left: 4px solid var(--manual-accent);
  background: var(--manual-accent-soft);
}

.staff-manual__callout--tip {
  border-color: #10b981;
  background: #ecfdf5;
}

.staff-manual__callout--warning {
  border-color: #f59e0b;
  background: #fffbeb;
}

.staff-manual__callout-title {
  display: block;
  font-weight: 700;
  color: var(--manual-text);
  margin-bottom: 0.35rem;
}

.staff-manual__callout p {
  margin: 0;
  font-size: 0.875rem;
  color: #475569;
  line-height: 1.55;
}

.staff-manual__faq {
  margin: 0.5rem 0 1rem;
}

.staff-manual__faq-item {
  border: 1px solid var(--manual-border);
  border-radius: 0.65rem;
  margin-bottom: 0.5rem;
  overflow: hidden;
}

.staff-manual__faq-item summary {
  padding: 0.85rem 1rem;
  font-weight: 600;
  cursor: pointer;
  background: #f8fafc;
  list-style: none;
}

.staff-manual__faq-item summary::-webkit-details-marker {
  display: none;
}

.staff-manual__faq-item[open] summary {
  border-bottom: 1px solid var(--manual-border);
  color: var(--manual-accent);
}

.staff-manual__faq-item p {
  margin: 0;
  padding: 0.85rem 1rem;
  font-size: 0.875rem;
  color: #475569;
  line-height: 1.6;
}

.staff-manual__footer {
  padding: 0 0 1.5rem;
}

.staff-manual__footer-card {
  text-align: center;
  padding: 1.75rem 1.25rem;
  border-radius: 1rem;
  border: 1px dashed #cbd5e1;
  background: linear-gradient(180deg, #f8fafc, #fff);
  color: var(--manual-muted);
  font-size: 0.8125rem;
}

.staff-manual__footer-title {
  margin: 0 0 0.35rem;
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--manual-text);
}

.staff-manual__footer-pdf {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  margin-top: 0.85rem;
  padding: 0.55rem 1rem;
  border-radius: 0.65rem;
  color: #fff;
  background: linear-gradient(135deg, #2563eb, #1d4ed8);
  font-weight: 600;
  text-decoration: none;
}

.staff-manual__footer-pdf:hover {
  color: #fff;
  filter: brightness(1.05);
}

.staff-manual__back-top {
  position: fixed;
  right: 1.25rem;
  bottom: 1.25rem;
  z-index: 30;
  width: 2.5rem;
  height: 2.5rem;
  border: none;
  border-radius: 999px;
  background: #1e293b;
  color: #fff;
  font-size: 1.1rem;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.25);
  transition: transform 0.15s, background 0.15s, opacity 0.2s, visibility 0.2s;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.staff-manual__back-top--visible,
.public-system-manual .staff-manual__back-top:focus-visible {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.staff-manual__back-top:hover {
  transform: translateY(-2px);
  background: #2563eb;
}

.staff-manual__export-btn svg {
  flex-shrink: 0;
}

.staff-manual__figure {
  margin: 1.25rem 0 1.5rem;
  border: 1px solid var(--manual-border);
  border-radius: 0.875rem;
  overflow: hidden;
  background: #f8fafc;
  box-shadow: 0 4px 16px rgba(15, 23, 42, 0.06);
}

.staff-manual__figure-img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 520px;
  object-fit: contain;
  object-position: top center;
  background: #fff;
}

.staff-manual__figure-caption {
  padding: 0.75rem 1rem;
  font-size: 0.8125rem;
  color: var(--manual-muted);
  line-height: 1.5;
  border-top: 1px solid var(--manual-border);
  background: #fff;
}

.staff-manual__figure-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  margin: 1rem 0 1.5rem;
}

@media (max-width: 768px) {
  .staff-manual__figure-grid {
    grid-template-columns: 1fr;
  }
}

.staff-manual__figure--grid .staff-manual__figure-img {
  max-height: 280px;
}

.staff-manual__training-card {
  border: 1px solid var(--manual-border);
  border-radius: 0.875rem;
  padding: 1.15rem 1.25rem;
  margin-bottom: 0.85rem;
  background: linear-gradient(180deg, #fafbfc 0%, #fff 100%);
}

.staff-manual__training-card-title {
  font-weight: 700;
  color: var(--manual-text);
  margin: 0 0 0.35rem;
  font-size: 0.95rem;
}

.staff-manual__training-card p {
  margin: 0;
  font-size: 0.875rem;
  color: var(--manual-muted);
  line-height: 1.55;
}

@media print {
  .staff-manual__toc,
  .staff-manual__hero,
  .staff-manual__footer,
  .staff-manual__toolbar,
  .staff-manual__back-top {
    display: none !important;
  }

  .staff-manual__layout {
    display: block;
  }

  .staff-manual__section {
    page-break-inside: avoid;
    box-shadow: none;
  }
}
