.pf-summary{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin:20px 0}.pf-summary>div{border:1px solid #cbded6;background:#f1f8f4;padding:14px;border-radius:10px}.pf-summary strong{display:block;margin-top:10px;font-size:1.15em}.pf-summary>div:last-child{border-color:#1a7358}.basket-item label{min-width:140px}.receipt-preview .pf-summary{font-size:12px}@media(max-width:700px){.pf-summary{grid-template-columns:1fr}.basket-item{flex-wrap:wrap}}@media print{.pf-summary{grid-template-columns:repeat(3,1fr);font-size:9pt;break-inside:avoid}.pf-summary>div{padding:6px}.pf-summary strong{font-size:1em}}

.invoice-a5 .pf-lines th:first-child,.invoice-a5 .pf-lines td:first-child{width:auto;min-width:65px}.invoice-a5 .pf-lines{table-layout:auto}
/* Paper invoice follows the supplied physical form. */
.talato-paper{box-sizing:border-box;width:210mm;min-height:0;max-width:100%;margin:0 auto;padding:5mm;border:1.5px solid #222;background:#fff;color:#111;font:9pt/1.7 Yekan,sans-serif;border-radius:0}.talato-paper *{box-sizing:border-box}.paper-header{display:grid;grid-template-columns:32% 45% 23%;align-items:center;gap:0;padding-bottom:4mm;min-height:27mm;border-bottom:1.5px solid #222;margin-bottom:3mm}.paper-meta{border:1px solid #222;padding:2mm;font-size:8pt}.paper-meta>div{display:flex;align-items:baseline;gap:2mm;min-height:6mm}.paper-meta span{flex:1}.paper-title{text-align:center;padding:0 2mm}.paper-title strong{font-size:12pt}.paper-title h2{font-size:10pt;margin:2mm 0 0}.paper-title small{font-size:8pt}.paper-logo{text-align:center}.paper-logo img{max-width:100%;max-height:23mm;object-fit:contain}.paper-logo strong{display:block;font-size:27pt;line-height:1.3}.paper-logo span{display:block;font-family:serif;font-size:15pt;letter-spacing:1px}.talato-paper h3{font-size:9pt;margin:0;padding:1mm 2mm;border-bottom:1px solid #222;line-height:1.7;font-weight:bold}.paper-customer,.paper-section,.paper-notes,.paper-signature{border:1px solid #222;margin-bottom:3mm}.paper-name{display:flex;align-items:baseline;gap:2mm;padding:2mm;min-height:8mm}.paper-customer-label{flex:none;white-space:nowrap}.paper-customer .paper-customer-value{display:inline-block;flex:0 1 auto;min-width:34mm;max-width:100%;padding:0 1mm;position:relative;border-bottom:1px solid transparent;line-height:1.15;overflow-wrap:anywhere;text-align:center}.paper-customer .paper-customer-fullname{width:70mm;text-align:right}.paper-customer-bottom{display:flex;flex-wrap:wrap;align-items:baseline;gap:3mm 12mm;padding:1mm 2mm 2mm}.paper-customer-bottom>div{display:flex;align-items:baseline;gap:2mm}.invoice-brand-logo{display:block;width:25mm;height:25mm;max-width:100%;object-fit:contain;margin-inline:auto}.paper-section h3{display:flex;justify-content:space-between;border:0}.paper-section h3 small{font-size:6.5pt;font-weight:normal}.talato-paper .paper-grid{width:100%;border-collapse:collapse;table-layout:fixed;white-space:normal;margin:0;font-size:8pt}.talato-paper .paper-grid th,.talato-paper .paper-grid td{border:1px solid #333;padding:1mm;text-align:center;height:9mm;background:#fff;color:#111;overflow-wrap:anywhere}.talato-paper .paper-grid th{height:6mm;font-weight:normal}.talato-paper .paper-grid th:first-child,.talato-paper .paper-grid td:first-child{border-right:0}.talato-paper .paper-grid th:last-child,.talato-paper .paper-grid td:last-child{border-left:0}.talato-paper .paper-grid tr:last-child td{border-bottom:0}.paper-sold th:nth-child(1){width:17%}.paper-sold th:nth-child(2){width:16%}.paper-sold th:nth-child(3){width:12%}.paper-sold th:nth-child(4){width:15%}.paper-sold th:nth-child(5){width:15%}.paper-sold th:nth-child(6){width:25%}.paper-received th:last-child{width:40%}.paper-amounts{display:flex;justify-content:space-between;font-size:7.5pt;margin:0 0 2mm;gap:2mm}.paper-settlement{display:grid;grid-template-columns:1fr 1fr;gap:2mm;margin-bottom:3mm}.paper-settlement>div{border:1px solid #222;padding:2mm;min-height:10mm}.paper-notes>div{min-height:17mm;padding:2mm;white-space:pre-wrap;overflow-wrap:anywhere}.paper-signature{min-height:30mm;text-align:center;padding:2mm}.paper-blank{display:inline-block;min-width:12mm;border-bottom:1px dotted #aaa}.paper-disclaimer{font-size:6.5pt;margin:0;text-align:center}.receipt-preview:has(.talato-paper){overflow-x:auto}@media(max-width:600px){.receipt-preview .talato-paper{min-width:136mm}.paper-document-fields{grid-template-columns:1fr}}@media print{#print-area .talato-paper{width:100%;min-height:0;max-width:none;border:1px solid #222;padding:3mm;box-shadow:none}.talato-paper .paper-grid thead{display:table-header-group}.talato-paper .paper-grid tr,.paper-header,.paper-customer,.paper-settlement,.paper-notes,.paper-signature{break-inside:avoid}.talato-paper .paper-section{break-inside:auto}.talato-paper .paper-grid td,.talato-paper .paper-grid th{print-color-adjust:exact}}

.operation-banner .pf-date-field{margin-right:auto;min-width:190px;max-width:230px;font-size:12px}.operation-banner:has(.pf-date-field) .operation-caption{display:none}.pf-date-field input{background:white}.pf-inline-form{margin-top:18px;padding:18px;border:1px solid #cbded6;border-radius:10px;background:#f8fbfa}.pf-inline-form .grid{margin:14px 0}.pf-inline-form label{min-width:0}.paper-settlement{grid-template-columns:1fr}@media(max-width:650px){.operation-banner:has(.pf-date-field){flex-wrap:wrap}.operation-banner .pf-date-field{width:100%;max-width:none;margin-top:12px}.pf-inline-form .grid{grid-template-columns:1fr}}

/* Compact proforma checkout, scoped so printed documents keep their layout. */
.pf-compact-basket #pf-document-fields{display:grid;grid-template-columns:minmax(0,1fr) minmax(190px,.45fr);gap:16px;padding:18px 24px;border-bottom:1px solid #e6eceb;margin:0}.pf-compact-basket #pf-document-fields label{margin:0;min-width:0;font-size:12px}.pf-compact-basket #pf-document-fields textarea{min-height:72px;height:72px;resize:vertical}.pf-compact-basket #pf-document-fields input{min-height:44px}.pf-exchange-section{padding:16px 24px;border-bottom:1px solid #e6eceb}.pf-exchange-toolbar{display:flex;align-items:center;justify-content:space-between;gap:12px}.pf-exchange-toolbar strong{font-size:13px}.pf-exchange-toolbar small{display:block;font-size:11px;color:var(--muted);margin-top:3px}.pf-exchange-toolbar .row{flex-wrap:wrap;gap:8px}.pf-exchange-section [hidden]{display:none!important}.pf-exchange-section #pf-exchange-rows:not([hidden]){margin-top:12px}.pf-compact-basket #pf-totals{padding:14px 24px;background:#fafcfc}.pf-compact-basket .pf-summary{display:flex;align-items:center;gap:20px;margin:0}.pf-compact-basket .pf-summary>div{flex:1;border:0;border-radius:0;background:none;padding:0;font-size:11px;color:var(--muted)}.pf-compact-basket .pf-summary strong{font-size:14px;color:#183c42;margin:4px 0 0;white-space:nowrap}.pf-compact-basket .pf-summary>div:last-child{border-right:1px solid #dce7e3;padding-right:20px}.pf-compact-basket .pf-summary>div:last-child strong{color:#17654e}.pf-compact-basket .basket-checkout{padding:14px 24px;border-top:1px solid #e6eceb}.pf-compact-basket #basket-totals{font-size:11px}.pf-empty-basket{padding:24px;color:var(--muted);font-size:12px;text-align:center}.pf-compact-basket #basket-result:empty{display:none}@media(max-width:700px){.pf-compact-basket #pf-document-fields{grid-template-columns:1fr;padding:16px}.pf-exchange-section{padding:16px}.pf-exchange-toolbar{align-items:flex-start;flex-direction:column}.pf-compact-basket #pf-totals{padding:12px 16px}.pf-compact-basket .pf-summary{display:grid;gap:8px;grid-template-columns:1fr}.pf-compact-basket .pf-summary>div{display:flex;align-items:center;justify-content:space-between;gap:12px}.pf-compact-basket .pf-summary strong{margin:0}.pf-compact-basket .pf-summary>div:last-child{padding:8px 0 0;border-right:0;border-top:1px solid #dce7e3}}

.pf-settlement-bar{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:16px 24px;border-bottom:1px solid #e6eceb}.pf-settlement-bar span{font-size:12px;color:var(--muted)}.pf-settlement-dialog textarea{min-height:100px}.pf-settlement-dialog label{margin-bottom:14px}@media(max-width:650px){.pf-settlement-bar{padding:16px;flex-direction:column;align-items:flex-start}}

/* Monetary values stay compact while remaining easy to distinguish. */
.pf-compact-basket #basket-rows .pf-lines th:last-child{background:#e9f5ef;color:#14563e;font-weight:700}.pf-compact-basket #basket-rows .pf-lines td:last-child{background:#f0faf5;color:#155d43;font-size:14px;font-weight:700;box-shadow:inset 0 0 0 1px #c5e3d3;font-variant-numeric:tabular-nums}.pf-compact-basket #pf-exchange-rows .pf-lines th:last-child{background:#edf5fb;color:#245778;font-weight:700}.pf-compact-basket #pf-exchange-rows .pf-lines td:last-child{background:#f2f8fc;color:#245778;font-weight:700;box-shadow:inset 0 0 0 1px #d1e3ef}.pf-compact-basket #pf-totals{background:#fff;padding:12px 24px}.pf-compact-basket .pf-summary{gap:10px;align-items:stretch}.pf-compact-basket .pf-summary>div{min-width:0;border:1px solid #d6e0e3;border-radius:8px;background:#f6f8f9;padding:9px 12px;color:#405960;font-size:11px;line-height:1.6}.pf-compact-basket .pf-summary>div:nth-child(2){background:#f2f7fc;border-color:#d0e1ed;color:#345d79}.pf-compact-basket .pf-summary strong{font-size:15px;line-height:1.6;margin-top:3px;font-variant-numeric:tabular-nums;white-space:normal;overflow-wrap:anywhere}.pf-compact-basket .pf-summary>div:last-child{padding:9px 12px;border:1.5px solid #5d9e7f;border-radius:8px;background:#eaf6ee;color:#1b5c3f}.pf-compact-basket .pf-summary>div:last-child strong{color:#114e33;font-size:16px}.pf-inline-form [name=final_rial],.pf-settlement-dialog [name=quote_rial]{border-color:#6fa98b;background:#f4fbf7;font-weight:700}.pf-inline-form [name=final_rial]:focus,.pf-settlement-dialog [name=quote_rial]:focus{outline:2px solid #2e7b55;outline-offset:2px}@media(max-width:700px){.pf-compact-basket #pf-totals{padding:12px 16px}.pf-compact-basket .pf-summary>div,.pf-compact-basket .pf-summary>div:last-child{padding:9px 12px}.pf-compact-basket .pf-summary strong{margin:0;text-align:left}.pf-compact-basket .pf-summary>div:last-child strong{font-size:15px}}
@media(max-width:700px){.pf-compact-basket #basket-rows .pf-lines td:first-child::before{content:'نوع طلا'}.pf-compact-basket #basket-rows .pf-lines td:nth-child(2){display:flex;justify-content:space-between;padding-bottom:10px}.pf-compact-basket #basket-rows .pf-lines td:nth-child(2)::before{content:'کد کالا';font-size:11px;font-weight:normal;color:#526a72}.pf-compact-basket #basket-rows .pf-lines td:nth-child(4)::before{content:'اجرت'}.pf-compact-basket #basket-rows .pf-lines td:nth-child(5){grid-column:1/-1;display:flex;justify-content:space-between}.pf-compact-basket #basket-rows .pf-lines td:nth-child(5)::before{content:'تخفیف / ریال';font-size:11px;color:#526a72}.pf-compact-basket #basket-rows .pf-lines td:last-child{justify-content:space-between;align-items:center}.pf-compact-basket #basket-rows .pf-lines td:last-child::before{content:'قیمت نهایی / ریال';font-size:11px;font-weight:normal;color:#14563e}}
