

:root{--navy:#172b4d;--blue:#2774ae;--ink:#1f2937;--muted:#64748b;--bg:#edf2f7;--line:#d9e2ec;--card:#fff;--soft:#f7f9fc;--green:#0f766e;--red:#b42318;--amber:#9a6700}
*{box-sizing:border-box}body{margin:0;background:var(--bg);color:var(--ink);font:14px/1.45 Arial,Helvetica,sans-serif}.app{max-width:1180px;margin:auto;padding:28px}.hero{background:linear-gradient(135deg,#172b4d,#24496f);color:#fff;border-radius:16px;padding:26px 28px;display:flex;justify-content:space-between;gap:20px;align-items:center;box-shadow:0 10px 28px rgba(23,43,77,.18)}.brand{font-size:12px;font-weight:800;letter-spacing:.16em;opacity:.8;text-transform:uppercase}h1{margin:5px 0;font-size:30px}.hero p{margin:0;opacity:.86}.badge{background:rgba(255,255,255,.13);border:1px solid rgba(255,255,255,.22);padding:10px 14px;border-radius:999px;font-weight:700}.notice{margin-top:16px;background:#eaf3fb;color:#254b6d;border:1px solid #cfe2f2;border-radius:10px;padding:11px 14px}.card{background:var(--card);border:1px solid var(--line);border-radius:14px;padding:22px;margin-top:16px;box-shadow:0 5px 18px rgba(15,23,42,.05)}.card h2{margin:0 0 4px;color:var(--navy);font-size:20px}.sub{margin:0 0 18px;color:var(--muted)}.grid2{display:grid;grid-template-columns:repeat(2,minmax(200px,1fr));gap:15px}.grid3{display:grid;grid-template-columns:repeat(3,minmax(180px,1fr));gap:15px}.grid4{display:grid;grid-template-columns:repeat(4,minmax(150px,1fr));gap:15px}label{font-weight:700;color:#334155}input,select,textarea{display:block;width:100%;margin-top:6px;padding:11px 12px;border:1px solid #cbd5e1;border-radius:8px;background:#fff;color:#111827;font:inherit}input[readonly],select:disabled{background:#f1f5f9;color:#475569}input:focus,select:focus,textarea:focus{outline:2px solid rgba(39,116,174,.18);border-color:var(--blue)}.statusbox{margin-top:14px;padding:13px 14px;border-radius:10px;font-weight:800}.status-ok{background:#ecfdf3;color:#027a48;border:1px solid #abefc6}.status-warn{background:#fff7ed;color:#9a3412;border:1px solid #fed7aa}.toggleRow{display:grid;grid-template-columns:1fr;gap:10px;align-items:start;padding:14px 0;border-top:1px solid #edf1f5}.toggleRow>div:first-child{display:grid;grid-template-columns:minmax(260px,1fr) 180px;gap:16px;align-items:end}.toggleRow>div:first-child>select{margin-top:0}.toggleRow>.serviceBox{grid-column:1/-1;width:100%}.toggleRow:first-of-type{border-top:0}.serviceTitle{font-weight:800;color:var(--navy);font-size:15px}.serviceBox{background:var(--soft);border:1px solid #e5eaf0;padding:14px;border-radius:10px}.hidden{display:none!important}.formula{margin-top:10px;padding:10px 12px;border-radius:8px;background:#fff;border:1px dashed #cbd5e1;color:#475569}.formula strong{color:var(--navy)}.warning{color:var(--red);font-weight:700;margin:8px 0 0}.section-title{font-size:13px;text-transform:uppercase;letter-spacing:.08em;color:#64748b;font-weight:800;margin:22px 0 9px}.breakdown{border:1px solid var(--line);border-radius:10px;overflow:hidden}.breakdown table{width:100%;border-collapse:collapse}.breakdown td,.breakdown th{padding:9px 12px;border-bottom:1px solid #edf1f5}.breakdown tr:last-child td{border-bottom:0}.breakdown td.num,.breakdown th.num{text-align:right}.breakdown th{background:#f8fafc;color:#475569}.breakdown tr.margin-row td{background:#fff8e7;font-weight:700}.breakdown tr.total-row td{background:#edf3f8;font-weight:800;color:var(--navy)}.price-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:14px;margin-top:18px}.price-card{background:var(--soft);border:1px solid #e5eaf0;padding:18px;border-radius:12px}.price-card span{display:block;color:var(--muted);font-size:12px;text-transform:uppercase}.price-card strong{display:block;color:var(--navy);font-size:28px;margin-top:4px}.price-card.sell{background:var(--navy);border-color:var(--navy)}.price-card.sell span,.price-card.sell strong{color:#fff}.review{display:grid;grid-template-columns:repeat(2,1fr);gap:12px;margin-top:16px}.reviewCard{background:#fbfcfe;border:1px solid #e5eaf0;border-radius:10px;padding:15px}.reviewCard h3{margin:0 0 8px;color:var(--navy);font-size:15px}.reviewCard p{margin:4px 0}.actions{display:flex;justify-content:flex-end;gap:10px;margin-top:18px}button{border:0;border-radius:8px;padding:11px 16px;font-weight:800;cursor:pointer;background:#dde5ed;color:var(--navy)}button.primary{background:var(--navy);color:#fff}button:disabled{opacity:.45;cursor:not-allowed}.footer-note{text-align:center;color:#7b8796;font-size:12px;margin:18px 0}.customerQuote{display:none}
.quote-page{background:#fff;color:#1f2937;font:10.5px/1.38 Arial,Helvetica,sans-serif}.quote-sheet{page-break-after:always}.quote-sheet:last-child{page-break-after:auto}.quote-head{display:grid;grid-template-columns:1fr 1fr 1fr;align-items:center;gap:18px;border-bottom:3px solid #172b4d;padding-bottom:10px;margin-bottom:12px}
.quote-brand-left{text-align:left}.quote-brand-center{text-align:center}.quote-brand-right{display:flex;justify-content:flex-end;align-items:center;gap:15px}
.quote-logo-main{width:245px;max-width:100%;height:auto;display:block}
.quote-logo-aeo{width:118px;height:auto;display:block}
.quote-logo-bifa{width:88px;height:auto;display:block}
.quote-brand-center h2{margin:0;color:#111;font-size:23px;text-decoration:underline;letter-spacing:.02em}
.quote-meta-band{display:grid;grid-template-columns:1fr 1fr;gap:20px;margin:0 0 12px}
.quote-company-details p,.quote-ref-details p{margin:2px 0}
.quote-ref-details{justify-self:end;min-width:250px}
.quote-ref-details p strong{display:inline-block;min-width:105px}.quote-company h1{font-size:21px;margin:0;color:#172b4d}.quote-company p{margin:2px 0;color:#526173}.quote-title{text-align:right}.quote-title h2{margin:0;color:#172b4d;font-size:23px}.quote-title p{margin:2px 0}.intro{margin:8px 0 12px}.quote-info,.quote-services,.terms-table{width:100%;border-collapse:collapse;margin:9px 0 12px}.quote-info th,.quote-info td,.quote-services th,.quote-services td,.terms-table th,.terms-table td{border:1px solid #cfd8e3;padding:6px 7px;text-align:left;vertical-align:top}.quote-info th{background:#f2f5f8;color:#172b4d;width:19%}.quote-services th{background:#172b4d;color:#fff}.quote-services td:last-child,.quote-services th:last-child{text-align:right}.quote-total{font-size:14px;font-weight:800;color:#172b4d}.pdf-section-title{font-size:12px;color:#172b4d;border-bottom:2px solid #172b4d;padding-bottom:4px;margin:12px 0 6px;text-transform:uppercase}.inc-exc{display:grid;grid-template-columns:1fr 1fr;gap:12px}.inc-exc>div{border:1px solid #cfd8e3}.inc-exc h4{margin:0;padding:6px 8px;background:#f2f5f8;color:#172b4d}.inc-exc ul{margin:7px 0 8px;padding-left:23px}.inc-exc li{margin:2px 0}.small-notes{font-size:9.5px}.small-notes ul{margin:5px 0;padding-left:20px}.terms-table th{width:28%;background:#f2f5f8;color:#172b4d}.policy-box{border:1px solid #cfd8e3;padding:8px;margin:7px 0}.policy-box h4{margin:0 0 4px;color:#172b4d}.quote-sign{margin-top:12px;border-top:2px solid #172b4d;padding-top:9px}.sign-grid{display:grid;grid-template-columns:1fr 1fr 150px;gap:18px}.sign-line{border-bottom:1px solid #111;height:26px;margin-bottom:3px}.sign-label{font-size:9px;color:#526173}.quote-footer{margin-top:10px;padding-top:7px;border-top:1px solid #cfd8e3;color:#526173;font-size:8.3px;text-align:center}.spec-pdf-warning{padding:7px 8px;border:1px solid #f2c166;background:#fff8e7;color:#7a4b00;font-weight:700;margin:7px 0}.keep{break-inside:avoid;page-break-inside:avoid}
@media(max-width:850px){.hero{display:block}.badge{display:inline-block;margin-top:15px}.grid2,.grid3,.grid4,.price-grid,.review,.toggleRow,.sign-grid,.inc-exc{grid-template-columns:1fr}.quote-title{text-align:left}.quote-head{grid-template-columns:1fr}.quote-brand-center{text-align:left}.quote-brand-right{justify-content:flex-start}.quote-meta-band{grid-template-columns:1fr}.quote-ref-details{justify-self:start}}


/* ===== v6.3 CLEAN TWO-PAGE CUSTOMER PDF ===== */

/* Header: logos stay on one row, QUOTATION is centered to the PAGE,
   not merely centered between logo columns. */
.quote-head-clean{
  position:relative;
  display:grid;
  grid-template-columns:minmax(220px,1fr) 95px 74px;
  align-items:center;
  column-gap:14px;
  min-height:54px;
  border-bottom:2px solid #1d3f72;
  padding:0 0 6px;
  margin:0 0 7px;
}
.quote-logo-main-cell{
  justify-self:start;
  display:flex;
  align-items:center;
}
.quote-head-clean .quote-logo-main{
  width:218px;
  max-width:100%;
  height:auto;
  display:block;
}
.quote-head-clean .quote-logo-cell{
  display:flex;
  align-items:center;
  justify-content:center;
}
.quote-head-clean .quote-logo-aeo{
  width:84px;
  height:auto;
  display:block;
}
.quote-head-clean .quote-logo-bifa{
  width:64px;
  height:auto;
  display:block;
}
.quote-clean-title{
  position:absolute;
  left:50%;
  top:50%;
  transform:translate(-50%,-52%);
  text-align:center;
  white-space:nowrap;
  pointer-events:none;
}
.quote-word{
  font-family:Arial,Helvetica,sans-serif;
  font-weight:700;
  font-size:20px;
  letter-spacing:.055em;
  color:#172b4d;
}
.quote-page-subtitle{
  font-size:7.3px;
  color:#526173;
  margin-top:2px;
  letter-spacing:.01em;
}

/* Put AEO and BIFA at the right side while leaving page-centered title free. */
.quote-head-clean > .quote-logo-cell:nth-of-type(3){grid-column:2}
.quote-head-clean > .quote-logo-cell:nth-of-type(4){grid-column:3}

/* Page 2 is now a single flowing document, not columns. */
.page2-single{
  display:block;
  width:100%;
}
.page2-single .pdf-section-title{
  margin:5px 0 3px;
}
.commercial-heading{
  margin-top:7px!important;
  padding-top:4px;
  border-top:1px solid #a9b8cc;
}

/* General compactness without creating a cramped look. */
#customerQuote{
  font-family:Arial,Helvetica,sans-serif;
}
#customerQuote .quote-meta-band{
  display:grid;
  grid-template-columns:1.1fr .9fr;
  gap:18px;
  margin:0 0 7px;
}
#customerQuote .quote-company-details p,
#customerQuote .quote-ref-details p{
  margin:1px 0;
}
#customerQuote .quote-ref-details{
  justify-self:end;
  min-width:235px;
}
#customerQuote .quote-ref-details p strong{
  display:inline-block;
  min-width:92px;
}

@media print{
  @page{size:A4 portrait;margin:5mm 6mm 6mm}

  html,body{
    margin:0!important;
    padding:0!important;
    width:auto!important;
    height:auto!important;
    background:#fff!important;
  }

  /* Only print the quotation. Prevent hidden calculator content from reserving pages. */
  .app > *{display:none!important}
  .app{
    display:block!important;
    margin:0!important;
    padding:0!important;
    max-width:none!important;
  }
  #customerQuote{
    display:block!important;
    position:static!important;
    width:100%!important;
    margin:0!important;
    padding:0!important;
    background:#fff!important;
    color:#111!important;
    font-size:8.8px!important;
    line-height:1.17!important;
  }
  #customerQuote .quote-page{
    display:block!important;
    margin:0!important;
    padding:0!important;
  }
  #customerQuote .quote-sheet{
    display:block!important;
    margin:0!important;
    padding:0!important;
    min-height:0!important;
    height:auto!important;
  }
  #customerQuote .quote-sheet:first-child{
    break-after:page!important;
    page-break-after:always!important;
  }
  #customerQuote .quote-sheet:last-child{
    break-after:auto!important;
    page-break-after:auto!important;
  }

  /* Header */
  .quote-head-clean{
    min-height:45px!important;
    margin:0 0 4px!important;
    padding:0 0 3px!important;
  }
  .quote-head-clean .quote-logo-main{width:205px!important}
  .quote-head-clean .quote-logo-aeo{width:79px!important}
  .quote-head-clean .quote-logo-bifa{width:60px!important}
  .quote-word{font-size:20px!important}
  .quote-page-subtitle{font-size:7.8px!important}

  /* Meta */
  #customerQuote .quote-meta-band{
    gap:12px!important;
    margin:0 0 4px!important;
  }
  #customerQuote .quote-company-details p,
  #customerQuote .quote-ref-details p{
    margin:0!important;
    font-size:8px!important;
    line-height:1.14!important;
  }
  #customerQuote .quote-ref-details{min-width:205px!important}
  #customerQuote .quote-ref-details p strong{min-width:82px!important}

  /* First page tables / blocks */
  .intro{
    margin:3px 0 4px!important;
    font-size:8.2px!important;
    line-height:1.14!important;
  }
  .pdf-section-title{
    font-size:9.8px!important;
    margin:4px 0 2px!important;
    padding:2px 0!important;
  }
  .quote-info,.quote-services,.terms-table{
    margin:2px 0 4px!important;
  }
  .quote-info th,.quote-info td,
  .quote-services th,.quote-services td,
  .terms-table th,.terms-table td{
    padding:2.5px 3.5px!important;
    font-size:7.8px!important;
    line-height:1.12!important;
  }
  .quote-services th{
    font-size:7.7px!important;
  }
  .quote-total{
    font-size:10.5px!important;
  }

  .inc-exc{
    gap:5px!important;
    margin-top:3px!important;
  }
  .inc-exc h4{
    padding:2.5px 4px!important;
    font-size:8px!important;
  }
  .inc-exc ul{
    margin:2px 0 3px!important;
    padding-left:13px!important;
  }
  .inc-exc li{
    margin:0!important;
    font-size:7.4px!important;
    line-height:1.12!important;
  }

  /* Single-column page 2: use horizontal space naturally instead of forcing two columns. */
  .page2-single{
    display:block!important;
  }
  .page2-single .terms-table{
    width:100%!important;
    table-layout:fixed!important;
    margin:2px 0 4px!important;
    font-size:7.7px!important;
  }
  .page2-single .terms-table th{
    width:23%!important;
    padding:2.5px 4px!important;
    font-size:7.6px!important;
  }
  .page2-single .terms-table td{
    padding:2.5px 4px!important;
    font-size:7.6px!important;
    line-height:1.13!important;
  }
  .page2-single p{
    margin:2px 0 4px!important;
    font-size:7.5px!important;
    line-height:1.14!important;
  }
  .page2-single .policy-box{
    margin:3px 0!important;
    padding:3px 4px!important;
    font-size:7.4px!important;
    line-height:1.13!important;
  }
  .page2-single .policy-box h4{
    margin:0 0 1px!important;
    font-size:7.7px!important;
  }
  .commercial-heading{
    margin-top:3px!important;
    padding-top:3px!important;
  }
  .page2-single .quote-sign{
    margin-top:3px!important;
    padding-top:4px!important;
  }
  .page2-single .sign-grid{
    grid-template-columns:1fr 1fr 92px!important;
    gap:8px!important;
  }
  .page2-single .sign-line{
    height:16px!important;
  }
  .page2-single .sign-label{
    font-size:7.2px!important;
  }

  .small-notes{
    font-size:7.2px!important;
    line-height:1.12!important;
  }
  .small-notes ul{
    margin:2px 0!important;
    padding-left:13px!important;
  }

  .quote-footer{
    margin-top:3px!important;
    padding-top:3px!important;
    font-size:7px!important;
    line-height:1.1!important;
  }

  /* Prevent awkward splitting while still allowing the page to fill naturally. */
  .quote-head,.quote-meta-band,.quote-info,.inc-exc,.quote-footer,
  .policy-box,.quote-sign{
    break-inside:avoid!important;
    page-break-inside:avoid!important;
  }
}



