body {
  background: #f5f1e8;
  color: #1f2833;
  font-family: ui-sans-serif, system-ui, sans-serif;
  margin: 0;
}

.shell {
  margin: 40px auto;
  max-width: 900px;
  padding: 0 20px;
}

.panel {
  background: #fffdf8;
  border: 1px solid #d8d0c3;
  border-radius: 24px;
  box-shadow: 0 20px 60px rgb(39 33 24 / 12%);
  padding: 32px;
}

label {
  display: grid;
  gap: 6px;
  margin: 16px 0;
}

input,
select,
button,
.button {
  border: 1px solid #b9c6d4;
  border-radius: 999px;
  font: inherit;
  padding: 10px 14px;
}

button,
.button {
  background: white;
  color: #0e426f;
  cursor: pointer;
  display: inline-block;
  text-decoration: none;
}

.primary {
  background: #0e426f;
  color: white;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 18px 0;
}

.toolbar {
  align-items: flex-start;
  display: flex;
  gap: 16px;
  justify-content: space-between;
  margin-bottom: 20px;
}

.toolbar h1 {
  margin-top: 0;
}

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

.request-table th,
.request-table td {
  border-top: 1px solid #ded7ca;
  padding: 12px 10px;
  text-align: left;
  vertical-align: top;
}

.request-table th {
  color: #4f5e6d;
  font-size: 13px;
}

.request-table a:not(.button) {
  color: #0e426f;
  font-weight: 700;
  text-decoration: none;
}

.small {
  display: block;
  font-size: 12px;
  margin-top: 4px;
}

.status {
  background: #edf3f8;
  border: 1px solid #c8d6e3;
  border-radius: 999px;
  color: #123d63;
  display: inline-block;
  font-size: 13px;
  padding: 4px 8px;
}

.row-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.row-actions form {
  margin: 0;
}

.row-actions .button,
.row-actions button {
  padding: 7px 10px;
}

.muted {
  color: #617080;
}

.error {
  color: #9a1748;
}

.preview {
  background: #f8f5ee;
  border: 1px solid #d8d0c3;
  border-radius: 16px;
  margin: 18px 0;
  padding: 16px;
}

.document-viewer {
  margin: 28px 0;
}

.document-viewer-header {
  align-items: center;
  display: flex;
  gap: 16px;
  justify-content: space-between;
  margin-bottom: 12px;
}

.document-viewer-header h2 {
  font-size: 20px;
  margin: 0;
}

.pdf-viewer {
  background: #eef1f4;
  border: 1px solid #b9c6d4;
  border-radius: 8px;
  display: block;
  height: min(72vh, 860px);
  min-height: 520px;
  width: 100%;
}

@media (max-width: 760px) {
  .toolbar {
    display: block;
  }

  .request-table {
    display: block;
    overflow-x: auto;
    white-space: nowrap;
  }

  .document-viewer-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .pdf-viewer {
    height: 68vh;
    min-height: 420px;
  }
}
