/* =========================================
   Report Page Layout
   ========================================= */

.report-container {
  max-width: 800px;
  margin: 0 auto;
  font-family: 'Inter', 'Segoe UI', sans-serif;
  color: #1a1a2e;
  line-height: 1.6;
  word-spacing: normal;
  letter-spacing: normal;
}

.report-container * {
  word-spacing: normal;
  letter-spacing: normal;
  word-break: break-word;
  overflow-wrap: break-word;
}

.report-page {
  background: #fff;
  padding: 48px 48px 80px;
  margin-bottom: 24px;
  border-radius: 12px;
  box-shadow: 0 1px 8px rgba(0,0,0,0.06);
  position: relative;
  min-height: auto;
  width: 100%;
  max-width: 800px;
  overflow: visible;
}

.page-break {
  page-break-after: always;
}

/* Ensure all report pages have consistent width */
.report-page {
  box-sizing: border-box !important;
}

.report-page > * {
  box-sizing: border-box !important;
  max-width: 100% !important;
}

/* =========================================
   Header
   ========================================= */

.report-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 16px;
  gap: 20px;
}

.report-header-left {
  flex: 1;
  min-width: 0;
}

.report-header-right {
  flex-shrink: 0;
  display: flex;
  align-items: flex-start;
  justify-content: flex-end;
}

.report-badge {
  display: inline-block;
  background: #f0edff;
  color: #6366f1;
  font-size: 12px;
  font-weight: 600;
  padding: 6px 16px;
  border-radius: 20px;
  margin-bottom: 16px;
  border: 1px solid #e0dbff;
  word-spacing: normal;
  letter-spacing: 0.3px;
}

.report-title {
  font-size: 26px;
  font-weight: 700;
  color: #111827;
  margin: 0 0 8px 0;
  line-height: 1.3;
  word-spacing: normal;
  letter-spacing: 0.3px;
}

.report-title-highlight {
  color: #6366f1;
}

.report-subtitle {
  font-size: 14px;
  color: #6b7280;
  margin: 0;
  word-spacing: normal;
  letter-spacing: 0.3px;
}

.report-logo {
  max-height: 50px;
  height: 50px;
  width: auto;
  max-width: 150px;
  object-fit: contain;
  display: block;
}

.report-page-header-right {
  text-align: right;
  margin-bottom: 24px;
}

.report-logo-small {
  max-height: 40px;
  height: 40px;
  width: auto;
  object-fit: contain;
  display: block;
  margin-left: auto;
}

.report-divider {
  border: none;
  border-top: 1px solid #e5e7eb;
  margin: 24px 0;
}

/* =========================================
   Intro & Sections
   ========================================= */

.report-intro p {
  font-size: 13.5px;
  color: #374151;
  margin-bottom: 12px;
  word-spacing: normal;
  letter-spacing: 0.3px;
  word-break: break-word;
  overflow-wrap: break-word;
}

.report-section {
  margin-bottom: 32px;
}

.report-section-title {
  font-size: 18px;
  font-weight: 700;
  color: #111827;
  margin: 0 0 12px 0;
  word-spacing: normal;
  letter-spacing: 0.3px;
}

.report-section-title-purple {
  color: #6366f1;
}

.report-section-title-center {
  font-size: 22px;
  font-weight: 700;
  color: #111827;
  text-align: center;
  margin: 0 0 8px 0;
  word-spacing: normal;
  letter-spacing: 0.3px;
}

.report-text-center {
  text-align: center;
  color: #6b7280;
  font-size: 13px;
  max-width: 560px;
  margin: 0 auto 24px;
  word-spacing: normal;
  letter-spacing: normal;
  word-break: break-word;
  overflow-wrap: break-word;
}

.report-section p {
  font-size: 13.5px;
  color: #374151;
  margin-bottom: 12px;
  word-spacing: normal;
  letter-spacing: normal;
  word-break: break-word;
  overflow-wrap: break-word;
}

.report-role-list {
  padding-left: 20px;
  margin: 12px 0;
}

.report-role-list li {
  font-size: 13px;
  color: #374151;
  margin-bottom: 10px;
  line-height: 1.6;
  word-spacing: normal;
  letter-spacing: 0.3px;
}

.report-role-list li strong {
  color: #111827;
}

/* =========================================
   License Cards (Primary Plan & Addon)
   ========================================= */

.license-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 16px;
}

.license-card {
  background: #fafafe;
  border: 1px solid #e8e5f5;
  border-radius: 12px;
  padding: 20px;
  position: relative;
}

.license-card-label {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  color: #6b7280;
  margin-bottom: 8px;
  word-spacing: normal;
  letter-spacing: 0.3px;
}

.license-card-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  display: inline-block;
}

