/* V2.14.1 — Pilot Usability, Workflow & Print Refinement */

/* Cross-check actions are deliberately distinct from RAG findings. */
.ragBadge.CrossCheck{background:#5f5670;color:#fff}
.actionDetails.CrossCheck{border-left:5px solid #705faf}
.actionDetails.CrossCheck summary{background:#f3f0f7}
.priority.CrossCheck{border-left-color:#705faf}
.v2141CrossActionTools{display:flex;align-items:center;gap:10px;flex-wrap:wrap;margin-top:16px;padding-top:14px;border-top:1px solid #e7e1ed}
.v2141CrossActionTools small{color:#6b6373}
.dangerSecondary{background:#fff!important;color:#8d2f2f!important;border:1px solid #c98a8a!important}
.v2141ActionSummary{grid-template-columns:repeat(5,1fr)}

/* Failed sign-in support: keep the help route obvious but secondary to sign-in/reset. */
#signInSupportLink{margin-top:8px}
#accountSupportLink[hidden]{display:none!important}

/* Clean on-screen Action Plan report table. */
.v2141ActionPlanReport{max-width:1380px!important}
.v2141PrintStats{grid-template-columns:repeat(5,1fr)}
.v2141ActionPrintTable{width:100%;border-collapse:collapse;table-layout:fixed;font-size:11px;margin-top:18px}
.v2141ActionPrintTable th,.v2141ActionPrintTable td{border:1px solid #ddd6e5;padding:8px;vertical-align:top;text-align:left;overflow-wrap:anywhere;word-break:normal}
.v2141ActionPrintTable th{background:#eee8f6;color:#2b176f}
.v2141ActionPrintTable td b,.v2141ActionPrintTable td small{display:block}
.v2141ActionPrintTable td small{margin-top:4px;color:#62596b;line-height:1.35}
.v2141ActionNo{display:inline-grid;place-items:center;min-width:22px;height:22px;margin:0 5px 5px 0;border-radius:6px;background:#eee8f6;color:#2b176f;font-weight:800}
.v2141ActionPrintTable .c-source{width:14%}.v2141ActionPrintTable .c-finding{width:19%}.v2141ActionPrintTable .c-action{width:20%}.v2141ActionPrintTable .c-lead{width:8%}.v2141ActionPrintTable .c-target{width:9%}.v2141ActionPrintTable .c-difference{width:18%}.v2141ActionPrintTable .c-progress{width:12%}

@media(max-width:900px){
 .v2141ActionSummary,.v2141PrintStats{grid-template-columns:1fr 1fr}
 .v2141ActionPrintTable{font-size:10px;min-width:1050px}
 #report.v2141ActionPlanReport{overflow-x:auto}
}

/* Dedicated landscape print page for the Improvement Action Plan only. */
@page actionPlanLandscape{size:A4 landscape;margin:10mm 10mm 12mm}
@media print{
 #report.v2141ActionPlanReport{page:actionPlanLandscape!important;max-width:none!important;margin:0!important;padding:0!important;font-family:Arial,Helvetica,sans-serif!important;color:#111!important;font-size:9pt!important;line-height:1.28!important;overflow:visible!important}
 #report.v2141ActionPlanReport .printbar{display:none!important}
 #report.v2141ActionPlanReport>img{display:block!important;width:52mm!important;max-height:18mm!important;object-fit:contain!important;margin:0 0 3mm!important}
 #report.v2141ActionPlanReport>h1{font-size:18pt!important;line-height:1.05!important;color:#2b176f!important;margin:0 0 2mm!important}
 #report.v2141ActionPlanReport .v211ReportMeta{display:grid!important;grid-template-columns:repeat(5,minmax(0,1fr))!important;gap:1.5mm 3mm!important;margin:0 0 3mm!important;padding:2mm 0!important;border-top:1px solid #cfc5dd!important;border-bottom:1px solid #cfc5dd!important}
 #report.v2141ActionPlanReport .v211ReportMeta span{font-size:7.6pt!important;min-width:0!important}
 #report.v2141ActionPlanReport .v211ReportMeta b{display:block!important;font-size:6.8pt!important;color:#6b6373!important;margin-bottom:.5mm!important}
 #report.v2141ActionPlanReport>.conf{margin:0 0 3mm!important;padding:2.3mm 3mm!important;background:#f5f2f8!important;border:1px solid #d3c9de!important;border-left:2.5mm solid #705faf!important;border-radius:1.5mm!important;font-size:8pt!important;print-color-adjust:exact;-webkit-print-color-adjust:exact}
 #report.v2141ActionPlanReport .v2141PrintStats{display:grid!important;grid-template-columns:repeat(5,1fr)!important;gap:1.5mm!important;margin:0 0 3mm!important}
 #report.v2141ActionPlanReport .v2141PrintStats>div{padding:1.5mm 2mm!important;border:1px solid #d7d0df!important;border-radius:1mm!important;background:#faf9fc!important;print-color-adjust:exact;-webkit-print-color-adjust:exact}
 #report.v2141ActionPlanReport .v2141PrintStats span{font-size:6.8pt!important}
 #report.v2141ActionPlanReport .v2141PrintStats b{font-size:12pt!important;margin-top:.3mm!important}
 #report.v2141ActionPlanReport .v2141ActionPrintTable{width:100%!important;table-layout:fixed!important;border-collapse:collapse!important;font-size:7.4pt!important;line-height:1.23!important;margin:0!important}
 #report.v2141ActionPlanReport .v2141ActionPrintTable thead{display:table-header-group!important}
 #report.v2141ActionPlanReport .v2141ActionPrintTable th{background:#eee8f6!important;color:#2b176f!important;font-size:7pt!important;padding:1.5mm 1.4mm!important;border:1px solid #bfb7c7!important;print-color-adjust:exact;-webkit-print-color-adjust:exact}
 #report.v2141ActionPlanReport .v2141ActionPrintTable td{padding:1.6mm 1.4mm!important;border:1px solid #ccc!important;vertical-align:top!important;overflow-wrap:anywhere!important}
 #report.v2141ActionPlanReport .v2141ActionPrintBody{break-inside:avoid-page!important;page-break-inside:avoid!important}
 #report.v2141ActionPlanReport .v2141ActionPrintBody tr{break-inside:avoid-page!important;page-break-inside:avoid!important}
 #report.v2141ActionPlanReport .v2141ActionPrintTable td small{font-size:6.6pt!important;line-height:1.2!important;margin-top:.8mm!important}
 #report.v2141ActionPlanReport .v2141ActionNo{min-width:5mm!important;height:5mm!important;border-radius:1mm!important;font-size:7pt!important;margin:0 1mm 1mm 0!important}
 #report.v2141ActionPlanReport .ragBadge{font-size:6.5pt!important;padding:.7mm 1.1mm!important;margin-bottom:1mm!important;print-color-adjust:exact;-webkit-print-color-adjust:exact}
 #report.v2141ActionPlanReport .reportDisclaimer{font-size:6.7pt!important;margin:3mm 0 0!important;padding-top:1.5mm!important;break-inside:avoid!important}
}

/* V2.14.1 final QA refinements: keep report actions visible at narrow screen widths
   and ensure the dedicated Action Plan print contains the report only. */
@media(max-width:900px){
 #report.fullReviewReport .actionTableWrap,
 #report.qualitySummaryReport .actionTableWrap{display:block!important;overflow-x:auto!important}
}

@media print{
 /* The base Hub has several public/login/modal surfaces outside #app. For an
    Action Plan print, suppress everything except the report itself. */
 body:has(#report.v2141ActionPlanReport:not([hidden])) > *{display:none!important}
 body:has(#report.v2141ActionPlanReport:not([hidden])) > #app{display:block!important}
 body:has(#report.v2141ActionPlanReport:not([hidden])) > #app > *{display:none!important}
 body:has(#report.v2141ActionPlanReport:not([hidden])) > #app > #report{display:block!important}
 body:has(#report.v2141ActionPlanReport:not([hidden])) .modal{display:none!important}

 #report.fullReviewReport .actionTableWrap,
 #report.qualitySummaryReport .actionTableWrap{display:block!important;overflow:visible!important}
}
