.archive-toolbar {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-bottom: 8px;
}

.archive-toolbar .search-box {
  max-width: 520px;
  margin: 0;
}

.archive-toolbar > span {
  color: #929eaa;
  font-size:12.5px;
  white-space: nowrap;
}

.archive-row.pending {
  background: #fffdfa;
}

.archive-tag.pending {
  background: #fff2df;
  color: #a46b2f;
}

.archive-empty {
  padding: 38px 20px;
  color: #98a4af;
  font-size:13.75px;
  text-align: center;
}

.archive-directory {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 18px;
}

.archive-directory-row {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  padding: 9px 11px;
  border: 1px solid #e8edf1;
  border-radius: 6px;
  background: #fbfcfd;
}

.archive-directory-row > b {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 6px;
  background: #edf4fc;
  color: var(--blue);
  font-size:12.5px;
}

.archive-directory-row strong,
.archive-directory-row small {
  display: block;
}

.archive-directory-row strong {
  overflow-wrap: anywhere;
  color: #46596d;
  font-size:13.75px;
}

.archive-directory-row small {
  margin-top: 3px;
  color: #9aa5b0;
  font-size:11.25px;
}

.archive-directory-row > span {
  color: #8795a3;
  font-size:11.25px;
}

.archive-warning {
  margin: 15px 0 0;
  padding: 10px 12px;
  border: 1px solid #f0d7b6;
  border-radius: 6px;
  background: #fff8ed;
  color: #95662f;
  font-size:12.5px;
  line-height: 1.6;
}

.borrow-list {
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.borrow-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  padding: 12px;
  border: 1px solid #e7ebef;
  border-radius: 7px;
}

.borrow-item strong,
.borrow-item small {
  display: block;
}

.borrow-item strong {
  font-size:13.75px;
}

.borrow-item p {
  margin: 5px 0;
  color: #6f8092;
  font-size:12.5px;
  line-height: 1.5;
}

.borrow-item small {
  color: #9aa5af;
  font-size:11.25px;
}

.borrow-actions {
  display: flex;
  align-items: center;
  gap: 6px;
}

.borrow-actions button {
  padding: 6px 8px;
  border: 1px solid #dbe4ed;
  border-radius: 4px;
  color: var(--blue);
  font-size:12.5px;
}

.borrow-actions button.reject {
  color: #a65b55;
}

@media (max-width: 700px) {
  .archive-toolbar {
    align-items: stretch;
    flex-direction: column;
    gap: 8px;
  }

  .archive-row {
    flex-wrap: wrap;
  }

  .archive-row > div {
    min-width: calc(100% - 48px);
  }

  .borrow-item {
    grid-template-columns: 1fr;
  }
}
