.request-summary {
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 14px;
}

.request-summary article {
  padding: 16px;
}

.request-summary strong {
  font-size: 21px;
}

.request-filter-details {
  margin-bottom: 14px;
  overflow: hidden;
}

.request-filter-details summary {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 15px 18px;
  cursor: pointer;
  list-style: none;
  font-weight: 750;
}

.request-filter-details summary::-webkit-details-marker {
  display: none;
}

.request-filter-details summary::before {
  content: "▾";
  color: var(--blue);
  transition: transform .15s ease;
}

.request-filter-details:not([open]) summary::before {
  transform: rotate(-90deg);
}

.request-filter-details summary small {
  color: var(--muted);
  font-weight: 500;
}

.request-filters {
  display: grid;
  grid-template-columns: minmax(260px, 2fr) repeat(3, minmax(150px, 1fr));
  gap: 12px;
  padding: 18px;
  border-top: 1px solid var(--line);
}

.request-filters label {
  display: block;
  margin-bottom: 5px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 750;
  text-transform: uppercase;
  letter-spacing: .04em;
}

.request-search {
  grid-column: span 2;
}

.request-filter-actions {
  display: flex;
  align-items: end;
  justify-content: flex-end;
  gap: 8px;
}

.request-table table {
  min-width: 1180px;
  table-layout: fixed;
}

.request-table th:nth-child(1) { width: 15%; }
.request-table th:nth-child(2) { width: 16%; }
.request-table th:nth-child(3) { width: 11%; }
.request-table th:nth-child(4) { width: 11%; }
.request-table th:nth-child(5) { width: 11%; }
.request-table th:nth-child(6) { width: 10%; }
.request-table th:nth-child(7) { width: 13%; }
.request-table th:nth-child(8) { width: 13%; }

.request-table td {
  white-space: normal;
  vertical-align: top;
  overflow-wrap: anywhere;
}

.request-main-row td {
  border-bottom: 0;
  padding-bottom: 8px;
}

.request-detail-row td {
  padding: 0 16px 12px;
}

.request-links {
  border-top: 1px dashed var(--line);
}

.request-links > summary {
  padding: 9px 0 2px;
  color: var(--blue);
  cursor: pointer;
  font-size: 12px;
  font-weight: 700;
}

.request-link-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  padding: 12px 0 4px;
}

.request-link-grid section {
  min-width: 0;
  padding: 13px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fafbfd;
}

.request-link-grid h3 {
  margin: 0 0 10px;
  font-size: 13px;
}

.request-link-grid dl {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 6px 8px;
  margin: 0;
}

.request-link-grid dt {
  color: var(--muted);
}

.request-link-grid dd {
  margin: 0;
}

.linked-record {
  padding: 8px 0;
  border-bottom: 1px solid var(--line);
}

.linked-record:last-child {
  border-bottom: 0;
}

.linked-record b,
.linked-record span {
  display: block;
  white-space: normal;
}

.linked-record span {
  margin-top: 2px;
  color: var(--muted);
  font-size: 11px;
}

.issue-record b {
  color: var(--red);
}

@media (max-width: 1180px) {
  .request-summary {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .request-filters,
  .request-link-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 620px) {
  .request-summary,
  .request-filters,
  .request-link-grid {
    grid-template-columns: 1fr;
  }

  .request-search {
    grid-column: auto;
  }
}
