/*
 * Physical card in real millimetres (CR80). Printing rules for the Evolis Zenius:
 * - front: white text on blue, i.e. unprinted card, which stays sharp;
 * - back: pure black text (#000), printed with the resin black panel of a YMCKO ribbon, which stays sharp;
 * - the chip area (66-76 mm across, 27-36 mm down) is left empty on both faces.
 */
.pc{position:relative;width:85.6mm;height:53.98mm;overflow:hidden;box-sizing:border-box;font-family:Arial,Helvetica,sans-serif;-webkit-print-color-adjust:exact;print-color-adjust:exact;line-height:1.15}
.pc-stripe{position:absolute;left:0;right:0;bottom:0;height:1.4mm;background:linear-gradient(90deg,#e50920 0 50%,#4caf18 50% 100%)}
/* Front */
.pc-front{background:#08358f;color:#fff}
.pc-head{position:absolute;left:3.1mm;top:2.6mm;display:flex;align-items:center;gap:2mm}
.pc-logo{width:8.2mm;height:8.2mm;border-radius:50%;background:#fff;display:flex;align-items:center;justify-content:center;flex:none}
.pc-logo img{width:7.4mm;height:7.4mm}
.pc-brand small{display:block;font-size:6.5pt;font-weight:700;letter-spacing:.08em;color:#fff}
.pc-brand b{display:block;font-size:14pt;letter-spacing:.08em}
.pc-plan{position:absolute;right:3.1mm;top:2.8mm;background:#fff;border:.5mm solid #e50920;border-radius:1.6mm;padding:.5mm 2mm .7mm;text-align:center}
.pc-plan small{display:block;font-size:6pt;font-weight:700;letter-spacing:.06em;color:#e50920}
.pc-plan b{display:block;font-size:15pt;line-height:1;color:#e50920}
.pc-photo{position:absolute;left:3.1mm;top:13.6mm;width:15.6mm;height:19.6mm;border:.45mm solid #fff;border-radius:1.6mm;overflow:hidden;background:#ffffff33;display:flex;align-items:center;justify-content:center}
.pc-photo img{width:100%;height:100%;object-fit:cover}
.pc-photo span{font-size:16pt;font-weight:700}
/* Identity: 21 mm to 64 mm across, left of the chip */
.pc-id{position:absolute;left:21.3mm;top:13mm;width:42.5mm;margin:0;display:grid;grid-template-columns:max-content minmax(0,1fr);column-gap:1.4mm;row-gap:0;align-items:baseline}
.pc-id dt{font-size:6.5pt;font-weight:700;color:#fff;white-space:nowrap}
.pc-id dd{margin:0;font-size:8.5pt;font-weight:700;min-width:0;overflow-wrap:break-word}
.pc-id dd.pc-name{font-size:10.5pt;letter-spacing:.01em}
.pc-id dt:nth-of-type(4){margin-top:.8mm}
.pc-id dd:nth-of-type(4){margin-top:.8mm}
.pc-kind{position:absolute;left:3.1mm;bottom:3.1mm;font-size:7pt;font-weight:700;letter-spacing:.08em;color:#4caf18;background:#fff;border-radius:1mm;padding:.4mm 1.4mm}
/* QR code in a white square. The chip is on the back with the loading direction used, so the front can take a large code. */
.pc-qr{position:absolute;right:3.1mm;bottom:3.1mm;width:18.5mm;height:18.5mm;background:#fff;border-radius:1.2mm;padding:.9mm;box-sizing:border-box}
.pc .pc-qr svg,.pc .qr-code.pc-qr svg{width:100%;height:100%;display:block}
/* Back. With the loading direction shown on the print page, the chip lands right of centre, below the middle
   (about 61 to 79 mm across, 27 to 39 mm down). The text stays left of 58 mm below the header. */
.pc-back{background:#fff;color:#000}
.pc-back-head{position:absolute;left:3.6mm;top:3.1mm;right:3.6mm;display:flex;align-items:center;gap:2.8mm}
.pc-biglogo{width:17.4mm;height:17.4mm;flex:none}
.pc-org{display:block;font-size:11pt;letter-spacing:.04em;color:#08358f;line-height:1.15}
.pc-rule{display:block;width:20mm;height:.8mm;margin-top:1.3mm;background:linear-gradient(90deg,#e50920 0 50%,#4caf18 50% 100%)}
.pc-address{margin:1.1mm 0 0;font-size:7pt;font-weight:700;color:#000}
.pc-expiry{position:absolute;left:3.6mm;top:23.4mm;background:#08358f;color:#fff;border-radius:1.4mm;padding:.8mm 2.2mm;display:flex;align-items:baseline;gap:2mm}
.pc-expiry small{font-size:6.5pt;font-weight:700;letter-spacing:.06em;color:#fff}
.pc-expiry b{font-size:11pt}
.pc-contacts{position:absolute;left:3.6mm;top:30.4mm;width:54mm}
.pc-line{margin-bottom:.5mm}
.pc-line b{display:block;font-size:7.5pt;color:#000}
.pc-line span{display:block;min-height:3mm;font-size:8pt;font-weight:700;color:#000}
.pc-line span.pc-blank{border-bottom:.3mm dotted #000}
.pc-cardno{position:absolute;right:3.6mm;bottom:3mm;font-size:7pt;font-weight:700;color:#000}
/* Card shown on screen (web portals and mobile app): same faces as the printed card. */
.virtual-card{display:flex;flex-wrap:wrap;gap:18px;align-items:flex-start;margin:6px 0 12px}
.virtual-card figure{margin:0}
.virtual-card figcaption{font-size:12px;font-weight:700;color:#64748b;margin-bottom:6px}
.virtual-card .pc{border-radius:3mm;box-shadow:0 6px 18px #0b2a6326;zoom:1.3}
@media(max-width:520px){.virtual-card .pc{zoom:1.05}}
.card-status-line{display:flex;align-items:center;gap:10px;margin:0 0 6px;font-weight:700}
.card-status-pill{border-radius:999px;padding:3px 12px;color:#fff;font-size:12px;letter-spacing:.06em}
.card-status-pill.ok{background:#3e9a12}.card-status-pill.ko{background:#e50920}
