body {
  margin: 0; font-family: "Segoe UI", Arial, sans-serif; font-size: 14px;
  background: #f2f4f7; color: #222;
}
header {
  display: flex; align-items: center; gap: 16px; flex-wrap: wrap;
  background: #1a3c5e; color: #fff; padding: 10px 20px;
}
.brand { font-size: 18px; font-weight: 700; }
header nav { display: flex; gap: 4px; flex-wrap: wrap; }
header nav a { color: #dce7f3; text-decoration: none; padding: 6px 10px; border-radius: 4px; }
header nav a:hover { background: #2c5680; color: #fff; }
.user { margin-left: auto; display: flex; gap: 10px; align-items: center; }
.user a { color: #dce7f3; text-decoration: none; }
main { max-width: 1200px; margin: 16px auto; padding: 0 16px; }
h1 { font-size: 20px; }
.flash { padding: 10px 14px; border-radius: 4px; margin-bottom: 12px; }
.flash.success { background: #e6f4ea; color: #1e4620; }
.flash.danger  { background: #fdecea; color: #7f1d1d; }
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; margin: 12px 0; }
.card { background: #fff; border-radius: 6px; padding: 12px; box-shadow: 0 1px 3px rgba(0,0,0,.12); }
.card .num { font-size: 26px; font-weight: 700; }
.card .lbl { color: #666; font-size: 12px; }
table { border-collapse: collapse; width: 100%; background: #fff; }
th, td { border: 1px solid #dfe3e8; padding: 6px 8px; text-align: left; vertical-align: top; }
th { background: #eef1f5; font-weight: 600; }
tr:nth-child(even) td { background: #fafbfc; }
.pill { display: inline-block; padding: 2px 8px; border-radius: 10px; color: #fff; font-size: 12px; white-space: nowrap; }
form.inline { display: inline; }
input, select, textarea, button {
  font: inherit; padding: 6px 8px; border: 1px solid #c3cbd6; border-radius: 4px; background: #fff;
}
textarea { width: 100%; }
button, .btn {
  background: #1a3c5e; color: #fff; border: none; padding: 8px 14px; border-radius: 4px; cursor: pointer;
  text-decoration: none; display: inline-block;
}
button:hover, .btn:hover { background: #2c5680; }
.btn.ghost { background: #eef1f5; color: #1a3c5e; }
.btn.danger { background: #c62828; }
.field { margin-bottom: 10px; }
.field label { display: block; margin-bottom: 4px; font-weight: 600; }
.field label small { font-weight: 400; color: #777; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.toolbar { margin: 12px 0; display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.filter { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.login-wrap { max-width: 380px; margin: 80px auto; background: #fff; padding: 24px;
  border-radius: 8px; box-shadow: 0 2px 8px rgba(0,0,0,.12); }
.badge-status { font-weight: 600; }
