/* RODH-IT ID cards — loaded on the site, in the dashboard and in wp-admin alike */
.rodh-idgrid{display:grid;gap:12px;grid-template-columns:repeat(auto-fill,minmax(260px,1fr));align-items:start}
.rodh-idwrap{display:flex;flex-direction:column;gap:8px}
.rodh-idtools{display:flex;gap:6px;flex-wrap:wrap}
.rodh-idback{display:none}
.rodh-idc{--c:#582D8D;--cr:12px;background:#fff;color:#16112a;border:1px solid #d7d3e4;border-radius:var(--cr);overflow:hidden;display:flex;flex-direction:column;min-height:320px;cursor:pointer;font-family:"Hind Siliguri","Noto Sans Bengali",system-ui,sans-serif;box-shadow:0 2px 10px rgba(22,17,42,.07)}
.rodh-idc-top{display:flex;align-items:center;gap:8px;padding:9px 11px;background:var(--c);color:#fff}
.rodh-idc-logo{max-height:28px;background:#fff;border-radius:5px;padding:2px}
.rodh-idc-inst b{display:block;font-size:12.5px;line-height:1.25}
.rodh-idc-inst span{font-size:9.6px;opacity:.9;display:block;line-height:1.3}
.rodh-idc-strip{background:rgba(0,0,0,.06);color:var(--c);font-size:10.6px;font-weight:700;text-align:center;padding:4px;letter-spacing:.3px}
.rodh-idc-demo{background:rgba(200,30,30,.10);color:#b3261e;font-size:10.5px;font-weight:800;text-align:center;padding:3px;letter-spacing:1px}
.rodh-idc-body{display:flex;gap:11px;padding:11px;align-items:flex-start}
.rodh-idc-photo{width:74px;height:88px;flex:0 0 auto;border:2px solid var(--c);border-radius:8px;overflow:hidden;background:#f2f0f7;display:flex;align-items:center;justify-content:center}
.rodh-idc-photo img{width:100%;height:100%;object-fit:cover}
.rodh-idc-noimg{font-size:30px;font-weight:700;color:var(--c)}
.rodh-idc-info{flex:1;min-width:0}
.rodh-idc-info h4{margin:0 0 6px;font-size:14.5px;color:var(--c);line-height:1.25}
.rodh-idc-info table{width:100%;border-collapse:collapse;border:0}
.rodh-idc-info th,.rodh-idc-info td{border:0;padding:1px 0;font-size:10.8px;text-align:left;vertical-align:top;background:transparent}
.rodh-idc-info th{width:66px;color:#6b6880;font-weight:500}
.rodh-idc-info td{font-weight:600;word-break:break-word}
.rodh-idc-foot{margin-top:auto;display:flex;align-items:flex-end;justify-content:space-between;gap:8px;padding:9px 11px;border-top:1px dashed #ddd}
.rodh-idc-qr{width:56px;height:56px;flex:0 0 auto}
.rodh-idc-qr img,.rodh-idc-qr canvas{display:block;width:100%;height:100%}
.rodh-idc-id{font-size:10px;line-height:1.45}
.rodh-idc-id span{color:#777;display:block}
.rodh-idc-id b{color:var(--c);font-size:12px}
.rodh-idc-id em{display:block;font-style:normal;color:#777}
.rodh-idc-sign{text-align:center;font-size:9.6px;color:#555;min-width:78px}
.rodh-idc-sign img{max-height:24px;display:block;margin:0 auto 2px}
.rodh-idc-sign span{border-top:1px solid #888;display:block;padding-top:3px}
/* back side */
.rodh-idc.back .rodh-idc-backbody{padding:12px;display:flex;flex-direction:column;gap:8px;font-size:11px;color:#4a4560;flex:1}
.rodh-idc.back ul{margin:0;padding-inline-start:16px;display:grid;gap:3px;list-style:disc}
.rodh-idc-qrbox{display:flex;flex-direction:column;align-items:center;gap:4px}
.rodh-idc-qrbox span{font-size:10px;color:#777;text-align:center}
.rodh-idc-addr{display:flex;flex-direction:column;gap:2px;text-align:center;font-size:10px;color:#666}
.rodh-idc.back .rodh-idc-sign{margin-top:auto;padding-top:8px}
/* five styles */
.rodh-idc.ph-round .rodh-idc-photo{border-radius:50%;width:82px;height:82px}
.rodh-idc.s-modern{border-inline-start:8px solid var(--c)}
.rodh-idc.s-modern .rodh-idc-top{background:transparent;color:#16112a}
.rodh-idc.s-modern .rodh-idc-inst span{color:#6b6880;opacity:1}
.rodh-idc.s-modern .rodh-idc-strip{background:var(--c);color:#fff}
.rodh-idc.s-gradient{color:#fff;background:linear-gradient(150deg,var(--c),rgba(0,0,0,.45))}
.rodh-idc.s-gradient .rodh-idc-top{background:transparent}
.rodh-idc.s-gradient .rodh-idc-strip{background:rgba(255,255,255,.16);color:#fff}
.rodh-idc.s-gradient .rodh-idc-info h4,.rodh-idc.s-gradient .rodh-idc-id b,.rodh-idc.s-gradient .rodh-idc-noimg,.rodh-idc.s-gradient .rodh-idc-info td{color:#fff}
.rodh-idc.s-gradient .rodh-idc-info th,.rodh-idc.s-gradient .rodh-idc-id span,.rodh-idc.s-gradient .rodh-idc-id em,.rodh-idc.s-gradient .rodh-idc-sign{color:rgba(255,255,255,.85)}
.rodh-idc.s-gradient .rodh-idc-qr{background:#fff;padding:3px;border-radius:6px}
.rodh-idc.s-minimal{border:1px solid #e6e1f1}
.rodh-idc.s-minimal .rodh-idc-top{background:transparent;color:#16112a;border-bottom:2px solid var(--c)}
.rodh-idc.s-minimal .rodh-idc-inst span{color:#6b6880;opacity:1}
.rodh-idc.s-minimal .rodh-idc-strip{background:transparent;color:var(--c);border-bottom:1px solid #efecf7}
.rodh-idc.s-band .rodh-idc-top{background:transparent;color:#16112a;padding-bottom:0}
.rodh-idc.s-band .rodh-idc-inst span{color:#6b6880;opacity:1}
.rodh-idc.s-band .rodh-idc-strip{background:transparent;color:var(--c)}
.rodh-idc.s-band .rodh-idc-body{flex-direction:column;align-items:center;text-align:center;gap:7px}
.rodh-idc.s-band .rodh-idc-photo{width:98px;height:114px}
.rodh-idc.s-band .rodh-idc-info table{margin-inline:auto}
.rodh-idc.s-band .rodh-idc-foot{background:var(--c);border-top:0}
.rodh-idc.s-band .rodh-idc-id b,.rodh-idc.s-band .rodh-idc-id span,.rodh-idc.s-band .rodh-idc-id em,.rodh-idc.s-band .rodh-idc-sign{color:#fff}
.rodh-idc.s-band .rodh-idc-qr{background:#fff;padding:3px;border-radius:6px}
/* preview modal */
.rodh-idmodal{position:fixed;inset:0;background:rgba(22,17,42,.62);z-index:100000;display:flex;align-items:center;justify-content:center;padding:18px}
.rodh-idmodal[hidden]{display:none}
.rodh-idmodal-box{background:#fff;border-radius:18px;padding:22px;max-width:780px;width:100%;max-height:90vh;overflow:auto;position:relative}
.rodh-idclose{position:absolute;top:8px;inset-inline-end:12px;border:0;background:transparent;font-size:28px;line-height:1;cursor:pointer;color:#6b6880}
.rodh-idmodal-body{display:grid;gap:16px;grid-template-columns:1fr}
@media(min-width:640px){.rodh-idmodal-body{grid-template-columns:1fr 1fr}}
.rodh-idmodal-body .rodh-idc{cursor:default}
@media(max-width:600px){.rodh-idgrid{grid-template-columns:1fr}}
@media print{
	.rodh-idgrid.print{grid-template-columns:repeat(2,1fr)}
	.rodh-idwrap,.rodh-idc{break-inside:avoid;page-break-inside:avoid}
	.rodh-idtools{display:none}
}
