:root {
  --navy: #08213d;
  --blue: #0d3b66;
  --bg: #f3f6fb;
  --card: #ffffff;
  --line: #dde5ef;
  --text: #071426;
  --muted: #637083;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
}

aside {
  position: fixed;
  inset: 0 auto 0 0;
  width: 270px;
  background: var(--navy);
  color: white;
  padding: 28px 20px;
}

.brand {
  font-size: 28px;
  font-weight: 900;
  letter-spacing: 4px;
}

.app-name {
  margin-top: 6px;
  color: #d8e6f7;
}

nav {
  margin-top: 32px;
  display: grid;
  gap: 8px;
}

nav a {
  color: white;
  text-decoration: none;
  padding: 12px 14px;
  border-radius: 10px;
}

nav a:hover {
  background: rgba(255,255,255,0.12);
}

main {
  margin-left: 270px;
  padding: 28px;
}

header {
  background: white;
  border-radius: 16px;
  padding: 22px 28px;
  margin-bottom: 22px;
}

h1 {
  margin: 0;
  font-size: 28px;
}

h2 {
  margin-top: 0;
}

.subtitle {
  margin-top: 6px;
  color: var(--muted);
}

.grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(180px, 1fr));
  gap: 16px;
}

.card {
  background: var(--card);
  border-radius: 16px;
  padding: 22px;
  box-shadow: 0 10px 30px rgba(8,33,61,0.06);
  margin-bottom: 18px;
}

.metric span {
  display: block;
  font-size: 34px;
  font-weight: 900;
  color: var(--blue);
}

.metric b {
  display: block;
  margin-top: 8px;
}

.form {
  display: grid;
  grid-template-columns: repeat(4, minmax(180px, 1fr));
  gap: 14px;
  align-items: end;
}

input, select {
  width: 100%;
  min-height: 42px;
  border: 1px solid #ccd8e6;
  border-radius: 9px;
  padding: 9px 11px;
  font-size: 15px;
}

button {
  min-height: 42px;
  border: 0;
  border-radius: 9px;
  padding: 9px 16px;
  font-weight: 800;
  background: var(--blue);
  color: white;
  cursor: pointer;
}

table {
  width: 100%;
  border-collapse: collapse;
}

th {
  text-align: left;
  background: #edf3f9;
  padding: 12px;
}

td {
  padding: 12px;
  border-top: 1px solid var(--line);
}

.wide {
  overflow-x: auto;
}

.error {
  color: #8a1f1f;
}

@media (max-width: 1100px) {
  aside {
    position: static;
    width: auto;
  }

  main {
    margin-left: 0;
  }

  .grid,
  .form {
    grid-template-columns: 1fr;
  }
}