.license-card-dot.kw { background: #6366f1; }
.license-card-dot.fw { background: #8b5cf6; }
.license-card-dot.ex { background: #ec4899; }

.license-card-name {
  font-size: 16px;
  font-weight: 700;
  color: #111827;
  margin: 0 0 4px 0;
  word-spacing: normal;
  letter-spacing: 0.3px;
}

.license-card-users {
  font-size: 13px;
  color: #6b7280;
  margin: 0 0 12px 0;
  word-spacing: normal;
  letter-spacing: 0.3px;
}

.license-card-desc {
  font-size: 12.5px;
  color: #6b7280;
  line-height: 1.5;
  margin: 0;
  word-spacing: normal;
  letter-spacing: 0.3px;
  word-break: break-word;
  overflow-wrap: break-word;
}

/* =========================================
   Add-on Feature Cards (2-col grid)
   ========================================= */

.addon-cards-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin-top: 24px;
}

.addon-feature-card {
  background: #ffffff;
  border: 1.5px solid #e5e7eb;
  border-radius: 16px;
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  word-spacing: normal;
  letter-spacing: normal;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
  transition: all 0.2s ease;
}

.addon-feature-card:hover {
  border-color: #d1d5db;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.addon-feature-card.single-center {
  grid-column: 1 / -1;
  max-width: 50%;
  margin: 0 auto;
}

.addon-card-header {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

.addon-card-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  position: relative;
  line-height: 1;
  padding: 8px;
}

.addon-card-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: brightness(0) invert(1);
}

/* Icon colors matching Figma */
.addon-card-icon.purple { 
  background: #8b5cf6;
}
.addon-card-icon.orange { 
  background: #f59e0b;
}
.addon-card-icon.blue { 
  background: #3b82f6;
}
.addon-card-icon.green { 
  background: #10b981;
}
.addon-card-icon.pink { 
  background: #ec4899;
}
.addon-card-icon.indigo { 
  background: #6366f1;
}
.addon-card-icon.teal { 
  background: #14b8a6;
}

.addon-card-title-group {
  flex: 1;
}

.addon-card-title-group h4 {
  font-size: 16px;
  font-weight: 700;
  color: #111827;
  margin: 0 0 4px 0;
  word-spacing: normal;
  letter-spacing: -0.01em;
  line-height: 1.3;
}

.addon-card-title-group p {
  font-size: 13px;
  color: #8b5cf6;
  margin: 0;
  word-spacing: normal;
  letter-spacing: 0;
  font-weight: 500;
}

.addon-card-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 4px;
}

.addon-badge {
  font-size: 11px;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: 16px;
  white-space: nowrap;
  letter-spacing: 0.01em;
}

/* Badge colors matching Figma */
.addon-badge.included { 
  background: #dbeafe;
  color: #1e40af;
  border: 1px solid #bfdbfe;
}
.addon-badge.recommended { 
  background: #e0e7ff;
  color: #4338ca;
  border: 1px solid #c7d2fe;
}
.addon-badge.optional { 
  background: #dbeafe;
  color: #1e40af;
  border: 1px solid #bfdbfe;
}
.addon-badge.not-available { 
  background: #f3f4f6;
  color: #6b7280;
  border: 1px solid #e5e7eb;
}

.addon-card-feature {
  font-size: 13px;
  color: #6b7280;
  line-height: 1.6;
  margin: 0;
  word-spacing: normal;
  letter-spacing: 0;
  word-break: break-word;
  overflow-wrap: break-word;
}

/* =========================================
   Pricing At a Glance
   ========================================= */

.pricing-glance {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 20px;
}