@media print {
  /* Keep two pages, but make the document use the page rather than sitting at the top. */
  #customerQuote{
    font-size:10.2px!important;
    line-height:1.32!important;
  }

  /* Header remains compact enough to leave room for readable body text. */
  .quote-head-clean{
    min-height:58px!important;
    margin-bottom:8px!important;
    padding-bottom:6px!important;
  }
  .quote-head-clean .quote-logo-main{width:220px!important}
  .quote-head-clean .quote-logo-aeo{width:86px!important}
  .quote-head-clean .quote-logo-bifa{width:66px!important}
  .quote-word{font-size:21px!important}
  .quote-page-subtitle{font-size:8.4px!important}

  #customerQuote .quote-meta-band{
    margin-bottom:9px!important;
  }
  #customerQuote .quote-company-details p,
  #customerQuote .quote-ref-details p{
    font-size:9px!important;
    line-height:1.28!important;
    margin:1px 0!important;
  }

  .intro{
    font-size:9.2px!important;
    line-height:1.3!important;
    margin:7px 0 9px!important;
  }

  .pdf-section-title{
    font-size:11px!important;
    line-height:1.2!important;
    margin:9px 0 5px!important;
    padding:4px 0!important;
  }

  /* Page 1: make information/pricing tables readable and taller. */
  .quote-info,
  .quote-services,
  .terms-table{
    margin:5px 0 8px!important;
  }
  .quote-info th,.quote-info td,
  .quote-services th,.quote-services td{
    font-size:8.9px!important;
    line-height:1.25!important;
    padding:4.5px 5px!important;
  }
  .quote-services th{
    font-size:8.7px!important;
  }
  .quote-total{
    font-size:11.2px!important;
  }

  .inc-exc{
    gap:8px!important;
    margin-top:8px!important;
  }
  .inc-exc h4{
    font-size:9.3px!important;
    line-height:1.2!important;
    padding:4px 6px!important;
  }
  .inc-exc ul{
    margin:4px 0 5px!important;
    padding-left:17px!important;
  }
  .inc-exc li{
    font-size:8.4px!important;
    line-height:1.28!important;
    margin:1.5px 0!important;
  }
  .small-notes{
    font-size:8.2px!important;
    line-height:1.26!important;
  }
  .small-notes ul{
    margin:4px 0!important;
    padding-left:16px!important;
  }

  /* Page 2: preserve single-column order, enlarge every term row. */
  .page2-single .terms-table{
    margin:5px 0 8px!important;
  }
  .page2-single .terms-table th{
    width:23%!important;
    font-size:8.7px!important;
    line-height:1.24!important;
    padding:4px 5px!important;
  }
  .page2-single .terms-table td{
    font-size:8.7px!important;
    line-height:1.26!important;
    padding:4px 5px!important;
  }
  .page2-single p{
    font-size:8.5px!important;
    line-height:1.28!important;
    margin:4px 0 7px!important;
  }
  .page2-single .policy-box{
    font-size:8.4px!important;
    line-height:1.25!important;
    padding:5px 6px!important;
    margin:5px 0!important;
  }
  .page2-single .policy-box h4{
    font-size:8.8px!important;
    margin-bottom:3px!important;
  }
  .commercial-heading{
    margin-top:9px!important;
    padding-top:5px!important;
  }

  .page2-single .quote-sign{
    margin-top:10px!important;
    padding-top:7px!important;
  }
  .page2-single .sign-line{
    height:24px!important;
  }
  .page2-single .sign-label{
    font-size:8px!important;
  }

  .quote-footer{
    font-size:7.4px!important;
    line-height:1.2!important;
    margin-top:8px!important;
    padding-top:5px!important;
  }
}



@media print {
  #customerQuote .quote-sheet:first-child{
    font-size:11.4px!important;
    line-height:1.42!important;
  }

  #customerQuote .quote-sheet:first-child .quote-head-clean{
    min-height:68px!important;
    margin-bottom:12px!important;
    padding-bottom:8px!important;
  }
  #customerQuote .quote-sheet:first-child .quote-logo-main{width:235px!important}
  #customerQuote .quote-sheet:first-child .quote-logo-aeo{width:91px!important}
  #customerQuote .quote-sheet:first-child .quote-logo-bifa{width:70px!important}
  #customerQuote .quote-sheet:first-child .quote-word{font-size:23px!important}

  #customerQuote .quote-sheet:first-child .quote-meta-band{
    margin-bottom:13px!important;
  }
  #customerQuote .quote-sheet:first-child .quote-company-details p,
  #customerQuote .quote-sheet:first-child .quote-ref-details p{
    font-size:10px!important;
    line-height:1.38!important;
    margin:2px 0!important;
  }

  #customerQuote .quote-sheet:first-child .intro{
    font-size:10.2px!important;
    line-height:1.4!important;
    margin:10px 0 13px!important;
  }

  #customerQuote .quote-sheet:first-child .quote-info{
    margin:8px 0 12px!important;
  }
  #customerQuote .quote-sheet:first-child .quote-info th,
  #customerQuote .quote-sheet:first-child .quote-info td{
    font-size:9.8px!important;
    line-height:1.35!important;
    padding:6px 7px!important;
  }

  #customerQuote .quote-sheet:first-child .quote-services{
    margin:9px 0 13px!important;
  }
  #customerQuote .quote-sheet:first-child .quote-services th,
  #customerQuote .quote-sheet:first-child .quote-services td{
    font-size:9.7px!important;
    line-height:1.35!important;
    padding:6px 7px!important;
  }
  #customerQuote .quote-sheet:first-child .quote-services th{
    font-size:9.5px!important;
  }
  #customerQuote .quote-sheet:first-child .quote-total{
    font-size:12px!important;
  }

  #customerQuote .quote-sheet:first-child .pdf-section-title{
    font-size:12px!important;
    margin:12px 0 6px!important;
    padding:5px 0!important;
  }

  #customerQuote .quote-sheet:first-child .inc-exc{
    gap:10px!important;
    margin-top:10px!important;
  }
  #customerQuote .quote-sheet:first-child .inc-exc h4{
    font-size:10.2px!important;
    padding:6px 8px!important;
  }
  #customerQuote .quote-sheet:first-child .inc-exc ul{
    margin:6px 0 7px!important;
    padding-left:20px!important;
  }
  #customerQuote .quote-sheet:first-child .inc-exc li{
    font-size:9.25px!important;
    line-height:1.4!important;
    margin:2px 0!important;
  }

  #customerQuote .quote-sheet:first-child .small-notes{
    font-size:9px!important;
    line-height:1.38!important;
  }
  #customerQuote .quote-sheet:first-child .small-notes ul{
    margin:7px 0!important;
    padding-left:19px!important;
  }
  #customerQuote .quote-sheet:first-child .small-notes li{
    margin:2px 0!important;
  }

  #customerQuote .quote-sheet:first-child .quote-footer{
    font-size:8px!important;
    line-height:1.25!important;
    margin-top:13px!important;
    padding-top:7px!important;
  }
}



