/* Mitteilungen (Glocke) und Verwaltung → Erinnerungen (notifications.js) */

.note-wrap {
    position: relative;
}

.note-button {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: var(--surface);
    color: var(--ink);
    cursor: pointer;
}

.note-button:hover,
.note-button[aria-expanded="true"] {
    border-color: var(--brand-gray);
}

.note-button svg {
    width: 20px;
    height: 20px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.7;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.note-count {
    position: absolute;
    top: -4px;
    right: -4px;
    min-width: 19px;
    height: 19px;
    padding: 0 5px;
    border-radius: 999px;
    background: var(--brand-red);
    color: #fff;
    font-size: 0.7rem;
    font-weight: 700;
    line-height: 19px;
    text-align: center;
}

.note-panel {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    z-index: 50;
    width: min(380px, 90vw);
    max-height: 70vh;
    display: flex;
    flex-direction: column;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--surface);
    box-shadow: var(--shadow);
}

.note-panel-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.7rem 0.9rem;
    border-bottom: 1px solid var(--line);
}

.note-list {
    margin: 0;
    padding: 0;
    list-style: none;
    overflow-y: auto;
}

.note-item {
    display: grid;
    gap: 0.15rem;
    width: 100%;
    padding: 0.65rem 0.9rem;
    border: 0;
    border-bottom: 1px solid var(--line);
    border-left: 3px solid transparent;
    background: none;
    color: var(--ink);
    text-align: left;
    cursor: pointer;
}

.note-item:hover {
    background: var(--canvas);
}

.note-item.is-unread {
    border-left-color: var(--brand-red);
    background: var(--brand-red-soft);
}

.note-item span,
.note-item small {
    color: var(--muted);
    font-size: 0.85rem;
}

.note-empty {
    padding: 1rem 0.9rem;
}

.rem-form .rem-check {
    grid-column: 1 / -1;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 0.5rem;
    font-weight: 600;
}

.rem-form .rem-check input {
    width: auto;
    min-height: 0;
    margin: 0;
    flex: none;
}

.rem-form .rem-check small {
    margin-left: 0.5rem;
}

.rem-form small {
    display: inline;
    color: var(--muted);
    font-weight: 400;
}

.rem-last {
    margin: 1rem 0 0;
}
