/**
 * print.css — print-media stylesheet for the FAS static site.
 *
 * Carried forward verbatim from theme/v_print.css. Coverage cannot confirm
 * print-media usage (Playwright capture only exercises screen media), so
 * this file is preserved by inspection rather than pruned by coverage data.
 */

body {background: #ffffff;color: #000000;font-family: "Domine",Arial,Helvetica,"Bitstream Vera Sans",sans-serif;font-size: 100%;line-height: 1.125em;}
p {margin: 5px 0;}
p span, .contact {font-weight: bold;}

input[type=button],input[type=submit], #navigation, .topnav, .btngroup, .region-f2, .cobersh {display:none !important;}
#secopc, .coberhldr, .tyc {display:block !important;}
#header .section {background:#FFFFFF !important;}
.page-calcula-seguro-decesos .tyc {display:none !important;}

/* ======================================================================
   Static-port additions — the rules above were carried over verbatim from
   the D7 theme and target markup/classes that no longer exist (#secopc,
   .cobersh, .region-f2 is footer-only), so the calculator page printed with
   all on-screen chrome still visible. These target the actual FAS markup
   (templates/pages/calcula-seguro-decesos.php, templates/partials/header.php)
   to reproduce the old D7 print output: quote summary + prestaciones +
   service description only, no nav/form/CTA chrome.
   ====================================================================== */

/* Header: keep only the logo, drop the flag/banner block and the mobile menu button. */
#mobile-header, #header .region-header, .bread {display:none !important;}

/* Calculator page chrome: page heading, the email-quote form, the
   "te llamamos" callback form and the error banner never belong in a
   printed quote. #asegurados-fieldset-wrapper itself stays visible — the
   old D7 print output lists each insured's birth date (see
   docs/print_quote/FAS_Expertia_old_*.pdf's "Datos Asegurado / Fecha de
   Nacimiento" table) — only its interactive chrome (buttons, hints) is
   stripped below. */
.page-calcula-seguro-decesos .ctitle,
#calculator-error,
#agrupados,
#agrupar,
#edit-btncontrata {display:none !important;}

/* Garantías opcionales: show the option text, not the checkbox widget
   itself — matches the old print output's plain bullet-list rendering. */
.coberhldr input[type=checkbox] {display:none !important;}

/* The desktop 2-column quote-table layout (site-2026.css) only applies
   "@media only screen and (min-width: 801px)", so print — not being
   "screen" — fell back to the mobile 3-column layout with the Anualidad
   sub-header duplicated in every column, squeezing the price figures.
   Reproduce the desktop collapse for print too. */
.page-calcula-seguro-decesos .pregroup .col.grow8 .span_1of3 .tithldr {display: none;}
.page-calcula-seguro-decesos .pregroup .col.grow8 .span_1of3 .tithldr.onlytit {display: block;}
.page-calcula-seguro-decesos .pregroup .col.span_4of10 .span_1of3.titaux {display: none;}
.page-calcula-seguro-decesos .pregroup .col.span_4of10 .span_1of3 {width: 50%;}
.page-calcula-seguro-decesos .pregroup .col.grow8 .span_1of3 .group .col.span_1of2:not(.tithldr) {width: 100%; margin-left: 0;}

/* .preciomed/.preciotot are white text on an orange background (site-2026.css)
   — browsers drop background colors on print by default, leaving invisible
   white-on-white figures. Force them to print. */
.preciomed, .preciotot {
  -webkit-print-color-adjust: exact;
  print-color-adjust: exact;
  color: #fff !important;
}

/* ======================================================================
   calcula-seguro-decesos print view — match the old D7 print output
   (docs/print_quote/FAS_Expertia_old_*.pdf): logo only, quote table,
   Prestaciones/Garantías (selected only), Descripción del Servicio.
   Hide chrome, nav, form controls and the post-quote sales funnel that
   only make sense on screen.
   ====================================================================== */
.page-calcula-seguro-decesos #mobile-header,
.page-calcula-seguro-decesos .bread,
.page-calcula-seguro-decesos #footer,
.page-calcula-seguro-decesos h1.ctitle,
.page-calcula-seguro-decesos .probmsg,
.page-calcula-seguro-decesos .description,
.page-calcula-seguro-decesos .rteright,
.page-calcula-seguro-decesos #edit-btncontrata,
.page-calcula-seguro-decesos #agrupados,
.page-calcula-seguro-decesos #agrupar,
.page-calcula-seguro-decesos #calculator-error {display:none !important;}

/* Header: keep only the centered logo, drop the flag banner. */
.page-calcula-seguro-decesos #header .group > .col.span_7of10 {display:none !important;}
.page-calcula-seguro-decesos #header .group {display:block !important; text-align:center;}
.page-calcula-seguro-decesos #header .col.span_3of10 {width:100%;text-align:center;}

/* Optional guarantees: print only the checked ones as plain text, same as
   the old D7 "Garantías opcionales seleccionadas:" list. Each option is a
   direct child of #edit-garantias (class "form-item-garantias-<code>", not
   the bare "form-item-garantias" of the single outer fieldset wrapper), so
   target the direct children themselves rather than that class name. */
.page-calcula-seguro-decesos #edit-garantias > .form-item:not(:has(input:checked)) {display:none !important;}
.page-calcula-seguro-decesos #edit-garantias input.form-checkbox {display:none !important;}
.page-calcula-seguro-decesos #edit-garantias label.option {font-weight:normal;}

/* Birth-date fields: keep the value visible, drop the live-widget chrome. */
.page-calcula-seguro-decesos input.datepicker {border:0;padding:0;background:none;}

.page-calcula-seguro-decesos #calculator-results-body {page-break-inside:avoid;}
.page-calcula-seguro-decesos .bortop {page-break-inside:avoid;}