.service-check-grid{display:grid;grid-template-columns:repeat(2,minmax(280px,1fr));gap:9px 14px;margin-top:12px}
.service-check{display:flex;align-items:center;gap:10px;border:1px solid #d9e2ec;background:#f8fafc;border-radius:9px;padding:9px 11px;font-weight:700;color:#334155;cursor:pointer}
.service-check input{width:auto;margin:0;accent-color:#172b4d}
.service-check:hover{border-color:#9fb4c9;background:#f3f7fb}
.inc-exc-notes{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin-top:6px}
.inc-exc-notes>div{border:1px solid #cfd8e3;padding:0}
.inc-exc-notes ul{margin:7px 0 8px;padding-left:23px}
.inc-exc-notes li{margin:2px 0}
.exact-terms{white-space:normal}
.exact-terms p{margin:3px 0 6px}
@media(max-width:850px){.service-check-grid,.inc-exc-notes{grid-template-columns:1fr}}
@media print{
  #customerQuote .inc-exc-notes{gap:7px!important;margin-top:4px!important}
  #customerQuote .inc-exc-notes ul{margin:3px 0 4px!important;padding-left:16px!important}
  #customerQuote .inc-exc-notes li{font-size:8.2px!important;line-height:1.25!important;margin:1px 0!important}
  #customerQuote .exact-terms p{font-size:8.25px!important;line-height:1.25!important;margin:3px 0 6px!important}
}



.costProfitPrint{display:none}
.cp-editor-table input{margin:0;text-align:right;padding:7px 8px}
.cp-editor-table td:first-child{font-weight:700}
.cp-sheet{font-family:Arial,Helvetica,sans-serif;color:#111;background:#fff}
.cp-head{display:grid;grid-template-columns:1fr 2fr 1fr;align-items:center;margin-bottom:18px}
.cp-brand{font-size:20px;color:#172b4d;line-height:1}
.cp-brand span{display:block;font-size:8px;letter-spacing:.08em;margin-top:3px}
.cp-title{text-align:center;font-size:21px;font-weight:800;text-decoration:underline}
.cp-badges{text-align:right;font-size:18px;font-weight:800;color:#172b4d}
.cp-meta,.cp-print-table{width:100%;border-collapse:collapse}
.cp-meta th,.cp-meta td{border:1px solid #777;padding:7px;text-align:left}
.cp-meta th{font-size:10px;width:17%}
.cp-print-table{margin-top:10px}
.cp-print-table th,.cp-print-table td{border:1px solid #fff;padding:6px 8px}
.cp-print-table thead th{background:#5b9bd5;color:#111;text-align:left}
.cp-print-table tbody td:first-child{background:#5b9bd5;color:#fff;width:36%}
.cp-print-table tbody td:not(:first-child){background:#dbe8f5}
.cp-print-table tbody tr:nth-child(even) td:not(:first-child){background:#c8dcef}
.cp-print-table td.num,.cp-print-table th:not(:first-child){text-align:right}
.cp-print-table tfoot th{background:#5b9bd5;padding:7px 8px}
.cp-approval{display:grid;grid-template-columns:1fr 1fr 1fr;gap:25px;margin-top:48px;padding:0 20px;font-size:11px}
@media print{
 body.print-cost .app > *{display:none!important}
 body.print-cost .app{display:block!important;margin:0!important;padding:0!important;max-width:none!important}
 body.print-cost #costProfitPrint{display:block!important}
 body.print-cost #customerQuote{display:none!important}
 body.print-cost .cp-sheet{display:block!important;width:100%!important;margin:0!important;padding:0!important;font-size:10px!important}
 body.print-cost .cp-head{margin-bottom:12px!important}
 body.print-cost .cp-title{font-size:20px!important}
 body.print-cost .cp-meta th,body.print-cost .cp-meta td{padding:5px 6px!important}
 body.print-cost .cp-print-table{margin-top:8px!important}
 body.print-cost .cp-print-table th,body.print-cost .cp-print-table td{padding:5px 7px!important;font-size:9px!important}
 body.print-cost .cp-approval{margin-top:38px!important;font-size:10px!important}
}


/* =========================================================
   Phase 5.4 — WordPress layout reset / dashboard restoration
   ========================================================= */

/* Let the calculator use the browser width rather than the theme's narrow content column. */
body:has(.tglog-app) .entry-title,
body:has(.tglog-app) .wp-block-post-title,
body:has(.tglog-app) .page-title{
  display:none!important;
}
body:has(.tglog-app) .entry-content,
body:has(.tglog-app) .site-main,
body:has(.tglog-app) main,
body:has(.tglog-app) article{
  max-width:none!important;
}
body:has(.tglog-app) .entry-content{
  width:100%!important;
  margin:0!important;
  padding:0!important;
}
.tglog-app{
  box-sizing:border-box!important;
  width:calc(100vw - 32px)!important;
  max-width:1600px!important;
  left:auto!important;
  transform:none!important;
  margin:18px auto 48px!important;
  padding:0 18px 28px!important;
  overflow:visible!important;
}
.tglog-app.app{
  max-width:1600px!important;
}
.tglog-app .hero{
  width:100%!important;
}
.tglog-app .card{
  width:100%!important;
}
@media(max-width:760px){
  .tglog-app{
    width:100%!important;
    margin:0!important;
    padding:10px!important;
  }
}

/* Clean dashboard. These rules are deliberately strong because WP themes
   often impose very large heading/link typography. */
.tglog-dashboard-shell{
  box-sizing:border-box!important;
  width:min(1240px,calc(100vw - 48px))!important;
  max-width:1240px!important;
  margin:42px auto 64px!important;
  padding:0 8px!important;
  font-family:Arial,Helvetica,sans-serif!important;
  color:#14233b!important;
  line-height:1.4!important;
}
.tglog-dashboard-shell *{box-sizing:border-box}
.tglog-dashboard-top{
  display:flex!important;
  align-items:flex-start!important;
  justify-content:space-between!important;
  gap:28px!important;
  margin:0 0 28px!important;
}
.tglog-dashboard-kicker{
  margin:0 0 8px!important;
  font-size:11px!important;
  line-height:1.2!important;
  font-weight:800!important;
  letter-spacing:.14em!important;
  color:#315ccf!important;
}
.tglog-dashboard-top h1{
  margin:0 0 8px!important;
  padding:0!important;
  font-family:Arial,Helvetica,sans-serif!important;
  font-size:36px!important;
  line-height:1.08!important;
  font-weight:700!important;
  letter-spacing:-.025em!important;
  color:#13233d!important;
}
.tglog-dashboard-top p{
  margin:0!important;
  font-size:15px!important;
  line-height:1.5!important;
  color:#68778c!important;
}
.tglog-dashboard-user{
  display:flex!important;
  align-items:center!important;
  gap:11px!important;
  min-width:330px!important;
  padding:11px 13px!important;
  border:1px solid #dde4ed!important;
  border-radius:14px!important;
  background:#fff!important;
  box-shadow:0 6px 20px rgba(20,35,59,.06)!important;
}
.tglog-avatar{
  flex:0 0 40px!important;
  width:40px!important;height:40px!important;
  border-radius:50%!important;
  display:flex!important;align-items:center!important;justify-content:center!important;
  background:#172f63!important;color:#fff!important;
  font-size:14px!important;font-weight:800!important;
}
.tglog-dashboard-user strong,
.tglog-dashboard-user span{display:block!important;margin:0!important}
.tglog-dashboard-user strong{font-size:13px!important;line-height:1.3!important;color:#172b4d!important}
.tglog-dashboard-user span{font-size:11px!important;line-height:1.3!important;color:#748196!important;margin-top:2px!important}
.tglog-logout{
  margin-left:auto!important;
  font-size:12px!important;
  line-height:1.2!important;
  color:#526173!important;
  text-decoration:none!important;
}
.tglog-dashboard-grid{
  display:grid!important;
  grid-template-columns:repeat(3,minmax(0,1fr))!important;
  gap:18px!important;
  margin:0 0 22px!important;
}
.tglog-dashboard-card{
  display:block!important;
  min-height:190px!important;
  padding:24px!important;
  border:1px solid #dfe5ec!important;
  border-radius:16px!important;
  background:#fff!important;
  color:#172b4d!important;
  text-decoration:none!important;
  box-shadow:0 8px 25px rgba(22,42,74,.05)!important;
}
.tglog-dashboard-card:hover{
  transform:translateY(-2px)!important;
  box-shadow:0 12px 30px rgba(22,42,74,.09)!important;
}
.tglog-primary-card{
  background:linear-gradient(135deg,#17366f 0%,#254f9c 100%)!important;
  color:#fff!important;
  border-color:transparent!important;
}
.tglog-card-icon{
  width:40px!important;height:40px!important;
  border-radius:10px!important;
  display:flex!important;align-items:center!important;justify-content:center!important;
  margin:0 0 28px!important;
  background:#edf2f9!important;
  color:#172b4d!important;
  font-size:19px!important;font-weight:800!important;
}
.tglog-primary-card .tglog-card-icon{background:rgba(255,255,255,.14)!important;color:#fff!important}
.tglog-dashboard-card h2{
  margin:0 0 8px!important;
  padding:0!important;
  font-size:20px!important;
  line-height:1.25!important;
  font-weight:700!important;
  color:inherit!important;
}
.tglog-dashboard-card p{
  margin:0 0 22px!important;
  font-size:13px!important;
  line-height:1.5!important;
  color:#6a788a!important;
}
.tglog-primary-card p{color:rgba(255,255,255,.80)!important}
.tglog-dashboard-card span{
  display:inline!important;
  font-size:12px!important;
  line-height:1.2!important;
  font-weight:700!important;
  color:inherit!important;
}
.tglog-dashboard-status{
  padding:20px 22px!important;
  border:1px solid #dfe5ec!important;
  border-radius:16px!important;
  background:#f8fafc!important;
}
.tglog-status-heading{
  display:flex!important;
  justify-content:space-between!important;
  align-items:center!important;
  margin:0 0 16px!important;
  font-size:12px!important;
  line-height:1.3!important;
  color:#6a788a!important;
}
.tglog-status-heading>div{display:flex!important;align-items:center!important;gap:8px!important;color:#243750!important}
.tglog-status-dot{width:8px!important;height:8px!important;border-radius:50%!important;background:#2e9d62!important;display:inline-block!important}
.tglog-status-grid{
  display:grid!important;
  grid-template-columns:repeat(4,minmax(0,1fr))!important;
  gap:14px!important;
}
.tglog-status-grid>div{
  padding:13px 14px!important;
  border-radius:10px!important;
  background:#fff!important;
  border:1px solid #e5eaf0!important;
}
.tglog-status-grid span,.tglog-status-grid strong,.tglog-status-grid small{display:block!important;margin:0!important}
.tglog-status-grid span{font-size:10px!important;line-height:1.2!important;text-transform:uppercase!important;letter-spacing:.08em!important;color:#7a8798!important;margin-bottom:5px!important}
.tglog-status-grid strong{font-size:13px!important;line-height:1.35!important;color:#233650!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important}
.tglog-status-grid small{font-size:10px!important;line-height:1.3!important;color:#7f8a99!important;margin-top:3px!important}
.tglog-admin-shortcuts{
  display:flex!important;align-items:center!important;gap:14px!important;
  padding:13px 3px 0!important;margin:0!important;
  font-size:11px!important;line-height:1.2!important;
}
.tglog-admin-shortcuts span{color:#8a95a4!important}
.tglog-admin-shortcuts a{color:#355a92!important;text-decoration:none!important;font-weight:700!important;font-size:11px!important}
.tglog-dashboard-footer{
  display:flex!important;justify-content:space-between!important;gap:20px!important;
  border-top:1px solid #e2e7ed!important;
  margin-top:32px!important;padding-top:14px!important;
  font-size:10px!important;line-height:1.3!important;color:#8893a1!important;
}
.tglog-dashboard-footer strong{color:#667588!important}
@media(max-width:900px){
  .tglog-dashboard-grid{grid-template-columns:1fr!important}
  .tglog-status-grid{grid-template-columns:1fr 1fr!important}
  .tglog-dashboard-top{flex-direction:column!important}
  .tglog-dashboard-user{min-width:0!important;width:100%!important}
}
@media(max-width:560px){
  .tglog-dashboard-shell{width:calc(100vw - 20px)!important;margin-top:22px!important}
  .tglog-dashboard-top h1{font-size:28px!important}
  .tglog-status-grid{grid-template-columns:1fr!important}
  .tglog-dashboard-footer{flex-direction:column!important}
}

/* =========================================================
   Phase 5.4 — Customer quotation: clean EXACTLY two A4 pages
   ========================================================= */
@media print{
  @page{size:A4 portrait;margin:5mm 6mm 6mm!important}

  /* Hide all WordPress/theme chrome and all calculator UI. */
  body.print-customer *{
    visibility:hidden!important;
  }
  body.print-customer #customerQuote,
  body.print-customer #customerQuote *{
    visibility:visible!important;
  }
  body.print-customer #customerQuote{
    display:block!important;
    position:absolute!important;
    left:0!important;top:0!important;
    width:100%!important;
    margin:0!important;padding:0!important;
    color:#111!important;background:#fff!important;
    font-family:Arial,Helvetica,sans-serif!important;
  }
  body.print-customer #customerQuote .quote-page{
    display:block!important;
    width:100%!important;
    margin:0!important;padding:0!important;
  }
  body.print-customer #customerQuote .quote-sheet{
    display:block!important;
    width:100%!important;
    height:auto!important;
    min-height:0!important;
    margin:0!important;
    padding:0!important;
    overflow:hidden!important;
    break-inside:avoid-page!important;
    page-break-inside:avoid!important;
  }
  body.print-customer #customerQuote .quote-sheet:first-child{
    break-after:page!important;
    page-break-after:always!important;
  }
  body.print-customer #customerQuote .quote-sheet:last-child{
    break-after:auto!important;
    page-break-after:auto!important;
  }

  /* PAGE 1 */
  body.print-customer #customerQuote .quote-sheet:first-child{
    font-size:8.25px!important;
    line-height:1.18!important;
  }
  body.print-customer #customerQuote .quote-sheet:first-child .quote-head-clean{
    min-height:46px!important;margin:0 0 4px!important;padding:0 0 3px!important;
  }
  body.print-customer #customerQuote .quote-sheet:first-child .quote-logo-main{width:195px!important}
  body.print-customer #customerQuote .quote-sheet:first-child .quote-logo-aeo{width:76px!important}
  body.print-customer #customerQuote .quote-sheet:first-child .quote-logo-bifa{width:57px!important}
  body.print-customer #customerQuote .quote-sheet:first-child .quote-word{font-size:19px!important}
  body.print-customer #customerQuote .quote-meta-band{margin:0 0 4px!important;gap:10px!important}
  body.print-customer #customerQuote .quote-company-details p,
  body.print-customer #customerQuote .quote-ref-details p{font-size:7.5px!important;line-height:1.14!important;margin:0!important}
  body.print-customer #customerQuote .intro{font-size:7.7px!important;line-height:1.16!important;margin:3px 0 4px!important}
  body.print-customer #customerQuote .quote-info,
  body.print-customer #customerQuote .quote-services{margin:3px 0 5px!important}
  body.print-customer #customerQuote .quote-info th,
  body.print-customer #customerQuote .quote-info td,
  body.print-customer #customerQuote .quote-services th,
  body.print-customer #customerQuote .quote-services td{
    padding:2.4px 3.2px!important;font-size:7.35px!important;line-height:1.12!important;
  }
  body.print-customer #customerQuote .quote-total{font-size:9px!important}
  body.print-customer #customerQuote .inc-exc{gap:5px!important;margin:4px 0!important}
  body.print-customer #customerQuote .inc-exc h4{padding:2px 4px!important;font-size:7.4px!important}
  body.print-customer #customerQuote .inc-exc ul{margin:2px 0 3px!important;padding-left:13px!important}
  body.print-customer #customerQuote .inc-exc li{font-size:6.9px!important;line-height:1.1!important;margin:0!important}
  body.print-customer #customerQuote .inc-exc-notes{gap:5px!important;margin:3px 0!important}
  body.print-customer #customerQuote .inc-exc-notes ul{margin:2px 0 3px!important;padding-left:13px!important}
  body.print-customer #customerQuote .inc-exc-notes li{font-size:6.65px!important;line-height:1.09!important;margin:0!important}
  body.print-customer #customerQuote .quote-footer{font-size:6.1px!important;line-height:1.05!important;margin-top:3px!important;padding-top:2px!important}

  /* PAGE 2 — compact because the required legal wording is long. */
  body.print-customer #customerQuote .quote-sheet:last-child{
    font-size:6.45px!important;
    line-height:1.08!important;
  }
  body.print-customer #customerQuote .quote-sheet:last-child .quote-head-clean{
    min-height:36px!important;margin:0 0 2px!important;padding:0 0 2px!important;
  }
  body.print-customer #customerQuote .quote-sheet:last-child .quote-logo-main{width:165px!important}
  body.print-customer #customerQuote .quote-sheet:last-child .quote-logo-aeo{width:64px!important}
  body.print-customer #customerQuote .quote-sheet:last-child .quote-logo-bifa{width:48px!important}
  body.print-customer #customerQuote .quote-sheet:last-child .quote-word{font-size:16px!important}
  body.print-customer #customerQuote .quote-sheet:last-child .quote-meta-band{margin:0 0 2px!important}
  body.print-customer #customerQuote .quote-sheet:last-child .quote-company-details p,
  body.print-customer #customerQuote .quote-sheet:last-child .quote-ref-details p{font-size:6.2px!important;line-height:1.05!important;margin:0!important}
  body.print-customer #customerQuote .page2-single{display:block!important}
  body.print-customer #customerQuote .page2-single .pdf-section-title{
    font-size:6.9px!important;
    line-height:1.08!important;
    margin:3px 0 1px!important;
    padding:1px 0!important;
    border-bottom-width:1px!important;
  }
  body.print-customer #customerQuote .page2-single .terms-table{
    width:100%!important;
    table-layout:fixed!important;
    margin:1px 0 2px!important;
  }
  body.print-customer #customerQuote .page2-single .terms-table th{
    width:21%!important;
    padding:1.4px 2px!important;
    font-size:6.15px!important;
    line-height:1.06!important;
  }
  body.print-customer #customerQuote .page2-single .terms-table td{
    padding:1.4px 2px!important;
    font-size:6.15px!important;
    line-height:1.06!important;
  }
  body.print-customer #customerQuote .page2-single p{
    margin:1px 0 2px!important;
    font-size:6.05px!important;
    line-height:1.07!important;
  }
  body.print-customer #customerQuote .spec-pdf-warning{
    padding:2px 3px!important;
    margin:2px 0!important;
    font-size:6px!important;
    line-height:1.06!important;
  }
  body.print-customer #customerQuote .quote-sign{
    margin-top:3px!important;padding-top:2px!important;
  }
  body.print-customer #customerQuote .sign-grid{
    grid-template-columns:1fr 1fr 80px!important;gap:6px!important;
  }
  body.print-customer #customerQuote .sign-line{height:12px!important}
  body.print-customer #customerQuote .sign-label{font-size:5.8px!important}
  body.print-customer #customerQuote .quote-sheet:last-child .quote-footer{
    font-size:5.6px!important;line-height:1.04!important;margin-top:2px!important;padding-top:2px!important;
  }

  /* Never print the internal cost tracker during customer quote printing. */
  body.print-customer #costProfitPrint{display:none!important}
}

/* Phase 5.6 Cost & Profit edit flow */
#costTrackerEditor{
  border:2px solid #b8c8da!important;
  box-shadow:0 12px 34px rgba(23,43,77,.10)!important;
}
#costTrackerEditor .cp-buy,
#costTrackerEditor .cp-sell{
  background:#fff!important;
  border:1px solid #9fb3c8!important;
  font-weight:700!important;
}
#costTrackerEditor .cp-buy:focus,
#costTrackerEditor .cp-sell:focus{
  outline:2px solid rgba(39,116,174,.18)!important;
  border-color:#2774ae!important;
}

/* Phase 5.7 saved quotation controls */
.quote-management{
  margin-top:16px;
  padding:14px 16px;
  border:1px solid #d9e2ec;
  border-radius:12px;
  background:#f8fafc;
  display:flex;
  align-items:end;
  gap:14px;
  flex-wrap:wrap;
}
.quote-management>div{min-width:210px}
.quote-management small{display:block;color:#718096;font-size:11px;text-transform:uppercase;letter-spacing:.06em}
.quote-management strong{display:block;margin-top:4px;color:#172b4d;font-size:16px}
.quote-management label{min-width:150px}
.quote-management select{margin-top:5px}
#saveQuoteMessage{font-weight:700;color:#0f766e;padding-bottom:10px}
@media(max-width:700px){.quote-management{align-items:stretch}.quote-management>*{width:100%}}

/* Phase 6.0 interaction feedback */
.action-status{min-height:20px;margin:8px 2px 0;font-size:12px;font-weight:700;color:#64748b}
.action-status.success{color:#0f766e}
.action-status.error{color:#b42318}
#saveQuoteMessage{min-width:84px}
#cargoCbm{font-weight:800;background:#f8fafc;color:#172b4d}


/* =========================================================
   Phase 6.1 - FINAL CUSTOMER QUOTATION PDF LAYOUT
   Format-only cleanup. Content and calculations unchanged.
   ========================================================= */
@media print {
  @page {
    size: A4 portrait;
    margin: 0;
  }

  html,
  body {
    margin: 0 !important;
    padding: 0 !important;
    background: #fff !important;
  }

  /* Customer quote print mode: remove all WordPress/theme/calculator clutter. */
  body.print-customer * {
    visibility: hidden !important;
  }

  body.print-customer #customerQuote,
  body.print-customer #customerQuote * {
    visibility: visible !important;
  }

  body.print-customer #customerQuote {
    display: block !important;
    position: absolute !important;
    inset: 0 auto auto 0 !important;
    width: 210mm !important;
    max-width: 210mm !important;
    margin: 0 !important;
    padding: 0 !important;
    background: #fff !important;
    color: #111 !important;
    font-family: Arial, Helvetica, sans-serif !important;
  }

  body.print-customer #customerQuote .quote-page {
    display: block !important;
    width: 210mm !important;
    margin: 0 !important;
    padding: 0 !important;
    background: #fff !important;
  }

  body.print-customer #customerQuote .quote-sheet {
    box-sizing: border-box !important;
    display: block !important;
    width: 210mm !important;
    height: 297mm !important;
    min-height: 297mm !important;
    max-height: 297mm !important;
    margin: 0 !important;
    padding: 7mm 8mm 6mm !important;
    overflow: hidden !important;
    background: #fff !important;
    page-break-inside: avoid !important;
    break-inside: avoid-page !important;
    page-break-after: always !important;
    break-after: page !important;
  }

  body.print-customer #customerQuote .quote-sheet:last-child {
    page-break-after: auto !important;
    break-after: auto !important;
  }

  /* ---------- Common header ---------- */
  body.print-customer #customerQuote .quote-head-clean {
    display: grid !important;
    grid-template-columns: minmax(165px, 1fr) 70px 58px !important;
    align-items: center !important;
    column-gap: 10px !important;
    min-height: 42px !important;
    margin: 0 0 4px !important;
    padding: 0 0 4px !important;
    border-bottom: 1.5px solid #1d3f72 !important;
  }

  body.print-customer #customerQuote .quote-logo-main {
    width: 175px !important;
    max-height: 42px !important;
    object-fit: contain !important;
  }

  body.print-customer #customerQuote .quote-logo-aeo {
    width: 64px !important;
    max-height: 38px !important;
    object-fit: contain !important;
  }

  body.print-customer #customerQuote .quote-logo-bifa {
    width: 48px !important;
    max-height: 38px !important;
    object-fit: contain !important;
  }

  body.print-customer #customerQuote .quote-clean-title {
    top: 48% !important;
  }

  body.print-customer #customerQuote .quote-word {
    font-size: 16px !important;
    line-height: 1 !important;
    letter-spacing: .04em !important;
  }

  body.print-customer #customerQuote .quote-page-subtitle {
    margin-top: 2px !important;
    font-size: 6.4px !important;
    line-height: 1.1 !important;
  }

  body.print-customer #customerQuote .quote-meta-band {
    display: grid !important;
    grid-template-columns: 1.2fr .8fr !important;
    gap: 10px !important;
    margin: 0 0 4px !important;
  }

  body.print-customer #customerQuote .quote-company-details p,
  body.print-customer #customerQuote .quote-ref-details p {
    margin: 0 !important;
    font-size: 6.9px !important;
    line-height: 1.22 !important;
  }

  body.print-customer #customerQuote .quote-ref-details {
    min-width: 0 !important;
    justify-self: end !important;
  }

  /* ---------- PAGE 1 ---------- */
  body.print-customer #customerQuote .quote-sheet:first-child {
    font-size: 7.45px !important;
    line-height: 1.2 !important;
  }

  body.print-customer #customerQuote .intro {
    margin: 3px 0 4px !important;
    font-size: 7.2px !important;
    line-height: 1.2 !important;
  }

  body.print-customer #customerQuote .quote-info,
  body.print-customer #customerQuote .quote-services {
    width: 100% !important;
    margin: 3px 0 5px !important;
    border-collapse: collapse !important;
    table-layout: fixed !important;
  }

  body.print-customer #customerQuote .quote-info th,
  body.print-customer #customerQuote .quote-info td {
    padding: 2.2px 3px !important;
    font-size: 6.9px !important;
    line-height: 1.15 !important;
    vertical-align: middle !important;
  }

  body.print-customer #customerQuote .quote-info th {
    width: 18% !important;
  }

  body.print-customer #customerQuote .quote-services th,
  body.print-customer #customerQuote .quote-services td {
    padding: 2.2px 3px !important;
    font-size: 6.8px !important;
    line-height: 1.14 !important;
    vertical-align: top !important;
  }

  body.print-customer #customerQuote .quote-services th:nth-child(1) { width: 28% !important; }
  body.print-customer #customerQuote .quote-services th:nth-child(2) { width: 48% !important; }
  body.print-customer #customerQuote .quote-services th:nth-child(3) { width: 9% !important; }
  body.print-customer #customerQuote .quote-services th:nth-child(4) { width: 15% !important; }

  body.print-customer #customerQuote .quote-total {
    font-size: 8.2px !important;
    line-height: 1.1 !important;
  }

  body.print-customer #customerQuote .inc-exc {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 5px !important;
    margin: 4px 0 3px !important;
    break-inside: avoid !important;
  }

  body.print-customer #customerQuote .inc-exc > div,
  body.print-customer #customerQuote .inc-exc-notes > div {
    border: 1px solid #b8c2cf !important;
  }

  body.print-customer #customerQuote .inc-exc h4 {
    margin: 0 !important;
    padding: 2px 4px !important;
    font-size: 6.8px !important;
    line-height: 1.1 !important;
  }

  body.print-customer #customerQuote .inc-exc ul,
  body.print-customer #customerQuote .inc-exc-notes ul {
    margin: 2px 0 3px !important;
    padding-left: 13px !important;
  }

  body.print-customer #customerQuote .inc-exc li {
    margin: 0 !important;
    font-size: 6.15px !important;
    line-height: 1.08 !important;
  }

  body.print-customer #customerQuote .inc-exc-notes {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 5px !important;
    margin: 3px 0 0 !important;
    break-inside: avoid !important;
  }

  body.print-customer #customerQuote .inc-exc-notes li {
    margin: 0 !important;
    font-size: 5.95px !important;
    line-height: 1.07 !important;
  }

  /* ---------- PAGE 2 ---------- */
  body.print-customer #customerQuote .quote-sheet:last-child {
    font-size: 6.1px !important;
    line-height: 1.08 !important;
  }

  body.print-customer #customerQuote .quote-sheet:last-child .quote-head-clean {
    min-height: 34px !important;
    margin-bottom: 2px !important;
    padding-bottom: 2px !important;
  }

  body.print-customer #customerQuote .quote-sheet:last-child .quote-logo-main {
    width: 145px !important;
    max-height: 32px !important;
  }

  body.print-customer #customerQuote .quote-sheet:last-child .quote-logo-aeo {
    width: 54px !important;
    max-height: 30px !important;
  }

  body.print-customer #customerQuote .quote-sheet:last-child .quote-logo-bifa {
    width: 42px !important;
    max-height: 30px !important;
  }

  body.print-customer #customerQuote .quote-sheet:last-child .quote-word {
    font-size: 14px !important;
  }

  body.print-customer #customerQuote .quote-sheet:last-child .quote-meta-band {
    margin-bottom: 2px !important;
  }

  body.print-customer #customerQuote .quote-sheet:last-child .quote-company-details p,
  body.print-customer #customerQuote .quote-sheet:last-child .quote-ref-details p {
    font-size: 5.8px !important;
    line-height: 1.05 !important;
  }

  body.print-customer #customerQuote .page2-single {
    display: block !important;
    margin: 0 !important;
    padding: 0 !important;
  }

  body.print-customer #customerQuote .page2-single .pdf-section-title {
    margin: 2.2px 0 1px !important;
    padding: 1px 0 !important;
    font-size: 6.35px !important;
    line-height: 1.05 !important;
    border-bottom: 1px solid #a9b8cc !important;
  }

  body.print-customer #customerQuote .page2-single .terms-table {
    width: 100% !important;
    margin: 1px 0 2px !important;
    border-collapse: collapse !important;
    table-layout: fixed !important;
  }

  body.print-customer #customerQuote .page2-single .terms-table th {
    width: 21% !important;
    padding: 1.2px 2px !important;
    font-size: 5.65px !important;
    line-height: 1.04 !important;
    vertical-align: top !important;
  }

  body.print-customer #customerQuote .page2-single .terms-table td {
    padding: 1.2px 2px !important;
    font-size: 5.65px !important;
    line-height: 1.04 !important;
    vertical-align: top !important;
  }

  body.print-customer #customerQuote .page2-single p {
    margin: 1px 0 1.6px !important;
    font-size: 5.55px !important;
    line-height: 1.055 !important;
  }

  body.print-customer #customerQuote .spec-pdf-warning {
    margin: 1.5px 0 !important;
    padding: 2px 3px !important;
    font-size: 5.5px !important;
    line-height: 1.04 !important;
  }

  body.print-customer #customerQuote .quote-sign {
    margin-top: 2px !important;
    padding-top: 2px !important;
  }

  body.print-customer #customerQuote .sign-grid {
    display: grid !important;
    grid-template-columns: 1fr 1fr 75px !important;
    gap: 6px !important;
  }

  body.print-customer #customerQuote .sign-line {
    height: 10px !important;
  }

  body.print-customer #customerQuote .sign-label {
    font-size: 5.3px !important;
  }

  /* ---------- Footers ---------- */
  body.print-customer #customerQuote .quote-footer {
    margin-top: 2px !important;
    padding-top: 2px !important;
    border-top: 1px solid #cfd8e3 !important;
    font-size: 5.4px !important;
    line-height: 1.05 !important;
    text-align: center !important;
  }

  /* Internal tracker must never leak into customer PDF. */
  body.print-customer #costProfitPrint,
  body.print-customer #costTrackerEditor,
  body.print-customer .footer-note {
    display: none !important;
  }
}


