* { box-sizing: border-box; }
:root {
  --navy-900: #0b1f4d;
  --navy-800: #10275e;
  --blue-700: #1d4ed8;
  --blue-600: #2563eb;
  --blue-100: #dbeafe;
  --blue-50: #eff6ff;
  --slate-600: #475569;
}

body {
  font-family: -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  margin: 0;
  background: var(--blue-50);
  color: #1e293b;
}

.topbar {
  background: linear-gradient(90deg, var(--navy-900), var(--navy-800));
  color: white;
  padding: 10px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-shadow: 0 2px 6px rgba(11, 31, 77, .25);
}
.topbar .brand { color: white; text-decoration: none; font-weight: 700; display: flex; align-items: center; gap: 10px; letter-spacing: .3px; }
.brand-logo { height: 40px; width: 40px; border-radius: 50%; background: white; padding: 2px; }
.topnav { display: flex; gap: 16px; align-items: center; }
.topnav a { color: #bfdbfe; text-decoration: none; font-size: 14px; }
.topnav a:hover { color: white; }
.topnav .whoami { color: #93c5fd; font-size: 13px; }

.flashes { list-style: none; padding: 10px 14px; margin: 0 0 16px; background: #fef3c7; border: 1px solid #f59e0b; border-radius: 6px; color: #92400e; }
.hint { color: var(--slate-600); font-size: 13px; }
.type-filter { display: block; margin-bottom: 12px; font-size: 14px; color: var(--slate-600); }
.type-filter select { margin-left: 8px; padding: 4px 8px; border: 1px solid #bfdbfe; border-radius: 6px; }

main { max-width: 960px; margin: 0 auto; padding: 24px; }
h1 { margin-top: 0; color: var(--navy-900); }
h2 { color: var(--navy-800); }
a { color: var(--blue-700); }

table.grid { width: 100%; border-collapse: collapse; background: white; border-radius: 8px; overflow: hidden; box-shadow: 0 1px 3px rgba(11,31,77,.12); }
table.grid th { background: var(--blue-100); color: var(--navy-900); font-weight: 600; }
table.grid th, table.grid td { padding: 10px 14px; border-bottom: 1px solid #e5e7eb; text-align: left; }
table.grid tr:hover td { background: #f8fafc; }
table.grid tr.negative td, table.grid td.negative { color: #b91c1c; }
table.grid tr.status-yellow td { background: #fff9c4; }
table.grid tr.status-red td { background: #f8d7da; color: #7f1d1d; }
table.grid tr.status-red:hover td, table.grid tr.status-yellow:hover td { filter: brightness(0.97); }

.summary { display: flex; flex-wrap: wrap; gap: 24px; background: white; padding: 14px 18px; margin-bottom: 16px; border-radius: 8px; border-left: 4px solid var(--blue-600); box-shadow: 0 1px 3px rgba(11,31,77,.12); }
.summary .negative { color: #b91c1c; }

.entry-form { display: flex; flex-wrap: wrap; gap: 14px; align-items: end; background: white; padding: 18px; margin-bottom: 24px; border-radius: 8px; box-shadow: 0 1px 3px rgba(11,31,77,.12); }
.entry-form label { display: flex; flex-direction: column; font-size: 12px; color: var(--slate-600); font-weight: 600; }
.entry-form input, .entry-form select { padding: 7px 9px; margin-top: 4px; border: 1px solid #cbd5e1; border-radius: 6px; font-size: 14px; }
.entry-form input:focus, .entry-form select:focus { outline: none; border-color: var(--blue-600); box-shadow: 0 0 0 3px var(--blue-100); }
.entry-form button { padding: 9px 20px; background: var(--blue-600); color: white; border: none; border-radius: 6px; font-weight: 600; cursor: pointer; }
.entry-form button:hover { background: var(--blue-700); }
.export-btn { display: inline-block; padding: 9px 20px; background: #16a34a; color: white !important; border-radius: 6px; font-weight: 600; text-decoration: none; }
.export-btn:hover { background: #15803d; }

.link-btn { background: none; border: none; color: #b91c1c; cursor: pointer; text-decoration: underline; padding: 0; font-size: 13px; }
canvas { background: white; padding: 14px; margin-bottom: 24px; border-radius: 8px; box-shadow: 0 1px 3px rgba(11,31,77,.12); }
