/**
 * UAR Review Interface Styles
 * Mobile-first review interface for approving/revoking access
 */

.uar-review-container {
  padding: 2rem;
  max-width: 1400px;
  margin: 0 auto;
  background: #F9FAFB;
  min-height: 100vh;
}

/* Campaign Header */
.uar-review-header {
  background: #FFFFFF;
  border: 1px solid #E5E7EB;
  border-radius: 12px;
  padding: 2rem;
  margin-bottom: 2rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.uar-header-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid #E5E7EB;
}

.uar-header-left-section {
  display: flex;
  align-items: center;
}

.uar-header-actions {
  display: flex;
  gap: 0.75rem;
  align-items: center;
}

/* Auto-Save Indicator */
.uar-autosave-indicator {
  display: none; /* Hidden by default */
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  border-radius: 6px;
  font-size: 0.875rem;
  font-weight: 500;
  color: #6B7280;
  background: #F3F4F6;
  border: 1px solid #E5E7EB;
  opacity: 0;
  transition: opacity 0.3s ease, background 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}

.uar-autosave-indicator i {
  width: 16px;
  height: 16px;
  color: #10B981;
  transition: color 0.3s ease;
}

/* Show indicator when saving or saved */
.uar-autosave-indicator.saving,
.uar-autosave-indicator.saved {
  display: flex;
  opacity: 1;
}

.uar-autosave-indicator.saving {
  color: #F59E0B;
  background: #FEF3C7;
  border-color: #FCD34D;
}

.uar-autosave-indicator.saving i {
  color: #F59E0B;
  animation: spin 1s linear infinite;
}

.uar-autosave-indicator.saved {
  color: #10B981;
  background: #D1FAE5;
  border-color: #6EE7B7;
}

.uar-autosave-indicator.saved i {
  color: #10B981;
}

@keyframes spin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

/* Submit Button - Complete State (100%) */
.btn.uar-submit-complete {
  background: linear-gradient(135deg, #10B981, #059669);
  border-color: #10B981;
  animation: pulse-submit 1.5s ease-in-out infinite;
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
  font-weight: 600;
}

.btn.uar-submit-complete:hover {
  background: linear-gradient(135deg, #059669, #047857);
  box-shadow: 0 6px 20px rgba(16, 185, 129, 0.5);
  transform: translateY(-1px);
}

@keyframes pulse-submit {
  0% {
    transform: scale(1);
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
  }
  50% {
    transform: scale(1.02);
    box-shadow: 0 6px 20px rgba(16, 185, 129, 0.5);
  }
  100% {
    transform: scale(1);
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
  }
}

/* Progress Bar - Complete State */
.uar-progress-percentage.complete {
  color: #10B981;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.uar-progress-check {
  width: 20px;
  height: 20px;
  color: #10B981;
  animation: check-bounce 0.5s ease-out;
}

@keyframes check-bounce {
  0% {
    transform: scale(0);
    opacity: 0;
  }
  50% {
    transform: scale(1.2);
  }
  100% {
    transform: scale(1);
    opacity: 1;
  }
}

.uar-progress-bar.complete .uar-progress-bar-fill {
  background: linear-gradient(90deg, #10B981, #059669);
  box-shadow: 0 2px 8px rgba(16, 185, 129, 0.3);
}


.uar-header-info {
  margin-bottom: 0.5rem;
}

.uar-header-info h1 {
  font-size: 1.75rem;
  font-weight: 600;
  color: #171717;
  margin-bottom: 0.75rem;
}

.uar-header-meta {
  display: flex;
  gap: 2rem;
  font-size: 0.875rem;
  color: #6B7280;
  flex-wrap: wrap;
}

.uar-header-meta-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

/* Progress Section */
.uar-progress-section {
  background: #F9FAFB;
  border: 1px solid #E5E7EB;
  border-radius: 8px;
  padding: 1.5rem;
}

.uar-progress-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 1.5rem;
  margin-bottom: 1rem;
}

.uar-progress-stat {
  text-align: center;
}

.uar-progress-stat-value {
  font-size: 2rem;
  font-weight: 600;
  color: var(--primary);
}

.uar-progress-stat-label {
  font-size: 0.75rem;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-top: 0.25rem;
}

.uar-progress-bar-wrapper {
  margin-top: 1rem;
}

.uar-progress-label {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.875rem;
  color: var(--text-secondary);
  margin-bottom: 0.5rem;
}

.uar-progress-percentage {
  font-weight: 600;
  color: var(--primary);
}

.uar-progress-bar {
  height: 8px;
  background: #E5E7EB;
  border-radius: 4px;
  overflow: hidden;
}

.uar-progress-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, #6366F1, #4F46E5);
  border-radius: 4px;
  transition: width 0.3s ease;
}

/* Filters */
.uar-review-filters {
  display: flex;
  gap: 0.75rem;
  margin-bottom: 2rem;
  flex-wrap: wrap;
}

.uar-filter-chip {
  padding: 0.5rem 1rem;
  border: 1px solid var(--border-color);
  border-radius: 20px;
  font-size: 0.875rem;
  background: var(--card-bg);
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.uar-filter-chip:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.uar-filter-chip.active {
  background: var(--primary);
  color: white;
  border-color: var(--primary);
}

.uar-filter-chip .count {
  background: rgba(0, 0, 0, 0.1);
  padding: 0.125rem 0.5rem;
  border-radius: 10px;
  font-size: 0.75rem;
  font-weight: 600;
}

.uar-filter-chip.active .count {
  background: rgba(255, 255, 255, 0.2);
}

/* Review Items Grid */
.uar-review-items {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(380px, 1fr));
  gap: 1.5rem;
}

/* Review Item Card */
.uar-review-item {
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 1.5rem;
  transition: all 0.2s;
  position: relative;
}

.uar-review-item:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  border-color: var(--primary);
}

.uar-review-item.approved {
  border-color: var(--success);
  background: rgba(25, 135, 84, 0.02);
}

.uar-review-item.revoked {
  border-color: var(--danger);
  background: rgba(220, 53, 69, 0.02);
}

.uar-review-item.pending {
  border-left: 4px solid var(--warning);
}

/* User Info Section */
.review-user-info {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--border-color);
}

.review-user-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--primary-hover));
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 600;
  font-size: 1.25rem;
  flex-shrink: 0;
}

.review-user-details {
  flex: 1;
  min-width: 0;
}

.review-user-name {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.25rem;
}

.review-user-email {
  font-size: 0.875rem;
  color: var(--text-secondary);
  margin-bottom: 0.5rem;
}

.review-user-meta {
  display: flex;
  gap: 1rem;
  font-size: 0.75rem;
  color: var(--text-secondary);
  flex-wrap: wrap;
}

