/* ---------------------------------------------------------
   KittyJenny Paperless UI
   Phase 1: Titel- und Tag-Struktur
   --------------------------------------------------------- */

/* Titel grundsätzlich klar vom Rest trennen */
.kj-document-title {
    display: block;
    min-width: 0;
    font-weight: 600;
}

/* Große Karten */
pngx-document-card-large .kj-document-title {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Einheitliche Tag-Zeile */
.kj-tag-row {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: wrap;
    align-items: center;
    gap: .3rem;
    margin-top: .35rem;
}

/* Bootstrap-margin der ursprünglichen Tags neutralisieren */
.kj-tag-row > pngx-tag {
    margin-left: 0 !important;
}

/* Kleine Karten: Tags nicht mehr über dem Thumbnail */
pngx-document-card-small .kj-small-card-tags {
    position: static !important;
    margin-top: .45rem;
}

/* Kleiner Kartentitel */
pngx-document-card-small .kj-document-title {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
    line-height: 1.3;
}

/* Tabellenansicht */
pngx-document-list .kj-table-title {
    display: flex !important;
    align-items: center;
    min-width: 0;
}

pngx-document-list .kj-table-title > a:first-child {
    display: block;
    min-width: 0;
    max-width: 100%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-weight: 600;
}

pngx-document-list .kj-table-tags {
    margin-top: .3rem;
}
