/* ---------- Report card (ফরম-আকারে রিপোর্ড — মালিকের নমুনা অনুযায়ী) ---------- */
.rp { background: #fff; border: 1px solid var(--card-border); border-radius: 16px; margin-bottom: 1.1rem; overflow: hidden; break-inside: avoid; }
.rp-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; padding: 1.1rem 1.5rem .9rem; background: #f7faf8; border-bottom: 1px solid #eef1f0; flex-wrap: wrap; }
.rp-eyebrow { color: var(--muted); font-size: .88rem; margin-bottom: .1rem; }
.rp-name { font-size: 1.75rem; font-weight: 700; margin: 0; line-height: 1.25; }
.rp-pill { background: #e3f0e9; color: var(--primary); border: 1px solid var(--primary-line); border-radius: 10px; padding: .35rem .9rem; font-size: .9rem; font-weight: 600; white-space: nowrap; }
.rp-sec { padding: 1.15rem 1.5rem .85rem; border-bottom: 1px solid #eef1f0; }
.rp-title { font-size: 1.3rem; font-weight: 700; margin: 0 0 .15rem; }
.rp-sub { color: var(--muted); margin: 0; }
.rp-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 2.5rem; padding: .35rem 1.5rem; }
.rp-f { padding: .8rem 0; border-bottom: 1px solid #f0f3f2; }
.rp-l { display: block; color: var(--muted); font-size: .88rem; margin-bottom: .1rem; }
.rp-v { display: block; font-size: 1.12rem; font-weight: 500; }
.rp-more { border-top: 1px solid #f0f3f2; }
.rp-more > summary { cursor: pointer; list-style: none; padding: .85rem 1.5rem; color: var(--primary); font-weight: 600; display: flex; align-items: center; gap: .45rem; }
.rp-more > summary::-webkit-details-marker { display: none; }
.rp-more > summary i { font-size: .8rem; transition: transform .15s; }
.rp-more[open] > summary i { transform: rotate(90deg); }
.rp-more > summary:focus-visible { outline: 3px solid var(--primary); outline-offset: -3px; }
.rp-grid-more { padding-bottom: .9rem; }
.rp-foot { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .9rem 1.5rem 1.15rem; flex-wrap: wrap; }
.rp-src { color: #8a9793; font-size: .88rem; }
.rp-print {
    background: #fff; color: var(--primary); border: 1px solid var(--primary-line); border-radius: 10px;
    padding: .6rem 1.1rem; font-weight: 600; display: inline-flex; align-items: center; gap: .45rem; cursor: pointer;
}
.rp-print:hover, .rp-print:focus-visible { background: var(--primary-soft); color: var(--primary-dark); }
mark.hit { background: #fdf0a6; padding: 0 .08rem; border-radius: 3px; }
.rp-note { background: #fdf1e7; border: 1px solid #f0c99a; color: #8a4708; border-radius: 12px; padding: .7rem 1rem; margin-bottom: 1rem; font-size: .95rem; }
@media (max-width: 575.98px) { .rp-grid { grid-template-columns: 1fr; } .rp-name { font-size: 1.45rem; } }

/* ---------- cross-office result blocks (shared by /Offices and /Search) ---------- */
.dup-alert { border-radius: 16px; padding: 1.1rem 1.3rem; margin-bottom: 1rem; display: flex; gap: .9rem; align-items: flex-start; }
.dup-alert.warn { background: #fdf1e7; border: 1px solid #f0c99a; color: #8a4708; }
.dup-alert.ok { background: #eef6f2; border: 1px solid #b9d6cb; color: #114c3e; }
.dup-alert.none { background: #f1f3f2; border: 1px solid #e2e7e5; color: #5d6b67; }
.dup-alert i { font-size: 1.5rem; line-height: 1; }
.dup-alert b { display: block; font-size: 1.08rem; margin-bottom: .15rem; }
.dup-count { display: inline-grid; place-items: center; min-width: 34px; height: 34px; border-radius: 10px; background: #fff; border: 1px solid currentColor; font-weight: 700; padding: 0 .45rem; }
.uni-office { background: #fff; border: 1px solid #e2e7e5; border-radius: 16px; margin-bottom: 1rem; overflow: hidden; }
.uni-office .uo-head { display: flex; align-items: center; gap: .8rem; padding: .9rem 1.2rem; border-bottom: 1px solid #eef1f0; flex-wrap: wrap; }
.uo-ico { width: 40px; height: 40px; border-radius: 11px; display: grid; place-items: center; font-size: 1.15rem; flex-shrink: 0; }
.uo-name { font-weight: 700; margin: 0; font-size: 1.05rem; }
.uo-badge { margin-left: auto; font-size: .82rem; font-weight: 700; border-radius: 999px; padding: .2rem .75rem; }
.uo-body { padding: 1rem 1.1rem; }
.res-bar { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin: .5rem 0 1rem; flex-wrap: wrap; }
.res-print { background: #fff; color: #17614f; border: 1px solid #b9d6cb; border-radius: 10px; padding: .55rem 1rem; font-weight: 600; display: inline-flex; align-items: center; gap: .4rem; cursor: pointer; }
.res-print:hover { background: #eef6f2; }

/* ---------- possible matches (সম্ভাব্য মিল) ---------- */
.cand-list { display: grid; gap: .7rem; margin-bottom: 1.2rem; }
.cand { display: grid; gap: .3rem; background: #fff; border: 1px solid var(--card-border); border-radius: 14px; padding: .95rem 1.2rem; color: var(--text); text-decoration: none; transition: border-color .15s, box-shadow .15s; }
.cand:hover, .cand:focus-visible { border-color: var(--primary-line); box-shadow: 0 6px 18px rgba(19,61,58,.08); color: var(--text); }
.cand:focus-visible { outline: 3px solid var(--primary); outline-offset: 2px; }
.cand-badge { justify-self: start; font-size: .8rem; font-weight: 600; border-radius: 999px; padding: .12rem .65rem; }
.cand-badge.part { background: #eef6f2; color: #17614f; border: 1px solid #b9d6cb; }
.cand-badge.near { background: #fdf1e7; color: #8a4708; border: 1px solid #f0c99a; }
.cand-name { font-size: 1.2rem; font-weight: 700; }
.cand-meta { display: flex; flex-wrap: wrap; gap: .3rem 1.2rem; color: var(--muted); font-size: .93rem; }
.cand-off { color: var(--primary); font-weight: 600; font-size: .93rem; }
.sum-strip { display: flex; flex-wrap: wrap; gap: .6rem; margin-bottom: 1rem; }
.sum-strip span { background: #fff; border: 1px solid var(--card-border); border-radius: 12px; padding: .5rem .9rem; font-size: .95rem; }
.sum-strip b { color: var(--primary); font-size: 1.1rem; }

/* print one report: hide everything except the chosen card */
@media print {
    body.rp-printing * { visibility: hidden !important; }
    body.rp-printing .rp-print, body.rp-printing .rp-src { visibility: hidden !important; }
    body.rp-printing .rp.print-target, body.rp-printing .rp.print-target * { visibility: visible !important; }
    body.rp-printing .rp.print-target { position: absolute; left: 0; top: 0; width: 100%; margin: 0; border: 0; }
    body.rp-printing .rp.print-target .rp-more > summary { display: none; }
    body.rp-printing .rp.print-target .rp-more[open] > *:not(summary) { display: block; }
    .rp-print { display: none !important; }
    .rp-src { display: none !important; }
    body.rp-printing .rp-src { display: inline !important; }
    .rp { border: 1px solid #999 !important; }
    .rp-head, .rp-sec { background: #fff !important; }
    .cand-list { display: none !important; }
    .res-print { display: none !important; }
}
