:root {
  --navy: #182b49;
  --blue: #2f5f8f;
  --bg: #f4f6f8;
  --card: #ffffff;
  --line: #d0d5dd;
  --text: #1f2937;
  --muted: #667085;
  --green: #e7f7ee;
  --red: #fde8e8;
  --amber: #fff5d9;
}
* { box-sizing: border-box; }
body { margin: 0; font-family: Arial, Helvetica, sans-serif; background: var(--bg); color: var(--text); }
.topbar { background: var(--navy); color: white; padding: 14px 22px; display: flex; justify-content: space-between; align-items: center; gap: 14px; flex-wrap: wrap; border-bottom: 5px solid var(--blue); }
.brand { font-size: 20px; font-weight: 800; text-transform: uppercase; letter-spacing: .04em; }
.nav a { color: white; text-decoration: none; margin-left: 14px; font-weight: 700; font-size: 14px; }
.nav a:hover { text-decoration: underline; }
.container { max-width: 1250px; margin: 22px auto; padding: 0 16px 40px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 18px; margin-bottom: 18px; box-shadow: 0 2px 8px rgba(16,24,40,.06); }
.card h1, .card h2, .card h3 { margin-top: 0; color: var(--navy); }
.grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
label { display: block; font-size: 12px; font-weight: 800; text-transform: uppercase; color: var(--muted); margin-bottom: 5px; }
input, select, textarea { width: 100%; border: 1px solid var(--line); border-radius: 8px; padding: 9px 10px; font-size: 14px; background: white; }
textarea { min-height: 70px; resize: vertical; }
button, .button { border: 0; border-radius: 9px; padding: 10px 14px; font-size: 14px; font-weight: 800; cursor: pointer; text-decoration: none; display: inline-block; }
.primary { background: var(--navy); color: white; }
.secondary { background: #e4e7ec; color: #344054; }
.danger { background: #b42318; color: white; }
.button-row { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-top: 12px; }
table { width: 100%; border-collapse: collapse; background: white; }
th, td { border: 1px solid var(--line); padding: 8px; vertical-align: top; font-size: 13px; }
th { background: #eef1f4; color: var(--navy); text-align: left; font-size: 12px; text-transform: uppercase; }
.status-pill { display: inline-block; padding: 4px 8px; border-radius: 99px; font-size: 12px; font-weight: 800; background: #eef1f4; }
.status-Completed, .status-Approved, .status-Archived, .status-Pass { background: var(--green); }
.status-Fail { background: var(--red); }
.status-Hold, .status-Hold-Point-Waiting { background: var(--amber); }
.hp { background: var(--amber); font-weight: 800; }
.flash { padding: 12px 14px; border-radius: 8px; margin-bottom: 12px; font-weight: 700; }
.flash.success { background: var(--green); }
.flash.error { background: var(--red); }
.note { color: var(--muted); font-size: 13px; line-height: 1.4; }
.login-box { max-width: 420px; margin: 70px auto; }
.stat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.stat { background: white; border: 1px solid var(--line); border-radius: 12px; padding: 18px; }
.stat strong { font-size: 32px; color: var(--navy); display: block; }
.signature-pad { border: 1px solid var(--line); border-radius: 8px; background: white; width: 100%; height: 160px; touch-action: none; }
.section-title td { background: var(--navy); color: white; font-weight: 800; text-transform: uppercase; }
.attach-list a { color: var(--navy); font-weight: 700; }
@media (max-width: 900px) {
  .grid, .grid-2, .grid-3, .stat-grid { grid-template-columns: 1fr; }
  .nav a { display: inline-block; margin: 6px 10px 0 0; }
  table { font-size: 12px; }
}
@media print {
  .topbar, .button-row, .no-print { display: none !important; }
  body { background: white; }
  .container { margin: 0; max-width: none; }
  .card { box-shadow: none; border-radius: 0; break-inside: avoid; }
}
