.request-details__header {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-2);
  border-bottom: var(--border-width-thin) var(--border-style-solid) var(--gray-200);
}

.request-details__title-row {
  display: flex;
  align-items: center;
  gap: var(--spacing-3);
}

.request-details__title {
  font-size: var(--font-size-lg);
  font-weight: var(--font-weight-bold);
  color: var(--gray-900);
  margin: 0;
}

.request-details__subtitle {
  font-size: var(--font-size-sm);
  color: var(--gray-600);
  margin: 0;
  margin-bottom: var(--spacing-6);
}

.request-details__pill {
  flex-shrink: 0;
}

.request-details {
  min-height: calc(100vh - 120px);
  display: flex;
  flex-direction: column;
}

.request-details .min-h-full {
  flex: 1;
  display: flex;
  flex-direction: column;
}

/* Request Details Table Styles */
.request-details__table {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.my-requests-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  overflow: hidden;
  border-top: var(--border-width-thin) var(--border-style-solid) var(--gray-300);
  border-bottom: var(--border-width-thin) var(--border-style-solid) var(--gray-300);
  border-top-left-radius: var(--radius-md);
  border-top-right-radius: var(--radius-md);
}

.my-requests-table th,
.my-requests-table td {
  border-left: none;
  border-right: none;
}

.my-requests-table th:first-child{
  border-left: var(--border-width-thin)  var(--border-style-solid) var(--gray-300);
}

.my-requests-table th:last-child{
  border-right: var(--border-width-thin)  var(--border-style-solid) var(--gray-300);
}

.my-requests-table th {
  font-weight: var(--font-weight-bold);
  text-align: left;
  padding: var(--spacing-5);
  border-bottom: var(--border-width-thin) var(--border-style-solid) var(--gray-300);
  background-color: var(--gray-100);
}

.my-requests-table td {
  padding: var(--spacing-5);
  border-bottom: var(--border-width-thin) var(--border-style-solid) var(--gray-300);
  vertical-align: middle;
}

.my-requests-table tr:last-child td {
  border-bottom: none;
}

.my-requests-table tbody tr:hover {
  background-color: var(--gray-50);
}

/* Generic expandable content container */
.expandable-content {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-2);
}

/* Generic expandable text styling */
.expandable-text {
  margin: 0;
  font-size: var(--font-size-sm);
  color: var(--gray-700);
  line-height: var(--line-height-relaxed);
  word-wrap: break-word;
  white-space: pre-wrap;
}

/* Override table truncate styles with higher specificity */
td .expandable-text.truncated {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: unset;
  white-space: normal;
}

td .expandable-text.expanded {
  display: block;
  -webkit-line-clamp: none;
  line-clamp: none;
  -webkit-box-orient: unset;
  overflow: visible;
  text-overflow: unset;
  white-space: pre-wrap;
}

.justification-link {
  display: inline-flex;
  align-items: center;
  gap: var(--spacing-1);
  color: var(--primary-500);
  text-decoration: underline;
  font-size: var(--font-size-xs);
  font-weight: var(--font-weight-medium);
  transition: color 0.2s ease;
}

.justification-link:hover {
  color: var(--primary-600);
  text-decoration: underline;
}

.justification-link i {
  font-size: var(--font-size-xs);
  transition: transform 0.2s ease;
}

.justification-link[aria-expanded="true"] i {
  transform: rotate(180deg);
}


.request-details .new-request-form__footer {
  position: fixed;
  bottom: 0;
  left: var(--spacing-6);
  right: var(--spacing-6);
  z-index: var(--z-index-10);
  background: transparent;
  border-top: var(--border-width-thin) var(--border-style-solid) var(--gray-200);
  padding: var(--spacing-6);
  display: flex;
  justify-content: flex-end;
}

