/* QUINCA+ v61 — commandes fournisseurs */

.purchase-meta-form-v61{
  margin-bottom:12px;
}

.purchase-add-line-v61{
  display:grid;
  grid-template-columns:minmax(220px,1.5fr) 110px 150px 150px;
  gap:10px;
  align-items:end;
  padding:12px;
  border:1px solid var(--line);
  border-radius:12px;
  background:var(--soft,#f7f9fc);
}

.purchase-add-line-v61 label{
  display:block;
  margin-bottom:4px;
}

.purchase-editor-table-v61{
  min-width:820px;
}

.purchase-editor-table-v61 th:nth-child(1){width:28%}
.purchase-editor-table-v61 th:nth-child(2){width:10%}
.purchase-editor-table-v61 th:nth-child(3){width:15%}
.purchase-editor-table-v61 th:nth-child(4){width:27%}
.purchase-editor-table-v61 th:nth-child(5){width:15%}
.purchase-editor-table-v61 th:nth-child(6){width:5%}

.purchase-remark-input-v61{
  min-width:180px;
}

.purchase-remove-v61{
  width:28px!important;
  min-width:28px!important;
  height:28px!important;
  min-height:28px!important;
  padding:0!important;
}

.purchase-sheet-v61{
  max-width:900px;
  margin:0 auto;
  background:#fff;
  color:#111;
  border:1px solid #bbb;
  padding:18px;
  box-sizing:border-box;
  font-family:Arial,Helvetica,sans-serif;
}

.purchase-doc-head-v61{
  display:grid;
  grid-template-columns:1fr auto;
  gap:20px;
  align-items:center;
  padding-bottom:14px;
  border-bottom:2px solid #111;
}

.purchase-brand-v61{
  display:flex;
  align-items:center;
  gap:12px;
}

.purchase-brand-v61 img{
  width:66px;
  height:56px;
  object-fit:contain;
}

.purchase-brand-v61 strong{
  display:block;
  font-size:20px;
  text-transform:uppercase;
}

.purchase-brand-v61 span{
  display:block;
  margin-top:3px;
  font-size:9px;
}

.purchase-title-v61{
  font-size:17px;
  font-weight:900;
  text-align:right;
}

.purchase-meta-grid-v61,
.purchase-party-v61{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:0;
  margin-top:14px;
  border:1px solid #777;
}

.purchase-meta-grid-v61>div,
.purchase-party-v61>div{
  display:grid;
  grid-template-columns:145px 1fr;
  min-height:32px;
  border-right:1px solid #aaa;
  border-bottom:1px solid #aaa;
}

.purchase-meta-grid-v61>div:nth-child(2n),
.purchase-party-v61>div:nth-child(2n){
  border-right:0;
}

.purchase-meta-grid-v61>div:nth-last-child(-n+2),
.purchase-party-v61>div:nth-last-child(-n+2){
  border-bottom:0;
}

.purchase-meta-grid-v61 span,
.purchase-meta-grid-v61 strong,
.purchase-party-v61 span,
.purchase-party-v61 strong{
  padding:7px 8px;
  font-size:9px;
}

.purchase-meta-grid-v61 span,
.purchase-party-v61 span{
  font-weight:800;
  border-right:1px solid #aaa;
  background:#f5f5f5;
}

.purchase-print-table-v61{
  width:100%;
  border-collapse:collapse;
  margin-top:16px;
  table-layout:fixed;
}

.purchase-print-table-v61 th,
.purchase-print-table-v61 td{
  border:1px solid #777;
  padding:7px 6px;
  font-size:9px;
  vertical-align:top;
}

.purchase-print-table-v61 th{
  background:#f1f1f1;
  text-align:center;
}

.purchase-print-table-v61 th:nth-child(1){width:5%}
.purchase-print-table-v61 th:nth-child(2){width:27%}
.purchase-print-table-v61 th:nth-child(3){width:8%}
.purchase-print-table-v61 th:nth-child(4){width:9%}
.purchase-print-table-v61 th:nth-child(5){width:14%}
.purchase-print-table-v61 th:nth-child(6){width:23%}
.purchase-print-table-v61 th:nth-child(7){width:14%}

.purchase-print-table-v61 .num-v61{
  text-align:right;
  white-space:nowrap;
}

.purchase-print-total-v61{
  width:340px;
  margin-left:auto;
  display:grid;
  grid-template-columns:1fr 1fr;
  border:1px solid #555;
  border-top:0;
}

.purchase-print-total-v61 span,
.purchase-print-total-v61 strong{
  padding:8px;
  font-size:10px;
}

.purchase-print-total-v61 span{
  font-weight:900;
  border-right:1px solid #555;
}

.purchase-print-total-v61 strong{
  text-align:right;
}

.purchase-signatures-v61{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:12px;
  margin-top:28px;
}

.purchase-signatures-v61>div{
  border:1px solid #999;
}

.purchase-signatures-v61 span{
  display:block;
  text-align:center;
  padding:5px;
  border-bottom:1px solid #999;
  font-size:8px;
  font-weight:800;
}

.purchase-signatures-v61>div>div{
  min-height:58px;
}

.purchase-footer-v61{
  margin-top:18px;
  padding-top:8px;
  border-top:1px solid #bbb;
  text-align:center;
  font-size:8px;
}

body.dark-ui .purchase-add-line-v61{
  background:#12263b;
}

@media(max-width:700px){
  .purchase-add-line-v61{
    grid-template-columns:1fr;
  }

  .purchase-lines-v61{
    overflow-x:auto;
    -webkit-overflow-scrolling:touch;
  }
}

@media print{
  .purchase-sheet-v61{
    border:0;
    max-width:none;
    padding:0;
  }
}
