/* BPSC College Portal — Exam Operations Suite (inside the Digital Portal frame). Scoped to .bsp-exam. */
.bsp-exam{--eg:#0b6e4f;--egd:#0b3d2e;--egold:#c79a3a;--eink:#1c2b25;--emut:#5d6f68;--eline:#dce6e1;--elt:#e3f4ec;
  color:var(--eink);font-family:'Hind Siliguri','Inter',system-ui,sans-serif;font-size:15px;line-height:1.55;margin:16px 0 30px}
.bsp-exam *{box-sizing:border-box}
.bsp-exam .ex-loading{padding:40px;text-align:center;color:var(--emut)}
.bsp-exam .ex-hidden{display:none!important}
.bsp-exam label{display:block;font-size:12.5px;font-weight:700;color:var(--emut);margin:12px 0 4px}
.bsp-exam input,.bsp-exam select,.bsp-exam textarea{width:100%;font-family:inherit;font-size:14px;font-weight:600;padding:9px 11px;border:1.5px solid var(--eline);border-radius:10px;background:#fff;color:var(--eink)}
.bsp-exam input:focus,.bsp-exam select:focus,.bsp-exam textarea:focus{outline:none;border-color:var(--eg)}
.bsp-exam input[readonly]{background:#f3f6f4}
.bsp-exam .ex-btn{font-family:inherit;cursor:pointer;border:0;border-radius:10px;padding:10px 16px;font-weight:700;font-size:14px;background:var(--eg);color:#fff;display:inline-flex;align-items:center;justify-content:center;gap:6px;text-decoration:none;transition:.15s}
.bsp-exam .ex-btn:hover{filter:brightness(.93)}
.bsp-exam .ex-btn:disabled{opacity:.5;cursor:not-allowed}
.bsp-exam .ex-btn.big{width:100%;padding:13px 18px;font-size:15px}
.bsp-exam .ex-btn.sm{padding:6px 11px;font-size:13px}
.bsp-exam .ex-btn.ghost{background:#fff;color:var(--eg);border:1.5px solid var(--eg)}
.bsp-exam .ex-btn.dark{background:#1e293b}
.bsp-exam .ex-btn.gold{background:var(--egold);color:#3a2c00}
.bsp-exam .ex-btn.amber{background:#d97706}
.bsp-exam .ex-btn.danger{background:#fdecea;color:#c0392b;border:1px solid #f2c2bd}
.bsp-exam .ex-btn.wa{background:#25d366}
.bsp-exam .ex-file{position:relative;overflow:hidden;margin:0}
.bsp-exam .ex-file input{position:absolute;inset:0;opacity:0;cursor:pointer}
.bsp-exam .ex-card{background:#fff;border:1px solid var(--eline);border-radius:18px;padding:20px;margin-bottom:16px;box-shadow:0 10px 24px -14px rgba(0,0,0,.18)}
.bsp-exam .ex-narrow{max-width:680px;margin-left:auto;margin-right:auto}
.bsp-exam .ex-login{max-width:420px;margin:10px auto;text-align:center}
.bsp-exam .ex-login label{text-align:left}
.bsp-exam .ex-login .big{margin-top:16px}
.bsp-exam .ex-logo{width:72px;height:72px;border-radius:18px;object-fit:cover;display:block;margin:0 auto 10px}
.bsp-exam .ex-login h2{font-size:21px;font-weight:800;margin:0}
.bsp-exam .ex-login h2 small{display:block;font-size:13px;color:var(--emut);font-weight:600}
.bsp-exam .ex-bar{display:flex;align-items:center;gap:10px;flex-wrap:wrap;margin-bottom:10px}
.bsp-exam .ex-bar .sp,.bsp-exam .ex-flex .sp{flex:1}
.bsp-exam .ex-role{font-size:11.5px;font-weight:800;background:var(--egold);color:#3a2c00;padding:2px 9px;border-radius:8px}
.bsp-exam .ex-exam{font-size:13px;color:var(--emut);font-weight:600}
.bsp-exam .ex-exsel{background:#fff;border:1px solid var(--eline);border-radius:14px;padding:4px 14px 12px;margin-bottom:12px}
.bsp-exam .ex-exsel label{margin-top:8px}
.bsp-exam .ex-exsel select{font-weight:700}
.bsp-exam .tt-ph{width:38px;height:38px;border-radius:50%;object-fit:cover;display:block}
.bsp-exam .ex-tbl.tt input{min-width:110px}
.bsp-exam .ex-tbl.tt input[type=number]{min-width:60px}
.bsp-exam .ex-tbl.tt input[type=checkbox]{min-width:0;width:20px;height:20px}
.bsp-exam .ex-tbl tr.off td{background:#f8f1f1;opacity:.7}
.bsp-exam .ex-tabs{display:flex;gap:6px;overflow-x:auto;scrollbar-width:none;margin-bottom:14px;padding-bottom:2px}
.bsp-exam .ex-tabs::-webkit-scrollbar{display:none}
.bsp-exam .ex-tab{font-family:inherit;cursor:pointer;white-space:nowrap;border:1.5px solid var(--eline);background:#fff;color:var(--eink);border-radius:999px;padding:8px 15px;font-weight:700;font-size:14px}
.bsp-exam .ex-tab.on{background:var(--egd);border-color:var(--egd);color:#fff}
.bsp-exam .ex-sub{display:flex;gap:4px;border-bottom:2px solid var(--eline);margin:6px 0 12px;overflow-x:auto}
.bsp-exam .ex-sub button{font-family:inherit;cursor:pointer;background:none;border:0;border-bottom:2px solid transparent;margin-bottom:-2px;padding:9px 14px;font-weight:700;font-size:14px;color:var(--emut);white-space:nowrap}
.bsp-exam .ex-sub button.on{color:var(--eg);border-bottom-color:var(--egold)}
.bsp-exam .ex-title{font-size:15px;font-weight:800;color:var(--egd);display:flex;align-items:center;gap:8px;margin-bottom:8px}
.bsp-exam .ex-step{display:inline-flex;align-items:center;justify-content:center;width:26px;height:26px;border-radius:50%;background:var(--egd);color:#fff;font-size:13px}
.bsp-exam .ex-hint{font-size:13px;color:var(--emut);margin:4px 0 8px}
.bsp-exam .ex-note{background:#fbf3e0;border:1px solid #ecd9a8;color:#8a6414;border-radius:12px;padding:11px 14px;font-size:14px;margin-bottom:14px}
.bsp-exam .ex-err{background:#fef2f2;color:#b91c1c;border-radius:10px;padding:9px 12px;font-weight:700;font-size:14px;margin:8px 0}
.bsp-exam .ex-empty{text-align:center;color:var(--emut);padding:26px 10px;font-weight:600}
.bsp-exam .ex-badges{display:flex;flex-wrap:wrap;gap:6px;margin:8px 0 12px}
.bsp-exam .ex-badges span{background:var(--elt);color:var(--egd);border-radius:10px;padding:4px 10px;font-size:13px;font-weight:700}
.bsp-exam .ex-badges .gold{background:#fbf3e0;color:#8a6414}.bsp-exam .ex-badges .amber{background:#fdf3e2;color:#c77f0a}.bsp-exam .ex-badges .teal{background:#dff5f1;color:#0d7a6b}
.bsp-exam .ex-row{display:flex;gap:10px;flex-wrap:wrap;align-items:center}
.bsp-exam .ex-row select{flex:1;min-width:200px;width:auto}
.bsp-exam .ex-flex{display:flex;gap:8px;align-items:center;flex-wrap:wrap}
.bsp-exam .ex-top{margin-top:12px}
.bsp-exam .ex-grid2,.bsp-exam .ex-grid3{display:grid;gap:0 12px}
.bsp-exam .ex-grid2{grid-template-columns:1fr 1fr}.bsp-exam .ex-grid3{grid-template-columns:repeat(3,1fr)}
.bsp-exam .ex-grid2 .span2{grid-column:1/-1}
.bsp-exam .ex-stats{display:flex;overflow-x:auto;background:linear-gradient(90deg,#093024,#0f5239);border-radius:16px;margin-bottom:12px}
.bsp-exam .ex-stats div{padding:12px 18px;color:#fff;border-right:1px solid rgba(255,255,255,.1);flex-shrink:0}
.bsp-exam .ex-stats b{display:block;font-size:20px;font-weight:800;line-height:1.1}
.bsp-exam .ex-stats span{font-size:11.5px;opacity:.75}
.bsp-exam .ex-scroll{overflow:auto;max-height:520px;border:1px solid var(--eline);border-radius:10px}
.bsp-exam .ex-tbl{width:100%;border-collapse:collapse;font-size:13.5px;text-align:center}
.bsp-exam .ex-tbl th{background:#0f5239;color:#fff;padding:8px;font-weight:700;position:sticky;top:0;z-index:1;white-space:nowrap}
.bsp-exam .ex-tbl td{border-bottom:1px solid var(--eline);padding:6px 8px;vertical-align:middle}
.bsp-exam .ex-tbl td.l,.bsp-exam .ex-tbl th.l{text-align:left}
.bsp-exam .ex-tbl td.rc{font-weight:800;color:var(--egd);background:var(--elt);font-size:15px}
.bsp-exam .ex-tbl td.nw{white-space:nowrap}
.bsp-exam .ex-tbl td.mono{font-family:monospace;color:var(--emut)}
.bsp-exam .ex-tbl.in input,.bsp-exam .ex-tbl.in select{padding:6px;font-size:13.5px;min-width:60px}
.bsp-exam .ex-tbl tr.tot td{font-weight:800;background:#fbf3e0;color:var(--egd)}
.bsp-exam .ex-pill{display:inline-block;padding:3px 9px;border-radius:7px;font-size:12px;font-weight:700;background:#dff5f1;color:#0d7a6b}
.bsp-exam .ex-pill.head{background:#fbf3e0;color:#8a6414}
.bsp-exam .ex-sum{display:grid;grid-template-columns:repeat(auto-fill,minmax(220px,1fr));gap:10px}
.bsp-exam .ex-sum>div{display:flex;justify-content:space-between;align-items:center;gap:10px;border:1px solid var(--eline);border-radius:10px;padding:10px 12px;background:#f8faf9}
.bsp-exam .ex-sum>div>div{flex:1}
.bsp-exam .ex-sum b{font-size:13.5px}
.bsp-exam .ex-sum i{display:block;height:5px;background:var(--eline);border-radius:4px;margin-top:5px}
.bsp-exam .ex-sum em{display:block;height:5px;border-radius:4px}
.bsp-exam .ex-sum span{width:36px;height:36px;border-radius:50%;display:flex;align-items:center;justify-content:center;font-weight:800;font-size:17px}
.bsp-exam .ed-room{background:#f8faf9;border:1px solid var(--eline);border-radius:12px;padding:12px;margin-top:10px}
.bsp-exam .ed-head span{display:inline-block;background:var(--egd);color:#fff;border-radius:8px;padding:2px 12px;font-weight:800;margin-bottom:8px}
.bsp-exam .ed-slot{display:flex;gap:8px;margin-bottom:8px;align-items:center}
.bsp-exam .ed-slot select:first-child{flex:1}
.bsp-exam .ed-slot select:nth-child(2){width:140px}
/* 0.91 — editor before print + fixed rooms */
.bsp-exam .ed-day{border:1px solid var(--eline);border-left:5px solid var(--egd);border-radius:12px;padding:10px 12px 12px;margin-top:14px;background:#fff}
.bsp-exam .ed-dayhead{font-weight:800;font-size:16px;color:var(--egd);margin-bottom:4px}
.bsp-exam .ed-head{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
.bsp-exam .ed-head .ed-rmroom{margin-left:auto;margin-bottom:8px}
.bsp-exam .ed-warn{font-style:normal;color:#c77f0a;font-weight:700;font-size:13px;margin-bottom:8px}
.bsp-exam .ed-slot.dupe select:first-child{border-color:#d33;background:#fff3f3}
.bsp-exam .ex-note.amber{background:#fdf3e2;color:#7a5410;border-color:#f3d9a4}
.bsp-exam .ex-duties{display:grid;grid-template-columns:repeat(auto-fill,minmax(260px,1fr));gap:12px}
.bsp-exam .ex-duty{border:1px solid var(--eline);border-radius:14px;padding:14px;background:#fff;display:flex;flex-direction:column;gap:6px}
.bsp-exam .ex-duty>b{color:var(--egd);font-size:15.5px}
.bsp-exam .ex-roomtag{background:var(--egd);color:#fff;border-radius:8px;padding:3px 11px;font-weight:800}
.bsp-exam .ex-verified{background:var(--elt);border-left:5px solid #1e9e6a;border-radius:10px;padding:12px 14px;font-weight:700;color:var(--egd);margin-top:14px}
.bsp-exam .ex-verified b{display:block;font-size:19px;color:var(--eink)}
.bsp-exam .ex-ov{display:grid;grid-template-columns:repeat(4,1fr);gap:8px}
.bsp-exam .ex-ov div{border:1px solid var(--eline);border-radius:10px;padding:10px;text-align:center}
.bsp-exam .ex-ov .b{background:#e7f0fe}.bsp-exam .ex-ov .a{background:#fdf3e2}.bsp-exam .ex-ov .t{background:#dff5f1}.bsp-exam .ex-ov .g{background:var(--elt)}
.bsp-exam .ex-ov span{display:block;font-size:11.5px;font-weight:700;color:var(--emut)}
.bsp-exam .ex-ov b{display:block;font-size:24px;font-weight:800}
.bsp-exam .ex-ov em{font-style:normal;font-size:12px;font-weight:700;color:#1e9e6a}
.bsp-exam .ex-sep{border-top:2px dashed var(--eline);margin:20px 0 14px}
.bsp-exam .ex-roll{max-height:300px;overflow:auto;border:1px solid var(--eline);border-radius:10px;padding:4px}
.bsp-exam .ex-roll label{display:flex;align-items:center;gap:10px;margin:0;padding:7px 8px;border-bottom:1px solid var(--eline);cursor:pointer;font-size:14px;color:var(--eink);font-weight:500}
.bsp-exam .ex-roll label.ab{background:#fef2f2}
.bsp-exam .ex-roll input{width:18px;height:18px;flex:0 0 auto}
.bsp-exam .ex-roll b{min-width:62px}.bsp-exam .ex-roll b.b{color:#1f6feb}.bsp-exam .ex-roll b.g{color:#db2777}
.bsp-exam .ex-roll span{flex:1}
.bsp-exam .ex-roll em{font-style:normal;font-size:12px;background:var(--elt);border-radius:8px;padding:2px 8px}
.bsp-exam .ex-spin{width:36px;height:36px;border:4px solid #e2e8f0;border-top-color:var(--eg);border-radius:50%;margin:14px auto;animation:exsp 1s linear infinite}
@keyframes exsp{to{transform:rotate(360deg)}}
.bsp-exam .ex-modal{position:fixed;inset:0;background:rgba(15,23,42,.55);display:none;align-items:center;justify-content:center;z-index:300;padding:16px}
.bsp-exam .ex-modal.show{display:flex}
.bsp-exam .ex-modal .box{background:#fff;border-radius:18px;padding:22px;width:440px;max-width:100%;max-height:90vh;overflow:auto}
.bsp-exam .ex-modal .box.wide{width:720px}
.bsp-exam .ex-modal .mt{font-size:18px;font-weight:800;margin-bottom:8px}
.bsp-exam .ex-modal .mf{display:flex;gap:8px;justify-content:flex-end;flex-wrap:wrap;margin-top:16px}
.bsp-exam .ex-toast{position:fixed;bottom:20px;right:20px;z-index:400;background:var(--egd);color:#fff;padding:12px 18px;border-radius:10px;font-weight:600;font-size:14px;max-width:340px;transform:translateY(90px);opacity:0;transition:.3s}
.bsp-exam .ex-toast.show{transform:none;opacity:1}
.bsp-exam .ex-toast.ok{background:#1e9e6a}.bsp-exam .ex-toast.bad{background:#c0392b}

/* printable sheets (A4) */
.bsp-exam .sheet{background:#fff;color:#1c2b25;width:210mm;max-width:100%;min-height:297mm;margin:20px auto;padding:12mm 12mm 16mm;box-shadow:0 8px 24px rgba(0,0,0,.12);position:relative;font-family:'Tiro Bangla','Hind Siliguri',serif;display:flex;flex-direction:column}
.bsp-exam .doc-head{display:flex;align-items:center;gap:14px;border-bottom:3px double #0b3d2e;padding-bottom:10px}
.bsp-exam .doc-head img{width:76px;height:76px;object-fit:contain}
.bsp-exam .doc-head .ht{flex:1;text-align:center}
.bsp-exam .doc-head h1{margin:0;font-size:21px;color:#0b3d2e;font-weight:800}
.bsp-exam .doc-head .addr{font-size:12.5px;color:#555;margin-top:3px}
.bsp-exam .doc-head .dh-exam{font-size:14px;font-weight:700;color:#0f5239;margin-top:6px}
.bsp-exam .doc-head .spacer{width:76px}
.bsp-exam .title-bar{text-align:center;margin:9px 0 8px}
.bsp-exam .title-bar span{display:inline-block;background:#0b3d2e;color:#fff;padding:5px 28px;border-radius:4px;font-size:14.5px;font-weight:800}
.bsp-exam .sheet-meta{display:flex;justify-content:space-between;flex-wrap:wrap;gap:6px;margin:6px 2px 8px;font-size:13px;font-weight:700}
.bsp-exam table.duty-sheet{width:100%;border-collapse:collapse;font-size:12.5px}
.bsp-exam .duty-sheet th,.bsp-exam .duty-sheet td{border:1px solid #2e5546;padding:6px 8px;text-align:center}
.bsp-exam .duty-sheet th{background:#0f5239;color:#fff}
.bsp-exam .duty-sheet td.d-room{font-weight:800;background:#eaf4ef;font-size:14px}
.bsp-exam .duty-sheet td.d-name{text-align:left;padding-left:12px;font-weight:600}
.bsp-exam .duty-sheet td.d-role{font-weight:700}
.bsp-exam .duty-sheet td.d-role.head{color:#0b3d2e;background:#f7eccc}
.bsp-exam .duty-sheet tr.warn td{color:#c0392b;background:#fdecea}
.bsp-exam .duty-sheet tr.tot td{font-weight:800;background:#f7eccc}
.bsp-exam .sheet-note{font-size:11px;color:#555;margin-top:8px;line-height:1.6;border-top:1px dashed #bbb;padding-top:6px}
.bsp-exam .signs{display:flex;justify-content:space-between;gap:20px;margin-top:auto;padding-top:46px}
.bsp-exam .signs div{flex:1;text-align:center}
.bsp-exam .signs i{display:block;border-top:1.2px solid #333;margin:0 8px 5px}
.bsp-exam .signs b{font-size:12px}
.bsp-exam .sheet-foot{position:absolute;bottom:6mm;left:12mm;right:12mm;text-align:center;font-size:9px;color:#888;border-top:1px solid #ddd;padding-top:4px;font-style:italic}

@media (max-width:700px){
  .bsp-exam .ex-grid2,.bsp-exam .ex-grid3{grid-template-columns:1fr}
  .bsp-exam .ex-ov{grid-template-columns:repeat(2,1fr)}
  .bsp-exam .ex-card{padding:15px}
  .bsp-exam .sheet{padding:14px;min-height:0}
  .bsp-exam #exPrint{overflow-x:auto}
  .bsp-exam .ed-slot{flex-wrap:wrap}.bsp-exam .ed-slot select:nth-child(2){width:auto;flex:1}
}
@page{size:A4 portrait;margin:0}
@media print{
  body{background:#fff!important}
  body>header,body>nav,body>footer{display:none!important}
  main.wrap{max-width:none!important;padding:0!important;margin:0!important}
  .bsp-exam{margin:0}
  .bsp-exam .no-print,.bsp-exam .ex-modal,.bsp-exam .ex-toast{display:none!important}
  .bsp-exam *{-webkit-print-color-adjust:exact!important;print-color-adjust:exact!important}
  .bsp-exam .sheet{margin:0 auto;box-shadow:none;width:210mm;min-height:297mm;page-break-after:always}
  .bsp-exam .sheet:last-child{page-break-after:auto}
}
