* { box-sizing: border-box; }
body { font-family: "Segoe UI", Tahoma, sans-serif; margin: 0; background: #f4f5f7; color: #23282d; }
main { max-width: 1000px; margin: 24px auto; padding: 0 16px; }
h1 { font-size: 22px; }
.topnav { background: #1d3c6e; color: #fff; padding: 10px 16px; display: flex; gap: 18px; align-items: center; }
.topnav a { color: #cfe0f5; text-decoration: none; }
.topnav a:hover { color: #fff; }
.topnav .right { margin-left: auto; }
table.list { width: 100%; border-collapse: collapse; background: #fff; }
table.list th, table.list td { border: 1px solid #ddd; padding: 8px 10px; text-align: left; font-size: 14px; }
table.list th { background: #e8edf5; }
table.list tr.inactive td { color: #999; background: #fafafa; }
.actions { white-space: nowrap; }
.actions form { display: inline; }
.btn, button { display: inline-block; background: #1d3c6e; color: #fff; border: 0; padding: 8px 14px; border-radius: 4px; cursor: pointer; text-decoration: none; font-size: 14px; }
.btn.secondary { background: #6c757d; }
button.danger { background: #b02a37; padding: 4px 10px; font-size: 13px; }
.error { background: #f8d7da; color: #842029; padding: 10px 14px; border-radius: 4px; }
.login-box { max-width: 380px; margin: 60px auto; background: #fff; padding: 28px; border-radius: 6px; box-shadow: 0 2px 8px rgba(0,0,0,.08); }
label { display: block; margin: 12px 0; font-size: 14px; }
input[type=text], input[type=password], input[type=date], input[type=number], select, textarea {
  width: 100%; padding: 8px; margin-top: 4px; border: 1px solid #ccc; border-radius: 4px; font-size: 14px;
}
label.check input { width: auto; margin-right: 6px; }
.editform { background: #fff; padding: 20px; border-radius: 6px; max-width: 700px; }
.filter { margin: 10px 0; }
.filter select { width: auto; }
