/*
 * Scratch Pad — free-form tenant notes as a full-width stack.
 *
 * Deliberately not a data table: these notes have no columns worth sorting, and the
 * body IS the content, so each note gets the page width and renders in full. Clicking
 * a card opens it to edit, not to read it.
 */

/* One note per row, full page width. The point of the pad is reading what is on it,
   and a tiled wall of 280px cards truncated at six lines meant opening every note to
   find out what it said. */
.notes-grid {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.note-card {
    display: flex;
    flex-direction: column;
    background: #fff;
    border: 1px solid var(--res-border);
    border-radius: 8px;
    padding: 14px 16px;
    cursor: pointer;
    transition: box-shadow 0.15s ease, border-color 0.15s ease;
}

/* No lift on hover any more. A full-width row shifting up by a pixel drags the whole
   page width with it, which reads as the layout twitching rather than as an affordance. */
.note-card:hover {
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.08);
    border-color: var(--res-slate);
}

/* No truncation. At 280px wide a long title had to ellipsis; across the page it fits,
   and the 200-char cap on Title keeps the worst case to two lines. */
.note-card-title {
    font-size: 15px;
    font-weight: 600;
    color: var(--res-navy);
    margin-bottom: 8px;
    overflow-wrap: anywhere;
}

/* An untitled note is normal — the whole point is jotting without structure. */
.note-card-title.is-untitled {
    color: var(--res-slate);
    font-style: italic;
    font-weight: 500;
}

/* Shown in full — no line clamp. The whole reason for going full width is that the
   note is readable in place. The body is plain text, so newlines are preserved
   rather than collapsed, and a long word or pasted URL wraps instead of forcing the
   card to scroll sideways. */
.note-card-body {
    font-size: 14px;
    line-height: 1.6;
    color: #334155;
    white-space: pre-wrap;
    overflow-wrap: anywhere;
}

/* A note with a title but no body should not leave a gap above the footer. */
.note-card-body:empty {
    display: none;
}

.note-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid #f1f5f9;
    font-size: 12px;
    color: var(--res-muted);
}

/* Kept out of the card's click target so deleting never opens the editor. */
.note-card-actions {
    display: flex;
    gap: 4px;
}