/* =========================================================
   Phase 6.2 - CUSTOMER QUOTE PDF VISUAL REBALANCE
   Format-only. Rates, calculations, wording and save logic unchanged.
   ========================================================= */
@media print {
  @page {
    size: A4 portrait;
    margin: 0;
  }

  body.print-customer #customerQuote {
    width: 210mm !important;
  }

  body.print-customer #customerQuote .quote-sheet {
    box-sizing: border-box !important;
    width: 210mm !important;
    height: 297mm !important;
    min-height: 297mm !important;
    max-height: 297mm !important;
    padding: 9mm 10mm 8mm !important;
    overflow: hidden !important;
    background: #fff !important;
  }

  /* ---------- shared header ---------- */
  body.print-customer #customerQuote .quote-head-clean {
    grid-template-columns: 1fr 76px 58px !important;
    min-height: 48px !important;
    margin-bottom: 6px !important;
    padding-bottom: 5px !important;
    border-bottom: 1.6px solid #1d3f72 !important;
  }

  body.print-customer #customerQuote .quote-logo-main {
    width: 188px !important;
    max-height: 46px !important;
  }

  body.print-customer #customerQuote .quote-logo-aeo {
    width: 70px !important;
    max-height: 42px !important;
  }

  body.print-customer #customerQuote .quote-logo-bifa {
    width: 50px !important;
    max-height: 42px !important;
  }

  body.print-customer #customerQuote .quote-word {
    font-size: 18px !important;
    letter-spacing: .035em !important;
  }

  body.print-customer #customerQuote .quote-page-subtitle {
    font-size: 6.7px !important;
  }

  body.print-customer #customerQuote .quote-meta-band {
    grid-template-columns: 1.18fr .82fr !important;
    gap: 14px !important;
    margin-bottom: 6px !important;
  }

  body.print-customer #customerQuote .quote-company-details p,
  body.print-customer #customerQuote .quote-ref-details p {
    font-size: 7.3px !important;
    line-height: 1.24 !important;
  }

  /* ---------- PAGE 1: make it feel like a real quote, not miniaturised ---------- */
  body.print-customer #customerQuote .quote-sheet:first-child {
    font-size: 8.15px !important;
    line-height: 1.23 !important;
  }

  body.print-customer #customerQuote .intro {
    margin: 5px 0 7px !important;
    font-size: 7.8px !important;
    line-height: 1.25 !important;
  }

  body.print-customer #customerQuote .quote-info {
    margin: 5px 0 7px !important;
  }

  body.print-customer #customerQuote .quote-info th,
  body.print-customer #customerQuote .quote-info td {
    padding: 3.5px 4px !important;
    font-size: 7.65px !important;
    line-height: 1.18 !important;
  }

  body.print-customer #customerQuote .quote-services {
    margin: 6px 0 8px !important;
  }

  body.print-customer #customerQuote .quote-services th,
  body.print-customer #customerQuote .quote-services td {
    padding: 3.5px 4px !important;
    font-size: 7.5px !important;
    line-height: 1.18 !important;
  }

  body.print-customer #customerQuote .quote-services th:nth-child(1) { width: 29% !important; }
  body.print-customer #customerQuote .quote-services th:nth-child(2) { width: 46% !important; }
  body.print-customer #customerQuote .quote-services th:nth-child(3) { width: 9% !important; }
  body.print-customer #customerQuote .quote-services th:nth-child(4) { width: 16% !important; }

  body.print-customer #customerQuote .quote-total {
    font-size: 9px !important;
    padding-top: 1px !important;
  }

  body.print-customer #customerQuote .inc-exc {
    gap: 7px !important;
    margin: 7px 0 5px !important;
  }

  body.print-customer #customerQuote .inc-exc h4 {
    padding: 3px 5px !important;
    font-size: 7.5px !important;
  }

  body.print-customer #customerQuote .inc-exc ul,
  body.print-customer #customerQuote .inc-exc-notes ul {
    padding-left: 15px !important;
    margin: 4px 0 5px !important;
  }

  body.print-customer #customerQuote .inc-exc li {
    font-size: 6.75px !important;
    line-height: 1.14 !important;
    margin: 0 0 1px !important;
  }

  body.print-customer #customerQuote .inc-exc-notes {
    gap: 7px !important;
    margin-top: 5px !important;
  }

  body.print-customer #customerQuote .inc-exc-notes li {
    font-size: 6.45px !important;
    line-height: 1.13 !important;
    margin: 0 0 1px !important;
  }

  body.print-customer #customerQuote .quote-sheet:first-child .quote-footer {
    margin-top: 7px !important;
    padding-top: 4px !important;
    font-size: 6.1px !important;
  }

  /* ---------- PAGE 2: readable legal/operational terms ---------- */
  body.print-customer #customerQuote .quote-sheet:last-child {
    font-size: 6.75px !important;
    line-height: 1.12 !important;
  }

  body.print-customer #customerQuote .quote-sheet:last-child .quote-head-clean {
    min-height: 40px !important;
    margin-bottom: 4px !important;
    padding-bottom: 3px !important;
  }

  body.print-customer #customerQuote .quote-sheet:last-child .quote-logo-main {
    width: 158px !important;
    max-height: 36px !important;
  }

  body.print-customer #customerQuote .quote-sheet:last-child .quote-logo-aeo {
    width: 58px !important;
    max-height: 34px !important;
  }

  body.print-customer #customerQuote .quote-sheet:last-child .quote-logo-bifa {
    width: 44px !important;
    max-height: 34px !important;
  }

  body.print-customer #customerQuote .quote-sheet:last-child .quote-word {
    font-size: 15px !important;
  }

  body.print-customer #customerQuote .quote-sheet:last-child .quote-company-details p,
  body.print-customer #customerQuote .quote-sheet:last-child .quote-ref-details p {
    font-size: 6.15px !important;
    line-height: 1.08 !important;
  }

  body.print-customer #customerQuote .page2-single .pdf-section-title {
    margin: 3px 0 1.5px !important;
    padding: 1.2px 0 !important;
    font-size: 6.95px !important;
    line-height: 1.08 !important;
  }

  body.print-customer #customerQuote .page2-single .terms-table {
    margin: 2px 0 3px !important;
  }

  body.print-customer #customerQuote .page2-single .terms-table th {
    width: 22% !important;
    padding: 2px 2.5px !important;
    font-size: 6.15px !important;
    line-height: 1.08 !important;
  }

  body.print-customer #customerQuote .page2-single .terms-table td {
    padding: 2px 2.5px !important;
    font-size: 6.15px !important;
    line-height: 1.08 !important;
  }

  body.print-customer #customerQuote .page2-single p {
    margin: 1.5px 0 2.5px !important;
    font-size: 6px !important;
    line-height: 1.09 !important;
  }

  body.print-customer #customerQuote .spec-pdf-warning {
    margin: 2px 0 !important;
    padding: 2.5px 3px !important;
    font-size: 5.9px !important;
  }

  /*
   * The previous signature callout was visually huge.
   * Keep the exact wording in the document, but make it a compact acceptance section.
   */
  body.print-customer #customerQuote .quote-sign {
    margin-top: 7px !important;
    padding: 7px 0 0 !important;
    border-top: 1.5px solid #1d3f72 !important;
  }

  body.print-customer #customerQuote .quote-sign h2,
  body.print-customer #customerQuote .quote-sign h3,
  body.print-customer #customerQuote .quote-sign .sign-title,
  body.print-customer #customerQuote .quote-sign > div:first-child:not(.sign-grid) {
    font-size: 10px !important;
    line-height: 1.15 !important;
    font-weight: 700 !important;
    letter-spacing: .015em !important;
    margin: 0 0 9px !important;
    padding: 0 !important;
    color: #172b4d !important;
  }

  body.print-customer #customerQuote .sign-grid {
    grid-template-columns: 1fr 1fr 95px !important;
    gap: 16px !important;
    align-items: end !important;
  }

  body.print-customer #customerQuote .sign-line {
    height: 22px !important;
    border-bottom: 1px solid #64748b !important;
  }

  body.print-customer #customerQuote .sign-label {
    margin-top: 3px !important;
    font-size: 5.9px !important;
    line-height: 1.05 !important;
  }

  body.print-customer #customerQuote .quote-sheet:last-child .quote-footer {
    margin-top: 7px !important;
    padding-top: 4px !important;
    font-size: 5.7px !important;
  }
}

/* Phase 6.3 Runner / Non Runner */
.nonrunner-grid{display:grid;grid-template-columns:repeat(2,minmax(220px,1fr));gap:8px 12px;margin-top:10px}
#runnerStatus.status-ok{background:#ecfdf3;border-color:#a7e3bf;color:#166534}
#runnerStatus.status-warn{background:#fff7ed;border-color:#fed7aa;color:#9a3412}
@media(max-width:760px){.nonrunner-grid{grid-template-columns:1fr}}


/* =========================================================
   Phase 6.4 — FULL-PAGE 2-PAGE CUSTOMER QUOTATION
   Layout/typography only. No wording, data, rates or logic changed.
   Tuned from the supplied 1/2 and 2/2 print-preview screenshots.
   ========================================================= */
@media print {
  body.print-customer #customerQuote .quote-sheet {
    width: 210mm !important;
    height: 297mm !important;
    min-height: 297mm !important;
    max-height: 297mm !important;
    padding: 10mm 12mm 9mm !important;
    overflow: hidden !important;
  }

  /* ---------- PAGE 1 ---------- */
  body.print-customer #customerQuote .quote-sheet:first-child {
    display: flex !important;
    flex-direction: column !important;
    font-size: 9.6px !important;
    line-height: 1.30 !important;
  }

  body.print-customer #customerQuote .quote-sheet:first-child .quote-head-clean {
    min-height: 54px !important;
    margin-bottom: 7px !important;
    padding-bottom: 6px !important;
  }

  body.print-customer #customerQuote .quote-sheet:first-child .quote-logo-main {
    width: 205px !important;
    max-height: 50px !important;
  }

  body.print-customer #customerQuote .quote-sheet:first-child .quote-logo-aeo {
    width: 76px !important;
    max-height: 46px !important;
  }

  body.print-customer #customerQuote .quote-sheet:first-child .quote-logo-bifa {
    width: 54px !important;
    max-height: 44px !important;
  }

  body.print-customer #customerQuote .quote-sheet:first-child .quote-word {
    font-size: 20px !important;
  }

  body.print-customer #customerQuote .quote-sheet:first-child .quote-meta-band {
    margin-bottom: 7px !important;
  }

  body.print-customer #customerQuote .quote-sheet:first-child .quote-company-details p,
  body.print-customer #customerQuote .quote-sheet:first-child .quote-ref-details p {
    font-size: 8.4px !important;
    line-height: 1.30 !important;
  }

  body.print-customer #customerQuote .quote-sheet:first-child .intro {
    margin: 6px 0 9px !important;
    font-size: 9px !important;
    line-height: 1.30 !important;
  }

  body.print-customer #customerQuote .quote-sheet:first-child .quote-info {
    margin: 5px 0 9px !important;
  }

  body.print-customer #customerQuote .quote-sheet:first-child .quote-info th,
  body.print-customer #customerQuote .quote-sheet:first-child .quote-info td {
    padding: 5px 5px !important;
    font-size: 8.8px !important;
    line-height: 1.22 !important;
  }

  body.print-customer #customerQuote .quote-sheet:first-child .quote-services {
    margin: 7px 0 10px !important;
  }

  body.print-customer #customerQuote .quote-sheet:first-child .quote-services th,
  body.print-customer #customerQuote .quote-sheet:first-child .quote-services td {
    padding: 5px 5px !important;
    font-size: 8.6px !important;
    line-height: 1.22 !important;
  }

  body.print-customer #customerQuote .quote-sheet:first-child .quote-total {
    font-size: 10.2px !important;
  }

  body.print-customer #customerQuote .quote-sheet:first-child .inc-exc {
    gap: 9px !important;
    margin: 9px 0 7px !important;
  }

  body.print-customer #customerQuote .quote-sheet:first-child .inc-exc h4 {
    padding: 5px 6px !important;
    font-size: 8.6px !important;
  }

  body.print-customer #customerQuote .quote-sheet:first-child .inc-exc ul,
  body.print-customer #customerQuote .quote-sheet:first-child .inc-exc-notes ul {
    padding-left: 18px !important;
    margin: 6px 0 7px !important;
  }

  body.print-customer #customerQuote .quote-sheet:first-child .inc-exc li {
    font-size: 7.7px !important;
    line-height: 1.24 !important;
    margin-bottom: 2px !important;
  }

  body.print-customer #customerQuote .quote-sheet:first-child .inc-exc-notes {
    gap: 9px !important;
    margin-top: 7px !important;
  }

  body.print-customer #customerQuote .quote-sheet:first-child .inc-exc-notes li {
    font-size: 7.15px !important;
    line-height: 1.20 !important;
    margin-bottom: 2px !important;
  }

  /* Push footer to the bottom so page 1 reads as a full designed sheet. */
  body.print-customer #customerQuote .quote-sheet:first-child .quote-footer {
    margin-top: auto !important;
    padding-top: 6px !important;
    font-size: 6.8px !important;
    line-height: 1.15 !important;
  }

  /* ---------- PAGE 2 ---------- */
  body.print-customer #customerQuote .quote-sheet:last-child {
    display: flex !important;
    flex-direction: column !important;
    font-size: 8.2px !important;
    line-height: 1.20 !important;
  }

  body.print-customer #customerQuote .quote-sheet:last-child .quote-head-clean {
    min-height: 48px !important;
    margin-bottom: 6px !important;
    padding-bottom: 5px !important;
  }

  body.print-customer #customerQuote .quote-sheet:last-child .quote-logo-main {
    width: 185px !important;
    max-height: 43px !important;
  }

  body.print-customer #customerQuote .quote-sheet:last-child .quote-logo-aeo {
    width: 68px !important;
    max-height: 40px !important;
  }

  body.print-customer #customerQuote .quote-sheet:last-child .quote-logo-bifa {
    width: 50px !important;
    max-height: 39px !important;
  }

  body.print-customer #customerQuote .quote-sheet:last-child .quote-word {
    font-size: 18px !important;
  }

  body.print-customer #customerQuote .quote-sheet:last-child .quote-meta-band {
    margin-bottom: 5px !important;
  }

  body.print-customer #customerQuote .quote-sheet:last-child .quote-company-details p,
  body.print-customer #customerQuote .quote-sheet:last-child .quote-ref-details p {
    font-size: 7.1px !important;
    line-height: 1.14 !important;
  }

  body.print-customer #customerQuote .page2-single {
    display: flex !important;
    flex-direction: column !important;
    flex: 1 1 auto !important;
  }

  body.print-customer #customerQuote .page2-single .pdf-section-title {
    margin: 5px 0 3px !important;
    padding: 2px 0 !important;
    font-size: 8.8px !important;
    line-height: 1.15 !important;
  }

  body.print-customer #customerQuote .page2-single .terms-table {
    margin: 3px 0 6px !important;
  }

  body.print-customer #customerQuote .page2-single .terms-table th {
    width: 22% !important;
    padding: 3.4px 4px !important;
    font-size: 7.45px !important;
    line-height: 1.16 !important;
  }

  body.print-customer #customerQuote .page2-single .terms-table td {
    padding: 3.4px 4px !important;
    font-size: 7.45px !important;
    line-height: 1.16 !important;
  }

  body.print-customer #customerQuote .page2-single p {
    margin: 3px 0 5px !important;
    font-size: 7.35px !important;
    line-height: 1.18 !important;
  }

  body.print-customer #customerQuote .spec-pdf-warning {
    margin: 4px 0 !important;
    padding: 4px 5px !important;
    font-size: 7.2px !important;
    line-height: 1.16 !important;
  }

  body.print-customer #customerQuote .quote-sign {
    margin-top: auto !important;
    padding-top: 9px !important;
    border-top: 1.5px solid #1d3f72 !important;
  }

  body.print-customer #customerQuote .quote-sign h3 {
    margin: 0 0 14px !important;
    font-size: 12px !important;
    line-height: 1.18 !important;
  }

  body.print-customer #customerQuote .sign-grid {
    grid-template-columns: 1fr 1fr 100px !important;
    gap: 18px !important;
  }

  body.print-customer #customerQuote .sign-line {
    height: 28px !important;
  }

  body.print-customer #customerQuote .sign-label {
    margin-top: 4px !important;
    font-size: 6.8px !important;
  }

  body.print-customer #customerQuote .quote-sheet:last-child .quote-footer {
    margin-top: 10px !important;
    padding-top: 5px !important;
    font-size: 6.5px !important;
    line-height: 1.12 !important;
  }
}