.review-user-meta-item {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

/* Access Info Section */
.review-access-info {
  margin-bottom: 1.5rem;
}

.review-access-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.review-access-icon {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: rgba(99, 102, 241, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
}

.review-access-title {
  flex: 1;
}

.review-access-system {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-primary);
}

.review-access-role {
  font-size: 0.875rem;
  color: var(--text-secondary);
}

.review-access-details {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
  padding: 1rem;
  background: var(--input-bg);
  border-radius: 8px;
}

.review-access-detail {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.review-access-detail-label {
  font-size: 0.75rem;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.review-access-detail-value {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-primary);
}

/* Decision Section */
.review-decision {
  margin-top: 1.5rem;
}

.review-decision.has-decision {
  background: var(--input-bg);
  padding: 1rem;
  border-radius: 8px;
}

.review-decision-label {
  font-size: 0.75rem;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 0.5rem;
}

.review-decision-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  border-radius: 6px;
  font-size: 0.875rem;
  font-weight: 500;
  margin-bottom: 0.75rem;
}

.review-decision-badge.approved {
  background: rgba(25, 135, 84, 0.1);
  color: var(--success);
}

.review-decision-badge.revoked {
  background: rgba(220, 53, 69, 0.1);
  color: var(--danger);
}

.review-decision-comment {
  font-size: 0.875rem;
  color: var(--text-secondary);
  line-height: 1.5;
  font-style: italic;
}

.review-decision-date {
  font-size: 0.75rem;
  color: var(--text-secondary);
  margin-top: 0.5rem;
}

/* Action Buttons */
.review-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}

.review-action-btn {
  padding: 0.75rem 1rem;
  border: 2px solid;
  border-radius: 8px;
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.review-action-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.review-action-btn.approve {
  background: white;
  border-color: var(--success);
  color: var(--success);
}

.review-action-btn.approve:hover:not(:disabled) {
  background: var(--success);
  color: white;
}

.review-action-btn.revoke {
  background: white;
  border-color: var(--danger);
  color: var(--danger);
}

.review-action-btn.revoke:hover:not(:disabled) {
  background: var(--danger);
  color: white;
}

/* Comment Modal */
.comment-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 1rem;
}

.comment-modal {
  background: var(--card-bg);
  border-radius: 12px;
  max-width: 500px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
}

.comment-modal-header {
  padding: 1.5rem;
  border-bottom: 1px solid var(--border-color);
}

.comment-modal-title {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}

.comment-modal-subtitle {
  font-size: 0.875rem;
  color: var(--text-secondary);
}

.comment-modal-body {
  padding: 1.5rem;
}

.comment-modal-label {
  display: block;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}

.comment-modal-required {
  color: var(--danger);
}

.comment-modal-textarea {
  width: 100%;
  min-height: 120px;
  padding: 0.75rem;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  font-size: 0.875rem;
  font-family: inherit;
  resize: vertical;
  background: var(--input-bg);
  color: var(--text-primary);
}

.comment-modal-textarea:focus {
  outline: none;
  border-color: var(--primary);
}

.comment-modal-help {
  font-size: 0.75rem;
  color: var(--text-secondary);
  margin-top: 0.5rem;
}

.comment-modal-footer {
  padding: 1.5rem;
  border-top: 1px solid var(--border-color);
  display: flex;
  gap: 0.75rem;
  justify-content: flex-end;
}

.comment-modal-btn {
  padding: 0.75rem 1.5rem;
  border: none;
  border-radius: 8px;
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
}

.comment-modal-btn.cancel {
  background: var(--input-bg);
  color: var(--text-secondary);
}

.comment-modal-btn.cancel:hover {
  background: var(--border-color);
}

.comment-modal-btn.submit {
  background: var(--danger);
  color: white;
}

.comment-modal-btn.submit:hover {
  background: #c82333;
}

.comment-modal-btn.submit:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* Empty State */
.uar-review-empty {
  text-align: center;
  padding: 4rem 2rem;
}

.uar-review-empty-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto 1.5rem;
  border-radius: 50%;
  background: rgba(25, 135, 84, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--success);
  font-size: 2rem;
}

.uar-review-empty-title {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}

.uar-review-empty-text {
  color: var(--text-secondary);
  font-size: 0.875rem;
  margin-bottom: 1.5rem;
}

/* V6 User Card Styles */
.uar-user-card {
  background: #FFFFFF;
  border: 1px solid #E5E7EB;
  border-radius: 12px;
  margin-bottom: 1rem;
  overflow: hidden;
  transition: all 0.2s;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.uar-user-card:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
}

.uar-user-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.5rem;
  cursor: pointer;
  transition: background 0.2s;
}

.uar-user-card-header:hover {
  background: #FAFAFA;
}

.uar-header-left {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.uar-chevron {
  width: 20px;
  height: 20px;
  color: #9CA3AF;
  transition: transform 0.3s ease;
  flex-shrink: 0;
}

.uar-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 18px;
  font-weight: 600;
  flex-shrink: 0;
}

