/* Ordenatec summary delivery v1.
   This stylesheet is intentionally owned by the portal so AI-generated HTML
   cannot leave the tender summary unstyled. */

.report-content {
  margin-top: 14px !important;
}

/* Production sanitizes the AI HTML and uses this fallback when an older or
   newer class contract is received. Collapse source indentation so it can
   never turn into large blank areas again. */
.report-content .report-raw {
  width: 100% !important;
  max-width: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
  white-space: normal !important;
  color: inherit !important;
  font: inherit !important;
}

.report-content .ordenatec-summary,
.report-content .ordenatec-summary * {
  box-sizing: border-box;
}

.report-content .ordenatec-summary.email-wrap {
  width: calc(100% - 32px) !important;
  max-width: 900px !important;
  margin: 18px auto 44px !important;
  padding: 0 !important;
  overflow: hidden !important;
  color: #14213a !important;
  background: #ffffff !important;
  border: 1px solid #d8e5f4 !important;
  border-radius: 20px !important;
  box-shadow: 0 18px 48px rgba(24, 56, 96, 0.1) !important;
  font-family: Inter, Arial, Helvetica, sans-serif !important;
  font-size: 15px !important;
  line-height: 1.55 !important;
}

.report-content .ordenatec-summary .top-bar {
  display: block !important;
  width: 100% !important;
  height: 6px !important;
  margin: 0 !important;
  padding: 0 !important;
  background: linear-gradient(90deg, #175cff 0%, #00a9c7 52%, #22a06b 100%) !important;
  border-radius: 0 !important;
}

.report-content .ordenatec-summary > h1 {
  margin: 0 !important;
  padding: 24px 28px 4px !important;
  color: #0f2344 !important;
  font-size: 25px !important;
  line-height: 1.2 !important;
  font-weight: 800 !important;
  letter-spacing: -0.03em !important;
}

.report-content .ordenatec-summary .report-header-sub {
  width: 100% !important;
  margin: 0 !important;
  padding: 0 28px 20px !important;
  color: #63728a !important;
  border-bottom: 1px solid #e6edf6 !important;
  font-size: 13px !important;
  line-height: 1.5 !important;
}

.report-content .ordenatec-summary .content-body {
  width: 100% !important;
  margin: 0 !important;
  padding: 22px 28px 30px !important;
}

.report-content .ordenatec-summary p {
  margin: 0 0 12px !important;
  color: #415574 !important;
  font-size: 14px !important;
  line-height: 1.6 !important;
}

.report-content .ordenatec-summary strong {
  color: #13233d !important;
  font-weight: 750 !important;
}

.report-content .ordenatec-summary .quick-view {
  width: 100% !important;
  margin: 0 0 16px !important;
  padding: 20px !important;
  color: #13233d !important;
  background: linear-gradient(145deg, #f4f8ff 0%, #ffffff 78%) !important;
  border: 1px solid #cfe0f6 !important;
  border-radius: 15px !important;
  box-shadow: 0 8px 24px rgba(23, 92, 255, 0.07) !important;
}

.report-content .ordenatec-summary .quick-view h2 {
  margin: 0 0 14px !important;
  color: #13233d !important;
  font-size: 18px !important;
  line-height: 1.25 !important;
  font-weight: 800 !important;
}

.report-content .ordenatec-summary .decision {
  display: inline-flex !important;
  width: auto !important;
  max-width: 100% !important;
  min-height: 30px !important;
  align-items: center !important;
  margin: 0 0 13px !important;
  padding: 6px 11px !important;
  border-radius: 999px !important;
  font-size: 12px !important;
  line-height: 1.2 !important;
  font-weight: 800 !important;
  letter-spacing: 0.035em !important;
}

.report-content .ordenatec-summary .decision-go {
  color: #067647 !important;
  background: #eafbf2 !important;
  border: 1px solid #9fe0bf !important;
}

.report-content .ordenatec-summary .decision-conditional {
  color: #9a5208 !important;
  background: #fff6df !important;
  border: 1px solid #f4ce80 !important;
}

.report-content .ordenatec-summary .decision-nogo {
  color: #b42318 !important;
  background: #fff0ee !important;
  border: 1px solid #f3aaa3 !important;
}

.report-content .ordenatec-summary .highlight-row,
.report-content .ordenatec-summary .action-row {
  width: 100% !important;
  margin: 0 0 8px !important;
  padding: 11px 13px !important;
  background: #ffffff !important;
  border: 1px solid #dce6f2 !important;
  border-radius: 10px !important;
}

.report-content .ordenatec-summary .action-row {
  color: #29415f !important;
  border-left: 4px solid #175cff !important;
  font-size: 13px !important;
  line-height: 1.5 !important;
}

.report-content .ordenatec-summary .data-label {
  display: block !important;
  margin: 0 0 3px !important;
  color: #70819a !important;
  font-size: 10px !important;
  line-height: 1.35 !important;
  font-weight: 800 !important;
  letter-spacing: 0.055em !important;
  text-transform: uppercase !important;
}

.report-content .ordenatec-summary .data-value {
  display: block !important;
  color: #1b3152 !important;
  font-size: 13px !important;
  line-height: 1.55 !important;
  font-weight: 600 !important;
}

.report-content .ordenatec-summary .critical-strip {
  width: 100% !important;
  margin: 13px 0 0 !important;
  padding: 11px 13px !important;
  color: #a61b12 !important;
  background: #fff0ee !important;
  border: 1px solid #f2aaa4 !important;
  border-left: 5px solid #cf3025 !important;
  border-radius: 10px !important;
  font-size: 13px !important;
  line-height: 1.5 !important;
  font-weight: 700 !important;
}

.report-content .ordenatec-summary details.accordion {
  display: block !important;
  width: 100% !important;
  margin: 0 0 11px !important;
  overflow: hidden !important;
  background: #ffffff !important;
  border: 1px solid #dce6f2 !important;
  border-left-width: 5px !important;
  border-radius: 13px !important;
  box-shadow: 0 4px 16px rgba(28, 52, 84, 0.045) !important;
}

.report-content .ordenatec-summary details.accordion > summary {
  display: block !important;
  position: relative !important;
  width: 100% !important;
  margin: 0 !important;
  padding: 14px 50px 14px 16px !important;
  cursor: pointer !important;
  list-style: none !important;
  user-select: none !important;
}

.report-content .ordenatec-summary details.accordion > summary::-webkit-details-marker {
  display: none !important;
}

.report-content .ordenatec-summary details.accordion > summary::after {
  content: "+" !important;
  position: absolute !important;
  top: 50% !important;
  right: 16px !important;
  width: 24px !important;
  height: 24px !important;
  margin-top: -12px !important;
  color: currentColor !important;
  background: rgba(255, 255, 255, 0.78) !important;
  border: 1px solid currentColor !important;
  border-radius: 999px !important;
  font-size: 17px !important;
  line-height: 21px !important;
  text-align: center !important;
  font-weight: 500 !important;
}

.report-content .ordenatec-summary details.accordion[open] > summary::after {
  content: "−" !important;
}

.report-content .ordenatec-summary .accordion-summary,
.report-content .ordenatec-summary .summary-title,
.report-content .ordenatec-summary .summary-takeaway {
  display: block !important;
}

.report-content .ordenatec-summary .summary-title {
  margin: 0 0 2px !important;
  font-size: 14px !important;
  line-height: 1.35 !important;
  font-weight: 800 !important;
}

.report-content .ordenatec-summary .summary-takeaway {
  color: #586b86 !important;
  font-size: 12px !important;
  line-height: 1.45 !important;
  font-weight: 550 !important;
}

.report-content .ordenatec-summary .accordion-body {
  width: 100% !important;
  margin: 0 !important;
  padding: 14px 16px 16px !important;
  background: #ffffff !important;
  border-top: 1px solid #e5edf6 !important;
}

.report-content .ordenatec-summary details.economy {
  border-left-color: #13945b !important;
}
.report-content .ordenatec-summary details.economy > summary {
  color: #087443 !important;
  background: #eafaf2 !important;
}

.report-content .ordenatec-summary details.exclusions {
  border-left-color: #d23b30 !important;
}
.report-content .ordenatec-summary details.exclusions > summary {
  color: #ad241a !important;
  background: #fff0ee !important;
}

.report-content .ordenatec-summary details.scoring {
  border-left-color: #7955c8 !important;
}
.report-content .ordenatec-summary details.scoring > summary {
  color: #6240af !important;
  background: #f4f0ff !important;
}

.report-content .ordenatec-summary details.risks {
  border-left-color: #df8215 !important;
}
.report-content .ordenatec-summary details.risks > summary {
  color: #9a560a !important;
  background: #fff6e6 !important;
}

.report-content .ordenatec-summary details.documents {
  border-left-color: #0799a8 !important;
}
.report-content .ordenatec-summary details.documents > summary {
  color: #067785 !important;
  background: #eafafc !important;
}

.report-content .ordenatec-summary details.execution {
  border-left-color: #66768e !important;
}
.report-content .ordenatec-summary details.execution > summary {
  color: #34445c !important;
  background: #f3f6fa !important;
}

.report-content .ordenatec-summary details.pending {
  border-left-color: #bf7317 !important;
}
.report-content .ordenatec-summary details.pending > summary {
  color: #8b520d !important;
  background: #fff8eb !important;
}

.report-content .ordenatec-summary .data-row,
.report-content .ordenatec-summary .finding-card,
.report-content .ordenatec-summary .criterion-card,
.report-content .ordenatec-summary .risk-card,
.report-content .ordenatec-summary .pending-row {
  width: 100% !important;
  margin: 0 0 8px !important;
  padding: 11px 12px !important;
  background: #f8fafc !important;
  border: 1px solid #e3eaf3 !important;
  border-radius: 9px !important;
}

.report-content .ordenatec-summary .accordion-body > :last-child {
  margin-bottom: 0 !important;
}

.report-content .ordenatec-summary .document-list ul {
  margin: 0 !important;
  padding: 0 0 0 20px !important;
  color: #29415f !important;
}

.report-content .ordenatec-summary .document-list li {
  margin: 0 0 8px !important;
  padding-left: 2px !important;
  color: #29415f !important;
  font-size: 13px !important;
  line-height: 1.5 !important;
}

.report-content .ordenatec-summary .final-call {
  width: 100% !important;
  margin: 17px 0 0 !important;
  padding: 16px !important;
  color: #18385f !important;
  background: #eef5ff !important;
  border: 1px solid #c8dcf7 !important;
  border-left: 5px solid #175cff !important;
  border-radius: 11px !important;
  font-size: 13px !important;
  line-height: 1.55 !important;
}

.report-content .ordenatec-summary .footer {
  width: 100% !important;
  margin: 15px 0 0 !important;
  padding: 0 !important;
  color: #6a7a91 !important;
  font-size: 13px !important;
}

@media (max-width: 760px) {
  .report-content .ordenatec-summary.email-wrap {
    width: calc(100% - 12px) !important;
    margin: 8px auto 28px !important;
    border-radius: 15px !important;
  }

  .report-content .ordenatec-summary > h1 {
    padding: 20px 18px 4px !important;
    font-size: 22px !important;
  }

  .report-content .ordenatec-summary .report-header-sub {
    padding: 0 18px 17px !important;
  }

  .report-content .ordenatec-summary .content-body {
    padding: 17px 14px 22px !important;
  }

  .report-content .ordenatec-summary .quick-view {
    padding: 15px !important;
  }

  .report-content .ordenatec-summary details.accordion > summary {
    padding: 13px 44px 13px 13px !important;
  }
}

@media print {
  .report-content .ordenatec-summary.email-wrap {
    width: 100% !important;
    max-width: none !important;
    margin: 0 !important;
    border: 0 !important;
    box-shadow: none !important;
  }

  .report-content .ordenatec-summary details.accordion > .accordion-body {
    display: block !important;
  }
}