/* =========================================================
   Phase 6.5 — CUSTOMER PDF RE-LAYOUT
   Based on supplied printed quotation references.
   Wording/calculation logic unchanged except requested labels.
   ========================================================= */
@media print {
  body.print-customer #customerQuote .quote-sheet {
    width: 210mm !important;
    height: 297mm !important;
    min-height: 297mm !important;
    max-height: 297mm !important;
    padding: 8mm 9mm 7mm !important;
    overflow: hidden !important;
  }

  /* PAGE 1 — denser header, larger body, stacked include/exclude */
  body.print-customer #customerQuote .quote-sheet:first-child {
    display:flex !important;
    flex-direction:column !important;
    font-size:10px !important;
    line-height:1.28 !important;
  }
  body.print-customer #customerQuote .quote-sheet:first-child .quote-head-clean {
    min-height:49px !important;
    margin-bottom:5px !important;
    padding-bottom:5px !important;
  }
  body.print-customer #customerQuote .quote-sheet:first-child .quote-logo-main {
    width:190px !important;
    max-height:46px !important;
  }
  body.print-customer #customerQuote .quote-sheet:first-child .quote-logo-aeo {
    width:70px !important;
    max-height:42px !important;
  }
  body.print-customer #customerQuote .quote-sheet:first-child .quote-logo-bifa {
    width:50px !important;
    max-height:40px !important;
  }
  body.print-customer #customerQuote .quote-sheet:first-child .quote-word {
    font-size:21px !important;
  }
  body.print-customer #customerQuote .quote-sheet:first-child .quote-meta-band {
    margin-bottom:5px !important;
  }
  body.print-customer #customerQuote .quote-sheet:first-child .quote-company-details p,
  body.print-customer #customerQuote .quote-sheet:first-child .quote-ref-details p {
    font-size:8.2px !important;
    line-height:1.22 !important;
  }
  body.print-customer #customerQuote .quote-sheet:first-child .intro {
    margin:4px 0 7px !important;
    font-size:8.8px !important;
    line-height:1.25 !important;
  }
  body.print-customer #customerQuote .quote-sheet:first-child .quote-info {
    margin:4px 0 7px !important;
  }
  body.print-customer #customerQuote .quote-sheet:first-child .quote-info th,
  body.print-customer #customerQuote .quote-sheet:first-child .quote-info td {
    padding:4px 5px !important;
    font-size:8.7px !important;
    line-height:1.20 !important;
  }
  body.print-customer #customerQuote .quote-sheet:first-child .quote-services {
    margin:6px 0 7px !important;
  }
  body.print-customer #customerQuote .quote-sheet:first-child .quote-services th,
  body.print-customer #customerQuote .quote-sheet:first-child .quote-services td {
    padding:4px 5px !important;
    font-size:8.7px !important;
    line-height:1.20 !important;
  }
  body.print-customer #customerQuote .quote-sheet:first-child .quote-total {
    font-size:10px !important;
  }

  /* Reference document uses full-width stacked blocks rather than two narrow columns. */
  body.print-customer #customerQuote .quote-sheet:first-child .inc-exc {
    display:block !important;
    margin:7px 0 5px !important;
  }
  body.print-customer #customerQuote .quote-sheet:first-child .inc-exc > div {
    width:100% !important;
    margin:0 0 6px !important;
    border:1px solid #d5dce6 !important;
    box-sizing:border-box !important;
  }
  body.print-customer #customerQuote .quote-sheet:first-child .inc-exc h4 {
    padding:4px 6px !important;
    margin:0 !important;
    font-size:8.8px !important;
  }
  body.print-customer #customerQuote .quote-sheet:first-child .inc-exc ul {
    margin:5px 0 5px !important;
    padding-left:19px !important;
  }
  body.print-customer #customerQuote .quote-sheet:first-child .inc-exc li {
    font-size:8.05px !important;
    line-height:1.19 !important;
    margin-bottom:1px !important;
  }

  /* Notes also stack full-width, matching the supplied reference. */
  body.print-customer #customerQuote .quote-sheet:first-child .inc-exc-notes {
    display:block !important;
    margin-top:3px !important;
  }
  body.print-customer #customerQuote .quote-sheet:first-child .inc-exc-notes > div {
    width:100% !important;
    margin:0 0 4px !important;
    border:1px solid #d5dce6 !important;
    padding:3px 5px !important;
    box-sizing:border-box !important;
  }
  body.print-customer #customerQuote .quote-sheet:first-child .inc-exc-notes ul {
    margin:2px 0 !important;
    padding-left:16px !important;
  }
  body.print-customer #customerQuote .quote-sheet:first-child .inc-exc-notes li {
    font-size:7.35px !important;
    line-height:1.16 !important;
    margin-bottom:1px !important;
  }
  body.print-customer #customerQuote .quote-sheet:first-child .quote-footer {
    margin-top:auto !important;
    padding-top:4px !important;
    font-size:6.6px !important;
  }

  /* PAGE 2 — use the complete page like the printed reference. */
  body.print-customer #customerQuote .quote-sheet:last-child {
    display:flex !important;
    flex-direction:column !important;
    padding:7mm 8mm 6mm !important;
    font-size:8.2px !important;
    line-height:1.17 !important;
  }
  body.print-customer #customerQuote .quote-sheet:last-child .quote-head-clean {
    min-height:47px !important;
    margin-bottom:4px !important;
    padding-bottom:4px !important;
  }
  body.print-customer #customerQuote .quote-sheet:last-child .quote-logo-main {
    width:185px !important;
    max-height:43px !important;
  }
  body.print-customer #customerQuote .quote-sheet:last-child .quote-word {
    font-size:19px !important;
  }
  body.print-customer #customerQuote .quote-sheet:last-child .page2-single {
    display:flex !important;
    flex-direction:column !important;
    flex:1 1 auto !important;
  }
  body.print-customer #customerQuote .page2-single .terms-table {
    margin:2px 0 5px !important;
  }
  body.print-customer #customerQuote .page2-single .terms-table th,
  body.print-customer #customerQuote .page2-single .terms-table td {
    padding:3.2px 4px !important;
    font-size:7.5px !important;
    line-height:1.13 !important;
  }
  body.print-customer #customerQuote .page2-single .terms-table th {
    width:22% !important;
  }
  body.print-customer #customerQuote .page2-single .pdf-section-title {
    margin:4px 0 2px !important;
    padding:2px 0 !important;
    font-size:9.4px !important;
    line-height:1.12 !important;
    border-bottom:1.2px solid #1d3f72 !important;
  }
  body.print-customer #customerQuote .page2-single p {
    margin:2px 0 4px !important;
    font-size:7.55px !important;
    line-height:1.16 !important;
  }
  body.print-customer #customerQuote .spec-pdf-warning {
    margin:3px 0 !important;
    padding:4px 5px !important;
    font-size:7.5px !important;
  }
  body.print-customer #customerQuote .quote-sign {
    margin-top:auto !important;
    padding-top:7px !important;
    border-top:1.4px solid #1d3f72 !important;
  }
  body.print-customer #customerQuote .quote-sign h3 {
    margin:0 0 11px !important;
    font-size:12.5px !important;
  }
  body.print-customer #customerQuote .sign-grid {
    grid-template-columns:1fr 1fr 95px !important;
    gap:15px !important;
  }
  body.print-customer #customerQuote .sign-line {
    height:25px !important;
  }
  body.print-customer #customerQuote .quote-sheet:last-child .quote-footer {
    margin-top:7px !important;
    padding-top:4px !important;
    font-size:6.4px !important;
  }
}


/* =========================================================
   Phase 6.6 — PRINT SCALE / PAGE-FILL PASS
   Content and business logic unchanged.
   The supplied Phase 6.5 preview showed excessive unused lower-page
   space, especially on page 2. This pass increases readable type,
   row heights and vertical rhythm while preserving exactly 2 A4 pages.
   ========================================================= */
@media print {
  body.print-customer #customerQuote .quote-sheet {
    padding: 7mm 8mm 6mm !important;
  }

  /* PAGE 1 */
  body.print-customer #customerQuote .quote-sheet:first-child {
    font-size: 11.1px !important;
    line-height: 1.34 !important;
  }
  body.print-customer #customerQuote .quote-sheet:first-child .quote-head-clean {
    min-height: 55px !important;
    margin-bottom: 7px !important;
  }
  body.print-customer #customerQuote .quote-sheet:first-child .quote-word {
    font-size: 23px !important;
  }
  body.print-customer #customerQuote .quote-sheet:first-child .quote-company-details p,
  body.print-customer #customerQuote .quote-sheet:first-child .quote-ref-details p {
    font-size: 9.1px !important;
    line-height: 1.30 !important;
  }
  body.print-customer #customerQuote .quote-sheet:first-child .intro {
    margin: 6px 0 9px !important;
    font-size: 9.7px !important;
    line-height: 1.32 !important;
  }
  body.print-customer #customerQuote .quote-sheet:first-child .quote-info {
    margin: 5px 0 9px !important;
  }
  body.print-customer #customerQuote .quote-sheet:first-child .quote-info th,
  body.print-customer #customerQuote .quote-sheet:first-child .quote-info td {
    padding: 5.3px 6px !important;
    font-size: 9.6px !important;
    line-height: 1.27 !important;
  }
  body.print-customer #customerQuote .quote-sheet:first-child .quote-services {
    margin: 7px 0 9px !important;
  }
  body.print-customer #customerQuote .quote-sheet:first-child .quote-services th,
  body.print-customer #customerQuote .quote-sheet:first-child .quote-services td {
    padding: 5.2px 6px !important;
    font-size: 9.5px !important;
    line-height: 1.27 !important;
  }
  body.print-customer #customerQuote .quote-sheet:first-child .quote-total {
    font-size: 11.2px !important;
  }
  body.print-customer #customerQuote .quote-sheet:first-child .inc-exc {
    margin: 9px 0 7px !important;
  }
  body.print-customer #customerQuote .quote-sheet:first-child .inc-exc > div {
    margin-bottom: 8px !important;
  }
  body.print-customer #customerQuote .quote-sheet:first-child .inc-exc h4 {
    padding: 5px 7px !important;
    font-size: 9.8px !important;
  }
  body.print-customer #customerQuote .quote-sheet:first-child .inc-exc ul {
    margin: 7px 0 !important;
    padding-left: 21px !important;
  }
  body.print-customer #customerQuote .quote-sheet:first-child .inc-exc li {
    font-size: 8.9px !important;
    line-height: 1.28 !important;
    margin-bottom: 2px !important;
  }
  body.print-customer #customerQuote .quote-sheet:first-child .inc-exc-notes {
    margin-top: 5px !important;
  }
  body.print-customer #customerQuote .quote-sheet:first-child .inc-exc-notes > div {
    margin-bottom: 6px !important;
    padding: 5px 6px !important;
  }
  body.print-customer #customerQuote .quote-sheet:first-child .inc-exc-notes ul {
    padding-left: 19px !important;
  }
  body.print-customer #customerQuote .quote-sheet:first-child .inc-exc-notes li {
    font-size: 8.25px !important;
    line-height: 1.25 !important;
    margin-bottom: 2px !important;
  }
  body.print-customer #customerQuote .quote-sheet:first-child .quote-footer {
    font-size: 7.2px !important;
    padding-top: 6px !important;
  }

  /* PAGE 2 — materially larger and more vertically distributed */
  body.print-customer #customerQuote .quote-sheet:last-child {
    padding: 7mm 8mm 6mm !important;
    font-size: 9.45px !important;
    line-height: 1.25 !important;
  }
  body.print-customer #customerQuote .quote-sheet:last-child .quote-head-clean {
    min-height: 54px !important;
    margin-bottom: 7px !important;
    padding-bottom: 5px !important;
  }
  body.print-customer #customerQuote .quote-sheet:last-child .quote-word {
    font-size: 21px !important;
  }
  body.print-customer #customerQuote .quote-sheet:last-child .quote-company-details p,
  body.print-customer #customerQuote .quote-sheet:last-child .quote-ref-details p {
    font-size: 8.2px !important;
    line-height: 1.22 !important;
  }
  body.print-customer #customerQuote .page2-single {
    justify-content: flex-start !important;
  }
  body.print-customer #customerQuote .page2-single .terms-table {
    margin: 4px 0 9px !important;
  }
  body.print-customer #customerQuote .page2-single .terms-table th,
  body.print-customer #customerQuote .page2-single .terms-table td {
    padding: 4.6px 5px !important;
    font-size: 8.55px !important;
    line-height: 1.22 !important;
  }
  body.print-customer #customerQuote .page2-single .pdf-section-title {
    margin: 7px 0 4px !important;
    padding: 3px 0 !important;
    font-size: 10.5px !important;
    line-height: 1.18 !important;
  }
  body.print-customer #customerQuote .page2-single p {
    margin: 4px 0 7px !important;
    font-size: 8.5px !important;
    line-height: 1.24 !important;
  }
  body.print-customer #customerQuote .spec-pdf-warning {
    margin: 6px 0 !important;
    padding: 6px 7px !important;
    font-size: 8.45px !important;
    line-height: 1.22 !important;
  }
  body.print-customer #customerQuote .quote-sign {
    margin-top: auto !important;
    padding-top: 9px !important;
  }
  body.print-customer #customerQuote .quote-sign h3 {
    margin-bottom: 16px !important;
    font-size: 13.5px !important;
  }
  body.print-customer #customerQuote .sign-line {
    height: 31px !important;
  }
  body.print-customer #customerQuote .sign-label {
    font-size: 7.3px !important;
  }
  body.print-customer #customerQuote .quote-sheet:last-child .quote-footer {
    margin-top: 10px !important;
    font-size: 7px !important;
  }
}