.pricing-box {
  border-radius: 14px;
  padding: 28px 20px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.pricing-box.neutral {
  background: #f9fafb;
  border: 1px solid #e5e7eb;
}

.pricing-box.highlight {
  background: linear-gradient(135deg, #7c3aed 0%, #6366f1 100%);
  color: #fff;
  border: none;
}

.pricing-box.savings {
  background: #fdf2f8;
  border: 1px solid #fce7f3;
}

.pricing-box-amount {
  font-size: 28px;
  font-weight: 800;
  margin: 0;
  word-spacing: normal;
  letter-spacing: 0.3px;
}

.pricing-box.highlight .pricing-box-amount {
  color: #fff;
}

.pricing-box.savings .pricing-box-amount {
  color: #10b981;
}

.pricing-box-label {
  font-size: 13px;
  color: #6b7280;
  margin-top: 4px;
  word-spacing: normal;
  letter-spacing: 0.3px;
}

.pricing-box.highlight .pricing-box-label {
  color: rgba(255,255,255,0.85);
}

/* =========================================
   Uplift / Advantage Table
   ========================================= */

.uplift-table {
  width: 100% !important;
  border-collapse: collapse;
  font-size: 13px;
  margin-top: 16px;
  table-layout: fixed;
  max-width: 100%;
}

.uplift-table thead th {
  background: #f9fafb;
  font-weight: 600;
  color: #374151;
  padding: 12px 16px;
  text-align: center;
  border-bottom: 2px solid #e5e7eb;
  word-spacing: normal;
  letter-spacing: normal;
}

.uplift-table thead th:first-child {
  text-align: left;
  width: 40% !important;
  min-width: 40% !important;
  max-width: 40% !important;
}

.uplift-table thead th:nth-child(2),
.uplift-table thead th:nth-child(3),
.uplift-table thead th:nth-child(4) {
  width: 20% !important;
  min-width: 20% !important;
  max-width: 20% !important;
}

.uplift-table tbody td {
  padding: 10px 16px;
  border-bottom: 1px solid #f3f4f6;
  text-align: center;
  color: #374151;
  word-spacing: normal;
  letter-spacing: 0.3px;
  word-break: break-word;
  overflow-wrap: break-word;
  font-weight: 400 !important;
  font-family: 'Inter', 'Segoe UI', sans-serif;
}

.uplift-table tbody td:first-child {
  text-align: left;
  color: #374151;
  word-spacing: normal;
  letter-spacing: 0.3px;
  word-break: break-word;
  overflow-wrap: break-word;
  font-weight: 400 !important;
  font-family: 'Inter', 'Segoe UI', sans-serif;
  width: 40% !important;
  min-width: 40% !important;
  max-width: 40% !important;
}

.uplift-table tbody td:nth-child(2),
.uplift-table tbody td:nth-child(3),
.uplift-table tbody td:nth-child(4) {
  width: 20% !important;
  min-width: 20% !important;
  max-width: 20% !important;
}

.uplift-table .category-row td {
  background: #f5f3ff;
  font-weight: 700 !important;
  color: #4f46e5;
  padding: 10px 16px;
  border-bottom: 1px solid #e8e5f5;
  word-spacing: normal;
  letter-spacing: 0.3px;
  word-break: break-word;
  overflow-wrap: break-word;
}

.uplift-check {
  color: #10b981;
  font-size: 18px;
  font-weight: bold;
}

.uplift-cross {
  color: #ef4444;
  font-size: 18px;
  font-weight: bold;
}

/* =========================================
   CTA Footer
   ========================================= */

.report-cta-footer {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 20px;
  margin-bottom: 40px;
}

.cta-card {
  background: #f5f3ff;
  border: 1px solid #e0dbff;
  border-radius: 12px;
  padding: 20px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  min-height: 80px;
  box-sizing: border-box;
}

.cta-card .cta-icon {
  font-size: 24px;
}

.cta-card strong {
  font-size: 13px;
  color: #111827;
  word-spacing: normal;
  letter-spacing: 0.3px;
}

.cta-card span {
  font-size: 11px;
  color: #6366f1;
  word-spacing: normal;
  letter-spacing: 0.3px;
}

/* =========================================
   Page Footer / Page Number
   ========================================= */

.report-page-footer {
  position: absolute;
  bottom: 24px;
  right: 48px;
  z-index: 10;
}

.report-page-number {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: #6b7280;
  font-weight: 500;
}

.report-page-bar {
  display: inline-block;
  width: 3px;
  height: 16px;
  background: #6366f1;
  border-radius: 2px;
}

/* =========================================
   Report Actions (below report)
   ========================================= */

.report-actions {
  max-width: 800px;
  margin: 24px auto;
  display: flex;
  gap: 12px;
}

.report-actions .btn {
  padding: 10px 24px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  border: 1px solid #d1d5db;
  background: #fff;
  color: #374151;
  transition: all 0.2s;
}

.report-actions .btn:hover {
  background: #f9fafb;
}

.report-actions .btn-primary {
  background: #6366f1;
  color: #fff;
  border-color: #6366f1;
}

.report-actions .btn-primary:hover {
  background: #4f46e5;
}

.report-actions .btn-outline-danger {
  color: #ef4444;
  border-color: #fca5a5;
}

/* =========================================
   Responsive
   ========================================= */

@media (max-width: 768px) {
  .report-page { padding: 24px; }
  .license-cards { grid-template-columns: 1fr; }
  .addon-cards-grid { grid-template-columns: 1fr; }
  .pricing-glance { grid-template-columns: 1fr; }
  .report-cta-footer { grid-template-columns: 1fr; }
  .addon-feature-card.single-center { max-width: 100%; }
}

@media print {
  .report-page {
    page-break-after: always;
    min-height: auto;
  }
  
  .report-cta-footer {
    page-break-inside: avoid;
    margin-bottom: 60px;
  }
  
  .cta-card {
    page-break-inside: avoid;
  }
}
