/* QMMSOFT মডিউল (শিক্ষার্থী · পরীক্ষা · ফলাফল · একাউন্টিং) — app.css-এর রং/ভেরিয়েবল ব্যবহার করে, তাই সব থিমে মিলে যায়। */
.qm-tabs { position:static!important; display:flex; flex-wrap:wrap; gap:8px; padding:12px 14px!important; }
.qm-tabs a, .qm-subtabs a { display:inline-flex; align-items:center; gap:6px; padding:7px 12px; border-radius:9px; background:#f4f5f7; color:#3a434d; text-decoration:none; font-size:.86rem; font-weight:600; white-space:nowrap; }
.qm-tabs a:hover, .qm-subtabs a:hover { background:var(--brand-soft); color:var(--brand-dark); }
.qm-tabs a.active, .qm-subtabs a.active { background:var(--brand); color:#fff; }
.qm-subtabs { display:flex; flex-wrap:wrap; gap:6px; margin:4px 0 12px; }
.qm-grid { display:grid; grid-template-columns:repeat(auto-fit,minmax(200px,1fr)); gap:4px 16px; align-items:start; }
.qm-grid .field { margin:6px 0; }
.qm-grid .wide { grid-column:1/-1; }
.qm-grid .half { grid-column:span 2; }
@media (max-width:700px) { .qm-grid .half { grid-column:1/-1; } }
.qm-two { display:grid; grid-template-columns:repeat(auto-fit,minmax(320px,1fr)); gap:0 18px; }
.qm-sub { margin:16px 0 4px; font-size:1rem; color:var(--brand-dark); border-bottom:1px solid var(--line); padding-bottom:4px; }
.qm-check { display:flex; align-items:center; gap:6px; font-weight:500; margin:8px 0; font-size:.92rem; }
.qm-check input, .qm-chk, .qm-pick, #qm-all { width:auto; min-height:0; }
.qm-checks, .qm-colpick { display:flex; gap:6px 16px; flex-wrap:wrap; padding:8px 0; }
.qm-colpick .qm-check { margin:2px 0; }
.qm-actions { display:flex; flex-wrap:wrap; gap:8px; align-items:center; margin-top:10px; }
.qm-filter { display:grid; grid-template-columns:repeat(auto-fit,minmax(170px,240px)); gap:10px 14px; align-items:end; margin:6px 0 12px; }
.qm-filter .field { margin:0; }
.qm-filter .qm-actions { margin-top:0; }
.qm-btn-light { background:#eef0f3!important; color:#333!important; }
.qm-btn-light:hover { background:#e2e5ea!important; }
.qm-btn-danger { background:#c0392b!important; color:#fff!important; }
.qm-btn-danger:hover { background:#a93226!important; }
.qm-btn-sm { padding:6px 12px!important; font-size:.84rem; }
td .qm-btn-sm, td .button { margin:1px 2px; }
.qm-inline { display:inline; margin:0; }
.qm-nowrap { white-space:nowrap; }
.qm-muted { color:var(--muted); font-size:.88rem; }
.qm-small { font-size:.84rem; }
.qm-red { color:#b3261e!important; font-weight:700; }
.qm-ar { font-family:'Amiri','Scheherazade New','Traditional Arabic','Noto Naskh Arabic',serif; font-size:1.05em; direction:rtl; }
.qm-pill { display:inline-block; padding:2px 10px; border-radius:20px; font-size:.78rem; font-weight:700; background:#eef0f3; color:#3a434d; }
.qm-pill.ok { background:#e3f4e8; color:#1b6b34; }
.qm-pill.bad { background:#fdecea; color:#a32a1f; }
.qm-pill.warn { background:#fff4d6; color:#7a5300; }
.qm-count { display:inline-block; padding:3px 12px; border-radius:20px; border:1px solid var(--line); font-size:.82rem; font-weight:700; margin:0 4px 6px 0; }
.qm-alert { display:flex; align-items:center; flex-wrap:wrap; gap:8px; margin:12px 0; padding:12px 15px; border-radius:10px; background:#ffc107; color:#2b2200; font-weight:600; font-size:.9rem; }
.qm-alert.info { background:var(--brand-soft); color:var(--brand-dark); }
.qm-alert a { color:inherit; }
.qm-link code { display:inline-block; padding:6px 10px; background:#f4f5f7; border-radius:8px; word-break:break-all; }
.qm-stats { display:grid; grid-template-columns:repeat(auto-fit,minmax(200px,1fr)); gap:14px; }
.qm-stats .card { margin:0 0 14px; }
.qm-danger-zone { border-top:1px dashed var(--line); padding-top:10px; margin-top:16px; }
.qm-bulk { display:flex; flex-wrap:wrap; gap:10px; align-items:center; margin-top:10px; }
.qm-inline-fields { display:inline-flex; gap:6px; align-items:center; }
.qm-inline-fields input { width:auto; }
/* টেবিল */
table.qm-plain { width:100%; border-collapse:collapse; font-size:.9rem; }
table.qm-plain th, table.qm-plain td { border:1px solid #cfd8d5; padding:6px 8px; text-align:left; vertical-align:top; }
[dir="rtl"] table.qm-plain th, [dir="rtl"] table.qm-plain td { text-align:right; }
table.qm-plain thead th { background:var(--brand-soft); color:var(--brand-dark); }
table.qm-plain tfoot th { background:#f6f7f8; }
.qm-total td { font-weight:700; background:#f6f7f8; }
.qm-grouprow td { background:var(--brand-soft); font-weight:700; color:var(--brand-dark); }
.qm-blank { min-width:60px; height:28px; }
table.qm-compact td, table.qm-compact th { padding:4px 5px!important; font-size:.8rem; }
.qm-marks td { padding:3px!important; text-align:center; }
.qm-marks input { width:64px; min-height:32px; padding:4px; text-align:center; }
.qm-marks input.qm-fail { color:#b3261e; font-weight:700; }
.qm-marks input.qm-bad { background:#fdecea; border-color:#c0392b; }
.qm-row-muted { opacity:.55; }
.qm-rates input { width:84px; min-height:32px; padding:4px; }
.qm-lines select, .qm-lines input { min-height:34px; }
.qm-collect input { width:110px; min-height:32px; padding:4px; }
.qm-divtable input { min-height:32px; padding:4px 6px; }
.qm-divtable input[type="number"] { width:90px; }
.qm-divtable input[type="color"] { width:46px; padding:2px; }
.qm-div { font-weight:700; }
.qm-net { text-align:right; font-size:1rem; margin:10px 0 0; }
.qm-two-col { display:grid; grid-template-columns:1fr 1fr; gap:14px; }
@media (max-width:700px) { .qm-two-col { grid-template-columns:1fr; } }
/* রিপোর্ট লেআউট */
.qm-report-layout { display:grid; grid-template-columns:270px minmax(0,1fr); gap:16px; align-items:start; }
.qm-report-layout > div > .card:first-child { margin-top:18px; }
@media (max-width:900px) { .qm-report-layout { grid-template-columns:1fr; } }
.qm-report-list { display:flex; flex-direction:column; gap:3px; padding:12px!important; position:sticky; top:10px; }
.qm-report-list a { padding:7px 10px; border-radius:8px; text-decoration:none; color:#3a434d; font-size:.86rem; line-height:1.35; }
.qm-report-list a:hover { background:var(--brand-soft); }
.qm-report-list a.active { background:var(--brand); color:#fff; }
/* রিপোর্ট হেডার — নমুনা সফটওয়্যারের মতো: লোগো · নাম · ঠিকানা · বক্সে রিপোর্টের নাম · তারিখ */
.qm-rhead { display:flex; align-items:center; justify-content:center; gap:14px; text-align:center; border-bottom:2px solid var(--brand); padding-bottom:8px; margin-bottom:12px; position:relative; }
.qm-rhead img.qm-rhead-logo { width:60px; height:60px; object-fit:contain; flex:none; }
.qm-rhead-mid { display:flex; flex-direction:column; align-items:center; gap:2px; min-width:0; }
.qm-rhead strong { font-size:1.35rem; line-height:1.25; color:#111; }
.qm-rhead-addr { font-style:normal; font-size:.86rem; color:#333; line-height:1.3; }
.qm-rhead-title { display:inline-block; margin:5px 0 2px; padding:3px 16px; border:1.5px solid var(--brand); border-radius:8px; font-weight:700; color:var(--brand-dark); background:var(--brand-soft); }
.qm-rhead small { color:#444; font-size:.84rem; }
.qm-rhead-3 { display:grid; grid-template-columns:1fr auto 1fr; align-items:center; }
.qm-rhead-side { display:flex; align-items:center; min-width:0; }
.qm-rhead-left { justify-content:flex-start; }
.qm-rhead-right { justify-content:flex-end; }
.qm-rhead-mid img.qm-rhead-logo { width:44px; height:44px; }
.qm-rhead-date { font-size:.8rem; color:#333; white-space:nowrap; align-self:flex-end; }
/* ফলাফলের সারসংক্ষেপ বক্স (হেডারের দুই পাশে) */
.qm-sumbox { border:1px solid #555; font-size:.76rem; line-height:1.35; min-width:150px; text-align:left; background:#fff; }
.qm-sumbox b { display:block; background:#666; color:#fff; padding:2px 6px; text-align:center; font-weight:600; }
.qm-sumbox table { border-collapse:collapse; margin:3px 6px; width:auto!important; min-width:0!important; }
.qm-sumbox td { border:0!important; padding:0 4px!important; font-size:.76rem!important; white-space:nowrap; }
@media (max-width:700px) { .qm-rhead-3 { grid-template-columns:1fr; } .qm-rhead-side { justify-content:center; } }
@media print { .qm-rhead { -webkit-print-color-adjust:exact; print-color-adjust:exact; } .qm-sumbox b { -webkit-print-color-adjust:exact; print-color-adjust:exact; } }
.qm-rfoot { margin-top:10px; }
.qm-signs { display:flex; justify-content:space-between; gap:12px; margin-top:34px; }
.qm-signs span { border-top:1px solid #555; padding-top:4px; min-width:130px; text-align:center; font-size:.85rem; position:relative; }
.qm-signs .qm-sign-img { position:absolute; left:50%; bottom:100%; transform:translateX(-50%); max-width:120px; max-height:42px; object-fit:contain; }
.qm-signs-right { justify-content:flex-end; }
.qm-photo { width:64px; height:76px; object-fit:cover; border-radius:6px; border:1px solid var(--line); display:inline-flex; align-items:center; justify-content:center; background:var(--brand-soft); color:var(--brand-dark); font-weight:700; font-size:1.4rem; }
.qm-photo-sm { width:44px; height:52px; margin-top:6px; }
.qm-photo-grid { display:grid; grid-template-columns:repeat(auto-fill,minmax(130px,1fr)); gap:10px; }
.qm-photo-cell { border:1px solid var(--line); border-radius:8px; padding:8px; text-align:center; display:flex; flex-direction:column; align-items:center; gap:2px; font-size:.82rem; }
.qm-stu-head { display:flex; gap:16px; align-items:flex-start; }
.qm-stu-head .qm-photo { width:90px; height:108px; }
.qm-dl { display:grid; grid-template-columns:max-content 1fr; gap:4px 14px; margin:0; }
.qm-dl dt { color:var(--muted); }
.qm-dl dd { margin:0; }
.qm-seat-grid { display:grid; grid-template-columns:repeat(3,1fr); gap:8px; }
.qm-seat { border:1.5px dashed #555; border-radius:8px; padding:10px; text-align:center; display:flex; flex-direction:column; gap:2px; }
.qm-seat strong { font-size:1.6rem; }
.qm-attend th, .qm-attend td { min-width:18px; font-size:.75rem; padding:3px!important; }
/* প্রিন্ট পাতা */
.qm-print-bar { display:flex; gap:8px; margin:0 0 12px; }
.qm-sheet { background:#fff; padding:18mm 16mm; border:1px solid var(--line); border-radius:8px; }
.qm-kv { width:100%; border-collapse:collapse; margin:6px 0 10px; font-size:.92rem; }
.qm-kv th, .qm-kv td { border:1px solid #cfd8d5; padding:6px 8px; text-align:left; }
[dir="rtl"] .qm-kv th, [dir="rtl"] .qm-kv td { text-align:right; }
.qm-kv th { width:30%; background:#f6f7f8; font-weight:600; }
.qm-kv-2 th { width:16%; }
.qm-form-top { display:flex; gap:14px; align-items:flex-start; }
.qm-form-top .qm-kv { flex:1; }
.qm-photo-lg { width:110px!important; height:132px!important; }
.qm-cert-meta { display:flex; justify-content:space-between; margin:10px 0 18px; }
.qm-cert-body { font-size:1.08rem; line-height:2; text-align:justify; min-height:120mm; }
.qm-idsheet { display:grid; grid-template-columns:repeat(2,86mm); gap:6mm; justify-content:center; }
.qm-idcard { width:86mm; height:54mm; border:1px solid #888; border-radius:3mm; overflow:hidden; display:flex; flex-direction:column; background:#fff; break-inside:avoid; font-size:8.5pt; }
.qm-idcard header { display:flex; align-items:center; gap:2mm; background:var(--brand); color:#fff; padding:1.5mm 2.5mm; }
.qm-idcard header img, .qm-logo-fallback { width:9mm; height:9mm; object-fit:contain; background:#fff; border-radius:50%; display:inline-flex; align-items:center; justify-content:center; color:var(--brand); font-weight:700; }
.qm-idcard header div { display:flex; flex-direction:column; line-height:1.15; }
.qm-idcard header strong { font-size:9pt; }
.qm-idcard header small { font-size:7.5pt; opacity:.9; }
.qm-idcard-body { display:flex; gap:2.5mm; padding:2mm 2.5mm; flex:1; }
.qm-idcard-body h3 { margin:0 0 1mm; font-size:10pt; }
.qm-idcard dl, .qm-admit dl { display:grid; grid-template-columns:max-content 1fr; gap:.4mm 2mm; margin:0; }
.qm-idcard dt, .qm-admit dt { color:#555; }
.qm-idcard dd, .qm-admit dd { margin:0; }
.qm-idphoto { width:18mm; height:22mm; object-fit:cover; border:1px solid #999; border-radius:1.5mm; flex:none; display:inline-flex; align-items:center; justify-content:center; background:#eef2f1; font-weight:700; }
.qm-idcard footer { display:flex; justify-content:space-between; padding:1mm 2.5mm; border-top:1px solid #ddd; font-size:7pt; }
.qm-sign { border-top:1px solid #555; padding-top:.3mm; }
.qm-bw .qm-idcard header { background:#fff; color:#000; border-bottom:1px solid #000; }
/* ---- নতুন খাড়া পরিচয়পত্র (নমুনা সফটওয়্যারের মতো) — রং: থিমের মেরুন ---- */
.qm-idsheet-v { display:grid; grid-template-columns:repeat(3,54mm); gap:5mm 6mm; justify-content:center; margin:0 auto 6mm; break-after:page; page-break-after:always; }
.qm-idsheet-v:last-child { break-after:auto; page-break-after:auto; }
.qm-idc { isolation:isolate; --c1:var(--brand,#870038); --c2:var(--brand-dark,#68002b); --c3:var(--brand-soft,#f8eaf0); width:54mm; height:86mm; position:relative; overflow:hidden; background:#fff; border:.3mm solid #c9c9c9; display:flex; flex-direction:column; align-items:center; break-inside:avoid; page-break-inside:avoid; font-size:6.6pt; line-height:1.25; color:#111; -webkit-print-color-adjust:exact; print-color-adjust:exact; }
.qm-idc-top { width:100%; min-height:14.5mm; padding:1.6mm 2mm 3.6mm; text-align:center; color:#fff; background:linear-gradient(135deg,var(--c1),var(--c2)); position:relative; display:flex; flex-direction:column; justify-content:center; gap:.4mm; border-bottom-left-radius:50% 3mm; border-bottom-right-radius:50% 3mm; }
.qm-idc-top::after { content:""; position:absolute; left:0; right:0; bottom:-1.3mm; height:2.6mm; background:var(--c3); border-bottom-left-radius:50% 2.6mm; border-bottom-right-radius:50% 2.6mm; z-index:-1; }
.qm-idc-top strong { font-size:8.6pt; font-weight:700; line-height:1.15; }
.qm-idc-top small { font-size:5.6pt; opacity:.95; line-height:1.2; display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; overflow:hidden; }
.qm-idc-photo { margin-top:2.2mm; }
.qm-idc-img { width:18mm; height:21mm; object-fit:cover; border:.5mm solid var(--c1); border-radius:1.2mm; display:inline-flex; align-items:center; justify-content:center; background:var(--c3); color:var(--c1); font-size:16pt; font-weight:700; }
.qm-idc-badge { margin-top:1.4mm; }
.qm-idc-badge span { display:inline-block; padding:.6mm 4.5mm; border-radius:3mm; background:var(--c1); color:#fff; font-weight:700; font-size:7.4pt; }
.qm-idc-id { margin-top:1.3mm; display:flex; align-items:center; gap:1mm; font-weight:700; font-size:7.6pt; }
.qm-idc-idk { color:#c0162b; }
.qm-idc-idv { color:#c0162b; background:var(--c3); padding:.2mm 2mm; border-radius:.8mm; letter-spacing:.2px; }
.qm-idc-info { width:100%; padding:1mm 2.4mm 0; display:flex; flex-direction:column; gap:.25mm; }
.qm-idc-row { display:grid; grid-template-columns:17mm 1.6mm 1fr; align-items:baseline; }
.qm-idc-k { text-align:right; color:#222; white-space:nowrap; }
.qm-idc-c { text-align:center; }
.qm-idc-v { font-weight:600; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.qm-idc-sign { margin-top:auto; margin-bottom:6.2mm; display:flex; flex-direction:column; align-items:center; min-height:9mm; justify-content:flex-end; }
.qm-idc-signimg { max-width:22mm; max-height:6.5mm; object-fit:contain; }
.qm-idc-sign span { border-top:.25mm solid #333; padding:0 3mm; margin-top:.3mm; color:var(--c1); font-weight:700; font-size:6.6pt; }
.qm-idc-bottom { position:absolute; left:0; right:0; bottom:0; height:4.2mm; display:flex; align-items:center; justify-content:center; color:#fff; font-size:5.8pt; font-weight:600; background:linear-gradient(90deg,var(--c2),var(--c1) 45%,var(--c2)); }
.qm-idc-bottom::before { content:""; position:absolute; left:0; right:0; top:-1.4mm; height:1.4mm; background:repeating-linear-gradient(90deg,var(--c1) 0 6mm,var(--c3) 6mm 12mm); opacity:.55; }
[dir="rtl"] .qm-idc-k { text-align:left; }
.qm-bw .qm-idc-top, .qm-bw .qm-idc-badge span, .qm-bw .qm-idc-bottom { background:#fff!important; color:#000; border:.3mm solid #000; }
.qm-bw .qm-idc-top::after, .qm-bw .qm-idc-bottom::before { display:none; }
.qm-bw .qm-idc-idk, .qm-bw .qm-idc-idv, .qm-bw .qm-idc-sign span { color:#000; background:none; }
.qm-bw .qm-idc-img { border-color:#000; }
@media print { .qm-idsheet-v { gap:4mm 5mm; margin:0 auto; } }
.qm-admit-sheet { display:grid; gap:6mm; }
.qm-admit-1 { grid-template-columns:1fr; max-width:148mm; margin:auto; }
.qm-admit-2 { grid-template-columns:1fr; }
.qm-admit-4 { grid-template-columns:1fr 1fr; }
.qm-admit-6 { grid-template-columns:1fr 1fr; }
.qm-admit { border:1.5px solid #555; border-radius:3mm; padding:4mm; background:#fff; break-inside:avoid; font-size:9.5pt; display:flex; flex-direction:column; }
.qm-admit-2 .qm-admit { min-height:128mm; }
.qm-admit-4 .qm-admit { min-height:128mm; }
.qm-admit-6 .qm-admit { min-height:84mm; font-size:8.5pt; }
.qm-admit .qm-rhead { padding-bottom:2mm; margin-bottom:3mm; }
.qm-admit .qm-rhead strong { font-size:11pt; }
.qm-admit-body { display:flex; justify-content:space-between; gap:3mm; }
.qm-admit .qm-signs { margin-top:auto; padding-top:10mm; }
.qm-mini { font-size:8pt; margin-top:3mm; }
.qm-mini td, .qm-mini th { padding:2px 4px!important; }
.qm-press .qm-admit { border-color:transparent; padding-top:30mm; }
.qm-bw .qm-rhead { border-color:#000; }
.qm-ms-sheet { display:grid; gap:8mm; }
.qm-ms-a5 { grid-template-columns:1fr 1fr; }
.qm-marksheet { background:#fff; border:1.5px solid #555; border-radius:3mm; padding:6mm; break-inside:avoid; page-break-after:always; }
.qm-ms-a5 .qm-marksheet { page-break-after:auto; font-size:9pt; padding:4mm; }
.qm-ms-press .qm-marksheet { border-color:transparent; }
.qm-press-gap { height:38mm; }
.qm-receipt-sheet { display:grid; gap:10mm; }
.qm-receipt { background:#fff; border:1.5px solid #555; border-radius:3mm; padding:5mm 6mm; break-inside:avoid; font-size:9.5pt; }
.qm-receipt + .qm-receipt { border-top-style:dashed; }
/* পাবলিক পাতা */
.qm-public { max-width:880px; margin:20px auto!important; padding:0 14px; }
.qm-public-head { display:flex; flex-direction:column; align-items:center; gap:4px; padding:22px; border-radius:16px; background:var(--brand); color:#fff; text-align:center; }
.qm-public-head strong { font-size:1.4rem; }
.qm-success h2 { color:#1b6b34; }
.qm-result-card h2 { margin-bottom:2px; }
@media print {
  .qm-tabs, .qm-report-list, .qm-filter, .qm-print-bar, .qm-subtabs { display:none!important; }
  .qm-report-layout { display:block; }
  .qm-sheet { border:0; padding:0; }
  .qm-report { box-shadow:none!important; border:0!important; padding:0!important; }
  .qm-idsheet { gap:4mm; }
  .qm-admit-sheet, .qm-ms-sheet { gap:5mm; }
  .qm-marks input { border:0; }
}

/* ডেটা আমদানি */
.qmi-types { display:grid; grid-template-columns:repeat(auto-fit,minmax(220px,1fr)); gap:10px; margin:6px 0 14px; }
.qmi-type { display:flex; align-items:center; gap:10px; padding:14px; border:1.5px solid var(--line); border-radius:12px; cursor:pointer; background:#fff; }
.qmi-type input { width:auto; min-height:0; }
.qmi-type span { font-size:1.4rem; }
.qmi-type:has(input:checked) { border-color:var(--brand); background:var(--brand-soft); }

/* ---- মিশ্র সিট প্ল্যান ---- */
.qm-seat-cls td, .qm-seat-cls th, .qm-seat-rooms td, .qm-seat-rooms th { vertical-align:middle; }
.qm-seat-cls input[type=number], .qm-seat-rooms input { margin:0; }
.qm-seat-sw { display:inline-block; width:26px; height:16px; border-radius:4px; border:1px solid #bbb; vertical-align:middle; }
.qm-seat-help { margin:10px 0 4px; background:var(--brand-soft); border-radius:10px; padding:10px 14px; font-size:.88rem; }
.qm-seat-help summary { cursor:pointer; font-weight:700; color:var(--brand-dark); }
.qm-seat-help ol { margin:8px 0 0; padding-left:20px; line-height:1.6; }
.qm-seat-stats { display:flex; flex-wrap:wrap; gap:6px; margin:6px 0 10px; }
.qm-seat-legend { display:flex; flex-wrap:wrap; gap:6px 14px; margin:10px 0; font-size:.84rem; }
.qm-seat-legend span { display:inline-flex; align-items:center; gap:5px; }
.qm-seat-legend i { display:inline-block; width:16px; height:12px; border-radius:3px; border:1px solid #bbb; }
.qm-seat-room { margin:16px 0 6px; }
.qm-seat-room h3 { margin:0 0 6px; font-size:1rem; color:var(--brand-dark); }
.qm-seat-room h3 small { color:var(--muted); font-weight:500; }
.qm-seat-front { text-align:center; font-weight:700; font-size:.82rem; letter-spacing:.5px; color:#fff; background:var(--brand); border-radius:6px 6px 0 0; padding:4px; -webkit-print-color-adjust:exact; print-color-adjust:exact; }
table.qm-seatmap { border-collapse:separate!important; border-spacing:3px; width:auto!important; min-width:0!important; }
.qm-seatmap th { font-size:.72rem; color:var(--muted); font-weight:600; padding:2px 4px!important; background:none!important; border:0!important; white-space:nowrap; }
.qm-seatmap td { min-width:82px; max-width:110px; padding:3px 4px!important; border:1px solid #c9c9c9!important; border-radius:5px; text-align:center; vertical-align:top; line-height:1.15; font-size:.72rem; -webkit-print-color-adjust:exact; print-color-adjust:exact; }
.qm-seatmap td b { display:block; font-size:.92rem; color:#111; }
.qm-seatmap td span { display:block; font-weight:600; }
.qm-seatmap td small { display:block; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.qm-seatmap td em { display:block; font-style:normal; color:#555; font-size:.66rem; }
.qm-seatmap td.qm-seat-empty { background:repeating-linear-gradient(45deg,#fafafa 0 6px,#f0f0f0 6px 12px); color:#aaa; vertical-align:middle; }
.qm-seat-page { break-after:page; page-break-after:always; background:#fff; padding:4mm; margin-bottom:8mm; }
.qm-seat-page:last-of-type { break-after:auto; page-break-after:auto; }
.qm-seatmap-print { width:100%!important; table-layout:fixed; }
.qm-seatmap-print td { max-width:none; min-width:0; font-size:7.5pt; }
.qm-seatmap-print td b { font-size:10pt; }
.qm-seatmap-print th { width:13mm; }
.qm-bw .qm-seat-front { background:#fff; color:#000; border:1px solid #000; }
.qm-seat-att td, .qm-seat-att th { padding:5px 6px!important; }
.qm-seat-door-big { text-align:center; font-size:1.35rem; margin:10px 0 14px; padding:10px; border:2px solid var(--brand); border-radius:10px; }
.qm-seat-stickers { display:grid; grid-template-columns:repeat(3,1fr); gap:3mm; }
.qm-seat-stk { border:1.5px dashed #555; border-radius:3mm; padding:2.5mm; text-align:center; display:flex; flex-direction:column; gap:.6mm; break-inside:avoid; page-break-inside:avoid; height:33mm; justify-content:center; font-size:8.5pt; }
.qm-seat-stk strong { font-size:20pt; line-height:1.05; color:var(--brand-dark); }
.qm-seat-stk span { font-weight:700; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.qm-seat-stk em { font-style:normal; color:#444; }
@media print { .qm-seat-page { padding:0; margin:0; } .qm-seat-help, #qm-seatplan-form { display:none!important; } }
.qm-seat-cls input[type=checkbox] { width:18px; height:18px; }
.qm-seat-page .qm-seat-legend { font-size:7.5pt; margin:4px 0; gap:2px 10px; }
.qm-seat-page .qm-signs { margin-top:26px; }
.qm-seat-page .qm-rhead { margin-bottom:6px; padding-bottom:5px; }
.qm-seatmap-print { border-spacing:2px!important; }
.qm-seatmap-print td { padding:2px 3px!important; font-size:7pt; }
/* সিট নকশা প্রিন্ট — পাতার প্রস্থে পুরোপুরি ধরবে */
.qm-seatmap-print { width:100%!important; max-width:100%!important; table-layout:fixed; border-spacing:1.5px!important; }
.qm-seatmap-print td b, .qm-seatmap-print td span, .qm-seatmap-print td small, .qm-seatmap-print td em { line-height:1.12; }
.qm-seatmap-print td { min-width:0!important; max-width:0!important; overflow:hidden; padding:1.5px 2px!important; font-size:inherit!important; }
.qm-seatmap-print td b, .qm-seatmap-print td small, .qm-seatmap-print td em, .qm-seatmap-print td span { display:block; max-width:100%; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.qm-seatmap-print td em { font-size:.9em; }
.qm-seatmap-print thead th.qm-seat-front { border-radius:4px; padding:3px!important; color:#fff!important; background:var(--brand)!important; font-size:8pt; }
.qm-seatmap-print .qm-sm-colno th { font-size:6.5pt; color:#777; padding:0!important; text-align:center; }
.qm-seatmap-print th.qm-sm-rh { font-size:6.5pt; text-align:right; white-space:nowrap; }
.qm-seatmap-print thead { display:table-header-group; }
.qm-seatmap-print tr { break-inside:avoid; page-break-inside:avoid; }
.qm-bw .qm-seatmap-print thead th.qm-seat-front { background:#fff!important; color:#000!important; border:1px solid #000!important; }
.qm-seat-printopts { display:flex; flex-wrap:wrap; align-items:center; gap:6px; }
.qm-seat-printopts span { font-weight:700; margin-left:6px; }
.qm-seat-printopts .button { padding:5px 11px; font-size:.82rem; }
.qm-seat-printopts small { color:var(--muted); margin-left:6px; }
/* টেবিল ভিত্তিক সিট নকশা */
.qm-tbl-map th.qm-sm-rh { white-space:nowrap; text-align:right; font-size:.72rem; color:#444; }
.qm-tbl-map td.qm-tb-start, .qm-tbl-map th.qm-tb-start { border-left:3px solid #555!important; }
.qm-tbl-map .qm-sm-colno th { font-size:.66rem; color:#777; font-weight:600; text-align:center; }
.qm-tbl-map thead th.qm-seat-front { background:var(--brand)!important; color:#fff!important; border-radius:6px; text-align:center; padding:4px!important; -webkit-print-color-adjust:exact; print-color-adjust:exact; }
.qm-tbl-map td.qm-seat-none { background:none!important; border:0!important; }
.qm-tbl-map .qm-c1 b, .qm-tbl-map .qm-c1 span { display:inline!important; }
.qm-tbl-map .qm-c1 span { margin-left:4px; font-weight:600; }
.qm-tbl-map .qm-c2 small, .qm-tbl-map .qm-c2 em { display:inline!important; }
.qm-tbl-map .qm-c1, .qm-tbl-map .qm-c2 { white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.qm-ok-text { color:#1b6b34; font-weight:600; }
.qm-bad-text { color:#a32a1f; font-weight:700; }
.qm-seat-presets { align-items:center; }
.qm-seat-presets span { font-weight:600; }
.qm-ex-wrap { display:flex; flex-wrap:wrap; gap:18px; margin:6px 0 4px; }
.qm-ex { border:1px dashed #bbb; border-radius:8px; padding:8px 10px; font-size:.82rem; }
.qm-ex strong { display:block; margin-bottom:4px; color:var(--brand-dark); }
.qm-ex-row { display:flex; align-items:center; gap:4px; margin:2px 0; }
.qm-ex-row span { width:62px; color:#555; font-size:.76rem; }
.qm-ex-row i { font-style:normal; width:26px; height:22px; display:inline-flex; align-items:center; justify-content:center; border-radius:4px; font-weight:700; border:1px solid #bbb; }
.qm-ex-0 { background:#ffe3e3; } .qm-ex-1 { background:#e3f2ff; } .qm-ex-2 { background:#e6f7e6; } .qm-ex-3 { background:#fff3cd; } .qm-ex-4 { background:#efe3ff; }
.qm-ex-5 { background:#ffe8d6; } .qm-ex-6 { background:#dff7f5; }
/* সারি-ভিত্তিক (নমুনা কাগজের মতো) নকশা */
.qm-col-map .qm-line-head th { text-align:center; font-weight:700; font-size:.8rem; color:var(--brand-dark); background:var(--brand-soft)!important; border-radius:4px; padding:3px!important; -webkit-print-color-adjust:exact; print-color-adjust:exact; }
.qm-col-map tr.qm-walk td { text-align:center; font-weight:700; letter-spacing:1px; background:#f1f1f1!important; border:1px solid #999!important; padding:4px!important; color:#333; max-width:none!important; }
.qm-col-map th.qm-seat-back { text-align:center; font-weight:700; color:#fff!important; background:var(--brand)!important; border-radius:6px; padding:3px!important; -webkit-print-color-adjust:exact; print-color-adjust:exact; }
.qm-col-map th.qm-sm-rh { font-size:.66rem; color:#888; text-align:center; }
.qm-bw .qm-col-map th.qm-seat-back, .qm-bw .qm-col-map .qm-line-head th { background:#fff!important; color:#000!important; border:1px solid #000!important; }
table.qm-ex-t { border-collapse:separate; border-spacing:2px; width:auto!important; min-width:0!important; }
.qm-ex-t th { font-size:.72rem; color:#555; padding:1px 4px!important; background:none!important; border:0!important; font-weight:600; white-space:nowrap; }
.qm-ex-t td { width:30px; height:26px; text-align:center; font-weight:700; border:1px solid #bbb!important; border-radius:4px; padding:0!important; position:relative; font-size:.85rem; }
.qm-ex-t td sup { position:absolute; top:1px; right:2px; font-size:.55rem; color:#666; font-weight:500; }
.qm-ex-t td.qm-tb-start { border-left:3px solid #555!important; }
/* শিথিল নিয়মে বসানো সিট */
.qm-tbl-map td.qm-relaxed { outline:2px dashed #c0162b; outline-offset:-3px; }
.qm-tbl-map td.qm-relaxed b::after { content:" ⚠"; color:#c0162b; font-size:.8em; }
.qm-relax-box { align-items:flex-start; background:#fff4d6; color:#5a3d00; font-weight:500; line-height:1.6; }
.qm-relax-box small { color:#7a5300; }
/* এক কাগজে ৬টি প্রবেশপত্রেও ছবি (একটু ছোট) */
.qm-admit-6 .qm-idphoto { width:15mm; height:18mm; font-size:9pt; }
.qm-admit-6 .qm-admit-body { align-items:flex-start; }

/* প্রবেশপত্র: প্রতি কাগজে ঠিক ১/২/৪/৬টি — পাতা নির্দিষ্ট মাপে ভাগ করা (A4: ২৯৭ − ১৬ মিমি মার্জিন) */
.qm-admit-page { height:279mm; box-sizing:border-box; gap:4mm!important; align-content:stretch; break-after:page; page-break-after:always; margin:0 auto 8mm; }
.qm-admit-page:last-child { break-after:auto; page-break-after:auto; }
.qm-admit-page.qm-admit-1 { grid-template-rows:139mm; }
.qm-admit-page.qm-admit-2 { grid-template-rows:repeat(2,1fr); }
.qm-admit-page.qm-admit-4 { grid-template-rows:repeat(2,1fr); }
.qm-admit-page.qm-admit-6 { grid-template-rows:repeat(3,1fr); }
.qm-admit-page .qm-admit { min-height:0!important; height:100%; box-sizing:border-box; overflow:hidden; }
/* কার্ডের ভেতরের হেডার ছোট করে — যাতে নির্দিষ্ট মাপে ধরে */
.qm-admit .qm-rhead { gap:8px; padding-bottom:1.5mm; margin-bottom:2mm; }
.qm-admit .qm-rhead img.qm-rhead-logo { width:13mm; height:13mm; }
.qm-admit .qm-rhead-addr { font-size:7.5pt; line-height:1.2; }
.qm-admit .qm-rhead-title { font-size:8.5pt; padding:1px 10px; margin:2px 0 1px; }
.qm-admit .qm-rhead small { font-size:7.5pt; }
.qm-admit-6 .qm-admit { padding:3mm; font-size:8pt; }
.qm-admit-6 .qm-rhead strong { font-size:10pt; }
.qm-admit-6 .qm-rhead img.qm-rhead-logo { width:11mm; height:11mm; }
.qm-admit-6 .qm-rhead-addr { font-size:6.8pt; }
.qm-admit-6 .qm-signs { padding-top:6mm; }
.qm-admit-6 .qm-signs span { font-size:7.5pt; min-width:28mm; }
@media print { .qm-admit-page { margin:0 auto; } .qm-admit-sheet.qm-admit-page { gap:4mm!important; } }

/* রাসিব/ফেলের নম্বর ও বিভাগের ঘর — পর্দা ও প্রিন্টে আলাদা রঙের ঘর (২০২৬-১১-০১) */
td.qm-fail-cell,.qm-mark.qm-fail{background:#dcc8ca!important;-webkit-print-color-adjust:exact;print-color-adjust:exact}

/* প্রবেশপত্রের নিয়মাবলি — কার্ডের খালি জায়গায় বা অপর পিঠে (২০২৬-১১-০১) */
.qm-admit-rules{line-height:1.35;color:#111;text-align:start}
.qm-admit-rules .qm-ar-title{display:block;text-align:center;margin-bottom:1.2mm;font-size:1.08em}
.qm-admit-rules ol{list-style:none;margin:0;padding:0}
.qm-admit-rules li{display:flex;gap:1.2mm;margin:0 0 .5mm}
.qm-admit-rules .qm-ar-n{flex:0 0 auto;min-width:4mm}
.qm-admit-rules p{margin:.8mm 0 0}
.qm-ar-card{margin-top:2mm;padding-top:1.6mm;border-top:1px dashed #888;font-size:6.9pt;line-height:1.28;overflow:hidden;flex-shrink:0}
.qm-admit:has(.qm-ar-card) .qm-signs{padding-top:6mm}
.qm-admit-6 .qm-admit:has(.qm-ar-card) .qm-signs{padding-top:3mm}
.qm-admit-2 .qm-ar-card,.qm-admit-1 .qm-ar-card{font-size:8.4pt;line-height:1.35}
.qm-admit-6 .qm-ar-card{font-size:5.3pt;line-height:1.18;margin-top:1mm;padding-top:.8mm}
.qm-admit-6 .qm-ar-card .qm-ar-title{margin-bottom:.4mm}.qm-admit-6 .qm-ar-card li{margin:0}
.qm-admit-back{justify-content:center}
.qm-ar-back{font-size:9pt;line-height:1.5}
.qm-admit-2 .qm-ar-back,.qm-admit-1 .qm-ar-back{font-size:10.5pt}
.qm-admit-6 .qm-ar-back{font-size:7.3pt;line-height:1.35}
.qm-admit-back .qm-ar-title{font-size:1.15em;margin-bottom:2.5mm}

/* প্রবেশপত্রের নতুন তিন নকশা (২০২৬-১১-০১) — রঙ থিমের, সাদা-কালোতেও চলে */
.qm-admit .qm-tpl-logo{width:12mm;height:12mm;object-fit:contain;flex:0 0 auto}
/* ১. রঙিন ব্যানার */
.qm-tpl-banner{padding:0!important;overflow:hidden;border-color:var(--brand,#85003b)!important}
.qm-tb-band{display:flex;align-items:center;gap:3mm;padding:2.2mm 4mm;background:var(--brand,#85003b);color:#fff;-webkit-print-color-adjust:exact;print-color-adjust:exact}
.qm-tb-band .qm-tpl-logo{background:#fff;border-radius:50%;padding:1mm}
.qm-tb-band div{display:flex;flex-direction:column;line-height:1.25}.qm-tb-band strong{font-size:12.5pt}.qm-tb-band small{font-size:7.5pt;opacity:.9}
.qm-tb-title{display:flex;justify-content:space-between;align-items:baseline;gap:3mm;padding:1.4mm 4mm;border-bottom:2px solid var(--gold,#c9a227)}
.qm-tb-title b{font-size:12pt;color:var(--brand,#85003b);letter-spacing:.3px}.qm-tb-title small{font-size:8.5pt;color:#333}
.qm-tb-main{display:flex;gap:3mm;padding:2mm 4mm 0;align-items:flex-start}
.qm-tb-fields{flex:1;display:grid;grid-template-columns:1fr 1fr;gap:1.2mm}
.qm-tb-box{border:1px solid #cfc3c6;border-radius:1.6mm;padding:.6mm 2mm;display:flex;flex-direction:column;line-height:1.25;min-width:0}
.qm-tb-box i{font-style:normal;font-size:7pt;color:#666}.qm-tb-box b,.qm-tb-box span{font-size:9.5pt}
.qm-tb-big b{font-size:12.5pt;color:var(--brand,#85003b)}
.qm-tb-wide{grid-column:1/-1}
.qm-tpl-banner .qm-admit-rules,.qm-tpl-banner .qm-signs{margin-left:4mm;margin-right:4mm}
.qm-tpl-banner .qm-signs{margin-bottom:2.5mm;padding-top:4mm!important}
/* ২. মিহরাব-ফ্রেম */
.qm-tpl-mihrab{border:1.2mm double var(--brand,#85003b)!important;border-radius:2mm!important;padding-top:2.5mm!important}
.qm-tpl-mihrab .qm-signs{padding-top:4mm!important}
.qm-tm-arch{position:relative;display:flex;flex-direction:column;align-items:center;text-align:center;gap:.2mm;padding:2.2mm 6mm 1.6mm;margin:0 6mm;border:1px solid var(--gold,#c9a227);border-bottom:none;border-radius:50% 50% 0 0 / 22mm 22mm 0 0;background:linear-gradient(#fbf6ea,#fff);-webkit-print-color-adjust:exact;print-color-adjust:exact}
.qm-tm-arch strong{font-size:12pt;color:var(--brand,#85003b)}.qm-tm-arch small{font-size:7.5pt;color:#444}.qm-tm-arch em{font-style:normal;font-size:8.5pt}
.qm-tm-title{display:inline-block;margin-top:1mm;padding:.6mm 6mm;border-top:1px solid var(--gold,#c9a227);border-bottom:1px solid var(--gold,#c9a227);font-size:11pt;letter-spacing:.5px}
.qm-tm-main{display:flex;gap:3mm;align-items:flex-start;margin-top:0;padding-top:1.6mm;border-top:1px solid var(--gold,#c9a227)}
.qm-tm-main dl{flex:1;display:grid;grid-template-columns:max-content 1fr;gap:1mm 2.5mm;margin:0}
.qm-tm-main dt{color:#555}.qm-tm-main dd{margin:0;border-bottom:1px dotted #999;padding-bottom:.4mm}
.qm-tm-photo .qm-idphoto{border:1px solid var(--gold,#c9a227);padding:.6mm;background:#fff}
/* ৩. সারণি (বোর্ডের প্রবেশপত্রের মতো) */
.qm-tt-head{display:flex;align-items:center;justify-content:center;gap:3mm;text-align:center}
.qm-tt-head div{display:flex;flex-direction:column;line-height:1.25}.qm-tt-head strong{font-size:12.5pt}.qm-tt-head small{font-size:7.5pt}.qm-tt-head em{font-style:normal;font-size:8.5pt}
.qm-tt-bar{margin:2mm 0;padding:1mm;text-align:center;font-weight:700;font-size:11pt;letter-spacing:.5px;background:#222;color:#fff;-webkit-print-color-adjust:exact;print-color-adjust:exact}
table.qm-tt-grid{width:100%;border-collapse:collapse;table-layout:fixed;font-size:9pt}
.qm-tt-grid th,.qm-tt-grid td{border:1px solid #333!important;padding:1.2mm 1.6mm;text-align:start;vertical-align:middle;background:#fff!important;color:#111!important}
.qm-tt-grid th{width:16mm;font-weight:400;color:#444!important;background:#f3f3f3!important;-webkit-print-color-adjust:exact;print-color-adjust:exact}
.qm-tt-grid td.qm-tt-num{font-size:11pt;font-weight:700;text-align:center}
.qm-tt-grid td.qm-tt-photo{width:24mm;text-align:center;padding:1mm}
.qm-tt-grid .qm-idphoto{margin:auto}
/* সাদা-কালো ও প্রেসের কাগজ */
.qm-bw .qm-tb-band{background:#fff;color:#000;border-bottom:1.5px solid #000}.qm-bw .qm-tb-band .qm-tpl-logo{background:none}
.qm-bw .qm-tpl-banner,.qm-bw .qm-tpl-mihrab{border-color:#000!important}.qm-bw .qm-tb-title b,.qm-bw .qm-tb-big b,.qm-bw .qm-tm-arch strong{color:#000}
.qm-bw .qm-tm-arch{background:#fff;border-color:#000}.qm-bw .qm-tm-title,.qm-bw .qm-tm-main,.qm-bw .qm-tb-title{border-color:#000}
.qm-bw .qm-tt-bar{background:#fff;color:#000;border:1.5px solid #000}
.qm-press .qm-tb-band,.qm-press .qm-tm-arch,.qm-press .qm-tt-head{visibility:hidden}
/* ৬টির ছোট কার্ডে একটু ছোট */
.qm-admit-6 .qm-tb-band{padding:1.6mm 3mm}.qm-admit-6 .qm-tb-band strong,.qm-admit-6 .qm-tm-arch strong,.qm-admit-6 .qm-tt-head strong{font-size:10pt}
.qm-admit-6 .qm-tb-title{padding:1mm 3mm}.qm-admit-6 .qm-tb-main{padding:1.6mm 3mm 0}.qm-admit-6 .qm-tb-box b,.qm-admit-6 .qm-tb-box span{font-size:7.6pt}.qm-admit-6 .qm-tb-box i{font-size:6pt}.qm-admit-6 .qm-tb-box{padding:.2mm 1.6mm}.qm-admit-6 .qm-tb-fields{gap:.8mm}.qm-admit-6 .qm-tb-band small,.qm-admit-6 .qm-tm-arch small,.qm-admit-6 .qm-tt-head small{display:none}.qm-admit-6 .qm-tpl-banner .qm-signs,.qm-admit-6 .qm-tpl-mihrab .qm-signs{padding-top:2mm!important}.qm-admit-6 .qm-tb-big b{font-size:10pt}
.qm-admit-6 .qm-tm-arch{padding:1.6mm 4mm 1.2mm;border-radius:50% 50% 0 0 / 14mm 14mm 0 0}.qm-admit-6 .qm-tm-main{margin-top:1.5mm;padding-top:1mm}
.qm-admit-6 .qm-tt-grid{font-size:7.8pt}.qm-admit-6 .qm-tt-grid th,.qm-admit-6 .qm-tt-grid td{padding:.6mm 1.2mm}.qm-admit-6 .qm-tt-bar{margin:1mm 0;padding:.4mm;font-size:9pt}
.qm-admit-6 .qm-tpl-logo{width:9mm;height:9mm}
.qm-admit-6 .qm-tpl-mihrab{padding:1.6mm 3mm 2mm!important;font-size:8pt}
.qm-admit-6 .qm-tm-arch{padding:1mm 4mm .8mm;gap:0}.qm-admit-6 .qm-tm-title{font-size:9pt;margin-top:.4mm;padding:.2mm 5mm}.qm-admit-6 .qm-tm-arch em{font-size:7.5pt}
.qm-admit-6 .qm-tm-main dl{gap:.3mm 2mm}.qm-admit-6 .qm-tm-main{padding-top:.8mm}
.qm-admit-6 .qm-tpl-table{padding:2mm 3mm!important}.qm-admit-6 .qm-tt-head em{font-size:7.5pt}.qm-admit-6 .qm-tt-grid th,.qm-admit-6 .qm-tt-grid td{padding:.3mm 1mm}.qm-admit-6 .qm-tt-grid td.qm-tt-num{font-size:9pt}
.qm-admit-6 .qm-tpl-mihrab .qm-signs,.qm-admit-6 .qm-tpl-table .qm-signs{padding-top:2mm!important}
.qm-admit-page{width:194mm;max-width:none}
@media print{.qm-admit-page{width:194mm}}

/* ===== পরিচয়পত্রের নতুন নকশা (২০২৬-১১-০১) — সব রং থিমের (--c1/--c2/--c3), সোনালি রেখা --gold ===== */
.qm-idsheet-h{grid-template-columns:repeat(2,86mm)!important;gap:4mm 6mm!important}
.qm-idh{width:86mm!important;height:54mm!important;align-items:stretch!important}
.qm-idx-logo{width:8mm;height:8mm;object-fit:contain;background:#fff;border-radius:50%;padding:.4mm;flex:0 0 auto}
.qm-idx-hname{display:flex;flex-direction:column;line-height:1.15;min-width:0}
.qm-idx-hname strong{font-size:8.2pt}.qm-idx-hname small{font-size:5.4pt;opacity:.95;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.qm-idx-top{width:100%;display:flex;align-items:center;justify-content:center;gap:1.6mm;padding:1.6mm 2mm;text-align:center;color:#fff;background:linear-gradient(135deg,var(--c1),var(--c2))}
.qm-idx-title{font-weight:700;font-size:7.4pt;color:var(--c1);letter-spacing:.3px}
.qm-idx-code{font-size:7.2pt;color:#222}.qm-idx-code b{color:#c0162b;font-size:8pt}
.qm-idx-name{font-weight:700;font-size:8.4pt;color:var(--c1);line-height:1.2}
.qm-idx-foot{position:absolute;left:0;right:0;bottom:0;min-height:4.2mm;display:flex;align-items:center;justify-content:center;gap:2mm;padding:0 2mm;color:#fff;font-size:5.8pt;font-weight:600;background:var(--c1)}
.qm-idx-foot small{font-weight:400;opacity:.95}
.qm-idc .qm-idc-info{padding:1mm 2.4mm 0}
/* খাড়া ২: মিহরাব খিলান */
.qm-idx-arch{border-color:var(--c1)!important}
.qm-idx-arch .qm-idx-top{padding-bottom:7mm}
.qm-idx-archwin{margin-top:-6mm;padding:1.2mm 1.2mm 0;background:#fff;border:.5mm solid var(--gold,#c9a227);border-bottom:none;border-radius:50% 50% 0 0 / 9mm 9mm 0 0}
.qm-idx-archwin .qm-idc-img{border-radius:40% 40% 1mm 1mm / 7mm 7mm 1mm 1mm;border-color:var(--c1)}
.qm-idx-arch .qm-idx-title{margin-top:1mm;padding:0 4mm;border-top:.3mm solid var(--gold,#c9a227);border-bottom:.3mm solid var(--gold,#c9a227)}
.qm-idx-arch .qm-idx-code{margin-top:.8mm}
/* খাড়া ৩: তরঙ্গ */
.qm-idx-wave .qm-idx-top{padding-bottom:6mm;clip-path:ellipse(85% 100% at 50% 0)}
.qm-idx-wave .qm-idx-photo{margin-top:-5mm}.qm-idx-wave .qm-idc-img{border-radius:50%;width:19mm;height:19mm;border:.8mm solid #fff;box-shadow:0 0 0 .4mm var(--c1)}
.qm-idx-wave .qm-idx-name{margin-top:1mm;text-align:center;padding:0 2mm}
.qm-idx-wave .qm-idx-foot{min-height:7mm;flex-direction:column;gap:0;clip-path:ellipse(90% 100% at 50% 100%)}
.qm-idx-wave .qm-idc-sign{margin-bottom:8mm}
/* খাড়া ৪: সরল */
.qm-idx-plain{border:.4mm solid #333!important}
.qm-idx-plain .qm-idx-top{background:#fff;color:#111;border-bottom:.5mm double var(--c1)}
.qm-idx-plain .qm-idx-logo{background:none}
.qm-idx-plain .qm-idx-title{margin-top:1mm;color:#111;border:.3mm solid #333;padding:.2mm 4mm}
.qm-idx-plain .qm-idx-photo{margin-top:1.4mm}.qm-idx-plain .qm-idc-img{border-color:#333;background:#f4f4f4;color:#333}
.qm-idx-plain .qm-idx-code b{color:#111}
.qm-idx-plain .qm-idx-foot{background:#fff;color:#111;border-top:.3mm solid #333}
/* আড়াআড়ি ৫: দুই রঙের ব্যান্ড (নমুনার মতো) */
.qm-idx-band .qm-idx-top{justify-content:flex-start;text-align:start;border-bottom:1mm solid var(--gold,#e0b11b);padding:1.4mm 2.4mm}
.qm-idh-body{display:flex;gap:2.4mm;padding:1.6mm 2.4mm 5mm;flex:1;min-height:0}
.qm-idh-left{display:flex;flex-direction:column;align-items:center;gap:.8mm;flex:0 0 auto}
.qm-idh-right{flex:1;min-width:0;display:flex;flex-direction:column}
.qm-idx-band .qm-idc-img{width:19mm;height:19mm;border-radius:50%;border:.7mm solid var(--gold,#e0b11b)}
.qm-idx-band .qm-idx-code b{color:var(--c1)}
.qm-idh .qm-idc-info{padding:.6mm 0 0}
.qm-idh .qm-idc-row{grid-template-columns:15mm 1.6mm 1fr}
.qm-idx-band .qm-idx-foot{justify-content:space-between;background:linear-gradient(90deg,var(--c1),var(--c2))}
/* আড়াআড়ি ৬: পাশের পট্টি */
.qm-idx-side{flex-direction:row!important}
.qm-idx-aside{width:26mm;flex:0 0 26mm;display:flex;flex-direction:column;align-items:center;gap:1.2mm;padding:2mm 1.4mm;color:#fff;background:linear-gradient(180deg,var(--c1),var(--c2))}
.qm-idx-aside .qm-idc-img{border-color:#fff;width:19mm;height:22mm}
.qm-idx-aside .qm-idx-code{color:#fff;display:flex;flex-direction:column;align-items:center;font-size:6pt}.qm-idx-aside .qm-idx-code b{color:#fff;font-size:9pt}
.qm-idx-main{flex:1;min-width:0;display:flex;flex-direction:column;padding:1.6mm 2.2mm}
.qm-idx-main .qm-idx-hname{color:var(--c1);text-align:center}.qm-idx-main .qm-idx-hname small{color:#444}
.qm-idx-main .qm-idx-title{text-align:center;margin:.6mm 0;border-bottom:.3mm solid var(--gold,#c9a227)}
.qm-idx-main .qm-idc-info{padding:0}
.qm-idx-row2{margin-top:auto;display:flex;justify-content:space-between;align-items:flex-end;gap:2mm;font-size:5.6pt}
.qm-idx-row2 .qm-idc-sign{margin:0;min-height:0}
/* আড়াআড়ি ৭: বড় আইডি */
.qm-idx-badge .qm-idx-top{justify-content:flex-start;text-align:start;padding:1.4mm 2.4mm}
.qm-idx-tag{margin-inline-start:auto;background:#fff;color:var(--c1);font-weight:700;font-size:6.4pt;padding:.3mm 2mm;border-radius:2mm;white-space:nowrap}
.qm-idx-bigid{display:flex;align-items:baseline;gap:1.4mm;margin:.4mm 0}.qm-idx-bigid i{font-style:normal;font-size:6pt;color:#555}.qm-idx-bigid b{font-size:12pt;color:#c0162b;letter-spacing:.4px}
.qm-idx-badge .qm-idc-img{width:18mm;height:21mm}
.qm-idx-badge .qm-idc-sign{margin:0;min-height:0}
.qm-idx-badge .qm-idx-foot{background:var(--c2)}
/* সাদা-কালো */
.qm-bw .qm-idx-top,.qm-bw .qm-idx-foot,.qm-bw .qm-idx-aside{background:#fff!important;color:#000!important;border:.3mm solid #000}
.qm-bw .qm-idx-title,.qm-bw .qm-idx-name,.qm-bw .qm-idx-code b,.qm-bw .qm-idx-bigid b,.qm-bw .qm-idx-aside .qm-idx-code,.qm-bw .qm-idx-aside .qm-idx-code b,.qm-bw .qm-idx-main .qm-idx-hname{color:#000!important}
.qm-bw .qm-idx-tag{border:.3mm solid #000;color:#000}
.qm-bw .qm-idx-wave .qm-idx-top,.qm-bw .qm-idx-wave .qm-idx-foot{clip-path:none}
.qm-idh .qm-idc-info{font-size:7pt}.qm-idh .qm-idx-name{font-size:9.4pt}
.qm-idx-band .qm-idc-sign{margin:auto 0 0;align-self:flex-end;min-height:0}
.qm-idx-band .qm-idx-code{font-size:6pt}

/* ===== প্রবেশপত্র: বড় রঙিন নকশা (নমুনার মতো, A4-এ ২টি) ===== */
.qm-tpl-grand{--g1:var(--brand,#1d4e89);--g2:var(--brand-dark,#163a66);--g3:var(--brand-soft,#eef3fa);--gd:var(--gold,#c9a227);padding:0!important;overflow:hidden;border:.6mm solid var(--g1)!important;border-radius:3mm!important;font-size:9pt;background:linear-gradient(180deg,var(--g3) 0,#fff 34mm)!important;-webkit-print-color-adjust:exact;print-color-adjust:exact}
.qm-tg-head{display:grid;grid-template-columns:20mm 1fr 34mm;align-items:center;gap:3mm;padding:2.6mm 4mm 1mm}
.qm-tg-logo .qm-tpl-logo{width:18mm;height:18mm}
.qm-tg-hmid{text-align:center;display:flex;flex-direction:column;line-height:1.2}
.qm-tg-hmid strong{font-size:17pt;color:var(--g1);letter-spacing:.2px}.qm-tg-hmid small{font-size:9.5pt;color:#222}
.qm-tg-hside{display:flex;flex-direction:column;align-items:flex-end;gap:1mm}
.qm-tg-bism{font-family:"Amiri","Scheherazade New","Noto Naskh Arabic",serif;font-size:10pt;color:var(--g1)}
.qm-tg-mosque{width:30mm;height:13mm;fill:var(--g1);opacity:.14}
.qm-tg-ribbon{position:relative;margin:.6mm auto 1.6mm;width:max-content;padding:.8mm 14mm;text-align:center;color:#fff;background:linear-gradient(90deg,var(--g2),var(--g1),var(--g2));clip-path:polygon(0 0,100% 0,96% 50%,100% 100%,0 100%,4% 50%);display:flex;flex-direction:column;line-height:1.15}
.qm-tg-ribbon b{font-size:15pt;letter-spacing:.5px}.qm-tg-ribbon small{font-size:7.5pt;letter-spacing:1.5px;color:var(--gd)}
.qm-tg-chips{display:grid;grid-template-columns:repeat(3,1fr);gap:2mm;padding:0 4mm}
.qm-tg-chip{display:flex;border:.3mm solid var(--g1);border-radius:2mm;overflow:hidden;font-size:8.5pt;min-width:0}
.qm-tg-ck{display:flex;align-items:center;gap:1mm;padding:.8mm 2mm;color:#fff;background:var(--g1);white-space:nowrap}
.qm-tg-ck svg{width:3.4mm;height:3.4mm;fill:currentColor}
.qm-tg-cv{flex:1;padding:.8mm 2mm;text-align:center;font-weight:700;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;background:#fff}
.qm-tg-main{display:flex;gap:3mm;padding:2mm 4mm 0;align-items:stretch}
.qm-tg-fields{flex:1;border:.3mm solid #c5cfdc;border-radius:2mm;padding:1.4mm 2.5mm;display:flex;flex-direction:column;justify-content:space-around;gap:.6mm;background:#fff;min-width:0}
.qm-tg-f{display:grid;grid-template-columns:5mm max-content 2mm 1fr;align-items:end;gap:1mm}
.qm-tg-ic svg{width:4mm;height:4mm;fill:var(--g1)}
.qm-tg-k{color:#333}.qm-tg-c{text-align:center}
.qm-tg-v{border-bottom:.3mm dotted #777;padding:0 1mm .2mm;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.qm-tg-photo{flex:0 0 27mm;border:.3mm solid #c5cfdc;border-radius:2mm;padding:1.4mm;display:flex;flex-direction:column;align-items:center;gap:1mm;background:#fff}
.qm-tg-photo .qm-idphoto{width:23mm;height:27mm}
.qm-tg-photo span{width:100%;text-align:center;font-size:7.5pt;color:#fff;background:var(--g1);border-radius:1mm;padding:.3mm 0}
.qm-tg-bottom{display:grid;grid-template-columns:1.55fr .8fr 1fr;gap:2.5mm;padding:2mm 4mm 0;flex:1;min-height:0}
.qm-tg-rules{border:.3mm solid var(--g1);border-radius:2mm;padding:1.2mm 2mm;overflow:hidden;min-height:0;background:#fff}
.qm-tg-rules .qm-admit-rules{margin:0;padding:0;border:0;font-size:6.6pt}
.qm-tg-rules .qm-ar-title{display:inline-block;color:#fff;background:var(--g1);border-radius:1mm;padding:.2mm 3mm;margin:0 0 .8mm;font-size:7.4pt;text-align:start}
.qm-tg-empty{border-style:dashed}
.qm-tg-box{border:.3mm solid #c5cfdc;border-radius:2mm;padding:1.4mm 2mm;display:flex;flex-direction:column;align-items:center;gap:.8mm;background:#fff;font-size:8pt}
.qm-tg-cand i{flex:1;width:85%;border-bottom:.3mm dotted #555;min-height:8mm}
.qm-tg-cand small{align-self:flex-start;border-bottom:.3mm dotted #555;width:100%}
.qm-tg-head-sign{justify-content:flex-end;text-align:center}
.qm-tg-signimg{max-width:28mm;max-height:10mm;object-fit:contain}
.qm-tg-head-sign b{border-top:.3mm solid #333;padding-top:.4mm;min-width:70%;color:var(--g1)}.qm-tg-head-sign small{font-size:6.8pt;color:#333}
.qm-tg-foot{margin-top:2mm;text-align:center;color:#fff;font-size:8.5pt;padding:.8mm;background:linear-gradient(90deg,var(--g2),var(--g1),var(--g2));border-top:.6mm solid var(--gd)}
.qm-tpl-grand .qm-signs{display:none}
.qm-admit-1 .qm-tpl-grand{font-size:8.5pt}
/* সাদা-কালো ও প্রেস */
.qm-bw .qm-tpl-grand{background:#fff!important;border-color:#000!important}
.qm-bw .qm-tg-hmid strong,.qm-bw .qm-tg-bism,.qm-bw .qm-tg-head-sign b{color:#000}
.qm-bw .qm-tg-ribbon,.qm-bw .qm-tg-foot,.qm-bw .qm-tg-ck,.qm-bw .qm-tg-photo span,.qm-bw .qm-tg-rules .qm-ar-title{background:#fff!important;color:#000!important;border:.3mm solid #000}
.qm-bw .qm-tg-ribbon{clip-path:none}.qm-bw .qm-tg-chip,.qm-bw .qm-tg-rules{border-color:#000}.qm-bw .qm-tg-ic svg,.qm-bw .qm-tg-mosque{fill:#000}
.qm-press .qm-tg-head,.qm-press .qm-tg-ribbon{visibility:hidden}
.qm-tpl-grand{display:flex;flex-direction:column}
.qm-tg-bottom{flex:1 1 0;grid-template-rows:minmax(0,1fr)}
.qm-tg-rules{height:100%;box-sizing:border-box}
.qm-tg-bism{white-space:nowrap;font-size:9pt}
.qm-tg-photo .qm-photo-empty{background:var(--g3)!important;color:var(--g1)!important;border:.3mm dashed var(--g1)}
.qm-tg-foot{margin-top:2mm;flex:0 0 auto}
.qm-tg-bottom{grid-template-columns:2.3fr .75fr .9fr;gap:2mm}
.qm-tg-head{padding:2mm 4mm 0}
.qm-tg-ribbon{margin:0 auto 1.2mm}
.qm-tg-main{padding-top:1.6mm}
.qm-tg-fields{gap:0;padding:1mm 2.5mm}
.qm-tg-photo .qm-idphoto{height:24mm}
.qm-idh .qm-idc-info{font-size:7.8pt;gap:.6mm}.qm-idh .qm-idx-name{font-size:10.5pt;margin-bottom:.6mm}
.qm-idh .qm-idc-row{grid-template-columns:17mm 1.8mm 1fr}
.qm-idx-badge .qm-idx-bigid b{font-size:14pt}
.qm-idsheet-v:not(.qm-idsheet-h) .qm-idc-info{font-size:7pt;gap:.5mm}
.qm-rt-multi input[type=checkbox]{width:18px;height:18px;margin:0;vertical-align:middle}
.qm-rt-multi td,.qm-rt-multi th{vertical-align:middle}
.qm-rt-multi th label{display:inline-flex;align-items:center;gap:6px;font-weight:600}
.qm-rt-multi td input:not([type=checkbox]){margin:0}
.qm-rt-multi td,.qm-rt-multi th{vertical-align:middle!important}
.qm-tg-head-sign{flex-direction:row!important;align-items:flex-end!important;justify-content:space-around!important;gap:2mm}
.qm-tg-sg{flex:1;display:flex;flex-direction:column;align-items:center;justify-content:flex-end;text-align:center;min-width:0}
.qm-tg-sg b{border-top:.3mm solid #333;padding-top:.4mm;width:100%;color:var(--g1);font-size:7.6pt}
.qm-tg-bottom{grid-template-columns:2.1fr .75fr 1.15fr}

/* পরীক্ষার রুটিনের ছক (২০২৬-১১-০১) */
table.qm-rg{border-collapse:collapse;width:max-content;min-width:100%}
.qm-rg th,.qm-rg td{border:1px solid #d6dbe1;padding:4px!important;vertical-align:middle!important}
.qm-rg th.qm-rg-first{position:sticky;inset-inline-start:0;z-index:1;background:#fff;min-width:150px;text-align:start;white-space:nowrap}
.qm-rg thead th.qm-rg-first{background:var(--brand-soft,#f6eef2)}
.qm-rg th.qm-rg-first label{display:inline-flex;align-items:center;gap:6px;font-weight:600}
.qm-rg th.qm-rg-first small{display:block;font-weight:400;color:#777;font-size:11px}
.qm-rg input[type=checkbox]{width:17px;height:17px;margin:0}
.qm-rg th.qm-rg-col{position:relative;min-width:150px;width:150px;padding-top:18px!important}
.qm-rg th.qm-rg-col input[type=date]{width:100%;padding:3px 4px;font-size:12.5px;min-height:0}
.qm-rg .qm-rg-t{display:grid;grid-template-columns:1fr 1fr;gap:3px;margin-top:3px}
.qm-rg .qm-rg-t input{width:100%;padding:2px 3px;font-size:11.5px;min-height:0}
.qm-rg .qm-rg-del{position:absolute;top:2px;inset-inline-end:2px;width:18px;height:16px;padding:0;line-height:14px;font-size:11px;border-radius:4px;background:#fff;color:#b3261e;border:1px solid #e3b4b0;box-shadow:none}
.qm-rg td input{width:100%;min-width:140px;padding:5px 6px;font-size:13.5px;min-height:0;text-align:center}
.qm-rg th.qm-rg-addh{min-width:90px;background:#fff}
.qm-rg #qm-rg-add{white-space:nowrap;padding:6px 10px;font-size:13px}
.qm-rg tr.qm-rg-off td input{opacity:.35;background:#f3f3f3}
.qm-rg tr.qm-rg-off th.qm-rg-first{color:#999}
/* শিক্ষার্থীর কাগজপত্র (২০২৬-১১-০৪) */
.qm-doc-field .qm-doc-row { display:flex; gap:8px; align-items:center; flex-wrap:wrap; }
.qm-doc-field .qm-doc-row select { flex:0 0 auto; width:auto; min-width:150px; }
.qm-doc-field .qm-doc-row input[type=file] { flex:1 1 180px; min-width:0; }
.qm-doc-list { list-style:none; margin:6px 0 0; padding:0; display:flex; flex-direction:column; gap:4px; }
.qm-doc-list li { display:flex; align-items:center; gap:8px; flex-wrap:wrap; font-size:.9rem; }
.qm-doc-list small { color:#6b7480; overflow-wrap:anywhere; }
/* পরীক্ষার ফি উত্তোলন তালিকা (২০২৬-১১-১৬) */
.qm-fee-grp { text-align:center; margin:4px 0 8px; font-size:14px; }
.qm-fee-grow td { background:#f4f7f5 !important; text-align:start !important; font-size:13.5px; }
.qm-fee-mode { display:flex; justify-content:flex-end; margin:0 0 6px; }
.qm-fee-mode label { display:flex; gap:6px; align-items:center; font-size:13px; }
.qm-fee-mode select { width:auto; min-width:200px; }
#qm-erpt-fee td.qm-blank { min-width:90px; }
@media print { .qm-fee-grow td { background:#eee !important; -webkit-print-color-adjust:exact; print-color-adjust:exact; } }
/* শিক্ষার্থী রিপোর্ট: একটিভ/ইনএকটিভ/উভয় (২০২৬-১১-১৬) */
.qm-st-pick { display:flex; gap:10px; flex-wrap:wrap; margin-top:10px; padding:10px 8px 4px; border-top:1px dashed rgba(0,0,0,.15); font-size:13.5px; }
.qm-st-pick label { display:inline-flex; align-items:center; gap:4px; cursor:pointer; }
.qm-st-pick input { width:auto; margin:0; }
/* সম্মিলিত মেধা তালিকা — মারহালা বাছাই (২০২৬-১১-১৬) */
.qm-ca-pick > div { display:flex; flex-wrap:wrap; gap:6px 14px; margin:6px 0 4px; max-height:180px; overflow:auto; padding:8px; border:1px solid rgba(0,0,0,.12); border-radius:10px; }
.qm-ca-pick label { display:inline-flex; align-items:center; gap:5px; font-size:13.5px; }
.qm-ca-pick input { width:auto; margin:0; }
/* ===== অনলাইন ফলাফল পাতা (২০২৬-১১-১৬) ===== */
.rp-page { max-width: 1280px; }
.rp-hero-in { display:flex; gap:16px; align-items:center; }
.rp-logo { width:72px; height:72px; object-fit:contain; border-radius:14px; flex:0 0 auto; }
.rp-hero h1 { margin:0 0 8px; font-size:clamp(20px,3vw,30px); color:var(--brand,#0f5f46); }
.rp-help { margin:0; padding:10px 12px; border-radius:10px; background:color-mix(in srgb,var(--brand,#0f5f46) 7%,transparent); font-size:13.5px; line-height:1.6; }
.rp-step { margin:6px 0 8px; padding:8px 12px; border-radius:10px; background:#eef5fb; color:#24455f; font-size:13.5px; }
.rp-row { display:grid; grid-template-columns:repeat(auto-fit,minmax(220px,1fr)); gap:10px 14px; margin-bottom:8px; }
.rp-row label { display:flex; flex-direction:column; gap:4px; font-size:13px; color:#555; }
.rp-chips { display:flex; gap:8px; flex-wrap:wrap; margin:0 0 10px; }
.rp-chip { padding:7px 14px; border-radius:12px; border:1px solid rgba(0,0,0,.14); text-decoration:none!important; color:inherit!important; font-size:13.5px; background:#fff; }
.rp-chip.on { background:var(--brand,#0f5f46); color:#fff!important; border-color:transparent; }
.rp-search { display:flex; gap:8px; flex-wrap:wrap; margin:8px 0; }
.rp-search input, .rp-search select { flex:1 1 260px; min-width:0; }
.rp-search select { flex:0 1 220px; }
.rp-tabs { display:flex; gap:8px; flex-wrap:wrap; margin-top:10px; }
.rp-tab { padding:9px 16px; border-radius:12px; border:1px solid rgba(0,0,0,.12); text-decoration:none!important; color:inherit!important; font-weight:600; font-size:14px; background:#fff; }
.rp-tab.on { background:var(--brand,#0f5f46); color:#fff!important; border-color:transparent; }
.rp-sec-h { display:flex; justify-content:space-between; align-items:center; gap:10px; flex-wrap:wrap; margin-bottom:8px; }
.rp-sec-h h2, .rp-sec-h h3 { margin:0; }
.rp-print { padding:8px 14px!important; border-radius:10px!important; background:#fff!important; color:var(--brand,#0f5f46)!important; border:1px solid currentColor!important; }
.rp-grid { display:grid; grid-template-columns:minmax(0,1fr) 280px; gap:14px; align-items:start; }
.rp-main { min-width:0; }
.rp-side h3 { margin:4px 0 8px; font-size:15px; }
.rp-mini { display:grid; grid-template-columns:1fr 1fr; gap:8px; margin-bottom:12px; }
.rp-mini div, .rp-stats div { border:1px solid rgba(0,0,0,.1); border-radius:12px; padding:8px 10px; background:#fff; }
.rp-mini small, .rp-stats small { display:block; color:#666; font-size:12px; }
.rp-mini b { font-size:20px; }
.rp-top5 { margin:0; padding-inline-start:20px; }
.rp-top5 li { margin:0 0 6px; }
.rp-top5 li span { display:block; font-size:12px; color:#666; }
.rp-legend { display:flex; gap:6px; flex-wrap:wrap; align-items:center; margin:0 0 10px; font-size:12.5px; }
.rp-legend span { border:1px solid rgba(0,0,0,.15); border-radius:999px; padding:2px 10px; }
.rp-gcards { display:grid; grid-template-columns:repeat(auto-fill,minmax(200px,1fr)); gap:10px; }
.rp-gcard { display:flex; flex-direction:column; gap:3px; padding:12px 14px; border-radius:14px; border:1px solid rgba(0,0,0,.12); text-decoration:none!important; color:inherit!important; background:#fff; }
.rp-gcard:hover { border-color:var(--brand,#0f5f46); box-shadow:0 6px 18px rgba(0,0,0,.08); }
.rp-gcard b { color:var(--brand,#0f5f46); font-size:15px; }
.rp-gcard small, .rp-gcard span { color:#666; font-size:12.5px; }
.rp-stats { display:grid; grid-template-columns:repeat(auto-fill,minmax(160px,1fr)); gap:10px; margin:6px 0 14px; }
.rp-stats b { font-size:24px; }
.rp-two { display:grid; grid-template-columns:repeat(auto-fit,minmax(320px,1fr)); gap:14px; margin-bottom:14px; }
.rp-box { border:1px solid rgba(0,0,0,.1); border-radius:14px; padding:12px 14px; background:#fff; min-width:0; }
.rp-box h3 { margin:0 0 10px; font-size:16px; }
.rp-bars { display:flex; flex-direction:column; gap:7px; }
.rp-bar { display:grid; grid-template-columns:minmax(90px,38%) 1fr auto; gap:8px; align-items:center; font-size:12.5px; }
.rp-bl { overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.rp-bt { height:10px; border-radius:999px; background:#eef0ef; overflow:hidden; }
.rp-bt i { display:block; height:100%; border-radius:999px; background:var(--brand,#0f5f46); }
.rp-bar b { font-size:12.5px; min-width:42px; text-align:end; }
.rp-tbl { width:100%; font-size:13px; }
.rp-note { font-size:12.5px; padding:8px 12px; border-radius:10px; background:#f6f7f6; }
.rp-foot { text-align:center; font-size:12.5px; margin:16px 0; }
.rp-print-head { display:none; }
html[data-theme="dark"] .rp-chip, html[data-theme="dark"] .rp-tab, html[data-theme="dark"] .rp-gcard, html[data-theme="dark"] .rp-box, html[data-theme="dark"] .rp-mini div, html[data-theme="dark"] .rp-stats div { background:#1b221e; border-color:rgba(255,255,255,.12); }
html[data-theme="dark"] .rp-step { background:#1c2a36; color:#cfe2f2; }
html[data-theme="dark"] .rp-note { background:#202824; }
@media (max-width: 900px) { .rp-grid { grid-template-columns:1fr; } }
@media print {
  .rp-filter, .rp-side, .rp-print, .site-back, .qm-table-tools, .rp-tabs { display:none!important; }
  .rp-print-head { display:flex; flex-direction:column; align-items:center; gap:2px; margin-bottom:8px; }
  .rp-print-head b { font-size:18px; } .rp-print-head span { font-weight:700; } .rp-print-head small { color:#444; }
  .rp-grid { display:block; } .rp-box, .rp-stats div { break-inside:avoid; }
  .rp-bt i { -webkit-print-color-adjust:exact; print-color-adjust:exact; }
  .rp-hero { display:none; }
}
/* ফলাফল পাতার সেটিং (অ্যাডমিন) */
.rp-set-grid { display:grid; grid-template-columns:repeat(auto-fill,minmax(280px,1fr)); gap:8px; margin-bottom:10px; }
.rp-set-it { display:flex; gap:10px; align-items:flex-start; padding:10px 12px; border:1px solid rgba(0,0,0,.12); border-radius:12px; cursor:pointer; }
.rp-set-it input { width:auto; margin-top:4px; }
.rp-set-it b { display:block; font-size:14px; } .rp-set-it small { color:#666; font-size:12.5px; }
.rp-set-aud { border:1px solid rgba(0,0,0,.12); border-radius:12px; padding:8px 12px; display:flex; gap:18px; flex-wrap:wrap; }
.rp-set-aud label { display:inline-flex; gap:6px; align-items:center; } .rp-set-aud input { width:auto; }
.qm-pub-all { align-items:center; flex-wrap:wrap; }
