:root {
  --bg: #f5f7fb;
  --card: #fff;
  --text: #222;
  --muted: #666;
  --primary: #0066ff;
  --ok: #0b9444;
  --warn: #e6a100;
  --danger: #c62828;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
}

.container {
  max-width: 1100px;
  margin: 32px auto;
  padding: 0 16px;
}

h1 { margin: 0 0 16px; }

form {
  background: var(--card);
  padding: 16px;
  border-radius: 12px;
  box-shadow: 0 4px 18px rgba(0,0,0,0.06);
  margin-bottom: 20px;
}

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

.field {
  display: flex;
  flex-direction: column;
}

.hidden { display: none; }

label {
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 6px;
}

input, select {
  padding: 10px;
  border: 1px solid #dcdfe6;
  border-radius: 8px;
  background: #fafbff;
}

button[type="submit"] {
  margin-top: 16px;
  padding: 12px 16px;
  border: none;
  background: var(--primary);
  color: white;
  border-radius: 10px;
  cursor: pointer;
  font-weight: 600;
}

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

.card {
  background: var(--card);
  padding: 16px;
  border-radius: 12px;
  box-shadow: 0 4px 18px rgba(0,0,0,0.06);
}

.card h3 { margin: 0 0 8px; font-size: 16px; }
.card .value { font-size: 22px; font-weight: 700; }
.card .hint { color: var(--muted); font-size: 13px; }

.panel {
  background: var(--card);
  padding: 16px;
  border-radius: 12px;
  box-shadow: 0 4px 18px rgba(0,0,0,0.06);
  margin-bottom: 20px;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

th, td {
  border-bottom: 1px solid #eee;
  padding: 8px;
  text-align: right;
}
th:first-child, td:first-child { text-align: left; }

.badge {
  display: inline-block;
  padding: 4px 8px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
}
.badge.ok { background: #e7f6ed; color: var(--ok); }
.badge.warn { background: #fff4db; color: var(--warn); }
.badge.danger { background: #fde7e7; color: var(--danger); }
