:root {
  --navy: #083b78;
  --teal: #0e8f8f;
  --red: #cf1f2b;
  --ink: #172033;
  --muted: #667085;
  --line: #d9e2ec;
  --bg: #f5f8fb;
  --card: #ffffff;
}

* { box-sizing: border-box; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: Arial, Helvetica, sans-serif;
}
a { color: var(--navy); }
.sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  width: 260px;
  padding: 24px;
  background: #fff;
  border-right: 1px solid var(--line);
}
.brand {
  display: block;
  text-decoration: none;
  margin-bottom: 28px;
}
.brand strong { display: block; color: var(--navy); font-size: 26px; }
.brand span { color: var(--teal); font-weight: 700; }
nav { display: grid; gap: 8px; }
nav a {
  padding: 11px 12px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 700;
}
nav a:hover, nav a:focus { background: #e9f6f6; outline: 2px solid transparent; }
.sidebar button, .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 10px 16px;
  border: 0;
  border-radius: 8px;
  background: var(--navy);
  color: white;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
}
.sidebar form { margin-top: 28px; }
.main {
  margin-left: 260px;
  padding: 32px;
}
.auth {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
}
.card, .auth-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 22px;
  box-shadow: 0 10px 30px rgba(8, 59, 120, 0.06);
}
.auth-card { width: min(460px, 100%); }
.eyebrow {
  margin: 0 0 8px;
  color: var(--teal);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}
h1, h2, h3 { margin-top: 0; color: var(--navy); }
.grid {
  display: grid;
  gap: 16px;
}
.two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.four {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
.full {
  grid-column: 1 / -1;
}
.metrics {
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
}
.metric strong {
  display: block;
  font-size: 34px;
  color: var(--navy);
}
.table-wrap {
  overflow-x: auto;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
}
table {
  width: 100%;
  border-collapse: collapse;
  min-width: 760px;
}
th, td {
  padding: 12px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}
th { color: var(--muted); font-size: 12px; text-transform: uppercase; }
label { display: grid; gap: 6px; margin-bottom: 14px; font-weight: 700; }
label.check {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
}
label.check input { width: auto; min-height: auto; }
input, select, textarea {
  width: 100%;
  min-height: 42px;
  padding: 10px 12px;
  border: 1px solid #b8c5d4;
  border-radius: 8px;
  font: inherit;
}
textarea { min-height: 90px; }
.notice {
  padding: 12px 14px;
  border-radius: 8px;
  background: #e9f6f6;
  color: #075a5a;
  margin-bottom: 16px;
}
.danger { background: #fff0f0; color: #9d1420; }
.row-actions {
  display: grid;
  gap: 8px;
  min-width: 220px;
}
.note {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}
.note p { margin: 0 0 6px; }
.muted { color: var(--muted); }
@media (max-width: 800px) {
  .sidebar {
    position: static;
    width: auto;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }
  .main { margin-left: 0; padding: 18px; }
  .two, .three, .four, .metrics { grid-template-columns: 1fr; }
}
