/*
  Lists, replacing Vuetify 1.5's v-list family with the same measurements.

  <div class="c-list c-list--dense">
    <div class="c-subheader">Heading</div>
    <div class="c-list-item">
      <div class="c-list-item-content">Label</div>
      <div class="c-list-item-content align-end">Value</div>
    </div>
  </div>

  Add .c-list-item--link to clickable rows (or use it on a <router-link class="c-list-item">).
*/

.c-list {
  background: var(--cosmic-white);
  color: var(--cosmic-text);
  list-style-type: none;
  padding: 8px 0;
}

.c-list--dense {
  padding-bottom: 4px;
  padding-top: 4px;
}

.c-list--subheader {
  padding-top: 0;
}

.c-subheader {
  align-items: center;
  color: var(--cosmic-text-secondary);
  display: flex;
  font-size: 14px;
  font-weight: 500;
  height: 48px;
  padding: 0 16px;
}

.c-list--dense .c-subheader {
  font-size: 13px;
  height: 40px;
}

.c-list-item {
  align-items: center;
  color: inherit;
  display: flex;
  font-size: 16px;
  font-weight: 400;
  height: 48px;
  margin: 0;
  padding: 0 16px;
  position: relative;
  text-decoration: none;
  transition: background 0.3s cubic-bezier(0.25, 0.8, 0.5, 1);
}

.c-list--dense .c-list-item {
  font-size: 13px;
  height: 40px;
}

.c-list-item--avatar {
  height: 56px;
}

.c-list--dense .c-list-item--avatar {
  height: 48px;
}

.c-list-item--link {
  cursor: pointer;
  user-select: none;
}

.c-list-item--link:hover {
  background: var(--cosmic-hover-overlay);
}

.c-list-item-content {
  align-items: flex-start;
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  height: 100%;
  justify-content: center;
  overflow: hidden;
  text-align: left;
}

.c-list-item-action,
.c-list-item-avatar {
  display: flex;
  justify-content: flex-start;
  min-width: 56px;
}

.c-list-item-action {
  align-items: center;
  height: 100%;
}

.c-list-item-content ~ .c-list-item-action,
.c-list-item-content ~ .c-list-item-avatar {
  justify-content: flex-end;
}

.c-list-item-title,
.c-list-item-sub-title {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  width: 100%;
}

.c-list-item-title {
  height: 24px;
  line-height: 24px;
  position: relative;
  text-align: left;
}

.c-list-item-sub-title {
  color: var(--cosmic-text-secondary);
  font-size: 14px;
}

.c-list--dense .c-list-item-sub-title {
  font-size: 13px;
}

.c-list--three-line .c-list-item {
  height: 88px;
}

.c-list--three-line.c-list--dense .c-list-item {
  height: 76px;
}

.c-list--three-line .c-list-item-avatar {
  margin-top: -18px;
}

.c-list--three-line .c-list-item-sub-title {
  -webkit-box-orient: vertical;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  white-space: initial;
}
