.page-request-handle {
  max-width: 900px;
  margin: 0 auto;
}

.page-request-handle .page-header {
  margin-bottom: 2rem;
}

.page-request-handle .page-title {
  font-size: 2rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}

.page-request-handle .page-subtitle {
  color: var(--text-secondary);
  font-size: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.page-request-handle .stage-indicator {
  background: var(--primary-color);
  color: white;
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius-sm);
  font-size: 0.875rem;
  font-weight: 500;
}

.page-request-handle .data-section {
  background: var(--surface-color);
  padding: 1.5rem;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-color);
  margin-bottom: 2rem;
}

.page-request-handle .section-title {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.page-request-handle .data-table {
  width: 100%;
  border-collapse: collapse;
}

.page-request-handle .data-table th,
.page-request-handle .data-table td {
  padding: 0.75rem;
  text-align: left;
  border-bottom: 1px solid var(--border-color);
}

.page-request-handle .data-table th {
  background: var(--background-color);
  font-weight: 600;
  color: var(--text-primary);
  width: 30%;
}

.page-request-handle .data-table tbody tr:hover {
  background: var(--background-color);
}

.page-request-handle .no-data-message {
  text-align: center;
  color: var(--text-secondary);
  font-style: italic;
  padding: 2rem;
}

.page-request-handle .status-message {
  padding: 1rem;
  border-radius: var(--radius-md);
  margin-bottom: 2rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.page-request-handle .status-message.completed {
  background: #f0fdf4;
  color: var(--success-color);
  border: 1px solid #bbf7d0;
}

.page-request-handle .status-message.waiting {
  background: #fffbeb;
  color: var(--warning-color);
  border: 1px solid #fed7aa;
}

.page-request-handle .status-message.unauthorized {
  background: #fef2f2;
  color: var(--error-color);
  border: 1px solid #fecaca;
}

.page-request-handle .response-section {
  background: var(--surface-color);
  padding: 1.5rem;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-color);
}

.page-request-handle .response-form {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.page-request-handle .field-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.page-request-handle .field-label {
  font-weight: 500;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.page-request-handle .required-indicator {
  color: var(--error-color);
  font-size: 0.875rem;
}

.page-request-handle .field-input {
  padding: 0.75rem;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  font-size: 1rem;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.page-request-handle .field-input:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgb(37 99 235 / 0.1);
}

.page-request-handle .checkbox-group {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.page-request-handle .checkbox-input {
  width: 1.25rem;
  height: 1.25rem;
  accent-color: var(--primary-color);
}

.page-request-handle .submit-button {
  padding: 0.75rem 2rem;
  background: var(--success-color);
  color: white;
  border: none;
  border-radius: var(--radius-md);
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.2s ease;
  margin-top: 1rem;
}

.page-request-handle .submit-button:hover {
  background: #047857;
}

.page-request-handle .actor-info {
  font-weight: 500;
  color: var(--primary-color);
}

/* Basic form styling for backward compatibility */
.page-request-handle form {
  background: var(--surface-color);
  padding: 1.5rem;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-color);
  margin-top: 1rem;
}

.page-request-handle form label {
  display: block;
  font-weight: 500;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}

.page-request-handle form input,
.page-request-handle form select,
.page-request-handle form textarea {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  font-size: 1rem;
  margin-bottom: 1.5rem;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.page-request-handle form input:focus,
.page-request-handle form select:focus,
.page-request-handle form textarea:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgb(37 99 235 / 0.1);
}

.page-request-handle form button {
  padding: 0.75rem 2rem;
  background: var(--success-color);
  color: white;
  border: none;
  border-radius: var(--radius-md);
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.page-request-handle form button:hover {
  background: #047857;
}

.page-request-handle table {
  width: 100%;
  border-collapse: collapse;
  background: var(--surface-color);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-color);
  margin: 1rem 0;
}

.page-request-handle table th,
.page-request-handle table td {
  padding: 0.75rem 1rem;
  text-align: left;
  border-bottom: 1px solid var(--border-color);
}

.page-request-handle table th {
  background: var(--background-color);
  font-weight: 600;
  color: var(--text-primary);
}

.page-request-handle table tbody tr:hover {
  background: var(--background-color);
}

@media (max-width: 768px) {
  .page-request-handle .data-section,
  .page-request-handle .response-section,
  .page-request-handle form {
    margin: 1rem;
    padding: 1rem;
  }

  .page-request-handle .data-table th {
    width: 40%;
  }
}
