/* A5 payment card: self-contained, all classes are namespaced. */
.pc-sheet,.pc-sheet *{box-sizing:border-box}
.pc-sheet{width:148mm;min-height:210mm;padding:10mm;margin:0 auto;background:#fff;color:#152d46;font-family:Arial,Helvetica,sans-serif;font-size:10px;line-height:1.3;box-shadow:0 8px 40px #173b6120;display:flex;flex-direction:column;gap:1.8mm;text-align:left;overflow-wrap:anywhere}
.pc-sheet>*{flex-shrink:0}
.pc-sheet h1,.pc-sheet h2,.pc-sheet p{margin:0}
.pc-sheet section{padding:0;margin:0}
.pc-header{display:flex;justify-content:space-between;align-items:start;border-bottom:1.4mm solid #164e80;padding-bottom:2mm;gap:4mm}
.pc-brand{font-size:12px;font-weight:700;letter-spacing:1.6px;color:#164e80;line-height:1.05;flex:0 0 38mm}
.pc-brand b{display:block;font-size:24px;letter-spacing:1px}
.pc-brand small{display:block;font-size:7px;letter-spacing:1.4px;margin-top:1mm}
.pc-document{text-align:right;min-width:0}
.pc-document h1{font-size:20px;font-weight:700;line-height:1.1;margin-bottom:1mm}
.pc-document p,.pc-document span{font-size:9px;color:#53677a}
.pc-document p{max-width:70mm}
.pc-sheet .pc-unit{display:flex;gap:3mm;align-items:center;padding:1.5mm 3mm;background:#edf4fa;border:1px solid #d5e2ed;border-radius:2mm}
.pc-unit>div:first-child{border-right:1px solid #c3d5e4;min-width:16mm;padding-right:3mm;text-align:center}
.pc-unit>div:first-child span{display:block;font-size:8px;letter-spacing:1px}
.pc-unit>div:first-child strong{display:block;font-size:27px;line-height:1.05;color:#164e80}
.pc-unit-main{flex:1;min-width:0}
.pc-unit-main>b{font-size:14px;line-height:1.3}
.pc-unit-main p{font-size:9px;margin-top:.4mm}
.pc-unit-badge{font-size:9px;font-weight:700;white-space:nowrap;text-align:right}
.pc-unit-badge small{display:block;font-size:9px;font-weight:400;margin-top:1mm}
.pc-plan h2{font-size:13px;line-height:1.3;margin-bottom:.7mm;font-weight:700;color:#164e80}
.pc-plan p{font-size:9px;color:#354f67;line-height:1.3}
.pc-parties{display:grid;grid-template-columns:1fr 1fr;gap:4mm}
.pc-parties>div{min-width:0;border-bottom:1px solid #dbe3ea;padding-bottom:1.6mm}
.pc-parties span{font-size:7px;font-weight:700;letter-spacing:.5px;display:block;color:#657588;margin-bottom:.8mm}
.pc-parties b{font-size:11px;font-weight:700;display:block}
.pc-parties p{font-size:9px;margin-top:.5mm}
.pc-price-strip{display:grid;grid-template-columns:1fr 1fr 1fr;gap:3mm}
.pc-price-strip span{font-size:8px;color:#5d7081}
.pc-price-strip b{display:block;color:#183a59;font-size:12px;margin-top:.5mm;white-space:nowrap}
.pc-price-strip span:last-child{text-align:right}
.pc-price-strip span:last-child b{color:#164e80}
.pc-schedule{width:100%;border-collapse:collapse;table-layout:fixed;font-size:11px;line-height:1.12;margin:0;color:#152d46}
.pc-schedule caption{text-align:left;font-size:7.6px;letter-spacing:.25px;font-weight:700;padding:0 0 1.5mm;color:#506778}
.pc-col-period{width:15%}.pc-col-date{width:21%}.pc-col-kind{width:38%}.pc-col-amount{width:26%}
.pc-schedule th,.pc-schedule td{padding:.1mm 1.5mm;border-bottom:1px solid #dee6ed;height:3.9mm;font-weight:400;text-align:left;vertical-align:middle}
.pc-schedule th:first-child,.pc-schedule td:last-child{white-space:nowrap}
.pc-schedule thead th{font-size:8px;font-weight:700;background:#164e80;color:#fff;height:5mm;border:0}
.pc-schedule td:last-child,.pc-schedule th:last-child{text-align:right;font-variant-numeric:tabular-nums}
.pc-schedule .pc-down-row{background:#edf4fa;font-weight:700}
.pc-schedule .pc-down-row td,.pc-schedule .pc-down-row th{font-weight:700}
.pc-schedule .pc-balloon-row{background:#f3f7fa}
.pc-schedule .pc-balloon-row td:last-child{font-weight:700}
.pc-schedule .pc-final-row td,.pc-schedule .pc-final-row th{background:#e7f0f8;font-weight:700}
.pc-schedule .pc-title-row td,.pc-schedule .pc-title-row th{background:#fff0c2;color:#62480d}
.pc-title-label{font-size:8px;font-weight:700;line-height:1.1;white-space:normal}
.pc-schedule tfoot th,.pc-schedule tfoot td{font-weight:700;border-top:1.2px solid #164e80;border-bottom:1.2px solid #164e80;height:6.5mm;font-size:11px}
.pc-footer{border-top:1px solid #dbe3ea;padding-top:2mm;margin-top:auto;color:#596b7c;font-size:8px;line-height:1.3}
.pc-footer p+p{margin-top:1mm}
.pc-footer strong{color:#203e58}
.pc-footer .pc-private{font-size:7px;color:#758593}
#paymentPrintRoot{display:none}
@page payment-card{size:A5 portrait;margin:0}
@media print{
  html,body{width:auto!important;height:auto!important;min-height:0!important;margin:0!important;padding:0!important;background:#fff!important;overflow:visible!important}
  body>*:not(#paymentPrintRoot){display:none!important}
  body::before,body::after{display:none!important;content:none!important}
  #paymentPrintRoot{display:block!important;position:static!important;width:auto!important;margin:0!important;padding:0!important;background:#fff!important}
  #paymentPrintRoot .pc-sheet{page:payment-card;width:148mm!important;height:210mm!important;min-height:210mm!important;padding:10mm!important;margin:0!important;box-shadow:none!important;border:0!important;border-radius:0!important;break-inside:avoid;break-after:page;print-color-adjust:exact;-webkit-print-color-adjust:exact}
  #paymentPrintRoot .pc-sheet:last-child{break-after:auto}
  #paymentPrintRoot .pc-sheet table,#paymentPrintRoot .pc-sheet tr{break-inside:avoid}
  #paymentPrintRoot a{color:inherit!important;text-decoration:none!important}
}