/* Phase 7.1 — 4.5 checkbox order: top-to-bottom in left column, then top-to-bottom in right column */
.service-check-grid.service-check-columns{
  display:grid!important;
  grid-template-columns:1fr 1fr!important;
  gap:14px!important;
  align-items:start!important;
}
.service-check-column{
  display:flex!important;
  flex-direction:column!important;
  gap:9px!important;
}
@media(max-width:760px){
  .service-check-grid.service-check-columns{grid-template-columns:1fr!important}
}


.standalone-tools{
  margin:0 0 14px;
  padding:12px 14px;
  border:1px solid #d9e2ec;
  border-radius:12px;
  background:#fff;
  display:flex;
  gap:14px;
  align-items:end;
  flex-wrap:wrap;
}
.standalone-tools label{min-width:300px}
.standalone-note{font-size:12px;color:#64748b;padding-bottom:9px}
@media print{.standalone-tools{display:none!important}}


.service-check input:disabled + span{opacity:.58;cursor:not-allowed}
.locked-exclude-note{display:inline-block;margin-left:6px;font-size:10px;font-weight:700;letter-spacing:.03em;text-transform:uppercase;color:#64748b}

@media(max-width:760px){.toggleRow>div:first-child{grid-template-columns:1fr}.toggleRow>div:first-child>select{margin-top:6px}}

.marine-risk-note{font-size:9px;line-height:1.25;margin:5px 0 7px;color:#475569}

@media print{
  /* Keep the marine-insurance advisory secondary to the pricing table. */
  #customerQuote .quote-sheet:first-child .marine-risk-note{
    font-size:7.6px!important;
    line-height:1.16!important;
    margin:3px 0 5px!important;
    color:#526173!important;
  }

  /* Compact page 2 slightly so the customer quotation remains exactly two A4 pages. */
  #customerQuote .quote-sheet:nth-child(2){
    font-size:8.2px!important;
    line-height:1.18!important;
  }
  #customerQuote .quote-sheet:nth-child(2) .quote-head-clean{
    min-height:48px!important;
    margin-bottom:5px!important;
    padding-bottom:4px!important;
  }
  #customerQuote .quote-sheet:nth-child(2) .quote-logo-main{width:208px!important}
  #customerQuote .quote-sheet:nth-child(2) .quote-logo-aeo{width:80px!important}
  #customerQuote .quote-sheet:nth-child(2) .quote-logo-bifa{width:61px!important}
  #customerQuote .quote-sheet:nth-child(2) .quote-word{font-size:20px!important}
  #customerQuote .quote-sheet:nth-child(2) .quote-page-subtitle{font-size:7.6px!important}

  #customerQuote .quote-sheet:nth-child(2) .pdf-section-title{
    font-size:9.5px!important;
    line-height:1.15!important;
    margin:5px 0 3px!important;
    padding:2px 0!important;
  }
  #customerQuote .quote-sheet:nth-child(2) .terms-table{
    margin:3px 0 5px!important;
  }
  #customerQuote .quote-sheet:nth-child(2) .terms-table th{
    width:23%!important;
    font-size:7.8px!important;
    line-height:1.16!important;
    padding:3px 4px!important;
  }
  #customerQuote .quote-sheet:nth-child(2) .terms-table td{
    font-size:7.8px!important;
    line-height:1.17!important;
    padding:3px 4px!important;
  }
  #customerQuote .quote-sheet:nth-child(2) .page2-single p{
    font-size:7.7px!important;
    line-height:1.17!important;
    margin:3px 0 4px!important;
  }
  #customerQuote .quote-sheet:nth-child(2) .policy-box{
    font-size:7.6px!important;
    line-height:1.16!important;
    padding:3px 4px!important;
    margin:3px 0!important;
  }
  #customerQuote .quote-sheet:nth-child(2) .policy-box h4{
    font-size:7.9px!important;
    margin:0 0 1px!important;
  }
  #customerQuote .quote-sheet:nth-child(2) .commercial-heading{
    margin-top:4px!important;
    padding-top:3px!important;
  }
  #customerQuote .quote-sheet:nth-child(2) .quote-sign{
    margin-top:5px!important;
    padding-top:4px!important;
  }
  #customerQuote .quote-sheet:nth-child(2) .sign-line{height:18px!important}
  #customerQuote .quote-sheet:nth-child(2) .sign-label{font-size:7.2px!important}
  #customerQuote .quote-sheet:nth-child(2) .quote-footer{
    font-size:6.8px!important;
    line-height:1.08!important;
    margin-top:4px!important;
    padding-top:3px!important;
  }

  /* Avoid a browser-generated trailing blank page. */
  #customerQuote,
  #customerQuote .quote-page,
  #customerQuote .quote-sheet:last-child{
    break-after:auto!important;
    page-break-after:auto!important;
  }
}


@media print{
  /* FINAL TWO-PAGE LOCKDOWN — compact enough to keep the quotation to exactly two A4 sheets. */
  @page{size:A4 portrait;margin:5mm 6mm 5mm}

  #customerQuote{
    font-size:8px!important;
    line-height:1.14!important;
  }

  #customerQuote .quote-sheet{
    box-sizing:border-box!important;
    min-height:0!important;
    height:auto!important;
    margin:0!important;
    padding:0!important;
  }

  #customerQuote .quote-sheet:first-child{
    break-after:page!important;
    page-break-after:always!important;
    font-size:8.2px!important;
    line-height:1.15!important;
  }

  #customerQuote .quote-sheet:last-child{
    break-after:auto!important;
    page-break-after:auto!important;
    font-size:7.6px!important;
    line-height:1.12!important;
  }

  /* Page 1 */
  #customerQuote .quote-sheet:first-child .quote-head-clean{
    min-height:46px!important;
    margin:0 0 5px!important;
    padding:0 0 4px!important;
  }
  #customerQuote .quote-sheet:first-child .quote-logo-main{width:205px!important}
  #customerQuote .quote-sheet:first-child .quote-logo-aeo{width:78px!important}
  #customerQuote .quote-sheet:first-child .quote-logo-bifa{width:60px!important}
  #customerQuote .quote-sheet:first-child .quote-word{font-size:20px!important}
  #customerQuote .quote-sheet:first-child .quote-page-subtitle{font-size:7.4px!important}
  #customerQuote .quote-sheet:first-child .quote-meta-band{margin:0 0 5px!important;gap:10px!important}
  #customerQuote .quote-sheet:first-child .quote-company-details p,
  #customerQuote .quote-sheet:first-child .quote-ref-details p{
    font-size:7.8px!important;
    line-height:1.12!important;
    margin:0!important;
  }
  #customerQuote .quote-sheet:first-child .intro{
    font-size:8px!important;
    line-height:1.14!important;
    margin:4px 0 5px!important;
  }
  #customerQuote .quote-sheet:first-child .quote-info,
  #customerQuote .quote-sheet:first-child .quote-services{
    margin:3px 0 5px!important;
  }
  #customerQuote .quote-sheet:first-child .quote-info th,
  #customerQuote .quote-sheet:first-child .quote-info td,
  #customerQuote .quote-sheet:first-child .quote-services th,
  #customerQuote .quote-sheet:first-child .quote-services td{
    font-size:7.7px!important;
    line-height:1.12!important;
    padding:3px 4px!important;
  }
  #customerQuote .quote-sheet:first-child .quote-total{font-size:9.8px!important}
  #customerQuote .quote-sheet:first-child .marine-risk-note{
    font-size:7px!important;
    line-height:1.1!important;
    margin:2px 0 4px!important;
  }
  #customerQuote .quote-sheet:first-child .inc-exc{
    gap:5px!important;
    margin-top:4px!important;
  }
  #customerQuote .quote-sheet:first-child .inc-exc h4{
    font-size:7.8px!important;
    padding:3px 4px!important;
  }
  #customerQuote .quote-sheet:first-child .inc-exc ul{
    margin:2px 0 3px!important;
    padding-left:14px!important;
  }
  #customerQuote .quote-sheet:first-child .inc-exc li{
    font-size:7.1px!important;
    line-height:1.1!important;
    margin:0!important;
  }
  #customerQuote .quote-sheet:first-child .inc-exc-notes{
    gap:5px!important;
    margin-top:3px!important;
  }
  #customerQuote .quote-sheet:first-child .inc-exc-notes ul{
    margin:2px 0 3px!important;
    padding-left:14px!important;
  }
  #customerQuote .quote-sheet:first-child .inc-exc-notes li{
    font-size:7px!important;
    line-height:1.1!important;
    margin:0!important;
  }
  #customerQuote .quote-sheet:first-child .quote-footer{
    font-size:6.5px!important;
    line-height:1.05!important;
    margin-top:4px!important;
    padding-top:3px!important;
  }

  /* Page 2 */
  #customerQuote .quote-sheet:nth-child(2) .quote-head-clean{
    min-height:42px!important;
    margin:0 0 4px!important;
    padding:0 0 3px!important;
  }
  #customerQuote .quote-sheet:nth-child(2) .quote-logo-main{width:195px!important}
  #customerQuote .quote-sheet:nth-child(2) .quote-logo-aeo{width:74px!important}
  #customerQuote .quote-sheet:nth-child(2) .quote-logo-bifa{width:56px!important}
  #customerQuote .quote-sheet:nth-child(2) .quote-word{font-size:18.5px!important}
  #customerQuote .quote-sheet:nth-child(2) .quote-page-subtitle{font-size:7px!important}
  #customerQuote .quote-sheet:nth-child(2) .pdf-section-title{
    font-size:8.7px!important;
    line-height:1.1!important;
    margin:3px 0 2px!important;
    padding:2px 0!important;
  }
  #customerQuote .quote-sheet:nth-child(2) .terms-table{
    margin:2px 0 3px!important;
  }
  #customerQuote .quote-sheet:nth-child(2) .terms-table th,
  #customerQuote .quote-sheet:nth-child(2) .terms-table td{
    font-size:7.2px!important;
    line-height:1.1!important;
    padding:2.4px 3px!important;
  }
  #customerQuote .quote-sheet:nth-child(2) .page2-single p{
    font-size:7.1px!important;
    line-height:1.1!important;
    margin:2px 0 3px!important;
  }
  #customerQuote .quote-sheet:nth-child(2) .policy-box{
    font-size:7px!important;
    line-height:1.08!important;
    padding:2.5px 3px!important;
    margin:2px 0!important;
    break-inside:auto!important;
    page-break-inside:auto!important;
  }
  #customerQuote .quote-sheet:nth-child(2) .policy-box h4{
    font-size:7.3px!important;
    margin:0 0 1px!important;
  }
  #customerQuote .quote-sheet:nth-child(2) .commercial-heading{
    margin-top:3px!important;
    padding-top:2px!important;
  }
  #customerQuote .quote-sheet:nth-child(2) .quote-sign{
    margin-top:3px!important;
    padding-top:3px!important;
    break-inside:auto!important;
    page-break-inside:auto!important;
  }
  #customerQuote .quote-sheet:nth-child(2) .sign-grid{
    grid-template-columns:1fr 1fr 88px!important;
    gap:7px!important;
  }
  #customerQuote .quote-sheet:nth-child(2) .sign-line{height:14px!important}
  #customerQuote .quote-sheet:nth-child(2) .sign-label{font-size:6.8px!important}
  #customerQuote .quote-sheet:nth-child(2) .quote-footer{
    font-size:6.3px!important;
    line-height:1.04!important;
    margin-top:3px!important;
    padding-top:2px!important;
  }

  /* These 'keep together' rules were the main cause of tiny spillover pages. */
  #customerQuote .quote-sheet:nth-child(2) .keep,
  #customerQuote .quote-sheet:nth-child(2) .policy-box,
  #customerQuote .quote-sheet:nth-child(2) .quote-sign{
    break-inside:auto!important;
    page-break-inside:auto!important;
  }
}




@media print{
  @page{size:A4 portrait;margin:5mm 6mm 5mm}

  /* Page 1 stays compact but readable. */
  #customerQuote .quote-sheet:first-child{
    font-size:8.4px!important;
    line-height:1.16!important;
  }
  #customerQuote .quote-sheet:first-child .quote-head-clean{
    min-height:44px!important;
    margin:0 0 4px!important;
    padding:0 0 3px!important;
  }
  #customerQuote .quote-sheet:first-child .quote-logo-main{width:202px!important}
  #customerQuote .quote-sheet:first-child .quote-logo-aeo{width:76px!important}
  #customerQuote .quote-sheet:first-child .quote-logo-bifa{width:58px!important}
  #customerQuote .quote-sheet:first-child .quote-word{font-size:19.5px!important}
  #customerQuote .quote-sheet:first-child .quote-meta-band{margin:0 0 4px!important}
  #customerQuote .quote-sheet:first-child .quote-company-details p,
  #customerQuote .quote-sheet:first-child .quote-ref-details p{
    font-size:7.8px!important;
    line-height:1.1!important;
  }
  #customerQuote .quote-sheet:first-child .intro{
    margin:3px 0 4px!important;
    font-size:8px!important;
    line-height:1.12!important;
  }
  #customerQuote .quote-sheet:first-child .quote-info,
  #customerQuote .quote-sheet:first-child .quote-services{
    margin:2px 0 4px!important;
  }
  #customerQuote .quote-sheet:first-child .quote-info th,
  #customerQuote .quote-sheet:first-child .quote-info td,
  #customerQuote .quote-sheet:first-child .quote-services th,
  #customerQuote .quote-sheet:first-child .quote-services td{
    font-size:7.7px!important;
    line-height:1.1!important;
    padding:2.7px 3.6px!important;
  }
  #customerQuote .quote-sheet:first-child .marine-risk-note{
    font-size:7px!important;
    line-height:1.08!important;
    margin:2px 0 3px!important;
  }
  #customerQuote .quote-sheet:first-child .inc-exc{
    gap:5px!important;
    margin-top:3px!important;
  }
  #customerQuote .quote-sheet:first-child .inc-exc h4{
    font-size:7.8px!important;
    padding:2.5px 4px!important;
  }
  #customerQuote .quote-sheet:first-child .inc-exc ul,
  #customerQuote .quote-sheet:first-child .inc-exc-notes ul{
    margin:2px 0 3px!important;
    padding-left:14px!important;
  }
  #customerQuote .quote-sheet:first-child .inc-exc li,
  #customerQuote .quote-sheet:first-child .inc-exc-notes li{
    font-size:7.05px!important;
    line-height:1.08!important;
    margin:0!important;
  }
  #customerQuote .quote-sheet:first-child .quote-footer{
    font-size:6.4px!important;
    margin-top:3px!important;
    padding-top:2px!important;
  }

  /* Page 2: readable body, but use width instead of shrinking the text. */
  #customerQuote .quote-sheet:nth-child(2){
    font-size:8.6px!important;
    line-height:1.19!important;
  }
  #customerQuote .quote-sheet:nth-child(2) .quote-head-clean{
    min-height:44px!important;
    margin:0 0 4px!important;
    padding:0 0 3px!important;
  }
  #customerQuote .quote-sheet:nth-child(2) .quote-logo-main{width:202px!important}
  #customerQuote .quote-sheet:nth-child(2) .quote-logo-aeo{width:76px!important}
  #customerQuote .quote-sheet:nth-child(2) .quote-logo-bifa{width:58px!important}
  #customerQuote .quote-sheet:nth-child(2) .quote-word{font-size:19px!important}
  #customerQuote .quote-sheet:nth-child(2) .quote-meta-band{
    margin:0 0 4px!important;
    gap:10px!important;
  }
  #customerQuote .quote-sheet:nth-child(2) .quote-company-details p,
  #customerQuote .quote-sheet:nth-child(2) .quote-ref-details p{
    font-size:7.8px!important;
    line-height:1.1!important;
    margin:0!important;
  }

  /* Shipment requirements stay full width. */
  #customerQuote .quote-sheet:nth-child(2) .page2-single > .pdf-section-title:first-child{
    font-size:9.2px!important;
    margin:3px 0 2px!important;
    padding:2px 0!important;
  }
  #customerQuote .quote-sheet:nth-child(2) .page2-single > .terms-table{
    margin:2px 0 4px!important;
    table-layout:fixed!important;
  }
  #customerQuote .quote-sheet:nth-child(2) .page2-single > .terms-table th{
    width:23%!important;
    font-size:7.7px!important;
    line-height:1.1!important;
    padding:2.5px 3px!important;
  }
  #customerQuote .quote-sheet:nth-child(2) .page2-single > .terms-table td{
    font-size:7.7px!important;
    line-height:1.11!important;
    padding:2.5px 3px!important;
  }

  /* Long terms use two balanced columns, allowing larger text without a third page. */
  #customerQuote .page2-terms-columns{
    column-count:2!important;
    column-gap:7mm!important;
    column-fill:balance!important;
    margin-top:2px!important;
  }
  #customerQuote .page2-terms-columns .pdf-section-title{
    break-after:avoid!important;
    page-break-after:avoid!important;
    break-inside:avoid!important;
    page-break-inside:avoid!important;
    font-size:8.8px!important;
    line-height:1.12!important;
    margin:4px 0 2px!important;
    padding:2px 0!important;
  }
  #customerQuote .page2-terms-columns p{
    font-size:8.15px!important;
    line-height:1.18!important;
    margin:2px 0 4px!important;
    orphans:2!important;
    widows:2!important;
  }
  #customerQuote .page2-terms-columns .spec-pdf-warning{
    font-size:7.8px!important;
    line-height:1.15!important;
    padding:3px 4px!important;
    margin:3px 0!important;
  }

  /* Signature stays full width at the bottom. */
  #customerQuote .quote-sheet:nth-child(2) .quote-sign{
    column-span:all!important;
    margin-top:4px!important;
    padding-top:4px!important;
    break-inside:avoid!important;
    page-break-inside:avoid!important;
  }
  #customerQuote .quote-sheet:nth-child(2) .sign-grid{
    grid-template-columns:1fr 1fr 95px!important;
    gap:8px!important;
  }
  #customerQuote .quote-sheet:nth-child(2) .sign-line{height:16px!important}
  #customerQuote .quote-sheet:nth-child(2) .sign-label{font-size:7px!important}
  #customerQuote .quote-sheet:nth-child(2) .quote-footer{
    font-size:6.5px!important;
    line-height:1.05!important;
    margin-top:3px!important;
    padding-top:2px!important;
  }

  /* Exactly two explicit quotation sheets. */
  #customerQuote .quote-sheet:first-child{
    break-after:page!important;
    page-break-after:always!important;
  }
  #customerQuote .quote-sheet:last-child{
    break-after:auto!important;
    page-break-after:auto!important;
  }
}



