/* List page composition. Component appearance remains in care-ui.css. */
.lists-root {
  display: grid;
  gap: var(--space-3);
  min-width: 0;
}
.lists-toolbar {
  flex-wrap: nowrap;
}
.lists-search {
  flex: 1;
  min-width: var(--side-menu);
}
.lists-filters {
  display: contents;
}
.lists-filters > summary {
  display: none;
}
.lists-filter-fields {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  min-width: 0;
}
.lists-filter-fields > label {
  min-width: 0;
}
.lists-filter-fields select {
  min-width: calc(var(--space-8) * 3 + var(--space-2));
  max-width: var(--side-menu);
}
.lists-filter-fields > details {
  position: relative;
}
.lists-filter-fields > details[open] {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
}
.lists-table {
  --cu-cols: minmax(0, 2fr) minmax(0, 1.4fr) minmax(0, 1fr) minmax(0, 1.5fr) var(--control-lg);
  width: 100%;
  border-collapse: collapse;
}
.lists-followups {
  --cu-cols: minmax(0, 1.5fr) minmax(0, 2fr) minmax(0, 1.3fr)
    calc(var(--side-menu) - var(--space-8));
}
.lists-table :is(thead, tbody) {
  display: contents;
}
.lists-table .cu-table__row {
  cursor: pointer;
}
.lists-table small {
  display: block;
  font-size: 12px;
  color: var(--ink-muted);
  line-height: 1.5;
}
.lists-table td {
  padding-block: 0;
}
.lists-table .lists-name {
  justify-content: flex-start;
  padding: 0;
  max-width: 100%;
  font-weight: 600;
}
.lists-table td:last-child {
  justify-self: end;
}
.lists-root #work-views,
.lists-root .knowledge-views {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
}
.lists-muted {
  color: var(--ink-muted);
}
.lists-meta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
}
.lists-meta p {
  margin: 0;
}
.lists-knowledge {
  --cu-cols: minmax(0, 1.2fr) minmax(0, 1fr) minmax(0, 1fr);
}
.lists-knowledge-row {
  width: 100%;
  text-align: start;
  font: inherit;
  cursor: pointer;
  background: transparent;
  color: inherit;
  border-inline: 0;
  border-top: 0;
}
.lists-knowledge-row p {
  margin: 0;
  font-size: 12px;
}
.lists-root .knowledge-layout {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr);
}
.lists-root .knowledge-layout > * {
  min-width: 0;
}
.lists-search-results {
  --cu-cols: minmax(0, 2fr) minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1.5fr) auto;
}
.lists-search-results .lists-search-row {
  border-radius: 0;
  border-inline: 0;
  border-top: 0;
  box-shadow: none;
  margin: 0;
  padding-block: 0;
  cursor: pointer;
}
.lists-search-row :is(h3, p) {
  margin: 0;
  font-size: 13px;
}
.cu-dialog .ticket-command {
  margin: 0;
  padding: 0;
}
.cu-dialog .ticket-feedback:empty {
  display: none;
}
.cu-dialog .ticket-summary {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-4);
}
.cu-dialog .context-section {
  margin-block: 0 var(--space-3);
}
.cu-dialog .service-card {
  margin-block: var(--space-2);
}
@media (max-width: 1280px) {
  .lists-toolbar {
    flex-wrap: wrap;
  }
  .lists-filter-fields {
    flex-wrap: wrap;
  }
}
@media (max-width: 760px) {
  .lists-toolbar {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: start;
  }
  .lists-search {
    min-width: 0;
  }
  .lists-filters {
    display: block;
  }
  .lists-filters > summary {
    display: inline-flex;
  }
  .lists-filter-fields {
    position: absolute;
    inset-inline: var(--space-4);
    z-index: 5;
    padding: var(--space-3);
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-popover);
  }
  .lists-table,
  .lists-knowledge,
  .lists-search-results {
    --cu-cols: minmax(0, 1fr) auto;
  }
  .lists-table .cu-table__head {
    display: none;
  }
  .lists-table td::before {
    display: none;
  }
  .lists-table td {
    display: block;
    padding: 0;
  }
  .lists-customers td:nth-child(2),
  .lists-customers td:nth-child(3),
  .lists-customers td:nth-child(4),
  .lists-followups td:nth-child(2),
  .lists-followups td:nth-child(3),
  .lists-knowledge-row > :nth-child(3),
  .lists-search-row > p {
    display: none;
  }
  .lists-root .knowledge-layout {
    grid-template-columns: minmax(0, 1fr);
  }
}

.lists-root #work-views:empty {
  display: none;
}
.lists-table :is(td, th) {
  border: 0;
  text-align: start;
}
.lists-row-meta {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.lists-table .cu-tag {
  display: inline-flex;
}
.lists-knowledge-row small {
  font-size: 12px;
}
.lists-search-row :is(h2, small) {
  font-size: 13px;
  margin: 0;
}
.lists-search-row .tag {
  font-size: 12px;
}
.cu-dialog .context-section {
  padding: var(--space-3);
}
.cu-dialog__head p {
  margin: 0;
}
@media (max-width: 760px) {
  .lists-row-meta .cu-tag {
    display: inline;
  }
}

.lists-root {
  align-content: start;
  margin-top: var(--space-3);
}
.lists-reader-layout {
  align-items: start;
}
.lists-knowledge {
  align-content: start;
}
.lists-knowledge-row {
  height: var(--row-height);
  padding-block: 0;
}
.lists-root > .cu-meta {
  margin: 0;
}
.lists-root #knowledge-status {
  margin: 0;
}
.lists-root #knowledge-status:empty {
  display: none;
}
.lists-filter-fields > details > summary {
  white-space: nowrap;
}
@media (max-width: 760px) {
  .lists-table .cu-table__row {
    height: var(--row-height);
  }
}

.lists-filter-fields > :is(label, select, details) {
  flex-shrink: 0;
}
.lists-root .lists-table .lists-name {
  line-height: 1.5;
}
body:has(.lists-search-page) #global-search {
  display: none;
}
.lists-search-page .workspace-search-form {
  margin: 0;
}
.lists-search-page .workspace-search-form label {
  margin: 0;
}

.lists-filter-fields {
  flex-shrink: 0;
}
.lists-filter-fields > select {
  width: var(--side-menu);
}
