
:root {
  color-scheme: light;
  font-family: Arial, Helvetica, sans-serif;
  color: #17202a;
  background: #f4f6f8;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 14px 24px;
  background: #ffffff;
  border-bottom: 1px solid #d7dde3;
}
.brand {
  font-weight: 700;
  color: #17202a;
  text-decoration: none;
}
nav {
  display: flex;
  gap: 14px;
}
nav a,
.button-secondary {
  color: #24527a;
  font-weight: 700;
  text-decoration: none;
}
main {
  width: min(1120px, calc(100% - 32px));
  margin: 28px auto;
}
.panel {
  background: #ffffff;
  border: 1px solid #d7dde3;
  border-radius: 8px;
  padding: 24px;
}
.heading-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 20px;
}
h1 {
  margin: 0 0 6px;
  font-size: 28px;
}
p {
  margin: 0;
  color: #52616f;
}
.notice {
  padding: 12px 14px;
  border-radius: 6px;
  margin-bottom: 18px;
}
.success {
  background: #e8f5ee;
  color: #195b38;
  border: 1px solid #b7dfc8;
}
.warning {
  background: #fff7e8;
  color: #7a4a05;
  border: 1px solid #f0ca86;
}
.helper {
  background: #f8fafb;
  border: 1px solid #e0e5ea;
  border-radius: 6px;
  padding: 12px;
}
.helper p {
  line-height: 1.45;
}
.request-form,
.review-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}
.field {
  display: grid;
  gap: 7px;
}
.field-wide {
  grid-column: 1 / -1;
}
.field span {
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  color: #34495e;
}
input,
select,
textarea {
  width: 100%;
  border: 1px solid #b8c2cc;
  border-radius: 6px;
  padding: 11px 12px;
  font: inherit;
  background: #ffffff;
}
textarea {
  resize: vertical;
}
button {
  grid-column: 1 / -1;
  justify-self: start;
  border: 0;
  border-radius: 6px;
  background: #1f6f8b;
  color: #ffffff;
  font-weight: 700;
  padding: 12px 18px;
  cursor: pointer;
}
.data-panel {
  width: min(100%, calc(100vw - 32px));
}
.table-wrap {
  overflow-x: auto;
}
.data-wrap {
  max-height: calc(100vh - 210px);
  border: 1px solid #e0e5ea;
  overflow-x: auto;
  overflow-y: auto;
}
table {
  width: 100%;
  border-collapse: collapse;
}
th,
td {
  padding: 12px 10px;
  text-align: left;
  border-bottom: 1px solid #e0e5ea;
  white-space: nowrap;
}
th {
  font-size: 12px;
  text-transform: uppercase;
  color: #52616f;
}
.data-table {
  min-width: 2200px;
}
.data-table th {
  position: sticky;
  top: 0;
  z-index: 2;
  background: #f8fafb;
}
.data-table td {
  vertical-align: top;
  background: #ffffff;
}
.data-table input,
.data-table select,
.data-table textarea {
  min-width: 150px;
  border-radius: 4px;
  padding: 8px;
  font-size: 13px;
}
.data-table textarea {
  min-width: 240px;
}
.data-table button {
  grid-column: auto;
  padding: 9px 12px;
  white-space: nowrap;
}
.sticky-col {
  position: sticky;
  left: 0;
  z-index: 3;
  background: #f8fafb !important;
  font-weight: 700;
}
.status {
  display: inline-block;
  border-radius: 999px;
  background: #eef2f5;
  padding: 5px 9px;
  font-size: 12px;
  font-weight: 700;
}
.empty {
  color: #52616f;
  text-align: center;
}
.details {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: 12px 18px;
  margin: 0 0 24px;
}
dt {
  font-weight: 700;
  color: #34495e;
}
dd {
  margin: 0;
  white-space: pre-wrap;
}
.qr-panel {
  text-align: center;
}
.qr {
  width: 280px;
  height: 280px;
  margin: 22px auto 14px;
  display: block;
  border: 1px solid #d7dde3;
}
.url {
  word-break: break-all;
}
@media (max-width: 720px) {
  .topbar,
  .heading-row {
    flex-direction: column;
  }
  .request-form,
  .review-form,
  .details {
    grid-template-columns: 1fr;
  }
}
