/* BD IT HOME Matrimony | A4 biodata PDF (v20)
   Entirely print-scoped, apart from the standalone PDF Settings screen.
   Does not modify any on-screen biodata layout or hidden-data permissions. */
.bdh-pdf-document-v20{display:none!important}

/* Theme Setting -> PDF Settings, administrator only */
.bdh-pdf-settings-app{max-width:1070px;margin:26px 22px 35px 0;font-family:Inter,'Noto Sans Bengali',system-ui,sans-serif;color:#273047}
.bdh-pdf-settings-app *{box-sizing:border-box}
.bdh-pdf-settings-title{margin:4px 0 23px}
.bdh-pdf-settings-title small{font-weight:800;letter-spacing:.1em;color:#a51f57}
.bdh-pdf-settings-title h1{font-weight:800;color:#351a32;font-size:29px;margin:7px 0}
.bdh-pdf-settings-title p{color:#697187;font-size:13px;line-height:1.8;margin:0}
.bdh-pdf-settings-card{background:#fff;border:1px solid #eadfe7;border-radius:15px;padding:25px 28px;margin-bottom:18px;box-shadow:0 8px 26px rgba(61,35,58,.04)}
.bdh-pdf-settings-card h2{font-size:18px;margin:0 0 22px;color:#792243;border-bottom:1px solid #f0e7eb;padding-bottom:15px}
.bdh-pdf-settings-fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px 22px}
.bdh-pdf-setting-field{display:flex;flex-direction:column;gap:8px;min-width:0}
.bdh-pdf-setting-field label{font-size:13px;font-weight:750;color:#3f2c41}
.bdh-pdf-settings-app input:not([type=submit]),.bdh-pdf-settings-app textarea,.bdh-pdf-settings-app select{border:1px solid #dcdbe3;background:#fcfcff;border-radius:9px;width:100%;max-width:100%;padding:11px 13px;min-height:42px;line-height:1.5;color:#29283d}
.bdh-pdf-settings-app input:focus,.bdh-pdf-settings-app textarea:focus{border-color:#b52b68;box-shadow:0 0 0 2px rgba(165,38,87,.11);outline:0}
.bdh-pdf-logo-picker{display:flex;gap:18px;align-items:center;margin-bottom:25px;padding:17px;background:#fff8fb;border:1px dashed #dcb1c6;border-radius:13px}
.bdh-pdf-logo-preview{flex:0 0 116px;width:116px;height:112px;border-radius:10px;background:white;border:1px solid #f1e4e9;display:grid;place-items:center;overflow:hidden}
.bdh-pdf-logo-preview img{max-width:100%;max-height:100%;object-fit:contain}
.bdh-pdf-logo-placeholder{font-size:48px;color:#a41450}
.bdh-pdf-logo-tools{flex:1;min-width:0;display:flex;flex-direction:column;gap:11px}
.bdh-pdf-logo-tools strong{font-size:13px;color:#3a2536}
.bdh-pdf-logo-tools small{display:block;color:#7e798a;margin-top:4px}
.bdh-pdf-settings-app .button.button-primary{background:#8c173f;border-color:#8c173f;color:#fff;border-radius:9px;font-weight:700}
.bdh-pdf-settings-app .button:not(.button-primary){border-radius:8px}
@media (max-width:700px){.bdh-pdf-settings-card{padding:20px 15px}.bdh-pdf-settings-fields{grid-template-columns:1fr}.bdh-pdf-logo-picker{align-items:flex-start;flex-direction:column}.bdh-pdf-logo-preview{height:95px;width:100px;flex:auto}}

@media print {
  @page{size:A4 portrait;margin:9mm 9mm 11mm}
  html,body{background:#fff!important;min-height:0!important;height:auto!important;overflow:visible!important}
  body.bdh-theme{margin:0!important;padding:0!important;background:#fff!important}
  body.bdh-theme .bdh-site-header,
  body.bdh-theme .bdh-header,
  body.bdh-theme .bdh-site-footer,
  body.bdh-theme .bdh-footer,
  body.bdh-theme #wpadminbar,
  body.bdh-theme .bdh-toast-wrap,
  body.bdh-theme .bdh-mobile-bottom-nav,
  body.bdh-theme .bdh-bottom-nav,
  body.bdh-theme .bdh-scroll-progress,
  body.bdh-theme .bdh-profile-reference > .bdh-reference-profile-layout,
  body.bdh-theme .bdh-profile-reference > .bdh-print-onepage-v1945,
  body.bdh-theme .bdh-profile-reference > .bdh-print-snapshot-v1944{display:none!important}
  body.bdh-theme .bdh-profile-reference{
    box-sizing:border-box!important;display:block!important;
    position:static!important;width:100%!important;max-width:none!important;
    margin:0!important;padding:0!important;min-height:0!important;
    overflow:visible!important;height:auto!important;background:white!important;
  }
  /* Narrowly override the previous single-biodata print-only element-hiding rules. */
  body.bdh-theme .bdh-profile-reference > .bdh-pdf-document-v20,
  body.bdh-theme .bdh-profile-reference > article.bdh-pdf-document-v20{
    display:block!important;position:static!important;visibility:visible!important;
    width:100%!important;max-width:none!important;zoom:1!important;
    height:auto!important;margin:0!important;padding:0!important;overflow:visible!important;
  }
  body.bdh-theme .bdh-profile-reference > *:not(.bdh-pdf-document-v20){display:none!important}

  /* WP admin review keeps all its controls on screen, but prints this same dossier. */
  body.wp-admin .bdh-review-app > .bdh-review-document{
    width:100%!important;max-width:none!important;margin:0!important;padding:0!important;
    background:#fff!important;box-shadow:none!important;border:0!important;overflow:visible!important;
  }
  body.wp-admin .bdh-review-app > .bdh-review-document > :not(.bdh-pdf-document-v20){display:none!important}
  body.wp-admin .bdh-review-app > .bdh-review-document > .bdh-pdf-document-v20{
    display:block!important;position:static!important;visibility:visible!important;
    margin:0!important;padding:0!important;width:100%!important;max-width:none!important;overflow:visible!important;
  }
  body.wp-admin #wpadminbar,body.wp-admin #adminmenumain,body.wp-admin #wpfooter,
  body.wp-admin .bdh-suite-quickbar,body.wp-admin .bdh-review-heading,
  body.wp-admin .bdh-review-tabs,body.wp-admin .bdh-review-noprint,
  body.wp-admin .bdh-review-metrics{display:none!important}
  body.wp-admin #wpwrap,body.wp-admin #wpcontent,body.wp-admin #wpbody,
  body.wp-admin #wpbody-content,body.wp-admin .bdh-review-app{
    padding:0!important;margin:0!important;width:100%!important;max-width:none!important;
    overflow:visible!important;height:auto!important;min-height:0!important;background:#fff!important;
  }

  .bdh-pdf-document-v20,.bdh-pdf-document-v20 *{
    box-sizing:border-box!important;box-shadow:none!important;text-shadow:none!important;
    -webkit-print-color-adjust:exact!important;print-color-adjust:exact!important;
  }
  .bdh-pdf-document-v20{
    display:block!important;background:#fff!important;color:#24232a!important;
    font-family:'Noto Sans Bengali','Hind Siliguri','SolaimanLipi',Arial,sans-serif!important;
    font-size:8.8pt!important;line-height:1.44!important;letter-spacing:0!important;
    max-width:100%!important;text-align:left!important;
  }
  .bdh-pdf-document-v20 .bdh-pdf-brandhead{
    display:flex!important;align-items:center!important;justify-content:space-between!important;
    gap:5mm!important;padding:1.4mm 1.4mm 4mm!important;margin:0 0 2.2mm!important;
    border:0!important;border-bottom:2.2pt solid #96153e!important;background:#fff!important;
    border-radius:0!important;break-inside:avoid!important;
  }
  .bdh-pdf-document-v20 .bdh-pdf-brandleft{width:54%!important;min-width:0!important;display:flex!important;align-items:center!important;gap:3.3mm!important}
  .bdh-pdf-document-v20 .bdh-pdf-brand-logo,.bdh-pdf-document-v20 .bdh-pdf-brand-fallback{
    display:block!important;flex:0 0 22mm!important;width:22mm!important;height:22mm!important;
    object-fit:contain!important;color:#97123d!important;
    filter:none!important;opacity:1!important;visibility:visible!important;
  }
  .bdh-pdf-document-v20 .bdh-pdf-brand-fallback svg{display:block!important;width:100%!important;height:100%!important}
  .bdh-pdf-document-v20 .bdh-pdf-brandtitles{
    display:flex!important;flex-direction:column!important;justify-content:center!important;
    min-width:0!important;padding-left:3.2mm!important;border-left:1.5pt solid #991741!important;
    color:#95153e!important;overflow-wrap:anywhere!important;
  }
  .bdh-pdf-document-v20 .bdh-pdf-brandtitles strong{
    font-family:Georgia,'Noto Sans Bengali',serif!important;font-weight:800!important;
    font-size:19pt!important;line-height:1.04!important;letter-spacing:.3px!important;
    color:#961239!important;margin:0!important;padding:0!important;
  }
  .bdh-pdf-document-v20 .bdh-pdf-brandtitles span{
    font-family:Georgia,'Noto Sans Bengali',serif!important;font-size:14pt!important;font-weight:700!important;
    line-height:1.12!important;color:#8c173e!important;margin:0!important;
  }
  .bdh-pdf-document-v20 .bdh-pdf-brandtitles small{
    font-family:'Noto Sans Bengali',sans-serif!important;font-size:7pt!important;font-weight:700!important;
    line-height:1.32!important;color:#b21d50!important;margin-top:1mm!important;
  }
  .bdh-pdf-document-v20 .bdh-pdf-brandcontact{
    width:45%!important;min-width:0!important;display:flex!important;flex-direction:column!important;justify-content:center!important;
    gap:1.25mm!important;padding-left:3.2mm!important;border-left:1pt solid #c9859f!important;
  }
  .bdh-pdf-document-v20 .bdh-pdf-contact-item{
    display:grid!important;grid-template-columns:4.3mm 12.5mm minmax(0,1fr)!important;
    align-items:start!important;gap:1.3mm!important;margin:0!important;color:#1d2632!important;
    font-size:7.45pt!important;line-height:1.42!important;overflow-wrap:anywhere!important;
  }
  .bdh-pdf-document-v20 .bdh-pdf-contact-item b{
    font-weight:750!important;color:#38313a!important;font-size:7.45pt!important;white-space:nowrap!important;
  }
  .bdh-pdf-document-v20 .bdh-pdf-contact-item span{font-size:7.45pt!important;color:#26303e!important;overflow-wrap:anywhere!important}
  .bdh-pdf-document-v20 .bdh-pdf-contact-svg{color:#a31946!important;display:block!important;width:4mm!important;height:4mm!important}

  .bdh-pdf-document-v20 .bdh-pdf-titlebar{
    display:flex!important;align-items:center!important;justify-content:space-between!important;gap:4mm!important;
    background:#911238!important;color:#fff!important;border-radius:3px!important;
    padding:2.2mm 3mm!important;margin:0 0 1.5mm!important;
    break-inside:avoid!important;
  }
  .bdh-pdf-document-v20 .bdh-pdf-titlebar strong{color:#fff!important;font-size:12.4pt!important;font-weight:800!important;line-height:1.3!important}
  .bdh-pdf-document-v20 .bdh-pdf-titlebar span{color:#fff!important;font-size:8.2pt!important;font-weight:750!important;white-space:nowrap!important}
  .bdh-pdf-document-v20 .bdh-pdf-intro{
    font-weight:700!important;font-size:7.4pt!important;color:#863b52!important;margin:0 0 2mm!important;padding:0 1mm!important;
  }
  .bdh-pdf-document-v20 .bdh-pdf-profilehead{
    display:flex!important;align-items:center!important;justify-content:space-between!important;
    gap:4mm!important;margin:0 0 2.5mm!important;padding:0 1mm!important;
    break-inside:avoid!important;page-break-inside:avoid!important;
  }
  .bdh-pdf-document-v20 .bdh-pdf-profilecopy{flex:1!important;min-width:0!important}
  .bdh-pdf-document-v20 .bdh-pdf-printmeta{
    display:block!important;font-size:7pt!important;line-height:1.5!important;
    color:#55505a!important;margin:0!important;overflow-wrap:anywhere!important;
  }
  .bdh-pdf-document-v20 .bdh-pdf-profile-photo{
    display:block!important;visibility:visible!important;opacity:1!important;filter:none!important;
    flex:0 0 25mm!important;width:25mm!important;height:30mm!important;
    object-fit:contain!important;border:0.6pt solid #dca6b5!important;
    border-radius:2mm!important;background:#fff!important;padding:0.8mm!important;
  }
  .bdh-pdf-document-v20 .bdh-pdf-verification>div{padding:2mm!important;border:0.65pt solid #dca6b5!important}
  .bdh-pdf-document-v20 .bdh-pdf-verification-photo{
    display:block!important;visibility:visible!important;opacity:1!important;filter:none!important;
    width:auto!important;height:auto!important;max-width:38mm!important;max-height:42mm!important;
    object-fit:contain!important;
  }

  .bdh-pdf-document-v20 .bdh-pdf-section{
    display:block!important;width:100%!important;overflow:visible!important;
    margin:0 0 2.5mm!important;padding:0!important;border:0!important;
    background:#fff!important;break-inside:avoid-page!important;page-break-inside:avoid!important;
  }
  .bdh-pdf-document-v20 .bdh-pdf-section > h2{
    display:block!important;background:#97143f!important;color:#fff!important;
    font-size:10.1pt!important;font-weight:800!important;line-height:1.28!important;
    padding:1.7mm 2.8mm!important;margin:0!important;border:0!important;
    border-radius:3px 3px 0 0!important;break-after:avoid!important;page-break-after:avoid!important;
  }
  .bdh-pdf-document-v20 .bdh-pdf-detail-table,
  .bdh-pdf-document-v20 .bdh-pdf-address-panel table{
    border-collapse:collapse!important;border-spacing:0!important;table-layout:fixed!important;
    width:100%!important;margin:0!important;padding:0!important;background:#fff!important;
  }
  .bdh-pdf-document-v20 .bdh-pdf-detail-table{border:0.65pt solid #dca6b5!important}
  .bdh-pdf-document-v20 .bdh-pdf-detail-table tr,
  .bdh-pdf-document-v20 .bdh-pdf-address-panel tr{break-inside:avoid!important;page-break-inside:avoid!important}
  .bdh-pdf-document-v20 .bdh-pdf-detail-table th,
  .bdh-pdf-document-v20 .bdh-pdf-detail-table td,
  .bdh-pdf-document-v20 .bdh-pdf-address-panel th,
  .bdh-pdf-document-v20 .bdh-pdf-address-panel td{
    display:table-cell!important;border:0.45pt solid #e9d8df!important;
    padding:1.32mm 1.8mm!important;line-height:1.42!important;vertical-align:top!important;
    font-family:'Noto Sans Bengali','Hind Siliguri',Arial,sans-serif!important;
    font-size:8.15pt!important;text-align:left!important;
    background:#fff!important;color:#18202b!important;overflow-wrap:anywhere!important;
    white-space:normal!important;
  }
  .bdh-pdf-document-v20 .bdh-pdf-detail-table th{width:20%!important;font-weight:600!important;color:#55505a!important;background:#fffafa!important}
  .bdh-pdf-document-v20 .bdh-pdf-detail-table td{width:30%!important;font-weight:700!important;color:#222029!important}
  .bdh-pdf-document-v20 .bdh-pdf-detail-table .bdh-pdf-blank{background:#fff!important;border-top:0!important;border-bottom:0!important}
  .bdh-pdf-document-v20 .bdh-pdf-detail-table .bdh-pdf-fullrow th{width:20%!important}
  .bdh-pdf-document-v20 .bdh-pdf-detail-table .bdh-pdf-fullrow td{width:auto!important;font-weight:600!important;line-height:1.55!important}

  .bdh-pdf-document-v20 .bdh-pdf-address-grid{
    display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;
    gap:2.3mm!important;border:0.65pt solid #dca6b5!important;padding:1.6mm!important;align-items:start!important;
  }
  .bdh-pdf-document-v20 .bdh-pdf-address-panel{border:0.5pt solid #e4c9d2!important;min-width:0!important;break-inside:avoid!important}
  .bdh-pdf-document-v20 .bdh-pdf-address-panel > h3{
    display:block!important;font-weight:800!important;font-size:8.8pt!important;line-height:1.35!important;
    color:#95133c!important;background:#fff2f5!important;border:0!important;margin:0!important;padding:1.3mm 1.8mm!important;
  }
  .bdh-pdf-document-v20 .bdh-pdf-address-panel th{width:41%!important;font-weight:600!important;color:#55505a!important}
  .bdh-pdf-document-v20 .bdh-pdf-address-panel td{width:59%!important;font-weight:700!important}
  .bdh-pdf-document-v20 .bdh-pdf-bottomline{
    margin:4.5mm 0 0!important;padding:2.1mm 0 0!important;border-top:1pt solid #991b4a!important;
    text-align:center!important;color:#a35575!important;font-size:7pt!important;font-weight:700!important;
    break-inside:avoid!important;
  }
  /* One complete warning after the final section, on the last page only. */
  .bdh-pdf-document-v20 > .bdh-pdf-section:last-of-type{
    break-after:avoid-page!important;page-break-after:avoid!important;
  }
  .bdh-pdf-document-v20 .bdh-pdf-document-end{
    display:block!important;margin:0!important;padding:0!important;
    break-inside:avoid!important;page-break-inside:avoid!important;
  }
  .bdh-pdf-document-v20 .bdh-pdf-warning{
    display:block!important;margin:2.5mm 0 0!important;padding:2.4mm 3mm!important;
    border:0.6pt solid #e9c7d3!important;border-radius:1.5mm!important;
    background:#fff8fb!important;color:#49323d!important;text-align:left!important;
    font-size:8.3pt!important;line-height:1.7!important;
    break-inside:avoid!important;page-break-inside:avoid!important;
  }
  .bdh-pdf-document-v20 .bdh-pdf-warning > strong{
    display:block!important;margin:0 0 1mm!important;color:#97143f!important;
    font-size:9pt!important;font-weight:800!important;line-height:1.5!important;
  }
  .bdh-pdf-document-v20 .bdh-pdf-warning > p{
    display:block!important;margin:0!important;padding:0!important;
    color:#49323d!important;font-size:8.3pt!important;font-weight:400!important;
    line-height:1.7!important;white-space:normal!important;overflow-wrap:anywhere!important;
  }
  .bdh-pdf-document-v20 a[href]:after{content:none!important}
}