@media print{
  @page{size:A4 portrait;margin:5mm 6mm 5mm!important}

  /* CUSTOMER PDF: explicitly isolate two quote sheets only. */
  body.print-customer #customerQuote{
    display:block!important;
    position:absolute!important;
    top:0!important;
    left:0!important;
    width:100%!important;
    margin:0!important;
    padding:0!important;
  }
  body.print-customer #customerQuote .quote-page{
    display:block!important;
    margin:0!important;
    padding:0!important;
  }
  body.print-customer #customerQuote .quote-sheet{
    display:block!important;
    width:100%!important;
    min-height:0!important;
    margin:0!important;
    padding:0!important;
    overflow:hidden!important;
  }
  body.print-customer #customerQuote .quote-sheet:first-child{
    break-after:page!important;
    page-break-after:always!important;
  }
  body.print-customer #customerQuote .quote-sheet:last-child{
    break-after:auto!important;
    page-break-after:auto!important;
  }
  body.print-customer #costProfitPrint{
    display:none!important;
  }

  /* PAGE 1 — compact enough to leave a clean first sheet. */
  body.print-customer #customerQuote .quote-sheet:first-child{
    font-size:8.25px!important;
    line-height:1.14!important;
  }
  body.print-customer #customerQuote .quote-sheet:first-child .quote-head-clean{
    min-height:43px!important;
    margin:0 0 4px!important;
    padding:0 0 3px!important;
  }
  body.print-customer #customerQuote .quote-sheet:first-child .quote-logo-main{width:198px!important}
  body.print-customer #customerQuote .quote-sheet:first-child .quote-logo-aeo{width:74px!important}
  body.print-customer #customerQuote .quote-sheet:first-child .quote-logo-bifa{width:56px!important}
  body.print-customer #customerQuote .quote-sheet:first-child .quote-word{font-size:19px!important}
  body.print-customer #customerQuote .quote-sheet:first-child .quote-page-subtitle{font-size:7.2px!important}

  body.print-customer #customerQuote .quote-sheet:first-child .quote-meta-band{
    margin:0 0 4px!important;
    gap:10px!important;
  }
  body.print-customer #customerQuote .quote-sheet:first-child .quote-company-details p,
  body.print-customer #customerQuote .quote-sheet:first-child .quote-ref-details p{
    font-size:7.6px!important;
    line-height:1.09!important;
    margin:0!important;
  }
  body.print-customer #customerQuote .quote-sheet:first-child .intro{
    font-size:7.9px!important;
    line-height:1.11!important;
    margin:3px 0 4px!important;
  }
  body.print-customer #customerQuote .quote-sheet:first-child .quote-info,
  body.print-customer #customerQuote .quote-sheet:first-child .quote-services{
    margin:2px 0 4px!important;
  }
  body.print-customer #customerQuote .quote-sheet:first-child .quote-info th,
  body.print-customer #customerQuote .quote-sheet:first-child .quote-info td,
  body.print-customer #customerQuote .quote-sheet:first-child .quote-services th,
  body.print-customer #customerQuote .quote-sheet:first-child .quote-services td{
    font-size:7.55px!important;
    line-height:1.09!important;
    padding:2.6px 3.5px!important;
  }
  body.print-customer #customerQuote .quote-sheet:first-child .quote-total{
    font-size:9.5px!important;
  }
  body.print-customer #customerQuote .quote-sheet:first-child .marine-risk-note{
    font-size:6.9px!important;
    line-height:1.08!important;
    margin:2px 0 3px!important;
  }
  body.print-customer #customerQuote .quote-sheet:first-child .inc-exc{
    gap:5px!important;
    margin:3px 0!important;
  }
  body.print-customer #customerQuote .quote-sheet:first-child .inc-exc h4{
    font-size:7.7px!important;
    padding:2.5px 4px!important;
  }
  body.print-customer #customerQuote .quote-sheet:first-child .inc-exc ul,
  body.print-customer #customerQuote .quote-sheet:first-child .inc-exc-notes ul{
    margin:2px 0 3px!important;
    padding-left:14px!important;
  }
  body.print-customer #customerQuote .quote-sheet:first-child .inc-exc li,
  body.print-customer #customerQuote .quote-sheet:first-child .inc-exc-notes li{
    font-size:7px!important;
    line-height:1.07!important;
    margin:0!important;
  }
  body.print-customer #customerQuote .quote-sheet:first-child .quote-footer{
    font-size:6.3px!important;
    line-height:1.04!important;
    margin-top:3px!important;
    padding-top:2px!important;
  }

  /* PAGE 2 — use TWO COLUMNS so the text can be larger without creating page 3. */
  body.print-customer #customerQuote .quote-sheet:last-child{
    font-size:8.4px!important;
    line-height:1.17!important;
  }
  body.print-customer #customerQuote .quote-sheet:last-child .quote-head-clean{
    min-height:42px!important;
    margin:0 0 4px!important;
    padding:0 0 3px!important;
  }
  body.print-customer #customerQuote .quote-sheet:last-child .quote-logo-main{width:198px!important}
  body.print-customer #customerQuote .quote-sheet:last-child .quote-logo-aeo{width:74px!important}
  body.print-customer #customerQuote .quote-sheet:last-child .quote-logo-bifa{width:56px!important}
  body.print-customer #customerQuote .quote-sheet:last-child .quote-word{font-size:18.5px!important}
  body.print-customer #customerQuote .quote-sheet:last-child .quote-page-subtitle{font-size:7.1px!important}
  body.print-customer #customerQuote .quote-sheet:last-child .quote-meta-band{
    margin:0 0 3px!important;
    gap:10px!important;
  }
  body.print-customer #customerQuote .quote-sheet:last-child .quote-company-details p,
  body.print-customer #customerQuote .quote-sheet:last-child .quote-ref-details p{
    font-size:7.5px!important;
    line-height:1.08!important;
    margin:0!important;
  }

  /* Shipment requirements remain full width at the top. */
  body.print-customer #customerQuote .quote-sheet:last-child .page2-single{
    display:block!important;
  }
  body.print-customer #customerQuote .quote-sheet:last-child .page2-single > .pdf-section-title:first-child{
    font-size:9px!important;
    line-height:1.1!important;
    margin:3px 0 2px!important;
    padding:2px 0!important;
  }
  body.print-customer #customerQuote .quote-sheet:last-child .page2-single > .terms-table{
    width:100%!important;
    table-layout:fixed!important;
    margin:2px 0 4px!important;
  }
  body.print-customer #customerQuote .quote-sheet:last-child .page2-single > .terms-table th{
    width:22%!important;
    font-size:7.55px!important;
    line-height:1.1!important;
    padding:2.4px 3px!important;
  }
  body.print-customer #customerQuote .quote-sheet:last-child .page2-single > .terms-table td{
    font-size:7.55px!important;
    line-height:1.1!important;
    padding:2.4px 3px!important;
  }

  /* This is the main fix: legal/commercial text flows into two balanced columns. */
  body.print-customer #customerQuote .quote-sheet:last-child .page2-terms-columns{
    display:block!important;
    column-count:2!important;
    column-gap:6mm!important;
    column-fill:balance!important;
    margin:2px 0 0!important;
  }
  body.print-customer #customerQuote .quote-sheet:last-child .page2-terms-columns .pdf-section-title{
    font-size:8.6px!important;
    line-height:1.1!important;
    margin:3px 0 2px!important;
    padding:1.5px 0!important;
    border-bottom-width:1px!important;
    break-after:avoid!important;
    page-break-after:avoid!important;
  }
  body.print-customer #customerQuote .quote-sheet:last-child .page2-terms-columns p{
    font-size:8px!important;
    line-height:1.16!important;
    margin:1.5px 0 3px!important;
  }
  body.print-customer #customerQuote .quote-sheet:last-child .page2-terms-columns .spec-pdf-warning{
    font-size:7.6px!important;
    line-height:1.12!important;
    padding:2.5px 3px!important;
    margin:2px 0!important;
  }

  /* Don't let old keep-rules force content onto a third page. */
  body.print-customer #customerQuote .quote-sheet:last-child .keep,
  body.print-customer #customerQuote .quote-sheet:last-child .policy-box,
  body.print-customer #customerQuote .quote-sheet:last-child .quote-sign{
    break-inside:auto!important;
    page-break-inside:auto!important;
  }

  body.print-customer #customerQuote .quote-sheet:last-child .quote-sign{
    margin-top:3px!important;
    padding-top:3px!important;
  }
  body.print-customer #customerQuote .quote-sheet:last-child .sign-grid{
    grid-template-columns:1fr 1fr 90px!important;
    gap:7px!important;
  }
  body.print-customer #customerQuote .quote-sheet:last-child .sign-line{
    height:14px!important;
  }
  body.print-customer #customerQuote .quote-sheet:last-child .sign-label{
    font-size:6.8px!important;
  }
  body.print-customer #customerQuote .quote-sheet:last-child .quote-footer{
    font-size:6.2px!important;
    line-height:1.04!important;
    margin-top:3px!important;
    padding-top:2px!important;
  }
}

/* =========================================================
   Phase 9.0 — standalone internal system shell + staff login
   ========================================================= */
