:root {
  --bg: #f5f7fb;
  --ink: #14213d;
  --muted: #5c667a;
  --line: #d8deea;
  --brand: #006d77;
  --accent: #d97706;
  --panel: #ffffff;
}

* { box-sizing: border-box; }
body {
  margin: 0;
  min-height: 100vh;
  display: grid;
  grid-template-columns: 240px 1fr;
  background: var(--bg);
  color: var(--ink);
  font-family: Arial, Helvetica, sans-serif;
}
aside {
  background: #ffffff;
  border-right: 1px solid var(--line);
  padding: 24px 16px;
}
h1 { font-size: 22px; margin: 0 0 24px; }
h2 { margin: 0; }
aside button, form button, header button {
  width: 100%;
  min-height: 40px;
  margin: 6px 0;
  border: 0;
  border-radius: 6px;
  background: var(--brand);
  color: white;
  font-weight: 700;
  cursor: pointer;
}
.sideLink {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  margin: 6px 0;
  border-radius: 6px;
  background: var(--accent);
  color: white;
  font-weight: 700;
}
main { padding: 24px; overflow: auto; }
header {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}
header button { width: 140px; background: var(--accent); }
.panel, .view {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 18px;
}
#login { max-width: 420px; margin: 10vh auto; }
label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 13px;
}
input, select {
  min-height: 38px;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 8px 10px;
  color: var(--ink);
  background: white;
}
.gridForm {
  display: grid;
  grid-template-columns: repeat(3, minmax(180px, 1fr));
  gap: 12px;
}
.gridForm button { align-self: end; }
.compact { margin: 0 0 18px; }
.filters {
  display: grid;
  grid-template-columns: repeat(3, minmax(160px, 1fr));
  gap: 10px;
  margin-bottom: 16px;
}
.cards {
  display: grid;
  grid-template-columns: repeat(5, minmax(110px, 1fr));
  gap: 10px;
  margin-bottom: 16px;
}
.card {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
  background: #fbfcff;
}
.card strong { display: block; font-size: 24px; }
.tableWrap { overflow-x: auto; }
table {
  width: 100%;
  border-collapse: collapse;
  background: white;
}
th, td {
  border-bottom: 1px solid var(--line);
  padding: 10px;
  text-align: left;
  font-size: 13px;
  vertical-align: top;
}
tr:hover { background: #f2f8f8; }
pre {
  white-space: pre-wrap;
  overflow: auto;
  margin-top: 16px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #101828;
  color: #eef4ff;
}
@media (max-width: 860px) {
  body { grid-template-columns: 1fr; }
  aside {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 8px;
  }
  h1 { grid-column: 1 / -1; margin-bottom: 8px; }
  .gridForm, .filters, .cards { grid-template-columns: 1fr; }
}
