.internal-sop-sheet {
  --bs-offcanvas-width: min(640px, 100vw) !important;
  width: min(640px, 100vw) !important;
  max-width: 100vw !important;
  height: 100vh !important;
  border-left: 1px solid rgba(15, 23, 42, 0.08) !important;
  background: #f6f8fb !important;
  color: #111827 !important;
  box-shadow: -18px 0 44px rgba(15, 23, 42, 0.18) !important;
  overflow-y: auto !important;
  overflow-x: hidden !important;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-y: contain;
  z-index: 1056 !important;
}

.internal-sop-sheet-header {
  padding: 1.2rem 1.4rem !important;
  border-bottom: 1px solid rgba(15, 23, 42, 0.08) !important;
  background: linear-gradient(180deg, rgba(46, 49, 146, 0.08) 0%, rgba(255, 255, 255, 0.98) 100%) !important;
}

.internal-sop-kicker {
  margin-bottom: 0.35rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #2e3192;
}

.internal-sop-heading-row {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.internal-sop-hero-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3rem;
  height: 3rem;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(46, 49, 146, 0.14) 0%, rgba(46, 49, 146, 0.05) 100%);
  color: #2e3192;
  font-size: 1.15rem;
}

.internal-sop-sheet-body {
  padding: 1.4rem !important;
  background: #f6f8fb !important;
}

.internal-sop-topline {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.internal-resource-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.internal-resource-tab-btn {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.65rem;
  min-height: 2.5rem;
  padding: 0.55rem 0.95rem;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  color: #374151;
  font-size: 0.9rem;
  font-weight: 600;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.internal-resource-tab-btn:hover,
.internal-resource-tab-btn:focus-visible {
  color: #2e3192;
  border-color: rgba(46, 49, 146, 0.18);
  background: rgba(46, 49, 146, 0.05);
  box-shadow: 0 6px 18px rgba(46, 49, 146, 0.08);
}

.internal-resource-tab-btn.active {
  color: #2e3192;
  border-color: rgba(46, 49, 146, 0.24);
  background: rgba(46, 49, 146, 0.08);
}

.internal-resource-tab-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.65rem;
  min-height: 1.65rem;
  padding-inline: 0.4rem;
  border-radius: 999px;
  background: rgba(46, 49, 146, 0.08);
  color: #2e3192;
  font-size: 0.78rem;
  font-weight: 700;
}

.internal-sop-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  min-height: 2.15rem;
  padding: 0.45rem 0.85rem;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  color: #374151;
  font-size: 0.82rem;
  font-weight: 600;
}

.internal-sop-chip i {
  color: #2e3192;
}

.internal-sop-card {
  padding: 1.1rem 1.15rem;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 14px;
  background: #ffffff;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.04);
}

.internal-sop-card-accent {
  background: linear-gradient(180deg, rgba(255, 255, 255, 1) 0%, rgba(46, 49, 146, 0.03) 100%);
}

.internal-sop-card-title {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 0.9rem;
  font-weight: 700;
  color: #111827;
}

.internal-sop-card-title i {
  color: #2e3192;
}

.internal-sop-copy {
  color: #4b5563;
  line-height: 1.6;
}

.internal-sop-list {
  display: grid;
  gap: 0.9rem;
}

.internal-sop-item {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
}

.internal-sop-item-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  border-radius: 10px;
  background: rgba(46, 49, 146, 0.08);
  color: #2e3192;
  flex-shrink: 0;
}

.internal-sop-item-title {
  margin-bottom: 0.15rem;
  font-weight: 600;
  color: #111827;
}

.internal-sop-item-copy {
  color: #6b7280;
  line-height: 1.55;
  font-size: 0.92rem;
}

.internal-sop-step-list {
  display: grid;
  gap: 0.85rem;
}

.internal-sop-step {
  display: flex;
  align-items: flex-start;
  gap: 0.8rem;
}

.internal-sop-step-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.25rem;
  min-width: 1.25rem;
  color: #2e3192;
  margin-top: 0.08rem;
}

.internal-sop-step-copy {
  color: #4b5563;
  line-height: 1.55;
}

.internal-sop-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2rem;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  background: rgba(46, 49, 146, 0.08);
  color: #2e3192;
  font-size: 0.82rem;
  font-weight: 700;
}

.internal-sop-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 0.85rem;
}

.internal-sop-section-title {
  margin-bottom: 0.2rem;
  font-size: 1rem;
  font-weight: 700;
  color: #111827;
}

.internal-sop-section-copy {
  font-size: 0.9rem;
  color: #6b7280;
  line-height: 1.5;
}

.internal-sop-doc-card {
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 14px;
  background: #ffffff;
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.05);
}

.internal-sop-doc-body {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding: 1.15rem;
}

.internal-sop-doc-top {
  display: flex;
  align-items: flex-start;
  gap: 0.95rem;
}

.internal-sop-doc-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3rem;
  height: 3rem;
  border-radius: 12px;
  background: rgba(46, 49, 146, 0.08);
  color: #2e3192;
  font-size: 1.1rem;
  flex-shrink: 0;
}

.internal-sop-doc-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 1.7rem;
  padding: 0.2rem 0.65rem;
  border: 1px solid rgba(15, 23, 42, 0.1);
  border-radius: 999px;
  background: #f8fafc;
  color: #374151;
  font-size: 0.76rem;
  font-weight: 700;
}

.internal-sop-doc-meta {
  font-size: 0.8rem;
  color: #6b7280;
}

.internal-sop-doc-title {
  margin-bottom: 0.35rem;
  font-size: 1rem;
  font-weight: 700;
  color: #111827;
}

.internal-sop-doc-copy {
  margin-bottom: 0;
  color: #6b7280;
  line-height: 1.55;
}

.internal-sop-doc-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  padding-top: 1rem;
  border-top: 1px solid rgba(15, 23, 42, 0.08);
}

.internal-sop-doc-note {
  display: inline-flex;
  align-items: flex-start;
  gap: 0.5rem;
  color: #4b5563;
  font-size: 0.84rem;
  line-height: 1.45;
}

.internal-sop-doc-note i {
  color: #198754;
  margin-top: 0.1rem;
}

.internal-sop-action-btn {
  min-width: 9rem;
  font-weight: 600;
  justify-content: center;
}

.internal-sop-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(15, 23, 42, 0.08);
}

.internal-resource-empty-state {
  margin-top: 0.25rem;
}

@media (max-width: 767.98px) {
  .internal-sop-sheet-header,
  .internal-sop-sheet-body {
    padding-inline: 1rem !important;
  }

  .internal-sop-heading-row {
    align-items: flex-start;
  }

  .internal-sop-doc-footer,
  .internal-sop-footer {
    align-items: stretch;
  }

  .internal-sop-section-head {
    align-items: stretch;
  }

  .internal-sop-action-btn {
    width: 100%;
  }

  .internal-resource-tabs {
    flex-direction: column;
  }

  .internal-resource-tab-btn {
    width: 100%;
  }
}
