/* Compact print spacing without shrinking the document's text. */
#doc-apercu.doc-export .doc-bande{padding:10px 22px}
#doc-apercu.doc-export .doc-corps{padding:10px 22px}
#doc-apercu.doc-export .doc-2col{margin-bottom:10px;gap:12px}
#doc-apercu.doc-export .doc-bloc{padding:8px 10px}
#doc-apercu.doc-export table{margin-bottom:10px}
#doc-apercu.doc-export .doc-conditions{margin:10px 0;padding:8px 10px}
#doc-apercu.doc-export .doc-conditions p{margin-bottom:3px}
#doc-apercu.doc-export .doc-sign{margin-top:8px;gap:12px;break-inside:avoid}
#doc-apercu.doc-export .doc-sign>div{padding:9px 10px!important;min-height:0}
#doc-apercu.doc-export .doc-pied{padding:7px 10px}

/* Grid children must be allowed to shrink, including long email addresses. */
#vue-docs .gen-grid-pro{grid-template-columns:minmax(280px,360px) minmax(0,1fr)}
#vue-docs .gen-grid-pro>*,#vue-docs .f-row>*,#vue-docs .f-group{min-width:0}
#vue-docs .f-group input,#vue-docs .f-group select,#vue-docs .f-group textarea{max-width:100%;box-sizing:border-box}
#vue-docs #g-professionnel{width:auto;margin-right:6px}
#doc-apercu,.doc-apercu-inline{width:100%;max-width:100%;min-width:0;box-sizing:border-box;overflow-wrap:anywhere}
#doc-apercu *, .doc-apercu-inline *{box-sizing:border-box;letter-spacing:0}
#doc-apercu,.doc-apercu-inline,#doc-apercu h5,#doc-apercu .doc-type b{font-family:Arial,Helvetica,sans-serif}
#doc-apercu .doc-corps,.doc-apercu-inline .doc-corps{min-width:0;min-height:0;display:block}
#doc-apercu .doc-2col,.doc-apercu-inline .doc-2col{grid-template-columns:repeat(2,minmax(0,1fr))}
#doc-apercu .doc-bloc,.doc-apercu-inline .doc-bloc{min-width:0}
#doc-apercu .doc-bloc p,.doc-apercu-inline .doc-bloc p{overflow-wrap:anywhere;white-space:normal}
#doc-apercu .doc-bloc p:empty{display:none}
#doc-apercu .doc-bande,.doc-apercu-inline .doc-bande{min-width:0;gap:16px}
#doc-apercu .doc-bande>svg,.doc-apercu-inline .doc-bande>svg{width:74px;height:58px;flex:0 0 74px}
#doc-apercu .doc-type,.doc-apercu-inline .doc-type{min-width:0;overflow-wrap:anywhere}
#doc-apercu .doc-type b,.doc-apercu-inline .doc-type b{font-size:20px;line-height:1.3;letter-spacing:0;white-space:normal}
#doc-apercu table,.doc-apercu-inline table{width:100%;max-width:100%;table-layout:fixed}
#doc-apercu th,#doc-apercu td,.doc-apercu-inline th,.doc-apercu-inline td{white-space:normal;overflow-wrap:anywhere;vertical-align:top}
#doc-apercu th:nth-child(2),#doc-apercu td:nth-child(2){width:8%}
#doc-apercu th:nth-child(3),#doc-apercu td:nth-child(3),#doc-apercu th:nth-child(4),#doc-apercu td:nth-child(4){width:21%;text-align:right}
#doc-apercu .doc-totaux,.doc-apercu-inline .doc-totaux{width:320px;max-width:100%;margin:12px 0 0 auto;break-inside:avoid}
#doc-apercu .doc-totaux div{gap:12px;align-items:baseline}
#doc-apercu .doc-totaux span:last-child{white-space:nowrap}
#doc-apercu .doc-sign>div{min-width:0}
#doc-apercu .doc-sign em{font-size:11px}
#doc-apercu .doc-conditions{white-space:normal;overflow-wrap:anywhere}
#doc-apercu .doc-conditions p{break-inside:avoid}
#doc-apercu .doc-virement{margin:12px 0;padding:10px 12px;border:1px solid #b9ad91;border-left:3px solid #9c7420;border-radius:0;background:#fff;color:#222;break-inside:avoid;page-break-inside:avoid;font-size:12px;line-height:1.5}
#doc-apercu .doc-virement h3{margin:0 0 5px;font-size:13px;font-weight:700;line-height:1.4;color:#70551c;text-transform:none}
#doc-apercu .doc-virement p{margin:2px 0;overflow-wrap:anywhere}
#doc-apercu .doc-virement .bank-number{font-family:Arial,Helvetica,sans-serif;font-weight:600;letter-spacing:0}
#doc-apercu .doc-virement .bank-branch{font-size:11px;color:#555}
#doc-apercu .doc-virement[data-state=error]{border-color:#a52f2f;color:#842525}
#doc-apercu.doc-export .doc-virement{font-size:11px;line-height:1.4;margin:10px 0;padding:8px 10px}
.apercu-actions button[aria-busy=true]{opacity:.65;cursor:wait}
@media(max-width:1300px){#vue-docs .gen-grid-pro{grid-template-columns:minmax(0,1fr)}}
@media(max-width:600px){
  #doc-apercu:not(.doc-export) .doc-2col{grid-template-columns:minmax(0,1fr)}
  #doc-apercu:not(.doc-export) .doc-bande,#doc-apercu:not(.doc-export) .doc-corps{padding:14px}
  #doc-apercu:not(.doc-export) th,#doc-apercu:not(.doc-export) td{padding:6px 4px;font-size:11px}
  #vue-docs .f-row{grid-template-columns:minmax(0,1fr)}
}
/* A4 uses its own dimensions; mobile rules must never reflow the PDF. */
.html2pdf__container{left:0!important;right:auto!important;margin:0!important}
#doc-apercu.doc-export{width:190mm!important;max-width:none!important;min-width:190mm!important;overflow:visible!important;box-shadow:none!important;border:0!important;border-radius:0!important;font-size:12px;line-height:1.45;background:#fff;color:#222}
#doc-apercu.doc-export .doc-bande{display:flex!important;flex-direction:row!important;align-items:center;justify-content:space-between;break-inside:avoid}
#doc-apercu.doc-export .doc-type{max-width:490px}
#doc-apercu.doc-export .doc-type span{font-size:11px;line-height:1.5}
#doc-apercu.doc-export table{display:table!important}
#doc-apercu.doc-export thead{display:table-header-group!important}
#doc-apercu.doc-export tbody{display:table-row-group!important}
#doc-apercu.doc-export tr{display:table-row!important;break-inside:avoid}
#doc-apercu.doc-export th,#doc-apercu.doc-export td{display:table-cell!important;font-size:11px;line-height:1.4}
#doc-apercu.doc-export td::before{display:none!important;content:none!important}
#doc-apercu.doc-export .doc-conditions{font-size:11px;line-height:1.45}
#doc-apercu.doc-export .doc-sign{display:grid!important}
#doc-apercu.doc-export .seal-impression{max-width:200px}
#doc-apercu.doc-export .doc-totaux div{padding:3px 8px}
#doc-apercu.doc-export .doc-conditions p{margin-bottom:2px}
#doc-apercu.doc-export.fiche-pro .fiche-pro-cover{padding:20px;display:flex;flex-direction:row;justify-content:space-between;gap:16px}
#doc-apercu.doc-export.fiche-pro .fiche-pro-grid{display:grid;grid-template-columns:minmax(0,1fr);gap:10px;padding:14px}
#doc-apercu.doc-export.fiche-pro .fiche-pro-section{padding:12px;min-width:0}
#doc-apercu.doc-export.fiche-pro .fiche-pro-line{grid-template-columns:130px minmax(0,1fr);gap:10px;font-size:11px;break-inside:avoid}
#doc-apercu.doc-export.fiche-pro .fiche-pro-line b{overflow-wrap:break-word;word-break:break-all;white-space:pre-line;font-size:12px}
@media print{
  body.impression #doc-apercu{width:190mm!important;max-width:190mm!important;margin:0!important;overflow:visible!important}
  body.impression #doc-apercu .doc-corps{min-height:0!important}
  body.impression #doc-apercu td::before{display:none!important;content:none!important}
}
