/* Notes — feature styles (notes-) layered on mds.css.
   One block per note inside the Notes card: importance icon + bold topic head,
   content prose, inert KB/download pointers. Tokens come from mds.css. */

.notes-note { padding: var(--mds-space-2) 0; border-top: 1px dashed var(--mds-line); }
.notes-note:first-child { border-top: none; padding-top: 0; }

.notes-note__head { display: flex; align-items: baseline; gap: var(--mds-space-2); }
.notes-note__topic { font-weight: 600; color: var(--mds-title); font-size: var(--mds-text-sm); }

.notes-note__icon--danger { color: var(--mds-danger); }
.notes-note__icon--warn   { color: var(--mds-warning); }
.notes-note__icon--info   { color: var(--mds-muted); }

.notes-note__content { margin-top: var(--mds-space-1); }

.notes-note__pointer { margin-top: var(--mds-space-1); font-size: var(--mds-text-xs);
    color: var(--mds-muted); }
.notes-note__pointer i { margin-right: 4px; }

/* Global-note badge + the per-note edit/delete tools (office users only). The tool buttons
   themselves are the core .mds-icon-btn primitive (mds.css) — promoted there once Account
   and Admin needed the identical bare icon-button look. */
.notes-note__badge { font-size: var(--mds-text-xs); color: var(--mds-accent-ink);
    border: 1px solid var(--mds-accent); border-radius: var(--mds-radius-sm); padding: 0 var(--mds-space-1); }
.notes-note__tools { margin-left: auto; display: inline-flex; gap: var(--mds-space-1); }

.notes-add { margin-top: var(--mds-space-2); }

/* The inline note editor (NotesCard + NotesManager). */
.notes-form { margin-top: var(--mds-space-2); padding: var(--mds-space-2);
    border: 1px solid var(--mds-line); border-radius: var(--mds-radius); background: var(--mds-tint); }
.notes-form__row { display: flex; flex-wrap: wrap; align-items: center; gap: var(--mds-space-2);
    margin-bottom: var(--mds-space-2); }
.notes-form__row:last-child { margin-bottom: 0; }
.notes-form__input, .notes-form__select {
    padding: var(--mds-space-1) var(--mds-space-2); border: 1px solid var(--mds-line);
    border-radius: var(--mds-radius); background: var(--mds-surface); font-family: inherit;
    font-size: var(--mds-text-sm); color: var(--mds-title); }
.notes-form__input { flex: 1 1 200px; }
.notes-form__input:focus, .notes-form__select:focus, .notes-form__content:focus {
    outline: none; border-color: var(--mds-accent); }
.notes-form__content { width: 100%; padding: var(--mds-space-1) var(--mds-space-2);
    border: 1px solid var(--mds-line); border-radius: var(--mds-radius); background: var(--mds-surface);
    font-family: inherit; font-size: var(--mds-text-sm); color: var(--mds-title);
    margin-bottom: var(--mds-space-2); resize: vertical; }
.notes-form__global { font-size: var(--mds-text-sm); color: var(--mds-title);
    display: inline-flex; align-items: center; gap: var(--mds-space-1); }
.notes-form__actions { margin-left: auto; display: inline-flex; gap: var(--mds-space-2); }
