/* Employee ID card (CR80, 54 x 85.6 mm), drawn at 324 x 514 px */
@font-face { font-family: 'Inter'; src: url('/fonts/Inter-Regular.woff') format('woff'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'Inter'; src: url('/fonts/Inter-Medium.woff') format('woff'); font-weight: 500; font-display: swap; }
@font-face { font-family: 'Inter'; src: url('/fonts/Inter-SemiBold.woff') format('woff'); font-weight: 600; font-display: swap; }
@font-face { font-family: 'Inter'; src: url('/fonts/Inter-Bold.woff') format('woff'); font-weight: 700 900; font-display: swap; }
.idc-pair { display: flex; flex-wrap: wrap; gap: 22px; justify-content: center; }
.idc { --g: linear-gradient(100deg, #7a3cf0, #5a4ff3 48%, #3f6cf4); --ink: #141a4f; --muted: #7a80a8;
  width: 324px; height: 514px; border-radius: 16px; overflow: hidden; position: relative; flex: none;
  font-family: Inter, "Segoe UI", Arial, sans-serif; color: var(--ink); background: #fff; text-align: left;
  box-shadow: 0 10px 30px rgba(40, 40, 120, .16), 0 0 0 1px rgba(20, 26, 79, .06);
  -webkit-print-color-adjust: exact; print-color-adjust: exact; }
.idc * { box-sizing: border-box; margin: 0; padding: 0; }
.idc .g { background: var(--g); color: #fff; }
.idc .g .idc-brand, .idc .g .idc-brand b, .idc .g .idc-brand small, .idc .g .idc-brand .mk, .idc .idbar b, .idc .idbar span, .idc .ft { color: #fff !important; }
.idc .lab { font-size: 8.5px; color: var(--muted); font-weight: 500; letter-spacing: .02em; }
.idc .val { font-size: 11.5px; font-weight: 600; color: var(--ink); margin-top: 1px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.idc .idc-brand { display: flex; align-items: center; justify-content: center; gap: 8px; }
.idc .idc-brand img { height: 30px; max-width: 70px; object-fit: contain; }
.idc .idc-brand .mk { width: 34px; height: 34px; border-radius: 9px; background: rgba(255, 255, 255, .2); border: 1.5px solid rgba(255, 255, 255, .55);
  display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 13px; letter-spacing: .02em; }
.idc .idc-brand b { font-weight: 800; font-size: 14px; letter-spacing: .06em; display: block; text-transform: uppercase; max-width: 190px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.idc .idc-brand small { font-size: 7.5px; letter-spacing: .14em; opacity: .85; display: block; }
/* front */
.idc .top { height: 200px; border-radius: 0 0 50% 50% / 0 0 46px 46px; padding-top: 18px; }
.idc .photo { width: 132px; height: 150px; border-radius: 22px; border: 5px solid #fff; position: absolute; left: 96px; top: 110px;
  box-shadow: 0 10px 24px rgba(40, 40, 140, .25); overflow: hidden; background: linear-gradient(160deg, #dfe4f5, #c4cbe6); }
.idc .photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 25%; display: block; }
.idc .photo .ini { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 44px; color: #5a4ff3; }
.idc .nm { position: absolute; top: 274px; left: 14px; right: 14px; text-align: center; }
.idc .nm h1 { font-weight: 800; font-size: 23px; letter-spacing: -.01em; line-height: 1.15; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: var(--ink); }
.idc .nm p { font-size: 12px; color: #5a4ff3; font-weight: 600; margin-top: 3px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.idc .grid { position: absolute; top: 338px; left: 24px; right: 24px; display: grid; grid-template-columns: 1fr 1fr; gap: 10px 14px; }
.idc .idbar { position: absolute; bottom: 0; left: 0; right: 0; height: 52px; display: flex; align-items: center; justify-content: space-between; padding: 0 22px; }
.idc .idbar span { font-size: 9px; opacity: .85; letter-spacing: .06em; }
.idc .idbar b { font-weight: 800; font-size: 17px; letter-spacing: .04em; }
/* back */
.idc.back { background: #f3f5fd; }
.idc .hd { height: 70px; }
.idc .hd.idc-brand { padding: 0 16px; }
.idc .qrw { margin: 16px auto 0; width: 140px; height: 140px; background: #fff; border-radius: 16px; padding: 12px; box-shadow: 0 6px 18px rgba(60, 60, 150, .12); }
.idc .qrw svg { width: 116px; height: 116px; display: block; }
.idc .cap { text-align: center; font-size: 9px; color: var(--muted); margin-top: 8px; }
.idc .box { margin: 14px 22px 0; background: #fff; border-radius: 12px; padding: 11px 13px; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.idc .box .val { font-size: 10.5px; }
.idc .note { margin: 10px 24px 0; font-size: 8.8px; line-height: 1.45; color: #4a5080; text-align: center; }
.idc .sg { position: absolute; bottom: 46px; left: 0; right: 0; display: flex; justify-content: space-between; align-items: flex-end; padding: 0 26px; }
.idc .stamp { width: 70px; height: 70px; object-fit: contain; opacity: .88; transform: rotate(-12deg); }
.idc .sigw { width: 140px; text-align: center; margin-left: auto; }
.idc .sigw img { height: 66px; max-width: 140px; object-fit: contain; display: block; margin: 0 auto -2px; }
.idc .sigw .sigtxt { font-family: "Brush Script MT", "Segoe Script", cursive; font-style: italic; font-size: 24px; color: #2228b4; height: 52px; line-height: 64px; white-space: nowrap; overflow: hidden; }
.idc .sigw .line { border-top: 1px solid #9aa0c8; padding-top: 3px; font-size: 8px; color: var(--muted); }
.idc .ft { position: absolute; bottom: 0; left: 0; right: 0; height: 40px; font-size: 8.5px; display: flex; align-items: center; justify-content: center; text-align: center; padding: 0 16px; line-height: 1.35; }
.idc .void { position: absolute; top: 230px; left: -30px; right: -30px; transform: rotate(-24deg); text-align: center; font-weight: 800; font-size: 34px; letter-spacing: .1em;
  color: rgba(220, 38, 38, .75); border: 4px solid rgba(220, 38, 38, .7); background: rgba(255, 255, 255, .7); padding: 4px 0; }

/* in the PMS */
.idc-mini { zoom: .62; }
.emp-card-sec { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 22px; align-items: start; }
.emp-card-sec .emp-card-prev { position: sticky; top: 10px; }
.emp-card-prev .help { text-align: center; margin-top: 8px; }
.emp-photo { display: flex; align-items: center; gap: 14px; margin-bottom: 14px; }
.emp-photo .pv { width: 84px; height: 96px; border-radius: 14px; overflow: hidden; background: var(--gray-soft, #eef0f6); flex: none; display: flex; align-items: center; justify-content: center; font-size: 28px; color: var(--faint); border: 1px dashed var(--border); }
.emp-photo .pv img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 25%; }
.emp-photo .acts { display: flex; flex-wrap: wrap; gap: 6px; }
.idc-modal-tools { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-top: 18px; }
.verify-page { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 24px; background: #f3f5fd; font-family: Inter, Arial, sans-serif; }
.verify-card { width: 100%; max-width: 380px; background: #fff; border-radius: 20px; overflow: hidden; box-shadow: 0 12px 40px rgba(40, 40, 120, .15); text-align: center; color: #141a4f; }
.verify-card .vh { padding: 18px; color: #fff; background: linear-gradient(100deg, #7a3cf0, #5a4ff3 48%, #3f6cf4); font-weight: 700; letter-spacing: .04em; }
.verify-card .vb { padding: 24px 22px 26px; }
.verify-card .vp { width: 110px; height: 126px; border-radius: 18px; margin: 0 auto 14px; overflow: hidden; background: #e6e9f6; display: flex; align-items: center; justify-content: center; font-size: 36px; font-weight: 800; color: #5a4ff3; }
.verify-card .vp img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 25%; }
.verify-card h1 { font-size: 22px; margin: 0; }
.verify-card .vs { display: inline-block; margin: 14px 0 6px; padding: 7px 14px; border-radius: 30px; font-weight: 700; font-size: 14px; }
.verify-card .ok { background: #e7f8ee; color: #15803d; } .verify-card .bad { background: #fdecec; color: #b91c1c; }
.verify-card dl { display: grid; grid-template-columns: auto 1fr; gap: 6px 14px; text-align: left; margin: 16px 0 0; font-size: 14px; }
.verify-card dt { color: #7a80a8; } .verify-card dd { margin: 0; font-weight: 600; }
@media (max-width: 760px) { .emp-card-sec { grid-template-columns: 1fr; } .emp-card-sec .emp-card-prev { position: static; justify-self: center; } }
@media print { .idc { box-shadow: none; } }

/* signature pad (Card Settings) */
.sig-pad { width: 100%; max-width: 460px; height: 170px; border: 1.5px dashed var(--border, #cfd3e6); border-radius: 12px; background: #fff; touch-action: none; cursor: crosshair; display: block; }
