/* Shop sales receipt only. Does not change delivery receipts or accounting. */
.shop-receipt-paper {
    width:210mm; max-width:100%; min-height:297mm; padding:14mm 12mm;
    display:flex; flex-direction:column; direction:rtl;
    background:#fff; color:#161616; border:1px solid #c9cdd2;
    font-family:Tahoma,Arial,sans-serif; line-height:1.65;
}
.shop-receipt-paper .shop-receipt-header {
    justify-content:space-between; text-align:right; gap:18px;
    border-bottom:3px double #252525; padding-bottom:12px; margin-bottom:0;
}
.shop-receipt-paper .shop-receipt-header img { width:72px; height:72px; flex-shrink:0; }
.shop-receipt-paper .shop-receipt-header h2 { font-size:24pt; margin:0 0 4px; letter-spacing:0; }
.shop-receipt-paper .shop-receipt-header div { font-size:10.5pt; }
.shop-receipt-document-title { text-align:center; padding:14px 0 12px; }
.shop-receipt-document-title h3 { margin:0; font-size:20pt; font-weight:800; }
.shop-receipt-document-title p { margin:2px 0 0; font-size:10pt; color:#555; }
.shop-receipt-paper .shop-receipt-info {
    border:1px solid #a6adb5; background:#f7f8fa; padding:12px;
    gap:8px 18px; font-size:11pt; margin-bottom:16px;
}
.shop-receipt-paper .shop-receipt-info > div { min-width:0; overflow-wrap:anywhere; }
.shop-receipt-paper .shop-receipt-info > div:nth-child(3) { grid-column:1 / -1; }
.shop-receipt-paper .shop-receipt-items { font-size:11pt; table-layout:fixed; }
.shop-receipt-paper .shop-receipt-items th { background:#eceff2; font-weight:800; padding:9px 6px; }
.shop-receipt-paper .shop-receipt-items td { padding:8px 6px; vertical-align:top; }
.shop-receipt-paper .shop-receipt-items th:first-child { width:43%; }
.shop-receipt-paper .shop-receipt-items input { box-sizing:border-box; min-width:0; padding:2px; font-size:11pt; }
.shop-receipt-paper .shop-receipt-total {
    width:300px; max-width:100%; gap:0; font-size:12pt;
    border:1px solid #9fa6af; margin-top:16px; padding:0;
}
.shop-receipt-paper .shop-receipt-total > div { padding:7px 12px; border-bottom:1px solid #ddd; }
.shop-receipt-paper .shop-receipt-total > div:last-child { border-bottom:0; }
.shop-receipt-paper .shop-receipt-total input { width:130px; max-width:55%; background:transparent; color:#161616; }
.shop-receipt-paper .shop-receipt-total .grand { background:#edf0f3; border-top:2px solid #252525; font-size:15pt; font-weight:800; }
.shop-receipt-certification { margin-top:auto; padding-top:26px; break-inside:avoid; page-break-inside:avoid; }
.shop-receipt-certification > p { font-size:10pt; margin:0 0 12px; text-align:center; }
.shop-receipt-signatures { display:grid; grid-template-columns:1fr 1fr; gap:26px; }
.shop-receipt-stamp { border:1px dashed #8b929b; min-height:100px; text-align:center; padding:8px; font-size:11pt; }
.shop-receipt-signature { padding:8px; font-size:11pt; display:flex; flex-direction:column; justify-content:space-between; }
.shop-receipt-signature div { border-bottom:1px solid #888; min-height:32px; padding-bottom:2px; }
.shop-receipt-bottom { border-top:1px solid #aaa; margin-top:18px; padding-top:6px; font-size:9pt; text-align:center; color:#555; }
@media print {
    body.shop-receipt-printing .shop-receipt-paper { height:auto !important; min-height:296mm !important; max-width:none; padding:12mm !important; }
    .shop-receipt-paper { print-color-adjust:exact; -webkit-print-color-adjust:exact; }
    .shop-receipt-paper .shop-receipt-header, .shop-receipt-document-title, .shop-receipt-info, .shop-receipt-total, .shop-receipt-items tr { break-inside:avoid; page-break-inside:avoid; }
    .shop-receipt-items thead { display:table-header-group; }
    .shop-receipt-items input { appearance:textfield; -moz-appearance:textfield; border:0 !important; box-shadow:none !important; outline:0 !important; }
    .shop-receipt-items input::-webkit-inner-spin-button, .shop-receipt-total input::-webkit-inner-spin-button { display:none; }
    .shop-receipt-total input { border:0 !important; box-shadow:none !important; }
    .shop-receipt-certification { min-height:48mm; }
}
@media screen and (max-width:600px) {
    .shop-receipt-paper { min-height:0; padding:18px; }
    .shop-receipt-signatures { gap:14px; }
    .shop-receipt-paper .shop-receipt-header h2 { font-size:20pt; }
}
