/* ===========================================================
   CONTACTS SCREEN — header, project chips, pagination
   The list is the shared .qtable, modals and states are the shared
   components (base.css, screens/ui.js) - cockpit-ui-polish 7.0.
   =========================================================== */

.screen--contacts {
  max-width: 1100px; /* V2 .screen, V2:321 */
  width: 100%;
}

.contacts-screen {
  display: flex;
  flex-direction: column;
  gap: var(--qb-s-24);
  padding-block: var(--qb-s-24);
  padding-inline: 0;
}

/* --- Header --- */
.contacts-screen__header {
  display: flex;
  flex-direction: column;
  gap: var(--qb-s-16);
}

.contacts-screen__title-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--qb-s-16);
  flex-wrap: wrap;
}

/* --- Project chips in the table (the .chip itself lives in feed.css) --- */
.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.chip__x {
  display: inline-flex;
  border: 0;
  background: transparent;
  padding: 0;
  margin-inline-start: 2px;
  cursor: pointer;
  color: inherit;
}

.chip__x:hover:not(:disabled) {
  color: var(--qb-danger);
}

.chip__x:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* --- Pagination --- */
.contacts-more {
  display: flex;
  justify-content: center;
  padding-block: var(--qb-s-16);
}
