* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body { font-family: Tahoma, "Leelawadee UI", sans-serif; font-size: 14px; color: #1d1d1f; background: #f4f5f7; display: flex; flex-direction: column; }
header { display: flex; align-items: center; gap: 24px; padding: 0 20px; height: 52px; background: #1f2a3c; color: #fff; flex: none; }
header .brand { font-weight: bold; font-size: 16px; }
header nav { display: flex; gap: 4px; }
header nav a { color: #c9d3e3; text-decoration: none; padding: 8px 14px; border-radius: 6px; }
header nav a:hover { background: #2d3b52; color: #fff; }
header nav a.active { background: #d81b1b; color: #fff; }
header .stats { margin-left: auto; color: #c9d3e3; font-size: 13px; }

button, .btn { font: inherit; padding: 7px 14px; border: 1px solid #c4c9d2; background: #fff; border-radius: 6px; cursor: pointer; color: inherit; }
button:hover { border-color: #8d96a5; }
button.primary { background: #d81b1b; border-color: #d81b1b; color: #fff; }
button.primary:hover { background: #b51515; }
button:disabled { opacity: .5; cursor: default; }
input[type=text], input[type=search], select { font: inherit; padding: 7px 10px; border: 1px solid #c4c9d2; border-radius: 6px; background: #fff; }
input:focus, select:focus { outline: 2px solid #f0a0a0; outline-offset: 0; }

.card { background: #fff; border: 1px solid #dde1e7; border-radius: 10px; padding: 18px 20px; }
.muted { color: #6b7280; }
.error { color: #c62828; }
.ok { color: #2e7d32; }
table { border-collapse: collapse; width: 100%; }
th, td { text-align: left; padding: 7px 10px; border-bottom: 1px solid #eceef2; }
th { color: #6b7280; font-weight: normal; font-size: 13px; }
td.num, th.num { text-align: right; }