body.tglog-system-page{
  margin:0!important;
  background:#f3f6fa!important;
  color:#14233b!important;
  font-family:Arial,Helvetica,sans-serif!important;
}
body.tglog-system-page #wpadminbar{position:fixed}
.tglog-system-main{min-height:100vh;padding:0;margin:0}
.tglog-system-topbar{
  min-height:58px;display:flex;align-items:center;gap:28px;padding:0 28px;
  background:#0f2345;color:#fff;border-bottom:1px solid rgba(255,255,255,.1);
  box-sizing:border-box;position:relative;z-index:20;
}
.tglog-system-logo{color:#fff!important;text-decoration:none!important;font-weight:800!important;letter-spacing:.04em!important;font-size:16px!important}
.tglog-system-logo span{font-weight:500!important;opacity:.75!important;margin-left:8px!important;letter-spacing:0!important}
.tglog-system-topbar nav{display:flex;gap:20px;align-items:center;flex:1}
.tglog-system-topbar nav a,.tglog-system-signout{color:#dce6f7!important;text-decoration:none!important;font-size:12px!important;font-weight:700!important}
.tglog-system-topbar nav a:hover,.tglog-system-signout:hover{color:#fff!important}
.tglog-login-shell{
  min-height:100vh;display:flex;flex-direction:column;align-items:center;justify-content:center;
  padding:32px 20px;box-sizing:border-box;background:
  radial-gradient(circle at 18% 16%,rgba(58,102,190,.18),transparent 32%),
  linear-gradient(145deg,#0d1c38 0%,#152e58 55%,#0c1930 100%);
}
.tglog-login-brand{font-size:21px!important;letter-spacing:.18em!important;font-weight:900!important;color:#fff!important;margin-bottom:20px!important}
.tglog-login-panel{
  width:min(430px,calc(100vw - 36px));background:#fff;border-radius:18px;padding:34px 36px;
  box-shadow:0 24px 70px rgba(0,0,0,.28);box-sizing:border-box;
}
.tglog-login-panel h1{margin:0 0 8px!important;font-size:30px!important;line-height:1.1!important;color:#14233b!important}
.tglog-login-panel>p{margin:0 0 24px!important;color:#6f7d90!important;font-size:13px!important}
.tglog-login-panel label{display:block!important;font-size:12px!important;font-weight:700!important;color:#34445c!important;margin:0 0 6px!important}
.tglog-login-panel input[type=text],.tglog-login-panel input[type=password]{
  width:100%!important;box-sizing:border-box!important;padding:12px 13px!important;border:1px solid #ced7e3!important;border-radius:9px!important;
  background:#fff!important;color:#14233b!important;font-size:14px!important;margin:0 0 15px!important;box-shadow:none!important;
}
.tglog-login-panel .login-remember label{display:flex!important;align-items:center!important;gap:7px!important;font-weight:500!important;margin-bottom:16px!important}
.tglog-login-panel .login-submit{margin:0!important}
.tglog-login-panel .button-primary{
  width:100%!important;border:0!important;border-radius:9px!important;background:#1c4c91!important;color:#fff!important;
  padding:12px 16px!important;font-size:13px!important;font-weight:800!important;cursor:pointer!important;
}
.tglog-login-help{margin-top:16px!important;text-align:center!important}
.tglog-login-help a{font-size:11px!important;color:#506b91!important;text-decoration:none!important}
.tglog-login-note{margin-top:18px!important;color:rgba(255,255,255,.55)!important;font-size:10px!important;letter-spacing:.04em!important}
@media(max-width:720px){
 .tglog-system-topbar{padding:0 14px;gap:12px;flex-wrap:wrap;min-height:66px}
 .tglog-system-logo span{display:none}
 .tglog-system-topbar nav{gap:12px}
 .tglog-system-topbar nav a{font-size:11px!important}
 .tglog-login-panel{padding:28px 24px}
}
.tglog-access-button{display:inline-block!important;background:#1c4c91!important;color:#fff!important;text-decoration:none!important;border-radius:9px!important;padding:11px 18px!important;font-size:12px!important;font-weight:800!important}

/* v3 equal customer quotation information table — copied unchanged from approved standalone */
#customerQuote .quote-info {
  width: 100% !important;
  table-layout: fixed !important;
}
#customerQuote .quote-info th,
#customerQuote .quote-info td {
  width: 25% !important;
  box-sizing: border-box !important;
  height: 30px !important;
  vertical-align: middle !important;
  overflow-wrap: anywhere;
}
body.print-customer #customerQuote .quote-sheet:first-child .quote-info {
  width: 100% !important;
  table-layout: fixed !important;
}
body.print-customer #customerQuote .quote-sheet:first-child .quote-info th,
body.print-customer #customerQuote .quote-sheet:first-child .quote-info td {
  width: 25% !important;
  height: 27px !important;
  box-sizing: border-box !important;
  vertical-align: middle !important;
}

/* Phase 6.0.4 — Customer quotation information table: equal columns and rows */
#customerQuote .quote-sheet:first-child .quote-info {
  width: 100% !important;
  table-layout: fixed !important;
  border-collapse: collapse !important;
}
#customerQuote .quote-sheet:first-child .quote-info th,
#customerQuote .quote-sheet:first-child .quote-info td {
  width: 25% !important;
  min-width: 25% !important;
  max-width: 25% !important;
  height: 28px !important;
  box-sizing: border-box !important;
  vertical-align: middle !important;
  white-space: normal !important;
  overflow-wrap: anywhere !important;
}
@media print {
  body.print-customer #customerQuote .quote-sheet:first-child .quote-info {
    width: 100% !important;
    table-layout: fixed !important;
  }
  body.print-customer #customerQuote .quote-sheet:first-child .quote-info th,
  body.print-customer #customerQuote .quote-sheet:first-child .quote-info td {
    width: 25% !important;
    min-width: 25% !important;
    max-width: 25% !important;
    height: 28px !important;
    box-sizing: border-box !important;
    vertical-align: middle !important;
    white-space: normal !important;
    overflow-wrap: anywhere !important;
  }
}

/* Phase 6.1 — Enquiry Quote Readiness */
.quote-readiness-card{border-top:4px solid #17365d!important}
.readiness-head{display:flex;justify-content:space-between;gap:18px;align-items:flex-start}
.readiness-score{white-space:nowrap;background:#eef3f9;border:1px solid #d5dfeb;border-radius:999px;padding:8px 12px;font-size:12px;font-weight:800;color:#17365d}
.readiness-progress{height:8px;background:#e8edf3;border-radius:999px;overflow:hidden;margin:12px 0 10px}
.readiness-progress span{display:block;height:100%;width:0;background:#17365d;transition:width .2s ease}
.readiness-summary{font-size:13px;color:#536273;margin-bottom:12px}
.readiness-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}
.readiness-item{border:1px solid #dce3eb;border-radius:9px;background:#fff;padding:10px 11px;display:flex;align-items:center;gap:9px;cursor:pointer;text-align:left;width:100%;color:#203047}
.readiness-item:hover{border-color:#9eb2ca;background:#f8fafc}
.readiness-item .ri-icon{font-weight:900;width:18px;text-align:center}
.readiness-item .ri-text{min-width:0;flex:1}.readiness-item .ri-title{display:block;font-size:12px;font-weight:800}.readiness-item .ri-note{display:block;font-size:10px;color:#748295;margin-top:2px}
.readiness-item.ready .ri-icon{color:#17804b}.readiness-item.missing{border-color:#efc4c4;background:#fff8f8}.readiness-item.missing .ri-icon{color:#b42318}
.readiness-item.optional .ri-icon{color:#8090a3}.phase61-import-notice{margin:12px 0;padding:11px 14px;border-left:4px solid #17365d;background:#f3f6f9;font-size:13px}
.tglog-field-imported{box-shadow:0 0 0 2px rgba(23,54,93,.08)!important}
@media(max-width:900px){.readiness-grid{grid-template-columns:1fr 1fr}}@media(max-width:600px){.readiness-grid{grid-template-columns:1fr}.readiness-head{display:block}.readiness-score{display:inline-block;margin-top:8px}}

/* Phase 10.7 navigation */
.tglog-system-topbar .tglog-system-logo{display:flex!important;align-items:center!important;justify-content:center!important;width:46px!important;height:46px!important;flex:none!important}.tglog-system-topbar .tglog-system-logo img{display:block!important;width:42px!important;height:42px!important;object-fit:contain!important;border-radius:50%!important}.tglog-system-topbar .tguk-system-nav{display:flex!important;align-items:center!important;flex:1!important}.tguk-template-app-install{margin:18px 0;padding:16px 20px;background:#f4f7fb;border:1px solid #d8e1ec;border-radius:12px}.tguk-template-app-install h3{margin:0 0 6px}.tguk-template-app-install p{margin:0 0 10px}

/* Phase 10.8: transparent logo, no white tile */
.tglog-system-topbar .tglog-system-logo{background:transparent!important;border:0!important;box-shadow:none!important;padding:0!important;width:55px!important;height:55px!important}.tglog-system-topbar .tglog-system-logo img{width:53px!important;height:53px!important;border-radius:0!important;object-fit:contain!important;background:transparent!important}

/* Phase 10.9 — professional corporate dashboard presentation only */
body.tglog-system-page .tglog-system-topbar{background:#fff!important;border-top:4px solid #142e57!important;border-bottom:1px solid #dce3ee!important;box-shadow:0 2px 10px rgba(22,42,73,.045)!important;min-height:84px!important;padding:8px clamp(18px,3vw,54px)!important;gap:28px!important}
body.tglog-system-page .tglog-system-topbar .tglog-system-logo{display:flex!important;width:245px!important;height:68px!important;justify-content:flex-start!important;flex:none!important;background:transparent!important}
body.tglog-system-page .tglog-system-topbar .tglog-system-logo img{display:block!important;width:245px!important;height:68px!important;object-fit:contain!important;object-position:left center!important;max-width:100%!important;border:0!important;border-radius:0!important;background:transparent!important}
body.tglog-system-page .tglog-system-topbar nav a,body.tglog-system-page .tglog-system-topbar .tglog-system-signout{color:#213957!important;font-size:13px!important;letter-spacing:.01em!important}
body.tglog-system-page .tglog-system-topbar nav a:hover,body.tglog-system-page .tglog-system-topbar .tglog-system-signout:hover{color:#1457a0!important}
body.tglog-system-page .tguk-hub-grid{gap:16px!important;margin-top:26px!important}
body.tglog-system-page .tguk-hub-grid .tguk-hub-card,body.tglog-system-page .tguk-hub-grid .tguk-hub-card:nth-child(3n+1){background:#fff!important;color:#193455!important;border:1px solid #dbe3ed!important;border-left:4px solid #244d88!important;border-radius:10px!important;box-shadow:0 3px 12px rgba(21,45,79,.045)!important;min-height:200px!important;padding:25px 25px 22px!important;transition:box-shadow .18s ease,transform .18s ease,border-color .18s ease!important}
body.tglog-system-page .tguk-hub-grid .tguk-hub-card:hover{box-shadow:0 12px 28px rgba(20,48,86,.12)!important;transform:translateY(-2px)!important;border-color:#9ab1ce!important}
body.tglog-system-page .tguk-hub-grid .tguk-hub-card strong{font-size:19px!important;letter-spacing:-.02em!important;color:#122b50!important}
body.tglog-system-page .tguk-hub-grid .tguk-hub-card .tguk-hub-card-icon{font-size:25px!important;color:#24528e!important}
body.tglog-system-page .tguk-hub-grid .tguk-hub-card .tguk-hub-card-number{color:#8190a4!important;opacity:1!important;font-size:11px!important;letter-spacing:.09em!important}
body.tglog-system-page .tguk-hub-grid .tguk-hub-card>span:not(.tguk-hub-card-icon):not(.tguk-hub-card-number):not(.tguk-hub-card-arrow){font-size:13px!important;color:#63738b!important;opacity:1!important}
body.tglog-system-page .tguk-hub-grid .tguk-hub-card .tguk-hub-card-arrow{color:#1b4b85!important;font-weight:700!important;font-size:12px!important}
body.tglog-system-page .tglog-dashboard-top{padding-bottom:12px!important;border-bottom:1px solid #e0e6ef!important}
body.tglog-system-page .tglog-dashboard-top h1{font-size:34px!important;letter-spacing:-.035em!important}
@media(max-width:620px){body.tglog-system-page .tglog-system-topbar{gap:12px!important;min-height:70px!important}body.tglog-system-page .tglog-system-topbar .tglog-system-logo{width:150px!important;height:49px!important}body.tglog-system-page .tglog-system-topbar .tglog-system-logo img{width:150px!important;height:49px!important}body.tglog-system-page .tguk-hub-grid .tguk-hub-card{min-height:155px!important}}

/* Phase 11.0 — editorial, industrial corporate hub. Visual styles only. */
body.tglog-system-page{background:#f0f3f7!important}
body.tglog-system-page .tglog-system-topbar{background:#fff!important;border-top:5px solid #102b52!important;min-height:92px!important;padding:10px clamp(22px,4vw,70px)!important;border-bottom:1px solid #d5dce5!important}
body.tglog-system-page .tglog-system-topbar .tglog-system-logo{width:285px!important;height:72px!important}
body.tglog-system-page .tglog-system-topbar .tglog-system-logo img{width:285px!important;height:72px!important;object-fit:contain!important;object-position:left center!important;background:transparent!important;border:0!important;box-shadow:none!important}
body.tglog-system-page .tglog-system-main{max-width:1320px!important}
body.tglog-system-page .tglog-dashboard-top{background:#102b52!important;color:#fff!important;border:0!important;border-radius:0!important;padding:40px 46px!important;margin:12px 0 0!important;box-shadow:none!important;position:relative!important}
body.tglog-system-page .tglog-dashboard-top:after{content:'';position:absolute;right:0;top:0;height:100%;width:8px;background:#cc2936}
body.tglog-system-page .tglog-dashboard-top h1{font-size:clamp(30px,3vw,45px)!important;color:#fff!important;letter-spacing:-.035em!important;line-height:1.13!important}
body.tglog-system-page .tglog-dashboard-top p,body.tglog-system-page .tglog-dashboard-top .tglog-dashboard-subtitle{color:#c7d4e6!important}
body.tglog-system-page .tglog-dashboard-top .tglog-dashboard-kicker,body.tglog-system-page .tglog-dashboard-kicker{color:#9fc3f2!important;letter-spacing:.2em!important}
body.tglog-system-page .tguk-hub-grid{gap:0!important;margin:0 0 30px!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;background:#dce4ed!important;border:1px solid #dce4ed!important}
body.tglog-system-page .tguk-hub-grid .tguk-hub-card,body.tglog-system-page .tguk-hub-grid .tguk-hub-card:nth-child(3n+1){background:#fff!important;color:#132b4a!important;border:0!important;border-radius:0!important;box-shadow:none!important;min-height:228px!important;padding:31px!important;gap:14px!important;transition:background .18s ease!important}
body.tglog-system-page .tguk-hub-grid .tguk-hub-card:hover{background:#edf3fa!important;transform:none!important;box-shadow:inset 0 0 0 2px #244e82!important}
body.tglog-system-page .tguk-hub-grid .tguk-hub-card:nth-child(2),body.tglog-system-page .tguk-hub-grid .tguk-hub-card:nth-child(5){background:#102b52!important;color:#fff!important}
body.tglog-system-page .tguk-hub-grid .tguk-hub-card:nth-child(2):hover,body.tglog-system-page .tguk-hub-grid .tguk-hub-card:nth-child(5):hover{background:#20416d!important}
body.tglog-system-page .tguk-hub-grid .tguk-hub-card strong{font-size:21px!important;letter-spacing:-.025em!important;color:inherit!important}
body.tglog-system-page .tguk-hub-grid .tguk-hub-card .tguk-hub-card-icon{font-size:29px!important;color:inherit!important}
body.tglog-system-page .tguk-hub-grid .tguk-hub-card .tguk-hub-card-number{font-size:12px!important;color:inherit!important;opacity:.52!important}
body.tglog-system-page .tguk-hub-grid .tguk-hub-card>span:not(.tguk-hub-card-icon):not(.tguk-hub-card-number):not(.tguk-hub-card-arrow){color:inherit!important;opacity:.72!important}
body.tglog-system-page .tguk-hub-grid .tguk-hub-card .tguk-hub-card-arrow{color:inherit!important;text-transform:uppercase!important;letter-spacing:.07em!important;font-size:11px!important}
@media(max-width:900px){body.tglog-system-page .tguk-hub-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important}}
@media(max-width:620px){body.tglog-system-page .tguk-hub-grid{grid-template-columns:1fr!important}body.tglog-system-page .tglog-dashboard-top{padding:28px 23px!important}body.tglog-system-page .tglog-system-topbar .tglog-system-logo,body.tglog-system-page .tglog-system-topbar .tglog-system-logo img{width:180px!important;height:55px!important}}

/* Phase 14.4.46 — Dashboard reference layout. Explicit body-qualified rules override legacy !important blocks. */
body.tglog-system-page .tglog-system-main:has(.tglog-dashboard-shell){max-width:none!important;width:100%!important;padding-left:0!important;padding-right:0!important}
body.tglog-system-page .tglog-dashboard-shell{width:min(calc(100% - 48px),1660px)!important;max-width:1660px!important;margin:22px auto 45px!important}
body.tglog-system-page .tglog-dashboard-shell .tglog-dashboard-top{min-height:290px!important;padding:37px 45px 110px!important;border-radius:15px!important;margin:0 0 17px!important;border:0!important;box-shadow:0 10px 28px #0c274126!important;background-color:#0b2649!important;background-image:linear-gradient(90deg,#0a2547 0%,#0b2649 34%,rgba(9,33,63,.87) 53%,rgba(9,33,63,.1) 100%),url('assets/hub-hero-reference.jpg')!important;background-position:center,right center!important;background-size:cover,auto 100%!important;background-repeat:no-repeat!important}
body.tglog-system-page .tglog-dashboard-shell .tglog-dashboard-top:after{display:none!important}
body.tglog-system-page .tglog-dashboard-shell .tglog-dashboard-top h1{font-size:clamp(32px,3.5vw,50px)!important;color:white!important}
body.tglog-system-page .tglog-dashboard-shell .tglog-dashboard-top p{color:#dbe7f6!important;max-width:580px!important}
body.tglog-system-page .tglog-dashboard-shell .tguk-hero-metrics{display:grid!important;grid-template-columns:repeat(4,minmax(0,1fr))!important;gap:12px!important;margin:-96px 24px 25px!important;position:relative!important;z-index:3!important}
body.tglog-system-page .tglog-dashboard-shell .tguk-metric{min-width:0;display:flex;align-items:center;gap:12px;padding:16px 17px;border:1px solid #ffffff5e;border-radius:12px;background:#0a264bd9;backdrop-filter:blur(7px);color:#fff!important;text-decoration:none!important;box-shadow:0 4px 16px #001c3833}
body.tglog-system-page .tglog-dashboard-shell .tguk-metric .dashicons{font-size:24px;width:42px;height:42px;display:grid;place-items:center;border-radius:9px;background:#ffffff20}
body.tglog-system-page .tglog-dashboard-shell .tguk-metric small{display:block;font-size:12px;color:#dbe7f6}
body.tglog-system-page .tglog-dashboard-shell .tguk-metric strong{display:block;margin-top:4px;font-size:20px;color:#fff}
body.tglog-system-page .tglog-dashboard-shell .tguk-hub-grid{display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:15px!important;margin:0 0 18px!important;background:transparent!important;border:0!important}
body.tglog-system-page .tglog-dashboard-shell .tguk-hub-grid .tguk-hub-card,body.tglog-system-page .tglog-dashboard-shell .tguk-hub-grid .tguk-hub-card:nth-child(3n+1){min-height:170px!important;padding:20px 24px!important;gap:9px!important;border:1px solid #dce5ef!important;border-radius:13px!important;box-shadow:0 5px 17px #102b5117!important;background-color:#fff!important;background-image:linear-gradient(90deg,#fff 0%,#fff 36%,rgba(255,255,255,.80) 65%,rgba(255,255,255,.06) 100%),var(--hub-image)!important;background-position:center,right center!important;background-size:cover,auto 100%!important;background-repeat:no-repeat!important;color:#0e2b50!important;transition:transform .2s,box-shadow .2s!important}
body.tglog-system-page .tglog-dashboard-shell .tguk-hub-grid .tguk-hub-card:nth-child(2){background-color:#0b2445!important;background-image:linear-gradient(90deg,#0b2445 0%,#102d52 40%,rgba(11,36,69,.78) 70%,rgba(11,36,69,.18) 100%),var(--hub-image)!important;color:#fff!important;border-color:#244668!important}
body.tglog-system-page .tglog-dashboard-shell .tguk-hub-grid .tguk-hub-card:hover{transform:translateY(-3px)!important;box-shadow:0 14px 25px #102b5127!important}
body.tglog-system-page .tglog-dashboard-shell .tguk-hub-grid .tguk-hub-card strong{font-size:19px!important;color:#0e2b50!important}
body.tglog-system-page .tglog-dashboard-shell .tguk-hub-grid .tguk-hub-card:nth-child(2) strong{color:white!important}
body.tglog-system-page .tglog-dashboard-shell .tguk-hub-grid .tguk-hub-card .tguk-hub-card-icon{width:42px!important;height:42px!important;font-size:22px!important;line-height:42px!important;background:#eaf1f8!important;border-radius:9px!important;color:#123a68!important}
body.tglog-system-page .tglog-dashboard-shell .tguk-hub-grid .tguk-hub-card:nth-child(2) .tguk-hub-card-icon{background:#ffffff25!important;color:white!important}
body.tglog-system-page .tglog-dashboard-shell .tguk-hub-grid .tguk-hub-card .tguk-hub-card-number{top:20px!important;left:78px!important;right:auto!important;color:#627994!important}
body.tglog-system-page .tglog-dashboard-shell .tguk-hub-grid .tguk-hub-card>span:not(.tguk-hub-card-icon):not(.tguk-hub-card-number):not(.tguk-hub-card-arrow){max-width:220px!important;color:#506883!important;font-size:12px!important;opacity:1!important}
body.tglog-system-page .tglog-dashboard-shell .tguk-hub-grid .tguk-hub-card:nth-child(2)>span:not(.tguk-hub-card-icon):not(.tguk-hub-card-number):not(.tguk-hub-card-arrow){color:#d8e4f2!important}
body.tglog-system-page .tglog-dashboard-shell .tguk-hub-grid .tguk-hub-card .tguk-hub-card-arrow{color:#103f77!important;font-size:12px!important;text-transform:none!important;letter-spacing:normal!important}
body.tglog-system-page .tglog-dashboard-shell .tguk-hub-grid .tguk-hub-card:nth-child(2) .tguk-hub-card-arrow{color:#fff!important}
@media(max-width:1050px){body.tglog-system-page .tglog-dashboard-shell .tguk-hero-metrics{grid-template-columns:repeat(2,minmax(0,1fr))!important}body.tglog-system-page .tglog-dashboard-shell .tguk-hub-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important}}
@media(max-width:620px){body.tglog-system-page .tglog-dashboard-shell{width:calc(100% - 24px)!important}body.tglog-system-page .tglog-dashboard-shell .tglog-dashboard-top{padding:27px 22px 130px!important;background-position:center,60% center!important}body.tglog-system-page .tglog-dashboard-shell .tguk-hero-metrics{grid-template-columns:1fr 1fr!important;gap:8px!important;margin:-116px 10px 20px!important}body.tglog-system-page .tglog-dashboard-shell .tguk-metric{padding:10px!important;gap:7px!important}body.tglog-system-page .tglog-dashboard-shell .tguk-metric .dashicons{display:none!important}body.tglog-system-page .tglog-dashboard-shell .tguk-metric strong{font-size:15px!important}body.tglog-system-page .tglog-dashboard-shell .tguk-hub-grid{grid-template-columns:1fr!important}}
