*{box-sizing:border-box}
body{margin:0;font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Helvetica,Arial,sans-serif;background:#eef2f6;color:#1c2733}
.ohead{background:#10243e;color:#fff;padding:12px 16px;display:flex;justify-content:space-between;align-items:center}
.btnlink{background:#fff;border:1px solid #d7dee5;border-radius:8px;padding:8px 12px;cursor:pointer;text-decoration:none;color:#0b5fa5;font-size:14px}
.hidden{display:none!important}
.panel{max-width:420px;margin:40px auto;background:#fff;border:1px solid #d7dee5;border-radius:12px;padding:20px}
.panel label{display:block;font-weight:600;font-size:14px;margin-bottom:10px}
.panel input{display:block;width:100%;margin-top:6px;padding:11px;border:1px solid #d7dee5;border-radius:8px;font-size:16px}
button.primary{background:#0b5fa5;color:#fff;border:none;border-radius:8px;padding:11px 18px;font-size:15px;font-weight:700;cursor:pointer}
.err{color:#b3261e;margin-top:8px}
main{max-width:1100px;margin:0 auto;padding:16px 12px 60px}
.tabs{display:flex;gap:8px;margin-bottom:12px}
.tab{border:1px solid #d7dee5;background:#fff;border-radius:8px;padding:9px 14px;cursor:pointer;font-size:14px}
.tab.active{background:#0b5fa5;color:#fff;font-weight:700}
.toolbar{display:flex;gap:12px;align-items:center;margin-bottom:12px;flex-wrap:wrap}
.toolbar input[type=search]{flex:1;min-width:200px;padding:10px;border:1px solid #d7dee5;border-radius:8px;font-size:15px}
.mut{color:#63707d;font-size:13px}
table.list{width:100%;border-collapse:collapse;background:#fff;border:1px solid #d7dee5;border-radius:10px;overflow:hidden}
table.list th,table.list td{padding:9px 10px;border-bottom:1px solid #edf1f4;text-align:left;font-size:14px}
table.list th{background:#f2f6f9}
table.list tbody tr{cursor:pointer}
table.list tbody tr:hover{background:#f6f9fb}
.badge{display:inline-block;border-radius:999px;padding:1px 8px;font-size:11.5px;font-weight:700}
.b-test{background:#f3e2c7;color:#7a4d00}.b-rev{background:#dbeafe;color:#0b5fa5}.b-flag{background:#fde2e0;color:#b3261e}.b-hist{background:#e6e6e6;color:#444}
.report{background:#fff;border:1px solid #d7dee5;border-radius:12px;padding:26px;max-width:860px}
.report h1{margin:0;font-size:24px;color:#10243e}
.report .sub{color:#63707d;margin:4px 0 14px}
.report h2{font-size:16px;color:#0b5fa5;border-bottom:2px solid #e3eaf0;padding-bottom:4px;margin:22px 0 10px;text-transform:uppercase;letter-spacing:.4px}
.report table{width:100%;border-collapse:collapse}
.report table td,.report table th{padding:6px 8px;border-bottom:1px solid #eef1f4;font-size:14px;text-align:left;vertical-align:top}
.report table td:first-child{color:#63707d;width:230px}
.report table.kv td:first-child{font-weight:600;color:#41505e}
.report .none{color:#63707d;font-style:italic}
.report .total{font-weight:800;font-size:15px}
.report .narrative{font-size:15px;line-height:1.55}
.report .flagbox{background:#fdf3f2;border:1px solid #f3c2bd;border-radius:8px;padding:10px 12px;margin:10px 0}
.repcard{background:#fff;border:1px solid #d7dee5;border-radius:12px;padding:18px;margin-bottom:16px}
.repcard h3{margin:0 0 12px;color:#10243e}
.repcard label{font-weight:600;font-size:13.5px}
.repcard select,.repcard input[type=date],.repcard input[type=text],.repcard input[type=number]{display:block;margin-top:5px;padding:9px;border:1px solid #d7dee5;border-radius:8px;font-size:14.5px;font-weight:400;background:#fff}
.repcard table.list tbody tr{cursor:default}
.repcard table.list tbody tr:hover{background:#fff}
.repsum{background:#eef6ee;border:1px solid #bcd8bc;border-radius:8px;padding:10px 13px;font-size:14.5px;margin:10px 0}
.ah-filter{display:flex;gap:8px;align-items:flex-end;flex-wrap:wrap;margin-bottom:8px}
.ah-filter label{font-weight:600;font-size:13px}
.ah-filter select,.ah-filter input{display:block;margin-top:4px;padding:8px;border:1px solid #d7dee5;border-radius:8px;font-size:14.5px;font-weight:400;background:#fff}
@media print{
  body{background:#fff}
  .ohead,.tabs,.toolbar,.no-print,#listTable,#tab-people{display:none!important}
  main{padding:0;max-width:none}
  .report{border:none;border-radius:0;max-width:none;padding:0}
}
