/* Shared list rows.
 * New views use .xcraft-list-row, .xcraft-list-title and .xcraft-list-meta.
 * Existing row classes below are compatibility aliases for the same component.
 * Column grids, icons, badges and amounts stay in the owning view's CSS.
 */
:root {
  --xcraft-list-accent: #f28c18;
  --xcraft-list-background: #fff;
  --xcraft-list-hover: #f9fbff;
  --xcraft-list-border: #e2e8f0;
  --xcraft-list-text: #26323d;
  --xcraft-list-muted: #64748b;
}
:root :is(.xcraft-list-row,.address-row,.project-beleg-row,.xreport-file-row,.communication-entry,.beleg-project-suggestion-item) {
  position: relative;
  box-sizing: border-box;
  width: 100%;
  min-width: 0;
  margin: 0;
  padding: 10px 12px 10px 15px;
  border: 0;
  border-bottom: 1px solid var(--xcraft-list-border);
  border-radius: 0;
  background: var(--xcraft-list-background);
  color: var(--xcraft-list-text);
  font: inherit;
  text-align: left;
  box-shadow: none;
  transform: none;
  cursor: pointer;
  transition: background .12s ease;
}
:root :is(.xcraft-list-row,.address-row,.project-beleg-row,.xreport-file-row,.communication-entry,.beleg-project-suggestion-item)::before {
  content: "";
  position: absolute;
  top: 6px;
  bottom: 6px;
  left: 0;
  width: 3px;
  border-radius: 0;
  background: var(--xcraft-list-accent);
  opacity: 0;
  pointer-events: none;
}
:root :is(.xcraft-list-row,.address-row,.project-beleg-row,.xreport-file-row,.communication-entry,.beleg-project-suggestion-item):not(:disabled):is(:hover,:focus-visible,.is-keyboard-active) {
  background: var(--xcraft-list-hover);
  box-shadow: none;
  outline: none;
  transform: none;
}
:root :is(.xcraft-list-row,.address-row,.project-beleg-row,.xreport-file-row,.communication-entry,.beleg-project-suggestion-item):not(:disabled):is(:hover,:focus-visible,.is-keyboard-active)::before {
  opacity: 1;
}
:root :is(.xcraft-list-row,.address-row,.project-beleg-row,.xreport-file-row,.communication-entry,.beleg-project-suggestion-item):focus-visible {
  outline: 2px solid #b6c9da;
  outline-offset: -2px;
}
:is(.xcraft-list-title,.address-row-main,.project-beleg-main,.xreport-file-title,.communication-entry-subject) {
  font-size: 14px;
  font-weight: 600;
  line-height: 1.35;
  color: var(--xcraft-list-text);
}
:is(.xcraft-list-meta,.address-row-sub,.project-beleg-sub:not(.project-beleg-netto),.xreport-file-meta,.communication-entry-meta) {
  font-size: 12px;
  line-height: 1.35;
  color: var(--xcraft-list-muted);
}

.xcraft-list { display: flex; flex-direction: column; }
:is(.xcraft-list,.project-belege-list,.xreport-file-list,.communication-timeline) { gap: 0; }
.xcraft-list-copy { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.xcraft-list-title,.xcraft-list-meta { display: block; }

/* Search matches retain their appearance during hover and keyboard selection. */
#adressen-results .address-search-match,
#projekte-results .address-search-match,
#adresseProjektRows .address-search-match {
  background: #f28c1887;
  color: #000000;
  font-weight: 700;
  padding: 0;
  border-radius: 2px;
  font: inherit;
}

