:root {
  --navy: #0c2f6e;
  --bg: #f3f6fb;
  --ink: #14233c;
  --muted: #607088;
  --line: #e3ebf5;
}
* { box-sizing: border-box; }
body { margin: 0; font-family: Manrope, "Segoe UI", sans-serif; background: var(--bg); color: var(--ink); }
a { color: inherit; text-decoration: none; }
.shell { display: grid; grid-template-columns: 250px 1fr; min-height: 100vh; }
.side { background: #071c45; color: #fff; padding: 22px 16px; }
.side img { height: 48px; background: #fff; border-radius: 10px; padding: 4px 8px; }
.side nav { display: grid; gap: 4px; margin-top: 22px; }
.side a { padding: 10px 12px; border-radius: 10px; color: rgba(255,255,255,.82); font-weight: 600; font-size: 14px; }
.side a.active, .side a:hover { background: rgba(255,255,255,.1); color: #fff; }
.main { padding: 28px; }
.top { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 18px; }
h1 { margin: 0; font-size: 28px; color: var(--navy); }
.cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 18px; }
.card, .box { background: #fff; border-radius: 16px; padding: 16px; border: 1px solid var(--line); }
.card span { color: var(--muted); font-size: 13px; }
.card strong { display: block; font-size: 28px; color: var(--navy); }
table { width: 100%; border-collapse: collapse; background: #fff; border-radius: 16px; overflow: hidden; }
th, td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); font-size: 14px; vertical-align: top; }
th { color: var(--muted); font-size: 12px; letter-spacing: .04em; text-transform: uppercase; }
.filters, .form-grid { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
input, select, textarea {
  border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; font: inherit; background: #fff;
}
textarea { width: 100%; min-height: 90px; }
label { display: grid; gap: 6px; font-size: 13px; font-weight: 700; color: var(--navy); }
.btn { border: 0; background: var(--navy); color: #fff; border-radius: 10px; padding: 10px 14px; font-weight: 700; cursor: pointer; }
.btn.alt { background: #e8eef8; color: var(--navy); }
.btn.danger { background: #9d1c1c; }
.note { background: #e7f6ec; color: #146c36; padding: 10px 12px; border-radius: 10px; margin-bottom: 12px; }
.err { background: #fdecec; color: #9d1c1c; padding: 10px 12px; border-radius: 10px; margin-bottom: 12px; }
.login { min-height: 100vh; display: grid; place-items: center; background: #071c45; }
.login form { width: min(420px, calc(100% - 32px)); background: #fff; border-radius: 20px; padding: 24px; display: grid; gap: 12px; }
.pager { display: flex; gap: 8px; margin-top: 12px; }
.field-table input[type="text"] { width: 100%; }
@media (max-width: 980px) {
  .shell { grid-template-columns: 1fr; }
  .cards { grid-template-columns: 1fr 1fr; }
  .side nav { grid-template-columns: 1fr 1fr; }
}