.uar-user-info {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.uar-user-name {
  font-size: 16px;
  font-weight: 600;
  color: #171717;
}

.uar-user-id {
  font-size: 14px;
  font-weight: 400;
  color: #737373;
}

.uar-header-right {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.uar-system-count {
  font-size: 14px;
  color: #525252;
}

.uar-action-buttons {
  display: flex;
  gap: 0.5rem;
}

.uar-btn-reject,
.uar-btn-approve {
  padding: 0.5rem 1rem;
  border-radius: 6px;
  font-size: 0.875rem;
  font-weight: 500;
  border: none;
  cursor: pointer;
  transition: all 0.2s;
}

.uar-btn-reject {
  background: #F3F4F6;
  color: #6B7280;
}

.uar-btn-reject:hover {
  background: #E5E7EB;
  color: #374151;
}

.uar-btn-approve {
  background: #10B981;
  color: white;
}

.uar-btn-approve:hover {
  background: #059669;
}

/* Actions Dropdown */
.uar-actions-dropdown {
  position: relative;
}

.uar-btn-actions {
  display: flex;
  align-items: center;
  padding: 0.5rem 1rem;
  border-radius: 6px;
  font-size: 0.875rem;
  font-weight: 500;
  border: 1px solid #E5E7EB;
  background: white;
  color: #374151;
  cursor: pointer;
  transition: all 0.2s;
}

.uar-btn-actions:hover {
  background: #F9FAFB;
  border-color: #D1D5DB;
}

.uar-actions-menu {
  position: absolute;
  top: 100%;
  right: 0;
  margin-top: 0.5rem;
  background: white;
  border: 1px solid #E5E7EB;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  min-width: 160px;
  z-index: 1000;
  display: none;
  overflow: hidden;
}

.uar-actions-menu.show {
  display: block;
}

.uar-actions-menu button {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  width: 100%;
  padding: 0.75rem 1rem;
  border: none;
  background: transparent;
  color: #374151;
  font-size: 0.875rem;
  text-align: left;
  cursor: pointer;
  transition: background 0.2s;
}

.uar-actions-menu button:hover {
  background: #F3F4F6;
}

.uar-actions-menu button i {
  width: 16px;
  height: 16px;
  color: #6B7280;
}

.uar-actions-menu button:not(:last-child) {
  border-bottom: 1px solid #F3F4F6;
}

/* Access Grid Layout */
.uar-access-grid {
  display: none; /* Hidden by default (collapsed) */
  padding: 1rem;
  background: #FAFAFA;
  border-top: 1px solid #E5E7EB;
}

.uar-access-grid:not(.collapsed) {
  display: block;
}

.uar-grid-header {
  display: grid;
  grid-template-columns: 40px 2fr 2fr 2fr 100px;
  gap: 1rem;
  padding: 0.75rem 1rem;
  background: #F3F4F6;
  border-radius: 6px;
  margin-bottom: 0.5rem;
  font-size: 0.75rem;
  font-weight: 600;
  color: #6B7280;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.uar-access-row {
  display: grid;
  grid-template-columns: 40px 2fr 2fr 2fr 100px;
  gap: 1rem;
  padding: 1rem;
  background: #FFFFFF;
  border-radius: 8px;
  margin-bottom: 0.5rem;
  align-items: center;  /* Center-align all columns for professional appearance */
  min-height: 64px;  /* Ensure consistent row height */
  transition: all 0.2s;
}

.uar-access-row:hover {
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  transform: translateY(-1px);
}

/* Grid Columns */
.uar-grid-col-checkbox {
  display: flex;
  align-items: center;
  justify-content: center;
  align-self: center;  /* Center checkbox vertically in the row */
}

.uar-item-checkbox {
  width: 18px;
  height: 18px;
  cursor: pointer;
}

.uar-grid-col-system {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.uar-access-row .uar-grid-col-system .uar-system-name {
  display: flex;
  align-items: center;  /* Changed back to center for better visual alignment with emoji */
  gap: 0.5rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: #171717;
  line-height: 1.25rem;
  margin: 0 !important;
}

.uar-access-row .uar-grid-col-system .uar-system-icon {
  font-size: 1rem;  /* Slightly larger for better visual weight */
  line-height: 1;
  flex-shrink: 0;
  width: auto !important;
  height: auto !important;
  margin: 0 !important;
  display: inline-block !important;  /* inline-block for better control */
  vertical-align: middle;  /* Vertically center with text */
  border-radius: 0 !important;
  transform: translateY(-1px);  /* Optical adjustment: nudge up 1px */
}

.uar-system-type {
  font-size: 0.75rem;
  color: #6B7280;
  font-weight: 500;
  display: inline-block;
  padding: 0.25rem 0.75rem;
  background: #F3F4F6;
  border-radius: 12px;
  border: 1px solid #E5E7EB;
}

.uar-system-meta {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.uar-line-item-id {
  font-size: 0.7rem;
  font-family: 'SF Mono', 'Monaco', 'Inconsolata', 'Roboto Mono', monospace;
  color: #9CA3AF;
  font-weight: 500;
  padding: 0.15rem 0.5rem;
  background: #F9FAFB;
  border-radius: 4px;
  border: 1px solid #E5E7EB;
}

.uar-grid-col-role {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.uar-role-name {
  font-size: 0.875rem;
  font-weight: 500;
  color: #171717;
  line-height: 1.25rem;  /* Match system-name line-height */
}

.uar-grid-col-activity {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  font-size: 0.875rem;  /* Changed from 0.75rem to match other columns */
}

.uar-activity-item {
  display: flex;
  align-items: center;  /* Center-align for better visual balance with emoji */
  gap: 0.25rem;
  line-height: 1.25rem;
}

/* Optical adjustment for emojis in activity */
.uar-activity-item::before {
  display: inline-block;
  vertical-align: middle;
}

.uar-activity-dormant {
  color: #DC2626;
  font-weight: 500;
}

.uar-activity-active {
  color: #059669;
}

.uar-activity-new {
  color: #2563EB;
  font-weight: 500;
}

.uar-activity-change {
  color: #D97706;
}

.uar-grid-col-actions {
  display: flex;
  gap: 0.5rem;
  justify-content: center;
  align-items: center;
  align-self: center;  /* Center actions vertically in the row */
}

.uar-btn-icon-action {
  width: 32px;
  height: 32px;
  border-radius: 6px;
  border: none;
  background: transparent;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
  position: relative;
}

.uar-btn-icon-action svg {
  width: 16px;
  height: 16px;
}

.uar-btn-icon-reject {
  color: #DC2626;
}

.uar-btn-icon-reject:hover {
  background: #FEF2F2;
}

.uar-btn-icon-approve {
  color: #059669;
}

.uar-btn-icon-approve:hover {
  background: #ECFDF5;
}

.uar-btn-icon-action[data-tooltip]:hover::after {
  content: attr(data-tooltip);
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%);
  padding: 0.25rem 0.5rem;
  background: #1F2937;
  color: white;
  font-size: 0.75rem;
  border-radius: 4px;
  white-space: nowrap;
  margin-bottom: 0.25rem;
}

/* Risk Badges */
.uar-risk-badge {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  border-radius: 12px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.025em;
}

.uar-risk-badge.uar-risk-critical {
  background: linear-gradient(135deg, #FEE2E2, #FEF2F2);
  color: #DC2626;
  border: 1px solid #FCA5A5;
}

.uar-risk-badge.uar-risk-high {
  background: linear-gradient(135deg, #FEE2E2, #FEF2F2);
  color: #DC2626;
  border: 1px solid #FCA5A5;
}

.uar-risk-badge.uar-risk-medium {
  background: linear-gradient(135deg, #FEF3C7, #FFFBEB);
  color: #D97706;
  border: 1px solid #FCD34D;
}

.uar-risk-badge.uar-risk-low {
  background: linear-gradient(135deg, #D1FAE5, #ECFDF5);
  color: #059669;
  border: 1px solid #6EE7B7;
}

/* Status Badges */
.uar-status-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  border-radius: 6px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  white-space: nowrap;
  min-width: fit-content;
}

.uar-status-approved {
  background: #ECFDF5;
  color: #059669;
  border: 1px solid #6EE7B7;
}

.uar-status-revoked {
  background: #FEF2F2;
  color: #DC2626;
  border: 1px solid #FCA5A5;
}

/* Collapsed Card Header Status Badges */
.uar-status-rejected {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
  color: white;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
  box-shadow: 0 2px 4px rgba(245, 158, 11, 0.2);
}

.uar-status-rejected i {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

.uar-status-complete-approved {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: linear-gradient(135deg, #10B981 0%, #059669 100%);
  color: white;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
  box-shadow: 0 2px 4px rgba(16, 185, 129, 0.2);
}

.uar-status-complete-approved i {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

.uar-status-complete-revoked {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: linear-gradient(135deg, #EF4444 0%, #DC2626 100%);
  color: white;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
  box-shadow: 0 2px 4px rgba(239, 68, 68, 0.2);
}

.uar-status-complete-revoked i {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

.uar-status-mixed {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: linear-gradient(135deg, #6366F1 0%, #4F46E5 100%);
  color: white;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
  box-shadow: 0 2px 4px rgba(99, 102, 241, 0.2);
}

.uar-status-mixed i {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

/* Decision Container with Reset Button */
.uar-decision-container {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

/* Reset Button */
.uar-btn-icon-reset {
  color: #6B7280;
}

.uar-btn-icon-reset:hover {
  background: #F3F4F6;
  color: #374151;
}

/* Reassignment Status Container */
.uar-reassignment-status {
  display: flex;
  align-items: center;
  gap: 8px;
}

/* Reassignment Status Badge */
.uar-status-reassignment {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
  color: white;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
  box-shadow: 0 2px 4px rgba(245, 158, 11, 0.2);
}

.uar-status-reassignment i {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

/* Reset Reassignment Button */
.uar-btn-reset-reassignment {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  padding: 0;
  background: #F3F4F6;
  border: 1px solid #E5E7EB;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s ease;
  flex-shrink: 0;
}

.uar-btn-reset-reassignment:hover {
  background: #E5E7EB;
  border-color: #D1D5DB;
  transform: rotate(-45deg);
}

.uar-btn-reset-reassignment i {
  width: 18px;
  height: 18px;
  color: #6B7280;
}

.uar-btn-reset-reassignment:hover i {
  color: #374151;
}

/* Completed Status Container (for approved/revoked/mixed) */
.uar-completed-status {
  display: flex;
  align-items: center;
  gap: 8px;
}

/* Reset Decisions Button (for completed items) */
.uar-btn-reset-decisions {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  padding: 0;
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid #E5E7EB;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s ease;
  flex-shrink: 0;
}

.uar-btn-reset-decisions:hover {
  background: #FEF3C7;
  border-color: #F59E0B;
  transform: rotate(-45deg);
}

.uar-btn-reset-decisions i {
  width: 16px;
  height: 16px;
  color: #6B7280;
}

.uar-btn-reset-decisions:hover i {
  color: #D97706;
}

/* Disabled Actions State (User Rejected) */
.uar-actions-disabled {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8px 12px;
  height: 100%;
}

.uar-rejected-label {
  color: #9CA3AF;
  font-size: 13px;
  font-weight: 500;
  font-style: italic;
}

/* Gray out the entire row when rejected */
.uar-access-row:has(.uar-actions-disabled) {
  opacity: 0.6;
  background: #F9FAFB;
}

.uar-access-row:has(.uar-actions-disabled) .uar-item-checkbox {
  opacity: 0.5;
  pointer-events: none;
}

/* Mobile Responsive */
@media (max-width: 768px) {
  .uar-review-container {
    padding: 1rem;
  }

  .uar-review-header {
    padding: 1.5rem;
  }

  .uar-header-top {
    flex-direction: column;
  }

  .uar-review-items {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .review-access-details {
    grid-template-columns: 1fr;
  }

  .uar-progress-stats {
    grid-template-columns: repeat(2, 1fr);
  }

  .comment-modal {
    margin: 1rem;
  }

  .uar-access-grid {
    grid-template-columns: 1fr;
  }

  .uar-grid-header,
  .uar-access-row {
    grid-template-columns: 1fr;
    gap: 0.5rem;
  }
}

/* Toast Notifications */
.uar-toast {
  position: fixed;
  top: 2rem;
  right: 2rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 1.5rem;
  background: white;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  font-size: 0.875rem;
  font-weight: 500;
  opacity: 0;
  transform: translateY(-10px);
  transition: all 0.3s ease;
  z-index: 10000;
  max-width: 400px;
}

.uar-toast.show {
  opacity: 1;
  transform: translateY(0);
}

.uar-toast-success {
  border-left: 4px solid #10B981;
  color: #065F46;
}

.uar-toast-success i {
  color: #10B981;
}

.uar-toast-error {
  border-left: 4px solid #EF4444;
  color: #991B1B;
}

.uar-toast-error i {
  color: #EF4444;
}

.uar-toast-info {
  border-left: 4px solid #3B82F6;
  color: #1E40AF;
}

.uar-toast-info i {
  color: #3B82F6;
}

.uar-toast i {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

/* UAR-specific button color overrides */
.uar-review-header .btn-primary {
  background: #6366F1;
  border-color: #6366F1;
}

.uar-review-header .btn-primary:hover {
  background: #4F46E5;
  border-color: #4F46E5;
}

/* Incomplete Review Modal */
.uar-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  animation: fade-in 0.2s ease-out;
}

@keyframes fade-in {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.uar-modal-content {
  background: white;
  border-radius: 12px;
  max-width: 500px;
  width: 90%;
  padding: 2rem;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  animation: slide-up 0.3s ease-out;
}

@keyframes slide-up {
  from {
    transform: translateY(20px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.uar-modal-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
}

.uar-modal-warning {
  background: #FEF3C7;
}

.uar-modal-warning i {
  width: 32px;
  height: 32px;
  color: #F59E0B;
}

.uar-modal-content h2 {
  font-size: 1.5rem;
  font-weight: 600;
  color: #171717;
  text-align: center;
  margin-bottom: 1rem;
}

.uar-modal-message {
  text-align: center;
  color: #6B7280;
  font-size: 1rem;
  margin-bottom: 1.5rem;
}

.uar-modal-instructions {
  background: #F9FAFB;
  border: 1px solid #E5E7EB;
  border-radius: 8px;
  padding: 1.5rem;
  margin-bottom: 1.5rem;
}

.uar-modal-instructions p {
  font-weight: 600;
  color: #374151;
  margin-bottom: 0.75rem;
}

.uar-modal-instructions ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.uar-modal-instructions li {
  padding: 0.5rem 0;
  color: #6B7280;
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
}

.uar-modal-instructions li::before {
  content: "•";
  color: #6366F1;
  font-weight: bold;
  font-size: 1.2rem;
}

.uar-modal-actions {
  display: flex;
  gap: 0.75rem;
  justify-content: center;
}

/* Confetti Effect */
.uar-confetti-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 9998;
  overflow: hidden;
}

.uar-confetti {
  position: absolute;
  width: 10px;
  height: 10px;
  top: -10px;
  opacity: 0;
  animation: confetti-fall 3s linear forwards;
}

@keyframes confetti-fall {
  0% {
    top: -10px;
    opacity: 1;
    transform: rotate(0deg);
  }
  100% {
    top: 100vh;
    opacity: 0;
    transform: rotate(720deg);
  }
}


/* ==========================================
   UAR ATTESTATION MODAL (Professional Design)
   ========================================== */

.attestation-modal-overlay {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  z-index: 99999 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  background: rgba(15, 23, 42, 0.7) !important;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  padding: 1.5rem !important;
  animation: attestationFadeIn 0.2s ease-out;
}

@keyframes attestationFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.attestation-modal-overlay .attestation-modal {
  position: relative !important;
  background: white !important;
  border-radius: 16px !important;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25) !important;
  max-width: 520px !important;
  width: 100% !important;
  max-height: 90vh !important;
  overflow-y: auto !important;
  animation: attestationSlideUp 0.3s ease-out;
  display: flex !important;
  flex-direction: column !important;
}

@keyframes attestationSlideUp {
  from {
    opacity: 0;
    transform: translateY(20px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* Modal Header */
.attestation-modal-overlay .attestation-header {
  text-align: center !important;
  padding: 2rem 2rem 1.5rem !important;
  border-bottom: 1px solid #f1f5f9 !important;
  display: block !important;
  background: white !important;
}

.attestation-modal-overlay .attestation-header .attestation-icon {
  width: 56px !important;
  height: 56px !important;
  margin: 0 auto 1rem !important;
  border-radius: 14px !important;
  background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%) !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3) !important;
}

.attestation-modal-overlay .attestation-header .attestation-icon svg {
  width: 28px !important;
  height: 28px !important;
  color: white !important;
  stroke-width: 2 !important;
}

.attestation-modal-overlay .attestation-header h3 {
  margin: 0 0 0.375rem !important;
  font-size: 1.375rem !important;
  font-weight: 700 !important;
  color: #1e293b !important;
}

.attestation-modal-overlay .attestation-header p {
  margin: 0 !important;
  font-size: 0.875rem !important;
  color: #64748b !important;
}

/* Summary Section */
.attestation-modal-overlay .attestation-summary {
  padding: 1.5rem 2rem !important;
  background: #f8fafc !important;
  display: block !important;
}

.attestation-modal-overlay .attestation-summary .summary-row {
  display: flex !important;
  flex-direction: row !important;
  gap: 1rem !important;
  margin-bottom: 1rem !important;
}

.attestation-modal-overlay .attestation-summary .summary-row:last-of-type {
  margin-bottom: 0 !important;
}

.attestation-modal-overlay .attestation-summary .summary-item {
  flex: 1 !important;
  background: white !important;
  border-radius: 10px !important;
  padding: 0.875rem 1rem !important;
  text-align: center !important;
  border: 1px solid #e2e8f0 !important;
  display: block !important;
}

.attestation-modal-overlay .attestation-summary .summary-label {
  font-size: 0.7rem !important;
  font-weight: 600 !important;
  color: #64748b !important;
  text-transform: uppercase !important;
  letter-spacing: 0.5px !important;
  margin-bottom: 0.375rem !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 0.375rem !important;
}

.attestation-modal-overlay .attestation-summary .summary-label svg {
  width: 14px !important;
  height: 14px !important;
}

.attestation-modal-overlay .attestation-summary .summary-value {
  font-size: 1.5rem !important;
  font-weight: 700 !important;
  color: #1e293b !important;
}

.attestation-modal-overlay .attestation-summary .summary-value.text-blue {
  color: #3b82f6 !important;
}

.attestation-modal-overlay .attestation-summary .summary-value.text-green {
  color: #10b981 !important;
}

.attestation-modal-overlay .attestation-summary .summary-value.text-red {
  color: #ef4444 !important;
}

.attestation-modal-overlay .attestation-summary .summary-value.text-orange {
  color: #f59e0b !important;
}

/* Warning/Complete Banners */
.attestation-modal-overlay .attestation-summary .summary-warning {
  display: flex !important;
  align-items: center !important;
  gap: 0.625rem !important;
  margin-top: 1rem !important;
  padding: 0.75rem 1rem !important;
  background: #fef3c7 !important;
  border-radius: 8px !important;
  border: 1px solid #fcd34d !important;
}

.attestation-modal-overlay .attestation-summary .summary-warning svg {
  width: 18px !important;
  height: 18px !important;
  color: #d97706 !important;
  flex-shrink: 0 !important;
}

.attestation-modal-overlay .attestation-summary .summary-warning span {
  font-size: 0.875rem !important;
  color: #92400e !important;
}

.attestation-modal-overlay .attestation-summary .summary-complete {
  display: flex !important;
  align-items: center !important;
  gap: 0.625rem !important;
  margin-top: 1rem !important;
  padding: 0.75rem 1rem !important;
  background: #d1fae5 !important;
  border-radius: 8px !important;
  border: 1px solid #6ee7b7 !important;
}

.attestation-modal-overlay .attestation-summary .summary-complete svg {
  width: 18px !important;
  height: 18px !important;
  color: #059669 !important;
  flex-shrink: 0 !important;
}

.attestation-modal-overlay .attestation-summary .summary-complete span {
  font-size: 0.875rem !important;
  color: #065f46 !important;
  font-weight: 500 !important;
}

/* Checkbox Section */
.attestation-modal-overlay .attestation-checkbox {
  padding: 1.5rem 2rem !important;
  border-top: 1px solid #f1f5f9 !important;
  border-bottom: 1px solid #f1f5f9 !important;
  background: white !important;
  display: flex !important;
  align-items: flex-start !important;
  gap: 0.875rem !important;
}

.attestation-modal-overlay .attestation-checkbox input[type="checkbox"] {
  width: 22px !important;
  height: 22px !important;
  min-width: 22px !important;
  min-height: 22px !important;
  margin: 0 !important;
  flex-shrink: 0 !important;
  accent-color: #6366f1 !important;
  cursor: pointer !important;
}

.attestation-modal-overlay .attestation-checkbox label {
  display: inline !important;
  line-height: 1.6 !important;
  font-size: 0.9rem !important;
  color: #475569 !important;
  cursor: pointer !important;
  margin: 0 !important;
  padding: 0 !important;
}

.attestation-modal-overlay .attestation-checkbox strong {
  color: #1e293b !important;
  font-weight: 700 !important;
}

/* Footer Buttons */
.attestation-modal-overlay .attestation-footer {
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 1rem !important;
  padding: 1.5rem 2rem !important;
  background: white !important;
}

.attestation-modal-overlay .attestation-footer-actions {
  display: flex !important;
  flex-direction: row !important;
  gap: 0.75rem !important;
}

.attestation-modal-overlay .attestation-footer .btn {
  display: inline-flex !important;
  align-items: center !important;
  gap: 0.5rem !important;
  padding: 0.75rem 1.25rem !important;
  border-radius: 10px !important;
  font-size: 0.875rem !important;
  font-weight: 600 !important;
  cursor: pointer !important;
  transition: all 0.15s ease !important;
  border: none !important;
}

.attestation-modal-overlay .attestation-footer .btn svg {
  width: 18px !important;
  height: 18px !important;
}

.attestation-modal-overlay .attestation-footer .btn-download-report {
  background: #f0fdf4 !important;
  color: #15803d !important;
  border: 1px solid #86efac !important;
}

.attestation-modal-overlay .attestation-footer .btn-download-report:hover {
  background: #dcfce7 !important;
  border-color: #4ade80 !important;
}

.attestation-modal-overlay .attestation-footer .btn-download-report:disabled {
  opacity: 0.6 !important;
  cursor: wait !important;
}

.attestation-modal-overlay .attestation-footer .btn-download-report svg.spin {
  animation: spin 1s linear infinite !important;
}

@keyframes spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.attestation-modal-overlay .attestation-footer .btn-cancel-attestation {
  background: #f1f5f9 !important;
  color: #475569 !important;
  border: 1px solid #e2e8f0 !important;
}

.attestation-modal-overlay .attestation-footer .btn-cancel-attestation:hover {
  background: #e2e8f0 !important;
  color: #1e293b !important;
}

.attestation-modal-overlay .attestation-footer .btn-confirm-attestation {
  background: #c7d2fe !important;
  color: #a5b4fc !important;
}

.attestation-modal-overlay .attestation-footer .btn-confirm-attestation:hover:not(:disabled) {
  background: #4f46e5 !important;
}

.attestation-modal-overlay .attestation-footer .btn-confirm-attestation:disabled {
  background: #c7d2fe !important;
  color: #a5b4fc !important;
  cursor: not-allowed !important;
}

.attestation-modal-overlay .attestation-footer .btn-confirm-attestation.btn-enabled {
  background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%) !important;
  color: white !important;
  box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3) !important;
}

.attestation-modal-overlay .attestation-footer .btn-confirm-attestation.btn-enabled:hover {
  background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%) !important;
  box-shadow: 0 6px 16px rgba(99, 102, 241, 0.4) !important;
  transform: translateY(-1px) !important;
}

/* Reassigned stats display */
.attestation-summary .summary-label svg.lucide-arrow-right-left {
  color: #f59e0b;
}


/* ==========================================
   UAR HEADER ENHANCEMENTS
   ========================================== */

/* Title row with campaign badge */
.uar-header-title-row {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.uar-campaign-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.25rem 0.75rem;
  background: linear-gradient(135deg, #e0e7ff 0%, #c7d2fe 100%);
  color: #4f46e5;
  font-size: 0.8rem;
  font-weight: 700;
  border-radius: 6px;
  letter-spacing: 0.5px;
}

.uar-workitem-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.25rem 0.75rem;
  background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
  color: #92400e;
  font-size: 0.8rem;
  font-weight: 700;
  font-family: 'SF Mono', 'Monaco', 'Inconsolata', 'Roboto Mono', monospace;
  border-radius: 6px;
  letter-spacing: 0.5px;
  border: 1px solid #f59e0b;
}

/* Export dropdown menu */
.uar-header-export-menu {
  position: relative;
  margin-left: auto;
}

.btn-export-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  background: white;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  font-size: 0.875rem;
  font-weight: 500;
  color: #475569;
  cursor: pointer;
  transition: all 0.15s ease;
}

.btn-export-toggle:hover {
  background: #f8fafc;
  border-color: #cbd5e1;
}

.btn-export-toggle svg {
  width: 16px;
  height: 16px;
}

.btn-export-toggle .chevron-icon {
  width: 14px;
  height: 14px;
  transition: transform 0.2s ease;
}

.uar-export-dropdown {
  position: absolute;
  top: calc(100% + 0.5rem);
  right: 0;
  min-width: 180px;
  background: white;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
  z-index: 100;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all 0.2s ease;
}

.uar-export-dropdown.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.export-option {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  width: 100%;
  padding: 0.75rem 1rem;
  background: none;
  border: none;
  text-align: left;
  font-size: 0.875rem;
  color: #1e293b;
  cursor: pointer;
  transition: background 0.15s ease;
}

.export-option:first-child {
  border-radius: 10px 10px 0 0;
}

.export-option:last-child {
  border-radius: 0 0 10px 10px;
}

.export-option:hover {
  background: #f1f5f9;
}

.export-option svg {
  width: 16px;
  height: 16px;
  color: #64748b;
}

.export-divider {
  height: 1px;
  background: #e2e8f0;
  margin: 0.25rem 0;
}

/* ==========================================
   ATTESTATION CHECKBOXES SECTION
   ========================================== */

.attestation-checkboxes {
  padding: 1.5rem 2rem !important;
  border-top: 1px solid #f1f5f9 !important;
  border-bottom: 1px solid #f1f5f9 !important;
  background: white !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 1rem !important;
}

.attestation-checkbox-primary {
  display: flex !important;
  align-items: flex-start !important;
  gap: 0.875rem !important;
  padding: 0 !important;
  border: none !important;
  background: none !important;
}

.attestation-checkbox-secondary {
  display: flex !important;
  align-items: center !important;
  gap: 0.75rem !important;
  padding: 0.75rem 1rem !important;
  background: #f8fafc !important;
  border-radius: 8px !important;
  border: 1px solid #e2e8f0 !important;
}

.attestation-checkbox-secondary label {
  display: inline-flex !important;
  align-items: center !important;
  gap: 0.5rem !important;
  font-size: 0.85rem !important;
  color: #64748b !important;
  cursor: pointer !important;
}

.attestation-checkbox-secondary .checkbox-icon {
  width: 16px !important;
  height: 16px !important;
  color: #10b981 !important;
}

/* ==========================================
   AUDIT LOG MODAL
   ========================================== */

.audit-log-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(15, 23, 42, 0.7);
  backdrop-filter: blur(4px);
  padding: 1.5rem;
}

.audit-log-modal {
  background: white;
  border-radius: 16px;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  max-width: 600px;
  width: 100%;
  max-height: 80vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.audit-log-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid #e2e8f0;
}

.audit-log-title {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.audit-log-title svg {
  width: 24px;
  height: 24px;
  color: #6366f1;
}

.audit-log-title h3 {
  margin: 0;
  font-size: 1.125rem;
  font-weight: 600;
  color: #1e293b;
}

.audit-log-close {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  background: #f1f5f9;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.15s ease;
}

.audit-log-close:hover {
  background: #e2e8f0;
}

.audit-log-close svg {
  width: 18px;
  height: 18px;
  color: #64748b;
}

.audit-log-info {
  display: flex;
  gap: 1.5rem;
  padding: 0.75rem 1.5rem;
  background: #f8fafc;
  font-size: 0.85rem;
  color: #64748b;
}

.audit-log-entries {
  flex: 1;
  overflow-y: auto;
  padding: 1rem 1.5rem;
}

.audit-log-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 3rem;
  color: #94a3b8;
}

.audit-log-empty svg {
  width: 48px;
  height: 48px;
  margin-bottom: 1rem;
}

.audit-log-entry {
  display: flex;
  gap: 1rem;
  padding: 1rem;
  margin-bottom: 0.75rem;
  background: #f8fafc;
  border-radius: 10px;
  border-left: 4px solid #e2e8f0;
}

.audit-log-entry.access-approved {
  border-left-color: #10b981;
  background: #f0fdf4;
}

.audit-log-entry.access-revoked {
  border-left-color: #ef4444;
  background: #fef2f2;
}

.audit-log-entry.reassignment-requested {
  border-left-color: #f59e0b;
  background: #fffbeb;
}

.audit-entry-icon {
  flex-shrink: 0;
}

.audit-entry-icon svg {
  width: 20px;
  height: 20px;
}

.audit-log-entry.access-approved .audit-entry-icon svg {
  color: #10b981;
}

.audit-log-entry.access-revoked .audit-entry-icon svg {
  color: #ef4444;
}

.audit-log-entry.reassignment-requested .audit-entry-icon svg {
  color: #f59e0b;
}

.audit-entry-content {
  flex: 1;
}

.audit-entry-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.375rem;
}

.audit-entry-action {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #64748b;
}

.audit-entry-time {
  font-size: 0.75rem;
  color: #94a3b8;
}

.audit-entry-details {
  font-size: 0.9rem;
  color: #1e293b;
  margin-bottom: 0.25rem;
}

.audit-entry-performer {
  font-size: 0.8rem;
  color: #94a3b8;
}

.audit-log-footer {
  padding: 0.75rem 1.5rem;
  border-top: 1px solid #e2e8f0;
  font-size: 0.8rem;
  color: #94a3b8;
  text-align: center;
}


/* Audit Log Footer with Export Button */
.audit-log-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.75rem 1.5rem;
  border-top: 1px solid #e2e8f0;
  font-size: 0.8rem;
  color: #94a3b8;
}

.btn-export-audit {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
}

.btn-export-audit:hover {
  background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%);
  box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
  transform: translateY(-1px);
}

.btn-export-audit svg {
  width: 14px;
  height: 14px;
}


/* ============================================
   READ-ONLY / COMPLETED STATE STYLES
   ============================================ */

/* Completed Badge in Header */
.uar-completed-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.625rem 1.25rem;
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  color: white;
  border-radius: 12px;
  font-weight: 600;
  font-size: 0.9rem;
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

.uar-completed-badge svg {
  width: 18px;
  height: 18px;
}

/* Read-Only Badge next to title */
.uar-readonly-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.25rem 0.75rem;
  background: #fef3c7;
  color: #92400e;
  border-radius: 6px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-left: 0.75rem;
}

/* Completion Banner */
.uar-completion-banner {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin: 1rem 0;
  padding: 1rem 1.5rem;
  background: linear-gradient(135deg, #ecfdf5 0%, #d1fae5 100%);
  border: 1px solid #a7f3d0;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(16, 185, 129, 0.1);
}

.uar-completion-banner-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  background: #10b981;
  border-radius: 12px;
  flex-shrink: 0;
}

.uar-completion-banner-icon svg {
  width: 28px;
  height: 28px;
  color: white;
}

.uar-completion-banner-content h3 {
  margin: 0 0 0.25rem 0;
  font-size: 1rem;
  font-weight: 700;
  color: #065f46;
}

.uar-completion-banner-content p {
  margin: 0;
  font-size: 0.875rem;
  color: #047857;
}

.uar-completion-banner-content strong {
  color: #065f46;
}

/* Read-Only Decision Container */
.uar-readonly-decision {
  opacity: 0.9;
}

.uar-readonly-decision .uar-status-badge {
  cursor: default;
}

/* Status badges for read-only mode */
.uar-status-reassigned {
  background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
  color: #92400e;
  border: 1px solid #f59e0b;
}

.uar-status-pending {
  background: linear-gradient(135deg, #f3f4f6 0%, #e5e7eb 100%);
  color: #6b7280;
  border: 1px solid #d1d5db;
}

/* Hide checkboxes in read-only mode */
.uar-review-container.uar-readonly .uar-item-checkbox {
  display: none;
}

/* Disable hover effects on cards in read-only mode */
.uar-review-container.uar-readonly .uar-user-card:hover {
  transform: none;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.06);
}

/* Disable bulk action bar in read-only mode */
.uar-review-container.uar-readonly .uar-bulk-bar {
  display: none !important;
}


/* ============================================
   Audit Mode Styles
   ============================================ */

/* Audit Mode Banner */
.uar-audit-banner {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin: 1rem 0;
  padding: 1rem 1.5rem;
  background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
  border: 1px solid #93c5fd;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(59, 130, 246, 0.1);
}

.uar-audit-banner-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  background: #3b82f6;
  border-radius: 12px;
  flex-shrink: 0;
}

.uar-audit-banner-icon svg {
  width: 28px;
  height: 28px;
  color: white;
}

.uar-audit-banner-content h3 {
  margin: 0 0 0.25rem 0;
  font-size: 1rem;
  font-weight: 700;
  color: #1e40af;
}

.uar-audit-banner-content p {
  margin: 0;
  font-size: 0.875rem;
  color: #1d4ed8;
}

.uar-audit-banner-content strong {
  color: #1e3a8a;
}

/* Audit mode container styling */
.uar-review-container.uar-audit-mode .uar-readonly-badge {
  background: linear-gradient(135deg, #3b82f6, #2563eb);
}


/* ========================================
   FORWARD MODAL & 3-DOT MENU STYLES
   ======================================== */

/* 3-Dot More Actions Menu */
.uar-more-actions-menu {
  position: relative;
  display: inline-block;
}

.uar-more-actions-btn {
  width: 40px;
  height: 40px;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f3f4f6;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.uar-more-actions-btn:hover {
  background: #e5e7eb;
  border-color: #d1d5db;
}

.uar-more-actions-btn i {
  width: 20px;
  height: 20px;
  color: #6b7280;
}

.uar-more-actions-dropdown {
  position: absolute;
  top: 100%;
  right: 0;
  margin-top: 4px;
  background: white;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
  min-width: 200px;
  z-index: 1000;
  display: none;
  overflow: hidden;
}

.uar-more-actions-dropdown.show {
  display: block;
}

.more-action-option {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 12px 16px;
  background: none;
  border: none;
  text-align: left;
  cursor: pointer;
  font-size: 14px;
  color: #374151;
  transition: background 0.15s ease;
}

.more-action-option:hover {
  background: #f3f4f6;
}

.more-action-option i {
  width: 18px;
  height: 18px;
  color: #6b7280;
}

.more-action-option:first-child {
  border-bottom: 1px solid #f3f4f6;
}

/* Forward Modal Overlay */
.forward-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10000;
  backdrop-filter: blur(2px);
}

/* Forward Modal */
.forward-modal {
  background: white;
  border-radius: 12px;
  width: 100%;
  max-width: 520px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.25);
}

.forward-modal-header {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 24px;
  border-bottom: 1px solid #e5e7eb;
}

.forward-modal-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.forward-modal-icon.consultation {
  background: linear-gradient(135deg, #dbeafe, #bfdbfe);
  color: #2563eb;
}

.forward-modal-icon.reassign {
  background: linear-gradient(135deg, #fef3c7, #fde68a);
  color: #d97706;
}

.forward-modal-icon i {
  width: 24px;
  height: 24px;
}

.forward-modal-header h2 {
  margin: 0 0 4px 0;
  font-size: 18px;
  font-weight: 600;
  color: #111827;
}

.forward-modal-header p {
  margin: 0;
  font-size: 14px;
  color: #6b7280;
}

.forward-modal-close {
  margin-left: auto;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: none;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  color: #9ca3af;
  transition: all 0.2s ease;
}

.forward-modal-close:hover {
  background: #f3f4f6;
  color: #6b7280;
}

.forward-modal-close i {
  width: 20px;
  height: 20px;
}

.forward-modal-body {
  padding: 24px;
}

.forward-form-group {
  margin-bottom: 20px;
}

.forward-form-group label {
  display: block;
  font-size: 14px;
  font-weight: 500;
  color: #374151;
  margin-bottom: 8px;
}

.forward-form-group label .required {
  color: #ef4444;
}

.forward-user-search {
  position: relative;
}

.forward-user-search input {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  font-size: 14px;
  transition: all 0.2s ease;
}

.forward-user-search input:focus {
  outline: none;
  border-color: #2563eb;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.forward-user-results {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  margin-top: 4px;
  background: white;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
  max-height: 240px;
  overflow-y: auto;
  display: none;
  z-index: 100;
}

.forward-user-option {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  cursor: pointer;
  transition: background 0.15s ease;
}

.forward-user-option:hover {
  background: #f3f4f6;
}

.forward-user-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, #6366f1, #8b5cf6);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 600;
  flex-shrink: 0;
}

.forward-user-details {
  flex: 1;
  min-width: 0;
}

.forward-user-name {
  font-size: 14px;
  font-weight: 500;
  color: #111827;
}

.forward-user-email {
  font-size: 12px;
  color: #6b7280;
}

.forward-user-role {
  font-size: 11px;
  color: #9ca3af;
  margin-top: 2px;
}

.forward-no-results {
  padding: 16px;
  text-align: center;
  color: #9ca3af;
  font-size: 14px;
}

.forward-selected-user {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  background: #f0f9ff;
  border: 1px solid #bae6fd;
  border-radius: 8px;
  margin-top: 8px;
}

.selected-user-info {
  flex: 1;
}

.selected-user-name {
  font-size: 14px;
  font-weight: 500;
  color: #0369a1;
}

.selected-user-email {
  font-size: 12px;
  color: #0284c7;
  display: block;
}

.forward-selected-user button {
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: none;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  color: #0369a1;
}

.forward-selected-user button:hover {
  background: rgba(3, 105, 161, 0.1);
}

.forward-selected-user button i {
  width: 16px;
  height: 16px;
}

.forward-form-group textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  font-size: 14px;
  font-family: inherit;
  resize: vertical;
  min-height: 100px;
  transition: all 0.2s ease;
}

.forward-form-group textarea:focus {
  outline: none;
  border-color: #2563eb;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.forward-char-count {
  text-align: right;
  font-size: 12px;
  color: #9ca3af;
  margin-top: 4px;
}

.forward-warning {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px 16px;
  background: #fef3c7;
  border: 1px solid #fcd34d;
  border-radius: 8px;
  margin-top: 20px;
}

.forward-warning i {
  width: 20px;
  height: 20px;
  color: #d97706;
  flex-shrink: 0;
  margin-top: 1px;
}

.forward-warning span {
  font-size: 13px;
  color: #92400e;
  line-height: 1.5;
}

.forward-modal-footer {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  padding: 16px 24px;
  border-top: 1px solid #e5e7eb;
  background: #f9fafb;
}

.forward-modal-footer .btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  font-size: 14px;
  font-weight: 500;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.forward-modal-footer .btn-secondary {
  background: white;
  border: 1px solid #d1d5db;
  color: #374151;
}

.forward-modal-footer .btn-secondary:hover {
  background: #f3f4f6;
  border-color: #9ca3af;
}

.forward-modal-footer .btn-primary {
  background: #2563eb;
  border: 1px solid #2563eb;
  color: white;
}

.forward-modal-footer .btn-primary:hover {
  background: #1d4ed8;
}

.forward-modal-footer .btn-danger {
  background: #dc2626;
  border: 1px solid #dc2626;
  color: white;
}

.forward-modal-footer .btn-danger:hover {
  background: #b91c1c;
}

.forward-modal-footer .btn i {
  width: 16px;
  height: 16px;
}


/* ========================================
   FORWARDED/REASSIGNED NOTICE STYLES
   ======================================== */

.uar-forwarded-notice {
  display: flex;
  align-items: flex-start;
  gap: 24px;
  max-width: 600px;
  margin: 80px auto;
  padding: 32px;
  background: white;
  border-radius: 16px;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
}

.uar-forwarded-icon {
  width: 64px;
  height: 64px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.uar-forwarded-icon.reassign {
  background: linear-gradient(135deg, #fef3c7, #fde68a);
  color: #d97706;
}

.uar-forwarded-icon.consultation {
  background: linear-gradient(135deg, #dbeafe, #bfdbfe);
  color: #2563eb;
}

.uar-forwarded-icon i {
  width: 32px;
  height: 32px;
}

.uar-forwarded-content h2 {
  margin: 0 0 8px 0;
  font-size: 20px;
  font-weight: 600;
  color: #111827;
}

.uar-forwarded-content > p {
  margin: 0 0 20px 0;
  font-size: 15px;
  color: #6b7280;
  line-height: 1.6;
}

.uar-forwarded-meta {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 16px;
  background: #f9fafb;
  border-radius: 8px;
  margin-bottom: 20px;
}

.uar-forwarded-meta .meta-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  color: #4b5563;
}

.uar-forwarded-meta .meta-item i {
  width: 16px;
  height: 16px;
  color: #9ca3af;
}

.uar-forwarded-actions {
  display: flex;
  gap: 12px;
}

.uar-forwarded-actions .btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  font-size: 14px;
  font-weight: 500;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.uar-forwarded-actions .btn-secondary {
  background: white;
  border: 1px solid #d1d5db;
  color: #374151;
}

.uar-forwarded-actions .btn-secondary:hover {
  background: #f3f4f6;
  border-color: #9ca3af;
}

.uar-forwarded-actions .btn i {
  width: 16px;
  height: 16px;
}

/* Consultation Banner (when forwarded but viewing) */
.uar-consultation-banner {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 24px;
  background: linear-gradient(135deg, #eff6ff, #dbeafe);
  border: 1px solid #93c5fd;
  border-radius: 12px;
  margin-bottom: 20px;
}

.uar-consultation-banner-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: #2563eb;
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
}

.uar-consultation-banner-icon i {
  width: 20px;
  height: 20px;
}

.uar-consultation-banner-content {
  flex: 1;
}

.uar-consultation-banner-content h3 {
  margin: 0 0 4px 0;
  font-size: 15px;
  font-weight: 600;
  color: #1e40af;
}

.uar-consultation-banner-content p {
  margin: 0;
  font-size: 13px;
  color: #3b82f6;
}


/* Forward Context Banner (when viewing forwarded items) */
.uar-forward-banner {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 16px 24px;
  background: linear-gradient(135deg, #fef3c7, #fde68a);
  border: 1px solid #f59e0b;
  border-radius: 12px;
  margin-bottom: 20px;
}

.uar-forward-banner-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: #f59e0b;
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.uar-forward-banner-icon i {
  width: 22px;
  height: 22px;
}

.uar-forward-banner-content {
  flex: 1;
  min-width: 0;
}

.uar-forward-banner-content h3 {
  margin: 0 0 6px 0;
  font-size: 16px;
  font-weight: 600;
  color: #92400e;
}

.uar-forward-banner-content p {
  margin: 0 0 8px 0;
  font-size: 14px;
  color: #b45309;
  line-height: 1.5;
}

.uar-forward-comment {
  padding: 10px 14px;
  background: rgba(255, 255, 255, 0.7);
  border-radius: 8px;
  font-size: 13px;
  color: #78350f;
  font-style: italic;
  border-left: 3px solid #f59e0b;
}

.uar-forward-banner-actions {
  flex-shrink: 0;
}

.uar-forward-banner-actions .btn {
  white-space: nowrap;
}


/* Return Input Modal Styles */
.forward-modal-icon.return {
  background: linear-gradient(135deg, #059669, #10b981);
}

.forward-original-message {
  margin-bottom: 16px;
  padding: 12px 16px;
  background: #f8fafc;
  border-radius: 8px;
  border-left: 3px solid #3b82f6;
}

.forward-original-message label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: #64748b;
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.forward-original-content {
  font-size: 14px;
  color: #334155;
  font-style: italic;
  line-height: 1.5;
}

.forward-summary {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px 14px;
  background: #f0fdf4;
  border-radius: 8px;
  margin-top: 16px;
}

.forward-summary i {
  width: 18px;
  height: 18px;
  color: #16a34a;
  flex-shrink: 0;
  margin-top: 1px;
}

.forward-summary span {
  font-size: 13px;
  color: #166534;
  line-height: 1.5;
}

.forward-summary strong {
  font-weight: 600;
}
