:root {
  --bg: #f5f7fb;
  --panel: #ffffff;
  --border: #d9e0ea;
  --text: #1f2937;
  --muted: #6b7280;
  --primary: #2563eb;
  --primary-hover: #1d4ed8;
  --success: #16a34a;
  --warning: #d97706;
  --danger: #dc2626;
  --unknown: #6b7280;
  --shadow: 0 8px 24px rgba(15, 23, 42, 0.08);
}

* {
  box-sizing: border-box;
}

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

.app {
  min-height: 100vh;
  padding: 24px;
}

.app-header {
  margin-bottom: 24px;
}

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

.layout {
  display: grid;
  grid-template-columns: 360px 1fr;
  gap: 24px;
  align-items: start;
}

.panel {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 16px;
  box-shadow: var(--shadow);
  padding: 20px;
}

.label {
  display: block;
  font-weight: 600;
  margin-bottom: 8px;
}

.input {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: 10px;
  font-size: 16px;
  outline: none;
}

.input:focus {
  border-color: var(--primary);
}

.actions {
  margin-top: 16px;
}

.button {
  border: none;
  border-radius: 10px;
  padding: 12px 16px;
  font-size: 15px;
  cursor: pointer;
}

.button.primary {
  background: var(--primary);
  color: white;
}

.button.primary:hover {
  background: var(--primary-hover);
}

.status-block {
  margin-top: 24px;
}

.status-badge {
  display: inline-block;
  padding: 8px 12px;
  border-radius: 999px;
  color: white;
  font-weight: 700;
  font-size: 14px;
}

.status-success {
  background: var(--success);
}

.status-failed {
  background: var(--danger);
}

.status-callback_failed {
  background: var(--warning);
}

.status-processing,
.status-pending {
  background: var(--primary);
}

.status-unknown {
  background: var(--unknown);
}

.status-details {
  margin-top: 12px;
  background: #f8fafc;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 12px;
  min-height: 80px;
  white-space: pre-wrap;
  word-break: break-word;
  color: var(--muted);
}

.requirements-content.empty {
  color: var(--muted);
  padding: 24px 0;
}

.meta-card,
.lot-card,
.req-card {
  border: 1px solid var(--border);
  border-radius: 12px;
  background: #fff;
  padding: 16px;
  margin-bottom: 16px;
}

.meta-row {
  margin-bottom: 8px;
}

.meta-label {
  font-weight: 700;
}

.lot-title,
.req-title {
  margin-top: 0;
  margin-bottom: 12px;
}

.req-type-badge {
  display: inline-block;
  padding: 4px 8px;
  border-radius: 999px;
  background: #e5edff;
  color: #1d4ed8;
  font-size: 12px;
  font-weight: 700;
  margin-bottom: 10px;
}

.subitems-list {
  margin: 0;
  padding-left: 20px;
}

.subitems-list li {
  margin-bottom: 8px;
}

.small-muted {
  color: var(--muted);
  font-size: 14px;
}

pre.raw-json {
  background: #0f172a;
  color: #e2e8f0;
  padding: 16px;
  border-radius: 12px;
  overflow: auto;
}

@media (max-width: 960px) {
  .layout {
    grid-template-columns: 1fr;
  }
}
