/* The team panel: the bar across the top, the meetings table, the filter row,
   the modals and the toast. Desktop first, and it has to work on a tablet -
   where rows become two-line cards rather than hiding actions in a menu. */

.top-bar {
  height: 68px;
  border-bottom: 1px solid var(--c-neutral-2);
  display: flex;
  align-items: center;
  column-gap: 24px;
  padding: 0 28px;
  position: relative;
}

.top-bar .wordmark {
  display: flex;
  align-items: baseline;
  column-gap: 8px;
  text-decoration: none;
}

.top-bar .wordmark img {
  height: 18px;
  width: auto;
}

.top-bar .wordmark span {
  font: var(--t-body-primary-400);
  color: var(--c-neutral-10);
}

.top-bar nav {
  display: flex;
  column-gap: 8px;
}

.top-bar .who {
  margin-left: auto;
  display: flex;
  align-items: center;
  column-gap: 12px;
  font: var(--t-body-small-300);
  color: var(--c-neutral-11);
}

.initials {
  width: 28px;
  height: 28px;
  border-radius: 100px;
  background: var(--c-neutral-2);
  color: var(--c-neutral-12);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font: var(--t-body-small-400);
}

/* The sign-in page borrows the guest frame, so its bar is just the wordmark. */
.sign-in-bar {
  padding: 22px 28px;
}

.sign-in-bar .wordmark {
  display: inline-flex;
  align-items: baseline;
  column-gap: 8px;
}

.sign-in-bar .wordmark img {
  height: 18px;
  width: auto;
}

.sign-in-bar .wordmark span {
  font: var(--t-body-small-300);
  color: var(--c-neutral-9);
}

.panel {
  position: relative;
  padding: 32px 28px 80px;
  max-width: 1440px;
  margin: 0 auto;
}

.panel-header {
  display: flex;
  align-items: flex-start;
  column-gap: 24px;
  margin-bottom: 24px;
}

.panel-header h1 {
  font: var(--t-h6-500);
  letter-spacing: var(--ls-h6);
  color: var(--c-white);
  margin: 0;
}

.panel-header .count {
  font: var(--t-body-small-300);
  color: var(--c-neutral-9);
  margin: 4px 0 0;
}

.panel-header .actions {
  margin-left: auto;
}

.filters label {
  display: block;
  font: var(--t-body-small-400);
  color: var(--c-neutral-10);
  margin-bottom: 6px;
}

.filters {
  display: grid;
  grid-template-columns: minmax(200px, 1fr) repeat(3, minmax(160px, 220px));
  column-gap: 16px;
  row-gap: 12px;
  margin-bottom: 20px;
}

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

/* The multiselect: a field that opens a list with a search box in it. The
   design board shows single selects because the design system has no such
   component; the house rule is this one. */
.multiselect {
  position: relative;
}

.multiselect > button {
  width: 100%;
  height: 36px;
  text-align: left;
  background: transparent;
  border: 1px solid var(--c-neutral-3);
  border-radius: 8px;
  color: var(--c-white);
  font: var(--t-body-small-300);
  padding: 0 34px 0 14px;
  cursor: pointer;
  transition: border-color var(--transition-default);
}

.multiselect > button:hover {
  border-color: var(--c-neutral-7);
}

.multiselect-open > button {
  border-color: var(--c-neutral-8);
}

.multiselect-list {
  position: absolute;
  z-index: 20;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  background: var(--c-neutral-0);
  border: 1px solid var(--c-neutral-3);
  border-radius: 12px;
  padding: 8px;
  display: none;
  max-height: 280px;
  overflow-y: auto;
}

.multiselect-open .multiselect-list {
  display: block;
}

.multiselect-list input[type="search"] {
  width: 100%;
  height: 32px;
  background: transparent;
  border: 1px solid var(--c-neutral-3);
  border-radius: 8px;
  color: var(--c-white);
  font: var(--t-body-small-300);
  padding: 0 10px;
  margin-bottom: 6px;
}

.multiselect-list label {
  display: flex;
  align-items: center;
  column-gap: 10px;
  padding: 6px 8px;
  border-radius: 8px;
  font: var(--t-body-small-300);
  color: var(--c-neutral-11);
  cursor: pointer;
}

.multiselect-list label:hover {
  background: var(--c-neutral-1);
  color: var(--c-white);
}

.rows {
  display: flex;
  flex-direction: column;
}

.row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 160px 170px 140px 300px;
  column-gap: 16px;
  align-items: center;
  padding: 16px 20px;
  border-top: 1px solid var(--c-neutral-2);
}

.row:last-child {
  border-bottom: 1px solid var(--c-neutral-2);
}

.row-headings {
  border-top: 0;
  padding-bottom: 8px;
  font: var(--t-body-small-300);
  color: var(--c-neutral-9);
}

.row-headings:last-child {
  border-bottom: 0;
}

.row-live {
  background: var(--grad-card-hover-fill);
}

.row .name {
  display: flex;
  align-items: center;
  column-gap: 12px;
  min-width: 0;
}

.row .name strong {
  font: var(--t-body-primary-500);
  color: var(--c-white);
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.row .name small {
  font: var(--t-body-small-300);
  color: var(--c-neutral-9);
}

.row .when,
.row .expires {
  font: var(--t-body-small-300);
  color: var(--c-neutral-10);
}

.row .row-actions {
  display: flex;
  column-gap: 8px;
  justify-content: flex-end;
}

/* One line of facts under the name, for the narrow layout. On a wide screen
   the same facts are columns, so it stays out of the way. */
.row-meta {
  display: none;
}

@media (max-width: 1100px) {
  .row {
    grid-template-columns: minmax(0, 1fr) auto;
    row-gap: 12px;
    align-items: start;
  }

  /* Columns become a sentence; the badge stays on the right and the buttons
     go underneath at full size, rather than into a menu nobody opens. */
  .row .when,
  .row .expires,
  .row-headings {
    display: none;
  }

  .row .name small:not(.row-meta) {
    display: none;
  }

  .row-meta {
    display: block;
  }

  .row .row-actions {
    grid-column: 1 / -1;
    justify-content: flex-start;
  }

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