/* Styles for the rooms results view (app.room.search.results). As a route view, not a component, every rule hangs
   from the '.room-results' root class to scope it and to outweigh generic classes on the same element (e.g. .panel-md). */

.room-results .room-results__title {
  margin-bottom: var(--md-spacing-sm);
}

/* Header: list title and actions */
.room-results .room-results__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--md-spacing-sm);
}

.room-results .room-results__list-title {
  font-size: var(--md-font-size-4);
}

.room-results .room-results__actions {
  display: flex;
  gap: var(--md-spacing-3xs);
}

.room-results .room-results__button {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: var(--md-spacing-3xs);
}

.room-results .room-results__button-icon {
  font-size: var(--md-font-size-4);
}

/* no token: cancels the bottom margin a3w-input-text reserves for the error message */
.room-results .room-results__quick-search {
  margin-bottom: -15px;
}

/* Filters and advanced search panels */
.room-results .room-results__panel {
  margin-bottom: var(--md-spacing-sm);
  font-size: var(--md-font-size-4);
}

.room-results .room-results__panel-header {
  display: flex;
  flex-direction: column;
  gap: var(--md-spacing-4xs);
  border-bottom: var(--md-border-width-sm) solid var(--md-border-primary);
  padding: var(--md-spacing-xs) var(--md-spacing-sm);
}

.room-results .room-results__panel-title {
  font-size: var(--md-font-size-7);
}

/* no semantic token: neutral-20 is only aliased as a border colour */
.room-results .room-results__panel-subtitle {
  font-size: var(--md-font-size-2);
  color: var(--md-color-neutral-20);
}

.room-results .room-results__panel-body {
  padding: var(--md-spacing-sm);
}

.room-results .room-results__filter-row {
  display: flex;
}

.room-results .room-results__row {
  display: flex;
  gap: var(--md-spacing-sm);
}

.room-results .room-results__field {
  flex: 1;
}

.room-results .room-results__panel-actions {
  display: flex;
  justify-content: flex-end;
  gap: var(--md-spacing-xs);
}

/* History side drawer */
.room-results .room-results__history {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  gap: var(--md-spacing-sm);
  padding: var(--md-spacing-sm);
  font-size: var(--md-text-body-sm-font-size);
}

.room-results .room-results__history-header,
.room-results .room-results__history-line {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.room-results .room-results__history-header-actions {
  display: flex;
  align-items: center;
  gap: var(--md-spacing-3xs);
}

.room-results .room-results__history-title {
  margin: var(--md-spacing-none);
}

.room-results .room-results__history-summary {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--md-spacing-3xs);
  font-size: var(--md-font-size-4);
}

.room-results .room-results__history-id {
  line-height: 1;
  margin: var(--md-spacing-none);
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: var(--md-spacing-3xs);
}

.room-results .room-results__history-icon {
  font-size: var(--md-font-size-7);
}

.room-results .room-results__history-states {
  display: flex;
  align-items: center;
  gap: var(--md-spacing-xs);
}

.room-results .room-results__history-field {
  display: flex;
  flex-direction: column;
  gap: var(--md-spacing-3xs);
}

/* The activity data fills the remaining height so that only the modification list scrolls */
.room-results .room-results__history-field--fill {
  flex: 1;
  min-height: 0;
}

.room-results .room-results__history-label {
  font-size: var(--md-font-size-4);
  margin: var(--md-spacing-none);
}

.room-results .room-results__history-tags {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--md-spacing-3xs);
}

.room-results .room-results__tag {
  font-weight: var(--md-font-weight-bold);
}

.room-results .room-results__history-panel {
  display: flex;
  flex-direction: column;
  max-height: 100%;
  overflow: hidden;
}

.room-results .room-results__history-list {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  background-color: var(--md-background-primary);
}

.room-results .room-results__history-item {
  background-color: var(--md-background-secondary);
}

.room-results .room-results__history-divider {
  border-color: var(--md-border-primary);
}

.room-results .room-results__history-item-body {
  display: flex;
  flex-direction: column;
  gap: var(--md-spacing-xs);
  padding: var(--md-spacing-xs);
}

.room-results .room-results__history-changes {
  background-color: var(--md-background-primary);
}

/* Icon of the search input */
.room-results .room-results__search-icon {
  font-size: var(--md-font-size-4);
}
