/* v27: make Project Pulse easier to read in PDF by adding vertical breathing room.
   Print only. The web dashboard layout is unchanged. */
@page{size:A4 portrait;margin:4mm}

@media print{
  /* Let the project section grow naturally with its content. */
  .print25-projects{
    height:auto!important;
    min-height:0!important;
    padding:1.8mm!important;
    overflow:visible!important;
  }

  .print25-section-title{
    min-height:8mm!important;
    margin-bottom:1.2mm!important;
  }
  .print25-section-title h2{font-size:11pt!important;line-height:1!important}
  .print25-section-title span{font-size:5.2pt!important}
  .print25-section-title small{font-size:5.3pt!important;padding-top:.8mm!important}

  .print25-project-grid{
    gap:1.6mm!important;
    align-items:start!important;
    overflow:visible!important;
  }

  .print25-project-card{
    height:auto!important;
    min-height:0!important;
    align-self:start!important;
    padding:1.6mm!important;
    overflow:visible!important;
  }

  .print25-project-card>header{
    min-height:5.5mm!important;
    margin-bottom:.9mm!important;
  }
  .print25-project-card>header h3{font-size:10.2pt!important}
  .print25-project-card>header span{font-size:5.3pt!important;padding:.6mm .8mm!important}

  /* One clear line of breathing room between each block/stat group. */
  .print25-project-card h4{
    margin:1.25mm 0 .65mm!important;
    font-size:5.1pt!important;
    line-height:1!important;
  }

  .print25-delivery{
    gap:1.05mm!important;
  }
  .print25-delivery-row{
    padding:.85mm .8mm!important;
    border-radius:.8mm!important;
  }
  .print25-delivery-row>div:first-child{
    margin-bottom:.55mm!important;
    gap:.65mm!important;
  }
  .print25-delivery-row b{font-size:5.7pt!important}
  .print25-delivery-row span{font-size:4.8pt!important}
  .print25-delivery-row strong{font-size:5.8pt!important}
  .print25-track{height:.9mm!important}

  .print25-ops,
  .print25-ncr-counts{
    gap:.8mm!important;
  }
  .print25-ops span,
  .print25-ncr-counts span{
    padding:.8mm .75mm!important;
    border-radius:.75mm!important;
  }
  .print25-ops small,
  .print25-ncr-counts small{
    font-size:4.45pt!important;
    line-height:1.08!important;
    margin-bottom:.28mm!important;
  }
  .print25-ops b,
  .print25-ncr-counts b{
    font-size:6.3pt!important;
  }

  .print25-quality-rate{
    margin-top:1.05mm!important;
  }
  .print25-quality-rate>div:first-child{
    margin-bottom:.5mm!important;
  }
  .print25-quality-rate b{font-size:5.35pt!important}
  .print25-quality-rate strong{font-size:6.5pt!important}
  .print25-quality-rate .print25-track{height:.9mm!important}

  /* Keep the lower report naturally below the taller Project Pulse section. */
  .print25-bottom{
    margin-top:.4mm!important;
    height:auto!important;
    min-height:0!important;
    align-items:start!important;
  }
}
