/* Notes Table Styles */
._client-container-redesign .list-notes {
    width: 100%;
    overflow-x: auto;
}

._client-container-redesign .table-header-notes {
    display: grid;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 16px;
    background: #f9fafb;
    border-bottom: 2px solid #e5e7eb;
    font-weight: 600;
    font-size: 13px;
    color: #374151;
    border-radius: 8px 8px 0 0;
    grid-auto-columns: max-content;
    grid-template-columns: repeat(5, 1fr);
}

._client-container-redesign .table-body-notes {
    display: flex;
    flex-direction: column;
}

._client-container-redesign .item-notes-row {
    display: flex;
    flex-direction: column;
    border-bottom: 1px solid #e5e7eb;
    transition: background 0.2s;
    grid-auto-columns: max-content;
    grid-template-columns: repeat(5, 1fr);
}

._client-container-redesign .item-notes-row:hover {
    background: #f9fafb;
}

._client-container-redesign .item-notes {
    display: flex;
    align-items: center;
}

/* Type Badge */
._client-container-redesign .note-type-badge {
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 500;
    white-space: nowrap;
}

._client-container-redesign .badge-medical {
    background: #fef3c7;
    color: #92400e;
}

._client-container-redesign .badge-important {
    background: #fee2e2;
    color: #991b1b;
}

._client-container-redesign .badge-service {
    background: #dbeafe;
    color: #1e40af;
}

._client-container-redesign .badge-preference {
    background: #e0e7ff;
    color: #3730a3;
}

._client-container-redesign .badge-general {
    background: #f3f4f6;
    color: #374151;
}

/* Note Content */
._client-container-redesign .note-date {
    font-size: 13px;
    color: #6b7280;
}

/* Privacy Badge */
._client-container-redesign .note-privacy-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 8px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 500;
}

._client-container-redesign .note-privacy-badge svg {
    width: 14px;
    height: 14px;
}

._client-container-redesign .note-privacy-badge.private {
    background: #fef3c7;
    color: #92400e;
}

._client-container-redesign .note-privacy-badge.public {
    background: #d1fae5;
    color: #065f46;
}

/* Action Buttons */
._client-container-redesign .note-actions-col {
    display: flex;
    gap: 8px;
    justify-content: flex-end;
}

._client-container-redesign .note-action-btn {
    padding: 6px;
    border: none;
    background: transparent;
    cursor: pointer;
    border-radius: 6px;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

._client-container-redesign .note-action-btn svg {
    width: 18px;
    height: 18px;
}

._client-container-redesign .note-action-btn.edit-note {
    color: var(--main-color);
}

._client-container-redesign .note-action-btn.edit-note:hover {
    background: #eff6ff;
}

._client-container-redesign .note-action-btn.delete-note {
    color: #ef4444;
}

._client-container-redesign .note-action-btn.delete-note:hover {
    background: #fee2e2;
}

/* Add Note Button Loading State */
._client-container-redesign .notes-btn-primary.loading {
    pointer-events: none;
    opacity: 0.7;
}

._client-container-redesign .notes-btn-primary svg.spinner {
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

._client-container-redesign .notes-btn-primary svg {
    width: 18px;
    height: 18px;
}