/* QUINCA+ v71 — bon de livraison client, style tableau du modèle fourni */

.bl-modal-card-v71{
  width:min(1120px,96vw)!important;
  max-width:1120px!important;
}

.bl-sheet-v71{
  width:100%;
  max-width:900px;
  margin:0 auto;
  background:#fff;
  color:#111;
  font-family:Arial,Helvetica,sans-serif;
  box-sizing:border-box;
}

.bl-top-v71{
  display:grid;
  grid-template-columns:42% 58%;
  border:1.3px solid #555;
  border-bottom:0;
}

.bl-company-v71{
  padding:9px 10px;
  border-right:1.3px solid #555;
  min-height:160px;
}

.bl-company-head-v71{
  display:flex;
  align-items:flex-start;
  gap:9px;
}

.bl-company-head-v71 img{
  width:58px;
  height:58px;
  object-fit:contain;
  flex:0 0 auto;
}

.bl-company-name-v71{
  font-size:18px;
  line-height:1;
  font-weight:900;
  text-transform:uppercase;
  letter-spacing:.1px;
}

.bl-company-activity-v71{
  margin-top:4px;
  white-space:pre-line;
  font-size:8.5px;
  line-height:1.2;
  font-weight:700;
}

.bl-company-lines-v71{
  margin-top:7px;
  font-size:8px;
  line-height:1.3;
}

.bl-head-right-v71{
  min-width:0;
}

.bl-title-v71{
  padding:7px 8px;
  border-bottom:1.3px solid #555;
  text-align:center;
  font-size:22px;
  line-height:1;
  font-weight:900;
}

.bl-meta-v71{
  display:grid;
  grid-template-columns:repeat(4,1fr);
  border-bottom:1.3px solid #555;
}

.bl-meta-v71>div{
  min-width:0;
  padding:5px 5px;
  border-right:1px solid #777;
  text-align:center;
  overflow-wrap:anywhere;
}

.bl-meta-v71>div:nth-child(4n){
  border-right:0;
}

.bl-meta-label-v71{
  background:#f0f0f0;
  border-bottom:1px solid #777;
  font-size:7.5px;
  font-weight:900;
}

.bl-meta-value-v71{
  font-size:8.5px;
  font-weight:800;
}

.bl-client-v71{
  display:grid;
  grid-template-columns:85px 1fr;
}

.bl-client-v71>div{
  min-height:25px;
  display:flex;
  align-items:center;
  padding:5px 6px;
  box-sizing:border-box;
  border-bottom:1px solid #888;
}

.bl-client-v71>div:nth-last-child(-n+2){
  border-bottom:0;
}

.bl-client-label-v71{
  background:#f4f4f4;
  border-right:1px solid #888;
  font-size:8px;
  font-weight:900;
}

.bl-client-value-v71{
  font-size:8.5px;
  font-weight:700;
}

.bl-sub-v71{
  display:grid;
  grid-template-columns:1.6fr .65fr 1.3fr .5fr;
  border:1.3px solid #555;
  border-bottom:0;
  min-height:29px;
}

.bl-sub-v71>div{
  padding:5px 7px;
  border-right:1px solid #777;
  font-size:8px;
  box-sizing:border-box;
}

.bl-sub-v71>div:last-child{
  border-right:0;
}

.bl-print-date-v71 span,
.bl-commercial-v71 span{
  margin-right:9px;
  font-weight:700;
}

.bl-subbox-v71{
  text-align:center;
  font-weight:900;
}

.bl-page-v71{
  text-align:center;
}

.bl-lines-v71{
  width:100%;
  border-collapse:collapse;
  table-layout:fixed;
  border:1.3px solid #555;
}

.bl-lines-v71 th,
.bl-lines-v71 td{
  border:1px solid #777;
  padding:6px 5px;
  font-size:8.5px;
  vertical-align:top;
}

.bl-lines-v71 th{
  background:#f3f3f3;
  text-align:center;
  font-size:8px;
  font-weight:900;
}

.bl-lines-v71 th:nth-child(1){width:5%}
.bl-lines-v71 th:nth-child(2){width:15%}
.bl-lines-v71 th:nth-child(3){width:36%}
.bl-lines-v71 th:nth-child(4){width:11%}
.bl-lines-v71 th:nth-child(5){width:12%}
.bl-lines-v71 th:nth-child(6){width:11%}
.bl-lines-v71 th:nth-child(7){width:10%}

.bl-lines-v71 tbody tr{
  height:38px;
}

.bl-center-v71{
  text-align:center;
}

.bl-number-v71{
  text-align:right;
  white-space:nowrap;
}

.bl-space-v71{
  height:185px;
  border-left:1.3px solid #555;
  border-right:1.3px solid #555;
}

.bl-authorization-v71{
  display:grid;
  grid-template-columns:1fr 1fr;
  border:1.3px solid #555;
  min-height:28px;
}

.bl-authorization-v71 span,
.bl-authorization-v71 strong{
  display:flex;
  align-items:center;
  justify-content:center;
  padding:5px 7px;
  font-size:8.5px;
}

.bl-authorization-v71 span{
  background:#f2f2f2;
  border-right:1px solid #777;
  font-weight:900;
}

.bl-footer-grid-v71{
  display:grid;
  grid-template-columns:1fr 1fr 1fr;
  border:1.3px solid #555;
  border-top:0;
  min-height:118px;
}

.bl-footer-grid-v71>div{
  border-right:1px solid #777;
}

.bl-footer-grid-v71>div:last-child{
  border-right:0;
}

.bl-footer-title-v71{
  padding:6px 7px;
  border-bottom:1px solid #888;
  font-size:8px;
  font-weight:800;
}

.bl-footer-label-v71{
  padding:6px 7px;
  font-size:8px;
  font-weight:800;
}

.bl-sign-space-v71{
  height:62px;
}

.bl-footer-middle-v71>div,
.bl-footer-right-v71>div{
  display:grid;
  grid-template-columns:88px 1fr;
  min-height:37px;
  border-bottom:1px solid #888;
}

.bl-footer-middle-v71>div:last-child,
.bl-footer-right-v71>div:last-child{
  border-bottom:0;
}

.bl-footer-middle-v71 span,
.bl-footer-middle-v71 strong,
.bl-footer-right-v71 span,
.bl-footer-right-v71 strong{
  padding:6px;
  font-size:8px;
  box-sizing:border-box;
}

.bl-footer-middle-v71 span,
.bl-footer-right-v71 span{
  background:#f5f5f5;
  border-right:1px solid #888;
  font-weight:800;
}

.bl-form-summary-v71{
  margin-bottom:12px;
}

.bl-form-v71{
  margin-top:12px;
}

.bl-preview-actions-v71{
  max-width:900px;
  margin:14px auto 0!important;
}

.client-delivery-btn-v71{
  white-space:nowrap;
}

@media(max-width:720px){
  .bl-modal-card-v71{
    width:98vw!important;
    padding:8px!important;
    overflow-x:auto;
  }

  .bl-sheet-v71{
    min-width:820px;
  }

  .bl-form-v71{
    grid-template-columns:1fr!important;
  }

  .bl-form-v71 .pro-span2{
    grid-column:auto!important;
  }
}

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

  body{
    -webkit-print-color-adjust:exact;
    print-color-adjust:exact;
  }

  .bl-sheet-v71{
    max-width:none;
    width:100%;
  }

  .bl-space-v71{
    height:185px;
  }
}
