body {
  font-family: "Segoe UI", Arial, sans-serif;
  margin: 0;
  background: #f1f5f9;
  color: #0f172a;
}
.page {
  max-width: 1120px;
  margin: 0 auto;
  padding: 20px;
}
.top h1 {
  margin: 0;
}
.top p {
  margin-top: 6px;
  color: #475569;
}
.card {
  background: #fff;
  border: 1px solid #dbe3ee;
  border-radius: 12px;
  padding: 16px;
  margin-top: 14px;
}
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 10px;
  align-items: end;
}
label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 14px;
}
input, select {
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  padding: 9px 10px;
}
button {
  border: none;
  border-radius: 8px;
  padding: 9px 12px;
  background: #1d4ed8;
  color: #fff;
  font-weight: 700;
  cursor: pointer;
}
button:hover { background: #1e40af; }
.hidden {
  display: none !important;
}
.status-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 8px 0;
}
.status-badge {
  border-radius: 999px;
  padding: 4px 10px;
  border: 1px solid #cbd5e1;
  background: #eef2ff;
  color: #1e3a8a;
  font-size: 12px;
  font-weight: 700;
}
.status-badge.DRAFT { background: #f1f5f9; color: #334155; }
.status-badge.FORM_COMPLETED { background: #ede9fe; color: #5b21b6; }
.status-badge.GENERATED { background: #dbeafe; color: #1d4ed8; }
.status-badge.SENT { background: #fef3c7; color: #92400e; }
.status-badge.SIGNED_BY_EMPLOYEE { background: #fde68a; color: #92400e; }
.status-badge.FINALIZED { background: #dcfce7; color: #166534; }
.status-badge.CANCELED, .status-badge.EXPIRED { background: #fee2e2; color: #991b1b; }
.actions {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 10px 0;
  flex-wrap: wrap;
}
.actions button.secondary {
  background: #475569;
}
.actions button.secondary:hover {
  background: #334155;
}
.radio-inline {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 10px;
}
th, td {
  border: 1px solid #e2e8f0;
  padding: 8px;
  text-align: left;
}
#contractPreview {
  width: 100%;
  min-height: 420px;
  border: 1px solid #cbd5e1;
  border-radius: 10px;
}
#timeline {
  list-style: none;
  padding: 0;
}
#timeline li {
  border-left: 3px solid #1d4ed8;
  padding: 6px 10px;
  margin: 6px 0;
  background: #f8fafc;
}
