body {
  font-family: Arial, sans-serif;
  background: #f5f7fa;
  padding: 30px;
  color: #333;
}

h2 {
  margin-bottom: 10px;
}

.hint {
  color: #555;
  margin-bottom: 20px;
}

table {
  border-collapse: collapse;
  width: 100%;
  background: white;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

th,
td {
  border: 1px solid #ddd;
  padding: 8px;
  text-align: center;
}

th {
  background: #007bff;
  color: white;
}

tr.total {
  font-weight: bold;
  background: #eef4ff;
}

input[type='number'] {
  width: 100px;
  padding: 4px 6px;
  border: 1px solid #ccc;
  border-radius: 4px;
  text-align: right;
}

.green {
  background: #d4edda;
}

.yellow {
  background: #fff3cd;
}

.red {
  background: #f8d7da;
}

.toast {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background-color: #333;
  color: #fff;
  padding: 12px 18px;
  border-radius: 6px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.toast.show {
  opacity: 0.9;
}

.login-link {
  color: #007bff;
  text-decoration: none;
  font-weight: 600;
}

.login-link:hover {
  text-decoration: underline;
}

body.single {
  max-width: 640px;
  margin: 0 auto;
  padding: 40px 20px;
}

.top-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-bottom: 24px;
}

.top-bar h1 {
  font-size: 1.4rem;
  margin: 0;
}

.card {
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
  padding: 24px;
  display: grid;
  gap: 24px;
}

.inputs {
  display: flex;
  justify-content: space-between;
  gap: 16px;
}

.inputs label {
  flex: 1;
  display: flex;
  flex-direction: column;
  font-weight: 600;
  color: #555;
  gap: 8px;
}

.inputs input[type='number'] {
  width: 100%;
  padding: 10px;
  text-align: right;
  font-size: 1.2rem;
}

.metrics {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 18px;
}

.metric-label {
  display: block;
  font-size: 0.85rem;
  color: #666;
  margin-bottom: 6px;
}

.metric-value {
  font-size: 1.4rem;
  font-weight: 600;
}

.metric-value.small {
  font-size: 1rem;
  font-weight: 500;
  color: #555;
}

.metric-value.status {
  padding: 6px 10px;
  border-radius: 6px;
  display: inline-block;
}

.metric-value.status.green {
  background: #d4edda;
  color: #225430;
}

.metric-value.status.yellow {
  background: #fff3cd;
  color: #7c6515;
}

.metric-value.status.red {
  background: #f8d7da;
  color: #7a1d27;
}

