:root { --g: #1f6e43; --g2: #145233; --red: #d62828; --side: 250px; }
* { font-family: 'Hind Siliguri', 'Nikosh', 'SolaimanLipi', sans-serif; }
body { background: #f3f6f4; color: #1d2b24; font-size: 15px; }
.sidebar { position: fixed; inset: 0 auto 0 0; width: var(--side); background: linear-gradient(180deg, var(--g2), var(--g)); color: #fff; overflow-y: auto; z-index: 1040; transition: transform .2s; }
.sidebar .brand { display: flex; gap: 10px; align-items: center; padding: 14px; border-bottom: 1px solid rgba(255,255,255,.15); }
.sidebar .brand img { width: 46px; height: 46px; border-radius: 50%; background: #fff; }
.sidebar .brand b { display: block; font-size: 15px; line-height: 1.2; }
.sidebar .brand small { opacity: .8; font-size: 12px; }
.sidebar ul { list-style: none; margin: 0; padding: 8px 0; }
.sidebar li.sec { font-size: 12px; text-transform: uppercase; opacity: .65; padding: 12px 18px 4px; }
.sidebar a { display: block; color: #e8f5ee; text-decoration: none; padding: 7px 18px; border-left: 3px solid transparent; }
.sidebar a:hover, .sidebar a.active { background: rgba(255,255,255,.12); border-left-color: #ffd23f; color: #fff; }
.sidebar a i { width: 22px; display: inline-block; }
.sidebar .powered { font-size: 11px; opacity: .6; padding: 12px 18px 18px; }
.main { margin-left: var(--side); min-height: 100vh; }
.topbar { display: flex; align-items: center; gap: 12px; background: #fff; padding: 10px 20px; border-bottom: 1px solid #dde5df; position: sticky; top: 0; z-index: 1030; }
.topbar h1 { font-size: 19px; margin: 0; font-weight: 600; color: var(--g2); }
.topbar .search input { width: 260px; }
.content { padding: 20px; }
.card { border: 0; box-shadow: 0 1px 3px rgba(0,0,0,.07); border-radius: 10px; }
.card-header { background: #fff; font-weight: 600; color: var(--g2); }
.stat { border-radius: 12px; padding: 16px; color: #fff; display: flex; justify-content: space-between; align-items: center; }
.stat .n { font-size: 28px; font-weight: 700; line-height: 1; }
.stat i { font-size: 34px; opacity: .55; }
.bg-g { background: var(--g); } .bg-b { background: #1d5fa8; } .bg-o { background: #e07a1f; } .bg-r { background: var(--red); } .bg-p { background: #6c3fb5; }
.btn-success { background: var(--g); border-color: var(--g); }
.table { background: #fff; }
.table thead th { background: #e8f2ec; color: var(--g2); white-space: nowrap; }
.table-sm td, .table-sm th { padding: .3rem .45rem; }
.att-btns .btn-check + .btn { min-width: 44px; }
.marks-input { width: 70px; }
.print-head { display: flex; align-items: center; justify-content: center; gap: 14px; text-align: center; border-bottom: 2px solid var(--g); padding-bottom: 8px; margin-bottom: 8px; }
.print-head img { width: 70px; height: 70px; }
.print-head h3 { margin: 0; font-weight: 700; color: var(--g2); }
.print-head .en { font-weight: 600; letter-spacing: .5px; }
.print-title { text-align: center; margin: 6px 0 12px; font-weight: 600; }
.login-wrap { min-height: 100vh; display: flex; align-items: center; justify-content: center; background: linear-gradient(135deg, var(--g2), var(--g)); }
.login-card { width: 380px; background: #fff; border-radius: 14px; padding: 28px; text-align: center; box-shadow: 0 10px 40px rgba(0,0,0,.25); }
.login-card img { width: 96px; }
.idcard { width: 54mm; height: 86mm; border: 1px solid #999; border-radius: 6px; overflow: hidden; display: inline-block; margin: 3mm; text-align: center; vertical-align: top; background: #fff; page-break-inside: avoid; font-size: 11px; }
.idcard .top { background: var(--g); color: #fff; padding: 4px; }
.idcard .top img { width: 34px; height: 34px; background: #fff; border-radius: 50%; }
.idcard .top b { display: block; font-size: 11.5px; line-height: 1.15; }
.idcard .photo { width: 22mm; height: 26mm; border: 1px solid #ccc; margin: 4px auto; display: flex; align-items: center; justify-content: center; color: #aaa; overflow: hidden; }
.idcard .photo img { width: 100%; height: 100%; object-fit: cover; }
.idcard .nm { font-weight: 700; font-size: 12.5px; color: var(--g2); }
.idcard table { width: 100%; text-align: left; margin-top: 3px; }
.idcard td { padding: 0 5px; }
.idcard .bottom { background: var(--red); color: #fff; font-size: 10px; padding: 2px; margin-top: 4px; }
.marksheet { max-width: 800px; margin: auto; background: #fff; padding: 18px; border: 6px double var(--g); }
.sign-row { display: flex; justify-content: space-between; margin-top: 50px; }
.sign-row div { border-top: 1px solid #333; padding-top: 3px; min-width: 150px; text-align: center; }
.grade-F { color: var(--red); font-weight: 700; }
@media (max-width: 991px) { .sidebar { transform: translateX(-100%); } .sidebar.open { transform: none; } .main { margin-left: 0; } }
@media print {
  .sidebar, .topbar, .no-print, .btn, form.filters { display: none !important; }
  .main { margin: 0; } .content { padding: 0; } body { background: #fff; font-size: 13px; }
  .card { box-shadow: none; } .page-break { page-break-after: always; }
  .table thead th { background: #e8f2ec !important; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .idcard .top, .idcard .bottom { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}
