
/* QUINCA+ v11 — caisse et aperçu reçu */

.pos-v11{
  display:grid;
  grid-template-columns:minmax(0,1fr) 360px;
  gap:14px;
  align-items:start;
}
.pos-products{min-width:0}
.cash-v11{
  position:sticky;
  top:78px;
  padding:14px;
  border-radius:12px;
}
.cash-title-row{
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:8px;
  margin-bottom:8px
}
.cash-title-row h3{margin:0}
.cash-title-row span{font-size:9px;color:var(--muted)}
.cash-cart{max-height:310px;overflow:auto;padding-right:2px}
.checkout-summary{
  border-top:1px dashed #d9e3ee;
  border-bottom:1px dashed #d9e3ee;
  padding:9px 0;
  margin-top:10px
}
.checkout-summary>div{
  display:flex;
  justify-content:space-between;
  gap:12px;
  padding:4px 0;
  font-size:10px
}
.checkout-summary span{color:#526980}
.checkout-summary strong{font-weight:850}
.checkout-summary .checkout-total{
  font-size:15px;
  padding-top:8px;
  margin-top:4px;
  border-top:1px solid #e7edf4
}
.cash-section-title{
  margin:11px 0 6px;
  font-size:9px;
  color:#657991;
  font-weight:850
}
.payment-grid{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:7px
}
.pay-method{
  min-height:38px;
  border:1px solid #dce5ef;
  border-radius:10px;
  background:#f7f9fc;
  color:#172941;
  font-size:10px;
  font-weight:820;
  cursor:pointer;
  transition:.14s ease
}
.pay-method:hover{
  border-color:#8abcf4;
  background:#f0f7ff;
  transform:translateY(-1px)
}
.pay-method.active{
  border-color:#0878f9;
  background:#eaf4ff;
  color:#0868d6;
  box-shadow:0 0 0 2px rgba(8,120,249,.07)
}
.pay-method[data-payment="Espèces"].active{background:#eef6ff}
.pay-method[data-payment="Wave"].active{background:#f4fbff}
.pay-method[data-payment="Orange Money"].active{background:#fff4ea;border-color:#ff9a48;color:#c76510}
.pay-method[data-payment="MTN Money"].active{background:#fff9da;border-color:#e7c63d;color:#896f00}
.pay-method[data-payment="Carte"].active{background:#edf4ff;border-color:#679fff}
.pay-method[data-payment="Virement"].active{background:#f2eeff;border-color:#8d72e5;color:#6249b8}
.pay-method[data-payment="Crédit"]{grid-column:1/-1}
.pay-method[data-payment="Crédit"].active{background:#fff0f2;border-color:#e87582;color:#b23c48}

.tendered-input{font-size:14px;font-weight:800}
.change-box{
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:12px;
  margin-top:7px;
  padding:9px 10px;
  border-radius:9px;
  background:#f7f9fc;
  border:1px solid #e1e9f2;
  font-size:10px
}
.change-box span{color:#60748c}
.change-box strong{font-size:15px}
.change-box .cash-change{color:#0f9c68}
.change-box .cash-short{color:#d94c55}
.client-select{height:46px;font-weight:760}
.cash-store-line{
  display:grid;
  grid-template-columns:auto 1fr;
  align-items:center;
  gap:10px;
  margin-top:9px
}
.cash-store-line span{font-size:9px;color:#657991;font-weight:800}
.checkout-v11{
  width:100%;
  margin-top:12px;
  padding:13px 14px;
  border:0;
  border-radius:10px;
  background:linear-gradient(135deg,#18ad74,#0a9a66);
  color:white;
  font-size:12px;
  font-weight:900;
  cursor:pointer;
  box-shadow:0 9px 20px rgba(15,158,105,.18)
}
.checkout-v11:hover:not(:disabled){
  transform:translateY(-1px);
  box-shadow:0 12px 26px rgba(15,158,105,.25)
}

.receipt-overlay{
  position:fixed;
  inset:0;
  z-index:100;
  display:grid;
  place-items:center;
  padding:18px;
  background:rgba(6,18,36,.68);
  backdrop-filter:blur(7px)
}
.receipt-preview-card{
  width:min(720px,100%);
  max-height:94vh;
  display:flex;
  flex-direction:column;
  background:white;
  border-radius:16px;
  overflow:hidden;
  box-shadow:0 30px 80px rgba(0,0,0,.28)
}
.receipt-preview-head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding:14px 16px;
  border-bottom:1px solid #e3eaf2;
  background:#fbfdff
}
.receipt-preview-head strong{display:block;font-size:13px}
.receipt-preview-head span{display:block;font-size:9px;color:#718399;margin-top:2px}
.receipt-close{
  border:0;background:#f1f4f8;
  width:30px;height:30px;border-radius:8px;
  cursor:pointer;font-size:18px;color:#53687f
}
.receipt-preview-body{
  padding:18px;
  overflow:auto;
  background:#eef3f8
}
.receipt-sheet{
  max-width:620px;
  margin:auto;
  background:white;
  padding:28px 32px;
  min-height:500px;
  box-shadow:0 6px 22px rgba(21,52,86,.08);
  color:#15283f
}
.receipt-head{
  display:flex;
  justify-content:space-between;
  align-items:flex-start;
  gap:15px;
  margin-bottom:18px
}
.receipt-brand{
  color:#0878f9;
  font-size:22px;
  font-weight:950;
  letter-spacing:-.02em
}
.receipt-brand span{color:#10233f}
.receipt-doc-title{font-size:20px;font-weight:950}
.receipt-meta{
  font-size:9px;
  line-height:1.7;
  color:#435970;
  margin-bottom:16px
}
.receipt-table{
  width:100%;
  border-collapse:collapse;
  margin-top:8px
}
.receipt-table th{
  text-align:left;
  padding:7px 5px;
  border-bottom:1px solid #aebbc8;
  font-size:8px;
  color:#40566e
}
.receipt-table td{
  padding:8px 5px;
  border-bottom:1px solid #e1e7ee;
  font-size:8.5px
}
.receipt-totals{
  width:min(310px,100%);
  margin:16px 0 0 auto
}
.receipt-totals>div{
  display:flex;
  justify-content:space-between;
  gap:15px;
  padding:4px 0;
  font-size:9px
}
.receipt-totals .grand{
  border-top:1px solid #9dacba;
  margin-top:4px;
  padding-top:8px;
  font-size:15px;
  font-weight:900
}
.receipt-foot{
  text-align:center;
  margin-top:28px;
  color:#5f7185;
  font-size:8px;
  line-height:1.5
}
.receipt-foot strong{color:#1b3048}
.receipt-foot p{margin:8px 0 0}
.receipt-actions{
  display:flex;
  justify-content:flex-end;
  gap:8px;
  padding:12px 16px;
  border-top:1px solid #e2e9f1;
  background:white
}

body.dark-ui .cash-v11,
body.dark-ui .pay-method,
body.dark-ui .change-box{background:#101d2f;color:var(--ink);border-color:#24354c}
body.dark-ui .receipt-preview-card{background:#101d2f}
body.dark-ui .receipt-preview-head,
body.dark-ui .receipt-actions{background:#101d2f;border-color:#24354c}
body.dark-ui .receipt-preview-body{background:#0b1625}

@media(max-width:1050px){
  .pos-v11{grid-template-columns:1fr}
  .cash-v11{position:static}
}
@media(max-width:620px){
  .receipt-overlay{padding:8px}
  .receipt-preview-card{max-height:97vh;border-radius:11px}
  .receipt-preview-body{padding:8px}
  .receipt-sheet{padding:20px 16px}
  .receipt-actions{display:grid;grid-template-columns:1fr 1fr}
  .receipt-actions .primary{grid-column:1/-1}
}
